2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x
; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var
in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\
${$as_var+set} = xset \
123 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
136 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x
; then
139 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required
="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev
/null
; then :
182 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
187 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir
=.
194 for as_base
in sh bash ksh sh5
; do
195 # Try only shells that exist, to save several forks.
196 as_shell
=$as_dir/$as_base
197 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
199 CONFIG_SHELL
=$as_shell as_have_required
=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
208 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
210 CONFIG_SHELL
=$SHELL as_have_required
=yes
215 if test "x$CONFIG_SHELL" != x
; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x
$as_have_required = xno
; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x
${ZSH_VERSION+set} = xset
; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
243 SHELL
=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE
= GREP_OPTIONS
=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir
=.
/$as_dir;;
288 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
292 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs
="'$as_qdir' $as_dirs"
296 as_dir
=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
322 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
357 as_val
=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status
=$?
; test $as_status -eq 0 && as_status
=1
371 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit
$as_status
378 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
385 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
397 as_me
=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits
='0123456789'
421 as_cr_alnum
=$as_cr_Letters$as_cr_digits
424 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
425 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x
"$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C
= ECHO_N
= ECHO_T
=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
468 rm -f conf$$ conf$$.exe conf$$.
file
469 if test -d conf$$.dir
; then
470 rm -f conf$$.dir
/conf$$.
file
473 mkdir conf$$.dir
2>/dev
/null
475 if (echo >conf$$.
file) 2>/dev
/null
; then
476 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
484 elif ln conf$$.
file conf$$
2>/dev
/null
; then
492 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
493 rmdir conf$$.dir
2>/dev
/null
495 if mkdir
-p .
2>/dev
/null
; then
496 as_mkdir_p
='mkdir -p "$as_dir"'
498 test -d .
/-p && rmdir .
/-p
502 if test -x / >/dev
/null
2>&1; then
505 if ls -dL / >/dev
/null
2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p
=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix
=/usr
/local
545 ac_config_libobj_dir
=.
552 # Identity of this package.
554 PACKAGE_TARNAME
='amule'
555 PACKAGE_VERSION
='SVN'
556 PACKAGE_STRING
='aMule SVN'
557 PACKAGE_BUGREPORT
='admin@amule.org'
560 ac_unique_file
="src/amule.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default
="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
598 ac_subst_vars
='am__EXEEXT_FALSE
603 COMPILE_LIB_COMMON_FALSE
604 COMPILE_LIB_COMMON_TRUE
609 GENERATE_FLEX_HEADER_FALSE
610 GENERATE_FLEX_HEADER_TRUE
613 NEED_CORESERVICES_FALSE
614 NEED_CORESERVICES_TRUE
647 AMULE_DAEMON_MANPAGES
652 INTL_LIBTOOL_SUFFIX_PREFIX
659 BUILD_INCLUDED_LIBINTL
678 DISTCHECK_CONFIGURE_FLAGS
802 MAINTAINER_MODE_FALSE
814 INSTALL_STRIP_PROGRAM
856 program_transform_name
872 enable_option_checking
874 enable_maintainer_mode
875 enable_dependency_tracking
925 with_included_gettext
931 ac_precious_vars
='build_alias
952 # Initialize some variables set by options.
954 ac_init_version
=false
955 ac_unrecognized_opts
=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
966 program_transform_name
=s
,x
,x
,
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir
='${exec_prefix}/bin'
981 sbindir
='${exec_prefix}/sbin'
982 libexecdir
='${exec_prefix}/libexec'
983 datarootdir
='${prefix}/share'
984 datadir
='${datarootdir}'
985 sysconfdir
='${prefix}/etc'
986 sharedstatedir
='${prefix}/com'
987 localstatedir
='${prefix}/var'
988 includedir
='${prefix}/include'
989 oldincludedir
='/usr/include'
990 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir
='${datarootdir}/info'
996 libdir
='${exec_prefix}/lib'
997 localedir
='${datarootdir}/locale'
998 mandir
='${datarootdir}/man'
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\
$ac_option
1012 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1018 case $ac_dashdash$ac_option in
1022 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1024 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1025 bindir
=$ac_optarg ;;
1027 -build |
--build |
--buil |
--bui |
--bu)
1028 ac_prev
=build_alias
;;
1029 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1030 build_alias
=$ac_optarg ;;
1032 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1033 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1034 ac_prev
=cache_file
;;
1035 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1036 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1037 cache_file
=$ac_optarg ;;
1039 --config-cache |
-C)
1040 cache_file
=config.cache
;;
1042 -datadir |
--datadir |
--datadi |
--datad)
1044 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1045 datadir
=$ac_optarg ;;
1047 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1048 |
--dataroo |
--dataro |
--datar)
1049 ac_prev
=datarootdir
;;
1050 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1051 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1052 datarootdir
=$ac_optarg ;;
1054 -disable-* |
--disable-*)
1055 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1058 as_fn_error
"invalid feature name: $ac_useropt"
1059 ac_useropt_orig
=$ac_useropt
1060 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_
$ac_useropt"
1065 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066 ac_unrecognized_sep
=', ';;
1068 eval enable_
$ac_useropt=no
;;
1070 -docdir |
--docdir |
--docdi |
--doc |
--do)
1072 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1073 docdir
=$ac_optarg ;;
1075 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1077 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1078 dvidir
=$ac_optarg ;;
1080 -enable-* |
--enable-*)
1081 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1084 as_fn_error
"invalid feature name: $ac_useropt"
1085 ac_useropt_orig
=$ac_useropt
1086 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_
$ac_useropt"
1091 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep
=', ';;
1094 eval enable_
$ac_useropt=\
$ac_optarg ;;
1096 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1097 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1098 |
--exec |
--exe |
--ex)
1099 ac_prev
=exec_prefix
;;
1100 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1101 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1102 |
--exec=* |
--exe=* |
--ex=*)
1103 exec_prefix
=$ac_optarg ;;
1105 -gas |
--gas |
--ga |
--g)
1106 # Obsolete; use --with-gas.
1109 -help |
--help |
--hel |
--he |
-h)
1110 ac_init_help
=long
;;
1111 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1112 ac_init_help
=recursive
;;
1113 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1114 ac_init_help
=short
;;
1116 -host |
--host |
--hos |
--ho)
1117 ac_prev
=host_alias
;;
1118 -host=* |
--host=* |
--hos=* |
--ho=*)
1119 host_alias
=$ac_optarg ;;
1121 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1123 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1125 htmldir
=$ac_optarg ;;
1127 -includedir |
--includedir |
--includedi |
--included |
--include \
1128 |
--includ |
--inclu |
--incl |
--inc)
1129 ac_prev
=includedir
;;
1130 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1131 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1132 includedir
=$ac_optarg ;;
1134 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1136 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1137 infodir
=$ac_optarg ;;
1139 -libdir |
--libdir |
--libdi |
--libd)
1141 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1142 libdir
=$ac_optarg ;;
1144 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1145 |
--libexe |
--libex |
--libe)
1146 ac_prev
=libexecdir
;;
1147 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1148 |
--libexe=* |
--libex=* |
--libe=*)
1149 libexecdir
=$ac_optarg ;;
1151 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1152 ac_prev
=localedir
;;
1153 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1154 localedir
=$ac_optarg ;;
1156 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1157 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1158 ac_prev
=localstatedir
;;
1159 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1160 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1161 localstatedir
=$ac_optarg ;;
1163 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1165 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1166 mandir
=$ac_optarg ;;
1168 -nfp |
--nfp |
--nf)
1169 # Obsolete; use --without-fp.
1172 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1173 |
--no-cr |
--no-c |
-n)
1176 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1177 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1180 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1181 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1182 |
--oldin |
--oldi |
--old |
--ol |
--o)
1183 ac_prev
=oldincludedir
;;
1184 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1185 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1186 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1187 oldincludedir
=$ac_optarg ;;
1189 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1191 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1192 prefix
=$ac_optarg ;;
1194 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1195 |
--program-pre |
--program-pr |
--program-p)
1196 ac_prev
=program_prefix
;;
1197 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1198 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1199 program_prefix
=$ac_optarg ;;
1201 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1202 |
--program-suf |
--program-su |
--program-s)
1203 ac_prev
=program_suffix
;;
1204 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1205 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1206 program_suffix
=$ac_optarg ;;
1208 -program-transform-name |
--program-transform-name \
1209 |
--program-transform-nam |
--program-transform-na \
1210 |
--program-transform-n |
--program-transform- \
1211 |
--program-transform |
--program-transfor \
1212 |
--program-transfo |
--program-transf \
1213 |
--program-trans |
--program-tran \
1214 |
--progr-tra |
--program-tr |
--program-t)
1215 ac_prev
=program_transform_name
;;
1216 -program-transform-name=* |
--program-transform-name=* \
1217 |
--program-transform-nam=* |
--program-transform-na=* \
1218 |
--program-transform-n=* |
--program-transform-=* \
1219 |
--program-transform=* |
--program-transfor=* \
1220 |
--program-transfo=* |
--program-transf=* \
1221 |
--program-trans=* |
--program-tran=* \
1222 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1223 program_transform_name
=$ac_optarg ;;
1225 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1227 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1228 pdfdir
=$ac_optarg ;;
1230 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1232 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1235 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1236 |
-silent |
--silent |
--silen |
--sile |
--sil)
1239 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1241 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1243 sbindir
=$ac_optarg ;;
1245 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1246 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1247 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1249 ac_prev
=sharedstatedir
;;
1250 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1251 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1252 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1254 sharedstatedir
=$ac_optarg ;;
1256 -site |
--site |
--sit)
1258 -site=* |
--site=* |
--sit=*)
1261 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1263 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1264 srcdir
=$ac_optarg ;;
1266 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1267 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1268 ac_prev
=sysconfdir
;;
1269 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1270 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1271 sysconfdir
=$ac_optarg ;;
1273 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1274 ac_prev
=target_alias
;;
1275 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1276 target_alias
=$ac_optarg ;;
1278 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1281 -version |
--version |
--versio |
--versi |
--vers |
-V)
1282 ac_init_version
=: ;;
1285 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1288 as_fn_error
"invalid package name: $ac_useropt"
1289 ac_useropt_orig
=$ac_useropt
1290 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1295 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep
=', ';;
1298 eval with_
$ac_useropt=\
$ac_optarg ;;
1300 -without-* |
--without-*)
1301 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1304 as_fn_error
"invalid package name: $ac_useropt"
1305 ac_useropt_orig
=$ac_useropt
1306 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1311 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312 ac_unrecognized_sep
=', ';;
1314 eval with_
$ac_useropt=no
;;
1317 # Obsolete; use --with-x.
1320 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1321 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1322 ac_prev
=x_includes
;;
1323 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1324 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1325 x_includes
=$ac_optarg ;;
1327 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1328 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1329 ac_prev
=x_libraries
;;
1330 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1331 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1332 x_libraries
=$ac_optarg ;;
1334 -*) as_fn_error
"unrecognized option: \`$ac_option'
1335 Try \`$0 --help' for more information."
1339 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 case $ac_envvar in #(
1342 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1343 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1345 eval $ac_envvar=\
$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359 if test -n "$ac_prev"; then
1360 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1361 as_fn_error
"missing argument to $ac_option"
1364 if test -n "$ac_unrecognized_opts"; then
1365 case $enable_option_checking in
1367 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 # Check all directory arguments for consistency.
1373 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir
1378 eval ac_val
=\$
$ac_var
1379 # Remove trailing slashes.
1382 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\
$ac_val;;
1385 # Be sure to have absolute directory names.
1387 [\\/$
]* | ?
:[\\/]* ) continue;;
1388 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1390 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1398 target
=$target_alias
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x
; then
1402 if test "x$build_alias" = x
; then
1403 cross_compiling
=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1412 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1414 test "$silent" = yes && exec 6>/dev
/null
1417 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di
=`ls -di .` &&
1419 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1420 as_fn_error
"working directory cannot be determined"
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 as_fn_error
"pwd does not report name of working directory"
1425 # Find the source files, if location was not specified.
1426 if test -z "$srcdir"; then
1427 ac_srcdir_defaulted
=yes
1428 # Try the directory containing this script, then the parent directory.
1429 ac_confdir
=`$as_dirname -- "$as_myself" ||
1430 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431 X"$as_myself" : 'X\(//\)[^/]' \| \
1432 X"$as_myself" : 'X\(//\)$' \| \
1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434 $as_echo X"$as_myself" |
1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1457 ac_srcdir_defaulted
=no
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1461 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1463 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1475 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 for ac_var
in $ac_precious_vars; do
1478 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1480 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1485 # Report the --help message.
1487 if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1491 \`configure' configures aMule SVN to adapt to many kinds of systems.
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE. See below for descriptions of some of the useful variables.
1498 Defaults for the options are specified in brackets.
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511 Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1522 For better control, use the options below.
1524 Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1549 --program-prefix=PREFIX prepend PREFIX to installed program names
1550 --program-suffix=SUFFIX append SUFFIX to installed program names
1551 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1554 --build=BUILD configure
for building on BUILD
[guessed
]
1555 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1559 if test -n "$ac_init_help"; then
1560 case $ac_init_help in
1561 short | recursive
) echo "Configuration of aMule SVN:";;
1566 --disable-option-checking ignore unrecognized
--enable/--with options
1567 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1568 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1569 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1570 --disable-silent-rules verbose build output (undo: `make V
=0')
1571 --enable-maintainer-mode enable make rules and dependencies not useful
1572 (and sometimes confusing) to the casual installer
1573 --disable-dependency-tracking speeds up one-time build
1574 --enable-dependency-tracking do not reject slow dependency extractors
1575 --disable-monolithic disable building of the monolithic aMule app
1576 --enable-amule-daemon compile aMule daemon version
1577 --enable-amulecmd compile aMule command line client
1578 --enable-webserver compile aMule WebServer
1579 --enable-amule-gui compile aMule remote GUI
1580 --enable-cas compile C aMule Statistics
1581 --enable-wxcas compile aMule GUI Statistics
1582 --disable-ed2k don't compile aMule ed2k links handler
1583 --enable-alc compile aMuleLinkCreator GUI version
1584 --enable-alcc compile aMuleLinkCreator
for console
1585 --enable-xas install xas XChat2 plugin
1586 --enable-fileview compile aMule
file viewer
for console
(EXPERIMENTAL
)
1587 --enable-plasmamule compile aMule plasma applet and engine
1588 --enable-static produce a statically linked executable
1589 --enable-kde-in-home install KDE related stuff
in your home dir
1590 --enable-geoip compile with GeoIP IP2Country library
1591 --disable-upnp do not compile UPnP code
1592 --disable-debug disable additional debugging output
1593 --enable-profile enable code profiling
1594 --enable-optimize enable code optimization
1595 --enable-static-boost Prefer the static boost libraries over the shared
1597 --enable-mmap enable using mapped memory
if supported
1598 --disable-rpath do not hardcode runtime library paths
1599 --disable-nls do not use Native Language Support
1600 --enable-ccache enable ccache support
for fast recompilation
1603 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1604 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1605 --with-kde4-config=PATH kde4-config
script to use
1606 --with-moc=PATH Search
in PATH
for Qt
's meta object compiler
1607 --without-gnu-malloc Don't assume that we use GNU libc compatible
1608 malloc
/realloc when cross-compiling
1609 --with-gdlib-prefix=PREFIX
1610 prefix where gdlib is installed
(optional
)
1611 --with-gdlib-config=CONFIG
1612 gdlib-config
script to use
(optional
)
1613 --with-zlib=PREFIX use zlib
in PREFIX
1614 --with-libpng-prefix=PREFIX
1615 prefix where libpng is installed
(optional
)
1616 --with-libpng-config=CONFIG
1617 libpng-config
script to use
(optional
)
1618 --with-geoip-headers=DIR
1619 GeoIP include files location
1620 --with-geoip-lib=DIR GeoIP library location
1621 --with-geoip-static Explicitly link GeoIP statically
(default
=no
)
1622 --with-wxdir=PATH Use uninstalled version of wxWidgets
in PATH
1623 --with-wx-config=CONFIG wx-config
script to use
(optional
)
1624 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed
(optional
)
1625 --with-wx-exec-prefix=PREFIX
1626 Exec prefix where wxWidgets is installed
(optional
)
1627 --with-toolkit Build against a specific wxWidgets toolkit
(default
1629 --with-wxshared Force building against a shared build of wxWidgets
,
1630 even
if --disable-shared is given
(default is auto
)
1631 --with-wxdebug Force building against a debug build of wxWidgets
,
1632 even
if --disable-debug is given
(default is auto
)
1633 --with-wxversion Build against a specific version of wxWidgets
1635 --with-libupnp-prefix=PREFIX
1636 UPnP library location
1637 --with-crypto-prefix=PREFIX
1638 prefix where crypto
++ is installed
1639 --with-boost[=DIR
] use Boost.Asio
for networking
1640 --with-language=<langs
> Specify a comma-separated list of languages you want
1641 to have installed. See po
/LINGUAS
for available
1643 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1644 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
1645 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1646 --with-included-gettext use the GNU gettext library included here
1647 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1648 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1649 --with-denoise-level=<level
>
1650 Specifies denoising level
(0-4):
1652 4 - Suppress all normal output
1653 (for more information see
1654 src
/utils
/scripts
/denoiser.rules
)
1656 --with-ccache-prefix=PREFIX
1657 prefix where ccache is installed
1659 Some influential environment variables
:
1660 CXX C
++ compiler
command
1661 CXXFLAGS C
++ compiler flags
1662 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1663 nonstandard directory
<lib dir
>
1664 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1665 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1666 you have headers
in a nonstandard directory
<include dir
>
1667 CXXCPP C
++ preprocessor
1668 CC C compiler
command
1669 CFLAGS C compiler flags
1671 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1672 the first program found out of: `bison
-y', `byacc', `yacc'.
1673 YFLAGS The list of arguments that will be passed by default to $YACC.
1674 This script will default YFLAGS to the empty string to avoid a
1675 default value of `-d' given by some make applications.
1676 RC Resource Compiler
1677 RCFLAGS Resource Compiler Flags
1678 PKG_CONFIG path to pkg-config utility
1679 BOOST_ROOT Location of Boost installation
1681 Use these variables to override the choices made by `configure' or to
help
1682 it to
find libraries and programs with nonstandard names
/locations.
1684 Report bugs to
<admin@amule.org
>.
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1698 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1700 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1705 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1708 ac_abs_top_builddir
=$ac_pwd
1709 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir
=$ac_top_build_prefix
1714 .
) # We are building in place.
1716 ac_top_srcdir
=$ac_top_builddir_sub
1717 ac_abs_top_srcdir
=$ac_pwd ;;
1718 [\\/]* | ?
:[\\/]* ) # Absolute name.
1719 ac_srcdir
=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir
=$srcdir
1721 ac_abs_top_srcdir
=$srcdir ;;
1723 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1727 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1729 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1730 # Check for guested configure.
1731 if test -f "$ac_srcdir/configure.gnu"; then
1733 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1734 elif test -f "$ac_srcdir/configure"; then
1736 $SHELL "$ac_srcdir/configure" --help=recursive
1738 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1744 test -n "$ac_init_help" && exit $ac_status
1745 if $ac_init_version; then
1748 generated by GNU Autoconf
2.65
1750 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1751 This configure
script is free software
; the Free Software Foundation
1752 gives unlimited permission to copy
, distribute and modify it.
1757 ## ------------------------ ##
1758 ## Autoconf initialization. ##
1759 ## ------------------------ ##
1761 # ac_fn_cxx_try_compile LINENO
1762 # ----------------------------
1763 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_cxx_try_compile
()
1766 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1767 rm -f conftest.
$ac_objext
1768 if { { ac_try
="$ac_compile"
1770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_compile") 2>conftest.err
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_cxx_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest.$ac_objext; then :
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 as_fn_set_status $ac_retval
1797 } # ac_fn_cxx_try_compile
1799 # ac_fn_cxx_try_cpp LINENO
1800 # ------------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_cpp ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1808 *) ac_try_echo
=$ac_try;;
1810 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 if test -s conftest.err
; then
1815 grep -v '^ *+' conftest.err
>conftest.er1
1816 cat conftest.er1
>&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } >/dev
/null
&& {
1821 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1822 test ! -s conftest.err
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.
$ac_ext >&5
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1832 as_fn_set_status
$ac_retval
1834 } # ac_fn_cxx_try_cpp
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile
()
1841 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1842 rm -f conftest.
$ac_objext
1843 if { { ac_try
="$ac_compile"
1845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 as_fn_set_status $ac_retval
1872 } # ac_fn_c_try_compile
1874 # ac_fn_c_try_cpp LINENO
1875 # ----------------------
1876 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { { ac_try="$ac_cpp conftest.$ac_ext"
1882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1883 *) ac_try_echo
=$ac_try;;
1885 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889 if test -s conftest.err
; then
1890 grep -v '^ *+' conftest.err
>conftest.er1
1891 cat conftest.er1
>&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } >/dev
/null
&& {
1896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.
$ac_ext >&5
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1907 as_fn_set_status
$ac_retval
1911 # ac_fn_c_try_link LINENO
1912 # -----------------------
1913 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1917 rm -f conftest.
$ac_objext conftest
$ac_exeext
1918 if { { ac_try
="$ac_link"
1920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>conftest.err
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_c_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest$ac_exeext && {
1937 test "$cross_compiling" = yes ||
1938 $as_test_x conftest$ac_exeext
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1949 # interfere with the next link command; also delete a directory that is
1950 # left behind by Apple's compiler. We do this before executing the actions.
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 as_fn_set_status $ac_retval
1955 } # ac_fn_c_try_link
1957 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1958 # -------------------------------------------------------
1959 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1960 # the include files in INCLUDES and setting the cache variable VAR
1962 ac_fn_c_check_header_mongrel ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1975 # Is the header compilable?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1977 $as_echo_n "checking $2 usability... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 ac_header_compiler=yes
1986 ac_header_compiler=no
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1990 $as_echo "$ac_header_compiler" >&6; }
1992 # Is the header present?
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1994 $as_echo_n "checking $2 presence... " >&6; }
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1999 if ac_fn_c_try_cpp "$LINENO"; then :
2000 ac_header_preproc=yes
2002 ac_header_preproc=no
2004 rm -f conftest.err conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2006 $as_echo "$ac_header_preproc" >&6; }
2008 # So? What about this header?
2009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2012 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2018 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2020 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2022 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2024 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2026 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2028 ## ------------------------------ ##
2029 ## Report this to admin@amule.org ##
2030 ## ------------------------------ ##
2032 ) | sed "s/^/$as_me: WARNING: /" >&2
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2038 $as_echo_n "(cached) " >&6
2040 eval "$3=\$ac_header_compiler"
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 } # ac_fn_c_check_header_mongrel
2050 # ac_fn_c_try_run LINENO
2051 # ----------------------
2052 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2053 # that executables *can* be run.
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if { { ac_try="$ac_link"
2059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2060 *) ac_try_echo
=$ac_try;;
2062 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_link") 2>&5
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2068 { { case "(($ac_try" in
2069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074 (eval "$ac_try") 2>&5
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; }; }; then :
2080 $as_echo "$as_me: program exited with status $ac_status" >&5
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2084 ac_retval=$ac_status
2086 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 as_fn_set_status $ac_retval
2092 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2093 # -------------------------------------------------------
2094 # Tests whether HEADER exists and can be compiled using the include files in
2095 # INCLUDES, setting the cache variable VAR accordingly.
2096 ac_fn_c_check_header_compile ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2102 $as_echo_n "(cached) " >&6
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2109 if ac_fn_c_try_compile "$LINENO"; then :
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121 } # ac_fn_c_check_header_compile
2123 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2124 # -------------------------------------------
2125 # Tests whether TYPE exists after having included INCLUDES, setting cache
2126 # variable VAR accordingly.
2127 ac_fn_c_check_type ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133 $as_echo_n "(cached) " >&6
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2161 if ac_fn_c_try_compile "$LINENO"; then :
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 } # ac_fn_c_check_type
2177 # ac_fn_cxx_try_link LINENO
2178 # -------------------------
2179 # Try to link conftest.$ac_ext, and return whether this succeeded.
2180 ac_fn_cxx_try_link ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 rm -f conftest.$ac_objext conftest$ac_exeext
2184 if { { ac_try="$ac_link"
2186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2187 *) ac_try_echo
=$ac_try;;
2189 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_link") 2>conftest.err
2193 if test -s conftest.err
; then
2194 grep -v '^ *+' conftest.err
>conftest.er1
2195 cat conftest.er1
>&5
2196 mv -f conftest.er1 conftest.err
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; } && {
2200 test -z "$ac_cxx_werror_flag" ||
2201 test ! -s conftest.err
2202 } && test -s conftest
$ac_exeext && {
2203 test "$cross_compiling" = yes ||
2204 $as_test_x conftest
$ac_exeext
2208 $as_echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.
$ac_ext >&5
2213 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2214 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2215 # interfere with the next link command; also delete a directory that is
2216 # left behind by Apple's compiler. We do this before executing the actions.
2217 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2219 as_fn_set_status
$ac_retval
2221 } # ac_fn_cxx_try_link
2223 # ac_fn_cxx_try_run LINENO
2224 # ------------------------
2225 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2226 # that executables *can* be run.
2227 ac_fn_cxx_try_run
()
2229 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2230 if { { ac_try
="$ac_link"
2232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_link") 2>&5
2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2241 { { case "(($ac_try" in
2242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2243 *) ac_try_echo
=$ac_try;;
2245 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2246 $as_echo "$ac_try_echo"; } >&5
2247 (eval "$ac_try") 2>&5
2249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 test $ac_status = 0; }; }; then :
2253 $as_echo "$as_me: program exited with status $ac_status" >&5
2254 $as_echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.
$ac_ext >&5
2257 ac_retval
=$ac_status
2259 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2261 as_fn_set_status
$ac_retval
2263 } # ac_fn_cxx_try_run
2265 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2266 # ---------------------------------------------------------
2267 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2268 # the include files in INCLUDES and setting the cache variable VAR
2270 ac_fn_cxx_check_header_mongrel
()
2272 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2273 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 $as_echo_n "checking for $2... " >&6; }
2276 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2283 # Is the header compilable?
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2285 $as_echo_n "checking $2 usability... " >&6; }
2286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2291 if ac_fn_cxx_try_compile
"$LINENO"; then :
2292 ac_header_compiler
=yes
2294 ac_header_compiler
=no
2296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2298 $as_echo "$ac_header_compiler" >&6; }
2300 # Is the header present?
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2302 $as_echo_n "checking $2 presence... " >&6; }
2303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2307 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2308 ac_header_preproc
=yes
2310 ac_header_preproc
=no
2312 rm -f conftest.err conftest.
$ac_ext
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2314 $as_echo "$ac_header_preproc" >&6; }
2316 # So? What about this header?
2317 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2320 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2322 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2326 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2328 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2330 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2332 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2334 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2336 ## ------------------------------ ##
2337 ## Report this to admin@amule.org ##
2338 ## ------------------------------ ##
2340 ) |
sed "s/^/$as_me: WARNING: /" >&2
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2344 $as_echo_n "checking for $2... " >&6; }
2345 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2346 $as_echo_n "(cached) " >&6
2348 eval "$3=\$ac_header_compiler"
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2356 } # ac_fn_cxx_check_header_mongrel
2358 # ac_fn_cxx_check_func LINENO FUNC VAR
2359 # ------------------------------------
2360 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2361 ac_fn_cxx_check_func
()
2363 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2367 $as_echo_n "(cached) " >&6
2369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2371 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2373 #define $2 innocuous_$2
2375 /* System header to define __stub macros and hopefully few prototypes,
2376 which can conflict with char $2 (); below.
2377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378 <limits.h> exists even on freestanding compilers. */
2381 # include <limits.h>
2383 # include <assert.h>
2388 /* Override any GCC internal prototype to avoid an error.
2389 Use char because int might match the return type of a GCC
2390 builtin and then its argument prototype would still apply. */
2395 /* The GNU C library defines this for functions which it implements
2396 to always fail with ENOSYS. Some functions are actually named
2397 something starting with __ and the normal name is an alias. */
2398 #if defined __stub_$2 || defined __stub___$2
2410 if ac_fn_cxx_try_link
"$LINENO"; then :
2415 rm -f core conftest.err conftest.
$ac_objext \
2416 conftest
$ac_exeext conftest.
$ac_ext
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2423 } # ac_fn_cxx_check_func
2425 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2426 # ---------------------------------------------
2427 # Tests whether TYPE exists after having included INCLUDES, setting cache
2428 # variable VAR accordingly.
2429 ac_fn_cxx_check_type
()
2431 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2433 $as_echo_n "checking for $2... " >&6; }
2434 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2435 $as_echo_n "(cached) " >&6
2438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2450 if ac_fn_cxx_try_compile
"$LINENO"; then :
2451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2463 if ac_fn_cxx_try_compile
"$LINENO"; then :
2468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2477 } # ac_fn_cxx_check_type
2479 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2480 # ---------------------------------------------------------
2481 # Tests whether HEADER exists and can be compiled using the include files in
2482 # INCLUDES, setting the cache variable VAR accordingly.
2483 ac_fn_cxx_check_header_compile
()
2485 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2487 $as_echo_n "checking for $2... " >&6; }
2488 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2489 $as_echo_n "(cached) " >&6
2491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2496 if ac_fn_cxx_try_compile
"$LINENO"; then :
2501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505 $as_echo "$ac_res" >&6; }
2506 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2508 } # ac_fn_cxx_check_header_compile
2510 # ac_fn_c_check_func LINENO FUNC VAR
2511 # ----------------------------------
2512 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2513 ac_fn_c_check_func
()
2515 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2517 $as_echo_n "checking for $2... " >&6; }
2518 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2519 $as_echo_n "(cached) " >&6
2521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2523 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2525 #define $2 innocuous_$2
2527 /* System header to define __stub macros and hopefully few prototypes,
2528 which can conflict with char $2 (); below.
2529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2530 <limits.h> exists even on freestanding compilers. */
2533 # include <limits.h>
2535 # include <assert.h>
2540 /* Override any GCC internal prototype to avoid an error.
2541 Use char because int might match the return type of a GCC
2542 builtin and then its argument prototype would still apply. */
2547 /* The GNU C library defines this for functions which it implements
2548 to always fail with ENOSYS. Some functions are actually named
2549 something starting with __ and the normal name is an alias. */
2550 #if defined __stub_$2 || defined __stub___$2
2562 if ac_fn_c_try_link
"$LINENO"; then :
2567 rm -f core conftest.err conftest.
$ac_objext \
2568 conftest
$ac_exeext conftest.
$ac_ext
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572 $as_echo "$ac_res" >&6; }
2573 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2575 } # ac_fn_c_check_func
2577 # ac_fn_c_check_decl LINENO SYMBOL VAR
2578 # ------------------------------------
2579 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2580 ac_fn_c_check_decl
()
2582 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2584 $as_echo_n "checking whether $2 is declared... " >&6; }
2585 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2586 $as_echo_n "(cached) " >&6
2588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2602 if ac_fn_c_try_compile
"$LINENO"; then :
2607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2614 } # ac_fn_c_check_decl
2615 cat >config.log
<<_ACEOF
2616 This file contains any messages produced by compilers while
2617 running configure, to aid debugging if configure makes a mistake.
2619 It was created by aMule $as_me SVN, which was
2620 generated by GNU Autoconf 2.65. Invocation command line was
2632 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2633 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2634 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2635 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2636 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2638 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2639 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2641 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2642 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2643 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2644 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2645 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2646 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2647 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir
=.
2656 $as_echo "PATH: $as_dir"
2672 # Keep a trace of the command line.
2673 # Strip out --no-create and --no-recursion so they do not pile up.
2674 # Strip out --silent because we don't want to record it for future runs.
2675 # Also quote any args containing shell meta-characters.
2676 # Make two passes to allow for proper duplicate-argument suppression.
2680 ac_must_keep_next
=false
2686 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2687 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2688 |
-silent |
--silent |
--silen |
--sile |
--sil)
2691 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2694 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2696 as_fn_append ac_configure_args1
" '$ac_arg'"
2697 if test $ac_must_keep_next = true
; then
2698 ac_must_keep_next
=false
# Got value, back to normal.
2701 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2702 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2703 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2704 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2705 case "$ac_configure_args0 " in
2706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2709 -* ) ac_must_keep_next
=true
;;
2712 as_fn_append ac_configure_args
" '$ac_arg'"
2717 { ac_configure_args0
=; unset ac_configure_args0
;}
2718 { ac_configure_args1
=; unset ac_configure_args1
;}
2720 # When interrupted or exit'd, cleanup temporary files, and complete
2721 # config.log. We remove comments because anyway the quotes in there
2722 # would cause problems or look ugly.
2723 # WARNING: Use '\'' to represent an apostrophe within the trap.
2724 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2725 trap 'exit_status=$?
2726 # Save into config.log some information that might help in debugging.
2731 ## ---------------- ##
2732 ## Cache variables. ##
2733 ## ---------------- ##
2736 # The following way of writing the cache mishandles newlines in values,
2738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2739 eval ac_val=\$$ac_var
2743 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2747 _ | IFS | as_nl) ;; #(
2748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2749 *) { eval $ac_var=; unset $ac_var;} ;;
2754 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2755 *${as_nl}ac_space=\ *)
2757 "s/'\''/'\''\\\\'\'''\''/g;
2758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2769 ## ----------------- ##
2770 ## Output variables. ##
2771 ## ----------------- ##
2774 for ac_var in $ac_subst_vars
2776 eval ac_val=\$$ac_var
2778 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2780 $as_echo "$ac_var='\''$ac_val'\''"
2784 if test -n "$ac_subst_files"; then
2786 ## ------------------- ##
2787 ## File substitutions. ##
2788 ## ------------------- ##
2791 for ac_var
in $ac_subst_files
2793 eval ac_val
=\$
$ac_var
2795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2797 $as_echo "$ac_var='\''$ac_val'\''"
2802 if test -s confdefs.h; then
2812 test "$ac_signal" != 0 &&
2813 $as_echo "$as_me: caught signal $ac_signal"
2814 $as_echo "$as_me: exit $exit_status"
2816 rm -f core *.core core.conftest.* &&
2817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2820 for ac_signal
in 1 2 13 15; do
2821 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2825 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2826 rm -f -r conftest
* confdefs.h
2828 $as_echo "/* confdefs.h */" > confdefs.h
2830 # Predefined preprocessor variables.
2832 cat >>confdefs.h
<<_ACEOF
2833 #define PACKAGE_NAME "$PACKAGE_NAME"
2836 cat >>confdefs.h
<<_ACEOF
2837 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2840 cat >>confdefs.h
<<_ACEOF
2841 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2844 cat >>confdefs.h
<<_ACEOF
2845 #define PACKAGE_STRING "$PACKAGE_STRING"
2848 cat >>confdefs.h
<<_ACEOF
2849 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2852 cat >>confdefs.h
<<_ACEOF
2853 #define PACKAGE_URL "$PACKAGE_URL"
2857 # Let the site file select an alternate cache file if it wants to.
2858 # Prefer an explicitly selected file to automatically selected ones.
2861 if test -n "$CONFIG_SITE"; then
2862 ac_site_file1
=$CONFIG_SITE
2863 elif test "x$prefix" != xNONE
; then
2864 ac_site_file1
=$prefix/share
/config.site
2865 ac_site_file2
=$prefix/etc
/config.site
2867 ac_site_file1
=$ac_default_prefix/share
/config.site
2868 ac_site_file2
=$ac_default_prefix/etc
/config.site
2870 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2872 test "x$ac_site_file" = xNONE
&& continue
2873 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2875 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2876 sed 's/^/| /' "$ac_site_file" >&5
2881 if test -r "$cache_file"; then
2882 # Some versions of bash will fail to source /dev/null (special files
2883 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2884 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2886 $as_echo "$as_me: loading cache $cache_file" >&6;}
2888 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2889 *) .
"./$cache_file";;
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2894 $as_echo "$as_me: creating cache $cache_file" >&6;}
2898 as_fn_append ac_header_list
" stdlib.h"
2899 as_fn_append ac_header_list
" unistd.h"
2900 as_fn_append ac_header_list
" sys/param.h"
2901 # Check that the precious variables saved in the cache have kept the same
2903 ac_cache_corrupted
=false
2904 for ac_var
in $ac_precious_vars; do
2905 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2906 eval ac_new_set
=\
$ac_env_${ac_var}_set
2907 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2908 eval ac_new_val
=\
$ac_env_${ac_var}_value
2909 case $ac_old_set,$ac_new_set in
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913 ac_cache_corrupted
=: ;;
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2917 ac_cache_corrupted
=: ;;
2920 if test "x$ac_old_val" != "x$ac_new_val"; then
2921 # differences in whitespace do not lead to failure.
2922 ac_old_val_w
=`echo x $ac_old_val`
2923 ac_new_val_w
=`echo x $ac_new_val`
2924 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2927 ac_cache_corrupted
=:
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931 eval $ac_var=\
$ac_old_val
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2934 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2939 # Pass precious variables to config.status.
2940 if test "$ac_new_set" = set; then
2942 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943 *) ac_arg
=$ac_var=$ac_new_val ;;
2945 case " $ac_configure_args " in
2946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2947 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2951 if $ac_cache_corrupted; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2963 ac_cpp
='$CPP $CPPFLAGS'
2964 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2969 am__api_version
='1.11'
2972 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2973 for ac_t
in install-sh
install.sh shtool
; do
2974 if test -f "$ac_dir/$ac_t"; then
2976 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2981 if test -z "$ac_aux_dir"; then
2982 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2985 # These three variables are undocumented and unsupported,
2986 # and are intended to be withdrawn in a future Autoconf release.
2987 # They can cause serious problems if a builder's source tree is in a directory
2988 # whose full name contains unusual characters.
2989 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2990 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2991 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2994 # Find a good install program. We prefer a C program (faster),
2995 # so one script is as good as another. But avoid the broken or
2996 # incompatible versions:
2997 # SysV /etc/install, /usr/sbin/install
2998 # SunOS /usr/etc/install
2999 # IRIX /sbin/install
3001 # AmigaOS /C/install, which installs bootblocks on floppy discs
3002 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3003 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3004 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3005 # OS/2's system install, which has a completely different semantic
3006 # ./install, which can be erroneously created by make from ./install.sh.
3007 # Reject install programs that cannot install multiple files.
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3009 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3010 if test -z "$INSTALL"; then
3011 if test "${ac_cv_path_install+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir
=.
3019 # Account for people who put trailing slashes in PATH elements.
3020 case $as_dir/ in #((
3021 .
/ | .
// |
/[cC
]/* | \
3022 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3023 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3026 # OSF1 and SCO ODT 3.0 have their own names for install.
3027 # Don't use installbsd from OSF since it installs stuff as root
3029 for ac_prog
in ginstall scoinst
install; do
3030 for ac_exec_ext
in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3032 if test $ac_prog = install &&
3033 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3034 # AIX install. It has an incompatible calling convention.
3036 elif test $ac_prog = install &&
3037 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3038 # program-specific install script used by HP pwplus--don't use.
3041 rm -rf conftest.one conftest.two conftest.dir
3042 echo one
> conftest.one
3043 echo two
> conftest.two
3045 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3046 test -s conftest.one
&& test -s conftest.two
&&
3047 test -s conftest.dir
/conftest.one
&&
3048 test -s conftest.dir
/conftest.two
3050 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3063 rm -rf conftest.one conftest.two conftest.dir
3066 if test "${ac_cv_path_install+set}" = set; then
3067 INSTALL
=$ac_cv_path_install
3069 # As a last resort, use the slow shell script. Don't cache a
3070 # value for INSTALL within a source directory, because that will
3071 # break other packages using the cache if that directory is
3072 # removed, or if the value is a relative name.
3073 INSTALL
=$ac_install_sh
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3077 $as_echo "$INSTALL" >&6; }
3079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3080 # It thinks the first close brace ends the variable substitution.
3081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3085 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3088 $as_echo_n "checking whether build environment is sane... " >&6; }
3091 echo timestamp
> conftest.
file
3092 # Reject unsafe characters in $srcdir or the absolute working directory
3093 # name. Accept space and tab only in the latter.
3097 *[\\\"\
#\$\&\'\`$am_lf]*)
3098 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3101 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3102 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3105 # Do `set' in a subshell so we don't clobber the current shell's
3106 # arguments. Must try -L first in case configure is actually a
3107 # symlink; some systems play weird games with the mod time of symlinks
3108 # (eg FreeBSD returns the mod time of the symlink's containing
3111 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3112 if test "$*" = "X"; then
3114 set X
`ls -t "$srcdir/configure" conftest.file`
3117 if test "$*" != "X $srcdir/configure conftest.file" \
3118 && test "$*" != "X conftest.file $srcdir/configure"; then
3120 # If neither matched, then we have a broken ls. This can happen
3121 # if, for instance, CONFIG_SHELL is bash and it inherits a
3122 # broken ls alias from the environment. This has actually
3123 # happened. Such a system could not be considered "sane".
3124 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3125 alias in your environment" "$LINENO" 5
3128 test "$2" = conftest.
file
3134 as_fn_error
"newly created file is older than distributed files!
3135 Check your system clock" "$LINENO" 5
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139 test "$program_prefix" != NONE
&&
3140 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3141 # Use a double $ so make ignores it.
3142 test "$program_suffix" != NONE
&&
3143 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3144 # Double any \ or $.
3145 # By default was `s,x,x', remove it if useless.
3146 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3147 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3149 # expand $ac_aux_dir to an absolute path
3150 am_aux_dir
=`cd $ac_aux_dir && pwd`
3152 if test x
"${MISSING+set}" != xset
; then
3155 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3157 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3160 # Use eval to expand $SHELL
3161 if eval "$MISSING --run true"; then
3162 am_missing_run
="$MISSING --run "
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3166 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3169 if test x
"${install_sh}" != xset
; then
3172 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3174 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3178 # Installed binaries are usually stripped using `strip' when the user
3179 # run `make install-strip'. However `strip' might not be the right
3180 # tool to use in cross-compilation environments, therefore Automake
3181 # will honor the `STRIP' environment variable to overrule this program.
3182 if test "$cross_compiling" != no
; then
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3185 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_STRIP+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3191 if test -n "$STRIP"; then
3192 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3198 test -z "$as_dir" && as_dir
=.
3199 for ac_exec_ext
in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 STRIP
=$ac_cv_prog_STRIP
3212 if test -n "$STRIP"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3214 $as_echo "$STRIP" >&6; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3222 if test -z "$ac_cv_prog_STRIP"; then
3224 # Extract the first word of "strip", so it can be a program name with args.
3225 set dummy strip
; ac_word
=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$ac_ct_STRIP"; then
3232 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir
=.
3239 for ac_exec_ext
in '' $ac_executable_extensions; do
3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241 ac_cv_prog_ac_ct_STRIP
="strip"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3252 if test -n "$ac_ct_STRIP"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3254 $as_echo "$ac_ct_STRIP" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3260 if test "x$ac_ct_STRIP" = x
; then
3263 case $cross_compiling:$ac_tool_warned in
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267 ac_tool_warned
=yes ;;
3272 STRIP
="$ac_cv_prog_STRIP"
3276 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3279 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3280 if test -z "$MKDIR_P"; then
3281 if test "${ac_cv_path_mkdir+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3285 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3288 test -z "$as_dir" && as_dir
=.
3289 for ac_prog
in mkdir gmkdir
; do
3290 for ac_exec_ext
in '' $ac_executable_extensions; do
3291 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3292 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3293 'mkdir (GNU coreutils) '* | \
3294 'mkdir (coreutils) '* | \
3295 'mkdir (fileutils) '4.1*)
3296 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3306 test -d .
/--version && rmdir .
/--version
3307 if test "${ac_cv_path_mkdir+set}" = set; then
3308 MKDIR_P
="$ac_cv_path_mkdir -p"
3310 # As a last resort, use the slow shell script. Don't cache a
3311 # value for MKDIR_P within a source directory, because that will
3312 # break other packages using the cache if that directory is
3313 # removed, or if the value is a relative name.
3314 MKDIR_P
="$ac_install_sh -d"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3318 $as_echo "$MKDIR_P" >&6; }
3322 [\\/$
]* | ?
:[\\/]*) ;;
3323 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3326 for ac_prog
in gawk mawk nawk
awk
3328 # Extract the first word of "$ac_prog", so it can be a program name with args.
3329 set dummy
$ac_prog; ac_word
=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if test "${ac_cv_prog_AWK+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3335 if test -n "$AWK"; then
3336 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir
=.
3343 for ac_exec_ext
in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_AWK
="$ac_prog"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 if test -n "$AWK"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3358 $as_echo "$AWK" >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3365 test -n "$AWK" && break
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3369 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3371 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3372 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3373 $as_echo_n "(cached) " >&6
3375 cat >conftest.
make <<\_ACEOF
3378 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3381 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3383 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3385 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3389 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3391 $as_echo "yes" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 SET_MAKE
="MAKE=${MAKE-make}"
3399 rm -rf .tst
2>/dev
/null
3400 mkdir .tst
2>/dev
/null
3401 if test -d .tst
; then
3406 rmdir .tst
2>/dev
/null
3408 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3409 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3410 # is not polluted with repeated "-I."
3411 am__isrc
=' -I$(srcdir)'
3412 # test to see if srcdir already configured
3413 if test -f $srcdir/config.status
; then
3414 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3418 # test whether we have cygpath
3419 if test -z "$CYGPATH_W"; then
3420 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3421 CYGPATH_W
='cygpath -w'
3428 # Define the identity of the package.
3433 cat >>confdefs.h
<<_ACEOF
3434 #define PACKAGE "$PACKAGE"
3438 cat >>confdefs.h
<<_ACEOF
3439 #define VERSION "$VERSION"
3442 # Some tools Automake needs.
3444 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3447 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3450 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3453 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3456 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3458 # We need awk for the "check" target. The system "awk" is bad on
3460 # Always define AMTAR for backward compatibility.
3462 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3464 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3470 # Check whether --enable-silent-rules was given.
3471 if test "${enable_silent_rules+set}" = set; then :
3472 enableval
=$enable_silent_rules;
3475 case $enable_silent_rules in
3476 yes) AM_DEFAULT_VERBOSITY
=0;;
3477 no
) AM_DEFAULT_VERBOSITY
=1;;
3478 *) AM_DEFAULT_VERBOSITY
=1;;
3486 ac_config_headers="$ac_config_headers config.h"
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3491 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3492 # Check whether --enable-maintainer-mode was given.
3493 if test "${enable_maintainer_mode+set}" = set; then :
3494 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3496 USE_MAINTAINER_MODE=no
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3500 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3501 if test $USE_MAINTAINER_MODE = yes; then
3502 MAINTAINER_MODE_TRUE=
3503 MAINTAINER_MODE_FALSE='#'
3505 MAINTAINER_MODE_TRUE
='#'
3506 MAINTAINER_MODE_FALSE
=
3509 MAINT
=$MAINTAINER_MODE_TRUE
3513 # Make sure we can run config.sub.
3514 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3515 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3518 $as_echo_n "checking build system type... " >&6; }
3519 if test "${ac_cv_build+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3522 ac_build_alias
=$build_alias
3523 test "x$ac_build_alias" = x
&&
3524 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3525 test "x$ac_build_alias" = x
&&
3526 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3527 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3528 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3532 $as_echo "$ac_cv_build" >&6; }
3533 case $ac_cv_build in
3535 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3538 ac_save_IFS
=$IFS; IFS
='-'
3544 # Remember, the first character of IFS is used to create $*,
3545 # except with old shells:
3548 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3552 $as_echo_n "checking host system type... " >&6; }
3553 if test "${ac_cv_host+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3556 if test "x$host_alias" = x
; then
3557 ac_cv_host
=$ac_cv_build
3559 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3560 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3565 $as_echo "$ac_cv_host" >&6; }
3568 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3571 ac_save_IFS
=$IFS; IFS
='-'
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3581 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3585 case "${host_os}" in
3588 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3589 MULELDFLAGS
="-bind_at_load"
3590 touch src
/Scanner.cpp
3594 LIBS
="$LIBS -L/usr/local/lib"
3595 MULECPPFLAGS
="-D__OPENBSD__"
3597 *cygwin
* |
*mingw32
*)
3599 MULECPPFLAGS
="-DNOMINMAX"
3603 RESOLV_LIB
="-lresolv -lnsl"
3608 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3609 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3610 # Still, we prepend them, instead of adding, so the user may override them.
3611 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
3612 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3616 MULECPPFLAGS
="-D__IRIX__"
3623 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3624 if test ${SYS:-unknown} != win32
; then :
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3627 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3628 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then :
3630 MULELDFLAGS
="$MULELDFLAGS -pthread"
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3636 MULELDFLAGS
="$MULELDFLAGS -lpthread"
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3646 mule_backup_CFLAGS
="$CFLAGS"
3647 mule_backup_CXXFLAGS
="$CXXFLAGS"
3648 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
3650 ac_cpp
='$CXXCPP $CPPFLAGS'
3651 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3654 if test -z "$CXX"; then
3655 if test -n "$CCC"; then
3658 if test -n "$ac_tool_prefix"; then
3659 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3662 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_CXX+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3668 if test -n "$CXX"; then
3669 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir
=.
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 if test -n "$CXX"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3691 $as_echo "$CXX" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3698 test -n "$CXX" && break
3701 if test -z "$CXX"; then
3703 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3705 # Extract the first word of "$ac_prog", so it can be a program name with args.
3706 set dummy
$ac_prog; ac_word
=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3712 if test -n "$ac_ct_CXX"; then
3713 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir
=.
3720 for ac_exec_ext
in '' $ac_executable_extensions; do
3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3733 if test -n "$ac_ct_CXX"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3735 $as_echo "$ac_ct_CXX" >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3742 test -n "$ac_ct_CXX" && break
3745 if test "x$ac_ct_CXX" = x
; then
3748 case $cross_compiling:$ac_tool_warned in
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3752 ac_tool_warned
=yes ;;
3760 # Provide some information about the compiler.
3761 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3764 for ac_option
in --version -v -V -qversion; do
3765 { { ac_try
="$ac_compiler $ac_option >&5"
3767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3774 if test -s conftest.err; then
3776 ... rest of stderr output deleted ...
3777 10q' conftest.err >conftest.er1
3778 cat conftest.er1 >&5
3780 rm -f conftest.er1 conftest.err
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3796 ac_clean_files_save=$ac_clean_files
3797 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3798 # Try to create an executable without -o first, disregard a.out.
3799 # It will help us diagnose broken compilers, and finding out an intuition
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3802 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3803 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3805 # The possible output files:
3806 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3809 for ac_file in $ac_files
3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3818 if { { ac_try="$ac_link_default"
3820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3821 *) ac_try_echo
=$ac_try;;
3823 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825 (eval "$ac_link_default") 2>&5
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }; then :
3829 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3830 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3831 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3832 # so that the user can short-circuit this test for compilers unknown to
3834 for ac_file
in $ac_files ''
3836 test -f "$ac_file" ||
continue
3838 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3841 # We found the default executable, but exeext='' is most
3845 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3847 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3849 # We set ac_cv_exeext here because the later test for it is not
3850 # safe: cross compilers may not add the suffix if given an `-o'
3851 # argument, so we may need to know it at that point already.
3852 # Even if this section looks crufty: it has the advantage of
3859 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3864 if test -z "$ac_file"; then :
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 { as_fn_set_status
77
3873 as_fn_error
"C++ compiler cannot create executables
3874 See \`config.log' for more details." "$LINENO" 5; }; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3877 $as_echo "yes" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3880 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3882 $as_echo "$ac_file" >&6; }
3883 ac_exeext
=$ac_cv_exeext
3885 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3886 ac_clean_files
=$ac_clean_files_save
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3888 $as_echo_n "checking for suffix of executables... " >&6; }
3889 if { { ac_try
="$ac_link"
3891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896 (eval "$ac_link") 2>&5
3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }; then :
3900 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3901 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3902 # work properly (i.e., refer to `conftest.exe'), while it won't with
3904 for ac_file
in conftest.exe conftest conftest.
*; do
3905 test -f "$ac_file" ||
continue
3907 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3908 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3917 See \`config.log' for more details." "$LINENO" 5; }
3919 rm -f conftest conftest
$ac_cv_exeext
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3921 $as_echo "$ac_cv_exeext" >&6; }
3923 rm -f conftest.
$ac_ext
3924 EXEEXT
=$ac_cv_exeext
3926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3932 FILE *f = fopen ("conftest.out", "w");
3933 return ferror (f) || fclose (f) != 0;
3939 ac_clean_files
="$ac_clean_files conftest.out"
3940 # Check that the compiler produces executables we can run. If not, either
3941 # the compiler is broken, or we cross compile.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3943 $as_echo_n "checking whether we are cross compiling... " >&6; }
3944 if test "$cross_compiling" != yes; then
3945 { { ac_try
="$ac_link"
3947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951 $as_echo "$ac_try_echo"; } >&5
3952 (eval "$ac_link") 2>&5
3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }
3956 if { ac_try='./conftest$ac_cv_exeext'
3957 { { case "(($ac_try" in
3958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3959 *) ac_try_echo
=$ac_try;;
3961 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3969 if test "$cross_compiling" = maybe
; then
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error
"cannot run C++ compiled programs.
3975 If you meant to cross compile, use \`--host'.
3976 See \`config.log' for more details." "$LINENO" 5; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3981 $as_echo "$cross_compiling" >&6; }
3983 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3984 ac_clean_files
=$ac_clean_files_save
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3986 $as_echo_n "checking for suffix of object files... " >&6; }
3987 if test "${ac_cv_objext+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
4001 rm -f conftest.o conftest.obj
4002 if { { ac_try
="$ac_compile"
4004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_compile") 2>&5
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; then :
4013 for ac_file in conftest.o conftest.obj conftest.*; do
4014 test -f "$ac_file" || continue;
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error "cannot compute suffix of object files
: cannot compile
4028 See \
`config.log' for more details." "$LINENO" 5; }
4030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4033 $as_echo "$ac_cv_objext" >&6; }
4034 OBJEXT=$ac_cv_objext
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4037 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4038 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4055 if ac_fn_cxx_try_compile "$LINENO"; then :
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4065 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4066 if test $ac_compiler_gnu = yes; then
4071 ac_test_CXXFLAGS=${CXXFLAGS+set}
4072 ac_save_CXXFLAGS=$CXXFLAGS
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4074 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4075 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4078 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4079 ac_cxx_werror_flag=yes
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4093 if ac_fn_cxx_try_compile "$LINENO"; then :
4094 ac_cv_prog_cxx_g=yes
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4108 if ac_fn_cxx_try_compile "$LINENO"; then :
4111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4124 if ac_fn_cxx_try_compile "$LINENO"; then :
4125 ac_cv_prog_cxx_g=yes
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4135 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4136 if test "$ac_test_CXXFLAGS" = set; then
4137 CXXFLAGS=$ac_save_CXXFLAGS
4138 elif test $ac_cv_prog_cxx_g = yes; then
4139 if test "$GXX" = yes; then
4145 if test "$GXX" = yes; then
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156 DEPDIR="${am__leading_dot}deps"
4158 ac_config_commands="$ac_config_commands depfiles"
4161 am_make=${MAKE-make}
4162 cat > confinc << 'END'
4164 @echo this is the am__doit target
4167 # If we don't find an include directive, just comment out the code.
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4169 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4173 # First try GNU make style include.
4174 echo "include confinc" > confmf
4175 # Ignore all kinds of additional output from `make'.
4176 case `$am_make -s -f confmf 2> /dev/null` in #(
4177 *the\ am__doit\ target*)
4183 # Now try BSD make style include.
4184 if test "$am__include" = "#"; then
4185 echo '.include
"confinc"' > confmf
4186 case `$am_make -s -f confmf 2> /dev/null` in #(
4187 *the\ am__doit\ target*)
4188 am__include=.include
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4197 $as_echo "$_am_result" >&6; }
4198 rm -f confinc confmf
4200 # Check whether --enable-dependency-tracking was given.
4201 if test "${enable_dependency_tracking+set}" = set; then :
4202 enableval=$enable_dependency_tracking;
4205 if test "x$enable_dependency_tracking" != xno; then
4206 am_depcomp="$ac_aux_dir/depcomp"
4209 if test "x$enable_dependency_tracking" != xno
; then
4219 depcc
="$CXX" am_compiler_list
=
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4222 $as_echo_n "checking dependency style of $depcc... " >&6; }
4223 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4226 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4227 # We make a subdir and do the tests there. Otherwise we can end up
4228 # making bogus files that we don't know about and never remove. For
4229 # instance it was reported that on HP-UX the gcc test will end up
4230 # making a dummy file named `D' -- because `-MD' means `put the output
4233 # Copy depcomp to subdir because otherwise we won't find it if we're
4234 # using a relative directory.
4235 cp "$am_depcomp" conftest.dir
4237 # We will build objects and dependencies in a subdirectory because
4238 # it helps to detect inapplicable dependency modes. For instance
4239 # both Tru64's cc and ICC support -MD to output dependencies as a
4240 # side effect of compilation, but ICC will put the dependencies in
4241 # the current directory while Tru64 will put them in the object
4245 am_cv_CXX_dependencies_compiler_type
=none
4246 if test "$am_compiler_list" = ""; then
4247 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4250 case " $depcc " in #(
4251 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4254 for depmode
in $am_compiler_list; do
4255 # Setup a source with many dependencies, because some compilers
4256 # like to wrap large dependency lists on column 80 (with \), and
4257 # we should not choose a depcomp mode which is confused by this.
4259 # We need to recreate these files for each test, as the compiler may
4260 # overwrite some of them when testing with obscure command lines.
4261 # This happens at least with the AIX C compiler.
4263 for i
in 1 2 3 4 5 6; do
4264 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4266 # Solaris 8's {/usr,}/bin/sh.
4267 touch sub
/conftst
$i.h
4269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4271 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4272 # mode. It turns out that the SunPro C++ compiler does not properly
4273 # handle `-M -o', and we need to detect this. Also, some Intel
4274 # versions had trouble with output in subdirs
4275 am__obj
=sub
/conftest.
${OBJEXT-o}
4276 am__minus_obj
="-o $am__obj"
4279 # This depmode causes a compiler race in universal mode.
4280 test "$am__universal" = false ||
continue
4283 # after this tag, mechanisms are not by side-effect, so they'll
4284 # only be used when explicitly requested
4285 if test "x$enable_dependency_tracking" = xyes
; then
4291 msvisualcpp | msvcmsys
)
4292 # This compiler won't grok `-c -o', but also, the minuso test has
4293 # not run yet. These depmodes are late enough in the game, and
4294 # so weak that their functioning should not be impacted.
4295 am__obj
=conftest.
${OBJEXT-o}
4300 if depmode
=$depmode \
4301 source=sub
/conftest.c object
=$am__obj \
4302 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4303 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4304 >/dev
/null
2>conftest.err
&&
4305 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4306 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4307 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4308 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4309 # icc doesn't choke on unknown options, it will just issue warnings
4310 # or remarks (even with -Werror). So we grep stderr for any message
4311 # that says an option was ignored or not supported.
4312 # When given -MP, icc 7.0 and 7.1 complain thusly:
4313 # icc: Command line warning: ignoring option '-M'; no argument required
4314 # The diagnosis changed in icc 8.0:
4315 # icc: Command line remark: option '-MP' not supported
4316 if (grep 'ignoring option' conftest.err ||
4317 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4318 am_cv_CXX_dependencies_compiler_type
=$depmode
4327 am_cv_CXX_dependencies_compiler_type
=none
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4332 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4333 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4336 test "x$enable_dependency_tracking" != xno \
4337 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4338 am__fastdepCXX_TRUE
=
4339 am__fastdepCXX_FALSE
='#'
4341 am__fastdepCXX_TRUE
='#'
4342 am__fastdepCXX_FALSE
=
4347 ac_cpp
='$CXXCPP $CPPFLAGS'
4348 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4352 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4353 if test -z "$CXXCPP"; then
4354 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4357 # Double quotes because CXXCPP needs to be expanded
4358 for CXXCPP
in "$CXX -E" "/lib/cpp"
4361 for ac_cxx_preproc_warn_flag
in '' yes
4363 # Use a header file that comes with gcc, so configuring glibc
4364 # with a fresh cross-compiler works.
4365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366 # <limits.h> exists even on freestanding compilers.
4367 # On the NeXT, cc -E runs the code through the compiler's parser,
4368 # not just through cpp. "Syntax error" is here to catch this case.
4369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4372 # include <limits.h>
4374 # include <assert.h>
4378 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4381 # Broken: fails on valid input.
4384 rm -f conftest.err conftest.
$ac_ext
4386 # OK, works on sane cases. Now check whether nonexistent headers
4387 # can be detected and how.
4388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390 #include <ac_nonexistent.h>
4392 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4393 # Broken: success on invalid input.
4396 # Passes both tests.
4400 rm -f conftest.err conftest.
$ac_ext
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.err conftest.
$ac_ext
4405 if $ac_preproc_ok; then :
4410 ac_cv_prog_CXXCPP
=$CXXCPP
4413 CXXCPP
=$ac_cv_prog_CXXCPP
4415 ac_cv_prog_CXXCPP
=$CXXCPP
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4418 $as_echo "$CXXCPP" >&6; }
4420 for ac_cxx_preproc_warn_flag
in '' yes
4422 # Use a header file that comes with gcc, so configuring glibc
4423 # with a fresh cross-compiler works.
4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425 # <limits.h> exists even on freestanding compilers.
4426 # On the NeXT, cc -E runs the code through the compiler's parser,
4427 # not just through cpp. "Syntax error" is here to catch this case.
4428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4431 # include <limits.h>
4433 # include <assert.h>
4437 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4440 # Broken: fails on valid input.
4443 rm -f conftest.err conftest.
$ac_ext
4445 # OK, works on sane cases. Now check whether nonexistent headers
4446 # can be detected and how.
4447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #include <ac_nonexistent.h>
4451 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4452 # Broken: success on invalid input.
4455 # Passes both tests.
4459 rm -f conftest.err conftest.
$ac_ext
4462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4463 rm -f conftest.err conftest.
$ac_ext
4464 if $ac_preproc_ok; then :
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
4470 See \`config.log' for more details." "$LINENO" 5; }
4474 ac_cpp
='$CPP $CPPFLAGS'
4475 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4480 ac_cpp
='$CPP $CPPFLAGS'
4481 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4484 if test -n "$ac_tool_prefix"; then
4485 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4486 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if test "${ac_cv_prog_CC+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4492 if test -n "$CC"; then
4493 ac_cv_prog_CC
="$CC" # Let the user override the test.
4495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4499 test -z "$as_dir" && as_dir
=.
4500 for ac_exec_ext
in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 if test -n "$CC"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4515 $as_echo "$CC" >&6; }
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4523 if test -z "$ac_cv_prog_CC"; then
4525 # Extract the first word of "gcc", so it can be a program name with args.
4526 set dummy gcc
; ac_word
=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4532 if test -n "$ac_ct_CC"; then
4533 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir
=.
4540 for ac_exec_ext
in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_ac_ct_CC
="gcc"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4553 if test -n "$ac_ct_CC"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4555 $as_echo "$ac_ct_CC" >&6; }
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4561 if test "x$ac_ct_CC" = x
; then
4564 case $cross_compiling:$ac_tool_warned in
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4568 ac_tool_warned
=yes ;;
4576 if test -z "$CC"; then
4577 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4579 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_CC+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4585 if test -n "$CC"; then
4586 ac_cv_prog_CC
="$CC" # Let the user override the test.
4588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir
=.
4593 for ac_exec_ext
in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 if test -n "$CC"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4608 $as_echo "$CC" >&6; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4617 if test -z "$CC"; then
4618 # Extract the first word of "cc", so it can be a program name with args.
4619 set dummy cc
; ac_word
=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC
="$CC" # Let the user override the test.
4629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir
=.
4634 for ac_exec_ext
in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4637 ac_prog_rejected
=yes
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 if test $ac_prog_rejected = yes; then
4649 # We found a bogon in the path, so make sure we never use it.
4650 set dummy
$ac_cv_prog_CC
4652 if test $# != 0; then
4653 # We chose a different compiler from the bogus one.
4654 # However, it has the same basename, so the bogon will be chosen
4655 # first if we set CC to just the basename; use the full file name.
4657 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4663 if test -n "$CC"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4665 $as_echo "$CC" >&6; }
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4673 if test -z "$CC"; then
4674 if test -n "$ac_tool_prefix"; then
4675 for ac_prog
in cl.exe
4677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4678 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if test "${ac_cv_prog_CC+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC
="$CC" # Let the user override the test.
4687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4691 test -z "$as_dir" && as_dir
=.
4692 for ac_exec_ext
in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 if test -n "$CC"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4707 $as_echo "$CC" >&6; }
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4714 test -n "$CC" && break
4717 if test -z "$CC"; then
4719 for ac_prog
in cl.exe
4721 # Extract the first word of "$ac_prog", so it can be a program name with args.
4722 set dummy
$ac_prog; ac_word
=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4728 if test -n "$ac_ct_CC"; then
4729 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir
=.
4736 for ac_exec_ext
in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_ac_ct_CC
="$ac_prog"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4749 if test -n "$ac_ct_CC"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4751 $as_echo "$ac_ct_CC" >&6; }
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4758 test -n "$ac_ct_CC" && break
4761 if test "x$ac_ct_CC" = x
; then
4764 case $cross_compiling:$ac_tool_warned in
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768 ac_tool_warned
=yes ;;
4777 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4779 as_fn_error
"no acceptable C compiler found in \$PATH
4780 See \`config.log' for more details." "$LINENO" 5; }
4782 # Provide some information about the compiler.
4783 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4786 for ac_option
in --version -v -V -qversion; do
4787 { { ac_try
="$ac_compiler $ac_option >&5"
4789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4793 $as_echo "$ac_try_echo"; } >&5
4794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4796 if test -s conftest.err; then
4798 ... rest of stderr output deleted ...
4799 10q' conftest.err >conftest.er1
4800 cat conftest.er1 >&5
4802 rm -f conftest.er1 conftest.err
4803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4804 test $ac_status = 0; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4808 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4809 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4826 if ac_fn_c_try_compile "$LINENO"; then :
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4836 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4837 if test $ac_compiler_gnu = yes; then
4842 ac_test_CFLAGS=${CFLAGS+set}
4843 ac_save_CFLAGS=$CFLAGS
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4845 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4846 if test "${ac_cv_prog_cc_g+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4849 ac_save_c_werror_flag=$ac_c_werror_flag
4850 ac_c_werror_flag=yes
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4864 if ac_fn_c_try_compile "$LINENO"; then :
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4879 if ac_fn_c_try_compile "$LINENO"; then :
4882 ac_c_werror_flag=$ac_save_c_werror_flag
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4895 if ac_fn_c_try_compile "$LINENO"; then :
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 ac_c_werror_flag=$ac_save_c_werror_flag
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4906 $as_echo "$ac_cv_prog_cc_g" >&6; }
4907 if test "$ac_test_CFLAGS" = set; then
4908 CFLAGS=$ac_save_CFLAGS
4909 elif test $ac_cv_prog_cc_g = yes; then
4910 if test "$GCC" = yes; then
4916 if test "$GCC" = yes; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4923 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4924 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4927 ac_cv_prog_cc_c89=no
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4933 #include <sys/types.h>
4934 #include <sys/stat.h>
4935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4936 struct buf { int x; };
4937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4938 static char *e (p, i)
4944 static char *f (char * (*g) (char **, int), char **p, ...)
4949 s = g (p, va_arg (v,int));
4954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4955 function prototypes and stuff, but not '\xHH' hex character constants.
4956 These don't provoke an error unfortunately, instead are silently treated
4957 as 'x'. The following induces an error, until -std is added to get
4958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4959 array size at least. It's necessary to write '\x00'==0 to get something
4960 that's true only with -std. */
4961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4964 inside strings and character constants. */
4966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4968 int test (int i, double x);
4969 struct s1 {int (*f) (int a);};
4970 struct s2 {int (*f) (double a);};
4971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4985 CC="$ac_save_CC $ac_arg"
4986 if ac_fn_c_try_compile "$LINENO"; then :
4987 ac_cv_prog_cc_c89=$ac_arg
4989 rm -f core conftest.err conftest.$ac_objext
4990 test "x$ac_cv_prog_cc_c89" != "xno" && break
4992 rm -f conftest.$ac_ext
4997 case "x$ac_cv_prog_cc_c89" in
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5000 $as_echo "none needed" >&6; } ;;
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5003 $as_echo "unsupported" >&6; } ;;
5005 CC="$CC $ac_cv_prog_cc_c89"
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5009 if test "x$ac_cv_prog_cc_c89" != xno; then :
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019 depcc="$CC" am_compiler_list=
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5022 $as_echo_n "checking dependency style of $depcc... " >&6; }
5023 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5026 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5027 # We make a subdir and do the tests there. Otherwise we can end up
5028 # making bogus files that we don't know about and never remove. For
5029 # instance it was reported that on HP-UX the gcc test will end up
5030 # making a dummy file named `D
' -- because `-MD' means
`put the output
5033 # Copy depcomp to subdir because otherwise we won't find it if we're
5034 # using a relative directory.
5035 cp "$am_depcomp" conftest.dir
5037 # We will build objects and dependencies in a subdirectory because
5038 # it helps to detect inapplicable dependency modes. For instance
5039 # both Tru64's cc and ICC support -MD to output dependencies as a
5040 # side effect of compilation, but ICC will put the dependencies in
5041 # the current directory while Tru64 will put them in the object
5045 am_cv_CC_dependencies_compiler_type=none
5046 if test "$am_compiler_list" = ""; then
5047 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5050 case " $depcc " in #(
5051 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5054 for depmode in $am_compiler_list; do
5055 # Setup a source with many dependencies, because some compilers
5056 # like to wrap large dependency lists on column 80 (with \), and
5057 # we should not choose a depcomp mode which is confused by this.
5059 # We need to recreate these files for each test, as the compiler may
5060 # overwrite some of them when testing with obscure command lines.
5061 # This happens at least with the AIX C compiler.
5063 for i in 1 2 3 4 5 6; do
5064 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5065 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
5066 # Solaris 8's
{/usr
,}/bin
/sh.
5067 touch sub
/conftst
$i.h
5069 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5071 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5072 # mode. It turns out that the SunPro C++ compiler does not properly
5073 # handle `-M -o', and we need to detect this. Also, some Intel
5074 # versions had trouble with output in subdirs
5075 am__obj
=sub
/conftest.
${OBJEXT-o}
5076 am__minus_obj
="-o $am__obj"
5079 # This depmode causes a compiler race in universal mode.
5080 test "$am__universal" = false ||
continue
5083 # after this tag, mechanisms are not by side-effect, so they'll
5084 # only be used when explicitly requested
5085 if test "x$enable_dependency_tracking" = xyes
; then
5091 msvisualcpp | msvcmsys
)
5092 # This compiler won't grok `-c -o', but also, the minuso test has
5093 # not run yet. These depmodes are late enough in the game, and
5094 # so weak that their functioning should not be impacted.
5095 am__obj
=conftest.
${OBJEXT-o}
5100 if depmode
=$depmode \
5101 source=sub
/conftest.c object
=$am__obj \
5102 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5103 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5104 >/dev
/null
2>conftest.err
&&
5105 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5106 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5107 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5108 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5109 # icc doesn't choke on unknown options, it will just issue warnings
5110 # or remarks (even with -Werror). So we grep stderr for any message
5111 # that says an option was ignored or not supported.
5112 # When given -MP, icc 7.0 and 7.1 complain thusly:
5113 # icc: Command line warning: ignoring option '-M'; no argument required
5114 # The diagnosis changed in icc 8.0:
5115 # icc: Command line remark: option '-MP' not supported
5116 if (grep 'ignoring option' conftest.err ||
5117 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5118 am_cv_CC_dependencies_compiler_type
=$depmode
5127 am_cv_CC_dependencies_compiler_type
=none
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5132 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5133 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5136 test "x$enable_dependency_tracking" != xno \
5137 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
5139 am__fastdepCC_FALSE
='#'
5141 am__fastdepCC_TRUE
='#'
5142 am__fastdepCC_FALSE
=
5147 ac_cpp
='$CPP $CPPFLAGS'
5148 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5152 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5153 # On Suns, sometimes $CPP names a directory.
5154 if test -n "$CPP" && test -d "$CPP"; then
5157 if test -z "$CPP"; then
5158 if test "${ac_cv_prog_CPP+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5161 # Double quotes because CPP needs to be expanded
5162 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5165 for ac_c_preproc_warn_flag
in '' yes
5167 # Use a header file that comes with gcc, so configuring glibc
5168 # with a fresh cross-compiler works.
5169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5170 # <limits.h> exists even on freestanding compilers.
5171 # On the NeXT, cc -E runs the code through the compiler's parser,
5172 # not just through cpp. "Syntax error" is here to catch this case.
5173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5176 # include <limits.h>
5178 # include <assert.h>
5182 if ac_fn_c_try_cpp
"$LINENO"; then :
5185 # Broken: fails on valid input.
5188 rm -f conftest.err conftest.
$ac_ext
5190 # OK, works on sane cases. Now check whether nonexistent headers
5191 # can be detected and how.
5192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194 #include <ac_nonexistent.h>
5196 if ac_fn_c_try_cpp
"$LINENO"; then :
5197 # Broken: success on invalid input.
5200 # Passes both tests.
5204 rm -f conftest.err conftest.
$ac_ext
5207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5208 rm -f conftest.err conftest.
$ac_ext
5209 if $ac_preproc_ok; then :
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5222 $as_echo "$CPP" >&6; }
5224 for ac_c_preproc_warn_flag
in '' yes
5226 # Use a header file that comes with gcc, so configuring glibc
5227 # with a fresh cross-compiler works.
5228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5229 # <limits.h> exists even on freestanding compilers.
5230 # On the NeXT, cc -E runs the code through the compiler's parser,
5231 # not just through cpp. "Syntax error" is here to catch this case.
5232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5235 # include <limits.h>
5237 # include <assert.h>
5241 if ac_fn_c_try_cpp
"$LINENO"; then :
5244 # Broken: fails on valid input.
5247 rm -f conftest.err conftest.
$ac_ext
5249 # OK, works on sane cases. Now check whether nonexistent headers
5250 # can be detected and how.
5251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #include <ac_nonexistent.h>
5255 if ac_fn_c_try_cpp
"$LINENO"; then :
5256 # Broken: success on invalid input.
5259 # Passes both tests.
5263 rm -f conftest.err conftest.
$ac_ext
5266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5267 rm -f conftest.err conftest.
$ac_ext
5268 if $ac_preproc_ok; then :
5271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5273 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5274 See \`config.log' for more details." "$LINENO" 5; }
5278 ac_cpp
='$CPP $CPPFLAGS'
5279 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5284 test -n "$build_alias" && ac_build_prefix
=$build_alias-
5286 if test "$cross_compiling" = yes; then :
5288 # Even if we're cross-compiling, we want a compiler here
5289 # that is not a cross-compiler.
5290 saved_cross
=$cross_compiling
5294 ac_cpp
='$CPP $BUILD_CPPFLAGS'
5295 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5296 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5297 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5298 if test -n "$ac_build_prefix"; then
5299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5300 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5306 if test -n "$BUILD_CC"; then
5307 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir
=.
5314 for ac_exec_ext
in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 BUILD_CC
=$ac_cv_prog_BUILD_CC
5327 if test -n "$BUILD_CC"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5329 $as_echo "$BUILD_CC" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5337 if test -z "$ac_cv_prog_BUILD_CC"; then
5338 ac_ct_BUILD_CC
=$BUILD_CC
5339 # Extract the first word of "gcc", so it can be a program name with args.
5340 set dummy gcc
; ac_word
=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5346 if test -n "$ac_ct_BUILD_CC"; then
5347 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5353 test -z "$as_dir" && as_dir
=.
5354 for ac_exec_ext
in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5367 if test -n "$ac_ct_BUILD_CC"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5369 $as_echo "$ac_ct_BUILD_CC" >&6; }
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5375 if test "x$ac_ct_BUILD_CC" = x
; then
5378 case $cross_compiling:$ac_tool_warned in
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned
=yes ;;
5384 BUILD_CC
=$ac_ct_BUILD_CC
5387 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5390 if test -z "$BUILD_CC"; then
5391 if test -n "$ac_build_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5393 set dummy
${ac_build_prefix}cc
; ac_word
=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5399 if test -n "$BUILD_CC"; then
5400 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir
=.
5407 for ac_exec_ext
in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 BUILD_CC
=$ac_cv_prog_BUILD_CC
5420 if test -n "$BUILD_CC"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5422 $as_echo "$BUILD_CC" >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5430 if test -z "$ac_cv_prog_BUILD_CC"; then
5431 ac_ct_BUILD_CC
=$BUILD_CC
5432 # Extract the first word of "cc", so it can be a program name with args.
5433 set dummy cc
; ac_word
=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5439 if test -n "$ac_ct_BUILD_CC"; then
5440 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir
=.
5447 for ac_exec_ext
in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449 ac_cv_prog_ac_ct_BUILD_CC
="cc"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5460 if test -n "$ac_ct_BUILD_CC"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5462 $as_echo "$ac_ct_BUILD_CC" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5468 if test "x$ac_ct_BUILD_CC" = x
; then
5471 case $cross_compiling:$ac_tool_warned in
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5475 ac_tool_warned
=yes ;;
5477 BUILD_CC
=$ac_ct_BUILD_CC
5480 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5484 if test -z "$BUILD_CC"; then
5485 # Extract the first word of "cc", so it can be a program name with args.
5486 set dummy cc
; ac_word
=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5492 if test -n "$BUILD_CC"; then
5493 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5500 test -z "$as_dir" && as_dir
=.
5501 for ac_exec_ext
in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5504 ac_prog_rejected
=yes
5507 ac_cv_prog_BUILD_CC
="cc"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 if test $ac_prog_rejected = yes; then
5516 # We found a bogon in the path, so make sure we never use it.
5517 set dummy
$ac_cv_prog_BUILD_CC
5519 if test $# != 0; then
5520 # We chose a different compiler from the bogus one.
5521 # However, it has the same basename, so the bogon will be chosen
5522 # first if we set BUILD_CC to just the basename; use the full file name.
5524 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
5529 BUILD_CC
=$ac_cv_prog_BUILD_CC
5530 if test -n "$BUILD_CC"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5532 $as_echo "$BUILD_CC" >&6; }
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5540 if test -z "$BUILD_CC"; then
5541 if test -n "$ac_build_prefix"; then
5544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5545 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
5551 if test -n "$BUILD_CC"; then
5552 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5558 test -z "$as_dir" && as_dir
=.
5559 for ac_exec_ext
in '' $ac_executable_extensions; do
5560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 BUILD_CC
=$ac_cv_prog_BUILD_CC
5572 if test -n "$BUILD_CC"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5574 $as_echo "$BUILD_CC" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5581 test -n "$BUILD_CC" && break
5584 if test -z "$BUILD_CC"; then
5585 ac_ct_BUILD_CC
=$BUILD_CC
5588 # Extract the first word of "$ac_prog", so it can be a program name with args.
5589 set dummy
$ac_prog; ac_word
=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5593 $as_echo_n "(cached) " >&6
5595 if test -n "$ac_ct_BUILD_CC"; then
5596 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5602 test -z "$as_dir" && as_dir
=.
5603 for ac_exec_ext
in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5616 if test -n "$ac_ct_BUILD_CC"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5618 $as_echo "$ac_ct_BUILD_CC" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5625 test -n "$ac_ct_BUILD_CC" && break
5628 if test "x$ac_ct_BUILD_CC" = x
; then
5631 case $cross_compiling:$ac_tool_warned in
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635 ac_tool_warned
=yes ;;
5637 BUILD_CC
=$ac_ct_BUILD_CC
5644 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5646 as_fn_error
"no acceptable C compiler found in \$PATH
5647 See \`config.log' for more details." "$LINENO" 5; }
5649 # Provide some information about the compiler.
5650 echo "$as_me:$LINENO:" \
5651 "checking for C compiler version" >&5
5652 ac_compiler
=`set X $ac_compile; echo $2`
5653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5654 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657 test $ac_status = 0; }
5658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5659 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662 test $ac_status = 0; }
5663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5664 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; }
5669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5680 ac_clean_files_save
=$ac_clean_files
5681 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5682 # Try to create an executable without -o first, disregard a.out.
5683 # It will help us diagnose broken compilers, and finding out an intuition
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5686 $as_echo_n "checking whether the C compiler works... " >&6; }
5687 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5689 # The possible output files:
5690 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5693 for ac_file
in $ac_files
5696 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5697 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
5702 if { { ac_try
="$ac_link_default"
5704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5708 $as_echo "$ac_try_echo"; } >&5
5709 (eval "$ac_link_default") 2>&5
5711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712 test $ac_status = 0; }; then :
5713 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
5714 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
5715 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5716 # so that the user can short-circuit this test for compilers unknown to
5718 for ac_file in $ac_files ''
5720 test -f "$ac_file" || continue
5722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5725 # We found the default executable, but exeext='' is most
5729 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5731 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5733 # We set ac_cv_exeext here because the later test for it is not
5734 # safe: cross compilers may not add the suffix if given an `-o'
5735 # argument, so we may need to know it at that point already.
5736 # Even if this section looks crufty: it has the advantage of
5743 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5748 if test -z "$ac_file"; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 $as_echo "$as_me: failed program was:" >&5
5752 sed 's
/^
/|
/' conftest.$ac_ext >&5
5754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5755 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
5756 { as_fn_set_status 77
5757 as_fn_error "C compiler cannot create executables
5758 See \`config.log
' for more details." "$LINENO" 5; }; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5761 $as_echo "yes" >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5764 $as_echo_n "checking for C compiler default output file name... " >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5766 $as_echo "$ac_file" >&6; }
5767 ac_build_exeext=$ac_cv_build_exeext
5769 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5770 ac_clean_files=$ac_clean_files_save
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5772 $as_echo_n "checking for suffix of executables... " >&6; }
5773 if { { ac_try="$ac_link"
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5779 $as_echo "$ac_try_echo"; } >&5
5780 (eval "$ac_link") 2>&5
5782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783 test $ac_status = 0; }; then :
5784 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
5785 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
5786 # work properly (i.e., refer to `conftest.exe
'), while it won't with
5788 for ac_file
in conftest.exe conftest conftest.
*; do
5789 test -f "$ac_file" ||
continue
5791 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5792 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 as_fn_error
"cannot compute suffix of executables: cannot compile and link
5801 See \`config.log' for more details." "$LINENO" 5; }
5803 rm -f conftest conftest
$ac_cv_build_exeext
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5805 $as_echo "$ac_cv_build_exeext" >&6; }
5807 rm -f conftest.
$ac_ext
5808 BUILD_EXEEXT
=$ac_cv_build_exeext
5809 ac_build_exeext
=$BUILD_EXEEXT
5810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5816 FILE *f = fopen ("conftest.out", "w");
5817 return ferror (f) || fclose (f) != 0;
5823 ac_clean_files
="$ac_clean_files conftest.out"
5824 # Check that the compiler produces executables we can run. If not, either
5825 # the compiler is broken, or we cross compile.
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5827 $as_echo_n "checking whether we are cross compiling... " >&6; }
5828 if test "$cross_compiling" != yes; then
5829 { { ac_try
="$ac_link"
5831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5835 $as_echo "$ac_try_echo"; } >&5
5836 (eval "$ac_link") 2>&5
5838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5839 test $ac_status = 0; }
5840 if { ac_try='./conftest$ac_cv_build_exeext'
5841 { { case "(($ac_try" in
5842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5843 *) ac_try_echo
=$ac_try;;
5845 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5846 $as_echo "$ac_try_echo"; } >&5
5847 (eval "$ac_try") 2>&5
5849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850 test $ac_status = 0; }; }; then
5853 if test "$cross_compiling" = maybe
; then
5856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 as_fn_error
"cannot run C compiled programs.
5859 If you meant to cross compile, use \`--host'.
5860 See \`config.log' for more details." "$LINENO" 5; }
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5865 $as_echo "$cross_compiling" >&6; }
5867 rm -f conftest.
$ac_ext conftest
$ac_cv_build_exeext conftest.out
5868 ac_clean_files
=$ac_clean_files_save
5871 # Restore configuration environment
5872 cross_compiling
=$saved_cross
5875 ac_cpp
='$CPP $CPPFLAGS'
5876 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5881 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
5883 CFLAGS
="$mule_backup_CFLAGS"
5884 CXXFLAGS
="$mule_backup_CXXFLAGS"
5885 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
5886 for ac_prog
in gawk mawk nawk
awk
5888 # Extract the first word of "$ac_prog", so it can be a program name with args.
5889 set dummy
$ac_prog; ac_word
=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if test "${ac_cv_prog_AWK+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5895 if test -n "$AWK"; then
5896 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5902 test -z "$as_dir" && as_dir
=.
5903 for ac_exec_ext
in '' $ac_executable_extensions; do
5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905 ac_cv_prog_AWK
="$ac_prog"
5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 if test -n "$AWK"; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5918 $as_echo "$AWK" >&6; }
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 $as_echo "no" >&6; }
5925 test -n "$AWK" && break
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5929 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5930 if test "${ac_cv_path_GREP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5933 if test -z "$GREP"; then
5934 ac_path_GREP_found
=false
5935 # Loop through the user's path and test for each of PROGNAME-LIST
5936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5937 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5940 test -z "$as_dir" && as_dir
=.
5941 for ac_prog
in grep ggrep
; do
5942 for ac_exec_ext
in '' $ac_executable_extensions; do
5943 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5944 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5945 # Check for GNU ac_path_GREP and select it if it is found.
5946 # Check for GNU $ac_path_GREP
5947 case `"$ac_path_GREP" --version 2>&1` in
5949 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5952 $as_echo_n 0123456789 >"conftest.in"
5955 cat "conftest.in" "conftest.in" >"conftest.tmp"
5956 mv "conftest.tmp" "conftest.in"
5957 cp "conftest.in" "conftest.nl"
5958 $as_echo 'GREP' >> "conftest.nl"
5959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5960 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5961 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5963 # Best one so far, save it but keep looking for a better one
5964 ac_cv_path_GREP
="$ac_path_GREP"
5965 ac_path_GREP_max
=$ac_count
5967 # 10*(2^10) chars as input seems more than enough
5968 test $ac_count -gt 10 && break
5970 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5973 $ac_path_GREP_found && break 3
5978 if test -z "$ac_cv_path_GREP"; then
5979 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5982 ac_cv_path_GREP
=$GREP
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5987 $as_echo "$ac_cv_path_GREP" >&6; }
5988 GREP
="$ac_cv_path_GREP"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5992 $as_echo_n "checking for egrep... " >&6; }
5993 if test "${ac_cv_path_EGREP+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5997 then ac_cv_path_EGREP
="$GREP -E"
5999 if test -z "$EGREP"; then
6000 ac_path_EGREP_found
=false
6001 # Loop through the user's path and test for each of PROGNAME-LIST
6002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6003 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6006 test -z "$as_dir" && as_dir
=.
6007 for ac_prog
in egrep; do
6008 for ac_exec_ext
in '' $ac_executable_extensions; do
6009 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6010 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
6011 # Check for GNU ac_path_EGREP and select it if it is found.
6012 # Check for GNU $ac_path_EGREP
6013 case `"$ac_path_EGREP" --version 2>&1` in
6015 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6018 $as_echo_n 0123456789 >"conftest.in"
6021 cat "conftest.in" "conftest.in" >"conftest.tmp"
6022 mv "conftest.tmp" "conftest.in"
6023 cp "conftest.in" "conftest.nl"
6024 $as_echo 'EGREP' >> "conftest.nl"
6025 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6026 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6027 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6028 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6029 # Best one so far, save it but keep looking for a better one
6030 ac_cv_path_EGREP
="$ac_path_EGREP"
6031 ac_path_EGREP_max
=$ac_count
6033 # 10*(2^10) chars as input seems more than enough
6034 test $ac_count -gt 10 && break
6036 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6039 $ac_path_EGREP_found && break 3
6044 if test -z "$ac_cv_path_EGREP"; then
6045 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6048 ac_cv_path_EGREP
=$EGREP
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6054 $as_echo "$ac_cv_path_EGREP" >&6; }
6055 EGREP
="$ac_cv_path_EGREP"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6059 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6061 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6062 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6063 $as_echo_n "(cached) " >&6
6065 cat >conftest.
make <<\_ACEOF
6068 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6070 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6071 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6073 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6075 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6079 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6081 $as_echo "yes" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 SET_MAKE
="MAKE=${MAKE-make}"
6090 for ac_prog
in flex
lex
6092 # Extract the first word of "$ac_prog", so it can be a program name with args.
6093 set dummy
$ac_prog; 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_LEX+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6099 if test -n "$LEX"; then
6100 ac_cv_prog_LEX
="$LEX" # 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_LEX
="$ac_prog"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 if test -n "$LEX"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6122 $as_echo "$LEX" >&6; }
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6129 test -n "$LEX" && break
6131 test -n "$LEX" || LEX
=":"
6133 if test "x$LEX" != "x:"; then
6134 cat >conftest.l
<<_ACEOF
6140 e { yyless (input () != 0); }
6141 f { unput (yytext[0]); }
6142 . { BEGIN INITIAL; }
6144 #ifdef YYTEXT_POINTER
6145 extern char *yytext;
6150 return ! yylex () + ! yywrap ();
6153 { { ac_try
="$LEX conftest.l"
6155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6159 $as_echo "$ac_try_echo"; } >&5
6160 (eval "$LEX conftest.l") 2>&5
6162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163 test $ac_status = 0; }
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6165 $as_echo_n "checking lex output file root... " >&6; }
6166 if test "${ac_cv_prog_lex_root+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6170 if test -f lex.yy.c; then
6171 ac_cv_prog_lex_root=lex.yy
6172 elif test -f lexyy.c; then
6173 ac_cv_prog_lex_root=lexyy
6175 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6179 $as_echo "$ac_cv_prog_lex_root" >&6; }
6180 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6182 if test -z "${LEXLIB+set}"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6184 $as_echo_n "checking lex library... " >&6; }
6185 if test "${ac_cv_lib_lex+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6190 ac_cv_lib_lex='none needed'
6191 for ac_lib in '' -lfl -ll; do
6192 LIBS="$ac_lib $ac_save_LIBS"
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 `cat $LEX_OUTPUT_ROOT.c
`
6197 if ac_fn_c_try_link "$LINENO"; then :
6198 ac_cv_lib_lex=$ac_lib
6200 rm -f core conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
6202 test "$ac_cv_lib_lex" != 'none needed' && break
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6208 $as_echo "$ac_cv_lib_lex" >&6; }
6209 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6214 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6215 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6218 # POSIX says lex can declare yytext either as a pointer or an array; the
6219 # default is implementation-dependent. Figure out which it is, since
6220 # not all implementations provide the %pointer and %array declarations.
6221 ac_cv_prog_lex_yytext_pointer=no
6223 LIBS="$LEXLIB $ac_save_LIBS"
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 #define YYTEXT_POINTER 1
6227 `cat $LEX_OUTPUT_ROOT.c
`
6229 if ac_fn_c_try_link "$LINENO"; then :
6230 ac_cv_prog_lex_yytext_pointer=yes
6232 rm -f core conftest.err conftest.$ac_objext \
6233 conftest$ac_exeext conftest.$ac_ext
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6238 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6239 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6241 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6244 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6256 if test -n "$RANLIB"; then
6257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 RANLIB=$ac_cv_prog_RANLIB
6277 if test -n "$RANLIB"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6279 $as_echo "$RANLIB" >&6; }
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6287 if test -z "$ac_cv_prog_RANLIB"; then
6288 ac_ct_RANLIB=$RANLIB
6289 # Extract the first word of "ranlib", so it can be a program name with args.
6290 set dummy ranlib; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
6296 if test -n "$ac_ct_RANLIB"; then
6297 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_ac_ct_RANLIB="ranlib"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6317 if test -n "$ac_ct_RANLIB"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6319 $as_echo "$ac_ct_RANLIB" >&6; }
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6325 if test "x$ac_ct_RANLIB" = x; then
6328 case $cross_compiling:$ac_tool_warned in
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332 ac_tool_warned=yes ;;
6334 RANLIB=$ac_ct_RANLIB
6337 RANLIB="$ac_cv_prog_RANLIB"
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6341 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6342 if test "${ac_cv_path_SED+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6345 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6346 for ac_i in 1 2 3 4 5 6 7; do
6347 ac_script="$ac_script$as_nl$ac_script"
6349 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6350 { ac_script=; unset ac_script;}
6351 if test -z "$SED"; then
6352 ac_path_SED_found=false
6353 # Loop through the user's path and test for each of PROGNAME-LIST
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_prog in sed gsed; do
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6362 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6363 # Check for GNU ac_path_SED and select it if it is found.
6364 # Check for GNU $ac_path_SED
6365 case `"$ac_path_SED" --version 2>&1` in
6367 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6370 $as_echo_n 0123456789 >"conftest.in"
6373 cat "conftest.in" "conftest.in" >"conftest.tmp"
6374 mv "conftest.tmp" "conftest.in"
6375 cp "conftest.in" "conftest.nl"
6376 $as_echo '' >> "conftest.nl"
6377 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6379 as_fn_arith $ac_count + 1 && ac_count=$as_val
6380 if test $ac_count -gt ${ac_path_SED_max-0}; then
6381 # Best one so far, save it but keep looking for a better one
6382 ac_cv_path_SED="$ac_path_SED"
6383 ac_path_SED_max=$ac_count
6385 # 10*(2^10) chars as input seems more than enough
6386 test $ac_count -gt 10 && break
6388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6391 $ac_path_SED_found && break 3
6396 if test -z "$ac_cv_path_SED"; then
6397 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6405 $as_echo "$ac_cv_path_SED" >&6; }
6406 SED="$ac_cv_path_SED"
6409 for ac_prog in 'bison -y' byacc
6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
6412 set dummy $ac_prog; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if test "${ac_cv_prog_YACC+set}" = set; then :
6416 $as_echo_n "(cached) " >&6
6418 if test -n "$YACC"; then
6419 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_YACC="$ac_prog"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 YACC=$ac_cv_prog_YACC
6439 if test -n "$YACC"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6441 $as_echo "$YACC" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6448 test -n "$YACC" && break
6450 test -n "$YACC" || YACC="yacc"
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$RANLIB"; then
6462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 RANLIB=$ac_cv_prog_RANLIB
6482 if test -n "$RANLIB"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6484 $as_echo "$RANLIB" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6492 if test -z "$ac_cv_prog_RANLIB"; then
6493 ac_ct_RANLIB=$RANLIB
6494 # Extract the first word of "ranlib", so it can be a program name with args.
6495 set dummy ranlib; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6501 if test -n "$ac_ct_RANLIB"; then
6502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_RANLIB="ranlib"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6522 if test -n "$ac_ct_RANLIB"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6524 $as_echo "$ac_ct_RANLIB" >&6; }
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6530 if test "x$ac_ct_RANLIB" = x; then
6533 case $cross_compiling:$ac_tool_warned in
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6539 RANLIB=$ac_ct_RANLIB
6542 RANLIB="$ac_cv_prog_RANLIB"
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}strip; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if test "${ac_cv_prog_STRIP+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6553 if test -n "$STRIP"; then
6554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 STRIP=$ac_cv_prog_STRIP
6574 if test -n "$STRIP"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6576 $as_echo "$STRIP" >&6; }
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6584 if test -z "$ac_cv_prog_STRIP"; then
6586 # Extract the first word of "strip", so it can be a program name with args.
6587 set dummy strip; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6593 if test -n "$ac_ct_STRIP"; then
6594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_prog_ac_ct_STRIP="strip"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6614 if test -n "$ac_ct_STRIP"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6616 $as_echo "$ac_ct_STRIP" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6622 if test "x$ac_ct_STRIP" = x; then
6625 case $cross_compiling:$ac_tool_warned in
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6634 STRIP="$ac_cv_prog_STRIP"
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}ar; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if test "${ac_cv_prog_AR+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6645 if test -n "$AR"; then
6646 ac_cv_prog_AR="$AR" # Let the user override the test.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_prog_AR="${ac_tool_prefix}ar"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 if test -n "$AR"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6668 $as_echo "$AR" >&6; }
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6676 if test -z "$ac_cv_prog_AR"; then
6678 # Extract the first word of "ar", so it can be a program name with args.
6679 set dummy ar; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6683 $as_echo_n "(cached) " >&6
6685 if test -n "$ac_ct_AR"; then
6686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_prog_ac_ct_AR="ar"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6706 if test -n "$ac_ct_AR"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6708 $as_echo "$ac_ct_AR" >&6; }
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6714 if test "x$ac_ct_AR" = x; then
6717 case $cross_compiling:$ac_tool_warned in
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6729 if test -n "$ac_tool_prefix"; then
6730 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}ld; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_LD+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6737 if test -n "$LD"; then
6738 ac_cv_prog_LD="$LD" # Let the user override the test.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_LD="${ac_tool_prefix}ld"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 if test -n "$LD"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6760 $as_echo "$LD" >&6; }
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6768 if test -z "$ac_cv_prog_LD"; then
6770 # Extract the first word of "ld", so it can be a program name with args.
6771 set dummy ld; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6777 if test -n "$ac_ct_LD"; then
6778 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_prog_ac_ct_LD="ld"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6798 if test -n "$ac_ct_LD"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6800 $as_echo "$ac_ct_LD" >&6; }
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6806 if test "x$ac_ct_LD" = x; then
6809 case $cross_compiling:$ac_tool_warned in
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6822 # Check whether --enable-monolithic was given.
6823 if test "${enable_monolithic+set}" = set; then :
6824 enableval=$enable_monolithic;
6827 if test ${enable_monolithic:-yes} = yes; then
6829 MONOLITHIC_FALSE='#'
6836 # Check whether --enable-amule-daemon was given.
6837 if test "${enable_amule_daemon+set}" = set; then :
6838 enableval=$enable_amule_daemon;
6841 if test ${enable_amule_daemon:-no} = yes; then
6843 AMULE_DAEMON_FALSE='#'
6845 AMULE_DAEMON_TRUE='#'
6850 # Check whether --enable-amulecmd was given.
6851 if test "${enable_amulecmd+set}" = set; then :
6852 enableval=$enable_amulecmd;
6855 if test ${enable_amulecmd:-no} = yes; then
6857 COMPILE_CMD_FALSE='#'
6859 COMPILE_CMD_TRUE='#'
6864 # Check whether --enable-webserver was given.
6865 if test "${enable_webserver+set}" = set; then :
6866 enableval=$enable_webserver;
6869 if test ${enable_webserver:-no} = yes; then
6878 # Check whether --enable-amule-gui was given.
6879 if test "${enable_amule_gui+set}" = set; then :
6880 enableval=$enable_amule_gui;
6883 if test ${enable_amule_gui:-no} = yes; then
6892 # Check whether --enable-cas was given.
6893 if test "${enable_cas+set}" = set; then :
6894 enableval=$enable_cas;
6897 if test ${enable_cas:-no} = yes; then
6906 # Check whether --enable-wxcas was given.
6907 if test "${enable_wxcas+set}" = set; then :
6908 enableval=$enable_wxcas;
6911 if test ${enable_wxcas:-no} = yes; then
6920 # Check whether --enable-ed2k was given.
6921 if test "${enable_ed2k+set}" = set; then :
6922 enableval=$enable_ed2k;
6925 if test ${enable_ed2k:-yes} = yes; then
6934 # Check whether --enable-alc was given.
6935 if test "${enable_alc+set}" = set; then :
6936 enableval=$enable_alc;
6939 if test ${enable_alc:-no} = yes; then
6948 # Check whether --enable-alcc was given.
6949 if test "${enable_alcc+set}" = set; then :
6950 enableval=$enable_alcc;
6953 if test ${enable_alcc:-no} = yes; then
6962 # Check whether --enable-xas was given.
6963 if test "${enable_xas+set}" = set; then :
6964 enableval=$enable_xas;
6967 if test ${enable_xas:-no} = yes; then
6976 # Check whether --enable-fileview was given.
6977 if test "${enable_fileview+set}" = set; then :
6978 enableval=$enable_fileview;
6981 if test ${enable_fileview:-no} = yes; then
6990 # Check whether --enable-plasmamule was given.
6991 if test "${enable_plasmamule+set}" = set; then :
6992 enableval=$enable_plasmamule;
6997 # Run all the tests with static linkage if we want a statically linked binary
6998 # Check whether --enable-static was given.
6999 if test "${enable_static+set}" = set; then :
7000 enableval=$enable_static;
7004 if test ${enable_static:-no} = yes; then :
7005 LDFLAGS="$LDFLAGS -static"
7010 # Check whether --with-kde4-config was given.
7011 if test "${with_kde4_config+set}" = set; then :
7012 withval=$with_kde4_config; KDE4_CONFIG=$withval
7017 # Check whether --enable-kde-in-home was given.
7018 if test "${enable_kde_in_home+set}" = set; then :
7019 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7027 # Check whether --with-moc was given.
7028 if test "${with_moc+set}" = set; then :
7029 withval=$with_moc; QT_MOC=$withval
7036 # Default is yes, because they're most likely compatible.
7037 # However, this is only used when cross-compiling.
7039 # Check whether --with-gnu-malloc was given.
7040 if test "${with_gnu_malloc+set}" = set; then :
7041 withval=$with_gnu_malloc; gnumalloc=$withval
7048 # Checking for libs before all other stuff to break
7049 # configure as soon as possible in case of a missing one
7050 # to avoid losing too much time
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7055 $as_echo_n "checking for ANSI C header files... " >&6; }
7056 if test "${ac_cv_header_stdc+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7074 if ac_fn_c_try_compile "$LINENO"; then :
7075 ac_cv_header_stdc=yes
7077 ac_cv_header_stdc=no
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081 if test $ac_cv_header_stdc = yes; then
7082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7089 $EGREP "memchr" >/dev/null 2>&1; then :
7092 ac_cv_header_stdc=no
7098 if test $ac_cv_header_stdc = yes; then
7099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106 $EGREP "free" >/dev/null 2>&1; then :
7109 ac_cv_header_stdc=no
7115 if test $ac_cv_header_stdc = yes; then
7116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7117 if test "$cross_compiling" = yes; then :
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7124 #if ((' ' & 0x0FF) == 0x020)
7125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7128 # define ISLOWER(c) \
7129 (('a' <= (c) && (c) <= 'i') \
7130 || ('j' <= (c) && (c) <= 'r') \
7131 || ('s' <= (c) && (c) <= 'z'))
7132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7140 for (i = 0; i < 256; i++)
7141 if (XOR (islower (i), ISLOWER (i))
7142 || toupper (i) != TOUPPER (i))
7147 if ac_fn_c_try_run "$LINENO"; then :
7150 ac_cv_header_stdc=no
7152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7153 conftest.$ac_objext conftest.beam conftest.$ac_ext
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7159 $as_echo "$ac_cv_header_stdc" >&6; }
7160 if test $ac_cv_header_stdc = yes; then
7162 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7166 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7167 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7168 inttypes.h stdint.h unistd.h
7170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7171 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7173 eval as_val=\$$as_ac_Header
7174 if test "x$as_val" = x""yes; then :
7175 cat >>confdefs.h <<_ACEOF
7176 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7184 if test ${enable_cas:-no} = yes; then :
7188 # Check whether --with-gdlib-prefix was given.
7189 if test "${with_gdlib_prefix+set}" = set; then :
7190 withval=$with_gdlib_prefix;
7194 # Check whether --with-gdlib-config was given.
7195 if test "${with_gdlib_config+set}" = set; then :
7196 withval=$with_gdlib_config;
7202 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7203 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7204 GDLIB_CONFIG_NAME=gdlib-config
7206 if test -n "$with_gdlib_config"; then :
7207 GDLIB_CONFIG_NAME="$with_gdlib_config"
7210 # deal with optional prefix
7211 if test -n "$with_gdlib_prefix"; then :
7212 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7215 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7216 if test -x "$GDLIB_CONFIG_NAME"; then :
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7219 $as_echo_n "checking for gdlib-config... " >&6; }
7220 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7222 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7225 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7226 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7230 $as_echo_n "(cached) " >&6
7232 case $GDLIB_CONFIG_PATH in
7234 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7239 for as_dir in $as_dummy
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7257 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7258 if test -n "$GDLIB_CONFIG_PATH"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7260 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7269 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7272 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7273 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7275 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7276 gdlib_config_major_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7277 gdlib_config_minor_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7278 gdlib_config_micro_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7281 if test $gdlib_config_major_version -gt 2; then
7283 elif test $gdlib_config_major_version -eq 2; then
7285 if test $gdlib_config_minor_version -gt 0; then
7287 elif test $gdlib_config_minor_version -eq 0; then
7288 if test $gdlib_config_micro_version -ge 0; then
7298 if test -z "$gdlib_ver_ok"; then :
7300 if test -z "$GDLIB_VERSION"; then :
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7306 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7314 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7315 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7316 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7317 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7318 mule_backup_CFLAGS="$CFLAGS"
7319 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7320 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7321 if test "x$ac_cv_header_gd_h" = x""yes; then :
7333 CFLAGS="$mule_backup_CFLAGS"
7339 if test -n "$GDLIB_VERSION"; then :
7342 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7350 if test -z "$CAS_DEFS"; then :
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7352 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7353 Please check that gdlib-config is in your default path, check out
7354 LD_LIBRARY_PATH or equivalent variable.
7355 Or this might also be that your gdlib-config has other name.
7356 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7357 (replace /usr/bin/gdlib-config with a valid path to your
7359 If you use compiled packages check if you have devel pack installed.
7360 To download the latest version check http://www.boutell.com/gd for
7362 $as_echo "$as_me: WARNING:
7363 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7364 Please check that gdlib-config is in your default path, check out
7365 LD_LIBRARY_PATH or equivalent variable.
7366 Or this might also be that your gdlib-config has other name.
7367 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7368 (replace /usr/bin/gdlib-config with a valid path to your
7370 If you use compiled packages check if you have devel pack installed.
7371 To download the latest version check http://www.boutell.com/gd for
7374 _mule_has_warnings=yes
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7381 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7382 if test "${ac_cv_header_stdbool_h+set}" = set; then :
7383 $as_echo_n "(cached) " >&6
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7388 #include <stdbool.h>
7390 "error: bool is not defined"
7393 "error: false is not defined"
7396 "error: false is not 0"
7399 "error: true is not defined"
7402 "error: true is not 1"
7404 #ifndef __bool_true_false_are_defined
7405 "error: __bool_true_false_are_defined is not defined"
7408 struct s { _Bool s: 1; _Bool t; } s;
7410 char a[true == 1 ? 1 : -1];
7411 char b[false == 0 ? 1 : -1];
7412 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7413 char d[(bool) 0.5 == true ? 1 : -1];
7415 char f[(_Bool) 0.0 == false ? 1 : -1];
7417 char h[sizeof (_Bool)];
7419 enum { j = false, k = true, l = false * true, m = true * 256 };
7420 /* The following fails for
7421 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7423 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7424 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7425 # if defined __xlc__ || defined __GNUC__
7426 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7427 reported by James Lemley on 2005-10-05; see
7428 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7429 This test is not quite right, since xlc is allowed to
7430 reject this program, as the initializer for xlcbug is
7431 not one of the forms that C requires support for.
7432 However, doing the test right would require a runtime
7433 test, and that would make cross-compilation harder.
7434 Let us hope that IBM fixes the xlc bug, and also adds
7435 support for this kind of constant expression. In the
7436 meantime, this test will reject xlc, which is OK, since
7437 our stdbool.h substitute should suffice. We also test
7438 this with GCC, where it should work, to detect more
7439 quickly whether someone messes up the test in the
7441 char digs[] = "0123456789";
7442 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7444 /* Catch a bug in an HP-UX C compiler. See
7445 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7446 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7457 /* Refer to every declared value, to avoid compiler optimizations. */
7458 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7459 + !m + !n + !o + !p + !q + !pq);
7465 if ac_fn_c_try_compile "$LINENO"; then :
7466 ac_cv_header_stdbool_h=yes
7468 ac_cv_header_stdbool_h=no
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7473 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7474 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7475 if test "x$ac_cv_type__Bool" = x""yes; then :
7477 cat >>confdefs.h <<_ACEOF
7478 #define HAVE__BOOL 1
7484 if test $ac_cv_header_stdbool_h = yes; then
7486 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7491 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7492 if test "${ac_cv_c_const+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7501 /* FIXME: Include the comments suggested by Paul. */
7503 /* Ultrix mips cc rejects this. */
7504 typedef int charset[2];
7506 /* SunOS 4.1.1 cc rejects this. */
7507 char const *const *pcpcc;
7509 /* NEC SVR4.0.2 mips cc rejects this. */
7510 struct point {int x, y;};
7511 static struct point const zero = {0,0};
7512 /* AIX XL C 1.02.0.0 rejects this.
7513 It does not let you subtract one const X* pointer from another in
7514 an arm of an if-expression whose if-part is not a constant
7516 const char *g = "string";
7517 pcpcc = &g + (g ? g-g : 0);
7518 /* HPUX 7.0 cc rejects these. */
7520 ppc = (char**) pcpcc;
7521 pcpcc = (char const *const *) ppc;
7522 { /* SCO 3.2v4 cc rejects this. */
7524 char const *s = 0 ? (char *) 0 : (char const *) 0;
7529 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7531 const int *foo = &x[0];
7534 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7535 typedef const int *iptr;
7539 { /* AIX XL C 1.02.0.0 rejects this saying
7540 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7541 struct s { int j; const int *ap[3]; };
7542 struct s *b; b->j = 5;
7544 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7548 return !cs[0] && !zero.x;
7555 if ac_fn_c_try_compile "$LINENO"; then :
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7563 $as_echo "$ac_cv_c_const" >&6; }
7564 if test $ac_cv_c_const = no; then
7566 $as_echo "#define const /**/" >>confdefs.h
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7571 $as_echo_n "checking for inline... " >&6; }
7572 if test "${ac_cv_c_inline+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7576 for ac_kw in inline __inline__ __inline; do
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7581 static $ac_kw foo_t static_foo () {return 0; }
7582 $ac_kw foo_t foo () {return 0; }
7586 if ac_fn_c_try_compile "$LINENO"; then :
7587 ac_cv_c_inline=$ac_kw
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 test "$ac_cv_c_inline" != no && break
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7595 $as_echo "$ac_cv_c_inline" >&6; }
7597 case $ac_cv_c_inline in
7600 case $ac_cv_c_inline in
7602 *) ac_val=$ac_cv_c_inline;;
7604 cat >>confdefs.h <<_ACEOF
7606 #define inline $ac_val
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7613 $as_echo_n "checking for working volatile... " >&6; }
7614 if test "${ac_cv_c_volatile+set}" = set; then :
7615 $as_echo_n "(cached) " >&6
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7625 int * volatile y = (int *) 0;
7631 if ac_fn_c_try_compile "$LINENO"; then :
7632 ac_cv_c_volatile=yes
7636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7639 $as_echo "$ac_cv_c_volatile" >&6; }
7640 if test $ac_cv_c_volatile = no; then
7642 $as_echo "#define volatile /**/" >>confdefs.h
7648 ac_cpp='$CXXCPP $CPPFLAGS'
7649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7657 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 :
7660 # Check whether --with-zlib was given.
7661 if test "${with_zlib+set}" = set; then :
7666 case "${with_zlib:-yes}" in
7668 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7673 zlib_prefix="$with_zlib"
7676 mule_backup_CPPFLAGS="$CPPFLAGS"
7677 mule_backup_LDFLAGS="$LDFLAGS"
7678 mule_backup_LIBS="$LIBS"
7679 if test -n "$zlib_prefix"; then :
7681 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
7682 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
7683 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
7684 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
7693 LIBS="$ZLIB_LIBS $LIBS"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
7696 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
7697 if test "$cross_compiling" = yes; then :
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7712 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
7720 if ac_fn_cxx_try_link "$LINENO"; then :
7722 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest
$ac_exeext |
sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
7723 cross_zver_max="`echo $ZLIB_VERSION | cut
-d.
-f1`"
7724 cross_zver_mid="`echo $ZLIB_VERSION | cut
-d.
-f2`"
7725 cross_zver_min="`echo $ZLIB_VERSION | cut
-d.
-f3`"
7726 if test "$cross_zver_max" -gt "1"; then
7728 elif test "$cross_zver_max" -eq "1"; then
7730 if test "$cross_zver_mid" -gt "1"; then
7732 elif test "$cross_zver_mid" -eq "1"; then
7733 if test "$cross_zver_min" -ge "4"; then
7742 if test ${result:-no} = yes; then :
7743 z_version=" (version $ZLIB_VERSION)"
7747 rm -f core conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7750 $as_echo "$result$z_version" >&6; }
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7763 const char *zver = zlibVersion();
7764 FILE *f=fopen("conftestval", "w");
7771 zver[4] >= '4'))) ? "yes" : "no");
7773 f=fopen("conftestver", "w");
7775 fprintf(f, "%s", ZLIB_VERSION);
7784 if ac_fn_cxx_try_run "$LINENO"; then :
7786 if test -f conftestval; then :
7787 result=`cat conftestval
`
7791 if test ${result:-no} = yes; then :
7793 if test -f conftestver; then :
7795 ZLIB_VERSION=`cat conftestver
`
7796 z_version=" (version $ZLIB_VERSION)"
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7804 $as_echo "$result$z_version" >&6; }
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7810 $as_echo "$result" >&6; }
7813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7814 conftest.$ac_objext conftest.beam conftest.$ac_ext
7818 CPPFLAGS="$mule_backup_CPPFLAGS"
7819 LDFLAGS="$mule_backup_LDFLAGS"
7820 LIBS="$mule_backup_LIBS"
7822 if test ${result:-no} = no; then :
7827 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7836 if test ${enable_webserver:-no} = yes; then :
7839 # Check whether --with-libpng-prefix was given.
7840 if test "${with_libpng_prefix+set}" = set; then :
7841 withval=$with_libpng_prefix;
7845 # Check whether --with-libpng-config was given.
7846 if test "${with_libpng_config+set}" = set; then :
7847 withval=$with_libpng_config;
7853 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7854 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7855 LIBPNG_CONFIG_NAME=libpng-config
7857 if test -n "$with_libpng_config"; then :
7858 LIBPNG_CONFIG_NAME="$with_libpng_config"
7861 # deal with optional prefix
7862 if test -n "$with_libpng_prefix"; then :
7863 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7866 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7867 if test -x "$LIBPNG_CONFIG_NAME"; then :
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7870 $as_echo_n "checking for libpng-config... " >&6; }
7871 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7873 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7876 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7877 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 case $LIBPNG_CONFIG_PATH in
7885 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7890 for as_dir in $as_dummy
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7908 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7909 if test -n "$LIBPNG_CONFIG_PATH"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7911 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7920 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7923 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7925 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7927 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7928 libpng_config_major_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7929 libpng_config_minor_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7930 libpng_config_micro_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7933 if test $libpng_config_major_version -gt 1; then
7935 elif test $libpng_config_major_version -eq 1; then
7937 if test $libpng_config_minor_version -gt 2; then
7939 elif test $libpng_config_minor_version -eq 2; then
7940 if test $libpng_config_micro_version -ge 0; then
7950 if test -z "$libpng_ver_ok"; then :
7952 if test -z "$LIBPNG_VERSION"; then :
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7958 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7965 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7966 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags |
sed -e "s/ *${LIBPNG_LIBS}$//"`
7967 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7969 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7972 $as_echo_n "checking if libpng is usable... " >&6; }
7974 SAVED_CFLAGS=$CFLAGS
7975 SAVED_LDFLAGS=$LDFLAGS
7978 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
7979 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
7980 LIBS="$LIBS $LIBPNG_LIBS"
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7993 png_uint_32 libpng_vn = png_access_version_number();
7994 printf("\nlibpng version %i\n\n", libpng_vn);
8001 if ac_fn_cxx_try_link "$LINENO"; then :
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8004 $as_echo "yes" >&6; }
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8009 $as_echo "no (failed to compile and link test program)" >&6; }
8016 rm -f core conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8019 CFLAGS="$SAVED_CFLAGS"
8020 LDFLAGS="$SAVED_LDFLAGS"
8027 if test -n "$LIBPNG_VERSION"; then :
8028 AMULEWEB_DEFS="-DWITH_LIBPNG"
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8032 libpng >= 1.2.0 not found.
8033 amuleweb will be compiled but file download progress bar images will
8034 NOT be generated." >&5
8035 $as_echo "$as_me: WARNING:
8036 libpng >= 1.2.0 not found.
8037 amuleweb will be compiled but file download progress bar images will
8038 NOT be generated." >&2;}
8040 _mule_has_warnings=yes
8051 # Check for perl File::Copy
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
8053 $as_echo_n "checking for File::Copy... " >&6; }
8054 if perl -e "require File::Copy" 2>/dev/null; then :
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8056 $as_echo "ok" >&6; }
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8059 File::Copy perl module is required by the mldonkey_importer script.
8060 If you want to use this script please install File::Copy from CPAN." >&5
8061 $as_echo "$as_me: WARNING:
8062 File::Copy perl module is required by the mldonkey_importer script.
8063 If you want to use this script please install File::Copy from CPAN." >&2;}
8065 _mule_has_warnings=yes
8070 # Check for GeoIP (required for IP2Country capability)
8072 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8074 # Check whether --enable-geoip was given.
8075 if test "${enable_geoip+set}" = set; then :
8076 enableval=$enable_geoip;
8081 if test ${enable_geoip:-no} = yes; then :
8084 # Check whether --with-geoip-headers was given.
8085 if test "${with_geoip_headers+set}" = set; then :
8086 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8090 # Check whether --with-geoip-lib was given.
8091 if test "${with_geoip_lib+set}" = set; then :
8092 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8096 mule_backup_CPPFLAGS="$CPPFLAGS"
8097 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8098 mule_backup_LDFLAGS="$LDFLAGS"
8099 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8101 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8102 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
8104 if test x$SYS = xwin32; then :
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8107 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8108 # Actually, we might not need any if GeoIP is linked as a .dll
8109 # - but that's even harder to check for
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8115 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8116 I do know it's not the best approach, but at least works with MinGW stock headers.
8117 (tested with w32api-3.12)
8129 if ac_fn_cxx_try_compile "$LINENO"; then :
8131 GEOIP_WINSOCK_LIB="-lwsock32"
8135 GEOIP_WINSOCK_LIB="-lws2_32"
8138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8140 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8144 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8145 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8148 ac_check_lib_save_LIBS=$LIBS
8149 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8153 /* Override any GCC internal prototype to avoid an error.
8154 Use char because int might match the return type of a GCC
8155 builtin and then its argument prototype would still apply. */
8163 return GeoIP_open ();
8168 if ac_fn_cxx_try_link "$LINENO"; then :
8169 ac_cv_lib_GeoIP_GeoIP_open=yes
8171 ac_cv_lib_GeoIP_GeoIP_open=no
8173 rm -f core conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 LIBS=$ac_check_lib_save_LIBS
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8178 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8179 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
8182 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8184 GEOIP_LIBS="-lGeoIP"
8185 if test x$SYS = xwin32; then :
8186 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8188 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8190 # Check whether --with-geoip-static was given.
8191 if test "${with_geoip_static+set}" = set; then :
8192 withval=$with_geoip_static;
8193 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8195 mule_backup_LIBS="$LIBS"
8196 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8207 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8214 if ac_fn_cxx_try_link "$LINENO"; then :
8216 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8221 Cannot link GeoIP statically, because your linker ($LD) does not
8223 $as_echo "$as_me: WARNING:
8224 Cannot link GeoIP statically, because your linker ($LD) does not
8227 _mule_has_warnings=yes
8231 rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
8233 LIBS="$mule_backup_LIBS"
8242 enable_geoip=disabled
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8244 GeoIP support has been disabled because the GeoIP libraries were not
8246 $as_echo "$as_me: WARNING:
8247 GeoIP support has been disabled because the GeoIP libraries were not
8250 _mule_has_warnings=yes
8258 enable_geoip=disabled
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8260 GeoIP support has been disabled because the GeoIP header files were
8262 $as_echo "$as_me: WARNING:
8263 GeoIP support has been disabled because the GeoIP header files were
8266 _mule_has_warnings=yes
8273 CPPFLAGS="$mule_backup_CPPFLAGS"
8274 LDFLAGS="$mule_backup_LDFLAGS"
8282 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 :
8285 # Check whether --with-wxdir was given.
8286 if test "${with_wxdir+set}" = set; then :
8287 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8288 wx_config_args="--inplace"
8292 # Check whether --with-wx-config was given.
8293 if test "${with_wx_config+set}" = set; then :
8294 withval=$with_wx_config; wx_config_name="$withval"
8298 # Check whether --with-wx-prefix was given.
8299 if test "${with_wx_prefix+set}" = set; then :
8300 withval=$with_wx_prefix; wx_config_prefix="$withval"
8306 # Check whether --with-wx-exec-prefix was given.
8307 if test "${with_wx_exec_prefix+set}" = set; then :
8308 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8310 wx_config_exec_prefix=""
8325 # Check whether --with-toolkit was given.
8326 if test "${with_toolkit+set}" = set; then :
8327 withval=$with_toolkit;
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8334 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8335 if test "$withval" = "auto" ; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8337 $as_echo "will be automatically detected" >&6; }
8342 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \
8343 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8344 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \
8345 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then
8347 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base)
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8352 $as_echo "$TOOLKIT" >&6; }
8359 # Check whether --with-wxshared was given.
8360 if test "${with_wxshared+set}" = set; then :
8361 withval=$with_wxshared;
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8368 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8369 if test "$withval" = "yes" ; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8371 $as_echo "yes" >&6; }
8374 elif test "1" = "1" -a "$withval" = "no" ; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8378 elif test "$withval" = "auto" ; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8380 $as_echo "will be automatically detected" >&6; }
8384 Unrecognized option value (allowed values: yes, auto)
8392 # Check whether --with-wxdebug was given.
8393 if test "${with_wxdebug+set}" = set; then :
8394 withval=$with_wxdebug;
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8401 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8402 if test "$withval" = "yes" ; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8404 $as_echo "yes" >&6; }
8407 elif test "1" = "1" -a "$withval" = "no" ; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8411 elif test "$withval" = "auto" ; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8413 $as_echo "will be automatically detected" >&6; }
8417 Unrecognized option value (allowed values: yes, auto)
8425 # Check whether --with-wxversion was given.
8426 if test "${with_wxversion+set}" = set; then :
8427 withval=$with_wxversion;
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8434 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8435 if test "$withval" = "auto" ; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8437 $as_echo "will be automatically detected" >&6; }
8441 wx_requested_major_version=`echo $withval | \
8442 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8443 wx_requested_minor_version=`echo $withval | \
8444 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8446 if test "${#wx_requested_major_version}" != "1" -o \
8447 "${#wx_requested_minor_version}" != "1" ; then
8449 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0)
8453 WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5
8455 $as_echo "$WX_RELEASE" >&6; }
8459 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8460 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8461 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8462 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8463 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8464 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
8467 # Force using a static wxWidgets library if the executable is to be linked statically.
8468 if test ${enable_static:-no} = yes; then :
8471 # Force using a unicode build of the library
8472 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 :
8477 if test "$WX_SHARED" = "1" ; then
8478 WXCONFIG_FLAGS="--static=no "
8479 elif test "$WX_SHARED" = "0" ; then
8480 WXCONFIG_FLAGS="--static=yes "
8483 if test "$WX_DEBUG" = "1" ; then
8484 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8485 elif test "$WX_DEBUG" = "0" ; then
8486 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8489 if test "$WX_UNICODE" = "1" ; then
8490 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8491 elif test "$WX_UNICODE" = "0" ; then
8492 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8495 if test -n "$TOOLKIT" ; then
8496 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8499 if test -n "$WX_RELEASE" ; then
8500 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE "
8503 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8505 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8506 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8510 if test x${WX_CONFIG_NAME+set} != xset ; then
8511 WX_CONFIG_NAME=wx-config
8514 if test "x$wx_config_name" != x ; then
8515 WX_CONFIG_NAME="$wx_config_name"
8518 if test x$wx_config_exec_prefix != x ; then
8519 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8520 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8522 if test x$wx_config_prefix != x ; then
8523 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8524 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8526 if test "$cross_compiling" = "yes"; then
8527 wx_config_args="$wx_config_args --host=$host_alias"
8530 if test -x "$WX_CONFIG_NAME" ; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8532 $as_echo_n "checking for wx-config... " >&6; }
8533 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8535 $as_echo "$WX_CONFIG_PATH" >&6; }
8537 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8538 set dummy $WX_CONFIG_NAME; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8544 case $WX_CONFIG_PATH in
8546 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8551 for as_dir in $as_dummy
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8557 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8569 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8570 if test -n "$WX_CONFIG_PATH"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8572 $as_echo "$WX_CONFIG_PATH" >&6; }
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8581 if test "$WX_CONFIG_PATH" != "no" ; then
8584 min_wx_version=2.8.12
8585 if test -z "$WXCONFIG_FLAGS" ; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8587 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8590 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8593 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS"
8595 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev
/null
`
8596 wx_config_major_version=`echo $WX_VERSION | \
8597 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8598 wx_config_minor_version=`echo $WX_VERSION | \
8599 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8600 wx_config_micro_version=`echo $WX_VERSION | \
8601 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8603 wx_requested_major_version=`echo $min_wx_version | \
8604 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8605 wx_requested_minor_version=`echo $min_wx_version | \
8606 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8607 wx_requested_micro_version=`echo $min_wx_version | \
8608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8612 if test "x$WX_VERSION" != x ; then
8613 if test $wx_config_major_version -gt $wx_requested_major_version; then
8616 if test $wx_config_major_version -eq $wx_requested_major_version; then
8617 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8620 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8621 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8631 if test -n "$wx_ver_ok"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
8633 $as_echo "yes (version $WX_VERSION)" >&6; }
8634 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs `
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
8637 $as_echo_n "checking for wxWidgets static library... " >&6; }
8638 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev
/null
`
8639 if test "x$WX_LIBS_STATIC" = "x"; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8644 $as_echo "yes" >&6; }
8648 if test $wx_config_major_version -gt 2; then
8651 if test $wx_config_major_version -eq 2; then
8652 if test $wx_config_minor_version -gt 2; then
8655 if test $wx_config_minor_version -eq 2; then
8656 if test $wx_config_micro_version -ge 6; then
8665 if test $wx_config_major_version -gt 2; then
8668 if test $wx_config_major_version -eq 2; then
8669 if test $wx_config_minor_version -ge 7; then
8674 if test "x$wx_has_rescomp" = x ; then
8677 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8680 if test "x$wx_has_cppflags" = x ; then
8681 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
8682 WX_CPPFLAGS=$WX_CFLAGS
8683 WX_CXXFLAGS=$WX_CFLAGS
8685 WX_CFLAGS_ONLY=$WX_CFLAGS
8686 WX_CXXFLAGS_ONLY=$WX_CFLAGS
8688 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags `
8689 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags `
8690 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
8692 WX_CFLAGS_ONLY=`echo $WX_CFLAGS |
sed "s@^$WX_CPPFLAGS *@@"`
8693 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS |
sed "s@^$WX_CFLAGS *@@"`
8700 if test "x$WX_VERSION" = x; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
8705 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
8715 if test ! -z "$WXCONFIG_FLAGS"; then
8718 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8719 build with the following settings:
8721 but such build is not available.
8723 To see the wxWidgets builds available on this system, please use
8724 'wx-config --list' command. To use the default build, returned by
8725 'wx-config --selected-config', use the options with their 'auto'
8731 The requested wxWidgets build couldn't be found.
8734 If you still get this error, then check that 'wx-config' is
8735 in path, the directory where wxWidgets libraries are installed
8736 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8737 or equivalent variable and wxWidgets version is 2.8.12 or above."
8739 as_fn_error "$wx_error_message" "$LINENO" 5
8765 WX_VERSION_MAJOR="$wx_config_major_version"
8766 WX_VERSION_MINOR="$wx_config_minor_version"
8767 WX_VERSION_MICRO="$wx_config_micro_version"
8772 if test "$wxWin" != 1; then :
8774 wxWidgets must be installed on your system but wx-config
8775 script couldn't be found. Please check that wx-config is
8776 in path or specified by --with-wx-config=path flag, the
8777 directory where wxWidgets libraries are installed (returned
8778 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8779 equivalent variable and wxWidgets version is 2.8.12 or above.
8783 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8785 This version of wxWidgets is known to not work with aMule.
8786 Please upgrade to a newer version.
8791 WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8792 if test $WX_RELEASE -lt 26 ; then
8795 Cannot detect the wxWidgets configuration for the selected wxWidgets build
8796 since its version is $WX_VERSION < 2.6.0; please install a newer
8797 version of wxWidgets.
8801 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8803 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8804 echo "[dbg] Using wx-config --selected-config"
8805 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8808 if test "$WX_SHARED" = "1"; then
8810 elif test "$WX_SHARED" = "0"; then
8815 if test -z "$UNICODE" ; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8818 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8820 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8822 if test "$WX_UNICODE" != "0"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8825 $as_echo "yes" >&6; }
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 $as_echo "no" >&6; }
8837 if test -z "$DEBUG" ; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8840 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8842 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8844 if test "$WX_DEBUG" != "0"; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8847 $as_echo "yes" >&6; }
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8859 if test -z "$STATIC" ; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8862 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8864 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8866 if test "$WX_STATIC" != "0"; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8869 $as_echo "yes" >&6; }
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8881 if test "$WX_STATIC" != "0"; then
8891 if test -z "$TOOLKIT" ; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8894 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8896 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8897 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8898 WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*")
8899 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8900 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8901 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8902 WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*")
8903 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8904 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8905 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8908 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8909 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8910 if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi
8911 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8912 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8913 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8914 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi
8915 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8916 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8917 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8919 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8920 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8923 if test "$WX_PORT" = "unknown" ; then
8925 Cannot detect the currently installed wxWidgets port !
8926 Please check your 'wx-config --cxxflags'...
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8931 $as_echo "$WX_PORT" >&6; }
8938 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8939 echo "[dbg] Values of all WX_* options after final detection:"
8940 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8941 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8942 echo "[dbg] WX_SHARED: $WX_SHARED"
8943 echo "[dbg] WX_RELEASE: $WX_RELEASE"
8944 echo "[dbg] WX_PORT: $WX_PORT"
8947 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8949 Cannot build shared library against a static build of wxWidgets !
8950 This error happens because the wxWidgets build which was selected
8951 has been detected as static while you asked to build $PACKAGE_NAME
8952 as shared library and this is not possible.
8953 Use the '--disable-shared' option to build $PACKAGE_NAME
8954 as static library or '--with-wxshared' to use wxWidgets as shared library.
8958 if test -z "$UNICODE" ; then
8961 if test -z "$SHARED" ; then
8964 if test -z "$TOOLKIT" ; then
8968 if test "$DEBUG" = "1"; then
8970 CXXFLAGS="$CXXFLAGS -g -O0"
8971 CFLAGS="$CFLAGS -g -O0"
8972 elif test "$DEBUG" = "0"; then
8974 CXXFLAGS="$CXXFLAGS -O2"
8975 CFLAGS="$CFLAGS -O2"
8979 # We also need wxBase
8980 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv
,core
,net
`
8981 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net
`
8982 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8984 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags |
$AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8988 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8989 if test "${WX_PORT}" = base; then :
8991 The selected components need a wxWidgets library with GUI,
8992 but your installation is base-only. Please install a GUI
8993 enabled version of wxWidgets and then retry.
9000 if test ${SYS:-unknown} = win32; then :
9001 if test -n "$ac_tool_prefix"; then
9002 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9003 set dummy ${ac_tool_prefix}windres; ac_word=$2
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 $as_echo_n "checking for $ac_word... " >&6; }
9006 if test "${ac_cv_prog_RC+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9009 if test -n "$RC"; then
9010 ac_cv_prog_RC="$RC" # Let the user override the test.
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 test -z "$as_dir" && as_dir=.
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9019 ac_cv_prog_RC="${ac_tool_prefix}windres"
9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 if test -n "$RC"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9032 $as_echo "$RC" >&6; }
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9040 if test -z "$ac_cv_prog_RC"; then
9042 # Extract the first word of "windres", so it can be a program name with args.
9043 set dummy windres; ac_word=$2
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 $as_echo_n "checking for $ac_word... " >&6; }
9046 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
9047 $as_echo_n "(cached) " >&6
9049 if test -n "$ac_ct_RC"; then
9050 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059 ac_cv_prog_ac_ct_RC="windres"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9069 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9070 if test -n "$ac_ct_RC"; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9072 $as_echo "$ac_ct_RC" >&6; }
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9075 $as_echo "no" >&6; }
9078 if test "x$ac_ct_RC" = x; then
9081 case $cross_compiling:$ac_tool_warned in
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9085 ac_tool_warned=yes ;;
9097 # Check whether --enable-upnp was given.
9098 if test "${enable_upnp+set}" = set; then :
9099 enableval=$enable_upnp;
9103 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9110 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9111 if test -n "$ac_tool_prefix"; then
9112 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9113 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115 $as_echo_n "checking for $ac_word... " >&6; }
9116 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9121 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 test -z "$as_dir" && as_dir=.
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9131 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9142 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9143 if test -n "$PKG_CONFIG"; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9145 $as_echo "$PKG_CONFIG" >&6; }
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9148 $as_echo "no" >&6; }
9153 if test -z "$ac_cv_path_PKG_CONFIG"; then
9154 ac_pt_PKG_CONFIG=$PKG_CONFIG
9155 # Extract the first word of "pkg-config", so it can be a program name with args.
9156 set dummy pkg-config; ac_word=$2
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158 $as_echo_n "checking for $ac_word... " >&6; }
9159 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9162 case $ac_pt_PKG_CONFIG in
9164 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 test -z "$as_dir" && as_dir=.
9172 for ac_exec_ext in '' $ac_executable_extensions; do
9173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9174 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9186 if test -n "$ac_pt_PKG_CONFIG"; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9188 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9194 if test "x$ac_pt_PKG_CONFIG" = x; then
9197 case $cross_compiling:$ac_tool_warned in
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9201 ac_tool_warned=yes ;;
9203 PKG_CONFIG=$ac_pt_PKG_CONFIG
9206 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9210 if test -n "$PKG_CONFIG"; then
9211 _pkg_min_version=0.9.0
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9213 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9214 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9216 $as_echo "yes" >&6; }
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9224 if test ${enable_upnp:-yes} = yes; then :
9228 # Check whether --with-libupnp-prefix was given.
9229 if test "${with_libupnp_prefix+set}" = set; then :
9230 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9234 if test $cross_compiling = no; then :
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9237 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9238 if test -n "$PKG_CONFIG"; then :
9240 if $PKG_CONFIG libupnp --exists; then :
9242 LIBUPNP_VERSION=`$PKG_CONFIG libupnp
--modversion`
9243 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9246 resultstr=" (version $LIBUPNP_VERSION)"
9247 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp
--cflags-only-I`
9248 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp
--cflags-only-other`
9249 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp
--libs-only-L`
9250 LIBUPNP_LIBS=`$PKG_CONFIG libupnp
--libs-only-other`
9251 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp
--libs-only-l`"
9256 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9263 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9270 resultstr=" (pkg-config not found)"
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9274 $as_echo "$result$resultstr" >&6; }
9275 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9280 libupnp_error="cross compiling"
9284 if test ${result:-no} = yes; then :
9285 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9287 enable_upnp=disabled
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9289 UPnP code has been disabled because ${libupnp_error}." >&5
9290 $as_echo "$as_me: WARNING:
9291 UPnP code has been disabled because ${libupnp_error}." >&2;}
9293 _mule_has_warnings=yes
9302 # Check for Crypto++ (requires C++)
9303 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9306 # Check whether --with-crypto-prefix was given.
9307 if test "${with_crypto_prefix+set}" = set; then :
9308 withval=$with_crypto_prefix;
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
9313 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
9315 cryptopp_found=false
9317 if test -n "$with_crypto_prefix"; then :
9319 CRYPTOPP_PREFIX="$with_crypto_prefix"
9320 # Find the Cryptopp header in the user-provided location
9321 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then
9324 CRYPTOPP_LIB_NAME="cryptopp"
9325 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9328 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9332 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9333 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then :
9336 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9337 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include"
9338 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib"
9339 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9350 # Check whether the compiler can find it
9351 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9355 #include <$CRYPTOPP_LIB_NAME/cryptlib.h>
9366 if ac_fn_cxx_try_compile "$LINENO"; then :
9369 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9372 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9381 if $cryptopp_found; then :
9383 # Find out the crypto++ version and check against the minimum required
9384 # Ask the compiler where are the crypto++ files
9385 mule_backup_CPPFLAGS="$CPPFLAGS"
9386 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS"
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9390 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h>
9393 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'`
9395 CPPFLAGS="$mule_backup_CPPFLAGS"
9396 # Set a prefix suitable for --with-crypto-prefix
9397 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}"
9398 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}"
9399 # Now check the version
9400 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path |
sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9401 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING |
$AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9402 minvers=`echo 5.1 |
$AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9404 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9407 resultstr=" (version $CRYPTOPP_VERSION_STRING)"
9409 cat >>confdefs.h <<_ACEOF
9410 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9417 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9425 result="no"; resultstr=
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9429 $as_echo "$result$resultstr" >&6; }
9431 if test ${result:-no} = yes; then :
9433 # Check for CryptoPP >= 5.5
9434 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
9435 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
9441 Could not find crypto++ installation or sources.
9442 Please try again with --with-crypto-prefix=/my_crypto_prefix
9443 (replace /my_crypto_prefix with a valid path to your crypto++
9444 installation or source directory)." "$LINENO" 5
9453 # Check whether --enable-debug was given.
9454 if test "${enable_debug+set}" = set; then :
9455 enableval=$enable_debug;
9459 # Check whether --enable-profile was given.
9460 if test "${enable_profile+set}" = set; then :
9461 enableval=$enable_profile;
9465 # Check whether --enable-optimize was given.
9466 if test "${enable_optimize+set}" = set; then :
9467 enableval=$enable_optimize;
9472 if test ${enable_debug:-yes} = yes; then :
9474 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9476 MULECFLAGS="$MULECFLAGS -g"
9477 MULECXXFLAGS="$MULECXXFLAGS -g"
9479 if test ${GCC:-no} = yes; then :
9481 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9482 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9485 if test ${SYS:-unknown} = win32; then :
9486 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9491 if test ${GCC:-no} = yes; then :
9493 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9494 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9500 if test ${enable_profile:-no} = yes; then :
9503 MULECFLAGS="$MULECFLAGS -pg"
9504 MULECXXFLAGS="$MULECXXFLAGS -pg"
9506 MULELDFLAGS="$MULELDFLAGS -pg"
9510 if test ${enable_optimize:-no} = yes; then :
9512 MULECFLAGS="$MULECFLAGS -O2"
9513 MULECXXFLAGS="$MULECXXFLAGS -O2"
9517 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9521 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 :
9526 if test ${GCC:-no} = yes; then :
9528 mule_backup_CXXFLAGS="$CXXFLAGS"
9529 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9532 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9542 short *b = (short*)&a;
9552 if ac_fn_cxx_try_compile "$LINENO"; then :
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9560 $as_echo "yes" >&6; }
9561 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9567 CXXFLAGS="$mule_backup_CXXFLAGS"
9571 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9573 mule_backup_CPPFLAGS="$CPPFLAGS"
9574 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9577 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9583 #include <wx/filefn.h>
9584 #ifndef wxHAS_LARGE_FILES
9585 #error No LargeFile support!
9590 if ac_fn_cxx_try_cpp "$LINENO"; then :
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9593 $as_echo "yes" >&6; }
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9600 Support for large files in wxWidgets is required by aMule.
9601 To continue you must recompile wxWidgets with support for
9602 large files enabled." "$LINENO" 5
9605 rm -f conftest.err conftest.$ac_ext
9607 CPPFLAGS="$mule_backup_CPPFLAGS"
9611 # Check if the compiler is broken, wrt. exceptions.
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9614 $as_echo_n "checking for exception-handling... " >&6; }
9615 if test "$cross_compiling" = yes; then :
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9618 $as_echo "undeterminable" >&6; }
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9620 Cross-compilation detected, so exception handling cannot be tested.
9621 Note that broken exception handling in your compiler may lead to
9622 unexpected crashes." >&5
9623 $as_echo "$as_me: WARNING:
9624 Cross-compilation detected, so exception handling cannot be tested.
9625 Note that broken exception handling in your compiler may lead to
9626 unexpected crashes." >&2;}
9628 _mule_has_warnings=yes
9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9652 if ac_fn_cxx_try_run "$LINENO"; then :
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9655 $as_echo "yes" >&6; }
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660 $as_echo "no" >&6; }
9661 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
9664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9665 conftest.$ac_objext conftest.beam conftest.$ac_ext
9671 for ac_header in typeinfo
9673 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9674 if test "x$ac_cv_header_typeinfo" = x""yes; then :
9675 cat >>confdefs.h <<_ACEOF
9676 #define HAVE_TYPEINFO 1
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9684 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9689 #ifdef HAVE_TYPEINFO
9690 # include <typeinfo>
9699 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9700 std::type_info *ti = abi::__cxa_current_exception_type();
9707 if ac_fn_cxx_try_link "$LINENO"; then :
9710 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9713 $as_echo "yes" >&6; }
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9721 rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9725 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 :
9728 # Check whether --with-boost was given.
9729 if test "${with_boost+set}" = set; then :
9730 withval=$with_boost;
9736 if test ${with_boost:-no} != no; then :
9738 echo "$as_me: this is boost.m4 serial 25" >&5
9740 boost_version_req=1.47
9742 set x $boost_version_req 0 0 0
9745 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9746 boost_version_req_string=$1.$2.$3
9747 # If BOOST_ROOT is set and the user has not provided a value to
9748 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9749 if test x"$BOOST_ROOT" != x; then
9750 if test x"$with_boost" = x; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9752 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9753 with_boost=$BOOST_ROOT
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9756 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9759 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9760 boost_save_CPPFLAGS=$CPPFLAGS
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9762 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9763 if test "${boost_cv_inc_path+set}" = set; then :
9764 $as_echo_n "(cached) " >&6
9766 boost_cv_inc_path=no
9768 ac_cpp='$CXXCPP $CPPFLAGS'
9769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774 #include <boost/version.hpp>
9775 #if !defined BOOST_VERSION
9776 # error BOOST_VERSION is not defined
9777 #elif BOOST_VERSION < $boost_version_req
9778 # error Boost headers version < $boost_version_req
9789 # If the user provided a value to --with-boost, use it and only it.
9790 case $with_boost in #(
9791 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9792 /usr/include C:/Boost/include;; #(
9793 *) set x "$with_boost/include" "$with_boost";;
9798 # Without --layout=system, Boost (or at least some versions) installs
9799 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9800 # find headers in such directories.
9802 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9803 # order followed by ${boost_dir}. The final '.' is a sentinel for
9804 # searching $boost_dir" itself. Entries are whitespace separated.
9806 # I didn't indent this loop on purpose (to avoid over-indented code)
9807 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev
/null \
9808 && ls -1 |
"${GREP}" '^boost-' |
sort -rn -t- -k2 \
9810 for boost_inc in $boost_layout_system_search_list
9812 if test x"$boost_inc" != x.; then
9813 boost_inc="$boost_dir/$boost_inc"
9815 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9817 if test x"$boost_inc" != x; then
9818 # We are going to check whether the version of Boost installed
9819 # in $boost_inc is usable by running a compilation that
9820 # #includes it. But if we pass a -I/some/path in which Boost
9821 # is not installed, the compiler will just skip this -I and
9822 # use other locations (either from CPPFLAGS, or from its list
9823 # of system include directories). As a result we would use
9824 # header installed on the machine instead of the /some/path
9825 # specified by the user. So in that precise case (trying
9826 # $boost_inc), make sure the version.hpp exists.
9828 # Use test -e as there can be symlinks.
9829 test -e "$boost_inc/boost/version.hpp" || continue
9830 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9832 if ac_fn_cxx_try_compile "$LINENO"; then :
9833 boost_cv_inc_path=yes
9837 rm -f core conftest.err conftest.$ac_objext
9838 if test x"$boost_cv_inc_path" = xyes; then
9839 if test x"$boost_inc" != x; then
9840 boost_cv_inc_path=$boost_inc
9847 ac_cpp='$CXXCPP $CPPFLAGS'
9848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9854 $as_echo "$boost_cv_inc_path" >&6; }
9855 case $boost_cv_inc_path in #(
9857 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9859 $as_echo "$as_me: $boost_errmsg" >&6;}
9866 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9869 if test x"$boost_cv_inc_path" != xno; then
9871 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9874 $as_echo_n "checking for Boost's header version... " >&6; }
9875 if test "${boost_cv_lib_version+set}" = set; then :
9876 $as_echo_n "(cached) " >&6
9879 ac_cpp='$CXXCPP $CPPFLAGS'
9880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885 #include <boost/version.hpp>
9886 boost-lib-version = BOOST_LIB_VERSION
9888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9892 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
9893 boost_cv_lib_version=`cat conftest.i
`
9897 ac_cpp='$CXXCPP $CPPFLAGS'
9898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9904 $as_echo "$boost_cv_lib_version" >&6; }
9905 # e.g. "134" for 1_34_1 or "135" for 1_35
9906 boost_major_version=`echo "$boost_cv_lib_version" |
sed 's/_//;s/_.*//'`
9907 case $boost_major_version in #(
9909 as_fn_error "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
9913 CPPFLAGS=$boost_save_CPPFLAGS
9915 if test ${with_boost:-no} != disabled; then :
9917 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9918 for cc_temp in $compiler""; do
9920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9926 cc_basename=`echo "$cc_temp" |
$SED "s%.*/%%; s%^$host_alias-%%"`
9927 # All known linkers require a `.a
' archive for static linking (except MSVC,
9928 # which needs '.lib
').
9930 case $cc_basename in
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9935 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9936 if test "${boost_cv_lib_tag+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9939 boost_cv_lib_tag=unknown
9940 if test x$boost_cv_inc_path != xno; then
9942 ac_cpp='$CXXCPP $CPPFLAGS'
9943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
9944 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
9945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9946 # The following tests are mostly inspired by boost/config/auto_link.hpp
9947 # The list is sorted to most recent/common to oldest compiler (in order
9948 # to increase the likelihood of finding the right compiler with the
9949 # least number of compilation attempt).
9950 # Beware that some tests are sensible to the order (for instance, we must
9951 # look for MinGW before looking for GCC3).
9952 # I used one compilation test per compiler with a #error to recognize
9953 # each compiler so that it works even when cross-compiling (let me know
9954 # if you know a better approach).
9955 # Known missing tags (known from Boost's tools
/build
/v
2/tools
/common.jam
):
9956 # como, edg, kcc, bck, mp, sw, tru, xlc
9957 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
9958 # the same defines as GCC's).
9960 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
9961 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9962 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
9963 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
9964 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
9965 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9966 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
9967 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
9968 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
9969 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9970 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
9971 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
9972 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
9973 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9974 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
9975 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
9976 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
9977 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9978 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
9979 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
9980 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
9981 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9982 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
9983 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
9984 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
9985 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9986 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
9987 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
9988 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
9989 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9990 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
9991 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
9992 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
9993 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9994 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
9995 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
9996 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
9997 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9998 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
9999 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
10000 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
10001 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10002 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
10003 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
10004 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10005 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10006 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
10007 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
10008 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10009 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10010 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
10011 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
10012 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10013 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10014 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
10015 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
10016 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10017 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10018 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
10019 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
10020 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
10021 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10022 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
10023 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
10024 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
10025 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
10026 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
10027 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
10028 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
10029 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
10030 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
10031 "defined __BORLANDC__ @ bcb" \
10032 "defined __ICC && (defined __unix || defined ) @ il" \
10033 "defined __ICL @ iw" \
10034 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
10035 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
10036 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
10037 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
10038 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
10039 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
10041 boost_tag_test
=`expr "X$i" : 'X\([^@]*\) @ '`
10042 boost_tag
=`expr "X$i" : 'X[^@]* @ \(.*\)'`
10043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10046 #if $boost_tag_test
10049 # error $boost_tag_test
10060 if ac_fn_cxx_try_compile
"$LINENO"; then :
10061 boost_cv_lib_tag
=$boost_tag; break
10063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10066 ac_cpp
='$CXXCPP $CPPFLAGS'
10067 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10068 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10069 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10070 case $boost_cv_lib_tag in #(
10071 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10072 # to "gcc41" for instance.
10073 *-gcc |
*'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10076 case $host_os in #(
10078 if test $boost_major_version -ge 136; then
10079 # The `x' added in r46793 of Boost.
10083 # We can specify multiple tags in this variable because it's used by
10084 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10085 boost_cv_lib_tag
="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10089 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10096 $as_echo "$boost_cv_lib_tag" >&6; }
10097 # Check whether --enable-static-boost was given.
10098 if test "${enable_static_boost+set}" = set; then :
10099 enableval
=$enable_static_boost; enable_static_boost
=yes
10101 enable_static_boost
=no
10104 # Check whether we do better use `mt' even though we weren't ask to.
10106 ac_cpp
='$CXXCPP $CPPFLAGS'
10107 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10108 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10109 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10113 #if defined _REENTRANT || defined _MT || defined __MT__
10116 # error MT not needed
10127 if ac_fn_cxx_try_compile
"$LINENO"; then :
10128 boost_guess_use_mt
=:
10130 boost_guess_use_mt
=false
10132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10134 ac_cpp
='$CXXCPP $CPPFLAGS'
10135 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10136 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10137 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10140 $as_echo_n "checking for Boost sources... " >&6; }
10141 mule_backup_CPPFLAGS
="$CPPFLAGS"
10142 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10146 #include <boost/../libs/system/src/error_code.cpp>
10156 if ac_fn_cxx_try_compile
"$LINENO"; then :
10159 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10162 $as_echo "yes" >&6; }
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10168 if test x
"$boost_cv_inc_path" = xno
; then
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10170 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10173 ac_cpp
='$CXXCPP $CPPFLAGS'
10174 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10175 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10176 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10177 if test x
"$boost_cv_inc_path" = xno
; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10179 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10182 ac_cpp
='$CXXCPP $CPPFLAGS'
10183 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10184 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10185 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10186 boost_save_CPPFLAGS
=$CPPFLAGS
10187 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10188 ac_fn_cxx_check_header_mongrel
"$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10189 if test "x$ac_cv_header_boost_system_error_code_hpp" = x
""yes; then :
10191 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10194 as_fn_error
"cannot find boost/system/error_code.hpp" "$LINENO" 5
10198 CPPFLAGS
=$boost_save_CPPFLAGS
10200 ac_cpp
='$CXXCPP $CPPFLAGS'
10201 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10202 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10203 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10206 boost_save_CPPFLAGS
=$CPPFLAGS
10207 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10209 $as_echo_n "checking for the Boost system library... " >&6; }
10210 if test "${boost_cv_lib_system+set}" = set; then :
10211 $as_echo_n "(cached) " >&6
10213 boost_cv_lib_system
=no
10215 (mt | mt-
) boost_mt
=-mt; boost_rtopt
=;; #(
10216 (mt
* | mt-
*) boost_mt
=-mt; boost_rtopt
=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10217 (*) boost_mt
=; boost_rtopt
=mt
;;
10219 if test $enable_static_boost = yes; then
10220 boost_rtopt
="s$boost_rtopt"
10222 # Find the proper debug variant depending on what we've been asked to find.
10223 case $boost_rtopt in #(
10224 (*d
*) boost_rt_d
=$boost_rtopt;; #(
10225 (*[sgpn
]*) # Insert the `d' at the right place (in between `sg' and `pn')
10226 boost_rt_d
=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10227 (*) boost_rt_d
='-d';;
10229 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10230 test -n "$boost_rtopt" && boost_rtopt
="-$boost_rtopt"
10231 $boost_guess_use_mt && boost_mt
=-mt
10232 # Look for the abs path the static archive.
10233 # $libext is computed by Libtool but let's make sure it's non empty.
10234 test -z "$libext" &&
10235 as_fn_error
"the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10236 boost_save_ac_objext
=$ac_objext
10237 # Generate the test file.
10238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 #include <boost/system/error_code.hpp>
10245 boost::system::error_code e; e.clear();
10250 if ac_fn_cxx_try_compile
"$LINENO"; then :
10251 ac_objext
=do_not_rm_me_plz
10253 as_fn_error
"cannot compile a test that uses Boost system" "$LINENO" 5
10255 rm -f core conftest.err conftest.
$ac_objext
10256 ac_objext
=$boost_save_ac_objext
10258 # Don't bother to ident the following nested for loops, only the 2
10259 # innermost ones matter.
10260 for boost_lib_
in system
; do
10261 for boost_tag_
in -$boost_cv_lib_tag ''; do
10262 for boost_ver_
in -$boost_cv_lib_version ''; do
10263 for boost_mt_
in $boost_mt -mt ''; do
10264 for boost_rtopt_
in $boost_rtopt '' -d; do
10266 boost_
$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10267 boost_
$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10268 boost_
$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10269 boost_
$boost_lib_$boost_tag_$boost_ver_
10271 # Avoid testing twice the same lib
10272 case $boost_failed_libs in #(
10273 (*@
$boost_lib@
*) continue;;
10275 # If with_boost is empty, we'll search in /lib first, which is not quite
10276 # right so instead we'll try to a location based on where the headers are.
10277 boost_tmp_lib
=$with_boost
10278 test x
"$with_boost" = x
&& boost_tmp_lib
=${boost_cv_inc_path%/include}
10279 for boost_ldpath
in "$boost_tmp_lib/lib" '' \
10280 /opt
/local
/lib
* /usr
/local
/lib
* /opt
/lib
* /usr
/lib
* \
10281 "$with_boost" C
:/Boost
/lib
/lib
*
10283 # Don't waste time with directories that don't exist.
10284 if test x
"$boost_ldpath" != x
&& test ! -e "$boost_ldpath"; then
10287 boost_save_LDFLAGS
=$LDFLAGS
10288 # Are we looking for a static library?
10289 case $boost_ldpath:$boost_rtopt_ in #(
10290 (*?
*:*s
*) # Yes (Non empty boost_ldpath + s in rt opt)
10291 boost_cv_lib_system_LIBS
="$boost_ldpath/lib$boost_lib.$libext"
10292 test -e "$boost_cv_lib_system_LIBS" ||
continue;; #(
10293 (*) # No: use -lboost_foo to find the shared library.
10294 boost_cv_lib_system_LIBS
="-l$boost_lib";;
10296 boost_save_LIBS
=$LIBS
10297 LIBS
="$boost_cv_lib_system_LIBS $LIBS"
10298 test x
"$boost_ldpath" != x
&& LDFLAGS
="$LDFLAGS -L$boost_ldpath"
10299 rm -f conftest
$ac_exeext
10300 boost_save_ac_ext
=$ac_ext
10302 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10303 # tries to link the existing object file instead of compiling from source.
10304 test -f conftest.
$ac_objext && ac_ext
=$ac_objext && boost_use_source
=false
&&
10305 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10306 if { { ac_try
="$ac_link"
10307 case "(($ac_try" in
10308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10309 *) ac_try_echo=$ac_try;;
10311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10312 $as_echo "$ac_try_echo"; } >&5
10313 (eval "$ac_link") 2>conftest.err
10315 if test -s conftest.err; then
10316 grep -v '^ *+' conftest.err >conftest.er1
10317 cat conftest.er1 >&5
10318 mv -f conftest.er1 conftest.err
10320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10321 test $ac_status = 0; } && {
10322 test -z "$ac_cxx_werror_flag" ||
10323 test ! -s conftest.err
10324 } && test -s conftest$ac_exeext && {
10325 test "$cross_compiling" = yes ||
10326 $as_executable_p conftest$ac_exeext
10328 boost_cv_lib_system=yes
10330 if $boost_use_source; then
10331 $as_echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10335 boost_cv_lib_system=no
10337 ac_objext=$boost_save_ac_objext
10338 ac_ext=$boost_save_ac_ext
10339 rm -f core conftest.err conftest_ipa8_conftest.oo \
10341 ac_objext=$boost_save_ac_objext
10342 LDFLAGS=$boost_save_LDFLAGS
10343 LIBS=$boost_save_LIBS
10344 if test x"$boost_cv_lib_system" = xyes; then
10345 # Check or used cached result of whether or not using -R or
10346 # -rpath makes sense. Some implementations of ld, such as for
10347 # Mac OSX, require -rpath but -R is the flag known to work on
10348 # other systems. https://github.com/tsuna/boost.m4/issues/19
10349 if test "${boost_cv_rpath_link_ldflag+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10352 case $boost_ldpath in
10353 '') # Nothing to do.
10354 boost_cv_rpath_link_ldflag=
10355 boost_rpath_link_ldflag_found=yes;;
10357 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10358 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10359 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10360 rm -f conftest$ac_exeext
10361 boost_save_ac_ext=$ac_ext
10363 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10364 # tries to link the existing object file instead of compiling from source.
10365 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10366 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10367 if { { ac_try="$ac_link"
10368 case "(($ac_try" in
10369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10370 *) ac_try_echo
=$ac_try;;
10372 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10373 $as_echo "$ac_try_echo"; } >&5
10374 (eval "$ac_link") 2>conftest.err
10376 if test -s conftest.err
; then
10377 grep -v '^ *+' conftest.err
>conftest.er1
10378 cat conftest.er1
>&5
10379 mv -f conftest.er1 conftest.err
10381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10382 test $ac_status = 0; } && {
10383 test -z "$ac_cxx_werror_flag" ||
10384 test ! -s conftest.err
10385 } && test -s conftest
$ac_exeext && {
10386 test "$cross_compiling" = yes ||
10387 $as_executable_p conftest
$ac_exeext
10389 boost_rpath_link_ldflag_found
=yes
10392 if $boost_use_source; then
10393 $as_echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.
$ac_ext >&5
10397 boost_rpath_link_ldflag_found
=no
10399 ac_objext
=$boost_save_ac_objext
10400 ac_ext
=$boost_save_ac_ext
10401 rm -f core conftest.err conftest_ipa8_conftest.oo \
10406 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10407 as_fn_error
"Unable to determine whether to use -R or -rpath" "$LINENO" 5
10409 LDFLAGS
=$boost_save_LDFLAGS
10410 LIBS
=$boost_save_LIBS
10414 test x
"$boost_ldpath" != x
&&
10415 boost_cv_lib_system_LDFLAGS
="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10416 boost_cv_lib_system_LDPATH
="$boost_ldpath"
10419 boost_failed_libs
="$boost_failed_libs@$boost_lib@"
10428 rm -f conftest.
$ac_objext
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10432 $as_echo "$boost_cv_lib_system" >&6; }
10433 case $boost_cv_lib_system in #(
10434 (no
) $as_echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.
$ac_ext >&5
10437 as_fn_error
"cannot find the flags to link with Boost system" "$LINENO" 5
10440 BOOST_SYSTEM_LDFLAGS
=$boost_cv_lib_system_LDFLAGS
10441 BOOST_SYSTEM_LDPATH
=$boost_cv_lib_system_LDPATH
10442 BOOST_LDPATH
=$boost_cv_lib_system_LDPATH
10443 BOOST_SYSTEM_LIBS
=$boost_cv_lib_system_LIBS
10444 CPPFLAGS
=$boost_save_CPPFLAGS
10446 ac_cpp
='$CXXCPP $CPPFLAGS'
10447 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10448 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10449 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10454 if test ${boost_cv_lib_system:-no} != yes; then :
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10457 Boost support has been disabled because Boost.System not found" >&5
10458 $as_echo "$as_me: WARNING:
10459 Boost support has been disabled because Boost.System not found" >&2;}
10460 _mule_warning_8
=yes
10461 _mule_has_warnings
=yes
10463 with_boost
=disabled
10468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10469 CPPFLAGS
="$mule_backup_CPPFLAGS"
10470 if test x
"$boost_cv_inc_path" = xno
; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10473 Boost support has been disabled because Boost.Asio not found" >&5
10474 $as_echo "$as_me: WARNING:
10475 Boost support has been disabled because Boost.Asio not found" >&2;}
10476 _mule_warning_9
=yes
10477 _mule_has_warnings
=yes
10479 with_boost
=disabled
10483 ac_cpp
='$CXXCPP $CPPFLAGS'
10484 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10485 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10486 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10487 boost_save_CPPFLAGS
=$CPPFLAGS
10488 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10489 ac_fn_cxx_check_header_mongrel
"$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10490 if test "x$ac_cv_header_boost_asio_hpp" = x
""yes; then :
10492 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10497 Boost support has been disabled because Boost.Asio not found" >&5
10498 $as_echo "$as_me: WARNING:
10499 Boost support has been disabled because Boost.Asio not found" >&2;}
10500 _mule_warning_10
=yes
10501 _mule_has_warnings
=yes
10503 with_boost
=disabled
10508 CPPFLAGS
=$boost_save_CPPFLAGS
10510 ac_cpp
='$CXXCPP $CPPFLAGS'
10511 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10512 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10513 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10519 Boost support has been disabled because of insufficient Boost version." >&5
10520 $as_echo "$as_me: WARNING:
10521 Boost support has been disabled because of insufficient Boost version." >&2;}
10522 _mule_warning_11
=yes
10523 _mule_has_warnings
=yes
10533 # Ok, we have all needed libs, now checking for other stuff
10534 if test "$LEX" = "flex"; then :
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
10537 $as_echo_n "checking for extended flex capabilities... " >&6; }
10539 extended_flex
=`flex --help | grep header-file`
10540 if test -n "$extended_flex"; then :
10541 HAVE_FLEX_EXTENDED
=yes
10543 HAVE_FLEX_EXTENDED
=no
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
10546 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
10548 if test $HAVE_FLEX_EXTENDED = no
; then :
10549 { $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
10550 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
10554 HAVE_FLEX_EXTENDED
=no
10558 # Checks for header files.
10559 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10560 # for constant arguments. Useless!
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10562 $as_echo_n "checking for working alloca.h... " >&6; }
10563 if test "${ac_cv_working_alloca_h+set}" = set; then :
10564 $as_echo_n "(cached) " >&6
10566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568 #include <alloca.h>
10572 char *p = (char *) alloca (2 * sizeof (int));
10578 if ac_fn_cxx_try_link
"$LINENO"; then :
10579 ac_cv_working_alloca_h
=yes
10581 ac_cv_working_alloca_h
=no
10583 rm -f core conftest.err conftest.
$ac_objext \
10584 conftest
$ac_exeext conftest.
$ac_ext
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10587 $as_echo "$ac_cv_working_alloca_h" >&6; }
10588 if test $ac_cv_working_alloca_h = yes; then
10590 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10595 $as_echo_n "checking for alloca... " >&6; }
10596 if test "${ac_cv_func_alloca_works+set}" = set; then :
10597 $as_echo_n "(cached) " >&6
10599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h. */
10602 # define alloca __builtin_alloca
10605 # include <malloc.h>
10606 # define alloca _alloca
10608 # ifdef HAVE_ALLOCA_H
10609 # include <alloca.h>
10614 # ifndef alloca /* predefined by HP cc +Olibcalls */
10625 char *p = (char *) alloca (1);
10631 if ac_fn_cxx_try_link
"$LINENO"; then :
10632 ac_cv_func_alloca_works
=yes
10634 ac_cv_func_alloca_works
=no
10636 rm -f core conftest.err conftest.
$ac_objext \
10637 conftest
$ac_exeext conftest.
$ac_ext
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10640 $as_echo "$ac_cv_func_alloca_works" >&6; }
10642 if test $ac_cv_func_alloca_works = yes; then
10644 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10647 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10648 # that cause trouble. Some versions do not even contain alloca or
10649 # contain a buggy version. If you still want to use their alloca,
10650 # use ar to extract alloca.o from them instead of compiling alloca.c.
10652 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10654 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10658 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10659 if test "${ac_cv_os_cray+set}" = set; then :
10660 $as_echo_n "(cached) " >&6
10662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 #if defined CRAY && ! defined CRAY2
10671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10672 $EGREP "webecray" >/dev
/null
2>&1; then :
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10681 $as_echo "$ac_cv_os_cray" >&6; }
10682 if test $ac_cv_os_cray = yes; then
10683 for ac_func
in _getb67 GETB67 getb67
; do
10684 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10685 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10686 eval as_val
=\$
$as_ac_var
10687 if test "x$as_val" = x
""yes; then :
10689 cat >>confdefs.h
<<_ACEOF
10690 #define CRAY_STACKSEG_END $ac_func
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10700 $as_echo_n "checking stack direction for C alloca... " >&6; }
10701 if test "${ac_cv_c_stack_direction+set}" = set; then :
10702 $as_echo_n "(cached) " >&6
10704 if test "$cross_compiling" = yes; then :
10705 ac_cv_c_stack_direction
=0
10707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709 $ac_includes_default
10711 find_stack_direction ()
10713 static char *addr = 0;
10718 return find_stack_direction ();
10721 return (&dummy > addr) ? 1 : -1;
10727 return find_stack_direction () < 0;
10730 if ac_fn_cxx_try_run
"$LINENO"; then :
10731 ac_cv_c_stack_direction
=1
10733 ac_cv_c_stack_direction
=-1
10735 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10736 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10741 $as_echo "$ac_cv_c_stack_direction" >&6; }
10742 cat >>confdefs.h
<<_ACEOF
10743 #define STACK_DIRECTION $ac_cv_c_stack_direction
10749 ac_header_dirent
=no
10750 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
10751 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10753 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10754 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10755 $as_echo_n "(cached) " >&6
10757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759 #include <sys/types.h>
10771 if ac_fn_cxx_try_compile
"$LINENO"; then :
10772 eval "$as_ac_Header=yes"
10774 eval "$as_ac_Header=no"
10776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10778 eval ac_res
=\$
$as_ac_Header
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10780 $as_echo "$ac_res" >&6; }
10781 eval as_val
=\$
$as_ac_Header
10782 if test "x$as_val" = x
""yes; then :
10783 cat >>confdefs.h
<<_ACEOF
10784 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10787 ac_header_dirent
=$ac_hdr; break
10791 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10792 if test $ac_header_dirent = dirent.h
; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10794 $as_echo_n "checking for library containing opendir... " >&6; }
10795 if test "${ac_cv_search_opendir+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10798 ac_func_search_save_LIBS
=$LIBS
10799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10817 for ac_lib
in '' dir
; do
10818 if test -z "$ac_lib"; then
10819 ac_res
="none required"
10822 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10824 if ac_fn_cxx_try_link
"$LINENO"; then :
10825 ac_cv_search_opendir
=$ac_res
10827 rm -f core conftest.err conftest.
$ac_objext \
10829 if test "${ac_cv_search_opendir+set}" = set; then :
10833 if test "${ac_cv_search_opendir+set}" = set; then :
10836 ac_cv_search_opendir
=no
10838 rm conftest.
$ac_ext
10839 LIBS
=$ac_func_search_save_LIBS
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10842 $as_echo "$ac_cv_search_opendir" >&6; }
10843 ac_res
=$ac_cv_search_opendir
10844 if test "$ac_res" != no
; then :
10845 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10851 $as_echo_n "checking for library containing opendir... " >&6; }
10852 if test "${ac_cv_search_opendir+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10855 ac_func_search_save_LIBS
=$LIBS
10856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10874 for ac_lib
in '' x
; do
10875 if test -z "$ac_lib"; then
10876 ac_res
="none required"
10879 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10881 if ac_fn_cxx_try_link
"$LINENO"; then :
10882 ac_cv_search_opendir
=$ac_res
10884 rm -f core conftest.err conftest.
$ac_objext \
10886 if test "${ac_cv_search_opendir+set}" = set; then :
10890 if test "${ac_cv_search_opendir+set}" = set; then :
10893 ac_cv_search_opendir
=no
10895 rm conftest.
$ac_ext
10896 LIBS
=$ac_func_search_save_LIBS
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10899 $as_echo "$ac_cv_search_opendir" >&6; }
10900 ac_res
=$ac_cv_search_opendir
10901 if test "$ac_res" != no
; then :
10902 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10909 $as_echo_n "checking for ANSI C header files... " >&6; }
10910 if test "${ac_cv_header_stdc+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
10913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10915 #include <stdlib.h>
10916 #include <stdarg.h>
10917 #include <string.h>
10928 if ac_fn_cxx_try_compile
"$LINENO"; then :
10929 ac_cv_header_stdc
=yes
10931 ac_cv_header_stdc
=no
10933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10935 if test $ac_cv_header_stdc = yes; then
10936 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10939 #include <string.h>
10942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10943 $EGREP "memchr" >/dev
/null
2>&1; then :
10946 ac_cv_header_stdc
=no
10952 if test $ac_cv_header_stdc = yes; then
10953 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10956 #include <stdlib.h>
10959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10960 $EGREP "free" >/dev
/null
2>&1; then :
10963 ac_cv_header_stdc
=no
10969 if test $ac_cv_header_stdc = yes; then
10970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10971 if test "$cross_compiling" = yes; then :
10974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10977 #include <stdlib.h>
10978 #if ((' ' & 0x0FF) == 0x020)
10979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10982 # define ISLOWER(c) \
10983 (('a' <= (c) && (c) <= 'i') \
10984 || ('j' <= (c) && (c) <= 'r') \
10985 || ('s' <= (c) && (c) <= 'z'))
10986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10994 for (i = 0; i < 256; i++)
10995 if (XOR (islower (i), ISLOWER (i))
10996 || toupper (i) != TOUPPER (i))
11001 if ac_fn_cxx_try_run
"$LINENO"; then :
11004 ac_cv_header_stdc
=no
11006 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11007 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11013 $as_echo "$ac_cv_header_stdc" >&6; }
11014 if test $ac_cv_header_stdc = yes; then
11016 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11020 for ac_header
in argz.h arpa
/inet.h errno.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet
/in.h stddef.h nl_types.h signal.h stdint.h stdio_ext.h stdlib.h string.h
strings.h sys
/ioctl.h sys
/mntent.h sys
/mnttab.h sys
/mount.h sys
/param.h sys
/resource.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/time.h sys
/timeb.h sys
/types.h unistd.h
11022 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11023 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11024 eval as_val
=\$
$as_ac_Header
11025 if test "x$as_val" = x
""yes; then :
11026 cat >>confdefs.h
<<_ACEOF
11027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11035 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11036 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11041 #include <sys/types.h>
11042 #include <sys/wait.h>
11043 #ifndef WEXITSTATUS
11044 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11047 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11055 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11060 if ac_fn_cxx_try_compile
"$LINENO"; then :
11061 ac_cv_header_sys_wait_h
=yes
11063 ac_cv_header_sys_wait_h
=no
11065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11068 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11069 if test $ac_cv_header_sys_wait_h = yes; then
11071 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11077 # Checks for typedefs, structures, and compiler characteristics.
11078 ac_fn_cxx_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11079 if test "x$ac_cv_type_mode_t" = x
""yes; then :
11083 cat >>confdefs.h
<<_ACEOF
11089 ac_fn_cxx_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11090 if test "x$ac_cv_type_off_t" = x
""yes; then :
11094 cat >>confdefs.h
<<_ACEOF
11095 #define off_t long int
11100 ac_fn_cxx_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11101 if test "x$ac_cv_type_size_t" = x
""yes; then :
11105 cat >>confdefs.h
<<_ACEOF
11106 #define size_t unsigned int
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11112 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11113 if test "${ac_cv_header_time+set}" = set; then :
11114 $as_echo_n "(cached) " >&6
11116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11118 #include <sys/types.h>
11119 #include <sys/time.h>
11125 if ((struct tm *) 0)
11131 if ac_fn_cxx_try_compile
"$LINENO"; then :
11132 ac_cv_header_time
=yes
11134 ac_cv_header_time
=no
11136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11139 $as_echo "$ac_cv_header_time" >&6; }
11140 if test $ac_cv_header_time = yes; then
11142 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11147 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11148 if test "${ac_cv_struct_tm+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11153 #include <sys/types.h>
11160 int *p = &tm.tm_sec;
11166 if ac_fn_cxx_try_compile
"$LINENO"; then :
11167 ac_cv_struct_tm
=time.h
11169 ac_cv_struct_tm
=sys
/time.h
11171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11174 $as_echo "$ac_cv_struct_tm" >&6; }
11175 if test $ac_cv_struct_tm = sys
/time.h
; then
11177 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11182 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11183 if test "${ac_cv_type_uid_t+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
11186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188 #include <sys/types.h>
11191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11192 $EGREP "uid_t" >/dev
/null
2>&1; then :
11193 ac_cv_type_uid_t
=yes
11195 ac_cv_type_uid_t
=no
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11201 $as_echo "$ac_cv_type_uid_t" >&6; }
11202 if test $ac_cv_type_uid_t = no
; then
11204 $as_echo "#define uid_t int" >>confdefs.h
11207 $as_echo "#define gid_t int" >>confdefs.h
11211 ac_fn_cxx_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11212 if test "x$ac_cv_type_ptrdiff_t" = x
""yes; then :
11214 cat >>confdefs.h
<<_ACEOF
11215 #define HAVE_PTRDIFF_T 1
11223 # Checks for library functions.
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11225 $as_echo_n "checking whether closedir returns void... " >&6; }
11226 if test "${ac_cv_func_closedir_void+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11229 if test "$cross_compiling" = yes; then :
11230 ac_cv_func_closedir_void
=yes
11232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234 $ac_includes_default
11235 #include <$ac_header_dirent>
11236 #ifndef __cplusplus
11243 return closedir (opendir (".")) != 0;
11248 if ac_fn_cxx_try_run
"$LINENO"; then :
11249 ac_cv_func_closedir_void
=no
11251 ac_cv_func_closedir_void
=yes
11253 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11254 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11259 $as_echo "$ac_cv_func_closedir_void" >&6; }
11260 if test $ac_cv_func_closedir_void = yes; then
11262 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11266 if test $ac_cv_c_compiler_gnu = yes; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11268 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11269 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
11270 $as_echo_n "(cached) " >&6
11272 ac_pattern
="Autoconf.*'x'"
11273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11279 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
11280 ac_cv_prog_gcc_traditional
=yes
11282 ac_cv_prog_gcc_traditional
=no
11287 if test $ac_cv_prog_gcc_traditional = no
; then
11288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290 #include <termio.h>
11293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11294 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
11295 ac_cv_prog_gcc_traditional
=yes
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11302 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11303 if test $ac_cv_prog_gcc_traditional = yes; then
11304 CC
="$CC -traditional"
11308 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11309 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11313 cat >>confdefs.h
<<_ACEOF
11319 for ac_header
in vfork.h
11321 ac_fn_cxx_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11322 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
11323 cat >>confdefs.h
<<_ACEOF
11324 #define HAVE_VFORK_H 1
11331 for ac_func
in fork vfork
11333 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11334 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11335 eval as_val
=\$
$as_ac_var
11336 if test "x$as_val" = x
""yes; then :
11337 cat >>confdefs.h
<<_ACEOF
11338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11344 if test "x$ac_cv_func_fork" = xyes
; then
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11346 $as_echo_n "checking for working fork... " >&6; }
11347 if test "${ac_cv_func_fork_works+set}" = set; then :
11348 $as_echo_n "(cached) " >&6
11350 if test "$cross_compiling" = yes; then :
11351 ac_cv_func_fork_works
=cross
11353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11355 $ac_includes_default
11360 /* By Ruediger Kuhlmann. */
11361 return fork () < 0;
11367 if ac_fn_cxx_try_run
"$LINENO"; then :
11368 ac_cv_func_fork_works
=yes
11370 ac_cv_func_fork_works
=no
11372 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11373 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11378 $as_echo "$ac_cv_func_fork_works" >&6; }
11381 ac_cv_func_fork_works
=$ac_cv_func_fork
11383 if test "x$ac_cv_func_fork_works" = xcross
; then
11385 *-*-amigaos* |
*-*-msdosdjgpp*)
11386 # Override, as these systems have only a dummy fork() stub
11387 ac_cv_func_fork_works
=no
11390 ac_cv_func_fork_works
=yes
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11394 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11396 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11397 if test "x$ac_cv_func_vfork" = xyes
; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11399 $as_echo_n "checking for working vfork... " >&6; }
11400 if test "${ac_cv_func_vfork_works+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11403 if test "$cross_compiling" = yes; then :
11404 ac_cv_func_vfork_works
=cross
11406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11408 /* Thanks to Paul Eggert for this test. */
11409 $ac_includes_default
11410 #include <sys/wait.h>
11411 #ifdef HAVE_VFORK_H
11412 # include <vfork.h>
11414 /* On some sparc systems, changes by the child to local and incoming
11415 argument registers are propagated back to the parent. The compiler
11416 is told about this with #include <vfork.h>, but some compilers
11417 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11418 static variable whose address is put into a register that is
11419 clobbered by the vfork. */
11422 sparc_address_test (int arg)
11424 sparc_address_test (arg) int arg;
11427 static pid_t child;
11445 pid_t parent = getpid ();
11448 sparc_address_test (0);
11453 /* Here is another test for sparc vfork register problems. This
11454 test uses lots of local variables, at least as many local
11455 variables as main has allocated so far including compiler
11456 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11457 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11458 reuse the register of parent for one of the local variables,
11459 since it will think that parent can't possibly be used any more
11460 in this routine. Assigning to the local variable will thus
11461 munge parent in the parent process. */
11463 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11464 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11465 /* Convince the compiler that p..p7 are live; otherwise, it might
11466 use the same hardware register for all 8 local variables. */
11467 if (p != p1 || p != p2 || p != p3 || p != p4
11468 || p != p5 || p != p6 || p != p7)
11471 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11472 from child file descriptors. If the child closes a descriptor
11473 before it execs or exits, this munges the parent's descriptor
11474 as well. Test for this by closing stdout in the child. */
11475 _exit(close(fileno(stdout)) != 0);
11480 while (wait(&status) != child)
11483 /* Was there some problem with vforking? */
11486 /* Did the child fail? (This shouldn't happen.) */
11489 /* Did the vfork/compiler bug occur? */
11490 || parent != getpid()
11492 /* Did the file descriptor bug occur? */
11493 || fstat(fileno(stdout), &st) != 0
11498 if ac_fn_cxx_try_run
"$LINENO"; then :
11499 ac_cv_func_vfork_works
=yes
11501 ac_cv_func_vfork_works
=no
11503 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11504 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11509 $as_echo "$ac_cv_func_vfork_works" >&6; }
11512 if test "x$ac_cv_func_fork_works" = xcross
; then
11513 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11515 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11518 if test "x$ac_cv_func_vfork_works" = xyes
; then
11520 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11524 $as_echo "#define vfork fork" >>confdefs.h
11527 if test "x$ac_cv_func_fork_works" = xyes
; then
11529 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11534 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11535 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11536 $as_echo_n "(cached) " >&6
11538 rm -f conftest.sym conftest.
file
11539 echo >conftest.
file
11540 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11541 if test "$cross_compiling" = yes; then :
11542 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546 $ac_includes_default
11551 /* Linux will dereference the symlink and fail, as required by POSIX.
11552 That is better in the sense that it means we will not
11553 have to compile and use the lstat wrapper. */
11554 return lstat ("conftest.sym/", &sbuf) == 0;
11559 if ac_fn_cxx_try_run
"$LINENO"; then :
11560 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11562 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11564 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11565 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11569 # If the `ln -s' command failed, then we probably don't even
11570 # have an lstat function.
11571 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11573 rm -f conftest.sym conftest.
file
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11577 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11579 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11581 cat >>confdefs.h
<<_ACEOF
11582 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11586 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
11587 case " $LIBOBJS " in
11588 *" lstat.$ac_objext "* ) ;;
11589 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11595 if test x
$SYS != xwin32
; then :
11597 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11598 # -lseq on Dynix/PTX, -lgen on Unixware.
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11600 $as_echo_n "checking for library containing getmntent... " >&6; }
11601 if test "${ac_cv_search_getmntent+set}" = set; then :
11602 $as_echo_n "(cached) " >&6
11604 ac_func_search_save_LIBS
=$LIBS
11605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11618 return getmntent ();
11623 for ac_lib
in '' sun
seq gen
; do
11624 if test -z "$ac_lib"; then
11625 ac_res
="none required"
11628 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11630 if ac_fn_cxx_try_link
"$LINENO"; then :
11631 ac_cv_search_getmntent
=$ac_res
11633 rm -f core conftest.err conftest.
$ac_objext \
11635 if test "${ac_cv_search_getmntent+set}" = set; then :
11639 if test "${ac_cv_search_getmntent+set}" = set; then :
11642 ac_cv_search_getmntent
=no
11644 rm conftest.
$ac_ext
11645 LIBS
=$ac_func_search_save_LIBS
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11648 $as_echo "$ac_cv_search_getmntent" >&6; }
11649 ac_res
=$ac_cv_search_getmntent
11650 if test "$ac_res" != no
; then :
11651 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11652 ac_cv_func_getmntent
=yes
11654 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11657 ac_cv_func_getmntent
=no
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11662 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11663 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
11664 $as_echo_n "(cached) " >&6
11666 if test "$cross_compiling" = yes; then :
11667 ac_cv_func_lstat_empty_string_bug
=yes
11669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11671 $ac_includes_default
11676 return lstat ("", &sbuf) == 0;
11681 if ac_fn_cxx_try_run
"$LINENO"; then :
11682 ac_cv_func_lstat_empty_string_bug
=no
11684 ac_cv_func_lstat_empty_string_bug
=yes
11686 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11687 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11692 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11693 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11694 case " $LIBOBJS " in
11695 *" lstat.$ac_objext "* ) ;;
11696 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11701 cat >>confdefs.h
<<_ACEOF
11702 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11708 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11709 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11710 $as_echo_n "(cached) " >&6
11712 rm -f conftest.sym conftest.
file
11713 echo >conftest.
file
11714 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11715 if test "$cross_compiling" = yes; then :
11716 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11719 /* end confdefs.h. */
11720 $ac_includes_default
11725 /* Linux will dereference the symlink and fail, as required by POSIX.
11726 That is better in the sense that it means we will not
11727 have to compile and use the lstat wrapper. */
11728 return lstat ("conftest.sym/", &sbuf) == 0;
11733 if ac_fn_cxx_try_run
"$LINENO"; then :
11734 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11736 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11738 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11739 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11743 # If the `ln -s' command failed, then we probably don't even
11744 # have an lstat function.
11745 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11747 rm -f conftest.sym conftest.
file
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11751 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11753 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11755 cat >>confdefs.h
<<_ACEOF
11756 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11760 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
11761 case " $LIBOBJS " in
11762 *" lstat.$ac_objext "* ) ;;
11763 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11772 $as_echo_n "checking for working memcmp... " >&6; }
11773 if test "${ac_cv_func_memcmp_working+set}" = set; then :
11774 $as_echo_n "(cached) " >&6
11776 if test "$cross_compiling" = yes; then :
11777 ac_cv_func_memcmp_working
=no
11779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h. */
11781 $ac_includes_default
11786 /* Some versions of memcmp are not 8-bit clean. */
11787 char c0 = '\100', c1 = '\200', c2 = '\201';
11788 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11791 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11792 or more and with at least one buffer not starting on a 4-byte boundary.
11793 William Lewis provided this test program. */
11798 for (i = 0; i < 4; i++)
11802 strcpy (a, "--------01111111");
11803 strcpy (b, "--------10000000");
11804 if (memcmp (a, b, 16) >= 0)
11814 if ac_fn_cxx_try_run
"$LINENO"; then :
11815 ac_cv_func_memcmp_working
=yes
11817 ac_cv_func_memcmp_working
=no
11819 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11820 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11825 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11826 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
11827 *" memcmp.$ac_objext "* ) ;;
11828 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
11833 for ac_header
in sys
/select.h sys
/socket.h
11835 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11836 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11837 eval as_val
=\$
$as_ac_Header
11838 if test "x$as_val" = x
""yes; then :
11839 cat >>confdefs.h
<<_ACEOF
11840 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11848 $as_echo_n "checking types of arguments for select... " >&6; }
11849 if test "${ac_cv_func_select_args+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
11852 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
11853 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11854 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
11855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11857 $ac_includes_default
11858 #ifdef HAVE_SYS_SELECT_H
11859 # include <sys/select.h>
11861 #ifdef HAVE_SYS_SOCKET_H
11862 # include <sys/socket.h>
11868 extern int select ($ac_arg1,
11869 $ac_arg234, $ac_arg234, $ac_arg234,
11875 if ac_fn_cxx_try_compile
"$LINENO"; then :
11876 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11882 # Provide a safe default value.
11883 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11887 $as_echo "$ac_cv_func_select_args" >&6; }
11888 ac_save_IFS
=$IFS; IFS
=','
11889 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11893 cat >>confdefs.h
<<_ACEOF
11894 #define SELECT_TYPE_ARG1 $1
11898 cat >>confdefs.h
<<_ACEOF
11899 #define SELECT_TYPE_ARG234 ($2)
11903 cat >>confdefs.h
<<_ACEOF
11904 #define SELECT_TYPE_ARG5 ($3)
11909 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
11910 $as_echo_n "(cached) " >&6
11912 ac_cv_func_setvbuf_reversed
=no
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11917 $as_echo_n "checking return type of signal handlers... " >&6; }
11918 if test "${ac_cv_type_signal+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #include <sys/types.h>
11924 #include <signal.h>
11929 return *(signal (0, 0)) (0) == 1;
11934 if ac_fn_cxx_try_compile
"$LINENO"; then :
11935 ac_cv_type_signal
=int
11937 ac_cv_type_signal
=void
11939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11942 $as_echo "$ac_cv_type_signal" >&6; }
11944 cat >>confdefs.h
<<_ACEOF
11945 #define RETSIGTYPE $ac_cv_type_signal
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11950 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11951 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
11952 $as_echo_n "(cached) " >&6
11954 if test "$cross_compiling" = yes; then :
11955 ac_cv_func_stat_empty_string_bug
=yes
11957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11959 $ac_includes_default
11964 return stat ("", &sbuf) == 0;
11969 if ac_fn_cxx_try_run
"$LINENO"; then :
11970 ac_cv_func_stat_empty_string_bug
=no
11972 ac_cv_func_stat_empty_string_bug
=yes
11974 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11975 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
11980 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
11981 if test $ac_cv_func_stat_empty_string_bug = yes; then
11982 case " $LIBOBJS " in
11983 *" stat.$ac_objext "* ) ;;
11984 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
11989 cat >>confdefs.h
<<_ACEOF
11990 #define HAVE_STAT_EMPTY_STRING_BUG 1
11995 for ac_func
in strftime
11997 ac_fn_cxx_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
11998 if test "x$ac_cv_func_strftime" = x
""yes; then :
11999 cat >>confdefs.h
<<_ACEOF
12000 #define HAVE_STRFTIME 1
12004 # strftime is in -lintl on SCO UNIX.
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12006 $as_echo_n "checking for strftime in -lintl... " >&6; }
12007 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12010 ac_check_lib_save_LIBS
=$LIBS
12011 LIBS
="-lintl $LIBS"
12012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12025 return strftime ();
12030 if ac_fn_cxx_try_link
"$LINENO"; then :
12031 ac_cv_lib_intl_strftime
=yes
12033 ac_cv_lib_intl_strftime
=no
12035 rm -f core conftest.err conftest.
$ac_objext \
12036 conftest
$ac_exeext conftest.
$ac_ext
12037 LIBS
=$ac_check_lib_save_LIBS
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12040 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12041 if test "x$ac_cv_lib_intl_strftime" = x
""yes; then :
12042 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12044 LIBS
="-lintl $LIBS"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12051 $as_echo_n "checking for working strtod... " >&6; }
12052 if test "${ac_cv_func_strtod+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12055 if test "$cross_compiling" = yes; then :
12056 ac_cv_func_strtod
=no
12058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12061 $ac_includes_default
12069 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12070 char *string = " +69";
12073 value = strtod (string, &term);
12074 if (value != 69 || term != (string + 4))
12079 /* Under Solaris 2.4, strtod returns the wrong value for the
12080 terminating character under some conditions. */
12081 char *string = "NaN";
12083 strtod (string, &term);
12084 if (term != string && *(term - 1) == 0)
12091 if ac_fn_cxx_try_run
"$LINENO"; then :
12092 ac_cv_func_strtod
=yes
12094 ac_cv_func_strtod
=no
12096 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12097 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12102 $as_echo "$ac_cv_func_strtod" >&6; }
12103 if test $ac_cv_func_strtod = no
; then
12104 case " $LIBOBJS " in
12105 *" strtod.$ac_objext "* ) ;;
12106 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
12110 ac_fn_cxx_check_func
"$LINENO" "pow" "ac_cv_func_pow"
12111 if test "x$ac_cv_func_pow" = x
""yes; then :
12115 if test $ac_cv_func_pow = no
; then
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12117 $as_echo_n "checking for pow in -lm... " >&6; }
12118 if test "${ac_cv_lib_m_pow+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12121 ac_check_lib_save_LIBS
=$LIBS
12123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12126 /* Override any GCC internal prototype to avoid an error.
12127 Use char because int might match the return type of a GCC
12128 builtin and then its argument prototype would still apply. */
12141 if ac_fn_cxx_try_link
"$LINENO"; then :
12142 ac_cv_lib_m_pow
=yes
12146 rm -f core conftest.err conftest.
$ac_objext \
12147 conftest
$ac_exeext conftest.
$ac_ext
12148 LIBS
=$ac_check_lib_save_LIBS
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12151 $as_echo "$ac_cv_lib_m_pow" >&6; }
12152 if test "x$ac_cv_lib_m_pow" = x
""yes; then :
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12156 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12163 for ac_func
in vprintf
12165 ac_fn_cxx_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
12166 if test "x$ac_cv_func_vprintf" = x
""yes; then :
12167 cat >>confdefs.h
<<_ACEOF
12168 #define HAVE_VPRINTF 1
12171 ac_fn_cxx_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
12172 if test "x$ac_cv_func__doprnt" = x
""yes; then :
12174 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12182 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12185 configure cannot check whether malloc() and realloc() are GNU libc
12186 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12187 run configure with the --without-gnu-malloc switch." >&5
12188 $as_echo "$as_me: WARNING:
12189 configure cannot check whether malloc() and realloc() are GNU libc
12190 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12191 run configure with the --without-gnu-malloc switch." >&2;}
12192 _mule_warning_12
=yes
12193 _mule_has_warnings
=yes
12195 ac_cv_func_malloc_0_nonnull
=yes
12196 ac_cv_func_realloc_0_nonnull
=yes
12199 for ac_header
in stdlib.h
12201 ac_fn_cxx_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12202 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
12203 cat >>confdefs.h
<<_ACEOF
12204 #define HAVE_STDLIB_H 1
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12212 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12213 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12214 $as_echo_n "(cached) " >&6
12216 if test "$cross_compiling" = yes; then :
12217 ac_cv_func_malloc_0_nonnull
=no
12219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h. */
12221 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12222 # include <stdlib.h>
12230 return ! malloc (0);
12235 if ac_fn_cxx_try_run
"$LINENO"; then :
12236 ac_cv_func_malloc_0_nonnull
=yes
12238 ac_cv_func_malloc_0_nonnull
=no
12240 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12241 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12246 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12247 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12249 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12252 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12254 case " $LIBOBJS " in
12255 *" malloc.$ac_objext "* ) ;;
12256 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
12261 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12266 for ac_header
in stdlib.h
12268 ac_fn_cxx_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12269 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
12270 cat >>confdefs.h
<<_ACEOF
12271 #define HAVE_STDLIB_H 1
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12279 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12280 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
12281 $as_echo_n "(cached) " >&6
12283 if test "$cross_compiling" = yes; then :
12284 ac_cv_func_realloc_0_nonnull
=no
12286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12289 # include <stdlib.h>
12297 return ! realloc (0, 0);
12302 if ac_fn_cxx_try_run
"$LINENO"; then :
12303 ac_cv_func_realloc_0_nonnull
=yes
12305 ac_cv_func_realloc_0_nonnull
=no
12307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12313 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12314 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12316 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12319 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12321 case " $LIBOBJS " in
12322 *" realloc.$ac_objext "* ) ;;
12323 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
12328 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12333 for ac_func
in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getopt_long getpass getrlimit gettimeofday inet_ntoa localeconv memmove mempcpy memset mkdir nl_langinfo pow
select setlocale setrlimit sigaction socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
12335 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12336 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12337 eval as_val
=\$
$as_ac_var
12338 if test "x$as_val" = x
""yes; then :
12339 cat >>confdefs.h
<<_ACEOF
12340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12351 for ac_header
in $ac_header_list
12353 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12356 eval as_val
=\$
$as_ac_Header
12357 if test "x$as_val" = x
""yes; then :
12358 cat >>confdefs.h
<<_ACEOF
12359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12372 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12374 # Check whether --enable-mmap was given.
12375 if test "${enable_mmap+set}" = set; then :
12376 enableval
=$enable_mmap;
12383 if test ${enable_mmap:-no} = yes; then :
12385 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12388 for ac_func
in getpagesize
12390 ac_fn_cxx_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12391 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12392 cat >>confdefs.h
<<_ACEOF
12393 #define HAVE_GETPAGESIZE 1
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12400 $as_echo_n "checking for working mmap... " >&6; }
12401 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12404 if test "$cross_compiling" = yes; then :
12405 ac_cv_func_mmap_fixed_mapped
=no
12407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409 $ac_includes_default
12410 /* malloc might have been renamed as rpl_malloc. */
12413 /* Thanks to Mike Haertel and Jim Avera for this test.
12414 Here is a matrix of mmap possibilities:
12415 mmap private not fixed
12416 mmap private fixed at somewhere currently unmapped
12417 mmap private fixed at somewhere already mapped
12418 mmap shared not fixed
12419 mmap shared fixed at somewhere currently unmapped
12420 mmap shared fixed at somewhere already mapped
12421 For private mappings, we should verify that changes cannot be read()
12422 back from the file, nor mmap's back from the file at a different
12423 address. (There have been systems where private was not correctly
12424 implemented like the infamous i386 svr4.0, and systems where the
12425 VM page cache was not coherent with the file system buffer cache
12426 like early versions of FreeBSD and possibly contemporary NetBSD.)
12427 For shared mappings, we should conversely verify that changes get
12428 propagated back to all the places they're supposed to be.
12430 Grep wants private fixed already mapped.
12431 The main things grep needs to know about mmap are:
12432 * does it exist and is it safe to write into the mmap'd area
12433 * how to use it (BSD variants) */
12436 #include <sys/mman.h>
12438 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12442 /* This mess was copied from the GNU getpagesize.h. */
12443 #ifndef HAVE_GETPAGESIZE
12444 # ifdef _SC_PAGESIZE
12445 # define getpagesize() sysconf(_SC_PAGESIZE)
12446 # else /* no _SC_PAGESIZE */
12447 # ifdef HAVE_SYS_PARAM_H
12448 # include <sys/param.h>
12449 # ifdef EXEC_PAGESIZE
12450 # define getpagesize() EXEC_PAGESIZE
12451 # else /* no EXEC_PAGESIZE */
12453 # define getpagesize() NBPG * CLSIZE
12456 # endif /* no CLSIZE */
12457 # else /* no NBPG */
12459 # define getpagesize() NBPC
12460 # else /* no NBPC */
12462 # define getpagesize() PAGESIZE
12463 # endif /* PAGESIZE */
12464 # endif /* no NBPC */
12465 # endif /* no NBPG */
12466 # endif /* no EXEC_PAGESIZE */
12467 # else /* no HAVE_SYS_PARAM_H */
12468 # define getpagesize() 8192 /* punt totally */
12469 # endif /* no HAVE_SYS_PARAM_H */
12470 # endif /* no _SC_PAGESIZE */
12472 #endif /* no HAVE_GETPAGESIZE */
12477 char *data, *data2, *data3;
12481 pagesize = getpagesize ();
12483 /* First, make a file with some known garbage in it. */
12484 data = (char *) malloc (pagesize);
12487 for (i = 0; i < pagesize; ++i)
12488 *(data + i) = rand ();
12490 fd = creat ("conftest.mmap", 0600);
12493 if (write (fd, data, pagesize) != pagesize)
12497 /* Next, check that the tail of a page is zero-filled. File must have
12498 non-zero length, otherwise we risk SIGBUS for entire page. */
12499 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12502 data2 = (char *) "";
12503 if (write (fd2, data2, 1) != 1)
12505 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12506 if (data2 == MAP_FAILED)
12508 for (i = 0; i < pagesize; ++i)
12512 if (munmap (data2, pagesize))
12515 /* Next, try to mmap the file at a fixed address which already has
12516 something else allocated at it. If we can, also make sure that
12517 we see the same garbage. */
12518 fd = open ("conftest.mmap", O_RDWR);
12521 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12522 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12524 for (i = 0; i < pagesize; ++i)
12525 if (*(data + i) != *(data2 + i))
12528 /* Finally, make sure that changes to the mapped area do not
12529 percolate back to the file as seen by read(). (This is a bug on
12530 some variants of i386 svr4.0.) */
12531 for (i = 0; i < pagesize; ++i)
12532 *(data2 + i) = *(data2 + i) + 1;
12533 data3 = (char *) malloc (pagesize);
12536 if (read (fd, data3, pagesize) != pagesize)
12538 for (i = 0; i < pagesize; ++i)
12539 if (*(data + i) != *(data3 + i))
12545 if ac_fn_cxx_try_run
"$LINENO"; then :
12546 ac_cv_func_mmap_fixed_mapped
=yes
12548 ac_cv_func_mmap_fixed_mapped
=no
12550 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12551 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12556 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12557 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12559 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12562 rm -f conftest.mmap conftest.txt
12564 for ac_func
in munmap sysconf
12566 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12567 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12568 eval as_val
=\$
$as_ac_var
12569 if test "x$as_val" = x
""yes; then :
12570 cat >>confdefs.h
<<_ACEOF
12571 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12577 if test $ac_cv_func_sysconf = yes; then :
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12580 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12585 #include <unistd.h>
12591 return sysconf(_SC_PAGESIZE);
12598 if ac_fn_cxx_try_link
"$LINENO"; then :
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12601 $as_echo "_SC_PAGESIZE" >&6; }
12603 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12612 #include <unistd.h>
12618 return sysconf(_SC_PAGE_SIZE);
12625 if ac_fn_cxx_try_link
"$LINENO"; then :
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12628 $as_echo "_SC_PAGE_SIZE" >&6; }
12630 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12636 $as_echo "none" >&6; }
12639 rm -f core conftest.err conftest.
$ac_objext \
12640 conftest
$ac_exeext conftest.
$ac_ext
12643 rm -f core conftest.err conftest.
$ac_objext \
12644 conftest
$ac_exeext conftest.
$ac_ext
12653 # Look for a way to preallocate disk space for files.
12654 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12657 $as_echo_n "checking for fallocate... " >&6; }
12658 mule_backup_CPPFLAGS
="$CPPFLAGS"
12659 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
12660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12664 #ifndef _GNU_SOURCE
12665 # define _GNU_SOURCE
12667 #ifdef HAVE_FCNTL_H
12668 # include <fcntl.h>
12670 #include <linux/falloc.h>
12676 fallocate(0, 0, 0, 0);
12683 if ac_fn_cxx_try_link
"$LINENO"; then :
12686 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12689 $as_echo "yes" >&6; }
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12697 rm -f core conftest.err conftest.
$ac_objext \
12698 conftest
$ac_exeext conftest.
$ac_ext
12699 CPPFLAGS
="$mule_backup_CPPFLAGS"
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12703 $as_echo_n "checking for SYS_fallocate... " >&6; }
12704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12708 #include <sys/syscall.h>
12709 #include <sys/types.h>
12710 #include <unistd.h>
12716 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12723 if ac_fn_cxx_try_link
"$LINENO"; then :
12726 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12729 $as_echo "yes" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12737 rm -f core conftest.err conftest.
$ac_objext \
12738 conftest
$ac_exeext conftest.
$ac_ext
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12741 $as_echo_n "checking for posix_fallocate... " >&6; }
12742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12746 #define _XOPEN_SOURCE 600
12747 #include <stdlib.h>
12748 #ifdef HAVE_FCNTL_H
12749 # include <fcntl.h>
12756 posix_fallocate(0, 0, 0);
12763 if ac_fn_cxx_try_link
"$LINENO"; then :
12766 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12769 $as_echo "yes" >&6; }
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12774 $as_echo "no" >&6; }
12777 rm -f core conftest.err conftest.
$ac_objext \
12778 conftest
$ac_exeext conftest.
$ac_ext
12784 ac_cpp
='$CPP $CPPFLAGS'
12785 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12786 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12787 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12789 # Checking Native Language Support
12793 if test -n "$ac_aux_dir"; then
12794 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
12796 if test -z "$MKINSTALLDIRS"; then
12797 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
12804 # Extract the first word of "msgfmt", so it can be a program name with args.
12805 set dummy msgfmt
; ac_word
=$2
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807 $as_echo_n "checking for $ac_word... " >&6; }
12808 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
12813 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
12816 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12817 for ac_dir
in $PATH; do
12818 test -z "$ac_dir" && ac_dir
=.
12819 if test -f $ac_dir/$ac_word; then
12820 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
12821 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12822 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
12828 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
12832 MSGFMT
="$ac_cv_path_MSGFMT"
12833 if test "$MSGFMT" != ":"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12835 $as_echo "$MSGFMT" >&6; }
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838 $as_echo "no" >&6; }
12841 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12842 set dummy gmsgfmt
; ac_word
=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12850 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
12853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12854 for as_dir
in $PATH
12857 test -z "$as_dir" && as_dir
=.
12858 for ac_exec_ext
in '' $ac_executable_extensions; do
12859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12860 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
12872 GMSGFMT
=$ac_cv_path_GMSGFMT
12873 if test -n "$GMSGFMT"; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12875 $as_echo "$GMSGFMT" >&6; }
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12883 # Extract the first word of "xgettext", so it can be a program name with args.
12884 set dummy xgettext
; ac_word
=$2
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12886 $as_echo_n "checking for $ac_word... " >&6; }
12887 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12890 case "$XGETTEXT" in
12892 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
12895 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12896 for ac_dir
in $PATH; do
12897 test -z "$ac_dir" && ac_dir
=.
12898 if test -f $ac_dir/$ac_word; then
12899 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
12900 (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
12901 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
12907 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
12911 XGETTEXT
="$ac_cv_path_XGETTEXT"
12912 if test "$XGETTEXT" != ":"; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12914 $as_echo "$XGETTEXT" >&6; }
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12917 $as_echo "no" >&6; }
12922 # Extract the first word of "msgmerge", so it can be a program name with args.
12923 set dummy msgmerge
; ac_word
=$2
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925 $as_echo_n "checking for $ac_word... " >&6; }
12926 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
12929 case "$MSGMERGE" in
12931 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
12934 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
12935 for ac_dir
in $PATH; do
12936 test -z "$ac_dir" && ac_dir
=.
12937 if test -f $ac_dir/$ac_word; then
12938 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
12939 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
12945 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
12949 MSGMERGE
="$ac_cv_path_MSGMERGE"
12950 if test "$MSGMERGE" != ":"; then
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12952 $as_echo "$MSGMERGE" >&6; }
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955 $as_echo "no" >&6; }
12959 if test "$GMSGFMT" != ":"; then
12960 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
12961 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12964 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12966 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12971 if test "$XGETTEXT" != ":"; then
12972 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
12973 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12977 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12983 ac_config_commands
="$ac_config_commands default-1"
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
12988 $as_echo_n "checking for strerror in -lcposix... " >&6; }
12989 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
12990 $as_echo_n "(cached) " >&6
12992 ac_check_lib_save_LIBS
=$LIBS
12993 LIBS
="-lcposix $LIBS"
12994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12997 /* Override any GCC internal prototype to avoid an error.
12998 Use char because int might match the return type of a GCC
12999 builtin and then its argument prototype would still apply. */
13007 return strerror ();
13012 if ac_fn_c_try_link
"$LINENO"; then :
13013 ac_cv_lib_cposix_strerror
=yes
13015 ac_cv_lib_cposix_strerror
=no
13017 rm -f core conftest.err conftest.
$ac_objext \
13018 conftest
$ac_exeext conftest.
$ac_ext
13019 LIBS
=$ac_check_lib_save_LIBS
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
13022 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
13023 if test "x$ac_cv_lib_cposix_strerror" = x
""yes; then :
13024 LIBS
="$LIBS -lcposix"
13030 for ac_func
in getpagesize
13032 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13033 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
13034 cat >>confdefs.h
<<_ACEOF
13035 #define HAVE_GETPAGESIZE 1
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13042 $as_echo_n "checking for working mmap... " >&6; }
13043 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13044 $as_echo_n "(cached) " >&6
13046 if test "$cross_compiling" = yes; then :
13047 ac_cv_func_mmap_fixed_mapped
=no
13049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13051 $ac_includes_default
13052 /* malloc might have been renamed as rpl_malloc. */
13055 /* Thanks to Mike Haertel and Jim Avera for this test.
13056 Here is a matrix of mmap possibilities:
13057 mmap private not fixed
13058 mmap private fixed at somewhere currently unmapped
13059 mmap private fixed at somewhere already mapped
13060 mmap shared not fixed
13061 mmap shared fixed at somewhere currently unmapped
13062 mmap shared fixed at somewhere already mapped
13063 For private mappings, we should verify that changes cannot be read()
13064 back from the file, nor mmap's back from the file at a different
13065 address. (There have been systems where private was not correctly
13066 implemented like the infamous i386 svr4.0, and systems where the
13067 VM page cache was not coherent with the file system buffer cache
13068 like early versions of FreeBSD and possibly contemporary NetBSD.)
13069 For shared mappings, we should conversely verify that changes get
13070 propagated back to all the places they're supposed to be.
13072 Grep wants private fixed already mapped.
13073 The main things grep needs to know about mmap are:
13074 * does it exist and is it safe to write into the mmap'd area
13075 * how to use it (BSD variants) */
13078 #include <sys/mman.h>
13080 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13084 /* This mess was copied from the GNU getpagesize.h. */
13085 #ifndef HAVE_GETPAGESIZE
13086 # ifdef _SC_PAGESIZE
13087 # define getpagesize() sysconf(_SC_PAGESIZE)
13088 # else /* no _SC_PAGESIZE */
13089 # ifdef HAVE_SYS_PARAM_H
13090 # include <sys/param.h>
13091 # ifdef EXEC_PAGESIZE
13092 # define getpagesize() EXEC_PAGESIZE
13093 # else /* no EXEC_PAGESIZE */
13095 # define getpagesize() NBPG * CLSIZE
13098 # endif /* no CLSIZE */
13099 # else /* no NBPG */
13101 # define getpagesize() NBPC
13102 # else /* no NBPC */
13104 # define getpagesize() PAGESIZE
13105 # endif /* PAGESIZE */
13106 # endif /* no NBPC */
13107 # endif /* no NBPG */
13108 # endif /* no EXEC_PAGESIZE */
13109 # else /* no HAVE_SYS_PARAM_H */
13110 # define getpagesize() 8192 /* punt totally */
13111 # endif /* no HAVE_SYS_PARAM_H */
13112 # endif /* no _SC_PAGESIZE */
13114 #endif /* no HAVE_GETPAGESIZE */
13119 char *data, *data2, *data3;
13123 pagesize = getpagesize ();
13125 /* First, make a file with some known garbage in it. */
13126 data = (char *) malloc (pagesize);
13129 for (i = 0; i < pagesize; ++i)
13130 *(data + i) = rand ();
13132 fd = creat ("conftest.mmap", 0600);
13135 if (write (fd, data, pagesize) != pagesize)
13139 /* Next, check that the tail of a page is zero-filled. File must have
13140 non-zero length, otherwise we risk SIGBUS for entire page. */
13141 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13145 if (write (fd2, data2, 1) != 1)
13147 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13148 if (data2 == MAP_FAILED)
13150 for (i = 0; i < pagesize; ++i)
13154 if (munmap (data2, pagesize))
13157 /* Next, try to mmap the file at a fixed address which already has
13158 something else allocated at it. If we can, also make sure that
13159 we see the same garbage. */
13160 fd = open ("conftest.mmap", O_RDWR);
13163 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13164 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13166 for (i = 0; i < pagesize; ++i)
13167 if (*(data + i) != *(data2 + i))
13170 /* Finally, make sure that changes to the mapped area do not
13171 percolate back to the file as seen by read(). (This is a bug on
13172 some variants of i386 svr4.0.) */
13173 for (i = 0; i < pagesize; ++i)
13174 *(data2 + i) = *(data2 + i) + 1;
13175 data3 = (char *) malloc (pagesize);
13178 if (read (fd, data3, pagesize) != pagesize)
13180 for (i = 0; i < pagesize; ++i)
13181 if (*(data + i) != *(data3 + i))
13187 if ac_fn_c_try_run
"$LINENO"; then :
13188 ac_cv_func_mmap_fixed_mapped
=yes
13190 ac_cv_func_mmap_fixed_mapped
=no
13192 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13193 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13198 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13199 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13201 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13204 rm -f conftest.mmap conftest.txt
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13208 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13209 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
13210 $as_echo_n "(cached) " >&6
13212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13215 #include <features.h>
13216 #ifdef __GNU_LIBRARY__
13217 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13224 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
13225 ac_cv_gnu_library_2_1
=yes
13227 ac_cv_gnu_library_2_1
=no
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13235 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13237 GLIBC21
="$ac_cv_gnu_library_2_1"
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13243 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13244 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
13245 $as_echo_n "(cached) " >&6
13248 if test "$cross_compiling" = yes; then :
13250 # Guess based on the CPU.
13251 case "$host_cpu" in
13252 alpha
* | i3456786 | m68k | s390
*)
13253 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
13255 gt_cv_int_divbyzero_sigfpe
="guessing no";;
13259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13262 #include <stdlib.h>
13263 #include <signal.h>
13267 sigfpe_handler (int sig)
13269 sigfpe_handler (sig) int sig;
13272 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13273 exit (sig != SIGFPE);
13283 signal (SIGFPE, sigfpe_handler);
13284 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13285 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13286 signal (SIGTRAP, sigfpe_handler);
13288 /* Linux/SPARC yields signal SIGILL. */
13289 #if defined (__sparc__) && defined (__linux__)
13290 signal (SIGILL, sigfpe_handler);
13299 if ac_fn_c_try_run
"$LINENO"; then :
13300 gt_cv_int_divbyzero_sigfpe
=yes
13302 gt_cv_int_divbyzero_sigfpe
=no
13304 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13305 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13311 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13312 case "$gt_cv_int_divbyzero_sigfpe" in
13317 cat >>confdefs.h
<<_ACEOF
13318 #define INTDIV0_RAISES_SIGFPE $value
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13324 $as_echo_n "checking for inttypes.h... " >&6; }
13325 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
13326 $as_echo_n "(cached) " >&6
13328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330 #include <sys/types.h>
13331 #include <inttypes.h>
13335 uintmax_t i = (uintmax_t) -1;
13340 if ac_fn_c_try_compile
"$LINENO"; then :
13341 jm_ac_cv_header_inttypes_h
=yes
13343 jm_ac_cv_header_inttypes_h
=no
13345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13348 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13349 if test $jm_ac_cv_header_inttypes_h = yes; then
13351 cat >>confdefs.h
<<_ACEOF
13352 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13359 $as_echo_n "checking for stdint.h... " >&6; }
13360 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
13361 $as_echo_n "(cached) " >&6
13363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365 #include <sys/types.h>
13366 #include <stdint.h>
13370 uintmax_t i = (uintmax_t) -1;
13375 if ac_fn_c_try_compile
"$LINENO"; then :
13376 jm_ac_cv_header_stdint_h
=yes
13378 jm_ac_cv_header_stdint_h
=no
13380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13383 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13384 if test $jm_ac_cv_header_stdint_h = yes; then
13386 cat >>confdefs.h
<<_ACEOF
13387 #define HAVE_STDINT_H_WITH_UINTMAX 1
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13394 $as_echo_n "checking for unsigned long long... " >&6; }
13395 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
13396 $as_echo_n "(cached) " >&6
13398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 unsigned long long ull = 1; int i = 63;
13404 unsigned long long ullmax = (unsigned long long) -1;
13405 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13410 if ac_fn_c_try_link
"$LINENO"; then :
13411 ac_cv_type_unsigned_long_long
=yes
13413 ac_cv_type_unsigned_long_long
=no
13415 rm -f core conftest.err conftest.
$ac_objext \
13416 conftest
$ac_exeext conftest.
$ac_ext
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13419 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13420 if test $ac_cv_type_unsigned_long_long = yes; then
13422 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13429 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
13431 test $ac_cv_type_unsigned_long_long = yes \
13432 && ac_type
='unsigned long long' \
13433 || ac_type
='unsigned long'
13435 cat >>confdefs.h
<<_ACEOF
13436 #define uintmax_t $ac_type
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13443 $as_echo_n "checking for inttypes.h... " >&6; }
13444 if test "${gt_cv_header_inttypes_h+set}" = set; then :
13445 $as_echo_n "(cached) " >&6
13448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13450 #include <sys/types.h>
13451 #include <inttypes.h>
13460 if ac_fn_c_try_compile
"$LINENO"; then :
13461 gt_cv_header_inttypes_h
=yes
13463 gt_cv_header_inttypes_h
=no
13465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13469 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13470 if test $gt_cv_header_inttypes_h = yes; then
13472 cat >>confdefs.h
<<_ACEOF
13473 #define HAVE_INTTYPES_H 1
13480 if test $gt_cv_header_inttypes_h = yes; then
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13482 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13483 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
13484 $as_echo_n "(cached) " >&6
13487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 #include <inttypes.h>
13502 if ac_fn_c_try_compile
"$LINENO"; then :
13503 gt_cv_inttypes_pri_broken
=no
13505 gt_cv_inttypes_pri_broken
=yes
13507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13511 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13513 if test "$gt_cv_inttypes_pri_broken" = yes; then
13515 cat >>confdefs.h
<<_ACEOF
13516 #define PRI_MACROS_BROKEN 1
13522 if test "X$prefix" = "XNONE"; then
13523 acl_final_prefix
="$ac_default_prefix"
13525 acl_final_prefix
="$prefix"
13527 if test "X$exec_prefix" = "XNONE"; then
13528 acl_final_exec_prefix
='${prefix}'
13530 acl_final_exec_prefix
="$exec_prefix"
13532 acl_save_prefix
="$prefix"
13533 prefix
="$acl_final_prefix"
13534 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
13535 prefix
="$acl_save_prefix"
13538 # Check whether --with-gnu-ld was given.
13539 if test "${with_gnu_ld+set}" = set; then :
13540 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13546 if test "$GCC" = yes; then
13547 # Check if gcc -print-prog-name=ld gives a path.
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13549 $as_echo_n "checking for ld used by GCC... " >&6; }
13552 # gcc leaves a trailing carriage return which upsets mingw
13553 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13555 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13558 # Accept absolute paths.
13559 [\\/]* |
[A-Za-z
]:[\\/]*)
13560 re_direlt
='/[^/][^/]*/\.\./'
13561 # Canonicalize the path of ld
13562 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
13563 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
13564 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
13566 test -z "$LD" && LD
="$ac_prog"
13569 # If it fails, then pretend we aren't using GCC.
13573 # If it is relative, then search for the first ld in PATH.
13574 with_gnu_ld
=unknown
13577 elif test "$with_gnu_ld" = yes; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13579 $as_echo_n "checking for GNU ld... " >&6; }
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13582 $as_echo_n "checking for non-GNU ld... " >&6; }
13584 if test "${acl_cv_path_LD+set}" = set; then :
13585 $as_echo_n "(cached) " >&6
13587 if test -z "$LD"; then
13588 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13589 for ac_dir
in $PATH; do
13590 test -z "$ac_dir" && ac_dir
=.
13591 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13592 acl_cv_path_LD
="$ac_dir/$ac_prog"
13593 # Check to see if the program is GNU ld. I'd rather use --version,
13594 # but apparently some GNU ld's only accept -v.
13595 # Break only if it was the GNU/non-GNU ld that we prefer.
13596 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
13597 test "$with_gnu_ld" != no
&& break
13599 test "$with_gnu_ld" != yes && break
13605 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
13609 LD
="$acl_cv_path_LD"
13610 if test -n "$LD"; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13612 $as_echo "$LD" >&6; }
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 $as_echo "no" >&6; }
13617 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13619 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13620 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13621 $as_echo_n "(cached) " >&6
13623 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13624 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
13625 acl_cv_prog_gnu_ld
=yes
13627 acl_cv_prog_gnu_ld
=no
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13631 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13632 with_gnu_ld
=$acl_cv_prog_gnu_ld
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13637 $as_echo_n "checking for shared library run path origin... " >&6; }
13638 if test "${acl_cv_rpath+set}" = set; then :
13639 $as_echo_n "(cached) " >&6
13642 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
13643 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13645 rm -f .
/conftest.sh
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13650 $as_echo "$acl_cv_rpath" >&6; }
13652 libext
="$acl_cv_libext"
13653 shlibext
="$acl_cv_shlibext"
13654 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
13655 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
13656 hardcode_direct
="$acl_cv_hardcode_direct"
13657 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
13658 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
13659 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
13660 # Check whether --enable-rpath was given.
13661 if test "${enable_rpath+set}" = set; then :
13662 enableval
=$enable_rpath; :
13676 acl_save_prefix
="$prefix"
13677 prefix
="$acl_final_prefix"
13678 acl_save_exec_prefix
="$exec_prefix"
13679 exec_prefix
="$acl_final_exec_prefix"
13681 eval additional_includedir
=\"$includedir\"
13682 eval additional_libdir
=\"$libdir\"
13684 exec_prefix
="$acl_save_exec_prefix"
13685 prefix
="$acl_save_prefix"
13688 # Check whether --with-libiconv-prefix was given.
13689 if test "${with_libiconv_prefix+set}" = set; then :
13690 withval
=$with_libiconv_prefix;
13691 if test "X$withval" = "Xno"; then
13694 if test "X$withval" = "X"; then
13696 acl_save_prefix
="$prefix"
13697 prefix
="$acl_final_prefix"
13698 acl_save_exec_prefix
="$exec_prefix"
13699 exec_prefix
="$acl_final_exec_prefix"
13701 eval additional_includedir
=\"$includedir\"
13702 eval additional_libdir
=\"$libdir\"
13704 exec_prefix
="$acl_save_exec_prefix"
13705 prefix
="$acl_save_prefix"
13708 additional_includedir
="$withval/include"
13709 additional_libdir
="$withval/lib"
13720 names_already_handled
=
13721 names_next_round
='iconv '
13722 while test -n "$names_next_round"; do
13723 names_this_round
="$names_next_round"
13725 for name
in $names_this_round; do
13727 for n
in $names_already_handled; do
13728 if test "$n" = "$name"; then
13729 already_handled
=yes
13733 if test -z "$already_handled"; then
13734 names_already_handled
="$names_already_handled $name"
13735 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13736 eval value
=\"\
$HAVE_LIB$uppername\"
13737 if test -n "$value"; then
13738 if test "$value" = yes; then
13739 eval value
=\"\
$LIB$uppername\"
13740 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
13741 eval value
=\"\
$LTLIB$uppername\"
13742 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
13751 if test $use_additional = yes; then
13752 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13753 found_dir
="$additional_libdir"
13754 found_so
="$additional_libdir/lib$name.$shlibext"
13755 if test -f "$additional_libdir/lib$name.la"; then
13756 found_la
="$additional_libdir/lib$name.la"
13759 if test -f "$additional_libdir/lib$name.$libext"; then
13760 found_dir
="$additional_libdir"
13761 found_a
="$additional_libdir/lib$name.$libext"
13762 if test -f "$additional_libdir/lib$name.la"; then
13763 found_la
="$additional_libdir/lib$name.la"
13768 if test "X$found_dir" = "X"; then
13769 for x
in $LDFLAGS $LTLIBICONV; do
13771 acl_save_prefix
="$prefix"
13772 prefix
="$acl_final_prefix"
13773 acl_save_exec_prefix
="$exec_prefix"
13774 exec_prefix
="$acl_final_exec_prefix"
13776 exec_prefix
="$acl_save_exec_prefix"
13777 prefix
="$acl_save_prefix"
13781 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13782 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13784 found_so
="$dir/lib$name.$shlibext"
13785 if test -f "$dir/lib$name.la"; then
13786 found_la
="$dir/lib$name.la"
13789 if test -f "$dir/lib$name.$libext"; then
13791 found_a
="$dir/lib$name.$libext"
13792 if test -f "$dir/lib$name.la"; then
13793 found_la
="$dir/lib$name.la"
13799 if test "X$found_dir" != "X"; then
13804 if test "X$found_dir" != "X"; then
13805 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13806 if test "X$found_so" != "X"; then
13807 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13808 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13811 for x
in $ltrpathdirs; do
13812 if test "X$x" = "X$found_dir"; then
13817 if test -z "$haveit"; then
13818 ltrpathdirs
="$ltrpathdirs $found_dir"
13820 if test "$hardcode_direct" = yes; then
13821 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13823 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13824 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13826 for x
in $rpathdirs; do
13827 if test "X$x" = "X$found_dir"; then
13832 if test -z "$haveit"; then
13833 rpathdirs
="$rpathdirs $found_dir"
13837 for x
in $LDFLAGS $LIBICONV; do
13839 acl_save_prefix
="$prefix"
13840 prefix
="$acl_final_prefix"
13841 acl_save_exec_prefix
="$exec_prefix"
13842 exec_prefix
="$acl_final_exec_prefix"
13844 exec_prefix
="$acl_save_exec_prefix"
13845 prefix
="$acl_save_prefix"
13847 if test "X$x" = "X-L$found_dir"; then
13852 if test -z "$haveit"; then
13853 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13855 if test "$hardcode_minus_L" != no
; then
13856 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
13858 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
13864 if test "X$found_a" != "X"; then
13865 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
13867 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13870 additional_includedir
=
13871 case "$found_dir" in
13873 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13874 additional_includedir
="$basedir/include"
13877 if test "X$additional_includedir" != "X"; then
13878 if test "X$additional_includedir" != "X/usr/include"; then
13880 if test "X$additional_includedir" = "X/usr/local/include"; then
13881 if test -n "$GCC"; then
13883 linux
*) haveit
=yes;;
13887 if test -z "$haveit"; then
13888 for x
in $CPPFLAGS $INCICONV; do
13890 acl_save_prefix
="$prefix"
13891 prefix
="$acl_final_prefix"
13892 acl_save_exec_prefix
="$exec_prefix"
13893 exec_prefix
="$acl_final_exec_prefix"
13895 exec_prefix
="$acl_save_exec_prefix"
13896 prefix
="$acl_save_prefix"
13898 if test "X$x" = "X-I$additional_includedir"; then
13903 if test -z "$haveit"; then
13904 if test -d "$additional_includedir"; then
13905 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13911 if test -n "$found_la"; then
13912 save_libdir
="$libdir"
13913 case "$found_la" in
13914 */* |
*\\*) .
"$found_la" ;;
13915 *) .
"./$found_la" ;;
13917 libdir
="$save_libdir"
13918 for dep
in $dependency_libs; do
13921 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13922 if test "X$additional_libdir" != "X/usr/lib"; then
13924 if test "X$additional_libdir" = "X/usr/local/lib"; then
13925 if test -n "$GCC"; then
13927 linux
*) haveit
=yes;;
13931 if test -z "$haveit"; then
13933 for x
in $LDFLAGS $LIBICONV; do
13935 acl_save_prefix
="$prefix"
13936 prefix
="$acl_final_prefix"
13937 acl_save_exec_prefix
="$exec_prefix"
13938 exec_prefix
="$acl_final_exec_prefix"
13940 exec_prefix
="$acl_save_exec_prefix"
13941 prefix
="$acl_save_prefix"
13943 if test "X$x" = "X-L$additional_libdir"; then
13948 if test -z "$haveit"; then
13949 if test -d "$additional_libdir"; then
13950 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13954 for x
in $LDFLAGS $LTLIBICONV; do
13956 acl_save_prefix
="$prefix"
13957 prefix
="$acl_final_prefix"
13958 acl_save_exec_prefix
="$exec_prefix"
13959 exec_prefix
="$acl_final_exec_prefix"
13961 exec_prefix
="$acl_save_exec_prefix"
13962 prefix
="$acl_save_prefix"
13964 if test "X$x" = "X-L$additional_libdir"; then
13969 if test -z "$haveit"; then
13970 if test -d "$additional_libdir"; then
13971 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13978 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
13979 if test "$enable_rpath" != no
; then
13981 for x
in $rpathdirs; do
13982 if test "X$x" = "X$dir"; then
13987 if test -z "$haveit"; then
13988 rpathdirs
="$rpathdirs $dir"
13991 for x
in $ltrpathdirs; do
13992 if test "X$x" = "X$dir"; then
13997 if test -z "$haveit"; then
13998 ltrpathdirs
="$ltrpathdirs $dir"
14003 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14006 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14009 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
14010 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14016 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
14017 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14023 if test "X$rpathdirs" != "X"; then
14024 if test -n "$hardcode_libdir_separator"; then
14026 for found_dir
in $rpathdirs; do
14027 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14029 acl_save_libdir
="$libdir"
14031 eval flag
=\"$hardcode_libdir_flag_spec\"
14032 libdir
="$acl_save_libdir"
14033 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
14035 for found_dir
in $rpathdirs; do
14036 acl_save_libdir
="$libdir"
14037 libdir
="$found_dir"
14038 eval flag
=\"$hardcode_libdir_flag_spec\"
14039 libdir
="$acl_save_libdir"
14040 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
14044 if test "X$ltrpathdirs" != "X"; then
14045 for found_dir
in $ltrpathdirs; do
14046 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14053 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14054 stdlib.h string.h unistd.h sys
/param.h
14056 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14057 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14058 eval as_val
=\$
$as_ac_Header
14059 if test "x$as_val" = x
""yes; then :
14060 cat >>confdefs.h
<<_ACEOF
14061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14068 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14069 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14070 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14072 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14073 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14074 eval as_val
=\$
$as_ac_var
14075 if test "x$as_val" = x
""yes; then :
14076 cat >>confdefs.h
<<_ACEOF
14077 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14089 am_save_CPPFLAGS
="$CPPFLAGS"
14091 for element
in $INCICONV; do
14093 for x
in $CPPFLAGS; 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"
14103 if test "X$x" = "X$element"; then
14108 if test -z "$haveit"; then
14109 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14115 $as_echo_n "checking for iconv... " >&6; }
14116 if test "${am_cv_func_iconv+set}" = set; then :
14117 $as_echo_n "(cached) " >&6
14120 am_cv_func_iconv
="no, consider installing GNU libiconv"
14122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 #include <stdlib.h>
14129 iconv_t cd = iconv_open("","");
14130 iconv(cd,NULL,NULL,NULL,NULL);
14136 if ac_fn_c_try_link
"$LINENO"; then :
14137 am_cv_func_iconv
=yes
14139 rm -f core conftest.err conftest.
$ac_objext \
14140 conftest
$ac_exeext conftest.
$ac_ext
14141 if test "$am_cv_func_iconv" != yes; then
14142 am_save_LIBS
="$LIBS"
14143 LIBS
="$LIBS $LIBICONV"
14144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14146 #include <stdlib.h>
14151 iconv_t cd = iconv_open("","");
14152 iconv(cd,NULL,NULL,NULL,NULL);
14158 if ac_fn_c_try_link
"$LINENO"; then :
14159 am_cv_lib_iconv
=yes
14160 am_cv_func_iconv
=yes
14162 rm -f core conftest.err conftest.
$ac_objext \
14163 conftest
$ac_exeext conftest.
$ac_ext
14164 LIBS
="$am_save_LIBS"
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14169 $as_echo "$am_cv_func_iconv" >&6; }
14170 if test "$am_cv_func_iconv" = yes; then
14172 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14175 if test "$am_cv_lib_iconv" = yes; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14177 $as_echo_n "checking how to link with libiconv... " >&6; }
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14179 $as_echo "$LIBICONV" >&6; }
14181 CPPFLAGS
="$am_save_CPPFLAGS"
14188 if test "$am_cv_func_iconv" = yes; then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14190 $as_echo_n "checking for iconv declaration... " >&6; }
14191 if test "${am_cv_proto_iconv+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14198 #include <stdlib.h>
14204 #if defined(__STDC__) || defined(__cplusplus)
14205 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14218 if ac_fn_c_try_compile
"$LINENO"; then :
14219 am_cv_proto_iconv_arg1
=""
14221 am_cv_proto_iconv_arg1
="const"
14223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14224 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);"
14227 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14229 }$am_cv_proto_iconv" >&5
14231 }$am_cv_proto_iconv" >&6; }
14233 cat >>confdefs.h
<<_ACEOF
14234 #define ICONV_CONST $am_cv_proto_iconv_arg1
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14241 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14242 if test "${am_cv_langinfo_codeset+set}" = set; then :
14243 $as_echo_n "(cached) " >&6
14245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 #include <langinfo.h>
14251 char* cs = nl_langinfo(CODESET);
14256 if ac_fn_c_try_link
"$LINENO"; then :
14257 am_cv_langinfo_codeset
=yes
14259 am_cv_langinfo_codeset
=no
14261 rm -f core conftest.err conftest.
$ac_objext \
14262 conftest
$ac_exeext conftest.
$ac_ext
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14266 $as_echo "$am_cv_langinfo_codeset" >&6; }
14267 if test $am_cv_langinfo_codeset = yes; then
14269 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14273 if test $ac_cv_header_locale_h = yes; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14276 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14277 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
14278 $as_echo_n "(cached) " >&6
14280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282 #include <locale.h>
14291 if ac_fn_c_try_link
"$LINENO"; then :
14292 am_cv_val_LC_MESSAGES
=yes
14294 am_cv_val_LC_MESSAGES
=no
14296 rm -f core conftest.err conftest.
$ac_objext \
14297 conftest
$ac_exeext conftest.
$ac_ext
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14300 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14301 if test $am_cv_val_LC_MESSAGES = yes; then
14303 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14309 for ac_prog
in bison
14311 # Extract the first word of "$ac_prog", so it can be a program name with args.
14312 set dummy
$ac_prog; ac_word
=$2
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14314 $as_echo_n "checking for $ac_word... " >&6; }
14315 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
14316 $as_echo_n "(cached) " >&6
14318 if test -n "$INTLBISON"; then
14319 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
14321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14322 for as_dir
in $PATH
14325 test -z "$as_dir" && as_dir
=.
14326 for ac_exec_ext
in '' $ac_executable_extensions; do
14327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14328 ac_cv_prog_INTLBISON
="$ac_prog"
14329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14338 INTLBISON
=$ac_cv_prog_INTLBISON
14339 if test -n "$INTLBISON"; then
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14341 $as_echo "$INTLBISON" >&6; }
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14344 $as_echo "no" >&6; }
14348 test -n "$INTLBISON" && break
14351 if test -z "$INTLBISON"; then
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14355 $as_echo_n "checking version of bison... " >&6; }
14356 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14357 case $ac_prog_version in
14358 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
14359 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
14360 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
14361 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14364 $as_echo "$ac_prog_version" >&6; }
14366 if test $ac_verc_fail = yes; then
14372 # Check whether --with-language was given.
14373 if test "${with_language+set}" = set; then :
14374 withval
=$with_language; if test "$withval" != "all"; then :
14375 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14395 $as_echo_n "checking whether NLS is requested... " >&6; }
14396 # Check whether --enable-nls was given.
14397 if test "${enable_nls+set}" = set; then :
14398 enableval
=$enable_nls; USE_NLS
=$enableval
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14404 $as_echo "$USE_NLS" >&6; }
14408 BUILD_INCLUDED_LIBINTL
=no
14409 USE_INCLUDED_LIBINTL
=no
14415 if test "$USE_NLS" = "yes"; then
14416 gt_use_preinstalled_gnugettext
=no
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14419 $as_echo_n "checking whether included gettext is requested... " >&6; }
14421 # Check whether --with-included-gettext was given.
14422 if test "${with_included_gettext+set}" = set; then :
14423 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
14425 nls_cv_force_use_gnu_gettext
=no
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14429 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14431 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
14432 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14440 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14441 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #include <libintl.h>
14447 extern int _nl_msg_cat_cntr;
14448 extern int *_nl_domain_bindings;
14452 bindtextdomain ("", "");
14453 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14458 if ac_fn_c_try_link
"$LINENO"; then :
14459 gt_cv_func_gnugettext2_libc
=yes
14461 gt_cv_func_gnugettext2_libc
=no
14463 rm -f core conftest.err conftest.
$ac_objext \
14464 conftest
$ac_exeext conftest.
$ac_ext
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14467 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14469 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14475 acl_save_prefix
="$prefix"
14476 prefix
="$acl_final_prefix"
14477 acl_save_exec_prefix
="$exec_prefix"
14478 exec_prefix
="$acl_final_exec_prefix"
14480 eval additional_includedir
=\"$includedir\"
14481 eval additional_libdir
=\"$libdir\"
14483 exec_prefix
="$acl_save_exec_prefix"
14484 prefix
="$acl_save_prefix"
14487 # Check whether --with-libintl-prefix was given.
14488 if test "${with_libintl_prefix+set}" = set; then :
14489 withval
=$with_libintl_prefix;
14490 if test "X$withval" = "Xno"; then
14493 if test "X$withval" = "X"; then
14495 acl_save_prefix
="$prefix"
14496 prefix
="$acl_final_prefix"
14497 acl_save_exec_prefix
="$exec_prefix"
14498 exec_prefix
="$acl_final_exec_prefix"
14500 eval additional_includedir
=\"$includedir\"
14501 eval additional_libdir
=\"$libdir\"
14503 exec_prefix
="$acl_save_exec_prefix"
14504 prefix
="$acl_save_prefix"
14507 additional_includedir
="$withval/include"
14508 additional_libdir
="$withval/lib"
14519 names_already_handled
=
14520 names_next_round
='intl '
14521 while test -n "$names_next_round"; do
14522 names_this_round
="$names_next_round"
14524 for name
in $names_this_round; do
14526 for n
in $names_already_handled; do
14527 if test "$n" = "$name"; then
14528 already_handled
=yes
14532 if test -z "$already_handled"; then
14533 names_already_handled
="$names_already_handled $name"
14534 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14535 eval value
=\"\
$HAVE_LIB$uppername\"
14536 if test -n "$value"; then
14537 if test "$value" = yes; then
14538 eval value
=\"\
$LIB$uppername\"
14539 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
14540 eval value
=\"\
$LTLIB$uppername\"
14541 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
14550 if test $use_additional = yes; then
14551 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14552 found_dir
="$additional_libdir"
14553 found_so
="$additional_libdir/lib$name.$shlibext"
14554 if test -f "$additional_libdir/lib$name.la"; then
14555 found_la
="$additional_libdir/lib$name.la"
14558 if test -f "$additional_libdir/lib$name.$libext"; then
14559 found_dir
="$additional_libdir"
14560 found_a
="$additional_libdir/lib$name.$libext"
14561 if test -f "$additional_libdir/lib$name.la"; then
14562 found_la
="$additional_libdir/lib$name.la"
14567 if test "X$found_dir" = "X"; then
14568 for x
in $LDFLAGS $LTLIBINTL; do
14570 acl_save_prefix
="$prefix"
14571 prefix
="$acl_final_prefix"
14572 acl_save_exec_prefix
="$exec_prefix"
14573 exec_prefix
="$acl_final_exec_prefix"
14575 exec_prefix
="$acl_save_exec_prefix"
14576 prefix
="$acl_save_prefix"
14580 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14581 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14583 found_so
="$dir/lib$name.$shlibext"
14584 if test -f "$dir/lib$name.la"; then
14585 found_la
="$dir/lib$name.la"
14588 if test -f "$dir/lib$name.$libext"; then
14590 found_a
="$dir/lib$name.$libext"
14591 if test -f "$dir/lib$name.la"; then
14592 found_la
="$dir/lib$name.la"
14598 if test "X$found_dir" != "X"; then
14603 if test "X$found_dir" != "X"; then
14604 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14605 if test "X$found_so" != "X"; then
14606 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14607 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14610 for x
in $ltrpathdirs; do
14611 if test "X$x" = "X$found_dir"; then
14616 if test -z "$haveit"; then
14617 ltrpathdirs
="$ltrpathdirs $found_dir"
14619 if test "$hardcode_direct" = yes; then
14620 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14622 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14623 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14625 for x
in $rpathdirs; do
14626 if test "X$x" = "X$found_dir"; then
14631 if test -z "$haveit"; then
14632 rpathdirs
="$rpathdirs $found_dir"
14636 for x
in $LDFLAGS $LIBINTL; do
14638 acl_save_prefix
="$prefix"
14639 prefix
="$acl_final_prefix"
14640 acl_save_exec_prefix
="$exec_prefix"
14641 exec_prefix
="$acl_final_exec_prefix"
14643 exec_prefix
="$acl_save_exec_prefix"
14644 prefix
="$acl_save_prefix"
14646 if test "X$x" = "X-L$found_dir"; then
14651 if test -z "$haveit"; then
14652 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14654 if test "$hardcode_minus_L" != no
; then
14655 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14657 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14663 if test "X$found_a" != "X"; then
14664 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
14666 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14669 additional_includedir
=
14670 case "$found_dir" in
14672 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14673 additional_includedir
="$basedir/include"
14676 if test "X$additional_includedir" != "X"; then
14677 if test "X$additional_includedir" != "X/usr/include"; then
14679 if test "X$additional_includedir" = "X/usr/local/include"; then
14680 if test -n "$GCC"; then
14682 linux
*) haveit
=yes;;
14686 if test -z "$haveit"; then
14687 for x
in $CPPFLAGS $INCINTL; do
14689 acl_save_prefix
="$prefix"
14690 prefix
="$acl_final_prefix"
14691 acl_save_exec_prefix
="$exec_prefix"
14692 exec_prefix
="$acl_final_exec_prefix"
14694 exec_prefix
="$acl_save_exec_prefix"
14695 prefix
="$acl_save_prefix"
14697 if test "X$x" = "X-I$additional_includedir"; then
14702 if test -z "$haveit"; then
14703 if test -d "$additional_includedir"; then
14704 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14710 if test -n "$found_la"; then
14711 save_libdir
="$libdir"
14712 case "$found_la" in
14713 */* |
*\\*) .
"$found_la" ;;
14714 *) .
"./$found_la" ;;
14716 libdir
="$save_libdir"
14717 for dep
in $dependency_libs; do
14720 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14721 if test "X$additional_libdir" != "X/usr/lib"; then
14723 if test "X$additional_libdir" = "X/usr/local/lib"; then
14724 if test -n "$GCC"; then
14726 linux
*) haveit
=yes;;
14730 if test -z "$haveit"; then
14732 for x
in $LDFLAGS $LIBINTL; do
14734 acl_save_prefix
="$prefix"
14735 prefix
="$acl_final_prefix"
14736 acl_save_exec_prefix
="$exec_prefix"
14737 exec_prefix
="$acl_final_exec_prefix"
14739 exec_prefix
="$acl_save_exec_prefix"
14740 prefix
="$acl_save_prefix"
14742 if test "X$x" = "X-L$additional_libdir"; then
14747 if test -z "$haveit"; then
14748 if test -d "$additional_libdir"; then
14749 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14753 for x
in $LDFLAGS $LTLIBINTL; do
14755 acl_save_prefix
="$prefix"
14756 prefix
="$acl_final_prefix"
14757 acl_save_exec_prefix
="$exec_prefix"
14758 exec_prefix
="$acl_final_exec_prefix"
14760 exec_prefix
="$acl_save_exec_prefix"
14761 prefix
="$acl_save_prefix"
14763 if test "X$x" = "X-L$additional_libdir"; then
14768 if test -z "$haveit"; then
14769 if test -d "$additional_libdir"; then
14770 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14777 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14778 if test "$enable_rpath" != no
; then
14780 for x
in $rpathdirs; do
14781 if test "X$x" = "X$dir"; then
14786 if test -z "$haveit"; then
14787 rpathdirs
="$rpathdirs $dir"
14790 for x
in $ltrpathdirs; do
14791 if test "X$x" = "X$dir"; then
14796 if test -z "$haveit"; then
14797 ltrpathdirs
="$ltrpathdirs $dir"
14802 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14805 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14808 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
14809 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14815 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14816 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14822 if test "X$rpathdirs" != "X"; then
14823 if test -n "$hardcode_libdir_separator"; then
14825 for found_dir
in $rpathdirs; do
14826 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14828 acl_save_libdir
="$libdir"
14830 eval flag
=\"$hardcode_libdir_flag_spec\"
14831 libdir
="$acl_save_libdir"
14832 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14834 for found_dir
in $rpathdirs; do
14835 acl_save_libdir
="$libdir"
14836 libdir
="$found_dir"
14837 eval flag
=\"$hardcode_libdir_flag_spec\"
14838 libdir
="$acl_save_libdir"
14839 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
14843 if test "X$ltrpathdirs" != "X"; then
14844 for found_dir
in $ltrpathdirs; do
14845 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14850 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14851 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
14852 $as_echo_n "(cached) " >&6
14854 gt_save_CPPFLAGS
="$CPPFLAGS"
14855 CPPFLAGS
="$CPPFLAGS $INCINTL"
14856 gt_save_LIBS
="$LIBS"
14857 LIBS
="$LIBS $LIBINTL"
14858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14860 #include <libintl.h>
14861 extern int _nl_msg_cat_cntr;
14866 const char *_nl_expand_alias ();
14870 bindtextdomain ("", "");
14871 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14876 if ac_fn_c_try_link
"$LINENO"; then :
14877 gt_cv_func_gnugettext2_libintl
=yes
14879 gt_cv_func_gnugettext2_libintl
=no
14881 rm -f core conftest.err conftest.
$ac_objext \
14882 conftest
$ac_exeext conftest.
$ac_ext
14883 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14884 LIBS
="$LIBS $LIBICONV"
14885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887 #include <libintl.h>
14888 extern int _nl_msg_cat_cntr;
14893 const char *_nl_expand_alias ();
14897 bindtextdomain ("", "");
14898 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14903 if ac_fn_c_try_link
"$LINENO"; then :
14904 LIBINTL
="$LIBINTL $LIBICONV"
14905 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
14906 gt_cv_func_gnugettext2_libintl
=yes
14909 rm -f core conftest.err conftest.
$ac_objext \
14910 conftest
$ac_exeext conftest.
$ac_ext
14912 CPPFLAGS
="$gt_save_CPPFLAGS"
14913 LIBS
="$gt_save_LIBS"
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14916 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14919 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14920 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14921 && test "$PACKAGE" != gettext; }; then
14922 gt_use_preinstalled_gnugettext
=yes
14930 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14931 nls_cv_use_gnu_gettext
=yes
14935 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14936 INTLOBJS
="\$(GETTOBJS)"
14937 BUILD_INCLUDED_LIBINTL
=yes
14938 USE_INCLUDED_LIBINTL
=yes
14939 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
14940 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14941 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14944 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14945 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14950 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14951 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
14953 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14960 if test "$USE_NLS" = "yes"; then
14962 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14963 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14965 $as_echo_n "checking how to link with libintl... " >&6; }
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14967 $as_echo "$LIBINTL" >&6; }
14969 for element
in $INCINTL; do
14971 for x
in $CPPFLAGS; do
14973 acl_save_prefix
="$prefix"
14974 prefix
="$acl_final_prefix"
14975 acl_save_exec_prefix
="$exec_prefix"
14976 exec_prefix
="$acl_final_exec_prefix"
14978 exec_prefix
="$acl_save_exec_prefix"
14979 prefix
="$acl_save_prefix"
14981 if test "X$x" = "X$element"; then
14986 if test -z "$haveit"; then
14987 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14994 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14997 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15005 if test "$PACKAGE" = gettext; then
15006 BUILD_INCLUDED_LIBINTL
=yes
15014 nls_cv_header_intl
=
15015 nls_cv_header_libgt
=
15026 INTL_LIBTOOL_SUFFIX_PREFIX
=
15030 INTLLIBS
="$LIBINTL"
15037 if test $USE_INCLUDED_LIBINTL = yes; then :
15038 INCINTL
=-I\
${top_builddir}/intl
15041 if test x
$USE_NLS = xyes
; then :
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
15044 $as_echo_n "checking for autopoint... " >&6; }
15045 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
15046 if test -n "$autopoint_version"; then :
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
15049 $as_echo "yes ($autopoint_version)" >&6; }
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15055 $as_echo "no" >&6; }
15061 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then :
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15063 You need to install GNU gettext/gettext-tools to compile aMule with
15065 $as_echo "$as_me: WARNING:
15066 You need to install GNU gettext/gettext-tools to compile aMule with
15067 i18n support." >&2;}
15068 _mule_warning_13
=yes
15069 _mule_has_warnings
=yes
15073 if test ${USE_NLS:-no} = yes; then :
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15076 $as_echo_n "checking for requested languages... " >&6; }
15077 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15079 if test ${enable_amule_daemon:-no} = yes; then :
15081 if test -z "$LINGUAS"; then :
15082 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15085 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15086 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15089 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15092 AMULE_DAEMON_MANPAGES
=
15097 if test ${enable_amulecmd:-no} = yes; then :
15099 if test -z "$LINGUAS"; then :
15100 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15103 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15104 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15107 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15115 if test ${enable_webserver:-no} = yes; then :
15117 if test -z "$LINGUAS"; then :
15118 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15121 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15122 WEBSERVER_MANPAGES
="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15125 WEBSERVER_MANPAGES
=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15128 WEBSERVER_MANPAGES
=
15133 if test ${enable_amule_gui:-no} = yes; then :
15135 if test -z "$LINGUAS"; then :
15136 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15139 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15140 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15143 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15146 AMULE_GUI_MANPAGES
=
15151 if test ${enable_cas:-no} = yes; then :
15153 if test -z "$LINGUAS"; then :
15154 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15157 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15158 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15161 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
15169 if test ${enable_wxcas:-no} = yes; then :
15171 if test -z "$LINGUAS"; then :
15172 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15175 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15176 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15179 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
15187 if test ${enable_ed2k:-yes} = yes; then :
15189 if test -z "$LINGUAS"; then :
15190 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15193 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15194 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15197 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
15205 if test ${enable_alc:-no} = yes; then :
15207 if test -z "$LINGUAS"; then :
15208 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15211 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15212 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15215 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
15223 if test ${enable_alcc:-no} = yes; then :
15225 if test -z "$LINGUAS"; then :
15226 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15229 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15230 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15233 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
15241 if test ${enable_monolithic:-yes} = yes; then :
15243 if test -z "$LINGUAS"; then :
15244 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15247 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15248 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15251 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15254 MONOLITHIC_MANPAGES
=
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15259 $as_echo "${LINGUAS:-all}" >&6; }
15265 ac_cpp
='$CXXCPP $CPPFLAGS'
15266 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15267 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15268 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15272 # Check for bfd.h (to have proper backtraces without using wxExecute)
15274 for ac_header
in ansidecl.h bfd.h
15276 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15277 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15278 eval as_val
=\$
$as_ac_Header
15279 if test "x$as_val" = x
""yes; then :
15280 cat >>confdefs.h
<<_ACEOF
15281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15288 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15291 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15292 if test "${mule_cv_lib_bfd+set}" = set; then :
15293 $as_echo_n "(cached) " >&6
15296 for bfd_ldadd
in "" "-lbfd" "-liberty" "-ldl" "${LIBINTL}" "${ZLIB_LIBS}" "-lbfd -liberty" "-lbfd -ldl" "-lbfd ${LIBINTL}" "-lbfd ${ZLIB_LIBS}" "-liberty -ldl" "-liberty ${LIBINTL}" "-liberty ${ZLIB_LIBS}" "-ldl ${LIBINTL}" "-ldl ${ZLIB_LIBS}" "${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl" "-lbfd -liberty ${LIBINTL}" "-lbfd -liberty ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL}" "-lbfd -ldl ${ZLIB_LIBS}" "-lbfd ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL}" "-liberty -ldl ${ZLIB_LIBS}" "-liberty ${LIBINTL} ${ZLIB_LIBS}" "-ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL}" "-lbfd -liberty -ldl ${ZLIB_LIBS}" "-lbfd -liberty ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" ; do
15297 # Doing some black magic to prevent multiple tests for the same set of
15298 # libraries when any of the shell variables above expand to nothing.
15300 done |
sed -e 's/^ *//;s/ *$//;s/ */ /g' |
${AWK} '!x[$0]++' >conftest.bfd_ldadd
15301 while read bfd_ldadd
; do
15302 mule_backup_LIBS
="$LIBS"
15303 mule_backup_LDFLAGS
="$LDFLAGS"
15304 LIBS
="${bfd_ldadd} $LIBS"
15305 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
15306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15310 #include <ansidecl.h>
15316 const char *dummy = bfd_errmsg(bfd_get_error());
15322 if ac_fn_cxx_try_link
"$LINENO"; then :
15324 LIBS
="$mule_backup_LIBS"
15325 LDFLAGS
="$mule_backup_LDFLAGS"
15326 mule_cv_lib_bfd
="${bfd_ldadd}"
15329 rm -f core conftest.err conftest.
$ac_objext \
15330 conftest
$ac_exeext conftest.
$ac_ext
15331 LIBS
="$mule_backup_LIBS"
15332 LDFLAGS
="$mule_backup_LDFLAGS"
15333 if ${mule_cv_lib_bfd+:} false
; then :
15336 done <conftest.bfd_ldadd
15337 rm -f conftest.bfd_ldadd
15342 if ${mule_cv_lib_bfd+:} false
; then :
15344 BFD_CPPFLAGS
="-DHAVE_BFD"
15345 BFD_LIBS
="${mule_cv_lib_bfd}"
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15347 $as_echo "${BFD_LIBS:-none required}" >&6; }
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15352 $as_echo "not found" >&6; }
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15354 Cannot link to the library containing the bfd functions." >&5
15355 $as_echo "$as_me: WARNING:
15356 Cannot link to the library containing the bfd functions." >&2;}
15357 _mule_warning_14
=yes
15358 _mule_has_warnings
=yes
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15366 bfd.h not found or unusable, please install binutils development
15367 package if you are a developer or want to help testing aMule" >&5
15368 $as_echo "$as_me: WARNING:
15369 bfd.h not found or unusable, please install binutils development
15370 package if you are a developer or want to help testing aMule" >&2;}
15371 _mule_warning_15
=yes
15372 _mule_has_warnings
=yes
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15380 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15382 /* end confdefs.h. */
15385 #include <execinfo.h>
15392 int n = backtrace((void **)&bt, 1);
15393 char **bt_syms = backtrace_symbols(bt, n);
15400 if ac_fn_cxx_try_link
"$LINENO"; then :
15403 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15406 $as_echo "yes" >&6; }
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15411 $as_echo "no" >&6; }
15414 rm -f core conftest.err conftest.
$ac_objext \
15415 conftest
$ac_exeext conftest.
$ac_ext
15419 # aMule plasma widget
15420 if test ${enable_plasmamule:-no} = yes; then :
15423 if test -z ${QT_MOC}; then :
15425 for ac_prog
in moc-qt4 moc
15427 # Extract the first word of "$ac_prog", so it can be a program name with args.
15428 set dummy
$ac_prog; ac_word
=$2
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15430 $as_echo_n "checking for $ac_word... " >&6; }
15431 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15432 $as_echo_n "(cached) " >&6
15436 ac_cv_path_QT_MOC
="$QT_MOC" # Let the user override the test with a path.
15439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15440 for as_dir
in $PATH
15443 test -z "$as_dir" && as_dir
=.
15444 for ac_exec_ext
in '' $ac_executable_extensions; do
15445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15446 ac_cv_path_QT_MOC
="$as_dir/$ac_word$ac_exec_ext"
15447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15457 QT_MOC
=$ac_cv_path_QT_MOC
15458 if test -n "$QT_MOC"; then
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15460 $as_echo "$QT_MOC" >&6; }
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15463 $as_echo "no" >&6; }
15467 test -n "$QT_MOC" && break
15470 if test -z ${QT_MOC}; then :
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15480 $as_echo_n "checking for moc... " >&6; }
15481 if test -x ${QT_MOC}; then :
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15484 $as_echo "${QT_MOC}" >&6; }
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15490 $as_echo "\"not found\"" >&6; }
15499 if test "${QT_MOC}" != "not found"; then :
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15502 $as_echo_n "checking for moc version >= 4... " >&6; }
15503 QT_MOC_VERSION
=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15504 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15507 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15512 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15520 if test "${QT_MOC}" = "not found"; then :
15521 enable_plasmamule
=disabled
15524 if test ${enable_plasmamule:-no} = yes; then :
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15529 $as_echo_n "checking for qt... " >&6; }
15530 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15533 $as_echo "found" >&6; }
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15535 $as_echo_n "checking for qt core cflags... " >&6; }
15536 QT_CORE_CXXFLAGS
=`${PKG_CONFIG} --cflags QtCore`
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15538 $as_echo "$QT_CORE_CFLAGS" >&6; }
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15540 $as_echo_n "checking for qt core libs... " >&6; }
15541 QT_CORE_LIBS
=`${PKG_CONFIG} --libs QtCore`
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15543 $as_echo "$QT_CORE_LIBS" >&6; }
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15545 $as_echo_n "checking for qt gui cflags... " >&6; }
15546 QT_GUI_CXXFLAGS
=`${PKG_CONFIG} --cflags QtGui`
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15548 $as_echo "$QT_GUI_CFLAGS" >&6; }
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15550 $as_echo_n "checking for qt gui libs... " >&6; }
15551 QT_GUI_LIBS
=`${PKG_CONFIG} --libs QtGui`
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15553 $as_echo "$QT_GUI_LIBS" >&6; }
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15557 $as_echo "not found" >&6; }
15562 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15564 QT_DBUS_LDFLAGS
="-lQtDBus"
15574 if test -z "${QT_CORE_CXXFLAGS}"; then :
15575 enable_plasmamule
=disabled
15580 if test ${enable_plasmamule:-no} = yes; then :
15583 if test -z ${KDE4_CONFIG}; then :
15585 # Extract the first word of "kde4-config", so it can be a program name with args.
15586 set dummy kde4-config
; ac_word
=$2
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15588 $as_echo_n "checking for $ac_word... " >&6; }
15589 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15590 $as_echo_n "(cached) " >&6
15592 case $KDE4_CONFIG in
15594 ac_cv_path_KDE4_CONFIG
="$KDE4_CONFIG" # Let the user override the test with a path.
15597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15598 for as_dir
in $PATH
15601 test -z "$as_dir" && as_dir
=.
15602 for ac_exec_ext
in '' $ac_executable_extensions; do
15603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15604 ac_cv_path_KDE4_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15615 KDE4_CONFIG
=$ac_cv_path_KDE4_CONFIG
15616 if test -n "$KDE4_CONFIG"; then
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15618 $as_echo "$KDE4_CONFIG" >&6; }
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15621 $as_echo "no" >&6; }
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15629 $as_echo_n "checking for kde4-config... " >&6; }
15630 if test ! -x KDE4_CONFIG
; then :
15632 KDE4_CONFIG
="not found"
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15634 $as_echo "not found" >&6; }
15641 if test "${KDE4_CONFIG}" != "not found"; then :
15643 KDE_CONF_VER
=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15644 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15647 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: at least version
4 required
" >&5
15652 $as_echo "at least version
4 required
" >&6; }
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
15660 $as_echo "not found
" >&6; }
15666 if test "${KDE4_CONFIG}" = "not found
"; then :
15667 enable_plasmamule=disabled
15672 if test ${enable_plasmamule:-no} = yes; then :
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 headers
" >&5
15676 $as_echo_n "checking
for kde4 headers...
" >&6; }
15677 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15679 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15681 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_HEADER_DIR}" >&5
15684 $as_echo "${KDE_HEADER_DIR}" >&6; }
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: dataengine.h not found
" >&5
15689 $as_echo "dataengine.h not found
" >&6; }
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: kdirwatch.h not found
" >&5
15697 $as_echo "kdirwatch.h not found
" >&6; }
15703 if test -z ${KDE_HEADER_DIR}; then :
15704 enable_plasmamule=disabled
15709 if test ${enable_plasmamule:-no} = yes; then :
15711 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15712 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 applinks Path
" >&5
15717 $as_echo_n "checking
for kde4 applinks Path...
" >&6; }
15718 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15723 if test ${KDE_IN_HOME} = "yes"; then :
15725 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15729 if test -n ${prefix}; then :
15731 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15732 if test -n ${KDE_APPLNK_PATH}; then :
15734 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15740 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_APPLNK_PATH}" >&5
15746 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 services Path
" >&5
15752 $as_echo_n "checking
for kde4 services Path...
" >&6; }
15753 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15758 if test ${KDE_IN_HOME} = "yes"; then :
15760 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15764 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_SERVICE_PATH}" >&5
15768 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 plugins Path
" >&5
15774 $as_echo_n "checking
for kde4 plugins Path...
" >&6; }
15775 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15780 if test ${KDE_IN_HOME} = "yes"; then :
15782 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15786 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MODULE_PATH}" >&5
15790 $as_echo "${KDE_MODULE_PATH}" >&6; }
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 icons Path
" >&5
15796 $as_echo_n "checking
for kde4 icons Path...
" >&6; }
15797 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15802 if test ${KDE_IN_HOME} = "yes"; then :
15804 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15808 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15811 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_ICON_PATH}" >&5
15813 $as_echo "${KDE_ICON_PATH}" >&6; }
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for location
for mime-type installation
" >&5
15819 $as_echo_n "checking
for location
for mime-type installation...
" >&6; }
15820 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15825 if test ${KDE_IN_HOME} = "yes"; then :
15827 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15831 if test -n ${prefix}; then :
15833 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15834 if test -n ${KDE_MIME_PATH}; then :
15836 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15842 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MIME_PATH}" >&5
15848 $as_echo "${KDE_MIME_PATH}" >&6; }
15853 enable_plasmamule=disabled
15858 if test ${enable_debug:-yes} = yes; then :
15860 DEBUGFLAG="-D__DEBUG__"
15868 # Check for readline library
15869 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a readline compatible library
" >&5
15872 $as_echo_n "checking
for a readline compatible library...
" >&6; }
15873 if test "${vl_cv_lib_readline+set}" = set; then :
15874 $as_echo_n "(cached
) " >&6
15878 for readline_lib in readline edit editline; do
15879 for termcap_lib in "" termcap curses ncurses; do
15880 if test -z "$termcap_lib"; then
15881 TRY_LIB="-l$readline_lib"
15883 TRY_LIB="-l$readline_lib -l$termcap_lib"
15885 LIBS="$ORIG_LIBS $TRY_LIB"
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15889 /* Override any GCC internal prototype to avoid an error.
15890 Use char because int might match the return type of a GCC
15891 builtin and then its argument prototype would still apply. */
15899 return readline ();
15904 if ac_fn_cxx_try_link "$LINENO"; then :
15905 vl_cv_lib_readline="$TRY_LIB"
15907 rm -f core conftest.err conftest.$ac_objext \
15908 conftest$ac_exeext conftest.$ac_ext
15909 if test -n "$vl_cv_lib_readline"; then
15913 if test -n "$vl_cv_lib_readline"; then
15917 if test -z "$vl_cv_lib_readline"; then
15918 vl_cv_lib_readline="no
"
15922 READLINE_LIBS="$vl_cv_lib_readline"
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $vl_cv_lib_readline" >&5
15927 $as_echo "$vl_cv_lib_readline" >&6; }
15929 if test "$vl_cv_lib_readline" != "no
"; then
15931 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15933 for ac_header
in readline.h readline
/readline.h
15935 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15936 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15937 eval as_val
=\$
$as_ac_Header
15938 if test "x$as_val" = x
""yes; then :
15939 cat >>confdefs.h
<<_ACEOF
15940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15948 $as_echo_n "checking whether readline supports history... " >&6; }
15949 if test "${vl_cv_lib_readline_history+set}" = set; then :
15950 $as_echo_n "(cached) " >&6
15953 vl_cv_lib_readline_history
="no"
15954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15957 /* Override any GCC internal prototype to avoid an error.
15958 Use char because int might match the return type of a GCC
15959 builtin and then its argument prototype would still apply. */
15963 char add_history ();
15967 return add_history ();
15972 if ac_fn_cxx_try_link
"$LINENO"; then :
15973 vl_cv_lib_readline_history
="yes"
15975 rm -f core conftest.err conftest.
$ac_objext \
15976 conftest
$ac_exeext conftest.
$ac_ext
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
15980 $as_echo "$vl_cv_lib_readline_history" >&6; }
15981 if test "$vl_cv_lib_readline_history" = "yes"; then
15983 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15985 for ac_header
in history.h readline
/history.h
15987 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15988 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15989 eval as_val
=\$
$as_ac_Header
15990 if test "x$as_val" = x
""yes; then :
15991 cat >>confdefs.h
<<_ACEOF
15992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16008 ac_cpp
='$CPP $CPPFLAGS'
16009 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16010 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16011 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16014 # Check for strerror_r
16015 mule_backup_CPPFLAGS
="$CPPFLAGS"
16016 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
16017 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16018 if test "x$ac_cv_have_decl_strerror_r" = x
""yes; then :
16024 cat >>confdefs.h
<<_ACEOF
16025 #define HAVE_DECL_STRERROR_R $ac_have_decl
16028 for ac_func
in strerror_r
16030 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16031 if test "x$ac_cv_func_strerror_r" = x
""yes; then :
16032 cat >>confdefs.h
<<_ACEOF
16033 #define HAVE_STRERROR_R 1
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16040 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16041 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
16042 $as_echo_n "(cached) " >&6
16045 ac_cv_func_strerror_r_char_p
=no
16046 if test $ac_cv_have_decl_strerror_r = yes; then
16047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16048 /* end confdefs.h. */
16049 $ac_includes_default
16055 char x = *strerror_r (0, buf, sizeof buf);
16056 char *p = strerror_r (0, buf, sizeof buf);
16063 if ac_fn_c_try_compile
"$LINENO"; then :
16064 ac_cv_func_strerror_r_char_p
=yes
16066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16068 # strerror_r is not declared. Choose between
16069 # systems that have relatively inaccessible declarations for the
16070 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16071 # former has a strerror_r that returns char*, while the latter
16072 # has a strerror_r that returns `int'.
16073 # This test should segfault on the DEC system.
16074 if test "$cross_compiling" = yes; then :
16077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16079 $ac_includes_default
16080 extern char *strerror_r ();
16085 char x = *strerror_r (0, buf, sizeof buf);
16086 return ! isalpha (x);
16091 if ac_fn_c_try_run
"$LINENO"; then :
16092 ac_cv_func_strerror_r_char_p
=yes
16094 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16095 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16102 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16103 if test $ac_cv_func_strerror_r_char_p = yes; then
16105 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16109 CPPFLAGS
="$mule_backup_CPPFLAGS"
16114 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16116 $as_echo_n "checking for docdir... " >&6; }
16117 if test -z "$docdir"; then :
16118 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16121 $as_echo "$docdir" >&6; }
16124 # Try to set the SVN checkout-date
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16126 $as_echo_n "checking for SVNDATE... " >&6; }
16128 if test -f "$srcdir/.svn-revision"; then
16129 svndate
="rev. `cat $srcdir/.svn-revision`"
16130 elif test -d "$srcdir"/.svn
; then
16131 svndate
="rev. `svnversion "$srcdir" | ${SED} -e 'h;s/[0-9][0-9]*:\(.*\)/\1/;s/\([0-9][0-9]*\).*/\1/;x;/.*M.*/{x;s/$/+/;b;};x'`"
16132 elif test -d "$srcdir"/.git
; then
16134 git_revision
=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16135 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16138 if test -f $srcdir/.git
/svn
/.metadata
; then
16139 git_sha
=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16140 svndate
=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16141 svn_revision=\`git
--git-dir="$srcdir"/.git svn find-rev \
${sha}\
`
16142 if test -n "\${svn_revision}" ; then
16143 if test \${sha} = ${git_sha} ; then
16144 echo "rev. \${svn_revision}${modified}"
16146 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16152 svndate
="rev. g${git_revision}${modified}"
16155 elif test -d "$srcdir"/.hg
; then
16157 hg_revision
=`hg --cwd "$srcdir" identify --id`
16158 hg_revid
=${hg_revision%+}
16159 if test ${hg_revision} != ${hg_revid} ; then
16162 if test -f "$srcdir"/.hg
/svn
/uuid
; then
16163 svndate
=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16164 if test \${svn_revision} != r ; then
16165 if test \${hg_sha} = ${hg_revid} ; then
16166 echo "rev. \${svn_revision#r}${modified}"
16168 echo "rev. \${svn_revision#r}+h${hg_revision}"
16174 svndate
="rev. h${hg_revision}"
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16181 $as_echo "${svndate:-None required}" >&6; }
16182 if test -n "$svndate"; then :
16185 cat >>confdefs.h
<<_ACEOF
16186 #define SVNDATE "$svndate"
16189 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
16197 # Check whether --with-denoise-level was given.
16198 if test "${with_denoise_level+set}" = set; then :
16199 withval
=$with_denoise_level;
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16204 $as_echo_n "checking denoising level... " >&6; }
16205 if test ${with_denoise_level:-5} = yes; then :
16206 with_denoise_level
=5
16208 if test ${with_denoise_level:-5} = no
; then :
16209 with_denoise_level
=0
16211 if test ${with_denoise_level:-5} -gt 4; then :
16212 if test "${svndate:+set}" = "set"; then :
16213 with_denoise_level
=0
16215 with_denoise_level
=4
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16219 $as_echo "$with_denoise_level" >&6; }
16221 ac_config_commands
="$ac_config_commands denoiser"
16226 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16228 # Check whether --enable-ccache was given.
16229 if test "${enable_ccache+set}" = set; then :
16230 enableval
=$enable_ccache;
16236 # Check whether --with-ccache-prefix was given.
16237 if test "${with_ccache_prefix+set}" = set; then :
16238 withval
=$with_ccache_prefix;
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16243 $as_echo_n "checking whether ccache support should be added... " >&6; }
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16245 $as_echo "${enable_ccache:-no}" >&6; }
16247 if test ${enable_ccache:-no} = yes; then :
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16250 $as_echo_n "checking for ccache presence... " >&6; }
16251 if test -z "$with_ccache_prefix"; then :
16253 ccache_full
=`which ccache`
16254 with_ccache_prefix
=`dirname ${ccache_full}`
16257 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then :
16259 CC
="$with_ccache_prefix/ccache $CC"
16260 CXX
="$with_ccache_prefix/ccache $CXX"
16261 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16267 $as_echo "${enable_ccache:-no}" >&6; }
16274 if test x
$SYS = xwin32
; then
16276 SYS_WIN32_FALSE
='#'
16282 if test x
$SYS = xwin32
-a "$RC" != ":"; then
16290 if test x
$SYS = xdarwin
; then
16291 NEED_CORESERVICES_TRUE
=
16292 NEED_CORESERVICES_FALSE
='#'
16294 NEED_CORESERVICES_TRUE
='#'
16295 NEED_CORESERVICES_FALSE
=
16298 if test x
$USE_NLS = xyes
; then
16300 COMPILE_NLS_FALSE
='#'
16302 COMPILE_NLS_TRUE
='#'
16306 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
16307 GENERATE_FLEX_HEADER_TRUE
=
16308 GENERATE_FLEX_HEADER_FALSE
='#'
16310 GENERATE_FLEX_HEADER_TRUE
='#'
16311 GENERATE_FLEX_HEADER_FALSE
=
16314 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16315 INSTALL_SKINS_TRUE
=
16316 INSTALL_SKINS_FALSE
='#'
16318 INSTALL_SKINS_TRUE
='#'
16319 INSTALL_SKINS_FALSE
=
16322 if test ${enable_plasmamule:-no} = yes; then
16324 PLASMAMULE_FALSE
='#'
16326 PLASMAMULE_TRUE
='#'
16331 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
16332 COMPILE_LIB_COMMON_TRUE
=
16333 COMPILE_LIB_COMMON_FALSE
='#'
16335 COMPILE_LIB_COMMON_TRUE
='#'
16336 COMPILE_LIB_COMMON_FALSE
=
16339 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
16340 COMPILE_LIB_EC_TRUE
=
16341 COMPILE_LIB_EC_FALSE
='#'
16343 COMPILE_LIB_EC_TRUE
='#'
16344 COMPILE_LIB_EC_FALSE
=
16348 ac_config_files
="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile po/Makefile.in src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
16351 if test x
$SYS = xwin32
; then :
16352 ac_config_files
="$ac_config_files version.rc"
16355 cat >confcache
<<\_ACEOF
16356 # This file is a shell script that caches the results of configure
16357 # tests run on this system so they can be shared between configure
16358 # scripts and configure runs, see configure's option --config-cache.
16359 # It is not useful on other systems. If it contains results you don't
16360 # want to keep, you may remove or edit it.
16362 # config.status only pays attention to the cache file if you give it
16363 # the --recheck option to rerun configure.
16365 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16366 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16367 # following values.
16371 # The following way of writing the cache mishandles newlines in values,
16372 # but we know of no workaround that is simple, portable, and efficient.
16373 # So, we kill variables containing newlines.
16374 # Ultrix sh set writes to stderr and can't be redirected directly,
16375 # and sets the high bit in the cache file unless we assign to the vars.
16377 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16378 eval ac_val
=\$
$ac_var
16382 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16386 _ | IFS | as_nl
) ;; #(
16387 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16388 *) { eval $ac_var=; unset $ac_var;} ;;
16394 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16395 *${as_nl}ac_space
=\
*)
16396 # `set' does not quote correctly, so add quotes: double-quote
16397 # substitution turns \\\\ into \\, and sed turns \\ into \.
16400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16403 # `set' quotes correctly as required by POSIX, so do not add quotes.
16404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16413 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16415 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16417 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16418 if test -w "$cache_file"; then
16419 test "x$cache_file" != "x/dev/null" &&
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16421 $as_echo "$as_me: updating cache $cache_file" >&6;}
16422 cat confcache
>$cache_file
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16425 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16430 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16431 # Let make expand exec_prefix.
16432 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16434 DEFS
=-DHAVE_CONFIG_H
16438 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16439 # 1. Remove the extension, and $U if already installed.
16440 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16441 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16442 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16443 # will be set to the directory where LIBOBJS objects are built.
16444 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16445 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16447 LIBOBJS
=$ac_libobjs
16449 LTLIBOBJS
=$ac_ltlibobjs
16452 if test -n "$EXEEXT"; then
16454 am__EXEEXT_FALSE
='#'
16456 am__EXEEXT_TRUE
='#'
16460 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16461 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
16462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16464 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16465 as_fn_error
"conditional \"AMDEP\" was never defined.
16466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16468 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16469 as_fn_error
"conditional \"am__fastdepCXX\" was never defined.
16470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16472 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16473 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
16474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16476 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16477 as_fn_error
"conditional \"MONOLITHIC\" was never defined.
16478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16480 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16481 as_fn_error
"conditional \"AMULE_DAEMON\" was never defined.
16482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16484 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16485 as_fn_error
"conditional \"COMPILE_CMD\" was never defined.
16486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16488 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16489 as_fn_error
"conditional \"WEB\" was never defined.
16490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16492 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16493 as_fn_error
"conditional \"AMULE_GUI\" was never defined.
16494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16496 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16497 as_fn_error
"conditional \"CAS\" was never defined.
16498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16500 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16501 as_fn_error
"conditional \"WXCAS\" was never defined.
16502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16504 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16505 as_fn_error
"conditional \"ED2K\" was never defined.
16506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16508 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16509 as_fn_error
"conditional \"ALC\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16512 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16513 as_fn_error
"conditional \"ALCC\" was never defined.
16514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16516 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16517 as_fn_error
"conditional \"XAS\" was never defined.
16518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16520 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16521 as_fn_error
"conditional \"FILEVIEW\" was never defined.
16522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16524 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16525 as_fn_error
"conditional \"SYS_WIN32\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16528 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16529 as_fn_error
"conditional \"NEED_RC\" was never defined.
16530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16532 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16533 as_fn_error
"conditional \"NEED_CORESERVICES\" was never defined.
16534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16536 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16537 as_fn_error
"conditional \"COMPILE_NLS\" was never defined.
16538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16540 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
16541 as_fn_error
"conditional \"GENERATE_FLEX_HEADER\" was never defined.
16542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16544 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16545 as_fn_error
"conditional \"INSTALL_SKINS\" was never defined.
16546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16548 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16549 as_fn_error
"conditional \"PLASMAMULE\" was never defined.
16550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16552 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16553 as_fn_error
"conditional \"COMPILE_LIB_COMMON\" was never defined.
16554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16556 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16557 as_fn_error
"conditional \"COMPILE_LIB_EC\" was never defined.
16558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16561 : ${CONFIG_STATUS=./config.status}
16563 ac_clean_files_save
=$ac_clean_files
16564 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16566 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16568 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16570 # Generated by $as_me.
16571 # Run this file to recreate the current configuration.
16572 # Compiler output produced by configure, useful for debugging
16573 # configure, is in config.log if it exists.
16576 ac_cs_recheck=false
16579 SHELL=\${CONFIG_SHELL-$SHELL}
16582 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16583 ## -------------------- ##
16584 ## M4sh Initialization. ##
16585 ## -------------------- ##
16587 # Be more Bourne compatible
16588 DUALCASE
=1; export DUALCASE
# for MKS sh
16589 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16592 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16593 # is contrary to our usage. Disable this feature.
16594 alias -g '${1+"$@"}'='"$@"'
16595 setopt NO_GLOB_SUBST
16597 case `(set -o) 2>/dev/null` in #(
16609 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16610 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16611 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16612 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16613 # Prefer a ksh shell builtin over an external printf program on Solaris,
16614 # but without wasting forks for bash or zsh.
16615 if test -z "$BASH_VERSION$ZSH_VERSION" \
16616 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16617 as_echo='print
-r --'
16618 as_echo_n='print
-rn --'
16619 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16620 as_echo='printf %s
\n'
16621 as_echo_n='printf %s
'
16623 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16624 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16625 as_echo_n='/usr
/ucb
/echo -n'
16627 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16628 as_echo_n_body='eval
16632 expr "X$arg" : "X\\(.*\\)$as_nl";
16633 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16635 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16637 export as_echo_n_body
16638 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16640 export as_echo_body
16641 as_echo='sh
-c $as_echo_body as_echo
'
16644 # The user is always right.
16645 if test "${PATH_SEPARATOR+set}" != set; then
16647 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16648 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16655 # We need space, tab and new line, in precisely that order. Quoting is
16656 # there to prevent editors from complaining about space-tab.
16657 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16658 # splitting by setting IFS to empty value.)
16661 # Find who we are. Look in the path if we contain no directory separator.
16663 *[\\/]* ) as_myself=$0 ;;
16664 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16665 for as_dir in $PATH
16668 test -z "$as_dir" && as_dir=.
16669 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16675 # We did not find ourselves, most probably we were run as `sh COMMAND'
16676 # in which case we are not to be found in the path.
16677 if test "x$as_myself" = x
; then
16680 if test ! -f "$as_myself"; then
16681 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16685 # Unset variables that we do not need and which cause bugs (e.g. in
16686 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16687 # suppresses any "Segmentation fault" message there. '((' could
16688 # trigger a bug in pdksh 5.2.14.
16689 for as_var
in BASH_ENV ENV MAIL MAILPATH
16690 do eval test x\
${$as_var+set} = xset \
16691 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16704 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16707 # as_fn_error ERROR [LINENO LOG_FD]
16708 # ---------------------------------
16709 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16710 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16711 # script with status $?, using 1 if that was 0.
16714 as_status
=$?
; test $as_status -eq 0 && as_status
=1
16716 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16717 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16719 $as_echo "$as_me: error: $1" >&2
16720 as_fn_exit
$as_status
16724 # as_fn_set_status STATUS
16725 # -----------------------
16726 # Set $? to STATUS, without forking.
16727 as_fn_set_status
()
16730 } # as_fn_set_status
16732 # as_fn_exit STATUS
16733 # -----------------
16734 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16738 as_fn_set_status
$1
16744 # Portably unset VAR.
16747 { eval $1=; unset $1;}
16749 as_unset
=as_fn_unset
16750 # as_fn_append VAR VALUE
16751 # ----------------------
16752 # Append the text in VALUE to the end of the definition contained in VAR. Take
16753 # advantage of any shell optimizations that allow amortized linear growth over
16754 # repeated appends, instead of the typical quadratic growth present in naive
16756 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16757 eval 'as_fn_append ()
16768 # as_fn_arith ARG...
16769 # ------------------
16770 # Perform arithmetic evaluation on the ARGs, and store the result in the
16771 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16772 # must be portable across $(()) and expr.
16773 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16774 eval 'as_fn_arith ()
16781 as_val
=`expr "$@" || test $? -eq 1`
16786 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16787 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16793 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16794 as_basename
=basename
16799 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16805 as_me
=`$as_basename -- "$0" ||
16806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16807 X"$0" : 'X\(//\)$' \| \
16808 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16810 sed '/^.*\/\([^/][^/]*\)\/*$/{
16824 # Avoid depending upon Character Ranges.
16825 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16826 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16827 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16828 as_cr_digits
='0123456789'
16829 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16831 ECHO_C
= ECHO_N
= ECHO_T
=
16832 case `echo -n x` in #(((((
16834 case `echo 'xy\c'` in
16835 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16837 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16844 rm -f conf$$ conf$$.exe conf$$.
file
16845 if test -d conf$$.dir
; then
16846 rm -f conf$$.dir
/conf$$.
file
16849 mkdir conf$$.dir
2>/dev
/null
16851 if (echo >conf$$.
file) 2>/dev
/null
; then
16852 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16854 # ... but there are two gotchas:
16855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16857 # In both cases, we have to default to `cp -p'.
16858 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16860 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16868 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16869 rmdir conf$$.dir
2>/dev
/null
16874 # Create "$as_dir" as a directory, including parents if necessary.
16879 -*) as_dir
=.
/$as_dir;;
16881 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16885 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16886 *) as_qdir
=$as_dir;;
16888 as_dirs
="'$as_qdir' $as_dirs"
16889 as_dir
=`$as_dirname -- "$as_dir" ||
16890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16891 X"$as_dir" : 'X\(//\)[^/]' \| \
16892 X"$as_dir" : 'X\(//\)$' \| \
16893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16894 $as_echo X"$as_dir" |
16895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16899 /^X\(\/\/\)[^/].*/{
16912 test -d "$as_dir" && break
16914 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16915 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16919 if mkdir
-p .
2>/dev
/null
; then
16920 as_mkdir_p
='mkdir -p "$as_dir"'
16922 test -d .
/-p && rmdir .
/-p
16926 if test -x / >/dev
/null
2>&1; then
16927 as_test_x
='test -x'
16929 if ls -dL / >/dev
/null
2>&1; then
16936 if test -d "$1"; then
16942 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16943 ???[sx]*):;;*)false;;esac;fi
16947 as_executable_p
=$as_test_x
16949 # Sed expression to map a string onto a valid CPP name.
16950 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16952 # Sed expression to map a string onto a valid variable name.
16953 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16957 ## ----------------------------------- ##
16958 ## Main body of $CONFIG_STATUS script. ##
16959 ## ----------------------------------- ##
16961 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16964 # Save the log message, to keep $0 and so on meaningful, and to
16965 # report actual input values of CONFIG_FILES etc. instead of their
16966 # values after options handling.
16968 This file was extended by aMule $as_me SVN, which was
16969 generated by GNU Autoconf 2.65. Invocation command line was
16971 CONFIG_FILES = $CONFIG_FILES
16972 CONFIG_HEADERS = $CONFIG_HEADERS
16973 CONFIG_LINKS = $CONFIG_LINKS
16974 CONFIG_COMMANDS = $CONFIG_COMMANDS
16977 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16982 case $ac_config_files in *"
16983 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16986 case $ac_config_headers in *"
16987 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16992 # Files that config.status was made for.
16993 config_files="$ac_config_files"
16994 config_headers="$ac_config_headers"
16995 config_commands="$ac_config_commands"
16999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17001 \`$as_me' instantiates files and other configuration actions
17002 from templates according to the current configuration. Unless the files
17003 and actions are specified as TAGs, all are instantiated by default.
17005 Usage: $0 [OPTION]... [TAG]...
17007 -h, --help print this help, then exit
17008 -V, --version print version number and configuration settings, then exit
17009 --config print configuration, then exit
17010 -q, --quiet, --silent
17011 do not print progress messages
17012 -d, --debug don't remove temporary files
17013 --recheck update $as_me by reconfiguring in the same conditions
17014 --file=FILE[:TEMPLATE]
17015 instantiate the configuration file FILE
17016 --header=FILE[:TEMPLATE]
17017 instantiate the configuration header FILE
17019 Configuration files:
17022 Configuration headers:
17025 Configuration commands:
17028 Report bugs to <admin@amule.org>."
17031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17032 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17034 aMule config.status SVN
17035 configured by $0, generated by GNU Autoconf 2.65,
17036 with options \\"\$ac_cs_config\\"
17038 Copyright (C) 2009 Free Software Foundation, Inc.
17039 This config.status script is free software; the Free Software Foundation
17040 gives unlimited permission to copy, distribute and modify it."
17047 test -n "\$AWK" || AWK=awk
17050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17051 # The default lists apply if the user does not specify any file.
17057 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17058 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17069 # Handling of the options.
17070 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17072 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17073 $as_echo "$ac_cs_version"; exit ;;
17074 --config |
--confi |
--conf |
--con |
--co |
--c )
17075 $as_echo "$ac_cs_config"; exit ;;
17076 --debug |
--debu |
--deb |
--de |
--d |
-d )
17078 --file |
--fil |
--fi |
--f )
17081 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17083 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17084 ac_need_defaults
=false
;;
17085 --header |
--heade |
--head |
--hea )
17088 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17090 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17091 ac_need_defaults
=false
;;
17093 # Conflict between --help and --header
17094 as_fn_error
"ambiguous option: \`$1'
17095 Try \`$0 --help' for more information.";;
17096 --help |
--hel |
-h )
17097 $as_echo "$ac_cs_usage"; exit ;;
17098 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17099 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17102 # This is an error.
17103 -*) as_fn_error
"unrecognized option: \`$1'
17104 Try \`$0 --help' for more information." ;;
17106 *) as_fn_append ac_config_targets
" $1"
17107 ac_need_defaults
=false
;;
17113 ac_configure_extra_args
=
17115 if $ac_cs_silent; then
17117 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17122 if \$ac_cs_recheck; then
17123 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17125 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17126 CONFIG_SHELL='$SHELL'
17127 export CONFIG_SHELL
17132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17136 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17137 ## Running $as_me. ##
17143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17147 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17148 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17149 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17151 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17152 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17153 LINGUAS="${LINGUAS-%UNSET%}"
17155 denoiserlevel=$with_denoise_level
17159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17161 # Handling of arguments.
17162 for ac_config_target
in $ac_config_targets
17164 case $ac_config_target in
17165 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17166 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17167 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17168 "denoiser") CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
17169 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17170 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
17171 "docs/man/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
17172 "intl/Makefile") CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
17173 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
17174 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
17175 "src/pixmaps/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
17176 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17177 "src/libs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
17178 "src/libs/ec/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
17179 "src/libs/ec/cpp/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17180 "src/libs/common/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
17181 "src/utils/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
17182 "src/utils/aLinkCreator/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17183 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17184 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17185 "src/utils/cas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
17186 "src/utils/cas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17187 "src/utils/fileview/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17188 "src/utils/plasmamule/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17189 "src/utils/wxCas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17190 "src/utils/wxCas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17191 "src/utils/wxCas/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17192 "src/utils/xas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
17193 "src/utils/xas/autostart-xas") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17194 "src/utils/xas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17195 "src/skins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
17196 "src/webserver/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
17197 "src/webserver/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
17198 "src/webserver/default/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
17199 "unittests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
17200 "unittests/muleunit/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17201 "unittests/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
17202 "version.rc") CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
17204 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17209 # If the user did not use the arguments to specify the items to instantiate,
17210 # then the envvar interface is used. Set only those that are not.
17211 # We use the long form for the default assignment because of an extremely
17212 # bizarre bug on SunOS 4.1.3.
17213 if $ac_need_defaults; then
17214 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17215 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17216 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17219 # Have a temporary directory for convenience. Make it in the build tree
17220 # simply because there is no reason against having it here, and in addition,
17221 # creating and moving files from /tmp can sometimes cause problems.
17222 # Hook for its removal unless debugging.
17223 # Note that there is a small window in which the directory will not be cleaned:
17224 # after its creation but before its name has been assigned to `$tmp'.
17228 trap 'exit_status=$?
17229 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17231 trap 'as_fn_exit 1' 1 2 13 15
17233 # Create a (secure) tmp directory for tmp files.
17236 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17237 test -n "$tmp" && test -d "$tmp"
17240 tmp
=.
/conf$$
-$RANDOM
17241 (umask 077 && mkdir
"$tmp")
17242 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
17244 # Set up the scripts for CONFIG_FILES section.
17245 # No need to generate them if there are no CONFIG_FILES.
17246 # This happens for instance with `./config.status config.h'.
17247 if test -n "$CONFIG_FILES"; then
17250 ac_cr
=`echo X | tr X '\015'`
17251 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17252 # But we know of no other shell where ac_cr would be empty at this
17253 # point, so we can use a bashism as a fallback.
17254 if test "x$ac_cr" = x
; then
17255 eval ac_cr
=\$
\'\\r
\'
17257 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17258 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17261 ac_cs_awk_cr
=$ac_cr
17264 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17269 echo "cat >conf$$subs.awk <<_ACEOF" &&
17270 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17272 } >conf$$subs.sh ||
17273 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17274 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17276 for ac_last_try in false false false false false :; do
17277 . ./conf$$subs.sh ||
17278 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17280 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17281 if test $ac_delim_n = $ac_delim_num; then
17283 elif $ac_last_try; then
17284 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
17286 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17289 rm -f conf$$subs.sh
17291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17292 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17296 s/^/S["/; s
/!.
*/"]=/
17306 s/\(.\{148\}\)..*/\1/
17308 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17313 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17320 s/\(.\{148\}\)..*/\1/
17322 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17326 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17331 ' <conf$$subs.awk | sed '
17336 ' >>$CONFIG_STATUS || ac_write_fail=1
17337 rm -f conf$$subs.awk
17338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17340 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17341 for (key in S) S_is_set[key] = 1
17347 nfields = split(line, field, "@
")
17349 len = length(field[1])
17350 for (i = 2; i < nfields; i++) {
17352 keylen = length(key)
17353 if (S_is_set[key]) {
17355 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17356 len += length(value) + length(field[++i])
17367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17368 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17369 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17372 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17373 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
17376 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17377 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17378 # trailing colons and then remove the whole line if VPATH becomes empty
17379 # (actually we leave an empty line to preserve line numbers).
17380 if test "x
$srcdir" = x.; then
17381 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17382 s/:*\$(srcdir):*/:/
17383 s/:*\${srcdir}:*/:/
17385 s/^\([^=]*=[ ]*\):*/\1/
17391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17392 fi # test -n "$CONFIG_FILES"
17394 # Set up the scripts for CONFIG_HEADERS section.
17395 # No need to generate them if there are no CONFIG_HEADERS.
17396 # This happens for instance with `./config.status Makefile'.
17397 if test -n "$CONFIG_HEADERS"; then
17398 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17402 # Transform confdefs.h into an awk script `defines.awk', embedded as
17403 # here-document in config.status, that substitutes the proper values into
17404 # config.h.in to produce config.h.
17406 # Create a delimiter string that does not exist in confdefs.h, to ease
17407 # handling of long lines.
17409 for ac_last_try in false false :; do
17410 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17411 if test -z "$ac_t"; then
17413 elif $ac_last_try; then
17414 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
17416 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17420 # For the awk script, D is an array of macro values keyed by name,
17421 # likewise P contains macro parameters if any. Preserve backslash
17422 # newline sequences.
17424 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17426 s/.\{148\}/&'"$ac_delim"'/g
17429 s/^[ ]*#[ ]*define[ ][ ]*/ /
17436 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17438 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17442 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17443 D["\
1"]=" \
3\\\\\\n
"\\/p
17445 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17450 s/.\{148\}/&'"$ac_delim"'/g
17455 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17458 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17460 ' <confdefs.h | sed '
17461 s/'"$ac_delim"'/"\\\
17462 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17465 for (key in D) D_is_set[key] = 1
17468 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17470 split(line, arg, " ")
17471 if (arg[1] == "#") {
17475 defundef
= substr
(arg
[1], 2)
17478 split(mac1
, mac2
, "(") #)
17480 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17481 if (D_is_set
[macro
]) {
17482 # Preserve the white space surrounding the "#".
17483 print prefix
"define", macro P
[macro
] D
[macro
]
17486 # Replace #undef with comments. This is necessary, for example,
17487 # in the case of _POSIX_SOURCE, which is predefined and required
17488 # on some systems where configure will not decide to define it.
17489 if (defundef
== "undef") {
17490 print
"/*", prefix defundef
, macro
, "*/"
17498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17499 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
17500 fi # test -n "$CONFIG_HEADERS"
17503 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17508 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17510 case $ac_mode$ac_tag in
17512 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17513 :[FH
]-) ac_tag
=-:-;;
17514 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17531 -) ac_f
="$tmp/stdin";;
17532 *) # Look for the file first in the build tree, then in the source tree
17533 # (if the path is not absolute). The absolute path cannot be DOS-style,
17534 # because $ac_f cannot contain `:'.
17538 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17540 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
17542 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17543 as_fn_append ac_file_inputs
" '$ac_f'"
17546 # Let's still pretend it is `configure' which instantiates (i.e., don't
17547 # use $as_me), people would be surprised to read:
17548 # /* config.h. Generated by config.status. */
17549 configure_input
='Generated from '`
17550 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17552 if test x
"$ac_file" != x-
; then
17553 configure_input
="$ac_file. $configure_input"
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17555 $as_echo "$as_me: creating $ac_file" >&6;}
17557 # Neutralize special characters interpreted by sed in replacement strings.
17558 case $configure_input in #(
17559 *\
&* |
*\|
* |
*\\* )
17560 ac_sed_conf_input
=`$as_echo "$configure_input" |
17561 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17562 *) ac_sed_conf_input
=$configure_input;;
17566 *:-:* |
*:-) cat >"$tmp/stdin" \
17567 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
17572 ac_dir
=`$as_dirname -- "$ac_file" ||
17573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17574 X"$ac_file" : 'X\(//\)[^/]' \| \
17575 X"$ac_file" : 'X\(//\)$' \| \
17576 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17577 $as_echo X"$ac_file" |
17578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17582 /^X\(\/\/\)[^/].*/{
17595 as_dir
="$ac_dir"; as_fn_mkdir_p
17599 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17601 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17602 # A ".." for each directory in $ac_dir_suffix.
17603 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17604 case $ac_top_builddir_sub in
17605 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17606 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17609 ac_abs_top_builddir
=$ac_pwd
17610 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17611 # for backward compatibility:
17612 ac_top_builddir
=$ac_top_build_prefix
17615 .
) # We are building in place.
17617 ac_top_srcdir
=$ac_top_builddir_sub
17618 ac_abs_top_srcdir
=$ac_pwd ;;
17619 [\\/]* | ?
:[\\/]* ) # Absolute name.
17620 ac_srcdir
=$srcdir$ac_dir_suffix;
17621 ac_top_srcdir
=$srcdir
17622 ac_abs_top_srcdir
=$srcdir ;;
17623 *) # Relative name.
17624 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17625 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17626 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17628 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17638 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17639 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17641 ac_MKDIR_P
=$MKDIR_P
17643 [\\/$
]* | ?
:[\\/]* ) ;;
17644 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17649 # If the template does not know about datarootdir, expand it.
17650 # FIXME: This hack should be removed a few years after 2.60.
17651 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17662 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17663 *datarootdir
*) ac_datarootdir_seen
=yes;;
17664 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17666 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17669 ac_datarootdir_hack='
17670 s&@datadir@&$datadir&g
17671 s&@docdir@&$docdir&g
17672 s&@infodir@&$infodir&g
17673 s&@localedir@&$localedir&g
17674 s&@mandir@&$mandir&g
17675 s&\\\${datarootdir}&$datarootdir&g' ;;
17679 # Neutralize VPATH when `$srcdir' = `.'.
17680 # Shell code in configure.ac might set extrasub.
17681 # FIXME: do we really want to maintain this feature?
17682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17683 ac_sed_extra="$ac_vpsub
17686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17688 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17689 s|@configure_input@|
$ac_sed_conf_input|
;t t
17690 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17691 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17692 s
&@srcdir@
&$ac_srcdir&;t t
17693 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17694 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17695 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17696 s
&@builddir@
&$ac_builddir&;t t
17697 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17698 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17699 s
&@INSTALL@
&$ac_INSTALL&;t t
17700 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17701 $ac_datarootdir_hack
17703 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17704 || as_fn_error "could not create
$ac_file" "$LINENO" 5
17706 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17707 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17708 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17710 which seems to be undefined. Please make sure it is defined." >&5
17711 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17712 which seems to be undefined. Please make sure it is defined." >&2;}
17716 -) cat "$tmp/out" && rm -f "$tmp/out";;
17717 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17719 || as_fn_error "could not create $ac_file" "$LINENO" 5
17725 if test x"$ac_file" != x-; then
17727 $as_echo "/* $configure_input */" \
17728 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17729 } >"$tmp/config.h" \
17730 || as_fn_error "could not create $ac_file" "$LINENO" 5
17731 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17733 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17736 mv "$tmp/config.h" "$ac_file" \
17737 || as_fn_error "could not create $ac_file" "$LINENO" 5
17740 $as_echo "/* $configure_input */" \
17741 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17742 || as_fn_error "could not create -" "$LINENO" 5
17744 # Compute "$ac_file"'s index
in $config_headers.
17747 for _am_header
in $config_headers :; do
17748 case $_am_header in
17749 $_am_arg |
$_am_arg:* )
17752 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17755 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17756 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17757 X"$_am_arg" : 'X\(//\)[^/]' \| \
17758 X"$_am_arg" : 'X\(//\)$' \| \
17759 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17760 $as_echo X"$_am_arg" |
17761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17765 /^X\(\/\/\)[^/].*/{
17777 s/.*/./; q'`/stamp-h
$_am_stamp_count
17780 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17781 $as_echo "$as_me: executing $ac_file commands" >&6;}
17786 case $ac_file$ac_mode in
17787 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17788 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17789 # are listed without --file. Let's play safe and only enable the eval
17790 # if we detect the quoting.
17791 case $CONFIG_FILES in
17792 *\'*) eval set x
"$CONFIG_FILES" ;;
17793 *) set x
$CONFIG_FILES ;;
17798 # Strip MF so we end up with the name of the file.
17799 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17800 # Check whether this is an Automake generated Makefile or not.
17801 # We used to match only the files named `Makefile.in', but
17802 # some people rename them; so instead we look at the file content.
17803 # Grep'ing the first line is not enough: some people post-process
17804 # each Makefile.in and add a new line on top of each file to say so.
17805 # Grep'ing the whole file is not good either: AIX grep has a line
17806 # limit of 2048, but all sed's we know have understand at least 4000.
17807 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17808 dirpart
=`$as_dirname -- "$mf" ||
17809 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17810 X"$mf" : 'X\(//\)[^/]' \| \
17811 X"$mf" : 'X\(//\)$' \| \
17812 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17818 /^X\(\/\/\)[^/].*/{
17834 # Extract the definition of DEPDIR, am__include, and am__quote
17835 # from the Makefile without running `make'.
17836 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17837 test -z "$DEPDIR" && continue
17838 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17839 test -z "am__include" && continue
17840 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17841 # When using ansi2knr, U may be empty or an underscore; expand it
17842 U
=`sed -n 's/^U = //p' < "$mf"`
17843 # Find all dependency output files, they are included files with
17844 # $(DEPDIR) in their names. We invoke sed twice because it is the
17845 # simplest approach to changing $(DEPDIR) to its actual value in the
17847 for file in `sed -n "
17848 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17849 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17850 # Make sure the directory exists.
17851 test -f "$dirpart/$file" && continue
17852 fdir
=`$as_dirname -- "$file" ||
17853 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17854 X"$file" : 'X\(//\)[^/]' \| \
17855 X"$file" : 'X\(//\)$' \| \
17856 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17857 $as_echo X"$file" |
17858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17862 /^X\(\/\/\)[^/].*/{
17875 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17876 # echo "creating $dirpart/$file"
17877 echo '# dummy' > "$dirpart/$file"
17883 for ac_file
in $CONFIG_FILES; do
17884 # Support "outfile[:infile[:infile...]]"
17886 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
17888 # PO directories have a Makefile.in generated from Makefile.in.in.
17889 case "$ac_file" in */Makefile.
in)
17890 # Adjust a relative srcdir.
17891 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17892 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
17893 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17894 # In autoconf-2.13 it is called $ac_given_srcdir.
17895 # In autoconf-2.50 it is called $srcdir.
17896 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
17897 case "$ac_given_srcdir" in
17898 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
17899 /*) top_srcdir
="$ac_given_srcdir" ;;
17900 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
17902 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17903 rm -f "$ac_dir/POTFILES"
17904 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
17905 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17906 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17907 # on $ac_dir but don't depend on user-specified configuration
17909 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17910 # The LINGUAS file contains the set of available languages.
17911 if test -n "$ALL_LINGUAS"; then
17912 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
17914 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17915 # Hide the ALL_LINGUAS assigment from automake.
17916 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17918 case "$ac_given_srcdir" in
17920 *) srcdirpre
='$(srcdir)/' ;;
17926 for lang
in $ALL_LINGUAS; do
17927 POFILES
="$POFILES $srcdirpre$lang.po"
17928 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
17929 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
17930 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
17932 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17933 # environment variable.
17935 if test -n "$ALL_LINGUAS"; then
17936 for presentlang
in $ALL_LINGUAS; do
17938 if test "%UNSET%" != "$LINGUAS"; then
17939 desiredlanguages
="$LINGUAS"
17941 desiredlanguages
="$ALL_LINGUAS"
17943 for desiredlang
in $desiredlanguages; do
17944 # Use the presentlang catalog if desiredlang is
17945 # a. equal to presentlang, or
17946 # b. a variant of presentlang (because in this case,
17947 # presentlang can be used as a fallback for messages
17948 # which are not translated in the desiredlang catalog).
17949 case "$desiredlang" in
17950 "$presentlang"*) useit
=yes;;
17953 if test $useit = yes; then
17954 INST_LINGUAS
="$INST_LINGUAS $presentlang"
17959 if test -n "$INST_LINGUAS"; then
17960 for lang
in $INST_LINGUAS; do
17961 CATALOGS
="$CATALOGS $lang.gmo"
17964 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
17965 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"
17966 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
17967 if test -f "$f"; then
17969 *.orig |
*.bak |
*~
) ;;
17970 *) cat "$f" >> "$ac_dir/Makefile" ;;
17978 "denoiser":C
) if test $denoiserlevel -gt 0; then
17979 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
17980 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" \
17981 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
17982 for i
in `find . -name 'Makefile' -print`; do
17983 if test -n "`head -n 1 $i | grep '^#'`"; then
17984 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
17995 ac_clean_files
=$ac_clean_files_save
17997 test $ac_write_fail = 0 ||
17998 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18001 # configure is writing to config.log, and then calls config.status.
18002 # config.status does its own redirection, appending to config.log.
18003 # Unfortunately, on DOS this fails, as config.log is still kept open
18004 # by configure, so config.status won't be able to write to it; its
18005 # output is simply discarded. So we exec the FD to /dev/null,
18006 # effectively closing config.log, so it can be properly (re)opened and
18007 # appended to by config.status. When coming back to configure, we
18008 # need to make the FD available again.
18009 if test "$no_create" != yes; then
18011 ac_config_status_args
=
18012 test "$silent" = yes &&
18013 ac_config_status_args
="$ac_config_status_args --quiet"
18015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18018 # would make configure fail if this is the last instruction.
18019 $ac_cs_success || as_fn_exit $?
18021 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18023 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18027 if test -n "$svndate"; then :
18028 SVN_REVISION
=" ($svndate)"
18035 echo " Configure script has finished system check."
18037 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
18039 echo " aMule enabled options:"
18041 echo " **** aMule Core ****"
18042 echo " Prefix where aMule should be installed? ${prefix:-none}"
18043 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
18044 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
18045 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
18046 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
18047 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
18048 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
18049 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
18050 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18051 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18054 echo " **** aMule TextClient ****"
18055 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18057 echo " **** aMule WebServer ****"
18058 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18060 echo " **** aMule ED2K Links Handler ****"
18061 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18063 echo " **** aMuleLinkCreator ****"
18064 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18065 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18067 echo " **** aMule Statistics ****"
18068 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18069 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18070 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18071 echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}"
18074 echo " **** General Libraries and Tools ****"
18075 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18076 echo " Libraries aMule will use to build:"
18077 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 :
18080 if test $WX_DEBUG -eq 1; then :
18081 wxinfo
="$wxinfo,debug"
18083 if test $WX_SHARED -eq 1; then :
18084 wxinfo
="$wxinfo,shared"
18086 wxinfo
="$wxinfo,static"
18088 echo " wxWidgets ${WX_VERSION} ($wxinfo)"
18091 if test ${with_boost:-no} != no
; then :
18092 if test ${with_boost:-no} = disabled
; then
18093 echo " boost Not detected"
18094 elif test ${boost_cv_inc_path:-yes} != yes; then
18095 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18096 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18101 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18102 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})"
18104 if test ${enable_upnp:-yes} = yes; then :
18106 if test -n "$with_libupnp_prefix"; then :
18107 libupnp_place
=" (in $with_libupnp_prefix)"
18109 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18112 if test ${enable_nls:-yes} = yes; then
18113 if test x
$USE_NLS = xno
; then :
18114 libintl_found
="Not detected"
18116 if test x
$USE_INCLUDED_LIBINTL = xyes
; then :
18117 libintl_found
="included"
18119 libintl_found
="system"
18122 echo " libintl $libintl_found"
18124 if test ${enable_geoip:-no} = yes; then :
18125 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18130 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18131 echo " libGeoIP ${geoip_style}"
18134 if test ${enable_webserver:-no} = yes; then :
18135 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18137 if test ${enable_cas:-no} = yes; then :
18138 echo " libgd ${GDLIB_VERSION:-Not detected}"
18140 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 :
18141 echo " zlib ${ZLIB_VERSION:-Not detected}"
18143 if test ${enable_plasmamule:-no} = yes; then :
18144 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18145 echo " qt-core-libs ${QT_CORE_LIBS}"
18146 echo " qt-gui-libs ${QT_GUI_LIBS}"
18147 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18148 echo " kde-headers ${KDE_HEADER_DIR}"
18149 echo " kde-services-path ${KDE_SERVICE_PATH}"
18150 echo " kde-module-path ${KDE_MODULE_PATH}"
18151 echo " kde-icon-path ${KDE_ICON_PATH}"
18152 echo " kde-mime-path ${KDE_MIME_PATH}"
18153 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18156 if test ${_mule_has_warnings:-no} = yes; then
18159 echo " *** Warnings during configuration ***"
18161 if test ${_mule_warning_0:-no} = yes; then
18164 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18165 Please check that gdlib-config is in your default path, check out
18166 LD_LIBRARY_PATH or equivalent variable.
18167 Or this might also be that your gdlib-config has other name.
18168 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18169 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18170 If you use compiled packages check if you have devel pack installed.
18171 To download the latest version check http://www.boutell.com/gd for sources.
18174 if test ${_mule_warning_1:-no} = yes; then
18177 * libpng >= 1.2.0 not found.
18178 amuleweb will be compiled but file download progress bar images will NOT be
18182 if test ${_mule_warning_2:-no} = yes; then
18185 * File::Copy perl module is required by the mldonkey_importer script.
18186 If you want to use this script please install File::Copy from CPAN.
18189 if test ${_mule_warning_3:-no} = yes; then
18192 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18195 if test ${_mule_warning_4:-no} = yes; then
18198 * GeoIP support has been disabled because the GeoIP libraries were not found
18201 if test ${_mule_warning_5:-no} = yes; then
18204 * GeoIP support has been disabled because the GeoIP header files were not
18208 if test ${_mule_warning_6:-no} = yes; then
18211 * UPnP code has been disabled because ${libupnp_error}.
18214 if test ${_mule_warning_7:-no} = yes; then
18217 * Cross-compilation detected, so exception handling cannot be tested.
18218 Note that broken exception handling in your compiler may lead to unexpected
18222 if test ${_mule_warning_8:-no} = yes; then
18225 * Boost support has been disabled because Boost.System not found
18228 if test ${_mule_warning_9:-no} = yes; then
18231 * Boost support has been disabled because Boost.Asio not found
18234 if test ${_mule_warning_10:-no} = yes; then
18237 * Boost support has been disabled because Boost.Asio not found
18240 if test ${_mule_warning_11:-no} = yes; then
18243 * Boost support has been disabled because of insufficient Boost version.
18246 if test ${_mule_warning_12:-no} = yes; then
18249 * configure cannot check whether malloc() and realloc() are GNU libc
18250 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18251 configure with the --without-gnu-malloc switch.
18254 if test ${_mule_warning_13:-no} = yes; then
18257 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18261 if test ${_mule_warning_14:-no} = yes; then
18264 * Cannot link to the library containing the bfd functions.
18267 if test ${_mule_warning_15:-no} = yes; then
18270 * bfd.h not found or unusable, please install binutils development package if
18271 you are a developer or want to help testing aMule