2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='amule'
583 PACKAGE_VERSION
='SVN'
584 PACKAGE_STRING
='aMule SVN'
585 PACKAGE_BUGREPORT
='admin@amule.org'
588 ac_unique_file
="src/amule.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default
="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
626 ac_subst_vars
='am__EXEEXT_FALSE
631 COMPILE_LIB_COMMON_FALSE
632 COMPILE_LIB_COMMON_TRUE
637 GENERATE_FLEX_HEADER_FALSE
638 GENERATE_FLEX_HEADER_TRUE
641 NEED_CORESERVICES_FALSE
642 NEED_CORESERVICES_TRUE
675 AMULE_DAEMON_MANPAGES
680 INTL_LIBTOOL_SUFFIX_PREFIX
687 BUILD_INCLUDED_LIBINTL
706 DISTCHECK_CONFIGURE_FLAGS
831 MAINTAINER_MODE_FALSE
845 INSTALL_STRIP_PROGRAM
888 program_transform_name
904 enable_option_checking
906 enable_maintainer_mode
907 enable_dependency_tracking
957 with_included_gettext
963 ac_precious_vars
='build_alias
984 # Initialize some variables set by options.
986 ac_init_version
=false
987 ac_unrecognized_opts
=
989 # The variables have the same names as the options, with
990 # dashes changed to underlines.
998 program_transform_name
=s
,x
,x
,
1006 # Installation directory options.
1007 # These are left unexpanded so users can "make install exec_prefix=/foo"
1008 # and all the variables that are supposed to be based on exec_prefix
1009 # by default will actually change.
1010 # Use braces instead of parens because sh, perl, etc. also accept them.
1011 # (The list follows the same order as the GNU Coding Standards.)
1012 bindir
='${exec_prefix}/bin'
1013 sbindir
='${exec_prefix}/sbin'
1014 libexecdir
='${exec_prefix}/libexec'
1015 datarootdir
='${prefix}/share'
1016 datadir
='${datarootdir}'
1017 sysconfdir
='${prefix}/etc'
1018 sharedstatedir
='${prefix}/com'
1019 localstatedir
='${prefix}/var'
1020 runstatedir
='${localstatedir}/run'
1021 includedir
='${prefix}/include'
1022 oldincludedir
='/usr/include'
1023 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1024 infodir
='${datarootdir}/info'
1029 libdir
='${exec_prefix}/lib'
1030 localedir
='${datarootdir}/locale'
1031 mandir
='${datarootdir}/man'
1037 # If the previous option needs an argument, assign it.
1038 if test -n "$ac_prev"; then
1039 eval $ac_prev=\
$ac_option
1045 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1050 # Accept the important Cygnus configure options, so we can diagnose typos.
1052 case $ac_dashdash$ac_option in
1056 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1058 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1059 bindir
=$ac_optarg ;;
1061 -build |
--build |
--buil |
--bui |
--bu)
1062 ac_prev
=build_alias
;;
1063 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1064 build_alias
=$ac_optarg ;;
1066 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1067 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1068 ac_prev
=cache_file
;;
1069 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1070 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1071 cache_file
=$ac_optarg ;;
1073 --config-cache |
-C)
1074 cache_file
=config.cache
;;
1076 -datadir |
--datadir |
--datadi |
--datad)
1078 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1079 datadir
=$ac_optarg ;;
1081 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1082 |
--dataroo |
--dataro |
--datar)
1083 ac_prev
=datarootdir
;;
1084 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1085 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1086 datarootdir
=$ac_optarg ;;
1088 -disable-* |
--disable-*)
1089 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1092 as_fn_error $?
"invalid feature name: $ac_useropt"
1093 ac_useropt_orig
=$ac_useropt
1094 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_
$ac_useropt"
1099 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1100 ac_unrecognized_sep
=', ';;
1102 eval enable_
$ac_useropt=no
;;
1104 -docdir |
--docdir |
--docdi |
--doc |
--do)
1106 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1107 docdir
=$ac_optarg ;;
1109 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1111 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1112 dvidir
=$ac_optarg ;;
1114 -enable-* |
--enable-*)
1115 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1118 as_fn_error $?
"invalid feature name: $ac_useropt"
1119 ac_useropt_orig
=$ac_useropt
1120 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_
$ac_useropt"
1125 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126 ac_unrecognized_sep
=', ';;
1128 eval enable_
$ac_useropt=\
$ac_optarg ;;
1130 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1131 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1132 |
--exec |
--exe |
--ex)
1133 ac_prev
=exec_prefix
;;
1134 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1135 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1136 |
--exec=* |
--exe=* |
--ex=*)
1137 exec_prefix
=$ac_optarg ;;
1139 -gas |
--gas |
--ga |
--g)
1140 # Obsolete; use --with-gas.
1143 -help |
--help |
--hel |
--he |
-h)
1144 ac_init_help
=long
;;
1145 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1146 ac_init_help
=recursive
;;
1147 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1148 ac_init_help
=short
;;
1150 -host |
--host |
--hos |
--ho)
1151 ac_prev
=host_alias
;;
1152 -host=* |
--host=* |
--hos=* |
--ho=*)
1153 host_alias
=$ac_optarg ;;
1155 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1157 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1159 htmldir
=$ac_optarg ;;
1161 -includedir |
--includedir |
--includedi |
--included |
--include \
1162 |
--includ |
--inclu |
--incl |
--inc)
1163 ac_prev
=includedir
;;
1164 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1165 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1166 includedir
=$ac_optarg ;;
1168 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1170 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1171 infodir
=$ac_optarg ;;
1173 -libdir |
--libdir |
--libdi |
--libd)
1175 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1176 libdir
=$ac_optarg ;;
1178 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1179 |
--libexe |
--libex |
--libe)
1180 ac_prev
=libexecdir
;;
1181 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1182 |
--libexe=* |
--libex=* |
--libe=*)
1183 libexecdir
=$ac_optarg ;;
1185 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1186 ac_prev
=localedir
;;
1187 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1188 localedir
=$ac_optarg ;;
1190 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1191 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1192 ac_prev
=localstatedir
;;
1193 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1194 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1195 localstatedir
=$ac_optarg ;;
1197 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1199 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1200 mandir
=$ac_optarg ;;
1202 -nfp |
--nfp |
--nf)
1203 # Obsolete; use --without-fp.
1206 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1207 |
--no-cr |
--no-c |
-n)
1210 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1211 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1214 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1215 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1216 |
--oldin |
--oldi |
--old |
--ol |
--o)
1217 ac_prev
=oldincludedir
;;
1218 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1219 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1220 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1221 oldincludedir
=$ac_optarg ;;
1223 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1225 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1226 prefix
=$ac_optarg ;;
1228 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1229 |
--program-pre |
--program-pr |
--program-p)
1230 ac_prev
=program_prefix
;;
1231 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1232 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1233 program_prefix
=$ac_optarg ;;
1235 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1236 |
--program-suf |
--program-su |
--program-s)
1237 ac_prev
=program_suffix
;;
1238 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1239 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1240 program_suffix
=$ac_optarg ;;
1242 -program-transform-name |
--program-transform-name \
1243 |
--program-transform-nam |
--program-transform-na \
1244 |
--program-transform-n |
--program-transform- \
1245 |
--program-transform |
--program-transfor \
1246 |
--program-transfo |
--program-transf \
1247 |
--program-trans |
--program-tran \
1248 |
--progr-tra |
--program-tr |
--program-t)
1249 ac_prev
=program_transform_name
;;
1250 -program-transform-name=* |
--program-transform-name=* \
1251 |
--program-transform-nam=* |
--program-transform-na=* \
1252 |
--program-transform-n=* |
--program-transform-=* \
1253 |
--program-transform=* |
--program-transfor=* \
1254 |
--program-transfo=* |
--program-transf=* \
1255 |
--program-trans=* |
--program-tran=* \
1256 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1257 program_transform_name
=$ac_optarg ;;
1259 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1261 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1262 pdfdir
=$ac_optarg ;;
1264 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1266 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1269 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1270 |
-silent |
--silent |
--silen |
--sile |
--sil)
1273 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1274 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1275 |
--run |
--ru |
--r)
1276 ac_prev
=runstatedir
;;
1277 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1278 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1279 |
--run=* |
--ru=* |
--r=*)
1280 runstatedir
=$ac_optarg ;;
1282 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1284 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1286 sbindir
=$ac_optarg ;;
1288 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1289 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1290 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1292 ac_prev
=sharedstatedir
;;
1293 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1294 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1295 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1297 sharedstatedir
=$ac_optarg ;;
1299 -site |
--site |
--sit)
1301 -site=* |
--site=* |
--sit=*)
1304 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1306 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1307 srcdir
=$ac_optarg ;;
1309 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1310 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1311 ac_prev
=sysconfdir
;;
1312 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1313 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1314 sysconfdir
=$ac_optarg ;;
1316 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1317 ac_prev
=target_alias
;;
1318 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1319 target_alias
=$ac_optarg ;;
1321 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1324 -version |
--version |
--versio |
--versi |
--vers |
-V)
1325 ac_init_version
=: ;;
1328 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1331 as_fn_error $?
"invalid package name: $ac_useropt"
1332 ac_useropt_orig
=$ac_useropt
1333 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1338 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep
=', ';;
1341 eval with_
$ac_useropt=\
$ac_optarg ;;
1343 -without-* |
--without-*)
1344 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1347 as_fn_error $?
"invalid package name: $ac_useropt"
1348 ac_useropt_orig
=$ac_useropt
1349 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1354 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355 ac_unrecognized_sep
=', ';;
1357 eval with_
$ac_useropt=no
;;
1360 # Obsolete; use --with-x.
1363 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1364 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1365 ac_prev
=x_includes
;;
1366 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1367 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1368 x_includes
=$ac_optarg ;;
1370 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1371 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1372 ac_prev
=x_libraries
;;
1373 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1374 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1375 x_libraries
=$ac_optarg ;;
1377 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1378 Try \`$0 --help' for more information"
1382 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1383 # Reject names that are not valid shell variable names.
1384 case $ac_envvar in #(
1385 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1386 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1388 eval $ac_envvar=\
$ac_optarg
1389 export $ac_envvar ;;
1392 # FIXME: should be removed in autoconf 3.0.
1393 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1395 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1396 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1402 if test -n "$ac_prev"; then
1403 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1404 as_fn_error $?
"missing argument to $ac_option"
1407 if test -n "$ac_unrecognized_opts"; then
1408 case $enable_option_checking in
1410 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1411 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415 # Check all directory arguments for consistency.
1416 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1417 datadir sysconfdir sharedstatedir localstatedir includedir \
1418 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1419 libdir localedir mandir runstatedir
1421 eval ac_val
=\$
$ac_var
1422 # Remove trailing slashes.
1425 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1426 eval $ac_var=\
$ac_val;;
1428 # Be sure to have absolute directory names.
1430 [\\/$
]* | ?
:[\\/]* ) continue;;
1431 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1433 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1436 # There might be people who depend on the old broken behavior: `$host'
1437 # used to hold the argument of --host etc.
1438 # FIXME: To remove some day.
1441 target
=$target_alias
1443 # FIXME: To remove some day.
1444 if test "x$host_alias" != x
; then
1445 if test "x$build_alias" = x
; then
1446 cross_compiling
=maybe
1447 elif test "x$build_alias" != "x$host_alias"; then
1453 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1455 test "$silent" = yes && exec 6>/dev
/null
1458 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1459 ac_ls_di
=`ls -di .` &&
1460 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1461 as_fn_error $?
"working directory cannot be determined"
1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463 as_fn_error $?
"pwd does not report name of working directory"
1466 # Find the source files, if location was not specified.
1467 if test -z "$srcdir"; then
1468 ac_srcdir_defaulted
=yes
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir
=`$as_dirname -- "$as_myself" ||
1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475 $as_echo X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1498 ac_srcdir_defaulted
=no
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1502 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1504 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1508 # When building in place, set srcdir=.
1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
1512 # Remove unnecessary trailing slashes from srcdir.
1513 # Double slashes in file names in object file debugging info
1514 # mess up M-x gdb in Emacs.
1516 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1518 for ac_var
in $ac_precious_vars; do
1519 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1520 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1521 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1522 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1526 # Report the --help message.
1528 if test "$ac_init_help" = "long"; then
1529 # Omit some internal or obsolete options to make the list less imposing.
1530 # This message is too long to be a string in the A/UX 3.1 sh.
1532 \`configure' configures aMule SVN to adapt to many kinds of systems.
1534 Usage: $0 [OPTION]... [VAR=VALUE]...
1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537 VAR=VALUE. See below for descriptions of some of the useful variables.
1539 Defaults for the options are specified in brackets.
1542 -h, --help display this help and exit
1543 --help=short display options specific to this package
1544 --help=recursive display the short help of all the included packages
1545 -V, --version display version information and exit
1546 -q, --quiet, --silent do not print \`checking ...' messages
1547 --cache-file=FILE cache test results in FILE [disabled]
1548 -C, --config-cache alias for \`--cache-file=config.cache'
1549 -n, --no-create do not create output files
1550 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1552 Installation directories:
1553 --prefix=PREFIX install architecture-independent files in PREFIX
1554 [$ac_default_prefix]
1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1558 By default, \`make install' will install all the files in
1559 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1560 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561 for instance \`--prefix=\$HOME'.
1563 For better control, use the options below.
1565 Fine tuning of the installation directories:
1566 --bindir=DIR user executables [EPREFIX/bin]
1567 --sbindir=DIR system admin executables [EPREFIX/sbin]
1568 --libexecdir=DIR program executables [EPREFIX/libexec]
1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1572 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1573 --libdir=DIR object code libraries [EPREFIX/lib]
1574 --includedir=DIR C header files [PREFIX/include]
1575 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1576 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1577 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1578 --infodir=DIR info documentation [DATAROOTDIR/info]
1579 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1580 --mandir=DIR man documentation [DATAROOTDIR/man]
1581 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1582 --htmldir=DIR html documentation [DOCDIR]
1583 --dvidir=DIR dvi documentation [DOCDIR]
1584 --pdfdir=DIR pdf documentation [DOCDIR]
1585 --psdir=DIR ps documentation [DOCDIR]
1591 --program-prefix=PREFIX prepend PREFIX to installed program names
1592 --program-suffix=SUFFIX append SUFFIX to installed program names
1593 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1596 --build=BUILD configure
for building on BUILD
[guessed
]
1597 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1601 if test -n "$ac_init_help"; then
1602 case $ac_init_help in
1603 short | recursive
) echo "Configuration of aMule SVN:";;
1608 --disable-option-checking ignore unrecognized
--enable/--with options
1609 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1610 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1611 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1612 --disable-silent-rules verbose build output
(undo
: "make V=0")
1613 --enable-maintainer-mode
1614 enable make rules and dependencies not useful
(and
1615 sometimes confusing
) to the casual installer
1616 --enable-dependency-tracking
1617 do not reject slow dependency extractors
1618 --disable-dependency-tracking
1619 speeds up one-time build
1620 --disable-monolithic disable building of the monolithic aMule app
1621 --enable-amule-daemon compile aMule daemon version
1622 --enable-amulecmd compile aMule
command line client
1623 --enable-webserver compile aMule WebServer
1624 --enable-amule-gui compile aMule remote GUI
1625 --enable-cas compile C aMule Statistics
1626 --enable-wxcas compile aMule GUI Statistics
1627 --disable-ed2k don
't compile aMule ed2k links handler
1628 --enable-alc compile aMuleLinkCreator GUI version
1629 --enable-alcc compile aMuleLinkCreator for console
1630 --enable-xas install xas XChat2 plugin
1631 --enable-fileview compile aMule file viewer for console
1632 --enable-plasmamule compile aMule plasma applet and engine
1633 --enable-static produce a statically linked executable
1634 --enable-kde-in-home install KDE related stuff in your home dir
1635 --enable-geoip compile with GeoIP IP2Country library
1636 --disable-upnp do not compile UPnP code
1637 --disable-debug disable additional debugging output
1638 --enable-profile enable code profiling
1639 --enable-optimize enable code optimization
1640 --enable-static-boost Prefer the static boost libraries over the shared
1642 --enable-mmap enable using mapped memory if supported
1643 --disable-rpath do not hardcode runtime library paths
1644 --disable-nls do not use Native Language Support
1645 --enable-ccache enable ccache support for fast recompilation
1648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1650 --with-kde4-config=PATH kde4-config script to use
1651 --with-moc=PATH Search in PATH for Qt's meta object compiler
1652 --without-gnu-malloc Don
't assume that we use GNU libc compatible
1653 malloc/realloc when cross-compiling
1654 --with-gdlib-prefix=PREFIX
1655 prefix where gdlib is installed (optional)
1656 --with-gdlib-config=CONFIG
1657 gdlib-config script to use (optional)
1658 --with-zlib=PREFIX use zlib in PREFIX
1659 --with-libpng-prefix=PREFIX
1660 prefix where libpng is installed (optional)
1661 --with-libpng-config=CONFIG
1662 libpng-config script to use (optional)
1663 --with-geoip-headers=DIR
1664 GeoIP include files location
1665 --with-geoip-lib=DIR GeoIP library location
1666 --with-geoip-static Explicitly link GeoIP statically (default=no)
1667 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1668 --with-wx-config=CONFIG wx-config script to use (optional)
1669 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1670 --with-wx-exec-prefix=PREFIX
1671 Exec prefix where wxWidgets is installed (optional)
1672 --with-toolkit Build against a specific wxWidgets toolkit (default
1674 --with-wxshared Force building against a shared build of wxWidgets,
1675 even if --disable-shared is given (default is auto)
1676 --with-wxdebug Force building against a debug build of wxWidgets,
1677 even if --disable-debug is given (default is auto)
1678 --with-wxversion Build against a specific version of wxWidgets
1681 --with-libupnp-prefix=PREFIX
1682 UPnP library location
1683 --with-crypto-prefix=PREFIX
1684 prefix where crypto++ is installed
1685 --with-boost[=DIR] use Boost.Asio for networking
1686 --with-language=<langs> Specify a comma-separated list of languages you want
1687 to have installed. See po/LINGUAS for available
1689 --with-gnu-ld assume the C compiler uses GNU ld default=no
1690 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1691 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1692 --with-included-gettext use the GNU
gettext library included here
1693 --with-libintl-prefix=DIR search
for libintl
in DIR
/include and DIR
/lib
1694 --without-libintl-prefix don
't search for libintl in includedir and libdir
1695 --with-denoise-level=<level>
1696 Specifies denoising level (0-4):
1698 4 - Suppress all normal output
1699 (for more information see
1700 src/utils/scripts/denoiser.rules)
1702 --with-ccache-prefix=PREFIX
1703 prefix where ccache is installed
1705 Some influential environment variables:
1706 CXX C++ compiler command
1707 CXXFLAGS C++ compiler flags
1708 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1709 nonstandard directory <lib dir>
1710 LIBS libraries to pass to the linker, e.g. -l<library>
1711 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1712 you have headers in a nonstandard directory <include dir>
1713 CXXCPP C++ preprocessor
1714 CC C compiler command
1715 CFLAGS C compiler flags
1717 YACC The `Yet Another Compiler Compiler' implementation to use.
1718 Defaults to the first program found out of
: `bison -y', `byacc
',
1720 YFLAGS The list of arguments that will be passed by default to
$YACC.
1721 This
script will default YFLAGS to the empty string to avoid a
1722 default value of
`-d' given by some make applications.
1723 PKG_CONFIG path to pkg-config utility
1724 RC Resource Compiler
1725 RCFLAGS Resource Compiler Flags
1726 BOOST_ROOT Location of Boost installation
1728 Use these variables to override the choices made by `configure
' or to help
1729 it to find libraries and programs with nonstandard names/locations.
1731 Report bugs to <admin@amule.org>.
1736 if test "$ac_init_help" = "recursive"; then
1737 # If there are subdirs, report their specific --help.
1738 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1739 test -d "$ac_dir" ||
1740 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1748 # A ".." for each directory in $ac_dir_suffix.
1749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1750 case $ac_top_builddir_sub in
1751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1755 ac_abs_top_builddir=$ac_pwd
1756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1757 # for backward compatibility:
1758 ac_top_builddir=$ac_top_build_prefix
1761 .) # We are building in place.
1763 ac_top_srcdir=$ac_top_builddir_sub
1764 ac_abs_top_srcdir=$ac_pwd ;;
1765 [\\/]* | ?:[\\/]* ) # Absolute name.
1766 ac_srcdir=$srcdir$ac_dir_suffix;
1767 ac_top_srcdir=$srcdir
1768 ac_abs_top_srcdir=$srcdir ;;
1770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1771 ac_top_srcdir=$ac_top_build_prefix$srcdir
1772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1776 cd "$ac_dir" || { ac_status=$?; continue; }
1777 # Check for guested configure.
1778 if test -f "$ac_srcdir/configure.gnu"; then
1780 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1781 elif test -f "$ac_srcdir/configure"; then
1783 $SHELL "$ac_srcdir/configure" --help=recursive
1785 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1787 cd "$ac_pwd" || { ac_status=$?; break; }
1791 test -n "$ac_init_help" && exit $ac_status
1792 if $ac_init_version; then
1795 generated by GNU Autoconf 2.69
1797 Copyright (C) 2012 Free Software Foundation, Inc.
1798 This configure script is free software; the Free Software Foundation
1799 gives unlimited permission to copy, distribute and modify it.
1804 ## ------------------------ ##
1805 ## Autoconf initialization. ##
1806 ## ------------------------ ##
1808 # ac_fn_cxx_try_compile LINENO
1809 # ----------------------------
1810 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_cxx_try_compile ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext
1815 if { { ac_try="$ac_compile"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^
*+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_cxx_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.$ac_objext; then :
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's
/^
/|
/' conftest.$ac_ext >&5
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_cxx_try_compile
1846 # ac_fn_cxx_try_cpp LINENO
1847 # ------------------------
1848 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_cpp ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_cpp conftest.$ac_ext"
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1861 if test -s conftest.err; then
1862 grep -v '^
*+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } > conftest.i && {
1868 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1869 test ! -s conftest.err
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's
/^
/|
/' conftest.$ac_ext >&5
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_cxx_try_cpp
1883 # ac_fn_c_try_compile LINENO
1884 # --------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^
*+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's
/^
/|
/' conftest.$ac_ext >&5
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_c_try_compile
1921 # ac_fn_c_try_cpp LINENO
1922 # ----------------------
1923 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { { ac_try="$ac_cpp conftest.$ac_ext"
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1936 if test -s conftest.err; then
1937 grep -v '^
*+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } > conftest.i && {
1943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's
/^
/|
/' conftest.$ac_ext >&5
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1974 if test -s conftest.err; then
1975 grep -v '^
*+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 test -x conftest$ac_exeext
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's
/^
/|
/' conftest.$ac_ext >&5
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We
do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status
$ac_retval
2002 } # ac_fn_c_try_link
2004 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2007 # the include files in INCLUDES and setting the cache variable VAR
2009 ac_fn_c_check_header_mongrel
()
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 if eval \
${$3+:} false
; then :
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \
${$3+:} false
; then :
2016 $as_echo_n "(cached) " >&6
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 # Is the header compilable?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2024 $as_echo_n "checking $2 usability... " >&6; }
2025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2031 ac_header_compiler
=yes
2033 ac_header_compiler
=no
2035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2037 $as_echo "$ac_header_compiler" >&6; }
2039 # Is the header present?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2041 $as_echo_n "checking $2 presence... " >&6; }
2042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2046 if ac_fn_c_try_cpp
"$LINENO"; then :
2047 ac_header_preproc
=yes
2049 ac_header_preproc
=no
2051 rm -f conftest.err conftest.i conftest.
$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2053 $as_echo "$ac_header_preproc" >&6; }
2055 # So? What about this header?
2056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2059 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2065 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2067 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2069 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2071 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 ( $as_echo "## ------------------------------ ##
2075 ## Report this to admin@amule.org ##
2076 ## ------------------------------ ##"
2077 ) |
sed "s/^/$as_me: WARNING: /" >&2
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \
${$3+:} false
; then :
2083 $as_echo_n "(cached) " >&6
2085 eval "$3=\$ac_header_compiler"
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 } # ac_fn_c_check_header_mongrel
2095 # ac_fn_c_try_run LINENO
2096 # ----------------------
2097 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2098 # that executables *can* be run.
2101 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2102 if { { ac_try
="$ac_link"
2104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_link") 2>&5
2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2113 { { case "(($ac_try" in
2114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2115 *) ac_try_echo
=$ac_try;;
2117 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119 (eval "$ac_try") 2>&5
2121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2122 test $ac_status = 0; }; }; then :
2125 $as_echo "$as_me: program exited with status $ac_status" >&5
2126 $as_echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.
$ac_ext >&5
2129 ac_retval
=$ac_status
2131 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 as_fn_set_status
$ac_retval
2137 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2138 # -------------------------------------------------------
2139 # Tests whether HEADER exists and can be compiled using the include files in
2140 # INCLUDES, setting the cache variable VAR accordingly.
2141 ac_fn_c_check_header_compile
()
2143 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2145 $as_echo_n "checking for $2... " >&6; }
2146 if eval \
${$3+:} false
; then :
2147 $as_echo_n "(cached) " >&6
2149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2154 if ac_fn_c_try_compile
"$LINENO"; then :
2159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_header_compile
2168 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2169 # -------------------------------------------
2170 # Tests whether TYPE exists after having included INCLUDES, setting cache
2171 # variable VAR accordingly.
2172 ac_fn_c_check_type
()
2174 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if eval \
${$3+:} false
; then :
2178 $as_echo_n "(cached) " >&6
2181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2193 if ac_fn_c_try_compile
"$LINENO"; then :
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2206 if ac_fn_c_try_compile
"$LINENO"; then :
2211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 } # ac_fn_c_check_type
2222 # ac_fn_cxx_try_link LINENO
2223 # -------------------------
2224 # Try to link conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_cxx_try_link
()
2227 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2228 rm -f conftest.
$ac_objext conftest
$ac_exeext
2229 if { { ac_try
="$ac_link"
2231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235 $as_echo "$ac_try_echo"; } >&5
2236 (eval "$ac_link") 2>conftest.err
2238 if test -s conftest.err; then
2239 grep -v '^ *+' conftest.err >conftest.er1
2240 cat conftest.er1 >&5
2241 mv -f conftest.er1 conftest.err
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } && {
2245 test -z "$ac_cxx_werror_flag" ||
2246 test ! -s conftest.err
2247 } && test -s conftest$ac_exeext && {
2248 test "$cross_compiling" = yes ||
2249 test -x conftest$ac_exeext
2253 $as_echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.$ac_ext >&5
2258 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2259 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2260 # interfere with the next link command; also delete a directory that is
2261 # left behind by Apple's compiler. We do this before executing the actions.
2262 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 as_fn_set_status $ac_retval
2266 } # ac_fn_cxx_try_link
2268 # ac_fn_cxx_try_run LINENO
2269 # ------------------------
2270 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2271 # that executables *can* be run.
2272 ac_fn_cxx_try_run ()
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 if { { ac_try="$ac_link"
2277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2278 *) ac_try_echo
=$ac_try;;
2280 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2281 $as_echo "$ac_try_echo"; } >&5
2282 (eval "$ac_link") 2>&5
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2286 { { case "(($ac_try" in
2287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2291 $as_echo "$ac_try_echo"; } >&5
2292 (eval "$ac_try") 2>&5
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; }; }; then :
2298 $as_echo "$as_me: program exited with status $ac_status" >&5
2299 $as_echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2302 ac_retval=$ac_status
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 as_fn_set_status $ac_retval
2308 } # ac_fn_cxx_try_run
2310 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2311 # ---------------------------------------------------------
2312 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2313 # the include files in INCLUDES and setting the cache variable VAR
2315 ac_fn_cxx_check_header_mongrel ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 if eval \${$3+:} false; then :
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2320 $as_echo_n "checking for $2... " >&6; }
2321 if eval \${$3+:} false; then :
2322 $as_echo_n "(cached) " >&6
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2328 # Is the header compilable?
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2330 $as_echo_n "checking $2 usability... " >&6; }
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2336 if ac_fn_cxx_try_compile "$LINENO"; then :
2337 ac_header_compiler=yes
2339 ac_header_compiler=no
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2343 $as_echo "$ac_header_compiler" >&6; }
2345 # Is the header present?
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2347 $as_echo_n "checking $2 presence... " >&6; }
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2352 if ac_fn_cxx_try_cpp "$LINENO"; then :
2353 ac_header_preproc=yes
2355 ac_header_preproc=no
2357 rm -f conftest.err conftest.i conftest.$ac_ext
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2359 $as_echo "$ac_header_preproc" >&6; }
2361 # So? What about this header?
2362 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2365 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2367 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2371 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2373 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2375 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2377 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2379 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2380 ( $as_echo "## ------------------------------ ##
2381 ## Report this to admin@amule.org ##
2382 ## ------------------------------ ##"
2383 ) | sed "s/^/$as_me: WARNING: /" >&2
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387 $as_echo_n "checking for $2... " >&6; }
2388 if eval \${$3+:} false; then :
2389 $as_echo_n "(cached) " >&6
2391 eval "$3=\$ac_header_compiler"
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395 $as_echo "$ac_res" >&6; }
2397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399 } # ac_fn_cxx_check_header_mongrel
2401 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2402 # ---------------------------------------------
2403 # Tests whether TYPE exists after having included INCLUDES, setting cache
2404 # variable VAR accordingly.
2405 ac_fn_cxx_check_type ()
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2409 $as_echo_n "checking for $2... " >&6; }
2410 if eval \${$3+:} false; then :
2411 $as_echo_n "(cached) " >&6
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415 /* end confdefs.h. */
2426 if ac_fn_cxx_try_compile "$LINENO"; then :
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2439 if ac_fn_cxx_try_compile "$LINENO"; then :
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 $as_echo "$ac_res" >&6; }
2451 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2453 } # ac_fn_cxx_check_type
2455 # ac_fn_cxx_check_func LINENO FUNC VAR
2456 # ------------------------------------
2457 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2458 ac_fn_cxx_check_func ()
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if eval \${$3+:} false; then :
2464 $as_echo_n "(cached) " >&6
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2470 #define $2 innocuous_$2
2472 /* System header to define __stub macros and hopefully few prototypes,
2473 which can conflict with char $2 (); below.
2474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 <limits.h> exists even on freestanding compilers. */
2478 # include <limits.h>
2480 # include <assert.h>
2485 /* Override any GCC internal prototype to avoid an error.
2486 Use char because int might match the return type of a GCC
2487 builtin and then its argument prototype would still apply. */
2492 /* The GNU C library defines this for functions which it implements
2493 to always fail with ENOSYS. Some functions are actually named
2494 something starting with __ and the normal name is an alias. */
2495 #if defined __stub_$2 || defined __stub___$2
2507 if ac_fn_cxx_try_link "$LINENO"; then :
2512 rm -f core conftest.err conftest.$ac_objext \
2513 conftest$ac_exeext conftest.$ac_ext
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520 } # ac_fn_cxx_check_func
2522 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2523 # ---------------------------------------------------------
2524 # Tests whether HEADER exists and can be compiled using the include files in
2525 # INCLUDES, setting the cache variable VAR accordingly.
2526 ac_fn_cxx_check_header_compile ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2530 $as_echo_n "checking for $2... " >&6; }
2531 if eval \${$3+:} false; then :
2532 $as_echo_n "(cached) " >&6
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2539 if ac_fn_cxx_try_compile "$LINENO"; then :
2544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548 $as_echo "$ac_res" >&6; }
2549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551 } # ac_fn_cxx_check_header_compile
2553 # ac_fn_c_check_func LINENO FUNC VAR
2554 # ----------------------------------
2555 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2556 ac_fn_c_check_func ()
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2560 $as_echo_n "checking for $2... " >&6; }
2561 if eval \${$3+:} false; then :
2562 $as_echo_n "(cached) " >&6
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2566 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2568 #define $2 innocuous_$2
2570 /* System header to define __stub macros and hopefully few prototypes,
2571 which can conflict with char $2 (); below.
2572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2573 <limits.h> exists even on freestanding compilers. */
2576 # include <limits.h>
2578 # include <assert.h>
2583 /* Override any GCC internal prototype to avoid an error.
2584 Use char because int might match the return type of a GCC
2585 builtin and then its argument prototype would still apply. */
2590 /* The GNU C library defines this for functions which it implements
2591 to always fail with ENOSYS. Some functions are actually named
2592 something starting with __ and the normal name is an alias. */
2593 #if defined __stub_$2 || defined __stub___$2
2605 if ac_fn_c_try_link "$LINENO"; then :
2610 rm -f core conftest.err conftest.$ac_objext \
2611 conftest$ac_exeext conftest.$ac_ext
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615 $as_echo "$ac_res" >&6; }
2616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618 } # ac_fn_c_check_func
2620 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2621 # ---------------------------------------------
2622 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2624 ac_fn_c_check_decl ()
2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2628 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2630 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2631 if eval \${$3+:} false; then :
2632 $as_echo_n "(cached) " >&6
2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h. */
2640 #ifndef $as_decl_name
2642 (void) $as_decl_use;
2644 (void) $as_decl_name;
2652 if ac_fn_c_try_compile "$LINENO"; then :
2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2664 } # ac_fn_c_check_decl
2665 cat >config.log <<_ACEOF
2666 This file contains any messages produced by compilers while
2667 running configure, to aid debugging if configure makes a mistake.
2669 It was created by aMule $as_me SVN, which was
2670 generated by GNU Autoconf 2.69. Invocation command line was
2682 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2683 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2684 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2685 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2686 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2688 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2689 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2691 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2692 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2693 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2694 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2695 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2696 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2697 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 $as_echo "PATH: $as_dir"
2722 # Keep a trace of the command line.
2723 # Strip out --no-create and --no-recursion so they do not pile up.
2724 # Strip out --silent because we don't want to record it for future runs.
2725 # Also quote any args containing shell meta-characters.
2726 # Make two passes to allow for proper duplicate-argument suppression.
2730 ac_must_keep_next=false
2736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2738 | -silent | --silent | --silen | --sile | --sil)
2741 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2744 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2746 as_fn_append ac_configure_args1 " '$ac_arg'"
2747 if test $ac_must_keep_next = true; then
2748 ac_must_keep_next=false # Got value, back to normal.
2751 *=* | --config-cache | -C | -disable-* | --disable-* \
2752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2754 | -with-* | --with-* | -without-* | --without-* | --x)
2755 case "$ac_configure_args0 " in
2756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2759 -* ) ac_must_keep_next=true ;;
2762 as_fn_append ac_configure_args " '$ac_arg'"
2767 { ac_configure_args0=; unset ac_configure_args0;}
2768 { ac_configure_args1=; unset ac_configure_args1;}
2770 # When interrupted or exit'd, cleanup temporary files, and complete
2771 # config.log. We remove comments because anyway the quotes in there
2772 # would cause problems or look ugly.
2773 # WARNING: Use '\'' to represent an apostrophe within the trap.
2774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2775 trap 'exit_status=$?
2776 # Save into config.log some information that might help in debugging.
2780 $as_echo "## ---------------- ##
2781 ## Cache variables. ##
2782 ## ---------------- ##"
2784 # The following way of writing the cache mishandles newlines in values,
2786 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2787 eval ac_val=\$$ac_var
2791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2792 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2795 _ | IFS | as_nl) ;; #(
2796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2797 *) { eval $ac_var=; unset $ac_var;} ;;
2802 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2803 *${as_nl}ac_space=\ *)
2805 "s/'\''/'\''\\\\'\'''\''/g;
2806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2816 $as_echo "## ----------------- ##
2817 ## Output variables. ##
2818 ## ----------------- ##"
2820 for ac_var in $ac_subst_vars
2822 eval ac_val=\$$ac_var
2824 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2826 $as_echo "$ac_var='\''$ac_val'\''"
2830 if test -n "$ac_subst_files"; then
2831 $as_echo "## ------------------- ##
2832 ## File substitutions. ##
2833 ## ------------------- ##"
2835 for ac_var in $ac_subst_files
2837 eval ac_val=\$$ac_var
2839 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2841 $as_echo "$ac_var='\''$ac_val'\''"
2846 if test -s confdefs.h; then
2847 $as_echo "## ----------- ##
2854 test "$ac_signal" != 0 &&
2855 $as_echo "$as_me: caught signal $ac_signal"
2856 $as_echo "$as_me: exit $exit_status"
2858 rm -f core *.core core.conftest.* &&
2859 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2862 for ac_signal in 1 2 13 15; do
2863 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2867 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2868 rm -f -r conftest* confdefs.h
2870 $as_echo "/* confdefs.h */" > confdefs.h
2872 # Predefined preprocessor variables.
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_NAME "$PACKAGE_NAME"
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_STRING "$PACKAGE_STRING"
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_URL "$PACKAGE_URL"
2899 # Let the site file select an alternate cache file if it wants to.
2900 # Prefer an explicitly selected file to automatically selected ones.
2903 if test -n "$CONFIG_SITE"; then
2904 # We do not want a PATH search for config.site.
2905 case $CONFIG_SITE in #((
2906 -*) ac_site_file1=./$CONFIG_SITE;;
2907 */*) ac_site_file1=$CONFIG_SITE;;
2908 *) ac_site_file1=./$CONFIG_SITE;;
2910 elif test "x$prefix" != xNONE; then
2911 ac_site_file1=$prefix/share/config.site
2912 ac_site_file2=$prefix/etc/config.site
2914 ac_site_file1=$ac_default_prefix/share/config.site
2915 ac_site_file2=$ac_default_prefix/etc/config.site
2917 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2919 test "x$ac_site_file" = xNONE && continue
2920 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2922 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2923 sed 's/^/| /' "$ac_site_file" >&5
2925 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2927 as_fn_error $? "failed to load site
script $ac_site_file
2928 See \
`config.log' for more details" "$LINENO" 5; }
2932 if test -r "$cache_file"; then
2933 # Some versions of bash will fail to source /dev/null (special files
2934 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2935 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2937 $as_echo "$as_me: loading cache $cache_file" >&6;}
2939 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2940 *) . "./$cache_file";;
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2945 $as_echo "$as_me: creating cache $cache_file" >&6;}
2949 as_fn_append ac_header_list " stdlib.h"
2950 as_fn_append ac_header_list " unistd.h"
2951 as_fn_append ac_header_list " sys/param.h"
2952 # Check that the precious variables saved in the cache have kept the same
2954 ac_cache_corrupted=false
2955 for ac_var in $ac_precious_vars; do
2956 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2957 eval ac_new_set=\$ac_env_${ac_var}_set
2958 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2959 eval ac_new_val=\$ac_env_${ac_var}_value
2960 case $ac_old_set,$ac_new_set in
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2963 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2964 ac_cache_corrupted=: ;;
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2967 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2968 ac_cache_corrupted=: ;;
2971 if test "x$ac_old_val" != "x$ac_new_val"; then
2972 # differences in whitespace do not lead to failure.
2973 ac_old_val_w=`echo x
$ac_old_val`
2974 ac_new_val_w=`echo x
$ac_new_val`
2975 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2977 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2978 ac_cache_corrupted=:
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2981 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2982 eval $ac_var=\$ac_old_val
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2985 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2987 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2990 # Pass precious variables to config.status.
2991 if test "$ac_new_set" = set; then
2993 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2994 *) ac_arg=$ac_var=$ac_new_val ;;
2996 case " $ac_configure_args " in
2997 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2998 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3002 if $ac_cache_corrupted; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3006 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3007 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3009 ## -------------------- ##
3010 ## Main body of script. ##
3011 ## -------------------- ##
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 am__api_version='1.15'
3023 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3024 if test -f "$ac_dir/install-sh"; then
3026 ac_install_sh="$ac_aux_dir/install-sh -c"
3028 elif test -f "$ac_dir/install.sh"; then
3030 ac_install_sh="$ac_aux_dir/install.sh -c"
3032 elif test -f "$ac_dir/shtool"; then
3034 ac_install_sh="$ac_aux_dir/shtool install -c"
3038 if test -z "$ac_aux_dir"; then
3039 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3042 # These three variables are undocumented and unsupported,
3043 # and are intended to be withdrawn in a future Autoconf release.
3044 # They can cause serious problems if a builder's source tree is in a directory
3045 # whose full name contains unusual characters.
3046 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3047 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3048 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3051 # Find a good install program. We prefer a C program (faster),
3052 # so one script is as good as another. But avoid the broken or
3053 # incompatible versions:
3054 # SysV /etc/install, /usr/sbin/install
3055 # SunOS /usr/etc/install
3056 # IRIX /sbin/install
3058 # AmigaOS /C/install, which installs bootblocks on floppy discs
3059 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3060 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3061 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3062 # OS/2's system install, which has a completely different semantic
3063 # ./install, which can be erroneously created by make from ./install.sh.
3064 # Reject install programs that cannot install multiple files.
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3066 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3067 if test -z "$INSTALL"; then
3068 if ${ac_cv_path_install+:} false; then :
3069 $as_echo_n "(cached) " >&6
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 # Account for people who put trailing slashes in PATH elements.
3077 case $as_dir/ in #((
3078 ./ | .// | /[cC]/* | \
3079 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3080 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3083 # OSF1 and SCO ODT 3.0 have their own names for install.
3084 # Don't use installbsd from OSF since it installs stuff as root
3086 for ac_prog in ginstall scoinst install; do
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3089 if test $ac_prog = install &&
3090 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3091 # AIX install. It has an incompatible calling convention.
3093 elif test $ac_prog = install &&
3094 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095 # program-specific install script used by HP pwplus--don't use.
3098 rm -rf conftest.one conftest.two conftest.dir
3099 echo one > conftest.one
3100 echo two > conftest.two
3102 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3103 test -s conftest.one && test -s conftest.two &&
3104 test -s conftest.dir/conftest.one &&
3105 test -s conftest.dir/conftest.two
3107 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3120 rm -rf conftest.one conftest.two conftest.dir
3123 if test "${ac_cv_path_install+set}" = set; then
3124 INSTALL=$ac_cv_path_install
3126 # As a last resort, use the slow shell script. Don't cache a
3127 # value for INSTALL within a source directory, because that will
3128 # break other packages using the cache if that directory is
3129 # removed, or if the value is a relative name.
3130 INSTALL=$ac_install_sh
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3134 $as_echo "$INSTALL" >&6; }
3136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3137 # It thinks the first close brace ends the variable substitution.
3138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3142 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3145 $as_echo_n "checking whether build environment is sane... " >&6; }
3146 # Reject unsafe characters in $srcdir or the absolute working directory
3147 # name. Accept space and tab only in the latter.
3151 *[\\\"\#\$\&\'\`$am_lf]*)
3152 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3155 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3156 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3159 # Do 'set' in a subshell so we don't clobber the current shell's
3160 # arguments. Must try -L first in case configure is actually a
3161 # symlink; some systems play weird games with the mod time of symlinks
3162 # (eg FreeBSD returns the mod time of the symlink's containing
3166 for am_try
in 1 2; do
3167 echo "timestamp, slept: $am_has_slept" > conftest.
file
3168 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3169 if test "$*" = "X"; then
3171 set X
`ls -t "$srcdir/configure" conftest.file`
3173 if test "$*" != "X $srcdir/configure conftest.file" \
3174 && test "$*" != "X conftest.file $srcdir/configure"; then
3176 # If neither matched, then we have a broken ls. This can happen
3177 # if, for instance, CONFIG_SHELL is bash and it inherits a
3178 # broken ls alias from the environment. This has actually
3179 # happened. Such a system could not be considered "sane".
3180 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3181 alias in your environment" "$LINENO" 5
3183 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3190 test "$2" = conftest.
file
3196 as_fn_error $?
"newly created file is older than distributed files!
3197 Check your system clock" "$LINENO" 5
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3201 # If we didn't sleep, we still need to ensure time stamps of config.status and
3202 # generated files are strictly newer.
3204 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3211 test "$program_prefix" != NONE
&&
3212 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3213 # Use a double $ so make ignores it.
3214 test "$program_suffix" != NONE
&&
3215 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3216 # Double any \ or $.
3217 # By default was `s,x,x', remove it if useless.
3218 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3219 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3221 # Expand $ac_aux_dir to an absolute path.
3222 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3224 if test x
"${MISSING+set}" != xset
; then
3227 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3229 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3232 # Use eval to expand $SHELL
3233 if eval "$MISSING --is-lightweight"; then
3234 am_missing_run
="$MISSING "
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3238 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3241 if test x
"${install_sh+set}" != xset
; then
3244 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3246 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3250 # Installed binaries are usually stripped using 'strip' when the user
3251 # run "make install-strip". However 'strip' might not be the right
3252 # tool to use in cross-compilation environments, therefore Automake
3253 # will honor the 'STRIP' environment variable to overrule this program.
3254 if test "$cross_compiling" != no
; then
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3257 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_STRIP+:} false
; then :
3261 $as_echo_n "(cached) " >&6
3263 if test -n "$STRIP"; then
3264 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir
=.
3271 for ac_exec_ext
in '' $ac_executable_extensions; do
3272 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 STRIP
=$ac_cv_prog_STRIP
3284 if test -n "$STRIP"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3286 $as_echo "$STRIP" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3294 if test -z "$ac_cv_prog_STRIP"; then
3296 # Extract the first word of "strip", so it can be a program name with args.
3297 set dummy strip
; ac_word
=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3301 $as_echo_n "(cached) " >&6
3303 if test -n "$ac_ct_STRIP"; then
3304 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3310 test -z "$as_dir" && as_dir
=.
3311 for ac_exec_ext
in '' $ac_executable_extensions; do
3312 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3313 ac_cv_prog_ac_ct_STRIP
="strip"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3324 if test -n "$ac_ct_STRIP"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3326 $as_echo "$ac_ct_STRIP" >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3332 if test "x$ac_ct_STRIP" = x
; then
3335 case $cross_compiling:$ac_tool_warned in
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339 ac_tool_warned
=yes ;;
3344 STRIP
="$ac_cv_prog_STRIP"
3348 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3351 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3352 if test -z "$MKDIR_P"; then
3353 if ${ac_cv_path_mkdir+:} false
; then :
3354 $as_echo_n "(cached) " >&6
3356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3357 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3360 test -z "$as_dir" && as_dir
=.
3361 for ac_prog
in mkdir gmkdir
; do
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3364 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3365 'mkdir (GNU coreutils) '* | \
3366 'mkdir (coreutils) '* | \
3367 'mkdir (fileutils) '4.1*)
3368 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3378 test -d .
/--version && rmdir .
/--version
3379 if test "${ac_cv_path_mkdir+set}" = set; then
3380 MKDIR_P
="$ac_cv_path_mkdir -p"
3382 # As a last resort, use the slow shell script. Don't cache a
3383 # value for MKDIR_P within a source directory, because that will
3384 # break other packages using the cache if that directory is
3385 # removed, or if the value is a relative name.
3386 MKDIR_P
="$ac_install_sh -d"
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3390 $as_echo "$MKDIR_P" >&6; }
3392 for ac_prog
in gawk mawk nawk
awk
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy
$ac_prog; ac_word
=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_AWK+:} false
; then :
3399 $as_echo_n "(cached) " >&6
3401 if test -n "$AWK"; then
3402 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir
=.
3409 for ac_exec_ext
in '' $ac_executable_extensions; do
3410 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3411 ac_cv_prog_AWK
="$ac_prog"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 if test -n "$AWK"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3424 $as_echo "$AWK" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 test -n "$AWK" && break
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3435 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3437 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3438 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3439 $as_echo_n "(cached) " >&6
3441 cat >conftest.
make <<\_ACEOF
3444 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3446 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3447 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3449 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3451 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3455 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3457 $as_echo "yes" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 SET_MAKE
="MAKE=${MAKE-make}"
3465 rm -rf .tst
2>/dev
/null
3466 mkdir .tst
2>/dev
/null
3467 if test -d .tst
; then
3472 rmdir .tst
2>/dev
/null
3474 # Check whether --enable-silent-rules was given.
3475 if test "${enable_silent_rules+set}" = set; then :
3476 enableval
=$enable_silent_rules;
3479 case $enable_silent_rules in # (((
3480 yes) AM_DEFAULT_VERBOSITY
=0;;
3481 no
) AM_DEFAULT_VERBOSITY
=1;;
3482 *) AM_DEFAULT_VERBOSITY
=1;;
3484 am_make
=${MAKE-make}
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3486 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3487 if ${am_cv_make_support_nested_variables+:} false
; then :
3488 $as_echo_n "(cached) " >&6
3490 if $as_echo 'TRUE=$(BAR$(V))
3496 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3497 am_cv_make_support_nested_variables
=yes
3499 am_cv_make_support_nested_variables
=no
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3503 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3504 if test $am_cv_make_support_nested_variables = yes; then
3506 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3508 AM_V
=$AM_DEFAULT_VERBOSITY
3509 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3513 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3514 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3515 # is not polluted with repeated "-I."
3516 am__isrc
=' -I$(srcdir)'
3517 # test to see if srcdir already configured
3518 if test -f $srcdir/config.status
; then
3519 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3523 # test whether we have cygpath
3524 if test -z "$CYGPATH_W"; then
3525 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3526 CYGPATH_W
='cygpath -w'
3533 # Define the identity of the package.
3538 cat >>confdefs.h
<<_ACEOF
3539 #define PACKAGE "$PACKAGE"
3543 cat >>confdefs.h
<<_ACEOF
3544 #define VERSION "$VERSION"
3547 # Some tools Automake needs.
3549 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3552 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3555 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3558 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3561 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3563 # For better backward compatibility. To be removed once Automake 1.9.x
3564 # dies out for good. For more background, see:
3565 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3566 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3567 mkdir_p
='$(MKDIR_P)'
3569 # We need awk for the "check" target (and possibly the TAP driver). The
3570 # system "awk" is bad on some platforms.
3571 # Always define AMTAR for backward compatibility. Yes, it's still used
3572 # in the wild :-( We should find a proper way to deprecate it ...
3576 # We'll loop over all known methods to create a tar archive until one works.
3577 _am_tools
='gnutar pax cpio none'
3579 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3586 # POSIX will say in a future version that running "rm -f" with no argument
3587 # is OK; and we want to be able to make that assumption in our Makefile
3588 # recipes. So use an aggressive probe to check that the usage we want is
3589 # actually supported "in the wild" to an acceptable degree.
3590 # See automake bug#10828.
3591 # To make any issue more visible, cause the running configure to be aborted
3592 # by default if the 'rm' program in use doesn't match our expectations; the
3593 # user can still override this though.
3594 if rm -f && rm -fr && rm -rf; then : OK
; else
3598 Your 'rm' program seems unable to run without file operands specified
3599 on the command line, even when the '-f' option is present. This is contrary
3600 to the behaviour of most rm programs out there, and not conforming with
3601 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3603 Please tell bug-automake@gnu.org about your system, including the value
3604 of your $PATH and any error possibly output before this message. This
3605 can help us improve future automake versions.
3608 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3609 echo 'Configuration will proceed anyway, since you have set the' >&2
3610 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3614 Aborting the configuration process, to ensure you take notice of the issue.
3616 You can download and install GNU coreutils to get an 'rm' implementation
3617 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3619 If you want to complete the configuration process using your problematic
3620 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3621 to "yes", and re-run configure.
3624 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3628 # Check whether --enable-silent-rules was given.
3629 if test "${enable_silent_rules+set}" = set; then :
3630 enableval
=$enable_silent_rules;
3633 case $enable_silent_rules in # (((
3634 yes) AM_DEFAULT_VERBOSITY
=0;;
3635 no
) AM_DEFAULT_VERBOSITY
=1;;
3636 *) AM_DEFAULT_VERBOSITY
=1;;
3638 am_make
=${MAKE-make}
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3640 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3641 if ${am_cv_make_support_nested_variables+:} false
; then :
3642 $as_echo_n "(cached) " >&6
3644 if $as_echo 'TRUE=$(BAR$(V))
3650 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3651 am_cv_make_support_nested_variables
=yes
3653 am_cv_make_support_nested_variables
=no
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3657 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3658 if test $am_cv_make_support_nested_variables = yes; then
3660 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3662 AM_V
=$AM_DEFAULT_VERBOSITY
3663 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3671 ac_config_headers="$ac_config_headers config.h"
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3676 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3677 # Check whether --enable-maintainer-mode was given.
3678 if test "${enable_maintainer_mode+set}" = set; then :
3679 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3681 USE_MAINTAINER_MODE=no
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3685 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3686 if test $USE_MAINTAINER_MODE = yes; then
3687 MAINTAINER_MODE_TRUE=
3688 MAINTAINER_MODE_FALSE='#'
3690 MAINTAINER_MODE_TRUE
='#'
3691 MAINTAINER_MODE_FALSE
=
3694 MAINT
=$MAINTAINER_MODE_TRUE
3698 # Make sure we can run config.sub.
3699 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3700 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3703 $as_echo_n "checking build system type... " >&6; }
3704 if ${ac_cv_build+:} false
; then :
3705 $as_echo_n "(cached) " >&6
3707 ac_build_alias
=$build_alias
3708 test "x$ac_build_alias" = x
&&
3709 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3710 test "x$ac_build_alias" = x
&&
3711 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3712 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3713 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3717 $as_echo "$ac_cv_build" >&6; }
3718 case $ac_cv_build in
3720 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3723 ac_save_IFS
=$IFS; IFS
='-'
3729 # Remember, the first character of IFS is used to create $*,
3730 # except with old shells:
3733 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3737 $as_echo_n "checking host system type... " >&6; }
3738 if ${ac_cv_host+:} false
; then :
3739 $as_echo_n "(cached) " >&6
3741 if test "x$host_alias" = x
; then
3742 ac_cv_host
=$ac_cv_build
3744 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3745 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3750 $as_echo "$ac_cv_host" >&6; }
3753 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3756 ac_save_IFS
=$IFS; IFS
='-'
3762 # Remember, the first character of IFS is used to create $*,
3763 # except with old shells:
3766 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3770 case "${host_os}" in
3773 MULECPPFLAGS
="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3774 MULELDFLAGS
="-bind_at_load"
3775 touch src
/Scanner.cpp
3779 LIBS
="$LIBS -L/usr/local/lib"
3780 MULECPPFLAGS
="-D__OPENBSD__"
3782 *cygwin
* |
*mingw32
*)
3784 MULECPPFLAGS
="-DNOMINMAX"
3788 RESOLV_LIB
="-lresolv -lnsl"
3793 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3794 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3795 # Still, we prepend them, instead of adding, so the user may override them.
3796 CPPFLAGS
="-I/usr/pkg/include $CPPFLAGS"
3797 LDFLAGS
="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3801 MULECPPFLAGS
="-D__IRIX__"
3808 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3809 if test ${SYS:-unknown} != win32
; then :
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3812 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3813 if test x
"`uname -s`" = xFreeBSD
&& test 0`uname -r | cut -c 1` -lt 5; then :
3815 MULELDFLAGS
="$MULELDFLAGS -pthread"
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3817 $as_echo "yes" >&6; }
3821 MULELDFLAGS
="$MULELDFLAGS -lpthread"
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3831 mule_backup_CFLAGS
="$CFLAGS"
3832 mule_backup_CXXFLAGS
="$CXXFLAGS"
3833 mule_backup_BUILD_CFLAGS
="$BUILD_CFLAGS"
3835 ac_cpp
='$CXXCPP $CPPFLAGS'
3836 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3839 if test -z "$CXX"; then
3840 if test -n "$CCC"; then
3843 if test -n "$ac_tool_prefix"; then
3844 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3847 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 $as_echo_n "checking for $ac_word... " >&6; }
3850 if ${ac_cv_prog_CXX+:} false
; then :
3851 $as_echo_n "(cached) " >&6
3853 if test -n "$CXX"; then
3854 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir
=.
3861 for ac_exec_ext
in '' $ac_executable_extensions; do
3862 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3863 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 if test -n "$CXX"; then
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3876 $as_echo "$CXX" >&6; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3883 test -n "$CXX" && break
3886 if test -z "$CXX"; then
3888 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3890 # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy
$ac_prog; ac_word
=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3895 $as_echo_n "(cached) " >&6
3897 if test -n "$ac_ct_CXX"; then
3898 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3904 test -z "$as_dir" && as_dir
=.
3905 for ac_exec_ext
in '' $ac_executable_extensions; do
3906 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3907 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3918 if test -n "$ac_ct_CXX"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3920 $as_echo "$ac_ct_CXX" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3927 test -n "$ac_ct_CXX" && break
3930 if test "x$ac_ct_CXX" = x
; then
3933 case $cross_compiling:$ac_tool_warned in
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned
=yes ;;
3945 # Provide some information about the compiler.
3946 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3949 for ac_option
in --version -v -V -qversion; do
3950 { { ac_try
="$ac_compiler $ac_option >&5"
3952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3959 if test -s conftest.err; then
3961 ... rest of stderr output deleted ...
3962 10q' conftest.err >conftest.er1
3963 cat conftest.er1 >&5
3965 rm -f conftest.er1 conftest.err
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3981 ac_clean_files_save=$ac_clean_files
3982 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3983 # Try to create an executable without -o first, disregard a.out.
3984 # It will help us diagnose broken compilers, and finding out an intuition
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3987 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3988 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3990 # The possible output files:
3991 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3994 for ac_file in $ac_files
3997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3998 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4003 if { { ac_try="$ac_link_default"
4005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4006 *) ac_try_echo
=$ac_try;;
4008 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_link_default") 2>&5
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; then :
4014 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4015 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4016 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4017 # so that the user can short-circuit this test for compilers unknown to
4019 for ac_file
in $ac_files ''
4021 test -f "$ac_file" ||
continue
4023 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4026 # We found the default executable, but exeext='' is most
4030 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4032 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4034 # We set ac_cv_exeext here because the later test for it is not
4035 # safe: cross compilers may not add the suffix if given an `-o'
4036 # argument, so we may need to know it at that point already.
4037 # Even if this section looks crufty: it has the advantage of
4044 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4049 if test -z "$ac_file"; then :
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 $as_echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.
$ac_ext >&5
4055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4057 as_fn_error
77 "C++ compiler cannot create executables
4058 See \`config.log' for more details" "$LINENO" 5; }
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4061 $as_echo "yes" >&6; }
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4064 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4066 $as_echo "$ac_file" >&6; }
4067 ac_exeext
=$ac_cv_exeext
4069 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4070 ac_clean_files
=$ac_clean_files_save
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4072 $as_echo_n "checking for suffix of executables... " >&6; }
4073 if { { ac_try
="$ac_link"
4075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079 $as_echo "$ac_try_echo"; } >&5
4080 (eval "$ac_link") 2>&5
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }; then :
4084 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4085 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4086 # work properly (i.e., refer to `conftest.exe'), while it won't with
4088 for ac_file
in conftest.exe conftest conftest.
*; do
4089 test -f "$ac_file" ||
continue
4091 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4092 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4100 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4101 See \`config.log' for more details" "$LINENO" 5; }
4103 rm -f conftest conftest
$ac_cv_exeext
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4105 $as_echo "$ac_cv_exeext" >&6; }
4107 rm -f conftest.
$ac_ext
4108 EXEEXT
=$ac_cv_exeext
4110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4116 FILE *f = fopen ("conftest.out", "w");
4117 return ferror (f) || fclose (f) != 0;
4123 ac_clean_files
="$ac_clean_files conftest.out"
4124 # Check that the compiler produces executables we can run. If not, either
4125 # the compiler is broken, or we cross compile.
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4127 $as_echo_n "checking whether we are cross compiling... " >&6; }
4128 if test "$cross_compiling" != yes; then
4129 { { ac_try
="$ac_link"
4131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_link") 2>&5
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }
4140 if { ac_try='./conftest$ac_cv_exeext'
4141 { { case "(($ac_try" in
4142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4143 *) ac_try_echo
=$ac_try;;
4145 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146 $as_echo "$ac_try_echo"; } >&5
4147 (eval "$ac_try") 2>&5
4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150 test $ac_status = 0; }; }; then
4153 if test "$cross_compiling" = maybe
; then
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error $?
"cannot run C++ compiled programs.
4159 If you meant to cross compile, use \`--host'.
4160 See \`config.log' for more details" "$LINENO" 5; }
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4165 $as_echo "$cross_compiling" >&6; }
4167 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4168 ac_clean_files
=$ac_clean_files_save
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4170 $as_echo_n "checking for suffix of object files... " >&6; }
4171 if ${ac_cv_objext+:} false
; then :
4172 $as_echo_n "(cached) " >&6
4174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4185 rm -f conftest.o conftest.obj
4186 if { { ac_try
="$ac_compile"
4188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4192 $as_echo "$ac_try_echo"; } >&5
4193 (eval "$ac_compile") 2>&5
4195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4196 test $ac_status = 0; }; then :
4197 for ac_file in conftest.o conftest.obj conftest.*; do
4198 test -f "$ac_file" || continue;
4200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4201 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4206 $as_echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4211 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4212 See \
`config.log' for more details" "$LINENO" 5; }
4214 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4217 $as_echo "$ac_cv_objext" >&6; }
4218 OBJEXT=$ac_cv_objext
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4221 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4222 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4223 $as_echo_n "(cached) " >&6
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4239 if ac_fn_cxx_try_compile "$LINENO"; then :
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4249 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4250 if test $ac_compiler_gnu = yes; then
4255 ac_test_CXXFLAGS=${CXXFLAGS+set}
4256 ac_save_CXXFLAGS=$CXXFLAGS
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4258 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4259 if ${ac_cv_prog_cxx_g+:} false; then :
4260 $as_echo_n "(cached) " >&6
4262 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4263 ac_cxx_werror_flag=yes
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4278 ac_cv_prog_cxx_g=yes
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4292 if ac_fn_cxx_try_compile "$LINENO"; then :
4295 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4308 if ac_fn_cxx_try_compile "$LINENO"; then :
4309 ac_cv_prog_cxx_g=yes
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4319 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4320 if test "$ac_test_CXXFLAGS" = set; then
4321 CXXFLAGS=$ac_save_CXXFLAGS
4322 elif test $ac_cv_prog_cxx_g = yes; then
4323 if test "$GXX" = yes; then
4329 if test "$GXX" = yes; then
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340 DEPDIR="${am__leading_dot}deps"
4342 ac_config_commands="$ac_config_commands depfiles"
4345 am_make=${MAKE-make}
4346 cat > confinc << 'END'
4348 @echo this is the am__doit target
4351 # If we don't find an include directive, just comment out the code.
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4353 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4357 # First try GNU make style include.
4358 echo "include confinc" > confmf
4359 # Ignore all kinds of additional output from 'make'.
4360 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4361 *the\ am__doit\ target*)
4367 # Now try BSD make style include.
4368 if test "$am__include" = "#"; then
4369 echo '.include "confinc"' > confmf
4370 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4371 *the\ am__doit\ target*)
4372 am__include=.include
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4381 $as_echo "$_am_result" >&6; }
4382 rm -f confinc confmf
4384 # Check whether --enable-dependency-tracking was given.
4385 if test "${enable_dependency_tracking+set}" = set; then :
4386 enableval=$enable_dependency_tracking;
4389 if test "x$enable_dependency_tracking" != xno; then
4390 am_depcomp="$ac_aux_dir/depcomp"
4394 if test "x$enable_dependency_tracking" != xno; then
4404 depcc="$CXX" am_compiler_list=
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4407 $as_echo_n "checking dependency style of $depcc... " >&6; }
4408 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4409 $as_echo_n "(cached) " >&6
4411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4412 # We make a subdir and do the tests there. Otherwise we can end up
4413 # making bogus files that we don't know about and never remove. For
4414 # instance it was reported that on HP-UX the gcc test will end up
4415 # making a dummy file named 'D' -- because '-MD' means "put the output
4419 # Copy depcomp to subdir because otherwise we won't find it if we're
4420 # using a relative directory.
4421 cp "$am_depcomp" conftest.dir
4423 # We will build objects and dependencies in a subdirectory because
4424 # it helps to detect inapplicable dependency modes. For instance
4425 # both Tru64's cc and ICC support -MD to output dependencies as a
4426 # side effect of compilation, but ICC will put the dependencies in
4427 # the current directory while Tru64 will put them in the object
4431 am_cv_CXX_dependencies_compiler_type=none
4432 if test "$am_compiler_list" = ""; then
4433 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4436 case " $depcc " in #(
4437 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4440 for depmode in $am_compiler_list; do
4441 # Setup a source with many dependencies, because some compilers
4442 # like to wrap large dependency lists on column 80 (with \), and
4443 # we should not choose a depcomp mode which is confused by this.
4445 # We need to recreate these files for each test, as the compiler may
4446 # overwrite some of them when testing with obscure command lines.
4447 # This happens at least with the AIX C compiler.
4449 for i in 1 2 3 4 5 6; do
4450 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4451 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4452 # Solaris 10 /bin/sh.
4453 echo '/* dummy */' > sub/conftst$i.h
4455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4457 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4458 # mode. It turns out that the SunPro C++ compiler does not properly
4459 # handle '-M -o', and we need to detect this. Also, some Intel
4460 # versions had trouble with output in subdirs.
4461 am__obj=sub/conftest.${OBJEXT-o}
4462 am__minus_obj="-o $am__obj"
4465 # This depmode causes a compiler race in universal mode.
4466 test "$am__universal" = false || continue
4469 # After this tag, mechanisms are not by side-effect, so they'll
4470 # only be used when explicitly requested.
4471 if test "x$enable_dependency_tracking" = xyes; then
4477 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4478 # This compiler won't grok '-c -o', but also, the minuso test has
4479 # not run yet. These depmodes are late enough in the game, and
4480 # so weak that their functioning should not be impacted.
4481 am__obj=conftest.${OBJEXT-o}
4486 if depmode=$depmode \
4487 source=sub/conftest.c object=$am__obj \
4488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4489 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4490 >/dev/null 2>conftest.err &&
4491 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4492 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4493 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4494 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4495 # icc doesn't choke on unknown options, it will just issue warnings
4496 # or remarks (even with -Werror). So we grep stderr for any message
4497 # that says an option was ignored or not supported.
4498 # When given -MP, icc 7.0 and 7.1 complain thusly:
4499 # icc: Command line warning: ignoring option '-M'; no argument required
4500 # The diagnosis changed in icc 8.0:
4501 # icc: Command line remark: option '-MP' not supported
4502 if (grep 'ignoring option' conftest.err ||
4503 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4504 am_cv_CXX_dependencies_compiler_type=$depmode
4513 am_cv_CXX_dependencies_compiler_type=none
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4518 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4519 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4522 test "x$enable_dependency_tracking" != xno \
4523 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4524 am__fastdepCXX_TRUE=
4525 am__fastdepCXX_FALSE='#'
4527 am__fastdepCXX_TRUE='#'
4528 am__fastdepCXX_FALSE=
4533 ac_cpp='$CXXCPP $CPPFLAGS'
4534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4538 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4539 if test -z "$CXXCPP"; then
4540 if ${ac_cv_prog_CXXCPP+:} false; then :
4541 $as_echo_n "(cached) " >&6
4543 # Double quotes because CXXCPP needs to be expanded
4544 for CXXCPP in "$CXX -E" "/lib/cpp"
4547 for ac_cxx_preproc_warn_flag in '' yes
4549 # Use a header file that comes with gcc, so configuring glibc
4550 # with a fresh cross-compiler works.
4551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4552 # <limits.h> exists even on freestanding compilers.
4553 # On the NeXT, cc -E runs the code through the compiler's parser,
4554 # not just through cpp. "Syntax error" is here to catch this case.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4558 # include <limits.h>
4560 # include <assert.h>
4564 if ac_fn_cxx_try_cpp "$LINENO"; then :
4567 # Broken: fails on valid input.
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4572 # OK, works on sane cases. Now check whether nonexistent headers
4573 # can be detected and how.
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <ac_nonexistent.h>
4578 if ac_fn_cxx_try_cpp "$LINENO"; then :
4579 # Broken: success on invalid input.
4582 # Passes both tests.
4586 rm -f conftest.err conftest.i conftest.$ac_ext
4589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4590 rm -f conftest.i conftest.err conftest.
$ac_ext
4591 if $ac_preproc_ok; then :
4596 ac_cv_prog_CXXCPP
=$CXXCPP
4599 CXXCPP
=$ac_cv_prog_CXXCPP
4601 ac_cv_prog_CXXCPP
=$CXXCPP
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4604 $as_echo "$CXXCPP" >&6; }
4606 for ac_cxx_preproc_warn_flag
in '' yes
4608 # Use a header file that comes with gcc, so configuring glibc
4609 # with a fresh cross-compiler works.
4610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4611 # <limits.h> exists even on freestanding compilers.
4612 # On the NeXT, cc -E runs the code through the compiler's parser,
4613 # not just through cpp. "Syntax error" is here to catch this case.
4614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4617 # include <limits.h>
4619 # include <assert.h>
4623 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4626 # Broken: fails on valid input.
4629 rm -f conftest.err conftest.i conftest.
$ac_ext
4631 # OK, works on sane cases. Now check whether nonexistent headers
4632 # can be detected and how.
4633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 #include <ac_nonexistent.h>
4637 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4638 # Broken: success on invalid input.
4641 # Passes both tests.
4645 rm -f conftest.err conftest.i conftest.
$ac_ext
4648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4649 rm -f conftest.i conftest.err conftest.
$ac_ext
4650 if $ac_preproc_ok; then :
4653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4655 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
4656 See \`config.log' for more details" "$LINENO" 5; }
4660 ac_cpp
='$CPP $CPPFLAGS'
4661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4666 ac_cpp
='$CPP $CPPFLAGS'
4667 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4672 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_CC+:} false
; then :
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC
="$CC" # Let the user override the test.
4681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir
=.
4686 for ac_exec_ext
in '' $ac_executable_extensions; do
4687 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 if test -n "$CC"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701 $as_echo "$CC" >&6; }
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4709 if test -z "$ac_cv_prog_CC"; then
4711 # Extract the first word of "gcc", so it can be a program name with args.
4712 set dummy gcc
; ac_word
=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -n "$ac_ct_CC"; then
4719 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir
=.
4726 for ac_exec_ext
in '' $ac_executable_extensions; do
4727 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_ac_ct_CC
="gcc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4739 if test -n "$ac_ct_CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4741 $as_echo "$ac_ct_CC" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4747 if test "x$ac_ct_CC" = x
; then
4750 case $cross_compiling:$ac_tool_warned in
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned
=yes ;;
4762 if test -z "$CC"; then
4763 if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4765 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_CC+:} false
; then :
4769 $as_echo_n "(cached) " >&6
4771 if test -n "$CC"; then
4772 ac_cv_prog_CC
="$CC" # Let the user override the test.
4774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir
=.
4779 for ac_exec_ext
in '' $ac_executable_extensions; do
4780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 if test -n "$CC"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4794 $as_echo "$CC" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4803 if test -z "$CC"; then
4804 # Extract the first word of "cc", so it can be a program name with args.
4805 set dummy cc
; ac_word
=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_CC+:} false
; then :
4809 $as_echo_n "(cached) " >&6
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC
="$CC" # Let the user override the test.
4815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir
=.
4820 for ac_exec_ext
in '' $ac_executable_extensions; do
4821 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4823 ac_prog_rejected
=yes
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 if test $ac_prog_rejected = yes; then
4835 # We found a bogon in the path, so make sure we never use it.
4836 set dummy
$ac_cv_prog_CC
4838 if test $# != 0; then
4839 # We chose a different compiler from the bogus one.
4840 # However, it has the same basename, so the bogon will be chosen
4841 # first if we set CC to just the basename; use the full file name.
4843 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4849 if test -n "$CC"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 $as_echo "$CC" >&6; }
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4859 if test -z "$CC"; then
4860 if test -n "$ac_tool_prefix"; then
4861 for ac_prog
in cl.exe
4863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4864 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_CC+:} false
; then :
4868 $as_echo_n "(cached) " >&6
4870 if test -n "$CC"; then
4871 ac_cv_prog_CC
="$CC" # Let the user override the test.
4873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir
=.
4878 for ac_exec_ext
in '' $ac_executable_extensions; do
4879 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 if test -n "$CC"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4893 $as_echo "$CC" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4900 test -n "$CC" && break
4903 if test -z "$CC"; then
4905 for ac_prog
in cl.exe
4907 # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy
$ac_prog; ac_word
=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -n "$ac_ct_CC"; then
4915 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir
=.
4922 for ac_exec_ext
in '' $ac_executable_extensions; do
4923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_ac_ct_CC
="$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4935 if test -n "$ac_ct_CC"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4937 $as_echo "$ac_ct_CC" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4944 test -n "$ac_ct_CC" && break
4947 if test "x$ac_ct_CC" = x
; then
4950 case $cross_compiling:$ac_tool_warned in
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954 ac_tool_warned
=yes ;;
4963 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965 as_fn_error $?
"no acceptable C compiler found in \$PATH
4966 See \`config.log' for more details" "$LINENO" 5; }
4968 # Provide some information about the compiler.
4969 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4972 for ac_option
in --version -v -V -qversion; do
4973 { { ac_try
="$ac_compiler $ac_option >&5"
4975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4982 if test -s conftest.err; then
4984 ... rest of stderr output deleted ...
4985 10q' conftest.err >conftest.er1
4986 cat conftest.er1 >&5
4988 rm -f conftest.er1 conftest.err
4989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4994 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4995 if ${ac_cv_c_compiler_gnu+:} false; then :
4996 $as_echo_n "(cached) " >&6
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5012 if ac_fn_c_try_compile "$LINENO"; then :
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5023 if test $ac_compiler_gnu = yes; then
5028 ac_test_CFLAGS=${CFLAGS+set}
5029 ac_save_CFLAGS=$CFLAGS
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5032 if ${ac_cv_prog_cc_g+:} false; then :
5033 $as_echo_n "(cached) " >&6
5035 ac_save_c_werror_flag=$ac_c_werror_flag
5036 ac_c_werror_flag=yes
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5050 if ac_fn_c_try_compile "$LINENO"; then :
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5065 if ac_fn_c_try_compile "$LINENO"; then :
5068 ac_c_werror_flag=$ac_save_c_werror_flag
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5081 if ac_fn_c_try_compile "$LINENO"; then :
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 ac_c_werror_flag=$ac_save_c_werror_flag
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5092 $as_echo "$ac_cv_prog_cc_g" >&6; }
5093 if test "$ac_test_CFLAGS" = set; then
5094 CFLAGS=$ac_save_CFLAGS
5095 elif test $ac_cv_prog_cc_g = yes; then
5096 if test "$GCC" = yes; then
5102 if test "$GCC" = yes; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5109 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5110 if ${ac_cv_prog_cc_c89+:} false; then :
5111 $as_echo_n "(cached) " >&6
5113 ac_cv_prog_cc_c89=no
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5121 struct buf { int x; };
5122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5123 static char *e (p, i)
5129 static char *f (char * (*g) (char **, int), char **p, ...)
5134 s = g (p, va_arg (v,int));
5139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5140 function prototypes and stuff, but not '\xHH' hex character constants.
5141 These don't provoke an error unfortunately, instead are silently treated
5142 as 'x'. The following induces an error, until -std is added to get
5143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5144 array size at least. It's necessary to write '\x00'==0 to get something
5145 that's true only with -std. */
5146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5149 inside strings and character constants. */
5151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5153 int test (int i, double x);
5154 struct s1 {int (*f) (int a);};
5155 struct s2 {int (*f) (double a);};
5156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5170 CC="$ac_save_CC $ac_arg"
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 ac_cv_prog_cc_c89=$ac_arg
5174 rm -f core conftest.err conftest.$ac_objext
5175 test "x$ac_cv_prog_cc_c89" != "xno" && break
5177 rm -f conftest.$ac_ext
5182 case "x$ac_cv_prog_cc_c89" in
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5185 $as_echo "none needed" >&6; } ;;
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5188 $as_echo "unsupported" >&6; } ;;
5190 CC="$CC $ac_cv_prog_cc_c89"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5194 if test "x$ac_cv_prog_cc_c89" != xno; then :
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5210 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5211 if ${am_cv_prog_cc_c_o+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5225 # Make sure it works both with $CC and with simple cc.
5226 # Following AC_PROG_CC_C_O, we do the test twice because some
5227 # compilers refuse to overwrite an existing .o file with -o,
5228 # though they will create one.
5229 am_cv_prog_cc_c_o=yes
5231 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5232 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } \
5236 && test -f conftest2.$ac_objext; then
5239 am_cv_prog_cc_c_o=no
5243 rm -f core conftest*
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5247 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5248 if test "$am_cv_prog_cc_c_o" != yes; then
5249 # Losing compiler, so override with the script.
5250 # FIXME: It is wrong to rewrite CC.
5251 # But if we don't then we get into trouble of one sort or another.
5252 # A longer-term fix would be to have automake use am__CC in this case,
5253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5254 CC="$am_aux_dir/compile $CC"
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263 depcc="$CC" am_compiler_list=
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5266 $as_echo_n "checking dependency style of $depcc... " >&6; }
5267 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5268 $as_echo_n "(cached) " >&6
5270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5271 # We make a subdir and do the tests there. Otherwise we can end up
5272 # making bogus files that we don't know about and never remove. For
5273 # instance it was reported that on HP-UX the gcc test will end up
5274 # making a dummy file named 'D' -- because '-MD' means "put the output
5278 # Copy depcomp to subdir because otherwise we won't find it if we're
5279 # using a relative directory.
5280 cp "$am_depcomp" conftest.dir
5282 # We will build objects and dependencies in a subdirectory because
5283 # it helps to detect inapplicable dependency modes. For instance
5284 # both Tru64's cc and ICC support -MD to output dependencies as a
5285 # side effect of compilation, but ICC will put the dependencies in
5286 # the current directory while Tru64 will put them in the object
5290 am_cv_CC_dependencies_compiler_type=none
5291 if test "$am_compiler_list" = ""; then
5292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5295 case " $depcc " in #(
5296 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5299 for depmode in $am_compiler_list; do
5300 # Setup a source with many dependencies, because some compilers
5301 # like to wrap large dependency lists on column 80 (with \), and
5302 # we should not choose a depcomp mode which is confused by this.
5304 # We need to recreate these files for each test, as the compiler may
5305 # overwrite some of them when testing with obscure command lines.
5306 # This happens at least with the AIX C compiler.
5308 for i in 1 2 3 4 5 6; do
5309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5310 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5311 # Solaris 10 /bin/sh.
5312 echo '/* dummy */' > sub/conftst$i.h
5314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5316 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5317 # mode. It turns out that the SunPro C++ compiler does not properly
5318 # handle '-M -o', and we need to detect this. Also, some Intel
5319 # versions had trouble with output in subdirs.
5320 am__obj=sub/conftest.${OBJEXT-o}
5321 am__minus_obj="-o $am__obj"
5324 # This depmode causes a compiler race in universal mode.
5325 test "$am__universal" = false || continue
5328 # After this tag, mechanisms are not by side-effect, so they'll
5329 # only be used when explicitly requested.
5330 if test "x$enable_dependency_tracking" = xyes; then
5336 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5337 # This compiler won't grok '-c -o', but also, the minuso test has
5338 # not run yet. These depmodes are late enough in the game, and
5339 # so weak that their functioning should not be impacted.
5340 am__obj=conftest.${OBJEXT-o}
5345 if depmode=$depmode \
5346 source=sub/conftest.c object=$am__obj \
5347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5349 >/dev/null 2>conftest.err &&
5350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5354 # icc doesn't choke on unknown options, it will just issue warnings
5355 # or remarks (even with -Werror). So we grep stderr for any message
5356 # that says an option was ignored or not supported.
5357 # When given -MP, icc 7.0 and 7.1 complain thusly:
5358 # icc: Command line warning: ignoring option '-M'; no argument required
5359 # The diagnosis changed in icc 8.0:
5360 # icc: Command line remark: option '-MP' not supported
5361 if (grep 'ignoring option' conftest.err ||
5362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5363 am_cv_CC_dependencies_compiler_type=$depmode
5372 am_cv_CC_dependencies_compiler_type=none
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5377 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5378 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5381 test "x$enable_dependency_tracking" != xno \
5382 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5384 am__fastdepCC_FALSE='#'
5386 am__fastdepCC_TRUE='#'
5387 am__fastdepCC_FALSE=
5392 ac_cpp='$CPP $CPPFLAGS'
5393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5397 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5398 # On Suns, sometimes $CPP names a directory.
5399 if test -n "$CPP" && test -d "$CPP"; then
5402 if test -z "$CPP"; then
5403 if ${ac_cv_prog_CPP+:} false; then :
5404 $as_echo_n "(cached) " >&6
5406 # Double quotes because CPP needs to be expanded
5407 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5410 for ac_c_preproc_warn_flag in '' yes
5412 # Use a header file that comes with gcc, so configuring glibc
5413 # with a fresh cross-compiler works.
5414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5415 # <limits.h> exists even on freestanding compilers.
5416 # On the NeXT, cc -E runs the code through the compiler's parser,
5417 # not just through cpp. "Syntax error" is here to catch this case.
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5421 # include <limits.h>
5423 # include <assert.h>
5427 if ac_fn_c_try_cpp "$LINENO"; then :
5430 # Broken: fails on valid input.
5433 rm -f conftest.err conftest.i conftest.$ac_ext
5435 # OK, works on sane cases. Now check whether nonexistent headers
5436 # can be detected and how.
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 #include <ac_nonexistent.h>
5441 if ac_fn_c_try_cpp "$LINENO"; then :
5442 # Broken: success on invalid input.
5445 # Passes both tests.
5449 rm -f conftest.err conftest.i conftest.$ac_ext
5452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5453 rm -f conftest.i conftest.err conftest.
$ac_ext
5454 if $ac_preproc_ok; then :
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5467 $as_echo "$CPP" >&6; }
5469 for ac_c_preproc_warn_flag
in '' yes
5471 # Use a header file that comes with gcc, so configuring glibc
5472 # with a fresh cross-compiler works.
5473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5474 # <limits.h> exists even on freestanding compilers.
5475 # On the NeXT, cc -E runs the code through the compiler's parser,
5476 # not just through cpp. "Syntax error" is here to catch this case.
5477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5480 # include <limits.h>
5482 # include <assert.h>
5486 if ac_fn_c_try_cpp
"$LINENO"; then :
5489 # Broken: fails on valid input.
5492 rm -f conftest.err conftest.i conftest.
$ac_ext
5494 # OK, works on sane cases. Now check whether nonexistent headers
5495 # can be detected and how.
5496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 #include <ac_nonexistent.h>
5500 if ac_fn_c_try_cpp
"$LINENO"; then :
5501 # Broken: success on invalid input.
5504 # Passes both tests.
5508 rm -f conftest.err conftest.i conftest.
$ac_ext
5511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5512 rm -f conftest.i conftest.err conftest.
$ac_ext
5513 if $ac_preproc_ok; then :
5516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5518 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5519 See \`config.log' for more details" "$LINENO" 5; }
5523 ac_cpp
='$CPP $CPPFLAGS'
5524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5529 test -n "$build_alias" && ac_build_prefix
=$build_alias-
5531 if test "$cross_compiling" = yes; then :
5533 # Even if we're cross-compiling, we want a compiler here
5534 # that is not a cross-compiler.
5535 saved_cross
=$cross_compiling
5539 ac_cpp
='$CPP $BUILD_CPPFLAGS'
5540 ac_compile
='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link
='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5542 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5543 if test -n "$ac_build_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5545 set dummy
${ac_build_prefix}gcc
; 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 ${ac_cv_prog_BUILD_CC+:} false
; 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 as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
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; }
5582 if test -z "$ac_cv_prog_BUILD_CC"; then
5583 ac_ct_BUILD_CC
=$BUILD_CC
5584 # Extract the first word of "gcc", so it can be a program name with args.
5585 set dummy gcc
; ac_word
=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false
; then :
5589 $as_echo_n "(cached) " >&6
5591 if test -n "$ac_ct_BUILD_CC"; then
5592 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir
=.
5599 for ac_exec_ext
in '' $ac_executable_extensions; do
5600 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_ac_ct_BUILD_CC
="gcc"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5612 if test -n "$ac_ct_BUILD_CC"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5614 $as_echo "$ac_ct_BUILD_CC" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5620 if test "x$ac_ct_BUILD_CC" = x
; then
5623 case $cross_compiling:$ac_tool_warned in
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned
=yes ;;
5629 BUILD_CC
=$ac_ct_BUILD_CC
5632 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5635 if test -z "$BUILD_CC"; then
5636 if test -n "$ac_build_prefix"; then
5637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5638 set dummy
${ac_build_prefix}cc
; ac_word
=$2
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if ${ac_cv_prog_BUILD_CC+:} false
; then :
5642 $as_echo_n "(cached) " >&6
5644 if test -n "$BUILD_CC"; then
5645 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5647 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5651 test -z "$as_dir" && as_dir
=.
5652 for ac_exec_ext
in '' $ac_executable_extensions; do
5653 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5654 ac_cv_prog_BUILD_CC
="${ac_build_prefix}cc"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 BUILD_CC
=$ac_cv_prog_BUILD_CC
5665 if test -n "$BUILD_CC"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5667 $as_echo "$BUILD_CC" >&6; }
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5675 if test -z "$ac_cv_prog_BUILD_CC"; then
5676 ac_ct_BUILD_CC
=$BUILD_CC
5677 # Extract the first word of "cc", so it can be a program name with args.
5678 set dummy cc
; ac_word
=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false
; then :
5682 $as_echo_n "(cached) " >&6
5684 if test -n "$ac_ct_BUILD_CC"; then
5685 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5691 test -z "$as_dir" && as_dir
=.
5692 for ac_exec_ext
in '' $ac_executable_extensions; do
5693 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_ac_ct_BUILD_CC
="cc"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5705 if test -n "$ac_ct_BUILD_CC"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5707 $as_echo "$ac_ct_BUILD_CC" >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5713 if test "x$ac_ct_BUILD_CC" = x
; then
5716 case $cross_compiling:$ac_tool_warned in
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5720 ac_tool_warned
=yes ;;
5722 BUILD_CC
=$ac_ct_BUILD_CC
5725 BUILD_CC
="$ac_cv_prog_BUILD_CC"
5729 if test -z "$BUILD_CC"; then
5730 # Extract the first word of "cc", so it can be a program name with args.
5731 set dummy cc
; ac_word
=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_BUILD_CC+:} false
; then :
5735 $as_echo_n "(cached) " >&6
5737 if test -n "$BUILD_CC"; then
5738 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir
=.
5746 for ac_exec_ext
in '' $ac_executable_extensions; do
5747 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5749 ac_prog_rejected
=yes
5752 ac_cv_prog_BUILD_CC
="cc"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 if test $ac_prog_rejected = yes; then
5761 # We found a bogon in the path, so make sure we never use it.
5762 set dummy
$ac_cv_prog_BUILD_CC
5764 if test $# != 0; then
5765 # We chose a different compiler from the bogus one.
5766 # However, it has the same basename, so the bogon will be chosen
5767 # first if we set BUILD_CC to just the basename; use the full file name.
5769 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
5774 BUILD_CC
=$ac_cv_prog_BUILD_CC
5775 if test -n "$BUILD_CC"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5777 $as_echo "$BUILD_CC" >&6; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5785 if test -z "$BUILD_CC"; then
5786 if test -n "$ac_build_prefix"; then
5789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5790 set dummy
$ac_build_prefix$ac_prog; ac_word
=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_BUILD_CC+:} false
; then :
5794 $as_echo_n "(cached) " >&6
5796 if test -n "$BUILD_CC"; then
5797 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
5799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir
=.
5804 for ac_exec_ext
in '' $ac_executable_extensions; do
5805 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_BUILD_CC
="$ac_build_prefix$ac_prog"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 BUILD_CC
=$ac_cv_prog_BUILD_CC
5817 if test -n "$BUILD_CC"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5819 $as_echo "$BUILD_CC" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5826 test -n "$BUILD_CC" && break
5829 if test -z "$BUILD_CC"; then
5830 ac_ct_BUILD_CC
=$BUILD_CC
5833 # Extract the first word of "$ac_prog", so it can be a program name with args.
5834 set dummy
$ac_prog; ac_word
=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false
; then :
5838 $as_echo_n "(cached) " >&6
5840 if test -n "$ac_ct_BUILD_CC"; then
5841 ac_cv_prog_ac_ct_BUILD_CC
="$ac_ct_BUILD_CC" # Let the user override the test.
5843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir
=.
5848 for ac_exec_ext
in '' $ac_executable_extensions; do
5849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_ac_ct_BUILD_CC
="$ac_prog"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 ac_ct_BUILD_CC
=$ac_cv_prog_ac_ct_BUILD_CC
5861 if test -n "$ac_ct_BUILD_CC"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5863 $as_echo "$ac_ct_BUILD_CC" >&6; }
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5870 test -n "$ac_ct_BUILD_CC" && break
5873 if test "x$ac_ct_BUILD_CC" = x
; then
5876 case $cross_compiling:$ac_tool_warned in
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880 ac_tool_warned
=yes ;;
5882 BUILD_CC
=$ac_ct_BUILD_CC
5889 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5891 as_fn_error $?
"no acceptable C compiler found in \$PATH
5892 See \`config.log' for more details" "$LINENO" 5; }
5894 # Provide some information about the compiler.
5895 echo "$as_me:$LINENO:" \
5896 "checking for C compiler version" >&5
5897 ac_compiler
=`set X $ac_compile; echo $2`
5898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5899 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
5901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5902 test $ac_status = 0; }
5903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5904 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; }
5908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5909 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; }
5914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5925 ac_clean_files_save
=$ac_clean_files
5926 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5927 # Try to create an executable without -o first, disregard a.out.
5928 # It will help us diagnose broken compilers, and finding out an intuition
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5931 $as_echo_n "checking whether the C compiler works... " >&6; }
5932 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5934 # The possible output files:
5935 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5938 for ac_file
in $ac_files
5941 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5942 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
5947 if { { ac_try
="$ac_link_default"
5949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5953 $as_echo "$ac_try_echo"; } >&5
5954 (eval "$ac_link_default") 2>&5
5956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5957 test $ac_status = 0; }; then :
5958 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
5959 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
5960 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5961 # so that the user can short-circuit this test for compilers unknown to
5963 for ac_file in $ac_files ''
5965 test -f "$ac_file" || continue
5967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5970 # We found the default executable, but exeext='' is most
5974 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5976 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5978 # We set ac_cv_exeext here because the later test for it is not
5979 # safe: cross compilers may not add the suffix if given an `-o'
5980 # argument, so we may need to know it at that point already.
5981 # Even if this section looks crufty: it has the advantage of
5988 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5993 if test -z "$ac_file"; then :
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5996 $as_echo "$as_me: failed program was:" >&5
5997 sed 's
/^
/|
/' conftest.$ac_ext >&5
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
6001 as_fn_error 77 "C compiler cannot create executables
6002 See \`config.log
' for more details" "$LINENO" 5; }
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6005 $as_echo "yes" >&6; }
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6008 $as_echo_n "checking for C compiler default output file name... " >&6; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6010 $as_echo "$ac_file" >&6; }
6011 ac_build_exeext=$ac_cv_build_exeext
6013 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
6014 ac_clean_files=$ac_clean_files_save
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6016 $as_echo_n "checking for suffix of executables... " >&6; }
6017 if { { ac_try="$ac_link"
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6023 $as_echo "$ac_try_echo"; } >&5
6024 (eval "$ac_link") 2>&5
6026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027 test $ac_status = 0; }; then :
6028 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
6029 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
6030 # work properly (i.e., refer to `conftest.exe
'), while it won't with
6032 for ac_file
in conftest.exe conftest conftest.
*; do
6033 test -f "$ac_file" ||
continue
6035 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
6036 *.
* ) ac_cv_build_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
6042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6044 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
6045 See \`config.log' for more details" "$LINENO" 5; }
6047 rm -f conftest conftest
$ac_cv_build_exeext
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
6049 $as_echo "$ac_cv_build_exeext" >&6; }
6051 rm -f conftest.
$ac_ext
6052 BUILD_EXEEXT
=$ac_cv_build_exeext
6053 ac_build_exeext
=$BUILD_EXEEXT
6054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6060 FILE *f = fopen ("conftest.out", "w");
6061 return ferror (f) || fclose (f) != 0;
6067 ac_clean_files
="$ac_clean_files conftest.out"
6068 # Check that the compiler produces executables we can run. If not, either
6069 # the compiler is broken, or we cross compile.
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6071 $as_echo_n "checking whether we are cross compiling... " >&6; }
6072 if test "$cross_compiling" != yes; then
6073 { { ac_try
="$ac_link"
6075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6079 $as_echo "$ac_try_echo"; } >&5
6080 (eval "$ac_link") 2>&5
6082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083 test $ac_status = 0; }
6084 if { ac_try='./conftest$ac_cv_build_exeext'
6085 { { case "(($ac_try" in
6086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6087 *) ac_try_echo
=$ac_try;;
6089 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6090 $as_echo "$ac_try_echo"; } >&5
6091 (eval "$ac_try") 2>&5
6093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6094 test $ac_status = 0; }; }; then
6097 if test "$cross_compiling" = maybe
; then
6100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6102 as_fn_error $?
"cannot run C compiled programs.
6103 If you meant to cross compile, use \`--host'.
6104 See \`config.log' for more details" "$LINENO" 5; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6109 $as_echo "$cross_compiling" >&6; }
6111 rm -f conftest.
$ac_ext conftest
$ac_cv_build_exeext conftest.out
6112 ac_clean_files
=$ac_clean_files_save
6115 # Restore configuration environment
6116 cross_compiling
=$saved_cross
6119 ac_cpp
='$CPP $CPPFLAGS'
6120 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6121 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6122 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6125 BUILD_CC
="$CC" ; BUILD_EXEEXT
=$EXEEXT
6127 CFLAGS
="$mule_backup_CFLAGS"
6128 CXXFLAGS
="$mule_backup_CXXFLAGS"
6129 BUILD_CFLAGS
="$mule_backup_BUILD_CFLAGS"
6130 for ac_prog
in gawk mawk nawk
awk
6132 # Extract the first word of "$ac_prog", so it can be a program name with args.
6133 set dummy
$ac_prog; ac_word
=$2
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135 $as_echo_n "checking for $ac_word... " >&6; }
6136 if ${ac_cv_prog_AWK+:} false
; then :
6137 $as_echo_n "(cached) " >&6
6139 if test -n "$AWK"; then
6140 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir
=.
6147 for ac_exec_ext
in '' $ac_executable_extensions; do
6148 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6149 ac_cv_prog_AWK
="$ac_prog"
6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 if test -n "$AWK"; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6162 $as_echo "$AWK" >&6; }
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165 $as_echo "no" >&6; }
6169 test -n "$AWK" && break
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6173 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6174 if ${ac_cv_path_GREP+:} false
; then :
6175 $as_echo_n "(cached) " >&6
6177 if test -z "$GREP"; then
6178 ac_path_GREP_found
=false
6179 # Loop through the user's path and test for each of PROGNAME-LIST
6180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6181 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6184 test -z "$as_dir" && as_dir
=.
6185 for ac_prog
in grep ggrep
; do
6186 for ac_exec_ext
in '' $ac_executable_extensions; do
6187 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6188 as_fn_executable_p
"$ac_path_GREP" ||
continue
6189 # Check for GNU ac_path_GREP and select it if it is found.
6190 # Check for GNU $ac_path_GREP
6191 case `"$ac_path_GREP" --version 2>&1` in
6193 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6196 $as_echo_n 0123456789 >"conftest.in"
6199 cat "conftest.in" "conftest.in" >"conftest.tmp"
6200 mv "conftest.tmp" "conftest.in"
6201 cp "conftest.in" "conftest.nl"
6202 $as_echo 'GREP' >> "conftest.nl"
6203 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6204 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6205 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6206 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6207 # Best one so far, save it but keep looking for a better one
6208 ac_cv_path_GREP
="$ac_path_GREP"
6209 ac_path_GREP_max
=$ac_count
6211 # 10*(2^10) chars as input seems more than enough
6212 test $ac_count -gt 10 && break
6214 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6217 $ac_path_GREP_found && break 3
6222 if test -z "$ac_cv_path_GREP"; then
6223 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6226 ac_cv_path_GREP
=$GREP
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6231 $as_echo "$ac_cv_path_GREP" >&6; }
6232 GREP
="$ac_cv_path_GREP"
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6236 $as_echo_n "checking for egrep... " >&6; }
6237 if ${ac_cv_path_EGREP+:} false
; then :
6238 $as_echo_n "(cached) " >&6
6240 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6241 then ac_cv_path_EGREP
="$GREP -E"
6243 if test -z "$EGREP"; then
6244 ac_path_EGREP_found
=false
6245 # Loop through the user's path and test for each of PROGNAME-LIST
6246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6247 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6250 test -z "$as_dir" && as_dir
=.
6251 for ac_prog
in egrep; do
6252 for ac_exec_ext
in '' $ac_executable_extensions; do
6253 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6254 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6255 # Check for GNU ac_path_EGREP and select it if it is found.
6256 # Check for GNU $ac_path_EGREP
6257 case `"$ac_path_EGREP" --version 2>&1` in
6259 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6262 $as_echo_n 0123456789 >"conftest.in"
6265 cat "conftest.in" "conftest.in" >"conftest.tmp"
6266 mv "conftest.tmp" "conftest.in"
6267 cp "conftest.in" "conftest.nl"
6268 $as_echo 'EGREP' >> "conftest.nl"
6269 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6270 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6271 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6272 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6273 # Best one so far, save it but keep looking for a better one
6274 ac_cv_path_EGREP
="$ac_path_EGREP"
6275 ac_path_EGREP_max
=$ac_count
6277 # 10*(2^10) chars as input seems more than enough
6278 test $ac_count -gt 10 && break
6280 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6283 $ac_path_EGREP_found && break 3
6288 if test -z "$ac_cv_path_EGREP"; then
6289 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6292 ac_cv_path_EGREP
=$EGREP
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6298 $as_echo "$ac_cv_path_EGREP" >&6; }
6299 EGREP
="$ac_cv_path_EGREP"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6303 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6305 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6306 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
6307 $as_echo_n "(cached) " >&6
6309 cat >conftest.
make <<\_ACEOF
6312 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6314 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6315 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6317 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6319 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6323 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6325 $as_echo "yes" >&6; }
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6330 SET_MAKE
="MAKE=${MAKE-make}"
6334 for ac_prog
in flex
lex
6336 # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy
$ac_prog; ac_word
=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_LEX+:} false
; then :
6341 $as_echo_n "(cached) " >&6
6343 if test -n "$LEX"; then
6344 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
6346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir
=.
6351 for ac_exec_ext
in '' $ac_executable_extensions; do
6352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_LEX
="$ac_prog"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 if test -n "$LEX"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6366 $as_echo "$LEX" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6373 test -n "$LEX" && break
6375 test -n "$LEX" || LEX
=":"
6377 if test "x$LEX" != "x:"; then
6378 cat >conftest.l
<<_ACEOF
6384 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
6385 yyless ((input () != 0)); }
6386 f { unput (yytext[0]); }
6387 . { BEGIN INITIAL; }
6389 #ifdef YYTEXT_POINTER
6390 extern char *yytext;
6395 return ! yylex () + ! yywrap ();
6398 { { ac_try
="$LEX conftest.l"
6400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6404 $as_echo "$ac_try_echo"; } >&5
6405 (eval "$LEX conftest.l") 2>&5
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6410 $as_echo_n "checking lex output file root... " >&6; }
6411 if ${ac_cv_prog_lex_root+:} false; then :
6412 $as_echo_n "(cached) " >&6
6415 if test -f lex.yy.c; then
6416 ac_cv_prog_lex_root=lex.yy
6417 elif test -f lexyy.c; then
6418 ac_cv_prog_lex_root=lexyy
6420 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6424 $as_echo "$ac_cv_prog_lex_root" >&6; }
6425 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6427 if test -z "${LEXLIB+set}"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6429 $as_echo_n "checking lex library... " >&6; }
6430 if ${ac_cv_lib_lex+:} false; then :
6431 $as_echo_n "(cached) " >&6
6435 ac_cv_lib_lex='none needed'
6436 for ac_lib in '' -lfl -ll; do
6437 LIBS="$ac_lib $ac_save_LIBS"
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440 `cat $LEX_OUTPUT_ROOT.c
`
6442 if ac_fn_c_try_link "$LINENO"; then :
6443 ac_cv_lib_lex=$ac_lib
6445 rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext
6447 test "$ac_cv_lib_lex" != 'none needed' && break
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6453 $as_echo "$ac_cv_lib_lex" >&6; }
6454 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6459 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6460 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 # POSIX says lex can declare yytext either as a pointer or an array; the
6464 # default is implementation-dependent. Figure out which it is, since
6465 # not all implementations provide the %pointer and %array declarations.
6466 ac_cv_prog_lex_yytext_pointer=no
6468 LIBS="$LEXLIB $ac_save_LIBS"
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6472 #define YYTEXT_POINTER 1
6473 `cat $LEX_OUTPUT_ROOT.c
`
6475 if ac_fn_c_try_link "$LINENO"; then :
6476 ac_cv_prog_lex_yytext_pointer=yes
6478 rm -f core conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6484 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6485 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6487 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6490 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6494 if test -n "$ac_tool_prefix"; then
6495 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6496 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_RANLIB+:} false; then :
6500 $as_echo_n "(cached) " >&6
6502 if test -n "$RANLIB"; then
6503 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 RANLIB=$ac_cv_prog_RANLIB
6523 if test -n "$RANLIB"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6525 $as_echo "$RANLIB" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6533 if test -z "$ac_cv_prog_RANLIB"; then
6534 ac_ct_RANLIB=$RANLIB
6535 # Extract the first word of "ranlib", so it can be a program name with args.
6536 set dummy ranlib; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6540 $as_echo_n "(cached) " >&6
6542 if test -n "$ac_ct_RANLIB"; then
6543 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552 ac_cv_prog_ac_ct_RANLIB="ranlib"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6563 if test -n "$ac_ct_RANLIB"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6565 $as_echo "$ac_ct_RANLIB" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6571 if test "x$ac_ct_RANLIB" = x; then
6574 case $cross_compiling:$ac_tool_warned in
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578 ac_tool_warned=yes ;;
6580 RANLIB=$ac_ct_RANLIB
6583 RANLIB="$ac_cv_prog_RANLIB"
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6587 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6588 if ${ac_cv_path_SED+:} false; then :
6589 $as_echo_n "(cached) " >&6
6591 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6592 for ac_i in 1 2 3 4 5 6 7; do
6593 ac_script="$ac_script$as_nl$ac_script"
6595 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6596 { ac_script=; unset ac_script;}
6597 if test -z "$SED"; then
6598 ac_path_SED_found=false
6599 # Loop through the user's path and test for each of PROGNAME-LIST
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 test -z "$as_dir" && as_dir=.
6605 for ac_prog in sed gsed; do
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6608 as_fn_executable_p "$ac_path_SED" || continue
6609 # Check for GNU ac_path_SED and select it if it is found.
6610 # Check for GNU $ac_path_SED
6611 case `"$ac_path_SED" --version 2>&1` in
6613 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6616 $as_echo_n 0123456789 >"conftest.in"
6619 cat "conftest.in" "conftest.in" >"conftest.tmp"
6620 mv "conftest.tmp" "conftest.in"
6621 cp "conftest.in" "conftest.nl"
6622 $as_echo '' >> "conftest.nl"
6623 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6625 as_fn_arith $ac_count + 1 && ac_count=$as_val
6626 if test $ac_count -gt ${ac_path_SED_max-0}; then
6627 # Best one so far, save it but keep looking for a better one
6628 ac_cv_path_SED="$ac_path_SED"
6629 ac_path_SED_max=$ac_count
6631 # 10*(2^10) chars as input seems more than enough
6632 test $ac_count -gt 10 && break
6634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6637 $ac_path_SED_found && break 3
6642 if test -z "$ac_cv_path_SED"; then
6643 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6651 $as_echo "$ac_cv_path_SED" >&6; }
6652 SED="$ac_cv_path_SED"
6655 for ac_prog in 'bison -y' byacc
6657 # Extract the first word of "$ac_prog", so it can be a program name with args.
6658 set dummy $ac_prog; ac_word=$2
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if ${ac_cv_prog_YACC+:} false; then :
6662 $as_echo_n "(cached) " >&6
6664 if test -n "$YACC"; then
6665 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674 ac_cv_prog_YACC="$ac_prog"
6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 YACC=$ac_cv_prog_YACC
6685 if test -n "$YACC"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6687 $as_echo "$YACC" >&6; }
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6694 test -n "$YACC" && break
6696 test -n "$YACC" || YACC="yacc"
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_RANLIB+:} false; then :
6705 $as_echo_n "(cached) " >&6
6707 if test -n "$RANLIB"; then
6708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6717 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 RANLIB=$ac_cv_prog_RANLIB
6728 if test -n "$RANLIB"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6730 $as_echo "$RANLIB" >&6; }
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6738 if test -z "$ac_cv_prog_RANLIB"; then
6739 ac_ct_RANLIB=$RANLIB
6740 # Extract the first word of "ranlib", so it can be a program name with args.
6741 set dummy ranlib; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6745 $as_echo_n "(cached) " >&6
6747 if test -n "$ac_ct_RANLIB"; then
6748 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_ac_ct_RANLIB="ranlib"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6768 if test -n "$ac_ct_RANLIB"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6770 $as_echo "$ac_ct_RANLIB" >&6; }
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6776 if test "x$ac_ct_RANLIB" = x; then
6779 case $cross_compiling:$ac_tool_warned in
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6785 RANLIB=$ac_ct_RANLIB
6788 RANLIB="$ac_cv_prog_RANLIB"
6791 if test -n "$ac_tool_prefix"; then
6792 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}strip; ac_word=$2
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6795 $as_echo_n "checking for $ac_word... " >&6; }
6796 if ${ac_cv_prog_STRIP+:} false; then :
6797 $as_echo_n "(cached) " >&6
6799 if test -n "$STRIP"; then
6800 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 test -z "$as_dir" && as_dir=.
6807 for ac_exec_ext in '' $ac_executable_extensions; do
6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6809 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 STRIP=$ac_cv_prog_STRIP
6820 if test -n "$STRIP"; then
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6822 $as_echo "$STRIP" >&6; }
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6825 $as_echo "no" >&6; }
6830 if test -z "$ac_cv_prog_STRIP"; then
6832 # Extract the first word of "strip", so it can be a program name with args.
6833 set dummy strip; ac_word=$2
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 $as_echo_n "checking for $ac_word... " >&6; }
6836 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6837 $as_echo_n "(cached) " >&6
6839 if test -n "$ac_ct_STRIP"; then
6840 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6849 ac_cv_prog_ac_ct_STRIP="strip"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6860 if test -n "$ac_ct_STRIP"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6862 $as_echo "$ac_ct_STRIP" >&6; }
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6868 if test "x$ac_ct_STRIP" = x; then
6871 case $cross_compiling:$ac_tool_warned in
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6875 ac_tool_warned=yes ;;
6880 STRIP="$ac_cv_prog_STRIP"
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}ar; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_AR+:} false; then :
6889 $as_echo_n "(cached) " >&6
6891 if test -n "$AR"; then
6892 ac_cv_prog_AR="$AR" # Let the user override the test.
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_AR="${ac_tool_prefix}ar"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 if test -n "$AR"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6914 $as_echo "$AR" >&6; }
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6922 if test -z "$ac_cv_prog_AR"; then
6924 # Extract the first word of "ar", so it can be a program name with args.
6925 set dummy ar; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6929 $as_echo_n "(cached) " >&6
6931 if test -n "$ac_ct_AR"; then
6932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_ac_ct_AR="ar"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6952 if test -n "$ac_ct_AR"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6954 $as_echo "$ac_ct_AR" >&6; }
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 if test "x$ac_ct_AR" = x; then
6963 case $cross_compiling:$ac_tool_warned in
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6975 if test -n "$ac_tool_prefix"; then
6976 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6977 set dummy ${ac_tool_prefix}ld; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_LD+:} false; then :
6981 $as_echo_n "(cached) " >&6
6983 if test -n "$LD"; then
6984 ac_cv_prog_LD="$LD" # Let the user override the test.
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_LD="${ac_tool_prefix}ld"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 if test -n "$LD"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7006 $as_echo "$LD" >&6; }
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7014 if test -z "$ac_cv_prog_LD"; then
7016 # Extract the first word of "ld", so it can be a program name with args.
7017 set dummy ld; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_prog_ac_ct_LD+:} false; then :
7021 $as_echo_n "(cached) " >&6
7023 if test -n "$ac_ct_LD"; then
7024 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7033 ac_cv_prog_ac_ct_LD="ld"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 ac_ct_LD=$ac_cv_prog_ac_ct_LD
7044 if test -n "$ac_ct_LD"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
7046 $as_echo "$ac_ct_LD" >&6; }
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7052 if test "x$ac_ct_LD" = x; then
7055 case $cross_compiling:$ac_tool_warned in
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059 ac_tool_warned=yes ;;
7068 # Check whether --enable-monolithic was given.
7069 if test "${enable_monolithic+set}" = set; then :
7070 enableval=$enable_monolithic;
7073 if test ${enable_monolithic:-yes} = yes; then
7075 MONOLITHIC_FALSE='#'
7082 # Check whether --enable-amule-daemon was given.
7083 if test "${enable_amule_daemon+set}" = set; then :
7084 enableval=$enable_amule_daemon;
7087 if test ${enable_amule_daemon:-no} = yes; then
7089 AMULE_DAEMON_FALSE='#'
7091 AMULE_DAEMON_TRUE='#'
7096 # Check whether --enable-amulecmd was given.
7097 if test "${enable_amulecmd+set}" = set; then :
7098 enableval=$enable_amulecmd;
7101 if test ${enable_amulecmd:-no} = yes; then
7103 COMPILE_CMD_FALSE='#'
7105 COMPILE_CMD_TRUE='#'
7110 # Check whether --enable-webserver was given.
7111 if test "${enable_webserver+set}" = set; then :
7112 enableval=$enable_webserver;
7115 if test ${enable_webserver:-no} = yes; then
7124 # Check whether --enable-amule-gui was given.
7125 if test "${enable_amule_gui+set}" = set; then :
7126 enableval=$enable_amule_gui;
7129 if test ${enable_amule_gui:-no} = yes; then
7138 # Check whether --enable-cas was given.
7139 if test "${enable_cas+set}" = set; then :
7140 enableval=$enable_cas;
7143 if test ${enable_cas:-no} = yes; then
7152 # Check whether --enable-wxcas was given.
7153 if test "${enable_wxcas+set}" = set; then :
7154 enableval=$enable_wxcas;
7157 if test ${enable_wxcas:-no} = yes; then
7166 # Check whether --enable-ed2k was given.
7167 if test "${enable_ed2k+set}" = set; then :
7168 enableval=$enable_ed2k;
7171 if test ${enable_ed2k:-yes} = yes; then
7180 # Check whether --enable-alc was given.
7181 if test "${enable_alc+set}" = set; then :
7182 enableval=$enable_alc;
7185 if test ${enable_alc:-no} = yes; then
7194 # Check whether --enable-alcc was given.
7195 if test "${enable_alcc+set}" = set; then :
7196 enableval=$enable_alcc;
7199 if test ${enable_alcc:-no} = yes; then
7208 # Check whether --enable-xas was given.
7209 if test "${enable_xas+set}" = set; then :
7210 enableval=$enable_xas;
7213 if test ${enable_xas:-no} = yes; then
7222 # Check whether --enable-fileview was given.
7223 if test "${enable_fileview+set}" = set; then :
7224 enableval=$enable_fileview;
7227 if test ${enable_fileview:-no} = yes; then
7236 # Check whether --enable-plasmamule was given.
7237 if test "${enable_plasmamule+set}" = set; then :
7238 enableval=$enable_plasmamule;
7243 # Run all the tests with static linkage if we want a statically linked binary
7244 # Check whether --enable-static was given.
7245 if test "${enable_static+set}" = set; then :
7246 enableval=$enable_static;
7250 if test ${enable_static:-no} = yes; then :
7251 LDFLAGS="$LDFLAGS -static"
7256 # Check whether --with-kde4-config was given.
7257 if test "${with_kde4_config+set}" = set; then :
7258 withval=$with_kde4_config; KDE4_CONFIG=$withval
7263 # Check whether --enable-kde-in-home was given.
7264 if test "${enable_kde_in_home+set}" = set; then :
7265 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7273 # Check whether --with-moc was given.
7274 if test "${with_moc+set}" = set; then :
7275 withval=$with_moc; QT_MOC=$withval
7282 # Default is yes, because they're most likely compatible.
7283 # However, this is only used when cross-compiling.
7285 # Check whether --with-gnu-malloc was given.
7286 if test "${with_gnu_malloc+set}" = set; then :
7287 withval=$with_gnu_malloc; gnumalloc=$withval
7294 # Checking for libs before all other stuff to break
7295 # configure as soon as possible in case of a missing one
7296 # to avoid losing too much time
7301 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7308 $as_echo_n "(cached) " >&6
7312 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7334 if test -n "$PKG_CONFIG"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7336 $as_echo "$PKG_CONFIG" >&6; }
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7344 if test -z "$ac_cv_path_PKG_CONFIG"; then
7345 ac_pt_PKG_CONFIG=$PKG_CONFIG
7346 # Extract the first word of "pkg-config", so it can be a program name with args.
7347 set dummy pkg-config; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7351 $as_echo_n "(cached) " >&6
7353 case $ac_pt_PKG_CONFIG in
7355 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7377 if test -n "$ac_pt_PKG_CONFIG"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7379 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7385 if test "x$ac_pt_PKG_CONFIG" = x; then
7388 case $cross_compiling:$ac_tool_warned in
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7394 PKG_CONFIG=$ac_pt_PKG_CONFIG
7397 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7401 if test -n "$PKG_CONFIG"; then
7402 _pkg_min_version=0.9.0
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7404 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7405 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7407 $as_echo "yes" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7417 $as_echo_n "checking for ANSI C header files... " >&6; }
7418 if ${ac_cv_header_stdc+:} false; then :
7419 $as_echo_n "(cached) " >&6
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7436 if ac_fn_c_try_compile "$LINENO"; then :
7437 ac_cv_header_stdc=yes
7439 ac_cv_header_stdc=no
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 if test $ac_cv_header_stdc = yes; then
7444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7451 $EGREP "memchr" >/dev/null 2>&1; then :
7454 ac_cv_header_stdc=no
7460 if test $ac_cv_header_stdc = yes; then
7461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7468 $EGREP "free" >/dev/null 2>&1; then :
7471 ac_cv_header_stdc=no
7477 if test $ac_cv_header_stdc = yes; then
7478 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7479 if test "$cross_compiling" = yes; then :
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7486 #if ((' ' & 0x0FF) == 0x020)
7487 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7488 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7490 # define ISLOWER(c) \
7491 (('a' <= (c) && (c) <= 'i') \
7492 || ('j' <= (c) && (c) <= 'r') \
7493 || ('s' <= (c) && (c) <= 'z'))
7494 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7497 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7502 for (i = 0; i < 256; i++)
7503 if (XOR (islower (i), ISLOWER (i))
7504 || toupper (i) != TOUPPER (i))
7509 if ac_fn_c_try_run "$LINENO"; then :
7512 ac_cv_header_stdc=no
7514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7515 conftest.$ac_objext conftest.beam conftest.$ac_ext
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7521 $as_echo "$ac_cv_header_stdc" >&6; }
7522 if test $ac_cv_header_stdc = yes; then
7524 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7528 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7530 inttypes.h stdint.h unistd.h
7532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7533 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7535 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7536 cat >>confdefs.h <<_ACEOF
7537 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7545 if test ${enable_cas:-no} = yes; then :
7550 # Check whether --with-gdlib-prefix was given.
7551 if test "${with_gdlib_prefix+set}" = set; then :
7552 withval=$with_gdlib_prefix;
7556 # Check whether --with-gdlib-config was given.
7557 if test "${with_gdlib_config+set}" = set; then :
7558 withval=$with_gdlib_config;
7564 # Check gdlib in pkg-config first to avoid deprecation warnings
7565 # If --with-gdlib-config or --with-gdlib-prefix was given, then
7566 # skip the pkg-config check, the user probably wants to use
7567 # another gdlib instance.
7568 if test -z "${with_gdlib_config:-}${with_gdlib_prefix:-}"; then :
7570 if test -n "$PKG_CONFIG"; then :
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib" >&5
7573 $as_echo_n "checking for gdlib... " >&6; }
7575 if $PKG_CONFIG gdlib --exists; then :
7577 GDLIB_VERSION=`$PKG_CONFIG gdlib
--modversion`
7579 if $PKG_CONFIG gdlib --atleast-version=2.0.0; then :
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7582 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7583 GDLIB_CFLAGS=`$PKG_CONFIG gdlib
--cflags`
7584 GDLIB_LDFLAGS=`$PKG_CONFIG gdlib
--libs-only-L`
7585 GDLIB_LIBS=`$PKG_CONFIG gdlib
--libs-only-other`
7586 GDLIB_LIBS="$GDLIB_LIBS `$PKG_CONFIG gdlib
--libs-only-l`"
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7591 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7607 # Try gdlib-config if we did not find a sufficient gdlib version in pkg-config
7608 if test -z "$GDLIB_VERSION"; then :
7610 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7611 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7612 GDLIB_CONFIG_NAME=gdlib-config
7614 if test -n "$with_gdlib_config"; then :
7615 GDLIB_CONFIG_NAME="$with_gdlib_config"
7618 # deal with optional prefix
7619 if test -n "$with_gdlib_prefix"; then :
7620 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7623 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7624 if test -x "$GDLIB_CONFIG_NAME"; then :
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7627 $as_echo_n "checking for gdlib-config... " >&6; }
7628 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7630 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7633 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7634 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_path_GDLIB_CONFIG_PATH+:} false; then :
7638 $as_echo_n "(cached) " >&6
7640 case $GDLIB_CONFIG_PATH in
7642 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7647 for as_dir in $as_dummy
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7665 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7666 if test -n "$GDLIB_CONFIG_PATH"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7668 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7677 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7680 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7681 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7683 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7684 gdlib_config_major_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7685 gdlib_config_minor_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7686 gdlib_config_micro_version=`echo $GDLIB_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7688 if test $gdlib_config_major_version -gt 2; then
7690 elif test $gdlib_config_major_version -eq 2; then
7692 if test $gdlib_config_minor_version -gt 0; then
7694 elif test $gdlib_config_minor_version -eq 0; then
7695 if test $gdlib_config_micro_version -ge 0; then
7707 if test -z "${gdlib_ver_ok:-}"; then :
7709 if test -z "$GDLIB_VERSION"; then :
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7715 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7723 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7724 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7725 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7726 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7732 if test -n "$GDLIB_VERSION"; then :
7734 mule_backup_CFLAGS="$CFLAGS"
7735 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7737 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7738 if test "x$ac_cv_header_gd_h" = xyes; then :
7751 CFLAGS="$mule_backup_CFLAGS"
7755 if test -n "$GDLIB_VERSION"; then :
7766 if test -z "$CAS_DEFS"; then :
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7768 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7769 Please check that gdlib-config is in your default path, check out
7770 LD_LIBRARY_PATH or equivalent variable.
7771 Or this might also be that your gdlib-config has other name.
7772 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7773 (replace /usr/bin/gdlib-config with a valid path to your
7775 If you use compiled packages check if you have devel pack installed.
7776 To download the latest version check http://www.boutell.com/gd for
7778 $as_echo "$as_me: WARNING:
7779 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7780 Please check that gdlib-config is in your default path, check out
7781 LD_LIBRARY_PATH or equivalent variable.
7782 Or this might also be that your gdlib-config has other name.
7783 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7784 (replace /usr/bin/gdlib-config with a valid path to your
7786 If you use compiled packages check if you have devel pack installed.
7787 To download the latest version check http://www.boutell.com/gd for
7790 _mule_has_warnings=yes
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7797 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7798 if ${ac_cv_header_stdbool_h+:} false; then :
7799 $as_echo_n "(cached) " >&6
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7804 #include <stdbool.h>
7806 "error: bool is not defined"
7809 "error: false is not defined"
7812 "error: false is not 0"
7815 "error: true is not defined"
7818 "error: true is not 1"
7820 #ifndef __bool_true_false_are_defined
7821 "error: __bool_true_false_are_defined is not defined"
7824 struct s { _Bool s: 1; _Bool t; } s;
7826 char a[true == 1 ? 1 : -1];
7827 char b[false == 0 ? 1 : -1];
7828 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7829 char d[(bool) 0.5 == true ? 1 : -1];
7830 /* See body of main program for 'e'. */
7831 char f[(_Bool) 0.0 == false ? 1 : -1];
7833 char h[sizeof (_Bool)];
7835 enum { j = false, k = true, l = false * true, m = true * 256 };
7836 /* The following fails for
7837 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7839 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7840 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7841 /* Catch a bug in an HP-UX C compiler. See
7842 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7843 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7855 /* Refer to every declared value, to avoid compiler optimizations. */
7856 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7857 + !m + !n + !o + !p + !q + !pq);
7863 if ac_fn_c_try_compile "$LINENO"; then :
7864 ac_cv_header_stdbool_h=yes
7866 ac_cv_header_stdbool_h=no
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7871 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7872 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7873 if test "x$ac_cv_type__Bool" = xyes; then :
7875 cat >>confdefs.h <<_ACEOF
7876 #define HAVE__BOOL 1
7883 if test $ac_cv_header_stdbool_h = yes; then
7885 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7890 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7891 if ${ac_cv_c_const+:} false; then :
7892 $as_echo_n "(cached) " >&6
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7902 /* Ultrix mips cc rejects this sort of thing. */
7903 typedef int charset[2];
7904 const charset cs = { 0, 0 };
7905 /* SunOS 4.1.1 cc rejects this. */
7906 char const *const *pcpcc;
7908 /* NEC SVR4.0.2 mips cc rejects this. */
7909 struct point {int x, y;};
7910 static struct point const zero = {0,0};
7911 /* AIX XL C 1.02.0.0 rejects this.
7912 It does not let you subtract one const X* pointer from another in
7913 an arm of an if-expression whose if-part is not a constant
7915 const char *g = "string";
7916 pcpcc = &g + (g ? g-g : 0);
7917 /* HPUX 7.0 cc rejects these. */
7919 ppc = (char**) pcpcc;
7920 pcpcc = (char const *const *) ppc;
7921 { /* SCO 3.2v4 cc rejects this sort of thing. */
7924 char const *s = 0 ? (char *) 0 : (char const *) 0;
7929 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7931 const int *foo = &x[0];
7934 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7935 typedef const int *iptr;
7939 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7940 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7941 struct s { int j; const int *ap[3]; } bx;
7942 struct s *b = &bx; b->j = 5;
7944 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7948 return !cs[0] && !zero.x;
7955 if ac_fn_c_try_compile "$LINENO"; then :
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7963 $as_echo "$ac_cv_c_const" >&6; }
7964 if test $ac_cv_c_const = no; then
7966 $as_echo "#define const /**/" >>confdefs.h
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7971 $as_echo_n "checking for inline... " >&6; }
7972 if ${ac_cv_c_inline+:} false; then :
7973 $as_echo_n "(cached) " >&6
7976 for ac_kw in inline __inline__ __inline; do
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7981 static $ac_kw foo_t static_foo () {return 0; }
7982 $ac_kw foo_t foo () {return 0; }
7986 if ac_fn_c_try_compile "$LINENO"; then :
7987 ac_cv_c_inline=$ac_kw
7989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 test "$ac_cv_c_inline" != no && break
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7995 $as_echo "$ac_cv_c_inline" >&6; }
7997 case $ac_cv_c_inline in
8000 case $ac_cv_c_inline in
8002 *) ac_val=$ac_cv_c_inline;;
8004 cat >>confdefs.h <<_ACEOF
8006 #define inline $ac_val
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8013 $as_echo_n "checking for working volatile... " >&6; }
8014 if ${ac_cv_c_volatile+:} false; then :
8015 $as_echo_n "(cached) " >&6
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8025 int * volatile y = (int *) 0;
8031 if ac_fn_c_try_compile "$LINENO"; then :
8032 ac_cv_c_volatile=yes
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8039 $as_echo "$ac_cv_c_volatile" >&6; }
8040 if test $ac_cv_c_volatile = no; then
8042 $as_echo "#define volatile /**/" >>confdefs.h
8048 ac_cpp='$CXXCPP $CPPFLAGS'
8049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8057 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 :
8060 # Check whether --with-zlib was given.
8061 if test "${with_zlib+set}" = set; then :
8066 case "${with_zlib:-yes}" in
8068 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8073 zlib_prefix="$with_zlib"
8076 mule_backup_CPPFLAGS="$CPPFLAGS"
8077 mule_backup_LDFLAGS="$LDFLAGS"
8078 mule_backup_LIBS="$LIBS"
8079 if test -n "$zlib_prefix"; then :
8081 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
8082 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
8083 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
8084 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
8093 LIBS="$ZLIB_LIBS $LIBS"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
8096 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
8097 if test "$cross_compiling" = yes; then :
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8112 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
8120 if ac_fn_cxx_try_link "$LINENO"; then :
8122 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest
$ac_exeext |
sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
8123 cross_zver_max="`echo $ZLIB_VERSION | cut
-d.
-f1`"
8124 cross_zver_mid="`echo $ZLIB_VERSION | cut
-d.
-f2`"
8125 cross_zver_min="`echo $ZLIB_VERSION | cut
-d.
-f3`"
8126 if test "$cross_zver_max" -gt "1"; then
8128 elif test "$cross_zver_max" -eq "1"; then
8130 if test "$cross_zver_mid" -gt "1"; then
8132 elif test "$cross_zver_mid" -eq "1"; then
8133 if test "$cross_zver_min" -ge "4"; then
8142 if test ${result:-no} = yes; then :
8143 z_version=" (version $ZLIB_VERSION)"
8147 rm -f core conftest.err conftest.$ac_objext \
8148 conftest$ac_exeext conftest.$ac_ext
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
8150 $as_echo "$result$z_version" >&6; }
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8163 const char *zver = zlibVersion();
8164 FILE *f=fopen("conftestval", "w");
8171 zver[4] >= '4'))) ? "yes" : "no");
8173 f=fopen("conftestver", "w");
8175 fprintf(f, "%s", ZLIB_VERSION);
8184 if ac_fn_cxx_try_run "$LINENO"; then :
8186 if test -f conftestval; then :
8187 result=`cat conftestval
`
8191 if test ${result:-no} = yes; then :
8193 if test -f conftestver; then :
8195 ZLIB_VERSION=`cat conftestver
`
8196 z_version=" (version $ZLIB_VERSION)"
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
8204 $as_echo "$result$z_version" >&6; }
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
8210 $as_echo "$result" >&6; }
8213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8214 conftest.$ac_objext conftest.beam conftest.$ac_ext
8218 CPPFLAGS="$mule_backup_CPPFLAGS"
8219 LDFLAGS="$mule_backup_LDFLAGS"
8220 LIBS="$mule_backup_LIBS"
8222 if test ${result:-no} = no; then :
8227 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8236 if test ${enable_webserver:-no} = yes; then :
8239 # Check whether --with-libpng-prefix was given.
8240 if test "${with_libpng_prefix+set}" = set; then :
8241 withval=$with_libpng_prefix;
8245 # Check whether --with-libpng-config was given.
8246 if test "${with_libpng_config+set}" = set; then :
8247 withval=$with_libpng_config;
8253 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
8254 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
8255 LIBPNG_CONFIG_NAME=libpng-config
8257 if test -n "$with_libpng_config"; then :
8258 LIBPNG_CONFIG_NAME="$with_libpng_config"
8261 # deal with optional prefix
8262 if test -n "$with_libpng_prefix"; then :
8263 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
8266 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
8267 if test -x "$LIBPNG_CONFIG_NAME"; then :
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
8270 $as_echo_n "checking for libpng-config... " >&6; }
8271 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8273 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8276 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
8277 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if ${ac_cv_path_LIBPNG_CONFIG_PATH+:} false; then :
8281 $as_echo_n "(cached) " >&6
8283 case $LIBPNG_CONFIG_PATH in
8285 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
8288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
8290 for as_dir in $as_dummy
8293 test -z "$as_dir" && as_dir=.
8294 for ac_exec_ext in '' $ac_executable_extensions; do
8295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8296 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
8308 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
8309 if test -n "$LIBPNG_CONFIG_PATH"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8311 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8320 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
8323 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
8325 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
8327 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
8328 libpng_config_major_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8329 libpng_config_minor_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8330 libpng_config_micro_version=`echo $LIBPNG_VERSION |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8333 if test $libpng_config_major_version -gt 1; then
8335 elif test $libpng_config_major_version -eq 1; then
8337 if test $libpng_config_minor_version -gt 2; then
8339 elif test $libpng_config_minor_version -eq 2; then
8340 if test $libpng_config_micro_version -ge 0; then
8350 if test -z "$libpng_ver_ok"; then :
8352 if test -z "$LIBPNG_VERSION"; then :
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
8358 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
8365 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
8366 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags |
sed -e "s/ *${LIBPNG_LIBS}$//"`
8367 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
8369 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
8372 $as_echo_n "checking if libpng is usable... " >&6; }
8374 SAVED_CFLAGS=$CFLAGS
8375 SAVED_LDFLAGS=$LDFLAGS
8378 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
8379 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
8380 LIBS="$LIBS $LIBPNG_LIBS"
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8393 png_uint_32 libpng_vn = png_access_version_number();
8394 printf("\nlibpng version %i\n\n", libpng_vn);
8401 if ac_fn_cxx_try_link "$LINENO"; then :
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8404 $as_echo "yes" >&6; }
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8409 $as_echo "no (failed to compile and link test program)" >&6; }
8416 rm -f core conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8419 CFLAGS="$SAVED_CFLAGS"
8420 LDFLAGS="$SAVED_LDFLAGS"
8427 if test -n "$LIBPNG_VERSION"; then :
8428 AMULEWEB_DEFS="-DWITH_LIBPNG"
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8432 libpng >= 1.2.0 not found.
8433 amuleweb will be compiled but file download progress bar images will
8434 NOT be generated." >&5
8435 $as_echo "$as_me: WARNING:
8436 libpng >= 1.2.0 not found.
8437 amuleweb will be compiled but file download progress bar images will
8438 NOT be generated." >&2;}
8440 _mule_has_warnings=yes
8451 # Check for perl File::Copy
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
8453 $as_echo_n "checking for File::Copy... " >&6; }
8454 if perl -e "require File::Copy" 2>/dev/null; then :
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8456 $as_echo "ok" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8459 File::Copy perl module is required by the mldonkey_importer script.
8460 If you want to use this script please install File::Copy from CPAN." >&5
8461 $as_echo "$as_me: WARNING:
8462 File::Copy perl module is required by the mldonkey_importer script.
8463 If you want to use this script please install File::Copy from CPAN." >&2;}
8465 _mule_has_warnings=yes
8470 # Check for GeoIP (required for IP2Country capability)
8472 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8474 # Check whether --enable-geoip was given.
8475 if test "${enable_geoip+set}" = set; then :
8476 enableval=$enable_geoip;
8481 if test ${enable_geoip:-no} = yes; then :
8484 # Check whether --with-geoip-headers was given.
8485 if test "${with_geoip_headers+set}" = set; then :
8486 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8490 # Check whether --with-geoip-lib was given.
8491 if test "${with_geoip_lib+set}" = set; then :
8492 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8496 mule_backup_CPPFLAGS="$CPPFLAGS"
8497 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8498 mule_backup_LDFLAGS="$LDFLAGS"
8499 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8501 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8502 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
8504 if test x$SYS = xwin32; then :
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8507 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8508 # Actually, we might not need any if GeoIP is linked as a .dll
8509 # - but that's even harder to check for
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8515 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8516 I do know it's not the best approach, but at least works with MinGW stock headers.
8517 (tested with w32api-3.12)
8529 if ac_fn_cxx_try_compile "$LINENO"; then :
8531 GEOIP_WINSOCK_LIB="-lwsock32"
8535 GEOIP_WINSOCK_LIB="-lws2_32"
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8540 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8544 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8545 if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then :
8546 $as_echo_n "(cached) " >&6
8548 ac_check_lib_save_LIBS=$LIBS
8549 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8553 /* Override any GCC internal prototype to avoid an error.
8554 Use char because int might match the return type of a GCC
8555 builtin and then its argument prototype would still apply. */
8563 return GeoIP_open ();
8568 if ac_fn_cxx_try_link "$LINENO"; then :
8569 ac_cv_lib_GeoIP_GeoIP_open=yes
8571 ac_cv_lib_GeoIP_GeoIP_open=no
8573 rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 LIBS=$ac_check_lib_save_LIBS
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8578 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8579 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then :
8582 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8584 GEOIP_LIBS="-lGeoIP"
8585 if test x$SYS = xwin32; then :
8586 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8588 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8590 # Check whether --with-geoip-static was given.
8591 if test "${with_geoip_static+set}" = set; then :
8592 withval=$with_geoip_static;
8593 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8595 mule_backup_LIBS="$LIBS"
8596 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8607 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8614 if ac_fn_cxx_try_link "$LINENO"; then :
8616 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8621 Cannot link GeoIP statically, because your linker ($LD) does not
8623 $as_echo "$as_me: WARNING:
8624 Cannot link GeoIP statically, because your linker ($LD) does not
8627 _mule_has_warnings=yes
8631 rm -f core conftest.err conftest.$ac_objext \
8632 conftest$ac_exeext conftest.$ac_ext
8633 LIBS="$mule_backup_LIBS"
8642 enable_geoip=disabled
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8644 GeoIP support has been disabled because the GeoIP libraries were not
8646 $as_echo "$as_me: WARNING:
8647 GeoIP support has been disabled because the GeoIP libraries were not
8650 _mule_has_warnings=yes
8658 enable_geoip=disabled
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8660 GeoIP support has been disabled because the GeoIP header files were
8662 $as_echo "$as_me: WARNING:
8663 GeoIP support has been disabled because the GeoIP header files were
8666 _mule_has_warnings=yes
8673 CPPFLAGS="$mule_backup_CPPFLAGS"
8674 LDFLAGS="$mule_backup_LDFLAGS"
8682 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 :
8685 # Check whether --with-wxdir was given.
8686 if test "${with_wxdir+set}" = set; then :
8687 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8688 wx_config_args="--inplace"
8692 # Check whether --with-wx-config was given.
8693 if test "${with_wx_config+set}" = set; then :
8694 withval=$with_wx_config; wx_config_name="$withval"
8698 # Check whether --with-wx-prefix was given.
8699 if test "${with_wx_prefix+set}" = set; then :
8700 withval=$with_wx_prefix; wx_config_prefix="$withval"
8706 # Check whether --with-wx-exec-prefix was given.
8707 if test "${with_wx_exec_prefix+set}" = set; then :
8708 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8710 wx_config_exec_prefix=""
8725 # Check whether --with-toolkit was given.
8726 if test "${with_toolkit+set}" = set; then :
8727 withval=$with_toolkit;
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8734 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8735 if test "$withval" = "auto" ; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8737 $as_echo "will be automatically detected" >&6; }
8742 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \
8743 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8744 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \
8745 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then
8747 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base)
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8752 $as_echo "$TOOLKIT" >&6; }
8759 # Check whether --with-wxshared was given.
8760 if test "${with_wxshared+set}" = set; then :
8761 withval=$with_wxshared;
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8768 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8769 if test "$withval" = "yes" ; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8771 $as_echo "yes" >&6; }
8774 elif test "1" = "1" -a "$withval" = "no" ; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8778 elif test "$withval" = "auto" ; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8780 $as_echo "will be automatically detected" >&6; }
8784 Unrecognized option value (allowed values: yes, auto)
8792 # Check whether --with-wxdebug was given.
8793 if test "${with_wxdebug+set}" = set; then :
8794 withval=$with_wxdebug;
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8801 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8802 if test "$withval" = "yes" ; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8804 $as_echo "yes" >&6; }
8807 elif test "1" = "1" -a "$withval" = "no" ; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8811 elif test "$withval" = "auto" ; then
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8813 $as_echo "will be automatically detected" >&6; }
8817 Unrecognized option value (allowed values: yes, auto)
8825 # Check whether --with-wxversion was given.
8826 if test "${with_wxversion+set}" = set; then :
8827 withval=$with_wxversion;
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8834 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8835 if test "$withval" = "auto" ; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8837 $as_echo "will be automatically detected" >&6; }
8841 wx_requested_major_version=`echo $withval | \
8842 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8843 wx_requested_minor_version=`echo $withval | \
8844 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8846 if test "${#wx_requested_major_version}" != "1" -o \
8847 "${#wx_requested_minor_version}" != "1" ; then
8849 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0)
8853 WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version"
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5
8855 $as_echo "$WX_RELEASE" >&6; }
8859 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8860 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8861 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8862 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8863 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8864 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
8867 # Force using a static wxWidgets library if the executable is to be linked statically.
8868 if test ${enable_static:-no} = yes; then :
8871 # Force using a unicode build of the library
8872 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 :
8877 if test "$WX_SHARED" = "1" ; then
8878 WXCONFIG_FLAGS="--static=no "
8879 elif test "$WX_SHARED" = "0" ; then
8880 WXCONFIG_FLAGS="--static=yes "
8883 if test "$WX_DEBUG" = "1" ; then
8884 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8885 elif test "$WX_DEBUG" = "0" ; then
8886 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8889 if test "$WX_UNICODE" = "1" ; then
8890 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8891 elif test "$WX_UNICODE" = "0" ; then
8892 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8895 if test -n "$TOOLKIT" ; then
8896 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8899 if test -n "$WX_RELEASE" ; then
8900 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE "
8903 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8905 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8906 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8910 if test x${WX_CONFIG_NAME+set} != xset ; then
8911 WX_CONFIG_NAME=wx-config
8914 if test "x$wx_config_name" != x ; then
8915 WX_CONFIG_NAME="$wx_config_name"
8918 if test x$wx_config_exec_prefix != x ; then
8919 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8920 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8922 if test x$wx_config_prefix != x ; then
8923 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8924 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8926 if test "$cross_compiling" = "yes"; then
8927 wx_config_args="$wx_config_args --host=$host_alias"
8930 if test -x "$WX_CONFIG_NAME" ; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8932 $as_echo_n "checking for wx-config... " >&6; }
8933 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8935 $as_echo "$WX_CONFIG_PATH" >&6; }
8937 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8938 set dummy $WX_CONFIG_NAME; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_path_WX_CONFIG_PATH+:} false; then :
8942 $as_echo_n "(cached) " >&6
8944 case $WX_CONFIG_PATH in
8946 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8951 for as_dir in $as_dummy
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8957 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8969 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8970 if test -n "$WX_CONFIG_PATH"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8972 $as_echo "$WX_CONFIG_PATH" >&6; }
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8981 if test "$WX_CONFIG_PATH" != "no" ; then
8984 min_wx_version=2.8.12
8985 if test -z "$WXCONFIG_FLAGS" ; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8987 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8990 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8993 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS"
8995 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev
/null
`
8996 wx_config_major_version=`echo $WX_VERSION | \
8997 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8998 wx_config_minor_version=`echo $WX_VERSION | \
8999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9000 wx_config_micro_version=`echo $WX_VERSION | \
9001 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9003 wx_requested_major_version=`echo $min_wx_version | \
9004 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9005 wx_requested_minor_version=`echo $min_wx_version | \
9006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9007 wx_requested_micro_version=`echo $min_wx_version | \
9008 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9012 if test "x$WX_VERSION" != x ; then
9013 if test $wx_config_major_version -gt $wx_requested_major_version; then
9016 if test $wx_config_major_version -eq $wx_requested_major_version; then
9017 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
9020 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
9021 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
9031 if test -n "$wx_ver_ok"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
9033 $as_echo "yes (version $WX_VERSION)" >&6; }
9034 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs `
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
9037 $as_echo_n "checking for wxWidgets static library... " >&6; }
9038 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev
/null
`
9039 if test "x$WX_LIBS_STATIC" = "x"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9044 $as_echo "yes" >&6; }
9048 if test $wx_config_major_version -gt 2; then
9051 if test $wx_config_major_version -eq 2; then
9052 if test $wx_config_minor_version -gt 2; then
9055 if test $wx_config_minor_version -eq 2; then
9056 if test $wx_config_micro_version -ge 6; then
9065 if test $wx_config_major_version -gt 2; then
9068 if test $wx_config_major_version -eq 2; then
9069 if test $wx_config_minor_version -ge 7; then
9074 if test "x$wx_has_rescomp" = x ; then
9077 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
9080 if test "x$wx_has_cppflags" = x ; then
9081 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
9082 WX_CPPFLAGS=$WX_CFLAGS
9083 WX_CXXFLAGS=$WX_CFLAGS
9085 WX_CFLAGS_ONLY=$WX_CFLAGS
9086 WX_CXXFLAGS_ONLY=$WX_CFLAGS
9088 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags `
9089 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags `
9090 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
9092 WX_CFLAGS_ONLY=`echo $WX_CFLAGS |
sed "s@^$WX_CPPFLAGS *@@"`
9093 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS |
sed "s@^$WX_CFLAGS *@@"`
9100 if test "x$WX_VERSION" = x; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102 $as_echo "no" >&6; }
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
9105 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
9115 if test ! -z "$WXCONFIG_FLAGS"; then
9118 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
9119 build with the following settings:
9121 but such build is not available.
9123 To see the wxWidgets builds available on this system, please use
9124 'wx-config --list' command. To use the default build, returned by
9125 'wx-config --selected-config', use the options with their 'auto'
9131 The requested wxWidgets build couldn't be found.
9134 If you still get this error, then check that 'wx-config' is
9135 in path, the directory where wxWidgets libraries are installed
9136 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
9137 or equivalent variable and wxWidgets version is 2.8.12 or above."
9139 as_fn_error $? "$wx_error_message" "$LINENO" 5
9165 WX_VERSION_MAJOR="$wx_config_major_version"
9166 WX_VERSION_MINOR="$wx_config_minor_version"
9167 WX_VERSION_MICRO="$wx_config_micro_version"
9172 if test "$wxWin" != 1; then :
9174 wxWidgets must be installed on your system but wx-config
9175 script couldn't be found. Please check that wx-config is
9176 in path or specified by --with-wx-config=path flag, the
9177 directory where wxWidgets libraries are installed (returned
9178 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
9179 equivalent variable and wxWidgets version is 2.8.12 or above.
9183 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
9185 This version of wxWidgets is known to not work with aMule.
9186 Please upgrade to a newer version.
9191 WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
9192 if test $WX_RELEASE -lt 26 ; then
9195 Cannot detect the wxWidgets configuration for the selected wxWidgets build
9196 since its version is $WX_VERSION < 2.6.0; please install a newer
9197 version of wxWidgets.
9201 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
9203 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9204 echo "[dbg] Using wx-config --selected-config"
9205 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
9208 if test "$WX_SHARED" = "1"; then
9210 elif test "$WX_SHARED" = "0"; then
9215 if test -z "$UNICODE" ; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
9218 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
9220 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
9222 if test "$WX_UNICODE" != "0"; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9225 $as_echo "yes" >&6; }
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9237 if test -z "$DEBUG" ; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
9240 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
9242 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
9244 if test "$WX_DEBUG" != "0"; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9247 $as_echo "yes" >&6; }
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9259 if test -z "$STATIC" ; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
9262 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
9264 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
9266 if test "$WX_STATIC" != "0"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9269 $as_echo "yes" >&6; }
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9281 if test "$WX_STATIC" != "0"; then
9291 if test -z "$TOOLKIT" ; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
9294 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
9296 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
9297 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
9298 WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*")
9299 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
9300 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
9301 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
9302 WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*")
9303 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
9304 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
9305 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
9308 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
9309 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
9310 if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi
9311 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
9312 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
9313 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
9314 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi
9315 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
9316 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
9317 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
9319 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
9320 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
9323 if test "$WX_PORT" = "unknown" ; then
9325 Cannot detect the currently installed wxWidgets port !
9326 Please check your 'wx-config --cxxflags'...
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
9331 $as_echo "$WX_PORT" >&6; }
9338 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9339 echo "[dbg] Values of all WX_* options after final detection:"
9340 echo "[dbg] WX_DEBUG: $WX_DEBUG"
9341 echo "[dbg] WX_UNICODE: $WX_UNICODE"
9342 echo "[dbg] WX_SHARED: $WX_SHARED"
9343 echo "[dbg] WX_RELEASE: $WX_RELEASE"
9344 echo "[dbg] WX_PORT: $WX_PORT"
9347 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
9349 Cannot build shared library against a static build of wxWidgets !
9350 This error happens because the wxWidgets build which was selected
9351 has been detected as static while you asked to build $PACKAGE_NAME
9352 as shared library and this is not possible.
9353 Use the '--disable-shared' option to build $PACKAGE_NAME
9354 as static library or '--with-wxshared' to use wxWidgets as shared library.
9358 if test -z "$UNICODE" ; then
9361 if test -z "$SHARED" ; then
9364 if test -z "$TOOLKIT" ; then
9368 if test "$DEBUG" = "1"; then
9370 CXXFLAGS="$CXXFLAGS -g -O0"
9371 CFLAGS="$CFLAGS -g -O0"
9372 elif test "$DEBUG" = "0"; then
9374 CXXFLAGS="$CXXFLAGS -O2"
9375 CFLAGS="$CFLAGS -O2"
9379 # We also need wxBase
9380 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv
,core
,net
`
9381 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net
`
9382 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
9384 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags |
$AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
9388 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
9389 if test "${WX_PORT}" = base; then :
9391 The selected components need a wxWidgets library with GUI,
9392 but your installation is base-only. Please install a GUI
9393 enabled version of wxWidgets and then retry.
9400 if test ${SYS:-unknown} = win32; then :
9401 if test -n "$ac_tool_prefix"; then
9402 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9403 set dummy ${ac_tool_prefix}windres; ac_word=$2
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9405 $as_echo_n "checking for $ac_word... " >&6; }
9406 if ${ac_cv_prog_RC+:} false; then :
9407 $as_echo_n "(cached) " >&6
9409 if test -n "$RC"; then
9410 ac_cv_prog_RC="$RC" # Let the user override the test.
9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 test -z "$as_dir" && as_dir=.
9417 for ac_exec_ext in '' $ac_executable_extensions; do
9418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9419 ac_cv_prog_RC="${ac_tool_prefix}windres"
9420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 if test -n "$RC"; then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9432 $as_echo "$RC" >&6; }
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435 $as_echo "no" >&6; }
9440 if test -z "$ac_cv_prog_RC"; then
9442 # Extract the first word of "windres", so it can be a program name with args.
9443 set dummy windres; ac_word=$2
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445 $as_echo_n "checking for $ac_word... " >&6; }
9446 if ${ac_cv_prog_ac_ct_RC+:} false; then :
9447 $as_echo_n "(cached) " >&6
9449 if test -n "$ac_ct_RC"; then
9450 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
9452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 test -z "$as_dir" && as_dir=.
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9459 ac_cv_prog_ac_ct_RC="windres"
9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9470 if test -n "$ac_ct_RC"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9472 $as_echo "$ac_ct_RC" >&6; }
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475 $as_echo "no" >&6; }
9478 if test "x$ac_ct_RC" = x; then
9481 case $cross_compiling:$ac_tool_warned in
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9485 ac_tool_warned=yes ;;
9497 # Check whether --enable-upnp was given.
9498 if test "${enable_upnp+set}" = set; then :
9499 enableval=$enable_upnp;
9503 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9508 if test ${enable_upnp:-yes} = yes; then :
9512 # Check whether --with-libupnp-prefix was given.
9513 if test "${with_libupnp_prefix+set}" = set; then :
9514 withval=$with_libupnp_prefix;
9515 if test -d "$withval/lib64/pkgconfig"; then :
9517 export PKG_CONFIG_PATH=$withval/lib64/pkgconfig
9521 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9528 if test $cross_compiling = no; then :
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9531 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9532 if test -n "$PKG_CONFIG"; then :
9534 if $PKG_CONFIG libupnp --exists; then :
9536 LIBUPNP_VERSION=`$PKG_CONFIG libupnp
--modversion`
9537 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9540 resultstr=" (version $LIBUPNP_VERSION)"
9541 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp
--cflags-only-I`
9542 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp
--cflags-only-other`
9543 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp
--libs-only-L`
9544 LIBUPNP_LIBS=`$PKG_CONFIG libupnp
--libs-only-other`
9545 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp
--libs-only-l`"
9550 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9557 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9564 resultstr=" (pkg-config not found)"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9568 $as_echo "$result$resultstr" >&6; }
9569 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9574 libupnp_error="cross compiling"
9578 if test ${result:-no} = yes; then :
9579 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9581 enable_upnp=disabled
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9583 UPnP code has been disabled because ${libupnp_error}." >&5
9584 $as_echo "$as_me: WARNING:
9585 UPnP code has been disabled because ${libupnp_error}." >&2;}
9587 _mule_has_warnings=yes
9596 # Check for Crypto++ (requires C++)
9597 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9600 # Check whether --with-crypto-prefix was given.
9601 if test "${with_crypto_prefix+set}" = set; then :
9602 withval=$with_crypto_prefix;
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
9607 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
9609 cryptopp_found=false
9611 if test -n "$with_crypto_prefix"; then :
9613 CRYPTOPP_PREFIX="$with_crypto_prefix"
9614 # Find the Cryptopp header in the user-provided location
9615 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then
9618 CRYPTOPP_LIB_NAME="cryptopp"
9619 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9622 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9626 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9627 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then :
9630 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9631 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include"
9632 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib"
9633 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9644 # Check whether the compiler can find it
9645 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9649 #include <$CRYPTOPP_LIB_NAME/cryptlib.h>
9660 if ac_fn_cxx_try_compile "$LINENO"; then :
9663 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9666 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675 if $cryptopp_found; then :
9677 # Find out the crypto++ version and check against the minimum required
9678 # Ask the compiler where are the crypto++ files
9679 mule_backup_CPPFLAGS="$CPPFLAGS"
9680 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS"
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9684 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h>
9687 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'`
9689 CPPFLAGS="$mule_backup_CPPFLAGS"
9690 # Set a prefix suitable for --with-crypto-prefix
9691 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}"
9692 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}"
9693 # Now check the version
9694 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path |
sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9695 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING |
$AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9696 minvers=`echo 5.1 |
$AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9698 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9701 resultstr=" (version $CRYPTOPP_VERSION_STRING)"
9703 cat >>confdefs.h <<_ACEOF
9704 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9711 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9719 result="no"; resultstr=
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9723 $as_echo "$result$resultstr" >&6; }
9725 if test ${result:-no} = yes; then :
9727 # Check for CryptoPP >= 5.5
9728 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
9729 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
9735 Could not find crypto++ installation or sources.
9736 Please try again with --with-crypto-prefix=/my_crypto_prefix
9737 (replace /my_crypto_prefix with a valid path to your crypto++
9738 installation or source directory)." "$LINENO" 5
9747 # Check whether --enable-debug was given.
9748 if test "${enable_debug+set}" = set; then :
9749 enableval=$enable_debug;
9753 # Check whether --enable-profile was given.
9754 if test "${enable_profile+set}" = set; then :
9755 enableval=$enable_profile;
9759 # Check whether --enable-optimize was given.
9760 if test "${enable_optimize+set}" = set; then :
9761 enableval=$enable_optimize;
9766 if test ${enable_debug:-yes} = yes; then :
9768 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9770 MULECFLAGS="$MULECFLAGS -g"
9771 MULECXXFLAGS="$MULECXXFLAGS -g"
9773 if test ${GCC:-no} = yes; then :
9775 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9776 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9779 if test ${SYS:-unknown} = win32; then :
9780 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9785 if test ${GCC:-no} = yes; then :
9787 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9788 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9794 if test ${enable_profile:-no} = yes; then :
9797 MULECFLAGS="$MULECFLAGS -pg"
9798 MULECXXFLAGS="$MULECXXFLAGS -pg"
9800 MULELDFLAGS="$MULELDFLAGS -pg"
9804 if test ${enable_optimize:-no} = yes; then :
9806 MULECFLAGS="$MULECFLAGS -O2"
9807 MULECXXFLAGS="$MULECXXFLAGS -O2"
9811 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9815 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 :
9820 if test ${GCC:-no} = yes; then :
9822 mule_backup_CXXFLAGS="$CXXFLAGS"
9823 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9826 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9836 short *b = (short*)&a;
9846 if ac_fn_cxx_try_compile "$LINENO"; then :
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9854 $as_echo "yes" >&6; }
9855 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 CXXFLAGS="$mule_backup_CXXFLAGS"
9865 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9867 mule_backup_CPPFLAGS="$CPPFLAGS"
9868 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9871 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9877 #include <wx/filefn.h>
9878 #ifndef wxHAS_LARGE_FILES
9879 #error No LargeFile support!
9884 if ac_fn_cxx_try_cpp "$LINENO"; then :
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9887 $as_echo "yes" >&6; }
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9892 $as_echo "no" >&6; }
9894 Support for large files in wxWidgets is required by aMule.
9895 To continue you must recompile wxWidgets with support for
9896 large files enabled." "$LINENO" 5
9899 rm -f conftest.err conftest.i conftest.$ac_ext
9901 CPPFLAGS="$mule_backup_CPPFLAGS"
9905 # Check if the compiler is broken, wrt. exceptions.
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9908 $as_echo_n "checking for exception-handling... " >&6; }
9909 if test "$cross_compiling" = yes; then :
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9912 $as_echo "undeterminable" >&6; }
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9914 Cross-compilation detected, so exception handling cannot be tested.
9915 Note that broken exception handling in your compiler may lead to
9916 unexpected crashes." >&5
9917 $as_echo "$as_me: WARNING:
9918 Cross-compilation detected, so exception handling cannot be tested.
9919 Note that broken exception handling in your compiler may lead to
9920 unexpected crashes." >&2;}
9922 _mule_has_warnings=yes
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9946 if ac_fn_cxx_try_run "$LINENO"; then :
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9949 $as_echo "yes" >&6; }
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9954 $as_echo "no" >&6; }
9955 as_fn_error $? "Exception handling does not work. Broken compiler?" "$LINENO" 5
9958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9959 conftest.$ac_objext conftest.beam conftest.$ac_ext
9965 for ac_header in typeinfo
9967 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9968 if test "x$ac_cv_header_typeinfo" = xyes; then :
9969 cat >>confdefs.h <<_ACEOF
9970 #define HAVE_TYPEINFO 1
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9978 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9983 #ifdef HAVE_TYPEINFO
9984 # include <typeinfo>
9993 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9994 std::type_info *ti = abi::__cxa_current_exception_type();
10001 if ac_fn_cxx_try_link "$LINENO"; then :
10004 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10007 $as_echo "yes" >&6; }
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 $as_echo "no" >&6; }
10015 rm -f core conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10019 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 :
10022 # Check whether --with-boost was given.
10023 if test "${with_boost+set}" = set; then :
10024 withval=$with_boost;
10030 if test ${with_boost:-no} != no; then :
10032 echo "$as_me: this is boost.m4 serial 25" >&5
10033 boost_save_IFS=$IFS
10034 boost_version_req=1.47
10036 set x $boost_version_req 0 0 0
10037 IFS=$boost_save_IFS
10039 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
10040 boost_version_req_string=$1.$2.$3
10041 # If BOOST_ROOT is set and the user has not provided a value to
10042 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
10043 if test x"$BOOST_ROOT" != x; then
10044 if test x"$with_boost" = x; then
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
10046 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
10047 with_boost=$BOOST_ROOT
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
10050 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
10053 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
10054 boost_save_CPPFLAGS=$CPPFLAGS
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
10056 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
10057 if ${boost_cv_inc_path+:} false; then :
10058 $as_echo_n "(cached) " >&6
10060 boost_cv_inc_path=no
10062 ac_cpp='$CXXCPP $CPPFLAGS'
10063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 #include <boost/version.hpp>
10069 #if !defined BOOST_VERSION
10070 # error BOOST_VERSION is not defined
10071 #elif BOOST_VERSION < $boost_version_req
10072 # error Boost headers version < $boost_version_req
10083 # If the user provided a value to --with-boost, use it and only it.
10084 case $with_boost in #(
10085 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
10086 /usr/include C:/Boost/include;; #(
10087 *) set x "$with_boost/include" "$with_boost";;
10092 # Without --layout=system, Boost (or at least some versions) installs
10093 # itself in <prefix>/include/boost-<version>. This inner loop helps to
10094 # find headers in such directories.
10096 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
10097 # order followed by ${boost_dir}. The final '.' is a sentinel for
10098 # searching $boost_dir" itself. Entries are whitespace separated.
10100 # I didn't indent this loop on purpose (to avoid over-indented code)
10101 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev
/null \
10102 && ls -1 |
"${GREP}" '^boost-' |
sort -rn -t- -k2 \
10104 for boost_inc in $boost_layout_system_search_list
10106 if test x"$boost_inc" != x.; then
10107 boost_inc="$boost_dir/$boost_inc"
10109 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
10111 if test x"$boost_inc" != x; then
10112 # We are going to check whether the version of Boost installed
10113 # in $boost_inc is usable by running a compilation that
10114 # #includes it. But if we pass a -I/some/path in which Boost
10115 # is not installed, the compiler will just skip this -I and
10116 # use other locations (either from CPPFLAGS, or from its list
10117 # of system include directories). As a result we would use
10118 # header installed on the machine instead of the /some/path
10119 # specified by the user. So in that precise case (trying
10120 # $boost_inc), make sure the version.hpp exists.
10122 # Use test -e as there can be symlinks.
10123 test -e "$boost_inc/boost/version.hpp" || continue
10124 CPPFLAGS="$CPPFLAGS -I$boost_inc"
10126 if ac_fn_cxx_try_compile "$LINENO"; then :
10127 boost_cv_inc_path=yes
10129 boost_cv_version=no
10131 rm -f core conftest.err conftest.$ac_objext
10132 if test x"$boost_cv_inc_path" = xyes; then
10133 if test x"$boost_inc" != x; then
10134 boost_cv_inc_path=$boost_inc
10141 ac_cpp='$CXXCPP $CPPFLAGS'
10142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
10148 $as_echo "$boost_cv_inc_path" >&6; }
10149 case $boost_cv_inc_path in #(
10151 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
10153 $as_echo "$as_me: $boost_errmsg" >&6;}
10154 with_boost=disabled
10160 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
10163 if test x"$boost_cv_inc_path" != xno; then
10165 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
10168 $as_echo_n "checking for Boost's header version... " >&6; }
10169 if ${boost_cv_lib_version+:} false; then :
10170 $as_echo_n "(cached) " >&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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 #include <boost/version.hpp>
10180 boost-lib-version = BOOST_LIB_VERSION
10182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10186 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
10187 boost_cv_lib_version=`cat conftest.i
`
10191 ac_cpp='$CXXCPP $CPPFLAGS'
10192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
10198 $as_echo "$boost_cv_lib_version" >&6; }
10199 # e.g. "134" for 1_34_1 or "135" for 1_35
10200 boost_major_version=`echo "$boost_cv_lib_version" |
sed 's/_//;s/_.*//'`
10201 case $boost_major_version in #(
10203 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
10207 CPPFLAGS=$boost_save_CPPFLAGS
10209 if test ${with_boost:-no} != disabled; then :
10211 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10212 for cc_temp in $compiler""; do
10214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10220 cc_basename=`echo "$cc_temp" |
$SED "s%.*/%%; s%^$host_alias-%%"`
10221 # All known linkers require a `.a
' archive for static linking (except MSVC,
10222 # which needs '.lib
').
10224 case $cc_basename in
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
10229 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
10230 if ${boost_cv_lib_tag+:} false; then :
10231 $as_echo_n "(cached) " >&6
10233 boost_cv_lib_tag=unknown
10234 if test x$boost_cv_inc_path != xno; then
10236 ac_cpp='$CXXCPP $CPPFLAGS'
10237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10238 ac_link='$CXX -o conftest
$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10240 # The following tests are mostly inspired by boost/config/auto_link.hpp
10241 # The list is sorted to most recent/common to oldest compiler (in order
10242 # to increase the likelihood of finding the right compiler with the
10243 # least number of compilation attempt).
10244 # Beware that some tests are sensible to the order (for instance, we must
10245 # look for MinGW before looking for GCC3).
10246 # I used one compilation test per compiler with a #error to recognize
10247 # each compiler so that it works even when cross-compiling (let me know
10248 # if you know a better approach).
10249 # Known missing tags (known from Boost's tools
/build
/v
2/tools
/common.jam
):
10250 # como, edg, kcc, bck, mp, sw, tru, xlc
10251 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
10252 # the same defines as GCC's).
10254 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10255 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10256 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
10257 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
10258 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10259 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10260 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
10261 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
10262 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10263 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10264 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
10265 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
10266 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10267 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10268 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
10269 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
10270 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
10271 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10272 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
10273 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
10274 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
10275 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10276 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
10277 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
10278 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
10279 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10280 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
10281 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
10282 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
10283 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10284 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
10285 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
10286 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
10287 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10288 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
10289 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
10290 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
10291 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10292 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
10293 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
10294 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
10295 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10296 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
10297 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
10298 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10299 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10300 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
10301 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
10302 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10303 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10304 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
10305 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
10306 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10307 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10308 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
10309 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
10310 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10311 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10312 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
10313 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
10314 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
10315 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10316 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
10317 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
10318 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
10319 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
10320 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
10321 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
10322 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
10323 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
10324 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
10325 "defined __BORLANDC__ @ bcb" \
10326 "defined __ICC && (defined __unix || defined ) @ il" \
10327 "defined __ICL @ iw" \
10328 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
10329 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
10330 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
10331 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
10332 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
10333 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
10335 boost_tag_test
=`expr "X$i" : 'X\([^@]*\) @ '`
10336 boost_tag
=`expr "X$i" : 'X[^@]* @ \(.*\)'`
10337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10340 #if $boost_tag_test
10343 # error $boost_tag_test
10354 if ac_fn_cxx_try_compile
"$LINENO"; then :
10355 boost_cv_lib_tag
=$boost_tag; break
10357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10360 ac_cpp
='$CXXCPP $CPPFLAGS'
10361 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10362 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10363 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10364 case $boost_cv_lib_tag in #(
10365 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10366 # to "gcc41" for instance.
10367 *-gcc |
*'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10370 case $host_os in #(
10372 if test $boost_major_version -ge 136; then
10373 # The `x' added in r46793 of Boost.
10377 # We can specify multiple tags in this variable because it's used by
10378 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10379 boost_cv_lib_tag
="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10383 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10390 $as_echo "$boost_cv_lib_tag" >&6; }
10391 # Check whether --enable-static-boost was given.
10392 if test "${enable_static_boost+set}" = set; then :
10393 enableval
=$enable_static_boost; enable_static_boost
=yes
10395 enable_static_boost
=no
10398 # Check whether we do better use `mt' even though we weren't ask to.
10400 ac_cpp
='$CXXCPP $CPPFLAGS'
10401 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10402 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10403 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10407 #if defined _REENTRANT || defined _MT || defined __MT__
10410 # error MT not needed
10421 if ac_fn_cxx_try_compile
"$LINENO"; then :
10422 boost_guess_use_mt
=:
10424 boost_guess_use_mt
=false
10426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10428 ac_cpp
='$CXXCPP $CPPFLAGS'
10429 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10430 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10431 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10434 $as_echo_n "checking for Boost sources... " >&6; }
10435 mule_backup_CPPFLAGS
="$CPPFLAGS"
10436 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10440 #include <boost/../libs/system/src/error_code.cpp>
10450 if ac_fn_cxx_try_compile
"$LINENO"; then :
10453 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10456 $as_echo "yes" >&6; }
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10462 if test x
"$boost_cv_inc_path" = xno
; then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10464 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10467 ac_cpp
='$CXXCPP $CPPFLAGS'
10468 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10469 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10470 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10471 if test x
"$boost_cv_inc_path" = xno
; then
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10473 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10476 ac_cpp
='$CXXCPP $CPPFLAGS'
10477 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10478 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10479 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10480 boost_save_CPPFLAGS
=$CPPFLAGS
10481 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10482 ac_fn_cxx_check_header_mongrel
"$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10483 if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes
; then :
10485 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10488 as_fn_error $?
"cannot find boost/system/error_code.hpp" "$LINENO" 5
10492 CPPFLAGS
=$boost_save_CPPFLAGS
10494 ac_cpp
='$CXXCPP $CPPFLAGS'
10495 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10496 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10497 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10500 boost_save_CPPFLAGS
=$CPPFLAGS
10501 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10503 $as_echo_n "checking for the Boost system library... " >&6; }
10504 if ${boost_cv_lib_system+:} false
; then :
10505 $as_echo_n "(cached) " >&6
10507 boost_cv_lib_system
=no
10509 (mt | mt-
) boost_mt
=-mt; boost_rtopt
=;; #(
10510 (mt
* | mt-
*) boost_mt
=-mt; boost_rtopt
=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10511 (*) boost_mt
=; boost_rtopt
=mt
;;
10513 if test $enable_static_boost = yes; then
10514 boost_rtopt
="s$boost_rtopt"
10516 # Find the proper debug variant depending on what we've been asked to find.
10517 case $boost_rtopt in #(
10518 (*d
*) boost_rt_d
=$boost_rtopt;; #(
10519 (*[sgpn
]*) # Insert the `d' at the right place (in between `sg' and `pn')
10520 boost_rt_d
=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10521 (*) boost_rt_d
='-d';;
10523 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10524 test -n "$boost_rtopt" && boost_rtopt
="-$boost_rtopt"
10525 $boost_guess_use_mt && boost_mt
=-mt
10526 # Look for the abs path the static archive.
10527 # $libext is computed by Libtool but let's make sure it's non empty.
10528 test -z "$libext" &&
10529 as_fn_error $?
"the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10530 boost_save_ac_objext
=$ac_objext
10531 # Generate the test file.
10532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10534 #include <boost/system/error_code.hpp>
10539 boost::system::error_code e; e.clear();
10544 if ac_fn_cxx_try_compile
"$LINENO"; then :
10545 ac_objext
=do_not_rm_me_plz
10547 as_fn_error $?
"cannot compile a test that uses Boost system" "$LINENO" 5
10549 rm -f core conftest.err conftest.
$ac_objext
10550 ac_objext
=$boost_save_ac_objext
10552 # Don't bother to ident the following nested for loops, only the 2
10553 # innermost ones matter.
10554 for boost_lib_
in system
; do
10555 for boost_tag_
in -$boost_cv_lib_tag ''; do
10556 for boost_ver_
in -$boost_cv_lib_version ''; do
10557 for boost_mt_
in $boost_mt -mt ''; do
10558 for boost_rtopt_
in $boost_rtopt '' -d; do
10560 boost_
$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10561 boost_
$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10562 boost_
$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10563 boost_
$boost_lib_$boost_tag_$boost_ver_
10565 # Avoid testing twice the same lib
10566 case $boost_failed_libs in #(
10567 (*@
$boost_lib@
*) continue;;
10569 # If with_boost is empty, we'll search in /lib first, which is not quite
10570 # right so instead we'll try to a location based on where the headers are.
10571 boost_tmp_lib
=$with_boost
10572 test x
"$with_boost" = x
&& boost_tmp_lib
=${boost_cv_inc_path%/include}
10573 for boost_ldpath
in "$boost_tmp_lib/lib" '' \
10574 /opt
/local
/lib
* /usr
/local
/lib
* /opt
/lib
* /usr
/lib
* \
10575 "$with_boost" C
:/Boost
/lib
/lib
*
10577 # Don't waste time with directories that don't exist.
10578 if test x
"$boost_ldpath" != x
&& test ! -e "$boost_ldpath"; then
10581 boost_save_LDFLAGS
=$LDFLAGS
10582 # Are we looking for a static library?
10583 case $boost_ldpath:$boost_rtopt_ in #(
10584 (*?
*:*s
*) # Yes (Non empty boost_ldpath + s in rt opt)
10585 boost_cv_lib_system_LIBS
="$boost_ldpath/lib$boost_lib.$libext"
10586 test -e "$boost_cv_lib_system_LIBS" ||
continue;; #(
10587 (*) # No: use -lboost_foo to find the shared library.
10588 boost_cv_lib_system_LIBS
="-l$boost_lib";;
10590 boost_save_LIBS
=$LIBS
10591 LIBS
="$boost_cv_lib_system_LIBS $LIBS"
10592 test x
"$boost_ldpath" != x
&& LDFLAGS
="$LDFLAGS -L$boost_ldpath"
10593 rm -f conftest
$ac_exeext
10594 boost_save_ac_ext
=$ac_ext
10596 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10597 # tries to link the existing object file instead of compiling from source.
10598 test -f conftest.
$ac_objext && ac_ext
=$ac_objext && boost_use_source
=false
&&
10599 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10600 if { { ac_try
="$ac_link"
10601 case "(($ac_try" in
10602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10606 $as_echo "$ac_try_echo"; } >&5
10607 (eval "$ac_link") 2>conftest.err
10609 if test -s conftest.err; then
10610 grep -v '^ *+' conftest.err >conftest.er1
10611 cat conftest.er1 >&5
10612 mv -f conftest.er1 conftest.err
10614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10615 test $ac_status = 0; } && {
10616 test -z "$ac_cxx_werror_flag" ||
10617 test ! -s conftest.err
10618 } && test -s conftest$ac_exeext && {
10619 test "$cross_compiling" = yes ||
10620 $as_executable_p conftest$ac_exeext
10622 boost_cv_lib_system=yes
10624 if $boost_use_source; then
10625 $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10629 boost_cv_lib_system=no
10631 ac_objext=$boost_save_ac_objext
10632 ac_ext=$boost_save_ac_ext
10633 rm -f core conftest.err conftest_ipa8_conftest.oo \
10635 ac_objext=$boost_save_ac_objext
10636 LDFLAGS=$boost_save_LDFLAGS
10637 LIBS=$boost_save_LIBS
10638 if test x"$boost_cv_lib_system" = xyes; then
10639 # Check or used cached result of whether or not using -R or
10640 # -rpath makes sense. Some implementations of ld, such as for
10641 # Mac OSX, require -rpath but -R is the flag known to work on
10642 # other systems. https://github.com/tsuna/boost.m4/issues/19
10643 if ${boost_cv_rpath_link_ldflag+:} false; then :
10644 $as_echo_n "(cached) " >&6
10646 case $boost_ldpath in
10647 '') # Nothing to do.
10648 boost_cv_rpath_link_ldflag=
10649 boost_rpath_link_ldflag_found=yes;;
10651 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10652 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10653 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10654 rm -f conftest$ac_exeext
10655 boost_save_ac_ext=$ac_ext
10657 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10658 # tries to link the existing object file instead of compiling from source.
10659 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10660 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10661 if { { ac_try="$ac_link"
10662 case "(($ac_try" in
10663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10664 *) ac_try_echo
=$ac_try;;
10666 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10667 $as_echo "$ac_try_echo"; } >&5
10668 (eval "$ac_link") 2>conftest.err
10670 if test -s conftest.err
; then
10671 grep -v '^ *+' conftest.err
>conftest.er1
10672 cat conftest.er1
>&5
10673 mv -f conftest.er1 conftest.err
10675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10676 test $ac_status = 0; } && {
10677 test -z "$ac_cxx_werror_flag" ||
10678 test ! -s conftest.err
10679 } && test -s conftest
$ac_exeext && {
10680 test "$cross_compiling" = yes ||
10681 $as_executable_p conftest
$ac_exeext
10683 boost_rpath_link_ldflag_found
=yes
10686 if $boost_use_source; then
10687 $as_echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.
$ac_ext >&5
10691 boost_rpath_link_ldflag_found
=no
10693 ac_objext
=$boost_save_ac_objext
10694 ac_ext
=$boost_save_ac_ext
10695 rm -f core conftest.err conftest_ipa8_conftest.oo \
10700 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10701 as_fn_error $?
"Unable to determine whether to use -R or -rpath" "$LINENO" 5
10703 LDFLAGS
=$boost_save_LDFLAGS
10704 LIBS
=$boost_save_LIBS
10708 test x
"$boost_ldpath" != x
&&
10709 boost_cv_lib_system_LDFLAGS
="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10710 boost_cv_lib_system_LDPATH
="$boost_ldpath"
10713 boost_failed_libs
="$boost_failed_libs@$boost_lib@"
10722 rm -f conftest.
$ac_objext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10726 $as_echo "$boost_cv_lib_system" >&6; }
10727 case $boost_cv_lib_system in #(
10728 (no
) $as_echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.
$ac_ext >&5
10731 as_fn_error $?
"cannot find the flags to link with Boost system" "$LINENO" 5
10734 BOOST_SYSTEM_LDFLAGS
=$boost_cv_lib_system_LDFLAGS
10735 BOOST_SYSTEM_LDPATH
=$boost_cv_lib_system_LDPATH
10736 BOOST_LDPATH
=$boost_cv_lib_system_LDPATH
10737 BOOST_SYSTEM_LIBS
=$boost_cv_lib_system_LIBS
10738 CPPFLAGS
=$boost_save_CPPFLAGS
10740 ac_cpp
='$CXXCPP $CPPFLAGS'
10741 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10748 if test ${boost_cv_lib_system:-no} != yes; then :
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10751 Boost support has been disabled because Boost.System not found" >&5
10752 $as_echo "$as_me: WARNING:
10753 Boost support has been disabled because Boost.System not found" >&2;}
10754 _mule_warning_8
=yes
10755 _mule_has_warnings
=yes
10757 with_boost
=disabled
10762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10763 CPPFLAGS
="$mule_backup_CPPFLAGS"
10764 if test x
"$boost_cv_inc_path" = xno
; then
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10767 Boost support has been disabled because Boost.Asio not found" >&5
10768 $as_echo "$as_me: WARNING:
10769 Boost support has been disabled because Boost.Asio not found" >&2;}
10770 _mule_warning_9
=yes
10771 _mule_has_warnings
=yes
10773 with_boost
=disabled
10777 ac_cpp
='$CXXCPP $CPPFLAGS'
10778 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10779 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10780 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10781 boost_save_CPPFLAGS
=$CPPFLAGS
10782 CPPFLAGS
="$CPPFLAGS $BOOST_CPPFLAGS"
10783 ac_fn_cxx_check_header_mongrel
"$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10784 if test "x$ac_cv_header_boost_asio_hpp" = xyes
; then :
10786 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10791 Boost support has been disabled because Boost.Asio not found" >&5
10792 $as_echo "$as_me: WARNING:
10793 Boost support has been disabled because Boost.Asio not found" >&2;}
10794 _mule_warning_10
=yes
10795 _mule_has_warnings
=yes
10797 with_boost
=disabled
10802 CPPFLAGS
=$boost_save_CPPFLAGS
10804 ac_cpp
='$CXXCPP $CPPFLAGS'
10805 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10806 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10807 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10813 Boost support has been disabled because of insufficient Boost version." >&5
10814 $as_echo "$as_me: WARNING:
10815 Boost support has been disabled because of insufficient Boost version." >&2;}
10816 _mule_warning_11
=yes
10817 _mule_has_warnings
=yes
10827 # Ok, we have all needed libs, now checking for other stuff
10828 if test "$LEX" = "flex"; then :
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
10831 $as_echo_n "checking for extended flex capabilities... " >&6; }
10833 extended_flex
=`flex --help | grep header-file`
10834 if test -n "$extended_flex"; then :
10835 HAVE_FLEX_EXTENDED
=yes
10837 HAVE_FLEX_EXTENDED
=no
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
10840 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
10842 if test $HAVE_FLEX_EXTENDED = no
; then :
10843 { $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
10844 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
10848 HAVE_FLEX_EXTENDED
=no
10852 # Checks for header files.
10853 ac_fn_cxx_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10854 if test "x$ac_cv_type_size_t" = xyes
; then :
10858 cat >>confdefs.h
<<_ACEOF
10859 #define size_t unsigned int
10864 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10865 # for constant arguments. Useless!
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10867 $as_echo_n "checking for working alloca.h... " >&6; }
10868 if ${ac_cv_working_alloca_h+:} false
; then :
10869 $as_echo_n "(cached) " >&6
10871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10873 #include <alloca.h>
10877 char *p = (char *) alloca (2 * sizeof (int));
10883 if ac_fn_cxx_try_link
"$LINENO"; then :
10884 ac_cv_working_alloca_h
=yes
10886 ac_cv_working_alloca_h
=no
10888 rm -f core conftest.err conftest.
$ac_objext \
10889 conftest
$ac_exeext conftest.
$ac_ext
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10892 $as_echo "$ac_cv_working_alloca_h" >&6; }
10893 if test $ac_cv_working_alloca_h = yes; then
10895 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10900 $as_echo_n "checking for alloca... " >&6; }
10901 if ${ac_cv_func_alloca_works+:} false
; then :
10902 $as_echo_n "(cached) " >&6
10904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10907 # define alloca __builtin_alloca
10910 # include <malloc.h>
10911 # define alloca _alloca
10913 # ifdef HAVE_ALLOCA_H
10914 # include <alloca.h>
10919 # ifndef alloca /* predefined by HP cc +Olibcalls */
10920 void *alloca (size_t);
10930 char *p = (char *) alloca (1);
10936 if ac_fn_cxx_try_link
"$LINENO"; then :
10937 ac_cv_func_alloca_works
=yes
10939 ac_cv_func_alloca_works
=no
10941 rm -f core conftest.err conftest.
$ac_objext \
10942 conftest
$ac_exeext conftest.
$ac_ext
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10945 $as_echo "$ac_cv_func_alloca_works" >&6; }
10947 if test $ac_cv_func_alloca_works = yes; then
10949 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10952 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10953 # that cause trouble. Some versions do not even contain alloca or
10954 # contain a buggy version. If you still want to use their alloca,
10955 # use ar to extract alloca.o from them instead of compiling alloca.c.
10957 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
10959 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10963 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10964 if ${ac_cv_os_cray+:} false
; then :
10965 $as_echo_n "(cached) " >&6
10967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969 #if defined CRAY && ! defined CRAY2
10976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10977 $EGREP "webecray" >/dev
/null
2>&1; then :
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10986 $as_echo "$ac_cv_os_cray" >&6; }
10987 if test $ac_cv_os_cray = yes; then
10988 for ac_func
in _getb67 GETB67 getb67
; do
10989 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10990 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10991 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10993 cat >>confdefs.h
<<_ACEOF
10994 #define CRAY_STACKSEG_END $ac_func
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11004 $as_echo_n "checking stack direction for C alloca... " >&6; }
11005 if ${ac_cv_c_stack_direction+:} false
; then :
11006 $as_echo_n "(cached) " >&6
11008 if test "$cross_compiling" = yes; then :
11009 ac_cv_c_stack_direction
=0
11011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11013 $ac_includes_default
11015 find_stack_direction (int *addr, int depth)
11017 int dir, dummy = 0;
11020 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
11021 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
11022 return dir + dummy;
11026 main (int argc, char **argv)
11028 return find_stack_direction (0, argc + !argv + 20) < 0;
11031 if ac_fn_cxx_try_run
"$LINENO"; then :
11032 ac_cv_c_stack_direction
=1
11034 ac_cv_c_stack_direction
=-1
11036 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11037 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11042 $as_echo "$ac_cv_c_stack_direction" >&6; }
11043 cat >>confdefs.h
<<_ACEOF
11044 #define STACK_DIRECTION $ac_cv_c_stack_direction
11050 ac_header_dirent
=no
11051 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11052 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11054 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11055 if eval \
${$as_ac_Header+:} false
; then :
11056 $as_echo_n "(cached) " >&6
11058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11060 #include <sys/types.h>
11072 if ac_fn_cxx_try_compile
"$LINENO"; then :
11073 eval "$as_ac_Header=yes"
11075 eval "$as_ac_Header=no"
11077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11079 eval ac_res
=\$
$as_ac_Header
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11081 $as_echo "$ac_res" >&6; }
11082 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11083 cat >>confdefs.h
<<_ACEOF
11084 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11087 ac_header_dirent
=$ac_hdr; break
11091 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11092 if test $ac_header_dirent = dirent.h
; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11094 $as_echo_n "checking for library containing opendir... " >&6; }
11095 if ${ac_cv_search_opendir+:} false
; then :
11096 $as_echo_n "(cached) " >&6
11098 ac_func_search_save_LIBS
=$LIBS
11099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h. */
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11117 for ac_lib
in '' dir
; do
11118 if test -z "$ac_lib"; then
11119 ac_res
="none required"
11122 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11124 if ac_fn_cxx_try_link
"$LINENO"; then :
11125 ac_cv_search_opendir
=$ac_res
11127 rm -f core conftest.err conftest.
$ac_objext \
11129 if ${ac_cv_search_opendir+:} false
; then :
11133 if ${ac_cv_search_opendir+:} false
; then :
11136 ac_cv_search_opendir
=no
11138 rm conftest.
$ac_ext
11139 LIBS
=$ac_func_search_save_LIBS
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11142 $as_echo "$ac_cv_search_opendir" >&6; }
11143 ac_res
=$ac_cv_search_opendir
11144 if test "$ac_res" != no
; then :
11145 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11151 $as_echo_n "checking for library containing opendir... " >&6; }
11152 if ${ac_cv_search_opendir+:} false
; then :
11153 $as_echo_n "(cached) " >&6
11155 ac_func_search_save_LIBS
=$LIBS
11156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11159 /* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11174 for ac_lib
in '' x
; do
11175 if test -z "$ac_lib"; then
11176 ac_res
="none required"
11179 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11181 if ac_fn_cxx_try_link
"$LINENO"; then :
11182 ac_cv_search_opendir
=$ac_res
11184 rm -f core conftest.err conftest.
$ac_objext \
11186 if ${ac_cv_search_opendir+:} false
; then :
11190 if ${ac_cv_search_opendir+:} false
; then :
11193 ac_cv_search_opendir
=no
11195 rm conftest.
$ac_ext
11196 LIBS
=$ac_func_search_save_LIBS
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11199 $as_echo "$ac_cv_search_opendir" >&6; }
11200 ac_res
=$ac_cv_search_opendir
11201 if test "$ac_res" != no
; then :
11202 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11209 $as_echo_n "checking for ANSI C header files... " >&6; }
11210 if ${ac_cv_header_stdc+:} false
; then :
11211 $as_echo_n "(cached) " >&6
11213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11215 #include <stdlib.h>
11216 #include <stdarg.h>
11217 #include <string.h>
11228 if ac_fn_cxx_try_compile
"$LINENO"; then :
11229 ac_cv_header_stdc
=yes
11231 ac_cv_header_stdc
=no
11233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11235 if test $ac_cv_header_stdc = yes; then
11236 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239 #include <string.h>
11242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11243 $EGREP "memchr" >/dev
/null
2>&1; then :
11246 ac_cv_header_stdc
=no
11252 if test $ac_cv_header_stdc = yes; then
11253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11256 #include <stdlib.h>
11259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11260 $EGREP "free" >/dev
/null
2>&1; then :
11263 ac_cv_header_stdc
=no
11269 if test $ac_cv_header_stdc = yes; then
11270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11271 if test "$cross_compiling" = yes; then :
11274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11277 #include <stdlib.h>
11278 #if ((' ' & 0x0FF) == 0x020)
11279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11282 # define ISLOWER(c) \
11283 (('a' <= (c) && (c) <= 'i') \
11284 || ('j' <= (c) && (c) <= 'r') \
11285 || ('s' <= (c) && (c) <= 'z'))
11286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11294 for (i = 0; i < 256; i++)
11295 if (XOR (islower (i), ISLOWER (i))
11296 || toupper (i) != TOUPPER (i))
11301 if ac_fn_cxx_try_run
"$LINENO"; then :
11304 ac_cv_header_stdc
=no
11306 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11307 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11313 $as_echo "$ac_cv_header_stdc" >&6; }
11314 if test $ac_cv_header_stdc = yes; then
11316 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11320 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
11322 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11323 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11324 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11325 cat >>confdefs.h
<<_ACEOF
11326 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11334 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11335 if ${ac_cv_header_sys_wait_h+:} false
; then :
11336 $as_echo_n "(cached) " >&6
11338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11340 #include <sys/types.h>
11341 #include <sys/wait.h>
11342 #ifndef WEXITSTATUS
11343 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11346 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11354 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11359 if ac_fn_cxx_try_compile
"$LINENO"; then :
11360 ac_cv_header_sys_wait_h
=yes
11362 ac_cv_header_sys_wait_h
=no
11364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11367 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11368 if test $ac_cv_header_sys_wait_h = yes; then
11370 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11376 # Checks for typedefs, structures, and compiler characteristics.
11377 ac_fn_cxx_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11378 if test "x$ac_cv_type_mode_t" = xyes
; then :
11382 cat >>confdefs.h
<<_ACEOF
11388 ac_fn_cxx_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11389 if test "x$ac_cv_type_off_t" = xyes
; then :
11393 cat >>confdefs.h
<<_ACEOF
11394 #define off_t long int
11399 ac_fn_cxx_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11400 if test "x$ac_cv_type_size_t" = xyes
; then :
11404 cat >>confdefs.h
<<_ACEOF
11405 #define size_t unsigned int
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11411 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11412 if ${ac_cv_header_time+:} false
; then :
11413 $as_echo_n "(cached) " >&6
11415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417 #include <sys/types.h>
11418 #include <sys/time.h>
11424 if ((struct tm *) 0)
11430 if ac_fn_cxx_try_compile
"$LINENO"; then :
11431 ac_cv_header_time
=yes
11433 ac_cv_header_time
=no
11435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11438 $as_echo "$ac_cv_header_time" >&6; }
11439 if test $ac_cv_header_time = yes; then
11441 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11446 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11447 if ${ac_cv_struct_tm+:} false
; then :
11448 $as_echo_n "(cached) " >&6
11450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11452 #include <sys/types.h>
11459 int *p = &tm.tm_sec;
11465 if ac_fn_cxx_try_compile
"$LINENO"; then :
11466 ac_cv_struct_tm
=time.h
11468 ac_cv_struct_tm
=sys
/time.h
11470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11473 $as_echo "$ac_cv_struct_tm" >&6; }
11474 if test $ac_cv_struct_tm = sys
/time.h
; then
11476 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11481 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11482 if ${ac_cv_type_uid_t+:} false
; then :
11483 $as_echo_n "(cached) " >&6
11485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11487 #include <sys/types.h>
11490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491 $EGREP "uid_t" >/dev
/null
2>&1; then :
11492 ac_cv_type_uid_t
=yes
11494 ac_cv_type_uid_t
=no
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11500 $as_echo "$ac_cv_type_uid_t" >&6; }
11501 if test $ac_cv_type_uid_t = no
; then
11503 $as_echo "#define uid_t int" >>confdefs.h
11506 $as_echo "#define gid_t int" >>confdefs.h
11510 ac_fn_cxx_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11511 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
11513 cat >>confdefs.h
<<_ACEOF
11514 #define HAVE_PTRDIFF_T 1
11522 # Checks for library functions.
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11524 $as_echo_n "checking whether closedir returns void... " >&6; }
11525 if ${ac_cv_func_closedir_void+:} false
; then :
11526 $as_echo_n "(cached) " >&6
11528 if test "$cross_compiling" = yes; then :
11529 ac_cv_func_closedir_void
=yes
11531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header_dirent>
11535 #ifndef __cplusplus
11542 return closedir (opendir (".")) != 0;
11547 if ac_fn_cxx_try_run
"$LINENO"; then :
11548 ac_cv_func_closedir_void
=no
11550 ac_cv_func_closedir_void
=yes
11552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11558 $as_echo "$ac_cv_func_closedir_void" >&6; }
11559 if test $ac_cv_func_closedir_void = yes; then
11561 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11565 if test $ac_cv_c_compiler_gnu = yes; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11567 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11568 if ${ac_cv_prog_gcc_traditional+:} false
; then :
11569 $as_echo_n "(cached) " >&6
11571 ac_pattern
="Autoconf.*'x'"
11572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11578 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
11579 ac_cv_prog_gcc_traditional
=yes
11581 ac_cv_prog_gcc_traditional
=no
11586 if test $ac_cv_prog_gcc_traditional = no
; then
11587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589 #include <termio.h>
11592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11593 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
11594 ac_cv_prog_gcc_traditional
=yes
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11601 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11602 if test $ac_cv_prog_gcc_traditional = yes; then
11603 CC
="$CC -traditional"
11607 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11608 if test "x$ac_cv_type_pid_t" = xyes
; then :
11612 cat >>confdefs.h
<<_ACEOF
11618 for ac_header
in vfork.h
11620 ac_fn_cxx_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11621 if test "x$ac_cv_header_vfork_h" = xyes
; then :
11622 cat >>confdefs.h
<<_ACEOF
11623 #define HAVE_VFORK_H 1
11630 for ac_func
in fork vfork
11632 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11633 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11634 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11635 cat >>confdefs.h
<<_ACEOF
11636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11642 if test "x$ac_cv_func_fork" = xyes
; then
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11644 $as_echo_n "checking for working fork... " >&6; }
11645 if ${ac_cv_func_fork_works+:} false
; then :
11646 $as_echo_n "(cached) " >&6
11648 if test "$cross_compiling" = yes; then :
11649 ac_cv_func_fork_works
=cross
11651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11653 $ac_includes_default
11658 /* By Ruediger Kuhlmann. */
11659 return fork () < 0;
11665 if ac_fn_cxx_try_run
"$LINENO"; then :
11666 ac_cv_func_fork_works
=yes
11668 ac_cv_func_fork_works
=no
11670 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11671 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11676 $as_echo "$ac_cv_func_fork_works" >&6; }
11679 ac_cv_func_fork_works
=$ac_cv_func_fork
11681 if test "x$ac_cv_func_fork_works" = xcross
; then
11683 *-*-amigaos* |
*-*-msdosdjgpp*)
11684 # Override, as these systems have only a dummy fork() stub
11685 ac_cv_func_fork_works
=no
11688 ac_cv_func_fork_works
=yes
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11692 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11694 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11695 if test "x$ac_cv_func_vfork" = xyes
; then
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11697 $as_echo_n "checking for working vfork... " >&6; }
11698 if ${ac_cv_func_vfork_works+:} false
; then :
11699 $as_echo_n "(cached) " >&6
11701 if test "$cross_compiling" = yes; then :
11702 ac_cv_func_vfork_works
=cross
11704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11705 /* end confdefs.h. */
11706 /* Thanks to Paul Eggert for this test. */
11707 $ac_includes_default
11708 #include <sys/wait.h>
11709 #ifdef HAVE_VFORK_H
11710 # include <vfork.h>
11712 /* On some sparc systems, changes by the child to local and incoming
11713 argument registers are propagated back to the parent. The compiler
11714 is told about this with #include <vfork.h>, but some compilers
11715 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11716 static variable whose address is put into a register that is
11717 clobbered by the vfork. */
11720 sparc_address_test (int arg)
11722 sparc_address_test (arg) int arg;
11725 static pid_t child;
11743 pid_t parent = getpid ();
11746 sparc_address_test (0);
11751 /* Here is another test for sparc vfork register problems. This
11752 test uses lots of local variables, at least as many local
11753 variables as main has allocated so far including compiler
11754 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11755 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11756 reuse the register of parent for one of the local variables,
11757 since it will think that parent can't possibly be used any more
11758 in this routine. Assigning to the local variable will thus
11759 munge parent in the parent process. */
11761 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11762 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11763 /* Convince the compiler that p..p7 are live; otherwise, it might
11764 use the same hardware register for all 8 local variables. */
11765 if (p != p1 || p != p2 || p != p3 || p != p4
11766 || p != p5 || p != p6 || p != p7)
11769 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11770 from child file descriptors. If the child closes a descriptor
11771 before it execs or exits, this munges the parent's descriptor
11772 as well. Test for this by closing stdout in the child. */
11773 _exit(close(fileno(stdout)) != 0);
11778 while (wait(&status) != child)
11781 /* Was there some problem with vforking? */
11784 /* Did the child fail? (This shouldn't happen.) */
11787 /* Did the vfork/compiler bug occur? */
11788 || parent != getpid()
11790 /* Did the file descriptor bug occur? */
11791 || fstat(fileno(stdout), &st) != 0
11796 if ac_fn_cxx_try_run
"$LINENO"; then :
11797 ac_cv_func_vfork_works
=yes
11799 ac_cv_func_vfork_works
=no
11801 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11802 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11807 $as_echo "$ac_cv_func_vfork_works" >&6; }
11810 if test "x$ac_cv_func_fork_works" = xcross
; then
11811 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11813 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11816 if test "x$ac_cv_func_vfork_works" = xyes
; then
11818 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11822 $as_echo "#define vfork fork" >>confdefs.h
11825 if test "x$ac_cv_func_fork_works" = xyes
; then
11827 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11832 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11833 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
11834 $as_echo_n "(cached) " >&6
11836 rm -f conftest.sym conftest.
file
11837 echo >conftest.
file
11838 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11839 if test "$cross_compiling" = yes; then :
11840 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844 $ac_includes_default
11849 /* Linux will dereference the symlink and fail, as required by POSIX.
11850 That is better in the sense that it means we will not
11851 have to compile and use the lstat wrapper. */
11852 return lstat ("conftest.sym/", &sbuf) == 0;
11857 if ac_fn_cxx_try_run
"$LINENO"; then :
11858 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11860 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11862 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11863 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11867 # If the `ln -s' command failed, then we probably don't even
11868 # have an lstat function.
11869 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11871 rm -f conftest.sym conftest.
file
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11875 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11877 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11879 cat >>confdefs.h
<<_ACEOF
11880 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11884 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
11885 case " $LIBOBJS " in
11886 *" lstat.$ac_objext "* ) ;;
11887 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11893 if test x
$SYS != xwin32
; then :
11895 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11896 # -lseq on Dynix/PTX, -lgen on Unixware.
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11898 $as_echo_n "checking for library containing getmntent... " >&6; }
11899 if ${ac_cv_search_getmntent+:} false
; then :
11900 $as_echo_n "(cached) " >&6
11902 ac_func_search_save_LIBS
=$LIBS
11903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11906 /* Override any GCC internal prototype to avoid an error.
11907 Use char because int might match the return type of a GCC
11908 builtin and then its argument prototype would still apply. */
11916 return getmntent ();
11921 for ac_lib
in '' sun
seq gen
; do
11922 if test -z "$ac_lib"; then
11923 ac_res
="none required"
11926 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11928 if ac_fn_cxx_try_link
"$LINENO"; then :
11929 ac_cv_search_getmntent
=$ac_res
11931 rm -f core conftest.err conftest.
$ac_objext \
11933 if ${ac_cv_search_getmntent+:} false
; then :
11937 if ${ac_cv_search_getmntent+:} false
; then :
11940 ac_cv_search_getmntent
=no
11942 rm conftest.
$ac_ext
11943 LIBS
=$ac_func_search_save_LIBS
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11946 $as_echo "$ac_cv_search_getmntent" >&6; }
11947 ac_res
=$ac_cv_search_getmntent
11948 if test "$ac_res" != no
; then :
11949 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11950 ac_cv_func_getmntent
=yes
11952 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11955 ac_cv_func_getmntent
=no
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11960 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11961 if ${ac_cv_func_lstat_empty_string_bug+:} false
; then :
11962 $as_echo_n "(cached) " >&6
11964 if test "$cross_compiling" = yes; then :
11965 ac_cv_func_lstat_empty_string_bug
=yes
11967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11969 $ac_includes_default
11974 return lstat ("", &sbuf) == 0;
11979 if ac_fn_cxx_try_run
"$LINENO"; then :
11980 ac_cv_func_lstat_empty_string_bug
=no
11982 ac_cv_func_lstat_empty_string_bug
=yes
11984 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11985 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11990 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11991 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11992 case " $LIBOBJS " in
11993 *" lstat.$ac_objext "* ) ;;
11994 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11999 cat >>confdefs.h
<<_ACEOF
12000 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
12006 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
12007 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false
; then :
12008 $as_echo_n "(cached) " >&6
12010 rm -f conftest.sym conftest.
file
12011 echo >conftest.
file
12012 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
12013 if test "$cross_compiling" = yes; then :
12014 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 $ac_includes_default
12023 /* Linux will dereference the symlink and fail, as required by POSIX.
12024 That is better in the sense that it means we will not
12025 have to compile and use the lstat wrapper. */
12026 return lstat ("conftest.sym/", &sbuf) == 0;
12031 if ac_fn_cxx_try_run
"$LINENO"; then :
12032 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
12034 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12036 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12037 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12041 # If the `ln -s' command failed, then we probably don't even
12042 # have an lstat function.
12043 ac_cv_func_lstat_dereferences_slashed_symlink
=no
12045 rm -f conftest.sym conftest.
file
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12049 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12051 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12053 cat >>confdefs.h
<<_ACEOF
12054 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12058 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
12059 case " $LIBOBJS " in
12060 *" lstat.$ac_objext "* ) ;;
12061 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12070 $as_echo_n "checking for working memcmp... " >&6; }
12071 if ${ac_cv_func_memcmp_working+:} false
; then :
12072 $as_echo_n "(cached) " >&6
12074 if test "$cross_compiling" = yes; then :
12075 ac_cv_func_memcmp_working
=no
12077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 $ac_includes_default
12084 /* Some versions of memcmp are not 8-bit clean. */
12085 char c0 = '\100', c1 = '\200', c2 = '\201';
12086 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12089 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12090 or more and with at least one buffer not starting on a 4-byte boundary.
12091 William Lewis provided this test program. */
12096 for (i = 0; i < 4; i++)
12100 strcpy (a, "--------01111111");
12101 strcpy (b, "--------10000000");
12102 if (memcmp (a, b, 16) >= 0)
12112 if ac_fn_cxx_try_run
"$LINENO"; then :
12113 ac_cv_func_memcmp_working
=yes
12115 ac_cv_func_memcmp_working
=no
12117 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12118 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12123 $as_echo "$ac_cv_func_memcmp_working" >&6; }
12124 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
12125 *" memcmp.$ac_objext "* ) ;;
12126 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
12131 for ac_header
in sys
/select.h sys
/socket.h
12133 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12134 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12135 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12136 cat >>confdefs.h
<<_ACEOF
12137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
12145 $as_echo_n "checking types of arguments for select... " >&6; }
12146 if ${ac_cv_func_select_args+:} false
; then :
12147 $as_echo_n "(cached) " >&6
12149 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
12150 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12151 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
12152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12154 $ac_includes_default
12155 #ifdef HAVE_SYS_SELECT_H
12156 # include <sys/select.h>
12158 #ifdef HAVE_SYS_SOCKET_H
12159 # include <sys/socket.h>
12165 extern int select ($ac_arg1,
12166 $ac_arg234, $ac_arg234, $ac_arg234,
12172 if ac_fn_cxx_try_compile
"$LINENO"; then :
12173 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12179 # Provide a safe default value.
12180 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
12184 $as_echo "$ac_cv_func_select_args" >&6; }
12185 ac_save_IFS
=$IFS; IFS
=','
12186 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12190 cat >>confdefs.h
<<_ACEOF
12191 #define SELECT_TYPE_ARG1 $1
12195 cat >>confdefs.h
<<_ACEOF
12196 #define SELECT_TYPE_ARG234 ($2)
12200 cat >>confdefs.h
<<_ACEOF
12201 #define SELECT_TYPE_ARG5 ($3)
12206 if ${ac_cv_func_setvbuf_reversed+:} false
; then :
12207 $as_echo_n "(cached) " >&6
12209 ac_cv_func_setvbuf_reversed
=no
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12214 $as_echo_n "checking return type of signal handlers... " >&6; }
12215 if ${ac_cv_type_signal+:} false
; then :
12216 $as_echo_n "(cached) " >&6
12218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12220 #include <sys/types.h>
12221 #include <signal.h>
12226 return *(signal (0, 0)) (0) == 1;
12231 if ac_fn_cxx_try_compile
"$LINENO"; then :
12232 ac_cv_type_signal
=int
12234 ac_cv_type_signal
=void
12236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12239 $as_echo "$ac_cv_type_signal" >&6; }
12241 cat >>confdefs.h
<<_ACEOF
12242 #define RETSIGTYPE $ac_cv_type_signal
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
12247 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
12248 if ${ac_cv_func_stat_empty_string_bug+:} false
; then :
12249 $as_echo_n "(cached) " >&6
12251 if test "$cross_compiling" = yes; then :
12252 ac_cv_func_stat_empty_string_bug
=yes
12254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256 $ac_includes_default
12261 return stat ("", &sbuf) == 0;
12266 if ac_fn_cxx_try_run
"$LINENO"; then :
12267 ac_cv_func_stat_empty_string_bug
=no
12269 ac_cv_func_stat_empty_string_bug
=yes
12271 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12272 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12277 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12278 if test $ac_cv_func_stat_empty_string_bug = yes; then
12279 case " $LIBOBJS " in
12280 *" stat.$ac_objext "* ) ;;
12281 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
12286 cat >>confdefs.h
<<_ACEOF
12287 #define HAVE_STAT_EMPTY_STRING_BUG 1
12292 for ac_func
in strftime
12294 ac_fn_cxx_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
12295 if test "x$ac_cv_func_strftime" = xyes
; then :
12296 cat >>confdefs.h
<<_ACEOF
12297 #define HAVE_STRFTIME 1
12301 # strftime is in -lintl on SCO UNIX.
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12303 $as_echo_n "checking for strftime in -lintl... " >&6; }
12304 if ${ac_cv_lib_intl_strftime+:} false
; then :
12305 $as_echo_n "(cached) " >&6
12307 ac_check_lib_save_LIBS
=$LIBS
12308 LIBS
="-lintl $LIBS"
12309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12312 /* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12322 return strftime ();
12327 if ac_fn_cxx_try_link
"$LINENO"; then :
12328 ac_cv_lib_intl_strftime
=yes
12330 ac_cv_lib_intl_strftime
=no
12332 rm -f core conftest.err conftest.
$ac_objext \
12333 conftest
$ac_exeext conftest.
$ac_ext
12334 LIBS
=$ac_check_lib_save_LIBS
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12337 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12338 if test "x$ac_cv_lib_intl_strftime" = xyes
; then :
12339 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12341 LIBS
="-lintl $LIBS"
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12348 $as_echo_n "checking for working strtod... " >&6; }
12349 if ${ac_cv_func_strtod+:} false
; then :
12350 $as_echo_n "(cached) " >&6
12352 if test "$cross_compiling" = yes; then :
12353 ac_cv_func_strtod
=no
12355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12358 $ac_includes_default
12366 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12367 char *string = " +69";
12370 value = strtod (string, &term);
12371 if (value != 69 || term != (string + 4))
12376 /* Under Solaris 2.4, strtod returns the wrong value for the
12377 terminating character under some conditions. */
12378 char *string = "NaN";
12380 strtod (string, &term);
12381 if (term != string && *(term - 1) == 0)
12388 if ac_fn_cxx_try_run
"$LINENO"; then :
12389 ac_cv_func_strtod
=yes
12391 ac_cv_func_strtod
=no
12393 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12394 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12399 $as_echo "$ac_cv_func_strtod" >&6; }
12400 if test $ac_cv_func_strtod = no
; then
12401 case " $LIBOBJS " in
12402 *" strtod.$ac_objext "* ) ;;
12403 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
12407 ac_fn_cxx_check_func
"$LINENO" "pow" "ac_cv_func_pow"
12408 if test "x$ac_cv_func_pow" = xyes
; then :
12412 if test $ac_cv_func_pow = no
; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12414 $as_echo_n "checking for pow in -lm... " >&6; }
12415 if ${ac_cv_lib_m_pow+:} false
; then :
12416 $as_echo_n "(cached) " >&6
12418 ac_check_lib_save_LIBS
=$LIBS
12420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h. */
12423 /* Override any GCC internal prototype to avoid an error.
12424 Use char because int might match the return type of a GCC
12425 builtin and then its argument prototype would still apply. */
12438 if ac_fn_cxx_try_link
"$LINENO"; then :
12439 ac_cv_lib_m_pow
=yes
12443 rm -f core conftest.err conftest.
$ac_objext \
12444 conftest
$ac_exeext conftest.
$ac_ext
12445 LIBS
=$ac_check_lib_save_LIBS
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12448 $as_echo "$ac_cv_lib_m_pow" >&6; }
12449 if test "x$ac_cv_lib_m_pow" = xyes
; then :
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12453 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12460 for ac_func
in vprintf
12462 ac_fn_cxx_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
12463 if test "x$ac_cv_func_vprintf" = xyes
; then :
12464 cat >>confdefs.h
<<_ACEOF
12465 #define HAVE_VPRINTF 1
12468 ac_fn_cxx_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
12469 if test "x$ac_cv_func__doprnt" = xyes
; then :
12471 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12479 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12482 configure cannot check whether malloc() and realloc() are GNU libc
12483 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12484 run configure with the --without-gnu-malloc switch." >&5
12485 $as_echo "$as_me: WARNING:
12486 configure cannot check whether malloc() and realloc() are GNU libc
12487 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12488 run configure with the --without-gnu-malloc switch." >&2;}
12489 _mule_warning_12
=yes
12490 _mule_has_warnings
=yes
12492 ac_cv_func_malloc_0_nonnull
=yes
12493 ac_cv_func_realloc_0_nonnull
=yes
12496 for ac_header
in stdlib.h
12498 ac_fn_cxx_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12499 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
12500 cat >>confdefs.h
<<_ACEOF
12501 #define HAVE_STDLIB_H 1
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12509 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12510 if ${ac_cv_func_malloc_0_nonnull+:} false
; then :
12511 $as_echo_n "(cached) " >&6
12513 if test "$cross_compiling" = yes; then :
12514 ac_cv_func_malloc_0_nonnull
=no
12516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12519 # include <stdlib.h>
12527 return ! malloc (0);
12532 if ac_fn_cxx_try_run
"$LINENO"; then :
12533 ac_cv_func_malloc_0_nonnull
=yes
12535 ac_cv_func_malloc_0_nonnull
=no
12537 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12538 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12543 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12544 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12546 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12549 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12551 case " $LIBOBJS " in
12552 *" malloc.$ac_objext "* ) ;;
12553 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
12558 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12563 for ac_header
in stdlib.h
12565 ac_fn_cxx_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12566 if test "x$ac_cv_header_stdlib_h" = xyes
; then :
12567 cat >>confdefs.h
<<_ACEOF
12568 #define HAVE_STDLIB_H 1
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12576 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12577 if ${ac_cv_func_realloc_0_nonnull+:} false
; then :
12578 $as_echo_n "(cached) " >&6
12580 if test "$cross_compiling" = yes; then :
12581 ac_cv_func_realloc_0_nonnull
=no
12583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12585 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12586 # include <stdlib.h>
12594 return ! realloc (0, 0);
12599 if ac_fn_cxx_try_run
"$LINENO"; then :
12600 ac_cv_func_realloc_0_nonnull
=yes
12602 ac_cv_func_realloc_0_nonnull
=no
12604 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12605 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12610 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12611 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12613 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12616 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12618 case " $LIBOBJS " in
12619 *" realloc.$ac_objext "* ) ;;
12620 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
12625 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12630 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
12632 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12633 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12634 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12635 cat >>confdefs.h
<<_ACEOF
12636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12647 for ac_header
in $ac_header_list
12649 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12650 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12652 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12653 cat >>confdefs.h
<<_ACEOF
12654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12667 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12669 # Check whether --enable-mmap was given.
12670 if test "${enable_mmap+set}" = set; then :
12671 enableval
=$enable_mmap;
12678 if test ${enable_mmap:-no} = yes; then :
12680 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12683 for ac_func
in getpagesize
12685 ac_fn_cxx_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12686 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12687 cat >>confdefs.h
<<_ACEOF
12688 #define HAVE_GETPAGESIZE 1
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12695 $as_echo_n "checking for working mmap... " >&6; }
12696 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12697 $as_echo_n "(cached) " >&6
12699 if test "$cross_compiling" = yes; then :
12700 ac_cv_func_mmap_fixed_mapped
=no
12702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 $ac_includes_default
12705 /* malloc might have been renamed as rpl_malloc. */
12708 /* Thanks to Mike Haertel and Jim Avera for this test.
12709 Here is a matrix of mmap possibilities:
12710 mmap private not fixed
12711 mmap private fixed at somewhere currently unmapped
12712 mmap private fixed at somewhere already mapped
12713 mmap shared not fixed
12714 mmap shared fixed at somewhere currently unmapped
12715 mmap shared fixed at somewhere already mapped
12716 For private mappings, we should verify that changes cannot be read()
12717 back from the file, nor mmap's back from the file at a different
12718 address. (There have been systems where private was not correctly
12719 implemented like the infamous i386 svr4.0, and systems where the
12720 VM page cache was not coherent with the file system buffer cache
12721 like early versions of FreeBSD and possibly contemporary NetBSD.)
12722 For shared mappings, we should conversely verify that changes get
12723 propagated back to all the places they're supposed to be.
12725 Grep wants private fixed already mapped.
12726 The main things grep needs to know about mmap are:
12727 * does it exist and is it safe to write into the mmap'd area
12728 * how to use it (BSD variants) */
12731 #include <sys/mman.h>
12733 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12737 /* This mess was copied from the GNU getpagesize.h. */
12738 #ifndef HAVE_GETPAGESIZE
12739 # ifdef _SC_PAGESIZE
12740 # define getpagesize() sysconf(_SC_PAGESIZE)
12741 # else /* no _SC_PAGESIZE */
12742 # ifdef HAVE_SYS_PARAM_H
12743 # include <sys/param.h>
12744 # ifdef EXEC_PAGESIZE
12745 # define getpagesize() EXEC_PAGESIZE
12746 # else /* no EXEC_PAGESIZE */
12748 # define getpagesize() NBPG * CLSIZE
12751 # endif /* no CLSIZE */
12752 # else /* no NBPG */
12754 # define getpagesize() NBPC
12755 # else /* no NBPC */
12757 # define getpagesize() PAGESIZE
12758 # endif /* PAGESIZE */
12759 # endif /* no NBPC */
12760 # endif /* no NBPG */
12761 # endif /* no EXEC_PAGESIZE */
12762 # else /* no HAVE_SYS_PARAM_H */
12763 # define getpagesize() 8192 /* punt totally */
12764 # endif /* no HAVE_SYS_PARAM_H */
12765 # endif /* no _SC_PAGESIZE */
12767 #endif /* no HAVE_GETPAGESIZE */
12772 char *data, *data2, *data3;
12776 pagesize = getpagesize ();
12778 /* First, make a file with some known garbage in it. */
12779 data = (char *) malloc (pagesize);
12782 for (i = 0; i < pagesize; ++i)
12783 *(data + i) = rand ();
12785 fd = creat ("conftest.mmap", 0600);
12788 if (write (fd, data, pagesize) != pagesize)
12792 /* Next, check that the tail of a page is zero-filled. File must have
12793 non-zero length, otherwise we risk SIGBUS for entire page. */
12794 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12797 data2 = (char *) "";
12798 if (write (fd2, data2, 1) != 1)
12800 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12801 if (data2 == MAP_FAILED)
12803 for (i = 0; i < pagesize; ++i)
12807 if (munmap (data2, pagesize))
12810 /* Next, try to mmap the file at a fixed address which already has
12811 something else allocated at it. If we can, also make sure that
12812 we see the same garbage. */
12813 fd = open ("conftest.mmap", O_RDWR);
12816 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12817 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12819 for (i = 0; i < pagesize; ++i)
12820 if (*(data + i) != *(data2 + i))
12823 /* Finally, make sure that changes to the mapped area do not
12824 percolate back to the file as seen by read(). (This is a bug on
12825 some variants of i386 svr4.0.) */
12826 for (i = 0; i < pagesize; ++i)
12827 *(data2 + i) = *(data2 + i) + 1;
12828 data3 = (char *) malloc (pagesize);
12831 if (read (fd, data3, pagesize) != pagesize)
12833 for (i = 0; i < pagesize; ++i)
12834 if (*(data + i) != *(data3 + i))
12840 if ac_fn_cxx_try_run
"$LINENO"; then :
12841 ac_cv_func_mmap_fixed_mapped
=yes
12843 ac_cv_func_mmap_fixed_mapped
=no
12845 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12846 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12851 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12852 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12854 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12857 rm -f conftest.mmap conftest.txt
12859 for ac_func
in munmap sysconf
12861 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12862 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12863 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12864 cat >>confdefs.h
<<_ACEOF
12865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12871 if test $ac_cv_func_sysconf = yes; then :
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12874 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h. */
12879 #include <unistd.h>
12885 return sysconf(_SC_PAGESIZE);
12892 if ac_fn_cxx_try_link
"$LINENO"; then :
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12895 $as_echo "_SC_PAGESIZE" >&6; }
12897 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12906 #include <unistd.h>
12912 return sysconf(_SC_PAGE_SIZE);
12919 if ac_fn_cxx_try_link
"$LINENO"; then :
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12922 $as_echo "_SC_PAGE_SIZE" >&6; }
12924 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12930 $as_echo "none" >&6; }
12933 rm -f core conftest.err conftest.
$ac_objext \
12934 conftest
$ac_exeext conftest.
$ac_ext
12937 rm -f core conftest.err conftest.
$ac_objext \
12938 conftest
$ac_exeext conftest.
$ac_ext
12947 # Look for a way to preallocate disk space for files.
12948 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12951 $as_echo_n "checking for fallocate... " >&6; }
12952 mule_backup_CPPFLAGS
="$CPPFLAGS"
12953 CPPFLAGS
="$CPPFLAGS $WX_CPPFLAGS"
12954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12955 /* end confdefs.h. */
12958 #ifndef _GNU_SOURCE
12959 # define _GNU_SOURCE
12961 #ifdef HAVE_FCNTL_H
12962 # include <fcntl.h>
12964 #include <linux/falloc.h>
12970 fallocate(0, 0, 0, 0);
12977 if ac_fn_cxx_try_link
"$LINENO"; then :
12980 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983 $as_echo "yes" >&6; }
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 $as_echo "no" >&6; }
12991 rm -f core conftest.err conftest.
$ac_objext \
12992 conftest
$ac_exeext conftest.
$ac_ext
12993 CPPFLAGS
="$mule_backup_CPPFLAGS"
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12997 $as_echo_n "checking for SYS_fallocate... " >&6; }
12998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13002 #include <sys/syscall.h>
13003 #include <sys/types.h>
13004 #include <unistd.h>
13010 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
13017 if ac_fn_cxx_try_link
"$LINENO"; then :
13020 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13023 $as_echo "yes" >&6; }
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13031 rm -f core conftest.err conftest.
$ac_objext \
13032 conftest
$ac_exeext conftest.
$ac_ext
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
13035 $as_echo_n "checking for posix_fallocate... " >&6; }
13036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13040 #define _XOPEN_SOURCE 600
13041 #include <stdlib.h>
13042 #ifdef HAVE_FCNTL_H
13043 # include <fcntl.h>
13050 posix_fallocate(0, 0, 0);
13057 if ac_fn_cxx_try_link
"$LINENO"; then :
13060 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13063 $as_echo "yes" >&6; }
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13071 rm -f core conftest.err conftest.
$ac_objext \
13072 conftest
$ac_exeext conftest.
$ac_ext
13078 ac_cpp
='$CPP $CPPFLAGS'
13079 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13080 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13081 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13083 # Checking Native Language Support
13087 if test -n "$ac_aux_dir"; then
13088 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
13090 if test -z "$MKINSTALLDIRS"; then
13091 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
13098 # Extract the first word of "msgfmt", so it can be a program name with args.
13099 set dummy msgfmt
; ac_word
=$2
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101 $as_echo_n "checking for $ac_word... " >&6; }
13102 if ${ac_cv_path_MSGFMT+:} false
; then :
13103 $as_echo_n "(cached) " >&6
13107 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
13110 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13111 for ac_dir
in $PATH; do
13112 test -z "$ac_dir" && ac_dir
=.
13113 if test -f $ac_dir/$ac_word; then
13114 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
13115 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13116 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
13122 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
13126 MSGFMT
="$ac_cv_path_MSGFMT"
13127 if test "$MSGFMT" != ":"; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13129 $as_echo "$MSGFMT" >&6; }
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132 $as_echo "no" >&6; }
13135 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13136 set dummy gmsgfmt
; ac_word
=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if ${ac_cv_path_GMSGFMT+:} false
; then :
13140 $as_echo_n "(cached) " >&6
13144 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13148 for as_dir
in $PATH
13151 test -z "$as_dir" && as_dir
=.
13152 for ac_exec_ext
in '' $ac_executable_extensions; do
13153 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13154 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
13166 GMSGFMT
=$ac_cv_path_GMSGFMT
13167 if test -n "$GMSGFMT"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13169 $as_echo "$GMSGFMT" >&6; }
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13177 # Extract the first word of "xgettext", so it can be a program name with args.
13178 set dummy xgettext
; ac_word
=$2
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180 $as_echo_n "checking for $ac_word... " >&6; }
13181 if ${ac_cv_path_XGETTEXT+:} false
; then :
13182 $as_echo_n "(cached) " >&6
13184 case "$XGETTEXT" in
13186 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13189 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13190 for ac_dir
in $PATH; do
13191 test -z "$ac_dir" && ac_dir
=.
13192 if test -f $ac_dir/$ac_word; then
13193 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
13194 (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
13195 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
13201 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13205 XGETTEXT
="$ac_cv_path_XGETTEXT"
13206 if test "$XGETTEXT" != ":"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13208 $as_echo "$XGETTEXT" >&6; }
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13216 # Extract the first word of "msgmerge", so it can be a program name with args.
13217 set dummy msgmerge
; ac_word
=$2
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13219 $as_echo_n "checking for $ac_word... " >&6; }
13220 if ${ac_cv_path_MSGMERGE+:} false
; then :
13221 $as_echo_n "(cached) " >&6
13223 case "$MSGMERGE" in
13225 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
13228 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13229 for ac_dir
in $PATH; do
13230 test -z "$ac_dir" && ac_dir
=.
13231 if test -f $ac_dir/$ac_word; then
13232 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
13233 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word"
13239 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
13243 MSGMERGE
="$ac_cv_path_MSGMERGE"
13244 if test "$MSGMERGE" != ":"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13246 $as_echo "$MSGMERGE" >&6; }
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13253 if test "$GMSGFMT" != ":"; then
13254 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
13255 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13258 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13260 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13265 if test "$XGETTEXT" != ":"; then
13266 if $XGETTEXT --omit-header --copyright-holder= /dev
/null
>/dev
/null
2>&1 &&
13267 (if $XGETTEXT --omit-header --copyright-holder= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13271 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13277 ac_config_commands
="$ac_config_commands default-1"
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
13282 $as_echo_n "checking for strerror in -lcposix... " >&6; }
13283 if ${ac_cv_lib_cposix_strerror+:} false
; then :
13284 $as_echo_n "(cached) " >&6
13286 ac_check_lib_save_LIBS
=$LIBS
13287 LIBS
="-lcposix $LIBS"
13288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13301 return strerror ();
13306 if ac_fn_c_try_link
"$LINENO"; then :
13307 ac_cv_lib_cposix_strerror
=yes
13309 ac_cv_lib_cposix_strerror
=no
13311 rm -f core conftest.err conftest.
$ac_objext \
13312 conftest
$ac_exeext conftest.
$ac_ext
13313 LIBS
=$ac_check_lib_save_LIBS
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
13316 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
13317 if test "x$ac_cv_lib_cposix_strerror" = xyes
; then :
13318 LIBS
="$LIBS -lcposix"
13324 for ac_func
in getpagesize
13326 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13327 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13328 cat >>confdefs.h
<<_ACEOF
13329 #define HAVE_GETPAGESIZE 1
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13336 $as_echo_n "checking for working mmap... " >&6; }
13337 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13338 $as_echo_n "(cached) " >&6
13340 if test "$cross_compiling" = yes; then :
13341 ac_cv_func_mmap_fixed_mapped
=no
13343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345 $ac_includes_default
13346 /* malloc might have been renamed as rpl_malloc. */
13349 /* Thanks to Mike Haertel and Jim Avera for this test.
13350 Here is a matrix of mmap possibilities:
13351 mmap private not fixed
13352 mmap private fixed at somewhere currently unmapped
13353 mmap private fixed at somewhere already mapped
13354 mmap shared not fixed
13355 mmap shared fixed at somewhere currently unmapped
13356 mmap shared fixed at somewhere already mapped
13357 For private mappings, we should verify that changes cannot be read()
13358 back from the file, nor mmap's back from the file at a different
13359 address. (There have been systems where private was not correctly
13360 implemented like the infamous i386 svr4.0, and systems where the
13361 VM page cache was not coherent with the file system buffer cache
13362 like early versions of FreeBSD and possibly contemporary NetBSD.)
13363 For shared mappings, we should conversely verify that changes get
13364 propagated back to all the places they're supposed to be.
13366 Grep wants private fixed already mapped.
13367 The main things grep needs to know about mmap are:
13368 * does it exist and is it safe to write into the mmap'd area
13369 * how to use it (BSD variants) */
13372 #include <sys/mman.h>
13374 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13378 /* This mess was copied from the GNU getpagesize.h. */
13379 #ifndef HAVE_GETPAGESIZE
13380 # ifdef _SC_PAGESIZE
13381 # define getpagesize() sysconf(_SC_PAGESIZE)
13382 # else /* no _SC_PAGESIZE */
13383 # ifdef HAVE_SYS_PARAM_H
13384 # include <sys/param.h>
13385 # ifdef EXEC_PAGESIZE
13386 # define getpagesize() EXEC_PAGESIZE
13387 # else /* no EXEC_PAGESIZE */
13389 # define getpagesize() NBPG * CLSIZE
13392 # endif /* no CLSIZE */
13393 # else /* no NBPG */
13395 # define getpagesize() NBPC
13396 # else /* no NBPC */
13398 # define getpagesize() PAGESIZE
13399 # endif /* PAGESIZE */
13400 # endif /* no NBPC */
13401 # endif /* no NBPG */
13402 # endif /* no EXEC_PAGESIZE */
13403 # else /* no HAVE_SYS_PARAM_H */
13404 # define getpagesize() 8192 /* punt totally */
13405 # endif /* no HAVE_SYS_PARAM_H */
13406 # endif /* no _SC_PAGESIZE */
13408 #endif /* no HAVE_GETPAGESIZE */
13413 char *data, *data2, *data3;
13414 const char *cdata2;
13418 pagesize = getpagesize ();
13420 /* First, make a file with some known garbage in it. */
13421 data = (char *) malloc (pagesize);
13424 for (i = 0; i < pagesize; ++i)
13425 *(data + i) = rand ();
13427 fd = creat ("conftest.mmap", 0600);
13430 if (write (fd, data, pagesize) != pagesize)
13434 /* Next, check that the tail of a page is zero-filled. File must have
13435 non-zero length, otherwise we risk SIGBUS for entire page. */
13436 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13440 if (write (fd2, cdata2, 1) != 1)
13442 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13443 if (data2 == MAP_FAILED)
13445 for (i = 0; i < pagesize; ++i)
13449 if (munmap (data2, pagesize))
13452 /* Next, try to mmap the file at a fixed address which already has
13453 something else allocated at it. If we can, also make sure that
13454 we see the same garbage. */
13455 fd = open ("conftest.mmap", O_RDWR);
13458 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13459 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13461 for (i = 0; i < pagesize; ++i)
13462 if (*(data + i) != *(data2 + i))
13465 /* Finally, make sure that changes to the mapped area do not
13466 percolate back to the file as seen by read(). (This is a bug on
13467 some variants of i386 svr4.0.) */
13468 for (i = 0; i < pagesize; ++i)
13469 *(data2 + i) = *(data2 + i) + 1;
13470 data3 = (char *) malloc (pagesize);
13473 if (read (fd, data3, pagesize) != pagesize)
13475 for (i = 0; i < pagesize; ++i)
13476 if (*(data + i) != *(data3 + i))
13484 if ac_fn_c_try_run
"$LINENO"; then :
13485 ac_cv_func_mmap_fixed_mapped
=yes
13487 ac_cv_func_mmap_fixed_mapped
=no
13489 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13490 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13495 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13496 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13498 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13501 rm -f conftest.mmap conftest.txt
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13505 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13506 if ${ac_cv_gnu_library_2_1+:} false
; then :
13507 $as_echo_n "(cached) " >&6
13509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13512 #include <features.h>
13513 #ifdef __GNU_LIBRARY__
13514 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13521 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
13522 ac_cv_gnu_library_2_1
=yes
13524 ac_cv_gnu_library_2_1
=no
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13532 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13534 GLIBC21
="$ac_cv_gnu_library_2_1"
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13540 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13541 if ${gt_cv_int_divbyzero_sigfpe+:} false
; then :
13542 $as_echo_n "(cached) " >&6
13545 if test "$cross_compiling" = yes; then :
13547 # Guess based on the CPU.
13548 case "$host_cpu" in
13549 alpha
* | i3456786 | m68k | s390
*)
13550 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
13552 gt_cv_int_divbyzero_sigfpe
="guessing no";;
13556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13559 #include <stdlib.h>
13560 #include <signal.h>
13564 sigfpe_handler (int sig)
13566 sigfpe_handler (sig) int sig;
13569 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13570 exit (sig != SIGFPE);
13580 signal (SIGFPE, sigfpe_handler);
13581 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13582 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13583 signal (SIGTRAP, sigfpe_handler);
13585 /* Linux/SPARC yields signal SIGILL. */
13586 #if defined (__sparc__) && defined (__linux__)
13587 signal (SIGILL, sigfpe_handler);
13596 if ac_fn_c_try_run
"$LINENO"; then :
13597 gt_cv_int_divbyzero_sigfpe
=yes
13599 gt_cv_int_divbyzero_sigfpe
=no
13601 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13602 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13608 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13609 case "$gt_cv_int_divbyzero_sigfpe" in
13614 cat >>confdefs.h
<<_ACEOF
13615 #define INTDIV0_RAISES_SIGFPE $value
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13621 $as_echo_n "checking for inttypes.h... " >&6; }
13622 if ${jm_ac_cv_header_inttypes_h+:} false
; then :
13623 $as_echo_n "(cached) " >&6
13625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13627 #include <sys/types.h>
13628 #include <inttypes.h>
13632 uintmax_t i = (uintmax_t) -1;
13637 if ac_fn_c_try_compile
"$LINENO"; then :
13638 jm_ac_cv_header_inttypes_h
=yes
13640 jm_ac_cv_header_inttypes_h
=no
13642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13645 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13646 if test $jm_ac_cv_header_inttypes_h = yes; then
13648 cat >>confdefs.h
<<_ACEOF
13649 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13656 $as_echo_n "checking for stdint.h... " >&6; }
13657 if ${jm_ac_cv_header_stdint_h+:} false
; then :
13658 $as_echo_n "(cached) " >&6
13660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 #include <sys/types.h>
13663 #include <stdint.h>
13667 uintmax_t i = (uintmax_t) -1;
13672 if ac_fn_c_try_compile
"$LINENO"; then :
13673 jm_ac_cv_header_stdint_h
=yes
13675 jm_ac_cv_header_stdint_h
=no
13677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13680 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13681 if test $jm_ac_cv_header_stdint_h = yes; then
13683 cat >>confdefs.h
<<_ACEOF
13684 #define HAVE_STDINT_H_WITH_UINTMAX 1
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13691 $as_echo_n "checking for unsigned long long... " >&6; }
13692 if ${ac_cv_type_unsigned_long_long+:} false
; then :
13693 $as_echo_n "(cached) " >&6
13695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13697 unsigned long long ull = 1; int i = 63;
13701 unsigned long long ullmax = (unsigned long long) -1;
13702 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13707 if ac_fn_c_try_link
"$LINENO"; then :
13708 ac_cv_type_unsigned_long_long
=yes
13710 ac_cv_type_unsigned_long_long
=no
13712 rm -f core conftest.err conftest.
$ac_objext \
13713 conftest
$ac_exeext conftest.
$ac_ext
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13716 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13717 if test $ac_cv_type_unsigned_long_long = yes; then
13719 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13726 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
13728 test $ac_cv_type_unsigned_long_long = yes \
13729 && ac_type
='unsigned long long' \
13730 || ac_type
='unsigned long'
13732 cat >>confdefs.h
<<_ACEOF
13733 #define uintmax_t $ac_type
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13740 $as_echo_n "checking for inttypes.h... " >&6; }
13741 if ${gt_cv_header_inttypes_h+:} false
; then :
13742 $as_echo_n "(cached) " >&6
13745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 #include <sys/types.h>
13748 #include <inttypes.h>
13757 if ac_fn_c_try_compile
"$LINENO"; then :
13758 gt_cv_header_inttypes_h
=yes
13760 gt_cv_header_inttypes_h
=no
13762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13766 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13767 if test $gt_cv_header_inttypes_h = yes; then
13769 cat >>confdefs.h
<<_ACEOF
13770 #define HAVE_INTTYPES_H 1
13777 if test $gt_cv_header_inttypes_h = yes; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13779 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13780 if ${gt_cv_inttypes_pri_broken+:} false
; then :
13781 $as_echo_n "(cached) " >&6
13784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 #include <inttypes.h>
13799 if ac_fn_c_try_compile
"$LINENO"; then :
13800 gt_cv_inttypes_pri_broken
=no
13802 gt_cv_inttypes_pri_broken
=yes
13804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13808 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13810 if test "$gt_cv_inttypes_pri_broken" = yes; then
13812 cat >>confdefs.h
<<_ACEOF
13813 #define PRI_MACROS_BROKEN 1
13819 if test "X$prefix" = "XNONE"; then
13820 acl_final_prefix
="$ac_default_prefix"
13822 acl_final_prefix
="$prefix"
13824 if test "X$exec_prefix" = "XNONE"; then
13825 acl_final_exec_prefix
='${prefix}'
13827 acl_final_exec_prefix
="$exec_prefix"
13829 acl_save_prefix
="$prefix"
13830 prefix
="$acl_final_prefix"
13831 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
13832 prefix
="$acl_save_prefix"
13835 # Check whether --with-gnu-ld was given.
13836 if test "${with_gnu_ld+set}" = set; then :
13837 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13843 if test "$GCC" = yes; then
13844 # Check if gcc -print-prog-name=ld gives a path.
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13846 $as_echo_n "checking for ld used by GCC... " >&6; }
13849 # gcc leaves a trailing carriage return which upsets mingw
13850 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13852 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13855 # Accept absolute paths.
13856 [\\/]* |
[A-Za-z
]:[\\/]*)
13857 re_direlt
='/[^/][^/]*/\.\./'
13858 # Canonicalize the path of ld
13859 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
13860 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
13861 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
13863 test -z "$LD" && LD
="$ac_prog"
13866 # If it fails, then pretend we aren't using GCC.
13870 # If it is relative, then search for the first ld in PATH.
13871 with_gnu_ld
=unknown
13874 elif test "$with_gnu_ld" = yes; then
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13876 $as_echo_n "checking for GNU ld... " >&6; }
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13879 $as_echo_n "checking for non-GNU ld... " >&6; }
13881 if ${acl_cv_path_LD+:} false
; then :
13882 $as_echo_n "(cached) " >&6
13884 if test -z "$LD"; then
13885 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13886 for ac_dir
in $PATH; do
13887 test -z "$ac_dir" && ac_dir
=.
13888 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13889 acl_cv_path_LD
="$ac_dir/$ac_prog"
13890 # Check to see if the program is GNU ld. I'd rather use --version,
13891 # but apparently some GNU ld's only accept -v.
13892 # Break only if it was the GNU/non-GNU ld that we prefer.
13893 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
13894 test "$with_gnu_ld" != no
&& break
13896 test "$with_gnu_ld" != yes && break
13902 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
13906 LD
="$acl_cv_path_LD"
13907 if test -n "$LD"; then
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13909 $as_echo "$LD" >&6; }
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13912 $as_echo "no" >&6; }
13914 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13916 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13917 if ${acl_cv_prog_gnu_ld+:} false
; then :
13918 $as_echo_n "(cached) " >&6
13920 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13921 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
13922 acl_cv_prog_gnu_ld
=yes
13924 acl_cv_prog_gnu_ld
=no
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13928 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13929 with_gnu_ld
=$acl_cv_prog_gnu_ld
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13934 $as_echo_n "checking for shared library run path origin... " >&6; }
13935 if ${acl_cv_rpath+:} false
; then :
13936 $as_echo_n "(cached) " >&6
13939 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
13940 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13942 rm -f .
/conftest.sh
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13947 $as_echo "$acl_cv_rpath" >&6; }
13949 libext
="$acl_cv_libext"
13950 shlibext
="$acl_cv_shlibext"
13951 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
13952 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
13953 hardcode_direct
="$acl_cv_hardcode_direct"
13954 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
13955 sys_lib_search_path_spec
="$acl_cv_sys_lib_search_path_spec"
13956 sys_lib_dlsearch_path_spec
="$acl_cv_sys_lib_dlsearch_path_spec"
13957 # Check whether --enable-rpath was given.
13958 if test "${enable_rpath+set}" = set; then :
13959 enableval
=$enable_rpath; :
13973 acl_save_prefix
="$prefix"
13974 prefix
="$acl_final_prefix"
13975 acl_save_exec_prefix
="$exec_prefix"
13976 exec_prefix
="$acl_final_exec_prefix"
13978 eval additional_includedir
=\"$includedir\"
13979 eval additional_libdir
=\"$libdir\"
13981 exec_prefix
="$acl_save_exec_prefix"
13982 prefix
="$acl_save_prefix"
13985 # Check whether --with-libiconv-prefix was given.
13986 if test "${with_libiconv_prefix+set}" = set; then :
13987 withval
=$with_libiconv_prefix;
13988 if test "X$withval" = "Xno"; then
13991 if test "X$withval" = "X"; then
13993 acl_save_prefix
="$prefix"
13994 prefix
="$acl_final_prefix"
13995 acl_save_exec_prefix
="$exec_prefix"
13996 exec_prefix
="$acl_final_exec_prefix"
13998 eval additional_includedir
=\"$includedir\"
13999 eval additional_libdir
=\"$libdir\"
14001 exec_prefix
="$acl_save_exec_prefix"
14002 prefix
="$acl_save_prefix"
14005 additional_includedir
="$withval/include"
14006 additional_libdir
="$withval/lib"
14017 names_already_handled
=
14018 names_next_round
='iconv '
14019 while test -n "$names_next_round"; do
14020 names_this_round
="$names_next_round"
14022 for name
in $names_this_round; do
14024 for n
in $names_already_handled; do
14025 if test "$n" = "$name"; then
14026 already_handled
=yes
14030 if test -z "$already_handled"; then
14031 names_already_handled
="$names_already_handled $name"
14032 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14033 eval value
=\"\
$HAVE_LIB$uppername\"
14034 if test -n "$value"; then
14035 if test "$value" = yes; then
14036 eval value
=\"\
$LIB$uppername\"
14037 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
14038 eval value
=\"\
$LTLIB$uppername\"
14039 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
14048 if test $use_additional = yes; then
14049 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14050 found_dir
="$additional_libdir"
14051 found_so
="$additional_libdir/lib$name.$shlibext"
14052 if test -f "$additional_libdir/lib$name.la"; then
14053 found_la
="$additional_libdir/lib$name.la"
14056 if test -f "$additional_libdir/lib$name.$libext"; then
14057 found_dir
="$additional_libdir"
14058 found_a
="$additional_libdir/lib$name.$libext"
14059 if test -f "$additional_libdir/lib$name.la"; then
14060 found_la
="$additional_libdir/lib$name.la"
14065 if test "X$found_dir" = "X"; then
14066 for x
in $LDFLAGS $LTLIBICONV; do
14068 acl_save_prefix
="$prefix"
14069 prefix
="$acl_final_prefix"
14070 acl_save_exec_prefix
="$exec_prefix"
14071 exec_prefix
="$acl_final_exec_prefix"
14073 exec_prefix
="$acl_save_exec_prefix"
14074 prefix
="$acl_save_prefix"
14078 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14079 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14081 found_so
="$dir/lib$name.$shlibext"
14082 if test -f "$dir/lib$name.la"; then
14083 found_la
="$dir/lib$name.la"
14086 if test -f "$dir/lib$name.$libext"; then
14088 found_a
="$dir/lib$name.$libext"
14089 if test -f "$dir/lib$name.la"; then
14090 found_la
="$dir/lib$name.la"
14096 if test "X$found_dir" != "X"; then
14101 if test "X$found_dir" != "X"; then
14102 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14103 if test "X$found_so" != "X"; then
14104 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14105 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14108 for x
in $ltrpathdirs; do
14109 if test "X$x" = "X$found_dir"; then
14114 if test -z "$haveit"; then
14115 ltrpathdirs
="$ltrpathdirs $found_dir"
14117 if test "$hardcode_direct" = yes; then
14118 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14120 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14121 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14123 for x
in $rpathdirs; do
14124 if test "X$x" = "X$found_dir"; then
14129 if test -z "$haveit"; then
14130 rpathdirs
="$rpathdirs $found_dir"
14134 for x
in $LDFLAGS $LIBICONV; do
14136 acl_save_prefix
="$prefix"
14137 prefix
="$acl_final_prefix"
14138 acl_save_exec_prefix
="$exec_prefix"
14139 exec_prefix
="$acl_final_exec_prefix"
14141 exec_prefix
="$acl_save_exec_prefix"
14142 prefix
="$acl_save_prefix"
14144 if test "X$x" = "X-L$found_dir"; then
14149 if test -z "$haveit"; then
14150 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14152 if test "$hardcode_minus_L" != no
; then
14153 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
14155 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
14161 if test "X$found_a" != "X"; then
14162 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
14164 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14167 additional_includedir
=
14168 case "$found_dir" in
14170 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14171 additional_includedir
="$basedir/include"
14174 if test "X$additional_includedir" != "X"; then
14175 if test "X$additional_includedir" != "X/usr/include"; then
14177 if test "X$additional_includedir" = "X/usr/local/include"; then
14178 if test -n "$GCC"; then
14180 linux
*) haveit
=yes;;
14184 if test -z "$haveit"; then
14185 for x
in $CPPFLAGS $INCICONV; do
14187 acl_save_prefix
="$prefix"
14188 prefix
="$acl_final_prefix"
14189 acl_save_exec_prefix
="$exec_prefix"
14190 exec_prefix
="$acl_final_exec_prefix"
14192 exec_prefix
="$acl_save_exec_prefix"
14193 prefix
="$acl_save_prefix"
14195 if test "X$x" = "X-I$additional_includedir"; then
14200 if test -z "$haveit"; then
14201 if test -d "$additional_includedir"; then
14202 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14208 if test -n "$found_la"; then
14209 save_libdir
="$libdir"
14210 case "$found_la" in
14211 */* |
*\\*) .
"$found_la" ;;
14212 *) .
"./$found_la" ;;
14214 libdir
="$save_libdir"
14215 for dep
in $dependency_libs; do
14218 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14219 if test "X$additional_libdir" != "X/usr/lib"; then
14221 if test "X$additional_libdir" = "X/usr/local/lib"; then
14222 if test -n "$GCC"; then
14224 linux
*) haveit
=yes;;
14228 if test -z "$haveit"; then
14230 for x
in $LDFLAGS $LIBICONV; do
14232 acl_save_prefix
="$prefix"
14233 prefix
="$acl_final_prefix"
14234 acl_save_exec_prefix
="$exec_prefix"
14235 exec_prefix
="$acl_final_exec_prefix"
14237 exec_prefix
="$acl_save_exec_prefix"
14238 prefix
="$acl_save_prefix"
14240 if test "X$x" = "X-L$additional_libdir"; then
14245 if test -z "$haveit"; then
14246 if test -d "$additional_libdir"; then
14247 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14251 for x
in $LDFLAGS $LTLIBICONV; do
14253 acl_save_prefix
="$prefix"
14254 prefix
="$acl_final_prefix"
14255 acl_save_exec_prefix
="$exec_prefix"
14256 exec_prefix
="$acl_final_exec_prefix"
14258 exec_prefix
="$acl_save_exec_prefix"
14259 prefix
="$acl_save_prefix"
14261 if test "X$x" = "X-L$additional_libdir"; then
14266 if test -z "$haveit"; then
14267 if test -d "$additional_libdir"; then
14268 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14275 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14276 if test "$enable_rpath" != no
; then
14278 for x
in $rpathdirs; do
14279 if test "X$x" = "X$dir"; then
14284 if test -z "$haveit"; then
14285 rpathdirs
="$rpathdirs $dir"
14288 for x
in $ltrpathdirs; do
14289 if test "X$x" = "X$dir"; then
14294 if test -z "$haveit"; then
14295 ltrpathdirs
="$ltrpathdirs $dir"
14300 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14303 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14306 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
14307 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14313 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
14314 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14320 if test "X$rpathdirs" != "X"; then
14321 if test -n "$hardcode_libdir_separator"; then
14323 for found_dir
in $rpathdirs; do
14324 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14326 acl_save_libdir
="$libdir"
14328 eval flag
=\"$hardcode_libdir_flag_spec\"
14329 libdir
="$acl_save_libdir"
14330 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
14332 for found_dir
in $rpathdirs; do
14333 acl_save_libdir
="$libdir"
14334 libdir
="$found_dir"
14335 eval flag
=\"$hardcode_libdir_flag_spec\"
14336 libdir
="$acl_save_libdir"
14337 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
14341 if test "X$ltrpathdirs" != "X"; then
14342 for found_dir
in $ltrpathdirs; do
14343 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14350 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14351 stdlib.h string.h unistd.h sys
/param.h
14353 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14354 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14355 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14356 cat >>confdefs.h
<<_ACEOF
14357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14364 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14365 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14366 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14368 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14369 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14370 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14371 cat >>confdefs.h
<<_ACEOF
14372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14384 am_save_CPPFLAGS
="$CPPFLAGS"
14386 for element
in $INCICONV; do
14388 for x
in $CPPFLAGS; do
14390 acl_save_prefix
="$prefix"
14391 prefix
="$acl_final_prefix"
14392 acl_save_exec_prefix
="$exec_prefix"
14393 exec_prefix
="$acl_final_exec_prefix"
14395 exec_prefix
="$acl_save_exec_prefix"
14396 prefix
="$acl_save_prefix"
14398 if test "X$x" = "X$element"; then
14403 if test -z "$haveit"; then
14404 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14410 $as_echo_n "checking for iconv... " >&6; }
14411 if ${am_cv_func_iconv+:} false
; then :
14412 $as_echo_n "(cached) " >&6
14415 am_cv_func_iconv
="no, consider installing GNU libiconv"
14417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 #include <stdlib.h>
14424 iconv_t cd = iconv_open("","");
14425 iconv(cd,NULL,NULL,NULL,NULL);
14431 if ac_fn_c_try_link
"$LINENO"; then :
14432 am_cv_func_iconv
=yes
14434 rm -f core conftest.err conftest.
$ac_objext \
14435 conftest
$ac_exeext conftest.
$ac_ext
14436 if test "$am_cv_func_iconv" != yes; then
14437 am_save_LIBS
="$LIBS"
14438 LIBS
="$LIBS $LIBICONV"
14439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14441 #include <stdlib.h>
14446 iconv_t cd = iconv_open("","");
14447 iconv(cd,NULL,NULL,NULL,NULL);
14453 if ac_fn_c_try_link
"$LINENO"; then :
14454 am_cv_lib_iconv
=yes
14455 am_cv_func_iconv
=yes
14457 rm -f core conftest.err conftest.
$ac_objext \
14458 conftest
$ac_exeext conftest.
$ac_ext
14459 LIBS
="$am_save_LIBS"
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14464 $as_echo "$am_cv_func_iconv" >&6; }
14465 if test "$am_cv_func_iconv" = yes; then
14467 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14470 if test "$am_cv_lib_iconv" = yes; then
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14472 $as_echo_n "checking how to link with libiconv... " >&6; }
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14474 $as_echo "$LIBICONV" >&6; }
14476 CPPFLAGS
="$am_save_CPPFLAGS"
14483 if test "$am_cv_func_iconv" = yes; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14485 $as_echo_n "checking for iconv declaration... " >&6; }
14486 if ${am_cv_proto_iconv+:} false
; then :
14487 $as_echo_n "(cached) " >&6
14490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14493 #include <stdlib.h>
14499 #if defined(__STDC__) || defined(__cplusplus)
14500 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14513 if ac_fn_c_try_compile
"$LINENO"; then :
14514 am_cv_proto_iconv_arg1
=""
14516 am_cv_proto_iconv_arg1
="const"
14518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14519 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);"
14522 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14524 }$am_cv_proto_iconv" >&5
14526 }$am_cv_proto_iconv" >&6; }
14528 cat >>confdefs.h
<<_ACEOF
14529 #define ICONV_CONST $am_cv_proto_iconv_arg1
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14536 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14537 if ${am_cv_langinfo_codeset+:} false
; then :
14538 $as_echo_n "(cached) " >&6
14540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <langinfo.h>
14546 char* cs = nl_langinfo(CODESET);
14551 if ac_fn_c_try_link
"$LINENO"; then :
14552 am_cv_langinfo_codeset
=yes
14554 am_cv_langinfo_codeset
=no
14556 rm -f core conftest.err conftest.
$ac_objext \
14557 conftest
$ac_exeext conftest.
$ac_ext
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14561 $as_echo "$am_cv_langinfo_codeset" >&6; }
14562 if test $am_cv_langinfo_codeset = yes; then
14564 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14568 if test $ac_cv_header_locale_h = yes; then
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14571 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14572 if ${am_cv_val_LC_MESSAGES+:} false
; then :
14573 $as_echo_n "(cached) " >&6
14575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 #include <locale.h>
14586 if ac_fn_c_try_link
"$LINENO"; then :
14587 am_cv_val_LC_MESSAGES
=yes
14589 am_cv_val_LC_MESSAGES
=no
14591 rm -f core conftest.err conftest.
$ac_objext \
14592 conftest
$ac_exeext conftest.
$ac_ext
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14595 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14596 if test $am_cv_val_LC_MESSAGES = yes; then
14598 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14604 for ac_prog
in bison
14606 # Extract the first word of "$ac_prog", so it can be a program name with args.
14607 set dummy
$ac_prog; ac_word
=$2
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14609 $as_echo_n "checking for $ac_word... " >&6; }
14610 if ${ac_cv_prog_INTLBISON+:} false
; then :
14611 $as_echo_n "(cached) " >&6
14613 if test -n "$INTLBISON"; then
14614 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
14616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14617 for as_dir
in $PATH
14620 test -z "$as_dir" && as_dir
=.
14621 for ac_exec_ext
in '' $ac_executable_extensions; do
14622 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14623 ac_cv_prog_INTLBISON
="$ac_prog"
14624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14633 INTLBISON
=$ac_cv_prog_INTLBISON
14634 if test -n "$INTLBISON"; then
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14636 $as_echo "$INTLBISON" >&6; }
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639 $as_echo "no" >&6; }
14643 test -n "$INTLBISON" && break
14646 if test -z "$INTLBISON"; then
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14650 $as_echo_n "checking version of bison... " >&6; }
14651 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14652 case $ac_prog_version in
14653 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
14654 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
14655 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
14656 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14659 $as_echo "$ac_prog_version" >&6; }
14661 if test $ac_verc_fail = yes; then
14667 # Check whether --with-language was given.
14668 if test "${with_language+set}" = set; then :
14669 withval
=$with_language; if test "$withval" != "all"; then :
14670 LINGUAS
="`echo $withval | sed -e 's/,/ /g'`"
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14690 $as_echo_n "checking whether NLS is requested... " >&6; }
14691 # Check whether --enable-nls was given.
14692 if test "${enable_nls+set}" = set; then :
14693 enableval
=$enable_nls; USE_NLS
=$enableval
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14699 $as_echo "$USE_NLS" >&6; }
14703 BUILD_INCLUDED_LIBINTL
=no
14704 USE_INCLUDED_LIBINTL
=no
14710 if test "$USE_NLS" = "yes"; then
14711 gt_use_preinstalled_gnugettext
=no
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14714 $as_echo_n "checking whether included gettext is requested... " >&6; }
14716 # Check whether --with-included-gettext was given.
14717 if test "${with_included_gettext+set}" = set; then :
14718 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
14720 nls_cv_force_use_gnu_gettext
=no
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14724 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14726 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
14727 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14735 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14736 if ${gt_cv_func_gnugettext2_libc+:} false
; then :
14737 $as_echo_n "(cached) " >&6
14739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 #include <libintl.h>
14742 extern int _nl_msg_cat_cntr;
14743 extern int *_nl_domain_bindings;
14747 bindtextdomain ("", "");
14748 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14753 if ac_fn_c_try_link
"$LINENO"; then :
14754 gt_cv_func_gnugettext2_libc
=yes
14756 gt_cv_func_gnugettext2_libc
=no
14758 rm -f core conftest.err conftest.
$ac_objext \
14759 conftest
$ac_exeext conftest.
$ac_ext
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14762 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14764 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14770 acl_save_prefix
="$prefix"
14771 prefix
="$acl_final_prefix"
14772 acl_save_exec_prefix
="$exec_prefix"
14773 exec_prefix
="$acl_final_exec_prefix"
14775 eval additional_includedir
=\"$includedir\"
14776 eval additional_libdir
=\"$libdir\"
14778 exec_prefix
="$acl_save_exec_prefix"
14779 prefix
="$acl_save_prefix"
14782 # Check whether --with-libintl-prefix was given.
14783 if test "${with_libintl_prefix+set}" = set; then :
14784 withval
=$with_libintl_prefix;
14785 if test "X$withval" = "Xno"; then
14788 if test "X$withval" = "X"; then
14790 acl_save_prefix
="$prefix"
14791 prefix
="$acl_final_prefix"
14792 acl_save_exec_prefix
="$exec_prefix"
14793 exec_prefix
="$acl_final_exec_prefix"
14795 eval additional_includedir
=\"$includedir\"
14796 eval additional_libdir
=\"$libdir\"
14798 exec_prefix
="$acl_save_exec_prefix"
14799 prefix
="$acl_save_prefix"
14802 additional_includedir
="$withval/include"
14803 additional_libdir
="$withval/lib"
14814 names_already_handled
=
14815 names_next_round
='intl '
14816 while test -n "$names_next_round"; do
14817 names_this_round
="$names_next_round"
14819 for name
in $names_this_round; do
14821 for n
in $names_already_handled; do
14822 if test "$n" = "$name"; then
14823 already_handled
=yes
14827 if test -z "$already_handled"; then
14828 names_already_handled
="$names_already_handled $name"
14829 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14830 eval value
=\"\
$HAVE_LIB$uppername\"
14831 if test -n "$value"; then
14832 if test "$value" = yes; then
14833 eval value
=\"\
$LIB$uppername\"
14834 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
14835 eval value
=\"\
$LTLIB$uppername\"
14836 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
14845 if test $use_additional = yes; then
14846 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14847 found_dir
="$additional_libdir"
14848 found_so
="$additional_libdir/lib$name.$shlibext"
14849 if test -f "$additional_libdir/lib$name.la"; then
14850 found_la
="$additional_libdir/lib$name.la"
14853 if test -f "$additional_libdir/lib$name.$libext"; then
14854 found_dir
="$additional_libdir"
14855 found_a
="$additional_libdir/lib$name.$libext"
14856 if test -f "$additional_libdir/lib$name.la"; then
14857 found_la
="$additional_libdir/lib$name.la"
14862 if test "X$found_dir" = "X"; then
14863 for x
in $LDFLAGS $LTLIBINTL; do
14865 acl_save_prefix
="$prefix"
14866 prefix
="$acl_final_prefix"
14867 acl_save_exec_prefix
="$exec_prefix"
14868 exec_prefix
="$acl_final_exec_prefix"
14870 exec_prefix
="$acl_save_exec_prefix"
14871 prefix
="$acl_save_prefix"
14875 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14876 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14878 found_so
="$dir/lib$name.$shlibext"
14879 if test -f "$dir/lib$name.la"; then
14880 found_la
="$dir/lib$name.la"
14883 if test -f "$dir/lib$name.$libext"; then
14885 found_a
="$dir/lib$name.$libext"
14886 if test -f "$dir/lib$name.la"; then
14887 found_la
="$dir/lib$name.la"
14893 if test "X$found_dir" != "X"; then
14898 if test "X$found_dir" != "X"; then
14899 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14900 if test "X$found_so" != "X"; then
14901 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14902 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14905 for x
in $ltrpathdirs; do
14906 if test "X$x" = "X$found_dir"; then
14911 if test -z "$haveit"; then
14912 ltrpathdirs
="$ltrpathdirs $found_dir"
14914 if test "$hardcode_direct" = yes; then
14915 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14917 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14918 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14920 for x
in $rpathdirs; do
14921 if test "X$x" = "X$found_dir"; then
14926 if test -z "$haveit"; then
14927 rpathdirs
="$rpathdirs $found_dir"
14931 for x
in $LDFLAGS $LIBINTL; do
14933 acl_save_prefix
="$prefix"
14934 prefix
="$acl_final_prefix"
14935 acl_save_exec_prefix
="$exec_prefix"
14936 exec_prefix
="$acl_final_exec_prefix"
14938 exec_prefix
="$acl_save_exec_prefix"
14939 prefix
="$acl_save_prefix"
14941 if test "X$x" = "X-L$found_dir"; then
14946 if test -z "$haveit"; then
14947 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14949 if test "$hardcode_minus_L" != no
; then
14950 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
14952 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
14958 if test "X$found_a" != "X"; then
14959 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
14961 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14964 additional_includedir
=
14965 case "$found_dir" in
14967 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14968 additional_includedir
="$basedir/include"
14971 if test "X$additional_includedir" != "X"; then
14972 if test "X$additional_includedir" != "X/usr/include"; then
14974 if test "X$additional_includedir" = "X/usr/local/include"; then
14975 if test -n "$GCC"; then
14977 linux
*) haveit
=yes;;
14981 if test -z "$haveit"; then
14982 for x
in $CPPFLAGS $INCINTL; do
14984 acl_save_prefix
="$prefix"
14985 prefix
="$acl_final_prefix"
14986 acl_save_exec_prefix
="$exec_prefix"
14987 exec_prefix
="$acl_final_exec_prefix"
14989 exec_prefix
="$acl_save_exec_prefix"
14990 prefix
="$acl_save_prefix"
14992 if test "X$x" = "X-I$additional_includedir"; then
14997 if test -z "$haveit"; then
14998 if test -d "$additional_includedir"; then
14999 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15005 if test -n "$found_la"; then
15006 save_libdir
="$libdir"
15007 case "$found_la" in
15008 */* |
*\\*) .
"$found_la" ;;
15009 *) .
"./$found_la" ;;
15011 libdir
="$save_libdir"
15012 for dep
in $dependency_libs; do
15015 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15016 if test "X$additional_libdir" != "X/usr/lib"; then
15018 if test "X$additional_libdir" = "X/usr/local/lib"; then
15019 if test -n "$GCC"; then
15021 linux
*) haveit
=yes;;
15025 if test -z "$haveit"; then
15027 for x
in $LDFLAGS $LIBINTL; do
15029 acl_save_prefix
="$prefix"
15030 prefix
="$acl_final_prefix"
15031 acl_save_exec_prefix
="$exec_prefix"
15032 exec_prefix
="$acl_final_exec_prefix"
15034 exec_prefix
="$acl_save_exec_prefix"
15035 prefix
="$acl_save_prefix"
15037 if test "X$x" = "X-L$additional_libdir"; then
15042 if test -z "$haveit"; then
15043 if test -d "$additional_libdir"; then
15044 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15048 for x
in $LDFLAGS $LTLIBINTL; do
15050 acl_save_prefix
="$prefix"
15051 prefix
="$acl_final_prefix"
15052 acl_save_exec_prefix
="$exec_prefix"
15053 exec_prefix
="$acl_final_exec_prefix"
15055 exec_prefix
="$acl_save_exec_prefix"
15056 prefix
="$acl_save_prefix"
15058 if test "X$x" = "X-L$additional_libdir"; then
15063 if test -z "$haveit"; then
15064 if test -d "$additional_libdir"; then
15065 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15072 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15073 if test "$enable_rpath" != no
; then
15075 for x
in $rpathdirs; do
15076 if test "X$x" = "X$dir"; then
15081 if test -z "$haveit"; then
15082 rpathdirs
="$rpathdirs $dir"
15085 for x
in $ltrpathdirs; do
15086 if test "X$x" = "X$dir"; then
15091 if test -z "$haveit"; then
15092 ltrpathdirs
="$ltrpathdirs $dir"
15097 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15100 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15103 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
15104 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15110 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
15111 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15117 if test "X$rpathdirs" != "X"; then
15118 if test -n "$hardcode_libdir_separator"; then
15120 for found_dir
in $rpathdirs; do
15121 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15123 acl_save_libdir
="$libdir"
15125 eval flag
=\"$hardcode_libdir_flag_spec\"
15126 libdir
="$acl_save_libdir"
15127 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
15129 for found_dir
in $rpathdirs; do
15130 acl_save_libdir
="$libdir"
15131 libdir
="$found_dir"
15132 eval flag
=\"$hardcode_libdir_flag_spec\"
15133 libdir
="$acl_save_libdir"
15134 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
15138 if test "X$ltrpathdirs" != "X"; then
15139 for found_dir
in $ltrpathdirs; do
15140 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15145 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15146 if ${gt_cv_func_gnugettext2_libintl+:} false
; then :
15147 $as_echo_n "(cached) " >&6
15149 gt_save_CPPFLAGS
="$CPPFLAGS"
15150 CPPFLAGS
="$CPPFLAGS $INCINTL"
15151 gt_save_LIBS
="$LIBS"
15152 LIBS
="$LIBS $LIBINTL"
15153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15155 #include <libintl.h>
15156 extern int _nl_msg_cat_cntr;
15161 const char *_nl_expand_alias ();
15165 bindtextdomain ("", "");
15166 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15171 if ac_fn_c_try_link
"$LINENO"; then :
15172 gt_cv_func_gnugettext2_libintl
=yes
15174 gt_cv_func_gnugettext2_libintl
=no
15176 rm -f core conftest.err conftest.
$ac_objext \
15177 conftest
$ac_exeext conftest.
$ac_ext
15178 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
15179 LIBS
="$LIBS $LIBICONV"
15180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15182 #include <libintl.h>
15183 extern int _nl_msg_cat_cntr;
15188 const char *_nl_expand_alias ();
15192 bindtextdomain ("", "");
15193 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15198 if ac_fn_c_try_link
"$LINENO"; then :
15199 LIBINTL
="$LIBINTL $LIBICONV"
15200 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
15201 gt_cv_func_gnugettext2_libintl
=yes
15204 rm -f core conftest.err conftest.
$ac_objext \
15205 conftest
$ac_exeext conftest.
$ac_ext
15207 CPPFLAGS
="$gt_save_CPPFLAGS"
15208 LIBS
="$gt_save_LIBS"
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
15211 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
15214 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
15215 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
15216 && test "$PACKAGE" != gettext; }; then
15217 gt_use_preinstalled_gnugettext
=yes
15225 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
15226 nls_cv_use_gnu_gettext
=yes
15230 if test "$nls_cv_use_gnu_gettext" = "yes"; then
15231 INTLOBJS
="\$(GETTOBJS)"
15232 BUILD_INCLUDED_LIBINTL
=yes
15233 USE_INCLUDED_LIBINTL
=yes
15234 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
15235 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
15236 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15239 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15240 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
15245 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15246 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
15248 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15255 if test "$USE_NLS" = "yes"; then
15257 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15258 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15260 $as_echo_n "checking how to link with libintl... " >&6; }
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15262 $as_echo "$LIBINTL" >&6; }
15264 for element
in $INCINTL; do
15266 for x
in $CPPFLAGS; do
15268 acl_save_prefix
="$prefix"
15269 prefix
="$acl_final_prefix"
15270 acl_save_exec_prefix
="$exec_prefix"
15271 exec_prefix
="$acl_final_exec_prefix"
15273 exec_prefix
="$acl_save_exec_prefix"
15274 prefix
="$acl_save_prefix"
15276 if test "X$x" = "X$element"; then
15281 if test -z "$haveit"; then
15282 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15289 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15292 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15300 if test "$PACKAGE" = gettext; then
15301 BUILD_INCLUDED_LIBINTL
=yes
15309 nls_cv_header_intl
=
15310 nls_cv_header_libgt
=
15321 INTL_LIBTOOL_SUFFIX_PREFIX
=
15325 INTLLIBS
="$LIBINTL"
15332 if test $USE_INCLUDED_LIBINTL = yes; then :
15333 INCINTL
=-I\
${top_builddir}/intl
15336 if test x
$USE_NLS = xyes
; then :
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
15339 $as_echo_n "checking for autopoint... " >&6; }
15340 autopoint_version
=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
15341 if test -n "$autopoint_version"; then :
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
15344 $as_echo "yes ($autopoint_version)" >&6; }
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15350 $as_echo "no" >&6; }
15356 if test x
$USE_NLS = xno
-a x
${enable_nls:-yes} = xyes
; then :
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15358 You need to install GNU gettext/gettext-tools to compile aMule with
15360 $as_echo "$as_me: WARNING:
15361 You need to install GNU gettext/gettext-tools to compile aMule with
15362 i18n support." >&2;}
15363 _mule_warning_13
=yes
15364 _mule_has_warnings
=yes
15368 if test ${USE_NLS:-no} = yes; then :
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15371 $as_echo_n "checking for requested languages... " >&6; }
15372 Generate_Langs
=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15374 if test ${enable_amule_daemon:-no} = yes; then :
15376 if test -z "$LINGUAS"; then :
15377 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15380 AMULE_DAEMON_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15381 AMULE_DAEMON_MANPAGES
="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15384 AMULE_DAEMON_MANPAGES
=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15387 AMULE_DAEMON_MANPAGES
=
15392 if test ${enable_amulecmd:-no} = yes; then :
15394 if test -z "$LINGUAS"; then :
15395 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15398 AMULECMD_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15399 AMULECMD_MANPAGES
="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15402 AMULECMD_MANPAGES
=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15410 if test ${enable_webserver:-no} = yes; then :
15412 if test -z "$LINGUAS"; then :
15413 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15416 WEBSERVER_MANPAGES
=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15417 WEBSERVER_MANPAGES
="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15420 WEBSERVER_MANPAGES
=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15423 WEBSERVER_MANPAGES
=
15428 if test ${enable_amule_gui:-no} = yes; then :
15430 if test -z "$LINGUAS"; then :
15431 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15434 AMULE_GUI_MANPAGES
=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15435 AMULE_GUI_MANPAGES
="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15438 AMULE_GUI_MANPAGES
=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15441 AMULE_GUI_MANPAGES
=
15446 if test ${enable_cas:-no} = yes; then :
15448 if test -z "$LINGUAS"; then :
15449 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15452 CAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15453 CAS_MANPAGES
="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15456 CAS_MANPAGES
=`echo $CAS_MANPAGES | tr -d '\n'`
15464 if test ${enable_wxcas:-no} = yes; then :
15466 if test -z "$LINGUAS"; then :
15467 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15470 WXCAS_MANPAGES
=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15471 WXCAS_MANPAGES
="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15474 WXCAS_MANPAGES
=`echo $WXCAS_MANPAGES | tr -d '\n'`
15482 if test ${enable_ed2k:-yes} = yes; then :
15484 if test -z "$LINGUAS"; then :
15485 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15488 ED2K_MANPAGES
=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15489 ED2K_MANPAGES
="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15492 ED2K_MANPAGES
=`echo $ED2K_MANPAGES | tr -d '\n'`
15500 if test ${enable_alc:-no} = yes; then :
15502 if test -z "$LINGUAS"; then :
15503 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15506 ALC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15507 ALC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15510 ALC_MANPAGES
=`echo $ALC_MANPAGES | tr -d '\n'`
15518 if test ${enable_alcc:-no} = yes; then :
15520 if test -z "$LINGUAS"; then :
15521 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15524 ALCC_MANPAGES
=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15525 ALCC_MANPAGES
="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15528 ALCC_MANPAGES
=`echo $ALCC_MANPAGES | tr -d '\n'`
15536 if test ${enable_monolithic:-yes} = yes; then :
15538 if test -z "$LINGUAS"; then :
15539 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15542 MONOLITHIC_MANPAGES
=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15543 MONOLITHIC_MANPAGES
="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15546 MONOLITHIC_MANPAGES
=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15549 MONOLITHIC_MANPAGES
=
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15554 $as_echo "${LINGUAS:-all}" >&6; }
15560 ac_cpp
='$CXXCPP $CPPFLAGS'
15561 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15562 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15563 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15567 # Check for bfd.h (to have proper backtraces without using wxExecute)
15569 for ac_header
in ansidecl.h bfd.h
15571 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15572 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15573 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15574 cat >>confdefs.h
<<_ACEOF
15575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15582 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15585 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15586 if ${mule_cv_lib_bfd+:} false
; then :
15587 $as_echo_n "(cached) " >&6
15590 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
15591 # Doing some black magic to prevent multiple tests for the same set of
15592 # libraries when any of the shell variables above expand to nothing.
15594 done |
sed -e 's/^ *//;s/ *$//;s/ */ /g' |
${AWK} '!x[$0]++' >conftest.bfd_ldadd
15595 while read bfd_ldadd
; do
15596 mule_backup_LIBS
="$LIBS"
15597 mule_backup_LDFLAGS
="$LDFLAGS"
15598 LIBS
="${bfd_ldadd} $LIBS"
15599 LDFLAGS
="$LDFLAGS ${ZLIB_LDFLAGS}"
15600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15604 #include <ansidecl.h>
15610 const char *dummy = bfd_errmsg(bfd_get_error());
15616 if ac_fn_cxx_try_link
"$LINENO"; then :
15618 LIBS
="$mule_backup_LIBS"
15619 LDFLAGS
="$mule_backup_LDFLAGS"
15620 mule_cv_lib_bfd
="${bfd_ldadd}"
15623 rm -f core conftest.err conftest.
$ac_objext \
15624 conftest
$ac_exeext conftest.
$ac_ext
15625 LIBS
="$mule_backup_LIBS"
15626 LDFLAGS
="$mule_backup_LDFLAGS"
15627 if ${mule_cv_lib_bfd+:} false
; then :
15630 done <conftest.bfd_ldadd
15631 rm -f conftest.bfd_ldadd
15636 if ${mule_cv_lib_bfd+:} false
; then :
15638 BFD_CPPFLAGS
="-DHAVE_BFD"
15639 BFD_LIBS
="${mule_cv_lib_bfd}"
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15641 $as_echo "${BFD_LIBS:-none required}" >&6; }
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15646 $as_echo "not found" >&6; }
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15648 Cannot link to the library containing the bfd functions." >&5
15649 $as_echo "$as_me: WARNING:
15650 Cannot link to the library containing the bfd functions." >&2;}
15651 _mule_warning_14
=yes
15652 _mule_has_warnings
=yes
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15660 bfd.h not found or unusable, please install binutils development
15661 package if you are a developer or want to help testing aMule" >&5
15662 $as_echo "$as_me: WARNING:
15663 bfd.h not found or unusable, please install binutils development
15664 package if you are a developer or want to help testing aMule" >&2;}
15665 _mule_warning_15
=yes
15666 _mule_has_warnings
=yes
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15674 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15679 #include <execinfo.h>
15686 int n = backtrace((void **)&bt, 1);
15687 char **bt_syms = backtrace_symbols(bt, n);
15694 if ac_fn_cxx_try_link
"$LINENO"; then :
15697 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15700 $as_echo "yes" >&6; }
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15705 $as_echo "no" >&6; }
15708 rm -f core conftest.err conftest.
$ac_objext \
15709 conftest
$ac_exeext conftest.
$ac_ext
15713 # aMule plasma widget
15714 if test ${enable_plasmamule:-no} = yes; then :
15717 if test -z ${QT_MOC}; then :
15719 for ac_prog
in moc-qt4 moc
15721 # Extract the first word of "$ac_prog", so it can be a program name with args.
15722 set dummy
$ac_prog; ac_word
=$2
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15724 $as_echo_n "checking for $ac_word... " >&6; }
15725 if ${ac_cv_path_QT_MOC+:} false
; then :
15726 $as_echo_n "(cached) " >&6
15730 ac_cv_path_QT_MOC
="$QT_MOC" # Let the user override the test with a path.
15733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15734 for as_dir
in $PATH
15737 test -z "$as_dir" && as_dir
=.
15738 for ac_exec_ext
in '' $ac_executable_extensions; do
15739 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15740 ac_cv_path_QT_MOC
="$as_dir/$ac_word$ac_exec_ext"
15741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15751 QT_MOC
=$ac_cv_path_QT_MOC
15752 if test -n "$QT_MOC"; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15754 $as_echo "$QT_MOC" >&6; }
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15757 $as_echo "no" >&6; }
15761 test -n "$QT_MOC" && break
15764 if test -z ${QT_MOC}; then :
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15774 $as_echo_n "checking for moc... " >&6; }
15775 if test -x ${QT_MOC}; then :
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15778 $as_echo "${QT_MOC}" >&6; }
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15784 $as_echo "\"not found\"" >&6; }
15793 if test "${QT_MOC}" != "not found"; then :
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15796 $as_echo_n "checking for moc version >= 4... " >&6; }
15797 QT_MOC_VERSION
=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15798 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15801 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15806 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15814 if test "${QT_MOC}" = "not found"; then :
15815 enable_plasmamule
=disabled
15818 if test ${enable_plasmamule:-no} = yes; then :
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15823 $as_echo_n "checking for qt... " >&6; }
15824 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15827 $as_echo "found" >&6; }
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15829 $as_echo_n "checking for qt core cflags... " >&6; }
15830 QT_CORE_CXXFLAGS
=`${PKG_CONFIG} --cflags QtCore`
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15832 $as_echo "$QT_CORE_CFLAGS" >&6; }
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15834 $as_echo_n "checking for qt core libs... " >&6; }
15835 QT_CORE_LIBS
=`${PKG_CONFIG} --libs QtCore`
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15837 $as_echo "$QT_CORE_LIBS" >&6; }
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15839 $as_echo_n "checking for qt gui cflags... " >&6; }
15840 QT_GUI_CXXFLAGS
=`${PKG_CONFIG} --cflags QtGui`
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15842 $as_echo "$QT_GUI_CFLAGS" >&6; }
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15844 $as_echo_n "checking for qt gui libs... " >&6; }
15845 QT_GUI_LIBS
=`${PKG_CONFIG} --libs QtGui`
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15847 $as_echo "$QT_GUI_LIBS" >&6; }
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15851 $as_echo "not found" >&6; }
15856 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15858 QT_DBUS_LDFLAGS
="-lQtDBus"
15868 if test -z "${QT_CORE_CXXFLAGS}"; then :
15869 enable_plasmamule
=disabled
15874 if test ${enable_plasmamule:-no} = yes; then :
15877 if test -z ${KDE4_CONFIG}; then :
15879 # Extract the first word of "kde4-config", so it can be a program name with args.
15880 set dummy kde4-config
; ac_word
=$2
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15882 $as_echo_n "checking for $ac_word... " >&6; }
15883 if ${ac_cv_path_KDE4_CONFIG+:} false
; then :
15884 $as_echo_n "(cached) " >&6
15886 case $KDE4_CONFIG in
15888 ac_cv_path_KDE4_CONFIG
="$KDE4_CONFIG" # Let the user override the test with a path.
15891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15892 for as_dir
in $PATH
15895 test -z "$as_dir" && as_dir
=.
15896 for ac_exec_ext
in '' $ac_executable_extensions; do
15897 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15898 ac_cv_path_KDE4_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15909 KDE4_CONFIG
=$ac_cv_path_KDE4_CONFIG
15910 if test -n "$KDE4_CONFIG"; then
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15912 $as_echo "$KDE4_CONFIG" >&6; }
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15915 $as_echo "no" >&6; }
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15923 $as_echo_n "checking for kde4-config... " >&6; }
15924 if test ! -x KDE4_CONFIG
; then :
15926 KDE4_CONFIG
="not found"
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15928 $as_echo "not found" >&6; }
15935 if test "${KDE4_CONFIG}" != "not found"; then :
15937 KDE_CONF_VER
=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15938 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15941 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: at least version
4 required
" >&5
15946 $as_echo "at least version
4 required
" >&6; }
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: not found
" >&5
15954 $as_echo "not found
" >&6; }
15960 if test "${KDE4_CONFIG}" = "not found
"; then :
15961 enable_plasmamule=disabled
15966 if test ${enable_plasmamule:-no} = yes; then :
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 headers
" >&5
15970 $as_echo_n "checking
for kde4 headers...
" >&6; }
15971 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15973 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15975 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_HEADER_DIR}" >&5
15978 $as_echo "${KDE_HEADER_DIR}" >&6; }
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: dataengine.h not found
" >&5
15983 $as_echo "dataengine.h not found
" >&6; }
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: kdirwatch.h not found
" >&5
15991 $as_echo "kdirwatch.h not found
" >&6; }
15997 if test -z ${KDE_HEADER_DIR}; then :
15998 enable_plasmamule=disabled
16003 if test ${enable_plasmamule:-no} = yes; then :
16005 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
16006 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 applinks Path
" >&5
16011 $as_echo_n "checking
for kde4 applinks Path...
" >&6; }
16012 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16017 if test ${KDE_IN_HOME} = "yes"; then :
16019 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16023 if test -n ${prefix}; then :
16025 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
16026 if test -n ${KDE_APPLNK_PATH}; then :
16028 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
16034 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_APPLNK_PATH}" >&5
16040 $as_echo "${KDE_APPLNK_PATH}" >&6; }
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 services Path
" >&5
16046 $as_echo_n "checking
for kde4 services Path...
" >&6; }
16047 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16052 if test ${KDE_IN_HOME} = "yes"; then :
16054 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16058 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_SERVICE_PATH}" >&5
16062 $as_echo "${KDE_SERVICE_PATH}" >&6; }
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 plugins Path
" >&5
16068 $as_echo_n "checking
for kde4 plugins Path...
" >&6; }
16069 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16074 if test ${KDE_IN_HOME} = "yes"; then :
16076 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16080 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MODULE_PATH}" >&5
16084 $as_echo "${KDE_MODULE_PATH}" >&6; }
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for kde4 icons Path
" >&5
16090 $as_echo_n "checking
for kde4 icons Path...
" >&6; }
16091 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16096 if test ${KDE_IN_HOME} = "yes"; then :
16098 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16102 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
16105 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_ICON_PATH}" >&5
16107 $as_echo "${KDE_ICON_PATH}" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for location
for mime-type installation
" >&5
16113 $as_echo_n "checking
for location
for mime-type installation...
" >&6; }
16114 if test `echo ${prefix} | grep home | wc -l` == 1; then :
16119 if test ${KDE_IN_HOME} = "yes"; then :
16121 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
16125 if test -n ${prefix}; then :
16127 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
16128 if test -n ${KDE_MIME_PATH}; then :
16130 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
16136 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${KDE_MIME_PATH}" >&5
16142 $as_echo "${KDE_MIME_PATH}" >&6; }
16147 enable_plasmamule=disabled
16152 if test ${enable_debug:-yes} = yes; then :
16154 DEBUGFLAG="-D__DEBUG__"
16162 # Check for readline library
16163 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a readline compatible library
" >&5
16166 $as_echo_n "checking
for a readline compatible library...
" >&6; }
16167 if ${vl_cv_lib_readline+:} false; then :
16168 $as_echo_n "(cached
) " >&6
16172 for readline_lib in readline edit editline; do
16173 for termcap_lib in "" termcap curses ncurses; do
16174 if test -z "$termcap_lib"; then
16175 TRY_LIB="-l$readline_lib"
16177 TRY_LIB="-l$readline_lib -l$termcap_lib"
16179 LIBS="$ORIG_LIBS $TRY_LIB"
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16183 /* Override any GCC internal prototype to avoid an error.
16184 Use char because int might match the return type of a GCC
16185 builtin and then its argument prototype would still apply. */
16193 return readline ();
16198 if ac_fn_cxx_try_link "$LINENO"; then :
16199 vl_cv_lib_readline="$TRY_LIB"
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16203 if test -n "$vl_cv_lib_readline"; then
16207 if test -n "$vl_cv_lib_readline"; then
16211 if test -z "$vl_cv_lib_readline"; then
16212 vl_cv_lib_readline="no
"
16216 READLINE_LIBS="$vl_cv_lib_readline"
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $vl_cv_lib_readline" >&5
16221 $as_echo "$vl_cv_lib_readline" >&6; }
16223 if test "$vl_cv_lib_readline" != "no
"; then
16225 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
16227 for ac_header
in readline.h readline
/readline.h
16229 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16230 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16231 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
16232 cat >>confdefs.h
<<_ACEOF
16233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16241 $as_echo_n "checking whether readline supports history... " >&6; }
16242 if ${vl_cv_lib_readline_history+:} false
; then :
16243 $as_echo_n "(cached) " >&6
16246 vl_cv_lib_readline_history
="no"
16247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16248 /* end confdefs.h. */
16250 /* Override any GCC internal prototype to avoid an error.
16251 Use char because int might match the return type of a GCC
16252 builtin and then its argument prototype would still apply. */
16256 char add_history ();
16260 return add_history ();
16265 if ac_fn_cxx_try_link
"$LINENO"; then :
16266 vl_cv_lib_readline_history
="yes"
16268 rm -f core conftest.err conftest.
$ac_objext \
16269 conftest
$ac_exeext conftest.
$ac_ext
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16273 $as_echo "$vl_cv_lib_readline_history" >&6; }
16274 if test "$vl_cv_lib_readline_history" = "yes"; then
16276 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16278 for ac_header
in history.h readline
/history.h
16280 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16281 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16282 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
16283 cat >>confdefs.h
<<_ACEOF
16284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16300 ac_cpp
='$CPP $CPPFLAGS'
16301 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16302 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16303 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16306 # Check for strerror_r
16307 mule_backup_CPPFLAGS
="$CPPFLAGS"
16308 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=600"
16309 ac_fn_c_check_decl
"$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16310 if test "x$ac_cv_have_decl_strerror_r" = xyes
; then :
16316 cat >>confdefs.h
<<_ACEOF
16317 #define HAVE_DECL_STRERROR_R $ac_have_decl
16320 for ac_func
in strerror_r
16322 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16323 if test "x$ac_cv_func_strerror_r" = xyes
; then :
16324 cat >>confdefs.h
<<_ACEOF
16325 #define HAVE_STRERROR_R 1
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16332 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16333 if ${ac_cv_func_strerror_r_char_p+:} false
; then :
16334 $as_echo_n "(cached) " >&6
16337 ac_cv_func_strerror_r_char_p
=no
16338 if test $ac_cv_have_decl_strerror_r = yes; then
16339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16341 $ac_includes_default
16347 char x = *strerror_r (0, buf, sizeof buf);
16348 char *p = strerror_r (0, buf, sizeof buf);
16355 if ac_fn_c_try_compile
"$LINENO"; then :
16356 ac_cv_func_strerror_r_char_p
=yes
16358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16360 # strerror_r is not declared. Choose between
16361 # systems that have relatively inaccessible declarations for the
16362 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16363 # former has a strerror_r that returns char*, while the latter
16364 # has a strerror_r that returns `int'.
16365 # This test should segfault on the DEC system.
16366 if test "$cross_compiling" = yes; then :
16369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16370 /* end confdefs.h. */
16371 $ac_includes_default
16372 extern char *strerror_r ();
16377 char x = *strerror_r (0, buf, sizeof buf);
16378 return ! isalpha (x);
16383 if ac_fn_c_try_run
"$LINENO"; then :
16384 ac_cv_func_strerror_r_char_p
=yes
16386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16394 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16395 if test $ac_cv_func_strerror_r_char_p = yes; then
16397 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16401 CPPFLAGS
="$mule_backup_CPPFLAGS"
16406 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16408 $as_echo_n "checking for docdir... " >&6; }
16409 if test -z "$docdir"; then :
16410 docdir
="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16413 $as_echo "$docdir" >&6; }
16416 # Try to set the SVN checkout-date
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16418 $as_echo_n "checking for SVNDATE... " >&6; }
16420 if test -f "$srcdir/.svn-revision"; then
16421 svndate
="rev. `cat $srcdir/.svn-revision`"
16422 elif test -d "$srcdir"/.svn
; then
16423 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'`"
16424 elif test -d "$srcdir"/.git
; then
16426 git_revision
=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16427 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16430 if test -f $srcdir/.git
/svn
/.metadata
; then
16431 git_sha
=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16432 svndate
=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16433 svn_revision=\`git
--git-dir="$srcdir"/.git svn find-rev \
${sha}\
`
16434 if test -n "\${svn_revision}" ; then
16435 if test \${sha} = ${git_sha} ; then
16436 echo "rev. \${svn_revision}${modified}"
16438 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16444 svndate
="rev. g${git_revision}${modified}"
16447 elif test -d "$srcdir"/.hg
; then
16449 hg_revision
=`hg --cwd "$srcdir" identify --id`
16450 hg_revid
=${hg_revision%+}
16451 if test ${hg_revision} != ${hg_revid} ; then
16454 if test -f "$srcdir"/.hg
/svn
/uuid
; then
16455 svndate
=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16456 if test \${svn_revision} != r ; then
16457 if test \${hg_sha} = ${hg_revid} ; then
16458 echo "rev. \${svn_revision#r}${modified}"
16460 echo "rev. \${svn_revision#r}+h${hg_revision}"
16466 svndate
="rev. h${hg_revision}"
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16473 $as_echo "${svndate:-None required}" >&6; }
16474 if test -n "$svndate"; then :
16477 cat >>confdefs.h
<<_ACEOF
16478 #define SVNDATE "$svndate"
16481 MULERCFLAGS
="$MULERCFLAGS -D__PRERELEASE__"
16489 # Check whether --with-denoise-level was given.
16490 if test "${with_denoise_level+set}" = set; then :
16491 withval
=$with_denoise_level;
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16496 $as_echo_n "checking denoising level... " >&6; }
16497 if test ${with_denoise_level:-5} = yes; then :
16498 with_denoise_level
=5
16500 if test ${with_denoise_level:-5} = no
; then :
16501 with_denoise_level
=0
16503 if test ${with_denoise_level:-5} -gt 4; then :
16504 if test "${svndate:+set}" = "set"; then :
16505 with_denoise_level
=0
16507 with_denoise_level
=4
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16511 $as_echo "$with_denoise_level" >&6; }
16513 ac_config_commands
="$ac_config_commands denoiser"
16518 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16520 # Check whether --enable-ccache was given.
16521 if test "${enable_ccache+set}" = set; then :
16522 enableval
=$enable_ccache;
16528 # Check whether --with-ccache-prefix was given.
16529 if test "${with_ccache_prefix+set}" = set; then :
16530 withval
=$with_ccache_prefix;
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16535 $as_echo_n "checking whether ccache support should be added... " >&6; }
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16537 $as_echo "${enable_ccache:-no}" >&6; }
16539 if test ${enable_ccache:-no} = yes; then :
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16542 $as_echo_n "checking for ccache presence... " >&6; }
16543 if test -z "$with_ccache_prefix"; then :
16545 ccache_full
=`which ccache`
16546 with_ccache_prefix
=`dirname ${ccache_full}`
16549 if $with_ccache_prefix/ccache
-V >/dev
/null
2>&1; then :
16551 CC
="$with_ccache_prefix/ccache $CC"
16552 CXX
="$with_ccache_prefix/ccache $CXX"
16553 BUILD_CC
="$with_ccache_prefix/ccache $BUILD_CC"
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16559 $as_echo "${enable_ccache:-no}" >&6; }
16566 if test x
$SYS = xwin32
; then
16568 SYS_WIN32_FALSE
='#'
16574 if test x
$SYS = xwin32
-a "$RC" != ":" -a x
$WX_PORT = xmsw
; then
16582 if test x
$SYS = xdarwin
; then
16583 NEED_CORESERVICES_TRUE
=
16584 NEED_CORESERVICES_FALSE
='#'
16586 NEED_CORESERVICES_TRUE
='#'
16587 NEED_CORESERVICES_FALSE
=
16590 if test x
$USE_NLS = xyes
; then
16592 COMPILE_NLS_FALSE
='#'
16594 COMPILE_NLS_TRUE
='#'
16598 if test x
$HAVE_FLEX_EXTENDED = xyes
; then
16599 GENERATE_FLEX_HEADER_TRUE
=
16600 GENERATE_FLEX_HEADER_FALSE
='#'
16602 GENERATE_FLEX_HEADER_TRUE
='#'
16603 GENERATE_FLEX_HEADER_FALSE
=
16606 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16607 INSTALL_SKINS_TRUE
=
16608 INSTALL_SKINS_FALSE
='#'
16610 INSTALL_SKINS_TRUE
='#'
16611 INSTALL_SKINS_FALSE
=
16614 if test ${enable_plasmamule:-no} = yes; then
16616 PLASMAMULE_FALSE
='#'
16618 PLASMAMULE_TRUE
='#'
16623 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
16624 COMPILE_LIB_COMMON_TRUE
=
16625 COMPILE_LIB_COMMON_FALSE
='#'
16627 COMPILE_LIB_COMMON_TRUE
='#'
16628 COMPILE_LIB_COMMON_FALSE
=
16631 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
16632 COMPILE_LIB_EC_TRUE
=
16633 COMPILE_LIB_EC_FALSE
='#'
16635 COMPILE_LIB_EC_TRUE
='#'
16636 COMPILE_LIB_EC_FALSE
=
16640 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"
16643 if test x
$SYS = xwin32
; then :
16644 ac_config_files
="$ac_config_files version.rc"
16647 cat >confcache
<<\_ACEOF
16648 # This file is a shell script that caches the results of configure
16649 # tests run on this system so they can be shared between configure
16650 # scripts and configure runs, see configure's option --config-cache.
16651 # It is not useful on other systems. If it contains results you don't
16652 # want to keep, you may remove or edit it.
16654 # config.status only pays attention to the cache file if you give it
16655 # the --recheck option to rerun configure.
16657 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16658 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16659 # following values.
16663 # The following way of writing the cache mishandles newlines in values,
16664 # but we know of no workaround that is simple, portable, and efficient.
16665 # So, we kill variables containing newlines.
16666 # Ultrix sh set writes to stderr and can't be redirected directly,
16667 # and sets the high bit in the cache file unless we assign to the vars.
16669 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16670 eval ac_val
=\$
$ac_var
16674 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16675 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16678 _ | IFS | as_nl
) ;; #(
16679 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16680 *) { eval $ac_var=; unset $ac_var;} ;;
16686 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16687 *${as_nl}ac_space
=\
*)
16688 # `set' does not quote correctly, so add quotes: double-quote
16689 # substitution turns \\\\ into \\, and sed turns \\ into \.
16692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16695 # `set' quotes correctly as required by POSIX, so do not add quotes.
16696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16705 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16707 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16709 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16710 if test -w "$cache_file"; then
16711 if test "x$cache_file" != "x/dev/null"; then
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16713 $as_echo "$as_me: updating cache $cache_file" >&6;}
16714 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16715 cat confcache
>"$cache_file"
16717 case $cache_file in #(
16719 mv -f confcache
"$cache_file"$$
&&
16720 mv -f "$cache_file"$$
"$cache_file" ;; #(
16722 mv -f confcache
"$cache_file" ;;
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16728 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16733 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16734 # Let make expand exec_prefix.
16735 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16737 DEFS
=-DHAVE_CONFIG_H
16742 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16743 # 1. Remove the extension, and $U if already installed.
16744 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16745 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16746 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16747 # will be set to the directory where LIBOBJS objects are built.
16748 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16749 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16751 LIBOBJS
=$ac_libobjs
16753 LTLIBOBJS
=$ac_ltlibobjs
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16757 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16758 if test -n "$am_sleep_pid"; then
16759 # Hide warnings about reused PIDs.
16760 wait $am_sleep_pid 2>/dev
/null
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16763 $as_echo "done" >&6; }
16764 if test -n "$EXEEXT"; then
16766 am__EXEEXT_FALSE
='#'
16768 am__EXEEXT_TRUE
='#'
16772 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16773 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16776 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16777 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16780 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16781 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
16782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16784 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16785 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16788 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16789 as_fn_error $?
"conditional \"MONOLITHIC\" was never defined.
16790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16792 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16793 as_fn_error $?
"conditional \"AMULE_DAEMON\" was never defined.
16794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16796 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16797 as_fn_error $?
"conditional \"COMPILE_CMD\" was never defined.
16798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16800 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16801 as_fn_error $?
"conditional \"WEB\" was never defined.
16802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16804 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16805 as_fn_error $?
"conditional \"AMULE_GUI\" was never defined.
16806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16808 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16809 as_fn_error $?
"conditional \"CAS\" was never defined.
16810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16812 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16813 as_fn_error $?
"conditional \"WXCAS\" was never defined.
16814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16816 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16817 as_fn_error $?
"conditional \"ED2K\" was never defined.
16818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16820 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16821 as_fn_error $?
"conditional \"ALC\" was never defined.
16822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16824 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16825 as_fn_error $?
"conditional \"ALCC\" was never defined.
16826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16828 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16829 as_fn_error $?
"conditional \"XAS\" was never defined.
16830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16832 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16833 as_fn_error $?
"conditional \"FILEVIEW\" was never defined.
16834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16836 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16837 as_fn_error $?
"conditional \"SYS_WIN32\" was never defined.
16838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16840 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16841 as_fn_error $?
"conditional \"NEED_RC\" was never defined.
16842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16844 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16845 as_fn_error $?
"conditional \"NEED_CORESERVICES\" was never defined.
16846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16848 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16849 as_fn_error $?
"conditional \"COMPILE_NLS\" was never defined.
16850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16852 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
16853 as_fn_error $?
"conditional \"GENERATE_FLEX_HEADER\" was never defined.
16854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16856 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16857 as_fn_error $?
"conditional \"INSTALL_SKINS\" was never defined.
16858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16860 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16861 as_fn_error $?
"conditional \"PLASMAMULE\" was never defined.
16862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16864 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16865 as_fn_error $?
"conditional \"COMPILE_LIB_COMMON\" was never defined.
16866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16868 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16869 as_fn_error $?
"conditional \"COMPILE_LIB_EC\" was never defined.
16870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16873 : "${CONFIG_STATUS=./config.status}"
16875 ac_clean_files_save
=$ac_clean_files
16876 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16878 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16880 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16882 # Generated by $as_me.
16883 # Run this file to recreate the current configuration.
16884 # Compiler output produced by configure, useful for debugging
16885 # configure, is in config.log if it exists.
16888 ac_cs_recheck=false
16891 SHELL=\${CONFIG_SHELL-$SHELL}
16894 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16895 ## -------------------- ##
16896 ## M4sh Initialization. ##
16897 ## -------------------- ##
16899 # Be more Bourne compatible
16900 DUALCASE
=1; export DUALCASE
# for MKS sh
16901 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16904 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16905 # is contrary to our usage. Disable this feature.
16906 alias -g '${1+"$@"}'='"$@"'
16907 setopt NO_GLOB_SUBST
16909 case `(set -o) 2>/dev/null` in #(
16921 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16922 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16923 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16924 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16925 # Prefer a ksh shell builtin over an external printf program on Solaris,
16926 # but without wasting forks for bash or zsh.
16927 if test -z "$BASH_VERSION$ZSH_VERSION" \
16928 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16929 as_echo='print
-r --'
16930 as_echo_n='print
-rn --'
16931 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16932 as_echo='printf %s
\n'
16933 as_echo_n='printf %s
'
16935 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16936 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16937 as_echo_n='/usr
/ucb
/echo -n'
16939 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16940 as_echo_n_body='eval
16944 expr "X$arg" : "X\\(.*\\)$as_nl";
16945 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16947 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16949 export as_echo_n_body
16950 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16952 export as_echo_body
16953 as_echo='sh
-c $as_echo_body as_echo
'
16956 # The user is always right.
16957 if test "${PATH_SEPARATOR+set}" != set; then
16959 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16960 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16967 # We need space, tab and new line, in precisely that order. Quoting is
16968 # there to prevent editors from complaining about space-tab.
16969 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16970 # splitting by setting IFS to empty value.)
16973 # Find who we are. Look in the path if we contain no directory separator.
16976 *[\\/]* ) as_myself=$0 ;;
16977 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16978 for as_dir in $PATH
16981 test -z "$as_dir" && as_dir=.
16982 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16988 # We did not find ourselves, most probably we were run as `sh COMMAND'
16989 # in which case we are not to be found in the path.
16990 if test "x$as_myself" = x
; then
16993 if test ! -f "$as_myself"; then
16994 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16998 # Unset variables that we do not need and which cause bugs (e.g. in
16999 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17000 # suppresses any "Segmentation fault" message there. '((' could
17001 # trigger a bug in pdksh 5.2.14.
17002 for as_var
in BASH_ENV ENV MAIL MAILPATH
17003 do eval test x\
${$as_var+set} = xset \
17004 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17017 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17020 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17021 # ----------------------------------------
17022 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17023 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17024 # script with STATUS, using 1 if that was 0.
17027 as_status
=$1; test $as_status -eq 0 && as_status
=1
17029 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17030 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17032 $as_echo "$as_me: error: $2" >&2
17033 as_fn_exit
$as_status
17037 # as_fn_set_status STATUS
17038 # -----------------------
17039 # Set $? to STATUS, without forking.
17040 as_fn_set_status
()
17043 } # as_fn_set_status
17045 # as_fn_exit STATUS
17046 # -----------------
17047 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17051 as_fn_set_status
$1
17057 # Portably unset VAR.
17060 { eval $1=; unset $1;}
17062 as_unset
=as_fn_unset
17063 # as_fn_append VAR VALUE
17064 # ----------------------
17065 # Append the text in VALUE to the end of the definition contained in VAR. Take
17066 # advantage of any shell optimizations that allow amortized linear growth over
17067 # repeated appends, instead of the typical quadratic growth present in naive
17069 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17070 eval 'as_fn_append ()
17081 # as_fn_arith ARG...
17082 # ------------------
17083 # Perform arithmetic evaluation on the ARGs, and store the result in the
17084 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17085 # must be portable across $(()) and expr.
17086 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17087 eval 'as_fn_arith ()
17094 as_val
=`expr "$@" || test $? -eq 1`
17099 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17100 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17106 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17107 as_basename
=basename
17112 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17118 as_me
=`$as_basename -- "$0" ||
17119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17120 X"$0" : 'X\(//\)$' \| \
17121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17123 sed '/^.*\/\([^/][^/]*\)\/*$/{
17137 # Avoid depending upon Character Ranges.
17138 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17139 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17140 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17141 as_cr_digits
='0123456789'
17142 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17144 ECHO_C
= ECHO_N
= ECHO_T
=
17145 case `echo -n x` in #(((((
17147 case `echo 'xy\c'` in
17148 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17150 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17157 rm -f conf$$ conf$$.exe conf$$.
file
17158 if test -d conf$$.dir
; then
17159 rm -f conf$$.dir
/conf$$.
file
17162 mkdir conf$$.dir
2>/dev
/null
17164 if (echo >conf$$.
file) 2>/dev
/null
; then
17165 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17167 # ... but there are two gotchas:
17168 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17169 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17170 # In both cases, we have to default to `cp -pR'.
17171 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17173 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17181 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17182 rmdir conf$$.dir
2>/dev
/null
17187 # Create "$as_dir" as a directory, including parents if necessary.
17192 -*) as_dir
=.
/$as_dir;;
17194 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17198 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17199 *) as_qdir
=$as_dir;;
17201 as_dirs
="'$as_qdir' $as_dirs"
17202 as_dir
=`$as_dirname -- "$as_dir" ||
17203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17204 X"$as_dir" : 'X\(//\)[^/]' \| \
17205 X"$as_dir" : 'X\(//\)$' \| \
17206 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17207 $as_echo X"$as_dir" |
17208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17212 /^X\(\/\/\)[^/].*/{
17225 test -d "$as_dir" && break
17227 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17228 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17232 if mkdir
-p .
2>/dev
/null
; then
17233 as_mkdir_p
='mkdir -p "$as_dir"'
17235 test -d .
/-p && rmdir .
/-p
17240 # as_fn_executable_p FILE
17241 # -----------------------
17242 # Test if FILE is an executable regular file.
17243 as_fn_executable_p
()
17245 test -f "$1" && test -x "$1"
17246 } # as_fn_executable_p
17247 as_test_x
='test -x'
17248 as_executable_p
=as_fn_executable_p
17250 # Sed expression to map a string onto a valid CPP name.
17251 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17253 # Sed expression to map a string onto a valid variable name.
17254 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17258 ## ----------------------------------- ##
17259 ## Main body of $CONFIG_STATUS script. ##
17260 ## ----------------------------------- ##
17262 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17265 # Save the log message, to keep $0 and so on meaningful, and to
17266 # report actual input values of CONFIG_FILES etc. instead of their
17267 # values after options handling.
17269 This file was extended by aMule $as_me SVN, which was
17270 generated by GNU Autoconf 2.69. Invocation command line was
17272 CONFIG_FILES = $CONFIG_FILES
17273 CONFIG_HEADERS = $CONFIG_HEADERS
17274 CONFIG_LINKS = $CONFIG_LINKS
17275 CONFIG_COMMANDS = $CONFIG_COMMANDS
17278 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17283 case $ac_config_files in *"
17284 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17287 case $ac_config_headers in *"
17288 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17293 # Files that config.status was made for.
17294 config_files="$ac_config_files"
17295 config_headers="$ac_config_headers"
17296 config_commands="$ac_config_commands"
17300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17302 \`$as_me' instantiates files and other configuration actions
17303 from templates according to the current configuration. Unless the files
17304 and actions are specified as TAGs, all are instantiated by default.
17306 Usage: $0 [OPTION]... [TAG]...
17308 -h, --help print this help, then exit
17309 -V, --version print version number and configuration settings, then exit
17310 --config print configuration, then exit
17311 -q, --quiet, --silent
17312 do not print progress messages
17313 -d, --debug don't remove temporary files
17314 --recheck update $as_me by reconfiguring in the same conditions
17315 --file=FILE[:TEMPLATE]
17316 instantiate the configuration file FILE
17317 --header=FILE[:TEMPLATE]
17318 instantiate the configuration header FILE
17320 Configuration files:
17323 Configuration headers:
17326 Configuration commands:
17329 Report bugs to <admin@amule.org>."
17332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17333 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17335 aMule config.status SVN
17336 configured by $0, generated by GNU Autoconf 2.69,
17337 with options \\"\$ac_cs_config\\"
17339 Copyright (C) 2012 Free Software Foundation, Inc.
17340 This config.status script is free software; the Free Software Foundation
17341 gives unlimited permission to copy, distribute and modify it."
17348 test -n "\$AWK" || AWK=awk
17351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17352 # The default lists apply if the user does not specify any file.
17358 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17359 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17363 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17375 # Handling of the options.
17376 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17378 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17379 $as_echo "$ac_cs_version"; exit ;;
17380 --config |
--confi |
--conf |
--con |
--co |
--c )
17381 $as_echo "$ac_cs_config"; exit ;;
17382 --debug |
--debu |
--deb |
--de |
--d |
-d )
17384 --file |
--fil |
--fi |
--f )
17387 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17388 '') as_fn_error $?
"missing file argument" ;;
17390 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17391 ac_need_defaults
=false
;;
17392 --header |
--heade |
--head |
--hea )
17395 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17397 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17398 ac_need_defaults
=false
;;
17400 # Conflict between --help and --header
17401 as_fn_error $?
"ambiguous option: \`$1'
17402 Try \`$0 --help' for more information.";;
17403 --help |
--hel |
-h )
17404 $as_echo "$ac_cs_usage"; exit ;;
17405 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17406 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17409 # This is an error.
17410 -*) as_fn_error $?
"unrecognized option: \`$1'
17411 Try \`$0 --help' for more information." ;;
17413 *) as_fn_append ac_config_targets
" $1"
17414 ac_need_defaults
=false
;;
17420 ac_configure_extra_args
=
17422 if $ac_cs_silent; then
17424 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17429 if \$ac_cs_recheck; then
17430 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17432 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17433 CONFIG_SHELL='$SHELL'
17434 export CONFIG_SHELL
17439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17443 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17444 ## Running $as_me. ##
17450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17454 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17455 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17456 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17458 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17459 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17460 LINGUAS="${LINGUAS-%UNSET%}"
17462 denoiserlevel=$with_denoise_level
17466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17468 # Handling of arguments.
17469 for ac_config_target
in $ac_config_targets
17471 case $ac_config_target in
17472 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17473 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17474 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
17475 "denoiser") CONFIG_COMMANDS
="$CONFIG_COMMANDS denoiser" ;;
17476 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17477 "docs/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/Makefile" ;;
17478 "docs/man/Makefile") CONFIG_FILES
="$CONFIG_FILES docs/man/Makefile" ;;
17479 "intl/Makefile") CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
17480 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
17481 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
17482 "src/pixmaps/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/Makefile" ;;
17483 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES
="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17484 "src/libs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/Makefile" ;;
17485 "src/libs/ec/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/Makefile" ;;
17486 "src/libs/ec/cpp/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17487 "src/libs/common/Makefile") CONFIG_FILES
="$CONFIG_FILES src/libs/common/Makefile" ;;
17488 "src/utils/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/Makefile" ;;
17489 "src/utils/aLinkCreator/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17490 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17491 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17492 "src/utils/cas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/Makefile" ;;
17493 "src/utils/cas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17494 "src/utils/fileview/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17495 "src/utils/plasmamule/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17496 "src/utils/wxCas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17497 "src/utils/wxCas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17498 "src/utils/wxCas/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17499 "src/utils/xas/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/Makefile" ;;
17500 "src/utils/xas/autostart-xas") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17501 "src/utils/xas/docs/Makefile") CONFIG_FILES
="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17502 "src/skins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/skins/Makefile" ;;
17503 "src/webserver/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/Makefile" ;;
17504 "src/webserver/src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/src/Makefile" ;;
17505 "src/webserver/default/Makefile") CONFIG_FILES
="$CONFIG_FILES src/webserver/default/Makefile" ;;
17506 "unittests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/Makefile" ;;
17507 "unittests/muleunit/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17508 "unittests/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES unittests/tests/Makefile" ;;
17509 "version.rc") CONFIG_FILES
="$CONFIG_FILES version.rc" ;;
17511 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17516 # If the user did not use the arguments to specify the items to instantiate,
17517 # then the envvar interface is used. Set only those that are not.
17518 # We use the long form for the default assignment because of an extremely
17519 # bizarre bug on SunOS 4.1.3.
17520 if $ac_need_defaults; then
17521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17522 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17523 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17526 # Have a temporary directory for convenience. Make it in the build tree
17527 # simply because there is no reason against having it here, and in addition,
17528 # creating and moving files from /tmp can sometimes cause problems.
17529 # Hook for its removal unless debugging.
17530 # Note that there is a small window in which the directory will not be cleaned:
17531 # after its creation but before its name has been assigned to `$tmp'.
17535 trap 'exit_status=$?
17536 : "${ac_tmp:=$tmp}"
17537 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17539 trap 'as_fn_exit 1' 1 2 13 15
17541 # Create a (secure) tmp directory for tmp files.
17544 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17548 tmp
=.
/conf$$
-$RANDOM
17549 (umask 077 && mkdir
"$tmp")
17550 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17553 # Set up the scripts for CONFIG_FILES section.
17554 # No need to generate them if there are no CONFIG_FILES.
17555 # This happens for instance with `./config.status config.h'.
17556 if test -n "$CONFIG_FILES"; then
17559 ac_cr
=`echo X | tr X '\015'`
17560 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17561 # But we know of no other shell where ac_cr would be empty at this
17562 # point, so we can use a bashism as a fallback.
17563 if test "x$ac_cr" = x
; then
17564 eval ac_cr
=\$
\'\\r
\'
17566 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17567 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17570 ac_cs_awk_cr
=$ac_cr
17573 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17578 echo "cat >conf$$subs.awk <<_ACEOF" &&
17579 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17581 } >conf$$subs.sh ||
17582 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17583 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17585 for ac_last_try in false false false false false :; do
17586 . ./conf$$subs.sh ||
17587 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17589 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17590 if test $ac_delim_n = $ac_delim_num; then
17592 elif $ac_last_try; then
17593 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17595 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17598 rm -f conf$$subs.sh
17600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17601 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17605 s/^/S["/; s
/!.
*/"]=/
17615 s/\(.\{148\}\)..*/\1/
17617 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17622 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17629 s/\(.\{148\}\)..*/\1/
17631 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17635 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17640 ' <conf$$subs.awk | sed '
17645 ' >>$CONFIG_STATUS || ac_write_fail=1
17646 rm -f conf$$subs.awk
17647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17649 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17650 for (key in S) S_is_set[key] = 1
17656 nfields = split(line, field, "@
")
17658 len = length(field[1])
17659 for (i = 2; i < nfields; i++) {
17661 keylen = length(key)
17662 if (S_is_set[key]) {
17664 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17665 len += length(value) + length(field[++i])
17676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17677 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17678 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17681 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17682 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17685 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17686 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17687 # trailing colons and then remove the whole line if VPATH becomes empty
17688 # (actually we leave an empty line to preserve line numbers).
17689 if test "x
$srcdir" = x.; then
17690 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17709 fi # test -n "$CONFIG_FILES"
17711 # Set up the scripts for CONFIG_HEADERS section.
17712 # No need to generate them if there are no CONFIG_HEADERS.
17713 # This happens for instance with `./config.status Makefile'.
17714 if test -n "$CONFIG_HEADERS"; then
17715 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17719 # Transform confdefs.h into an awk script `defines.awk', embedded as
17720 # here-document in config.status, that substitutes the proper values into
17721 # config.h.in to produce config.h.
17723 # Create a delimiter string that does not exist in confdefs.h, to ease
17724 # handling of long lines.
17726 for ac_last_try in false false :; do
17727 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17728 if test -z "$ac_tt"; then
17730 elif $ac_last_try; then
17731 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17733 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17737 # For the awk script, D is an array of macro values keyed by name,
17738 # likewise P contains macro parameters if any. Preserve backslash
17739 # newline sequences.
17741 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17743 s/.\{148\}/&'"$ac_delim"'/g
17746 s/^[ ]*#[ ]*define[ ][ ]*/ /
17753 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17755 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17759 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17760 D["\
1"]=" \
3\\\\\\n
"\\/p
17762 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17767 s/.\{148\}/&'"$ac_delim"'/g
17772 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17775 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17777 ' <confdefs.h | sed '
17778 s/'"$ac_delim"'/"\\\
17779 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17782 for (key in D) D_is_set[key] = 1
17785 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17787 split(line, arg, " ")
17788 if (arg[1] == "#") {
17792 defundef
= substr
(arg
[1], 2)
17795 split(mac1
, mac2
, "(") #)
17797 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17798 if (D_is_set
[macro
]) {
17799 # Preserve the white space surrounding the "#".
17800 print prefix
"define", macro P
[macro
] D
[macro
]
17803 # Replace #undef with comments. This is necessary, for example,
17804 # in the case of _POSIX_SOURCE, which is predefined and required
17805 # on some systems where configure will not decide to define it.
17806 if (defundef
== "undef") {
17807 print
"/*", prefix defundef
, macro
, "*/"
17815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17816 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17817 fi # test -n "$CONFIG_HEADERS"
17820 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17825 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17827 case $ac_mode$ac_tag in
17829 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17830 :[FH
]-) ac_tag
=-:-;;
17831 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17848 -) ac_f
="$ac_tmp/stdin";;
17849 *) # Look for the file first in the build tree, then in the source tree
17850 # (if the path is not absolute). The absolute path cannot be DOS-style,
17851 # because $ac_f cannot contain `:'.
17855 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17857 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17859 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17860 as_fn_append ac_file_inputs
" '$ac_f'"
17863 # Let's still pretend it is `configure' which instantiates (i.e., don't
17864 # use $as_me), people would be surprised to read:
17865 # /* config.h. Generated by config.status. */
17866 configure_input
='Generated from '`
17867 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17869 if test x
"$ac_file" != x-
; then
17870 configure_input
="$ac_file. $configure_input"
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17872 $as_echo "$as_me: creating $ac_file" >&6;}
17874 # Neutralize special characters interpreted by sed in replacement strings.
17875 case $configure_input in #(
17876 *\
&* |
*\|
* |
*\\* )
17877 ac_sed_conf_input
=`$as_echo "$configure_input" |
17878 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17879 *) ac_sed_conf_input
=$configure_input;;
17883 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17884 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17889 ac_dir
=`$as_dirname -- "$ac_file" ||
17890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17891 X"$ac_file" : 'X\(//\)[^/]' \| \
17892 X"$ac_file" : 'X\(//\)$' \| \
17893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17894 $as_echo X"$ac_file" |
17895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17899 /^X\(\/\/\)[^/].*/{
17912 as_dir
="$ac_dir"; as_fn_mkdir_p
17916 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17918 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17919 # A ".." for each directory in $ac_dir_suffix.
17920 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17921 case $ac_top_builddir_sub in
17922 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17923 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17926 ac_abs_top_builddir
=$ac_pwd
17927 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17928 # for backward compatibility:
17929 ac_top_builddir
=$ac_top_build_prefix
17932 .
) # We are building in place.
17934 ac_top_srcdir
=$ac_top_builddir_sub
17935 ac_abs_top_srcdir
=$ac_pwd ;;
17936 [\\/]* | ?
:[\\/]* ) # Absolute name.
17937 ac_srcdir
=$srcdir$ac_dir_suffix;
17938 ac_top_srcdir
=$srcdir
17939 ac_abs_top_srcdir
=$srcdir ;;
17940 *) # Relative name.
17941 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17942 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17943 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17945 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17955 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17956 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17958 ac_MKDIR_P
=$MKDIR_P
17960 [\\/$
]* | ?
:[\\/]* ) ;;
17961 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17966 # If the template does not know about datarootdir, expand it.
17967 # FIXME: This hack should be removed a few years after 2.60.
17968 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17979 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17980 *datarootdir
*) ac_datarootdir_seen
=yes;;
17981 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17983 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17986 ac_datarootdir_hack='
17987 s&@datadir@&$datadir&g
17988 s&@docdir@&$docdir&g
17989 s&@infodir@&$infodir&g
17990 s&@localedir@&$localedir&g
17991 s&@mandir@&$mandir&g
17992 s&\\\${datarootdir}&$datarootdir&g' ;;
17996 # Neutralize VPATH when `$srcdir' = `.'.
17997 # Shell code in configure.ac might set extrasub.
17998 # FIXME: do we really want to maintain this feature?
17999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18000 ac_sed_extra="$ac_vpsub
18003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18005 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18006 s|@configure_input@|
$ac_sed_conf_input|
;t t
18007 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18008 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18009 s
&@srcdir@
&$ac_srcdir&;t t
18010 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18011 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18012 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18013 s
&@builddir@
&$ac_builddir&;t t
18014 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18015 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18016 s
&@INSTALL@
&$ac_INSTALL&;t t
18017 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18018 $ac_datarootdir_hack
18020 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18021 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18023 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18024 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18025 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18026 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18028 which seems to be undefined. Please make sure it is defined" >&5
18029 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18030 which seems to be undefined. Please make sure it is defined" >&2;}
18032 rm -f "$ac_tmp/stdin"
18034 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18035 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18043 if test x"$ac_file" != x-; then
18045 $as_echo "/* $configure_input */" \
18046 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18047 } >"$ac_tmp/config.h" \
18048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18049 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18051 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18054 mv "$ac_tmp/config.h" "$ac_file" \
18055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18058 $as_echo "/* $configure_input */" \
18059 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18060 || as_fn_error $? "could not create -" "$LINENO" 5
18062 # Compute "$ac_file"'s index
in $config_headers.
18065 for _am_header
in $config_headers :; do
18066 case $_am_header in
18067 $_am_arg |
$_am_arg:* )
18070 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18073 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18074 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18075 X"$_am_arg" : 'X\(//\)[^/]' \| \
18076 X"$_am_arg" : 'X\(//\)$' \| \
18077 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18078 $as_echo X"$_am_arg" |
18079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18083 /^X\(\/\/\)[^/].*/{
18095 s/.*/./; q'`/stamp-h
$_am_stamp_count
18098 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18099 $as_echo "$as_me: executing $ac_file commands" >&6;}
18104 case $ac_file$ac_mode in
18105 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18106 # Older Autoconf quotes --file arguments for eval, but not when files
18107 # are listed without --file. Let's play safe and only enable the eval
18108 # if we detect the quoting.
18109 case $CONFIG_FILES in
18110 *\'*) eval set x
"$CONFIG_FILES" ;;
18111 *) set x
$CONFIG_FILES ;;
18116 # Strip MF so we end up with the name of the file.
18117 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18118 # Check whether this is an Automake generated Makefile or not.
18119 # We used to match only the files named 'Makefile.in', but
18120 # some people rename them; so instead we look at the file content.
18121 # Grep'ing the first line is not enough: some people post-process
18122 # each Makefile.in and add a new line on top of each file to say so.
18123 # Grep'ing the whole file is not good either: AIX grep has a line
18124 # limit of 2048, but all sed's we know have understand at least 4000.
18125 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18126 dirpart
=`$as_dirname -- "$mf" ||
18127 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18128 X"$mf" : 'X\(//\)[^/]' \| \
18129 X"$mf" : 'X\(//\)$' \| \
18130 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18136 /^X\(\/\/\)[^/].*/{
18152 # Extract the definition of DEPDIR, am__include, and am__quote
18153 # from the Makefile without running 'make'.
18154 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18155 test -z "$DEPDIR" && continue
18156 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18157 test -z "$am__include" && continue
18158 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18159 # Find all dependency output files, they are included files with
18160 # $(DEPDIR) in their names. We invoke sed twice because it is the
18161 # simplest approach to changing $(DEPDIR) to its actual value in the
18163 for file in `sed -n "
18164 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18165 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18166 # Make sure the directory exists.
18167 test -f "$dirpart/$file" && continue
18168 fdir
=`$as_dirname -- "$file" ||
18169 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18170 X"$file" : 'X\(//\)[^/]' \| \
18171 X"$file" : 'X\(//\)$' \| \
18172 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18173 $as_echo X"$file" |
18174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18178 /^X\(\/\/\)[^/].*/{
18191 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18192 # echo "creating $dirpart/$file"
18193 echo '# dummy' > "$dirpart/$file"
18199 for ac_file
in $CONFIG_FILES; do
18200 # Support "outfile[:infile[:infile...]]"
18202 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
18204 # PO directories have a Makefile.in generated from Makefile.in.in.
18205 case "$ac_file" in */Makefile.
in)
18206 # Adjust a relative srcdir.
18207 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18208 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
18209 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18210 # In autoconf-2.13 it is called $ac_given_srcdir.
18211 # In autoconf-2.50 it is called $srcdir.
18212 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
18213 case "$ac_given_srcdir" in
18214 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
18215 /*) top_srcdir
="$ac_given_srcdir" ;;
18216 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
18218 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18219 rm -f "$ac_dir/POTFILES"
18220 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
18221 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18222 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18223 # on $ac_dir but don't depend on user-specified configuration
18225 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18226 # The LINGUAS file contains the set of available languages.
18227 if test -n "$ALL_LINGUAS"; then
18228 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
18230 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18231 # Hide the ALL_LINGUAS assigment from automake.
18232 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18234 case "$ac_given_srcdir" in
18236 *) srcdirpre
='$(srcdir)/' ;;
18242 for lang
in $ALL_LINGUAS; do
18243 POFILES
="$POFILES $srcdirpre$lang.po"
18244 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
18245 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
18246 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
18248 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18249 # environment variable.
18251 if test -n "$ALL_LINGUAS"; then
18252 for presentlang
in $ALL_LINGUAS; do
18254 if test "%UNSET%" != "$LINGUAS"; then
18255 desiredlanguages
="$LINGUAS"
18257 desiredlanguages
="$ALL_LINGUAS"
18259 for desiredlang
in $desiredlanguages; do
18260 # Use the presentlang catalog if desiredlang is
18261 # a. equal to presentlang, or
18262 # b. a variant of presentlang (because in this case,
18263 # presentlang can be used as a fallback for messages
18264 # which are not translated in the desiredlang catalog).
18265 case "$desiredlang" in
18266 "$presentlang"*) useit
=yes;;
18269 if test $useit = yes; then
18270 INST_LINGUAS
="$INST_LINGUAS $presentlang"
18275 if test -n "$INST_LINGUAS"; then
18276 for lang
in $INST_LINGUAS; do
18277 CATALOGS
="$CATALOGS $lang.gmo"
18280 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
18281 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"
18282 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
18283 if test -f "$f"; then
18285 *.orig |
*.bak |
*~
) ;;
18286 *) cat "$f" >> "$ac_dir/Makefile" ;;
18294 "denoiser":C
) if test $denoiserlevel -gt 0; then
18295 if test ! -d src
/utils
/scripts
; then mkdir
-p src
/utils
/scripts
; fi
18296 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" \
18297 $srcdir/src
/utils
/scripts
/denoiser.rules
> src
/utils
/scripts
/denoiser.
sed
18298 for i
in `find . -name 'Makefile' -print`; do
18299 if test -n "`head -n 1 $i | grep '^#'`"; then
18300 sed -f src
/utils
/scripts
/denoiser.
sed $i > $i.tmp
&& mv $i.tmp
$i
18311 ac_clean_files
=$ac_clean_files_save
18313 test $ac_write_fail = 0 ||
18314 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18317 # configure is writing to config.log, and then calls config.status.
18318 # config.status does its own redirection, appending to config.log.
18319 # Unfortunately, on DOS this fails, as config.log is still kept open
18320 # by configure, so config.status won't be able to write to it; its
18321 # output is simply discarded. So we exec the FD to /dev/null,
18322 # effectively closing config.log, so it can be properly (re)opened and
18323 # appended to by config.status. When coming back to configure, we
18324 # need to make the FD available again.
18325 if test "$no_create" != yes; then
18327 ac_config_status_args
=
18328 test "$silent" = yes &&
18329 ac_config_status_args
="$ac_config_status_args --quiet"
18331 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18333 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18334 # would make configure fail if this is the last instruction.
18335 $ac_cs_success || as_fn_exit
1
18337 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18339 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18343 if test -n "$svndate"; then :
18344 SVN_REVISION
=" ($svndate)"
18351 echo " Configure script has finished system check."
18353 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
18355 echo " aMule enabled options:"
18357 echo " **** aMule Core ****"
18358 echo " Prefix where aMule should be installed? ${prefix:-none}"
18359 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
18360 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
18361 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
18362 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
18363 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
18364 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
18365 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
18366 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18367 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18370 echo " **** aMule TextClient ****"
18371 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18373 echo " **** aMule WebServer ****"
18374 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18376 echo " **** aMule ED2K Links Handler ****"
18377 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18379 echo " **** aMuleLinkCreator ****"
18380 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18381 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18383 echo " **** aMule Statistics ****"
18384 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18385 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18386 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18387 echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}"
18390 echo " **** General Libraries and Tools ****"
18391 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18392 echo " Should aMule file viewer for console be built? ${enable_fileview:-no}"
18393 echo " Libraries aMule will use to build:"
18394 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 :
18397 if test $WX_DEBUG -eq 1; then :
18398 wxinfo
="$wxinfo,debug"
18400 if test $WX_SHARED -eq 1; then :
18401 wxinfo
="$wxinfo,shared"
18403 wxinfo
="$wxinfo,static"
18405 echo " wxWidgets ${WX_VERSION} ($wxinfo)"
18408 if test ${with_boost:-no} != no
; then :
18409 if test ${with_boost:-no} = disabled
; then
18410 echo " boost Not detected"
18411 elif test ${boost_cv_inc_path:-yes} != yes; then
18412 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18413 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18418 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18419 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})"
18421 if test ${enable_upnp:-yes} = yes; then :
18423 if test -n "$with_libupnp_prefix"; then :
18424 libupnp_place
=" (in $with_libupnp_prefix)"
18426 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18429 if test ${enable_nls:-yes} = yes; then
18430 if test x
$USE_NLS = xno
; then :
18431 libintl_found
="Not detected"
18433 if test x
$USE_INCLUDED_LIBINTL = xyes
; then :
18434 libintl_found
="included"
18436 libintl_found
="system"
18439 echo " libintl $libintl_found"
18441 if test ${enable_geoip:-no} = yes; then :
18442 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18447 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18448 echo " libGeoIP ${geoip_style}"
18451 if test ${enable_webserver:-no} = yes; then :
18452 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18454 if test ${enable_cas:-no} = yes; then :
18455 echo " libgd ${GDLIB_VERSION:-Not detected}"
18457 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 :
18458 echo " zlib ${ZLIB_VERSION:-Not detected}"
18460 if test ${enable_plasmamule:-no} = yes; then :
18461 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18462 echo " qt-core-libs ${QT_CORE_LIBS}"
18463 echo " qt-gui-libs ${QT_GUI_LIBS}"
18464 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18465 echo " kde-headers ${KDE_HEADER_DIR}"
18466 echo " kde-services-path ${KDE_SERVICE_PATH}"
18467 echo " kde-module-path ${KDE_MODULE_PATH}"
18468 echo " kde-icon-path ${KDE_ICON_PATH}"
18469 echo " kde-mime-path ${KDE_MIME_PATH}"
18470 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18473 if test ${_mule_has_warnings:-no} = yes; then
18476 echo " *** Warnings during configuration ***"
18478 if test ${_mule_warning_0:-no} = yes; then
18481 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18482 Please check that gdlib-config is in your default path, check out
18483 LD_LIBRARY_PATH or equivalent variable.
18484 Or this might also be that your gdlib-config has other name.
18485 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18486 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18487 If you use compiled packages check if you have devel pack installed.
18488 To download the latest version check http://www.boutell.com/gd for sources.
18491 if test ${_mule_warning_1:-no} = yes; then
18494 * libpng >= 1.2.0 not found.
18495 amuleweb will be compiled but file download progress bar images will NOT be
18499 if test ${_mule_warning_2:-no} = yes; then
18502 * File::Copy perl module is required by the mldonkey_importer script.
18503 If you want to use this script please install File::Copy from CPAN.
18506 if test ${_mule_warning_3:-no} = yes; then
18509 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18512 if test ${_mule_warning_4:-no} = yes; then
18515 * GeoIP support has been disabled because the GeoIP libraries were not found
18518 if test ${_mule_warning_5:-no} = yes; then
18521 * GeoIP support has been disabled because the GeoIP header files were not
18525 if test ${_mule_warning_6:-no} = yes; then
18528 * UPnP code has been disabled because ${libupnp_error}.
18531 if test ${_mule_warning_7:-no} = yes; then
18534 * Cross-compilation detected, so exception handling cannot be tested.
18535 Note that broken exception handling in your compiler may lead to unexpected
18539 if test ${_mule_warning_8:-no} = yes; then
18542 * Boost support has been disabled because Boost.System not found
18545 if test ${_mule_warning_9:-no} = yes; then
18548 * Boost support has been disabled because Boost.Asio not found
18551 if test ${_mule_warning_10:-no} = yes; then
18554 * Boost support has been disabled because Boost.Asio not found
18557 if test ${_mule_warning_11:-no} = yes; then
18560 * Boost support has been disabled because of insufficient Boost version.
18563 if test ${_mule_warning_12:-no} = yes; then
18566 * configure cannot check whether malloc() and realloc() are GNU libc
18567 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18568 configure with the --without-gnu-malloc switch.
18571 if test ${_mule_warning_13:-no} = yes; then
18574 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18578 if test ${_mule_warning_14:-no} = yes; then
18581 * Cannot link to the library containing the bfd functions.
18584 if test ${_mule_warning_15:-no} = yes; then
18587 * bfd.h not found or unusable, please install binutils development package if
18588 you are a developer or want to help testing aMule