Add support for uint128 values in EC
[amule.git] / configure
blob9dcb2abf2bd8ff751b2488f2b5d1b0d8c5c40b3d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='aMule'
554 PACKAGE_TARNAME='amule'
555 PACKAGE_VERSION='SVN'
556 PACKAGE_STRING='aMule SVN'
557 PACKAGE_BUGREPORT='admin@amule.org'
558 PACKAGE_URL=''
560 ac_unique_file="src/amule.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_header_list=
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 COMPILE_LIB_EC_FALSE
602 COMPILE_LIB_EC_TRUE
603 COMPILE_LIB_COMMON_FALSE
604 COMPILE_LIB_COMMON_TRUE
605 PLASMAMULE_FALSE
606 PLASMAMULE_TRUE
607 INSTALL_SKINS_FALSE
608 INSTALL_SKINS_TRUE
609 GENERATE_FLEX_HEADER_FALSE
610 GENERATE_FLEX_HEADER_TRUE
611 COMPILE_NLS_FALSE
612 COMPILE_NLS_TRUE
613 NEED_CORESERVICES_FALSE
614 NEED_CORESERVICES_TRUE
615 NEED_RC_FALSE
616 NEED_RC_TRUE
617 SYS_WIN32_FALSE
618 SYS_WIN32_TRUE
619 SVNDATE
620 READLINE_LIBS
621 DEBUGFLAG
622 KDE_MIME_PATH
623 KDE_ICON_PATH
624 KDE_MODULE_PATH
625 KDE_SERVICE_PATH
626 KDE_APPLNK_PATH
627 KDE_HEADER_DIR
628 KDE4_CONFIG
629 QT_GUI_LIBS
630 QT_GUI_CXXFLAGS
631 QT_CORE_LIBS
632 QT_CORE_CXXFLAGS
633 QT_DBUS_LDFLAGS
634 QT_MOC
635 BFD_LIBS
636 BFD_CPPFLAGS
637 INCINTL
638 MONOLITHIC_MANPAGES
639 ALCC_MANPAGES
640 ALC_MANPAGES
641 ED2K_MANPAGES
642 WXCAS_MANPAGES
643 CAS_MANPAGES
644 AMULE_GUI_MANPAGES
645 WEBSERVER_MANPAGES
646 AMULECMD_MANPAGES
647 AMULE_DAEMON_MANPAGES
648 POSUB
649 LTLIBINTL
650 LIBINTL
651 INTLLIBS
652 INTL_LIBTOOL_SUFFIX_PREFIX
653 GENCAT
654 INSTOBJEXT
655 DATADIRNAME
656 INTLOBJS
657 CATOBJEXT
658 USE_INCLUDED_LIBINTL
659 BUILD_INCLUDED_LIBINTL
660 USE_NLS
661 INTLBISON
662 LTLIBICONV
663 LIBICONV
664 GLIBC21
665 MSGMERGE
666 XGETTEXT
667 GMSGFMT
668 MSGFMT
669 MKINSTALLDIRS
670 POW_LIB
671 LIBOBJS
672 ALLOCA
673 BOOST_SYSTEM_LIBS
674 BOOST_LDPATH
675 BOOST_SYSTEM_LDPATH
676 BOOST_SYSTEM_LDFLAGS
677 BOOST_CPPFLAGS
678 DISTCHECK_CONFIGURE_FLAGS
679 BOOST_ROOT
680 CRYPTOPP_LIBS
681 CRYPTOPP_LDFLAGS
682 CRYPTOPP_CPPFLAGS
683 LIBUPNP_LIBS
684 LIBUPNP_LDFLAGS
685 LIBUPNP_CFLAGS
686 LIBUPNP_CPPFLAGS
687 PKG_CONFIG
688 RCFLAGS
690 WXBASE_CPPFLAGS
691 WXBASE_LIBS
692 WX_PORT
693 WX_SHARED
694 WX_DEBUG
695 WX_UNICODE
696 WX_VERSION_MINOR
697 WX_VERSION_MAJOR
698 WX_RESCOMP
699 WX_VERSION_FULL
700 WX_LIBS
701 WX_CXXFLAGS_ONLY
702 WX_CFLAGS_ONLY
703 WX_CXXFLAGS
704 WX_CFLAGS
705 WX_CPPFLAGS
706 WX_CONFIG_PATH
707 AMULEWEB_DEFS
708 LIBPNG_LIBS
709 LIBPNG_LDFLAGS
710 LIBPNG_CFLAGS
711 LIBPNG_CONFIG_PATH
712 ZLIB_LIBS
713 ZLIB_LDFLAGS
714 ZLIB_CPPFLAGS
715 CAS_DEFS
716 GDLIB_LIBS
717 GDLIB_LDFLAGS
718 GDLIB_CFLAGS
719 GDLIB_CONFIG_PATH
720 FILEVIEW_FALSE
721 FILEVIEW_TRUE
722 XAS_FALSE
723 XAS_TRUE
724 ALCC_FALSE
725 ALCC_TRUE
726 ALC_FALSE
727 ALC_TRUE
728 ED2K_FALSE
729 ED2K_TRUE
730 WXCAS_FALSE
731 WXCAS_TRUE
732 CAS_FALSE
733 CAS_TRUE
734 AMULE_GUI_FALSE
735 AMULE_GUI_TRUE
736 WEB_FALSE
737 WEB_TRUE
738 COMPILE_CMD_FALSE
739 COMPILE_CMD_TRUE
740 AMULE_DAEMON_FALSE
741 AMULE_DAEMON_TRUE
742 MONOLITHIC_FALSE
743 MONOLITHIC_TRUE
746 YFLAGS
747 YACC
749 RANLIB
750 LEXLIB
751 LEX_OUTPUT_ROOT
753 EGREP
754 GREP
755 BUILD_LDFLAGS
756 BUILD_CFLAGS
757 BUILD_CPPFLAGS
758 BUILD_EXEEXT
759 ac_ct_BUILD_CC
760 BUILD_CC
762 am__fastdepCC_FALSE
763 am__fastdepCC_TRUE
764 CCDEPMODE
765 ac_ct_CC
766 CFLAGS
768 CXXCPP
769 am__fastdepCXX_FALSE
770 am__fastdepCXX_TRUE
771 CXXDEPMODE
772 AMDEPBACKSLASH
773 AMDEP_FALSE
774 AMDEP_TRUE
775 am__quote
776 am__include
777 DEPDIR
778 OBJEXT
779 EXEEXT
780 ac_ct_CXX
781 CPPFLAGS
782 LDFLAGS
783 CXXFLAGS
785 MULERCFLAGS
786 MULELDFLAGS
787 MULECXXFLAGS
788 MULECFLAGS
789 MULECPPFLAGS
790 RESOLV_LIB
791 host_os
792 host_vendor
793 host_cpu
794 host
795 build_os
796 build_vendor
797 build_cpu
798 build
799 MAINT
800 MAINTAINER_MODE_FALSE
801 MAINTAINER_MODE_TRUE
802 AM_BACKSLASH
803 AM_DEFAULT_VERBOSITY
804 am__untar
805 am__tar
806 AMTAR
807 am__leading_dot
808 SET_MAKE
810 mkdir_p
811 MKDIR_P
812 INSTALL_STRIP_PROGRAM
813 STRIP
814 install_sh
815 MAKEINFO
816 AUTOHEADER
817 AUTOMAKE
818 AUTOCONF
819 ACLOCAL
820 VERSION
821 PACKAGE
822 CYGPATH_W
823 am__isrc
824 INSTALL_DATA
825 INSTALL_SCRIPT
826 INSTALL_PROGRAM
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL
865 GEOIP_LIBS
866 GEOIP_LDFLAGS
867 GEOIP_CPPFLAGS'
868 ac_subst_files=''
869 ac_user_opts='
870 enable_option_checking
871 enable_silent_rules
872 enable_maintainer_mode
873 enable_dependency_tracking
874 enable_monolithic
875 enable_amule_daemon
876 enable_amulecmd
877 enable_webserver
878 enable_amule_gui
879 enable_cas
880 enable_wxcas
881 enable_ed2k
882 enable_alc
883 enable_alcc
884 enable_xas
885 enable_fileview
886 enable_plasmamule
887 enable_static
888 with_kde4_config
889 enable_kde_in_home
890 with_moc
891 with_gnu_malloc
892 with_gdlib_prefix
893 with_gdlib_config
894 with_zlib
895 with_libpng_prefix
896 with_libpng_config
897 enable_geoip
898 with_geoip_headers
899 with_geoip_lib
900 with_geoip_static
901 with_wxdir
902 with_wx_config
903 with_wx_prefix
904 with_wx_exec_prefix
905 with_toolkit
906 with_wxshared
907 with_wxdebug
908 with_wxversion
909 enable_upnp
910 with_libupnp_prefix
911 with_crypto_prefix
912 enable_debug
913 enable_profile
914 enable_optimize
915 with_boost
916 enable_static_boost
917 enable_mmap
918 with_language
919 with_gnu_ld
920 enable_rpath
921 with_libiconv_prefix
922 enable_nls
923 with_included_gettext
924 with_libintl_prefix
925 with_denoise_level
926 enable_ccache
927 with_ccache_prefix
929 ac_precious_vars='build_alias
930 host_alias
931 target_alias
933 CXXFLAGS
934 LDFLAGS
935 LIBS
936 CPPFLAGS
938 CXXCPP
940 CFLAGS
942 YACC
943 YFLAGS
945 RCFLAGS
946 PKG_CONFIG
947 BOOST_ROOT'
950 # Initialize some variables set by options.
951 ac_init_help=
952 ac_init_version=false
953 ac_unrecognized_opts=
954 ac_unrecognized_sep=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
957 cache_file=/dev/null
958 exec_prefix=NONE
959 no_create=
960 no_recursion=
961 prefix=NONE
962 program_prefix=NONE
963 program_suffix=NONE
964 program_transform_name=s,x,x,
965 silent=
966 site=
967 srcdir=
968 verbose=
969 x_includes=NONE
970 x_libraries=NONE
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
990 htmldir='${docdir}'
991 dvidir='${docdir}'
992 pdfdir='${docdir}'
993 psdir='${docdir}'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
998 ac_prev=
999 ac_dashdash=
1000 for ac_option
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1005 ac_prev=
1006 continue
1009 case $ac_option in
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *) ac_optarg=yes ;;
1012 esac
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1018 ac_dashdash=yes ;;
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 ac_prev=bindir ;;
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1041 ac_prev=datadir ;;
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval enable_$ac_useropt=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval enable_$ac_useropt=\$ac_optarg ;;
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1105 with_gas=yes ;;
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 ac_prev=htmldir ;;
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 | --ht=*)
1123 htmldir=$ac_optarg ;;
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 ac_prev=infodir ;;
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1137 -libdir | --libdir | --libdi | --libd)
1138 ac_prev=libdir ;;
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 ac_prev=mandir ;;
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1168 with_fp=no ;;
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1172 no_create=yes ;;
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 no_recursion=yes ;;
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 ac_prev=prefix ;;
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 ac_prev=pdfdir ;;
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1228 -psdir | --psdir | --psdi | --psd | --ps)
1229 ac_prev=psdir ;;
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 psdir=$ac_optarg ;;
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 silent=yes ;;
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
1241 sbindir=$ac_optarg ;;
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
1252 sharedstatedir=$ac_optarg ;;
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
1257 site=$ac_optarg ;;
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1282 -with-* | --with-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1291 "with_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1307 "with_$ac_useropt"
1308 "*) ;;
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1311 esac
1312 eval with_$ac_useropt=no ;;
1314 --x)
1315 # Obsolete; use --with-x.
1316 with_x=yes ;;
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) as_fn_error "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information."
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1342 esac
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 esac
1355 done
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error "missing argument to $ac_option"
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
1365 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1367 esac
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1378 case $ac_val in
1379 */ )
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1382 esac
1383 # Be sure to have absolute directory names.
1384 case $ac_val in
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1387 esac
1388 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1389 done
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1394 build=$build_alias
1395 host=$host_alias
1396 target=$target_alias
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1403 If a cross compiler is detected then cross compile mode will be used." >&2
1404 elif test "x$build_alias" != "x$host_alias"; then
1405 cross_compiling=yes
1409 ac_tool_prefix=
1410 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412 test "$silent" = yes && exec 6>/dev/null
1415 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416 ac_ls_di=`ls -di .` &&
1417 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 as_fn_error "working directory cannot be determined"
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 as_fn_error "pwd does not report name of working directory"
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434 s//\1/
1437 /^X\(\/\/\)[^/].*/{
1438 s//\1/
1441 /^X\(\/\/\)$/{
1442 s//\1/
1445 /^X\(\/\).*/{
1446 s//\1/
1449 s/.*/./; q'`
1450 srcdir=$ac_confdir
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 srcdir=..
1454 else
1455 ac_srcdir_defaulted=no
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 ac_abs_confdir=`(
1463 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1464 pwd)`
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 srcdir=.
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1472 case $srcdir in
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 esac
1475 for ac_var in $ac_precious_vars; do
1476 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_env_${ac_var}_value=\$${ac_var}
1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1480 done
1483 # Report the --help message.
1485 if test "$ac_init_help" = "long"; then
1486 # Omit some internal or obsolete options to make the list less imposing.
1487 # This message is too long to be a string in the A/UX 3.1 sh.
1488 cat <<_ACEOF
1489 \`configure' configures aMule SVN to adapt to many kinds of systems.
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE. See below for descriptions of some of the useful variables.
1496 Defaults for the options are specified in brackets.
1498 Configuration:
1499 -h, --help display this help and exit
1500 --help=short display options specific to this package
1501 --help=recursive display the short help of all the included packages
1502 -V, --version display version information and exit
1503 -q, --quiet, --silent do not print \`checking...' messages
1504 --cache-file=FILE cache test results in FILE [disabled]
1505 -C, --config-cache alias for \`--cache-file=config.cache'
1506 -n, --no-create do not create output files
1507 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509 Installation directories:
1510 --prefix=PREFIX install architecture-independent files in PREFIX
1511 [$ac_default_prefix]
1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 [PREFIX]
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1520 For better control, use the options below.
1522 Fine tuning of the installation directories:
1523 --bindir=DIR user executables [EPREFIX/bin]
1524 --sbindir=DIR system admin executables [EPREFIX/sbin]
1525 --libexecdir=DIR program executables [EPREFIX/libexec]
1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529 --libdir=DIR object code libraries [EPREFIX/lib]
1530 --includedir=DIR C header files [PREFIX/include]
1531 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534 --infodir=DIR info documentation [DATAROOTDIR/info]
1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536 --mandir=DIR man documentation [DATAROOTDIR/man]
1537 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1538 --htmldir=DIR html documentation [DOCDIR]
1539 --dvidir=DIR dvi documentation [DOCDIR]
1540 --pdfdir=DIR pdf documentation [DOCDIR]
1541 --psdir=DIR ps documentation [DOCDIR]
1542 _ACEOF
1544 cat <<\_ACEOF
1546 Program names:
1547 --program-prefix=PREFIX prepend PREFIX to installed program names
1548 --program-suffix=SUFFIX append SUFFIX to installed program names
1549 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1551 System types:
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1554 _ACEOF
1557 if test -n "$ac_init_help"; then
1558 case $ac_init_help in
1559 short | recursive ) echo "Configuration of aMule SVN:";;
1560 esac
1561 cat <<\_ACEOF
1563 Optional Features:
1564 --disable-option-checking ignore unrecognized --enable/--with options
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567 --enable-silent-rules less verbose build output (undo: `make V=1')
1568 --disable-silent-rules verbose build output (undo: `make V=0')
1569 --enable-maintainer-mode enable make rules and dependencies not useful
1570 (and sometimes confusing) to the casual installer
1571 --disable-dependency-tracking speeds up one-time build
1572 --enable-dependency-tracking do not reject slow dependency extractors
1573 --disable-monolithic disable building of the monolithic aMule app
1574 --enable-amule-daemon compile aMule daemon version
1575 --enable-amulecmd compile aMule command line client
1576 --enable-webserver compile aMule WebServer
1577 --enable-amule-gui compile aMule remote GUI
1578 --enable-cas compile C aMule Statistics
1579 --enable-wxcas compile aMule GUI Statistics
1580 --disable-ed2k don't compile aMule ed2k links handler
1581 --enable-alc compile aMuleLinkCreator GUI version
1582 --enable-alcc compile aMuleLinkCreator for console
1583 --enable-xas install xas XChat2 plugin
1584 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1585 --enable-plasmamule compile aMule plasma applet and engine
1586 --enable-static produce a statically linked executable
1587 --enable-kde-in-home install KDE related stuff in your home dir
1588 --enable-geoip compile with GeoIP IP2Country library
1589 --disable-upnp do not compile UPnP code
1590 --disable-debug disable additional debugging output
1591 --enable-profile enable code profiling
1592 --enable-optimize enable code optimization
1593 --enable-static-boost Prefer the static boost libraries over the shared
1594 ones [no]
1595 --enable-mmap enable using mapped memory if supported
1596 --disable-rpath do not hardcode runtime library paths
1597 --disable-nls do not use Native Language Support
1598 --enable-ccache enable ccache support for fast recompilation
1600 Optional Packages:
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-kde4-config=PATH kde4-config script to use
1604 --with-moc=PATH Search in PATH for Qt's meta object compiler
1605 --without-gnu-malloc Don't assume that we use GNU libc compatible
1606 malloc/realloc when cross-compiling
1607 --with-gdlib-prefix=PREFIX
1608 prefix where gdlib is installed (optional)
1609 --with-gdlib-config=CONFIG
1610 gdlib-config script to use (optional)
1611 --with-zlib=PREFIX use zlib in PREFIX
1612 --with-libpng-prefix=PREFIX
1613 prefix where libpng is installed (optional)
1614 --with-libpng-config=CONFIG
1615 libpng-config script to use (optional)
1616 --with-geoip-headers=DIR
1617 GeoIP include files location
1618 --with-geoip-lib=DIR GeoIP library location
1619 --with-geoip-static Explicitly link GeoIP statically (default=no)
1620 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1621 --with-wx-config=CONFIG wx-config script to use (optional)
1622 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1623 --with-wx-exec-prefix=PREFIX
1624 Exec prefix where wxWidgets is installed (optional)
1625 --with-toolkit Build against a specific wxWidgets toolkit (default
1626 is auto)
1627 --with-wxshared Force building against a shared build of wxWidgets,
1628 even if --disable-shared is given (default is auto)
1629 --with-wxdebug Force building against a debug build of wxWidgets,
1630 even if --disable-debug is given (default is auto)
1631 --with-wxversion Build against a specific version of wxWidgets
1632 (default is auto)
1633 --with-libupnp-prefix=PREFIX
1634 UPnP library location
1635 --with-crypto-prefix=PREFIX
1636 prefix where crypto++ is installed
1637 --with-boost[=DIR] use Boost.Asio for networking
1638 --with-language=<langs> Specify a comma-separated list of languages you want
1639 to have installed. See po/LINGUAS for available
1640 languages
1641 --with-gnu-ld assume the C compiler uses GNU ld default=no
1642 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1643 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1644 --with-included-gettext use the GNU gettext library included here
1645 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1646 --without-libintl-prefix don't search for libintl in includedir and libdir
1647 --with-denoise-level=<level>
1648 Specifies denoising level (0-4):
1649 0 - Do nothing
1650 4 - Suppress all normal output
1651 (for more information see
1652 src/utils/scripts/denoiser.rules)
1654 --with-ccache-prefix=PREFIX
1655 prefix where ccache is installed
1657 Some influential environment variables:
1658 CXX C++ compiler command
1659 CXXFLAGS C++ compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
1662 LIBS libraries to pass to the linker, e.g. -l<library>
1663 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1664 you have headers in a nonstandard directory <include dir>
1665 CXXCPP C++ preprocessor
1666 CC C compiler command
1667 CFLAGS C compiler flags
1668 CPP C preprocessor
1669 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1670 the first program found out of: `bison -y', `byacc', `yacc'.
1671 YFLAGS The list of arguments that will be passed by default to $YACC.
1672 This script will default YFLAGS to the empty string to avoid a
1673 default value of `-d' given by some make applications.
1674 RC Resource Compiler
1675 RCFLAGS Resource Compiler Flags
1676 PKG_CONFIG path to pkg-config utility
1677 BOOST_ROOT Location of Boost installation
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1682 Report bugs to <admin@amule.org>.
1683 _ACEOF
1684 ac_status=$?
1687 if test "$ac_init_help" = "recursive"; then
1688 # If there are subdirs, report their specific --help.
1689 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690 test -d "$ac_dir" ||
1691 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692 continue
1693 ac_builddir=.
1695 case "$ac_dir" in
1696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1699 # A ".." for each directory in $ac_dir_suffix.
1700 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701 case $ac_top_builddir_sub in
1702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704 esac ;;
1705 esac
1706 ac_abs_top_builddir=$ac_pwd
1707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708 # for backward compatibility:
1709 ac_top_builddir=$ac_top_build_prefix
1711 case $srcdir in
1712 .) # We are building in place.
1713 ac_srcdir=.
1714 ac_top_srcdir=$ac_top_builddir_sub
1715 ac_abs_top_srcdir=$ac_pwd ;;
1716 [\\/]* | ?:[\\/]* ) # Absolute name.
1717 ac_srcdir=$srcdir$ac_dir_suffix;
1718 ac_top_srcdir=$srcdir
1719 ac_abs_top_srcdir=$srcdir ;;
1720 *) # Relative name.
1721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722 ac_top_srcdir=$ac_top_build_prefix$srcdir
1723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 esac
1725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727 cd "$ac_dir" || { ac_status=$?; continue; }
1728 # Check for guested configure.
1729 if test -f "$ac_srcdir/configure.gnu"; then
1730 echo &&
1731 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732 elif test -f "$ac_srcdir/configure"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure" --help=recursive
1735 else
1736 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737 fi || ac_status=$?
1738 cd "$ac_pwd" || { ac_status=$?; break; }
1739 done
1742 test -n "$ac_init_help" && exit $ac_status
1743 if $ac_init_version; then
1744 cat <<\_ACEOF
1745 aMule configure SVN
1746 generated by GNU Autoconf 2.65
1748 Copyright (C) 2009 Free Software Foundation, Inc.
1749 This configure script is free software; the Free Software Foundation
1750 gives unlimited permission to copy, distribute and modify it.
1751 _ACEOF
1752 exit
1755 ## ------------------------ ##
1756 ## Autoconf initialization. ##
1757 ## ------------------------ ##
1759 # ac_fn_cxx_try_compile LINENO
1760 # ----------------------------
1761 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_cxx_try_compile ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext
1766 if { { ac_try="$ac_compile"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_compile") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_cxx_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest.$ac_objext; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1790 ac_retval=1
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 as_fn_set_status $ac_retval
1795 } # ac_fn_cxx_try_compile
1797 # ac_fn_cxx_try_cpp LINENO
1798 # ------------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_cpp ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } >/dev/null && {
1819 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_cxx_try_cpp
1834 # ac_fn_c_try_compile LINENO
1835 # --------------------------
1836 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_compile ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext
1841 if { { ac_try="$ac_compile"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_compile") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest.$ac_objext; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 ac_retval=1
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_compile
1872 # ac_fn_c_try_cpp LINENO
1873 # ----------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_c_try_cpp ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } >/dev/null && {
1894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_retval=1
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_try_cpp
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_link ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 $as_test_x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_retval=1
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_c_try_link
1955 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1956 # -------------------------------------------------------
1957 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958 # the include files in INCLUDES and setting the cache variable VAR
1959 # accordingly.
1960 ac_fn_c_check_header_mongrel ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967 $as_echo_n "(cached) " >&6
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 else
1973 # Is the header compilable?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975 $as_echo_n "checking $2 usability... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_header_compiler=yes
1983 else
1984 ac_header_compiler=no
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988 $as_echo "$ac_header_compiler" >&6; }
1990 # Is the header present?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992 $as_echo_n "checking $2 presence... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_cpp "$LINENO"; then :
1998 ac_header_preproc=yes
1999 else
2000 ac_header_preproc=no
2002 rm -f conftest.err conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004 $as_echo "$ac_header_preproc" >&6; }
2006 # So? What about this header?
2007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2008 yes:no: )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 no:yes:* )
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2018 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2022 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 ( cat <<\_ASBOX
2026 ## ------------------------------ ##
2027 ## Report this to admin@amule.org ##
2028 ## ------------------------------ ##
2029 _ASBOX
2030 ) | sed "s/^/$as_me: WARNING: /" >&2
2032 esac
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2036 $as_echo_n "(cached) " >&6
2037 else
2038 eval "$3=\$ac_header_compiler"
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_c_check_header_mongrel
2048 # ac_fn_c_try_run LINENO
2049 # ----------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2051 # that executables *can* be run.
2052 ac_fn_c_try_run ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if { { ac_try="$ac_link"
2056 case "(($ac_try" in
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>&5
2063 ac_status=$?
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2066 { { case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_try") 2>&5
2073 ac_status=$?
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; }; }; then :
2076 ac_retval=0
2077 else
2078 $as_echo "$as_me: program exited with status $ac_status" >&5
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2082 ac_retval=$ac_status
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 as_fn_set_status $ac_retval
2088 } # ac_fn_c_try_run
2090 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2091 # -------------------------------------------------------
2092 # Tests whether HEADER exists and can be compiled using the include files in
2093 # INCLUDES, setting the cache variable VAR accordingly.
2094 ac_fn_c_check_header_compile ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2105 #include <$2>
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108 eval "$3=yes"
2109 else
2110 eval "$3=no"
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 eval ac_res=\$$3
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2117 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 } # ac_fn_c_check_header_compile
2121 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2122 # -------------------------------------------
2123 # Tests whether TYPE exists after having included INCLUDES, setting cache
2124 # variable VAR accordingly.
2125 ac_fn_c_check_type ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 eval "$3=no"
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 if (sizeof ($2))
2141 return 0;
2143 return 0;
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 if (sizeof (($2)))
2154 return 0;
2156 return 0;
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2161 else
2162 eval "$3=yes"
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 } # ac_fn_c_check_type
2175 # ac_fn_cxx_try_link LINENO
2176 # -------------------------
2177 # Try to link conftest.$ac_ext, and return whether this succeeded.
2178 ac_fn_cxx_try_link ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 rm -f conftest.$ac_objext conftest$ac_exeext
2182 if { { ac_try="$ac_link"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_link") 2>conftest.err
2190 ac_status=$?
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } && {
2198 test -z "$ac_cxx_werror_flag" ||
2199 test ! -s conftest.err
2200 } && test -s conftest$ac_exeext && {
2201 test "$cross_compiling" = yes ||
2202 $as_test_x conftest$ac_exeext
2203 }; then :
2204 ac_retval=0
2205 else
2206 $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2209 ac_retval=1
2211 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2212 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2213 # interfere with the next link command; also delete a directory that is
2214 # left behind by Apple's compiler. We do this before executing the actions.
2215 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2216 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2217 as_fn_set_status $ac_retval
2219 } # ac_fn_cxx_try_link
2221 # ac_fn_cxx_try_run LINENO
2222 # ------------------------
2223 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2224 # that executables *can* be run.
2225 ac_fn_cxx_try_run ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { { ac_try="$ac_link"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_link") 2>&5
2236 ac_status=$?
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2239 { { case "(($ac_try" in
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2242 esac
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_try") 2>&5
2246 ac_status=$?
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; }; }; then :
2249 ac_retval=0
2250 else
2251 $as_echo "$as_me: program exited with status $ac_status" >&5
2252 $as_echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 ac_retval=$ac_status
2257 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2258 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2259 as_fn_set_status $ac_retval
2261 } # ac_fn_cxx_try_run
2263 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2264 # ---------------------------------------------------------
2265 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2266 # the include files in INCLUDES and setting the cache variable VAR
2267 # accordingly.
2268 ac_fn_cxx_check_header_mongrel ()
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2273 $as_echo_n "checking for $2... " >&6; }
2274 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2275 $as_echo_n "(cached) " >&6
2277 eval ac_res=\$$3
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 else
2281 # Is the header compilable?
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2283 $as_echo_n "checking $2 usability... " >&6; }
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2287 #include <$2>
2288 _ACEOF
2289 if ac_fn_cxx_try_compile "$LINENO"; then :
2290 ac_header_compiler=yes
2291 else
2292 ac_header_compiler=no
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2296 $as_echo "$ac_header_compiler" >&6; }
2298 # Is the header present?
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2300 $as_echo_n "checking $2 presence... " >&6; }
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2303 #include <$2>
2304 _ACEOF
2305 if ac_fn_cxx_try_cpp "$LINENO"; then :
2306 ac_header_preproc=yes
2307 else
2308 ac_header_preproc=no
2310 rm -f conftest.err conftest.$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2312 $as_echo "$ac_header_preproc" >&6; }
2314 # So? What about this header?
2315 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2316 yes:no: )
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2318 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2320 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2322 no:yes:* )
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2324 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2326 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2328 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2330 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2332 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2333 ( cat <<\_ASBOX
2334 ## ------------------------------ ##
2335 ## Report this to admin@amule.org ##
2336 ## ------------------------------ ##
2337 _ASBOX
2338 ) | sed "s/^/$as_me: WARNING: /" >&2
2340 esac
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 eval "$3=\$ac_header_compiler"
2348 eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2352 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2354 } # ac_fn_cxx_check_header_mongrel
2356 # ac_fn_cxx_check_func LINENO FUNC VAR
2357 # ------------------------------------
2358 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2359 ac_fn_cxx_check_func ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2369 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2371 #define $2 innocuous_$2
2373 /* System header to define __stub macros and hopefully few prototypes,
2374 which can conflict with char $2 (); below.
2375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2376 <limits.h> exists even on freestanding compilers. */
2378 #ifdef __STDC__
2379 # include <limits.h>
2380 #else
2381 # include <assert.h>
2382 #endif
2384 #undef $2
2386 /* Override any GCC internal prototype to avoid an error.
2387 Use char because int might match the return type of a GCC
2388 builtin and then its argument prototype would still apply. */
2389 #ifdef __cplusplus
2390 extern "C"
2391 #endif
2392 char $2 ();
2393 /* The GNU C library defines this for functions which it implements
2394 to always fail with ENOSYS. Some functions are actually named
2395 something starting with __ and the normal name is an alias. */
2396 #if defined __stub_$2 || defined __stub___$2
2397 choke me
2398 #endif
2401 main ()
2403 return $2 ();
2405 return 0;
2407 _ACEOF
2408 if ac_fn_cxx_try_link "$LINENO"; then :
2409 eval "$3=yes"
2410 else
2411 eval "$3=no"
2413 rm -f core conftest.err conftest.$ac_objext \
2414 conftest$ac_exeext conftest.$ac_ext
2416 eval ac_res=\$$3
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2421 } # ac_fn_cxx_check_func
2423 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2424 # ---------------------------------------------
2425 # Tests whether TYPE exists after having included INCLUDES, setting cache
2426 # variable VAR accordingly.
2427 ac_fn_cxx_check_type ()
2429 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2431 $as_echo_n "checking for $2... " >&6; }
2432 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 eval "$3=no"
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2440 main ()
2442 if (sizeof ($2))
2443 return 0;
2445 return 0;
2447 _ACEOF
2448 if ac_fn_cxx_try_compile "$LINENO"; then :
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2453 main ()
2455 if (sizeof (($2)))
2456 return 0;
2458 return 0;
2460 _ACEOF
2461 if ac_fn_cxx_try_compile "$LINENO"; then :
2463 else
2464 eval "$3=yes"
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 eval ac_res=\$$3
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2475 } # ac_fn_cxx_check_type
2477 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2478 # ---------------------------------------------------------
2479 # Tests whether HEADER exists and can be compiled using the include files in
2480 # INCLUDES, setting the cache variable VAR accordingly.
2481 ac_fn_cxx_check_header_compile ()
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2485 $as_echo_n "checking for $2... " >&6; }
2486 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2492 #include <$2>
2493 _ACEOF
2494 if ac_fn_cxx_try_compile "$LINENO"; then :
2495 eval "$3=yes"
2496 else
2497 eval "$3=no"
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 eval ac_res=\$$3
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2503 $as_echo "$ac_res" >&6; }
2504 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2506 } # ac_fn_cxx_check_header_compile
2508 # ac_fn_c_check_func LINENO FUNC VAR
2509 # ----------------------------------
2510 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2511 ac_fn_c_check_func ()
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515 $as_echo_n "checking for $2... " >&6; }
2516 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2517 $as_echo_n "(cached) " >&6
2518 else
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2521 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2523 #define $2 innocuous_$2
2525 /* System header to define __stub macros and hopefully few prototypes,
2526 which can conflict with char $2 (); below.
2527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2528 <limits.h> exists even on freestanding compilers. */
2530 #ifdef __STDC__
2531 # include <limits.h>
2532 #else
2533 # include <assert.h>
2534 #endif
2536 #undef $2
2538 /* Override any GCC internal prototype to avoid an error.
2539 Use char because int might match the return type of a GCC
2540 builtin and then its argument prototype would still apply. */
2541 #ifdef __cplusplus
2542 extern "C"
2543 #endif
2544 char $2 ();
2545 /* The GNU C library defines this for functions which it implements
2546 to always fail with ENOSYS. Some functions are actually named
2547 something starting with __ and the normal name is an alias. */
2548 #if defined __stub_$2 || defined __stub___$2
2549 choke me
2550 #endif
2553 main ()
2555 return $2 ();
2557 return 0;
2559 _ACEOF
2560 if ac_fn_c_try_link "$LINENO"; then :
2561 eval "$3=yes"
2562 else
2563 eval "$3=no"
2565 rm -f core conftest.err conftest.$ac_objext \
2566 conftest$ac_exeext conftest.$ac_ext
2568 eval ac_res=\$$3
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570 $as_echo "$ac_res" >&6; }
2571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2573 } # ac_fn_c_check_func
2575 # ac_fn_c_check_decl LINENO SYMBOL VAR
2576 # ------------------------------------
2577 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2578 ac_fn_c_check_decl ()
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2582 $as_echo_n "checking whether $2 is declared... " >&6; }
2583 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2590 main ()
2592 #ifndef $2
2593 (void) $2;
2594 #endif
2597 return 0;
2599 _ACEOF
2600 if ac_fn_c_try_compile "$LINENO"; then :
2601 eval "$3=yes"
2602 else
2603 eval "$3=no"
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 eval ac_res=\$$3
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2609 $as_echo "$ac_res" >&6; }
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612 } # ac_fn_c_check_decl
2613 cat >config.log <<_ACEOF
2614 This file contains any messages produced by compilers while
2615 running configure, to aid debugging if configure makes a mistake.
2617 It was created by aMule $as_me SVN, which was
2618 generated by GNU Autoconf 2.65. Invocation command line was
2620 $ $0 $@
2622 _ACEOF
2623 exec 5>>config.log
2625 cat <<_ASUNAME
2626 ## --------- ##
2627 ## Platform. ##
2628 ## --------- ##
2630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2637 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2639 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2640 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2642 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2643 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2644 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2645 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2647 _ASUNAME
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 $as_echo "PATH: $as_dir"
2655 done
2656 IFS=$as_save_IFS
2658 } >&5
2660 cat >&5 <<_ACEOF
2663 ## ----------- ##
2664 ## Core tests. ##
2665 ## ----------- ##
2667 _ACEOF
2670 # Keep a trace of the command line.
2671 # Strip out --no-create and --no-recursion so they do not pile up.
2672 # Strip out --silent because we don't want to record it for future runs.
2673 # Also quote any args containing shell meta-characters.
2674 # Make two passes to allow for proper duplicate-argument suppression.
2675 ac_configure_args=
2676 ac_configure_args0=
2677 ac_configure_args1=
2678 ac_must_keep_next=false
2679 for ac_pass in 1 2
2681 for ac_arg
2683 case $ac_arg in
2684 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2686 | -silent | --silent | --silen | --sile | --sil)
2687 continue ;;
2688 *\'*)
2689 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2690 esac
2691 case $ac_pass in
2692 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2694 as_fn_append ac_configure_args1 " '$ac_arg'"
2695 if test $ac_must_keep_next = true; then
2696 ac_must_keep_next=false # Got value, back to normal.
2697 else
2698 case $ac_arg in
2699 *=* | --config-cache | -C | -disable-* | --disable-* \
2700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2702 | -with-* | --with-* | -without-* | --without-* | --x)
2703 case "$ac_configure_args0 " in
2704 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2705 esac
2707 -* ) ac_must_keep_next=true ;;
2708 esac
2710 as_fn_append ac_configure_args " '$ac_arg'"
2712 esac
2713 done
2714 done
2715 { ac_configure_args0=; unset ac_configure_args0;}
2716 { ac_configure_args1=; unset ac_configure_args1;}
2718 # When interrupted or exit'd, cleanup temporary files, and complete
2719 # config.log. We remove comments because anyway the quotes in there
2720 # would cause problems or look ugly.
2721 # WARNING: Use '\'' to represent an apostrophe within the trap.
2722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2723 trap 'exit_status=$?
2724 # Save into config.log some information that might help in debugging.
2726 echo
2728 cat <<\_ASBOX
2729 ## ---------------- ##
2730 ## Cache variables. ##
2731 ## ---------------- ##
2732 _ASBOX
2733 echo
2734 # The following way of writing the cache mishandles newlines in values,
2736 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2737 eval ac_val=\$$ac_var
2738 case $ac_val in #(
2739 *${as_nl}*)
2740 case $ac_var in #(
2741 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2742 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2743 esac
2744 case $ac_var in #(
2745 _ | IFS | as_nl) ;; #(
2746 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2747 *) { eval $ac_var=; unset $ac_var;} ;;
2748 esac ;;
2749 esac
2750 done
2751 (set) 2>&1 |
2752 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2753 *${as_nl}ac_space=\ *)
2754 sed -n \
2755 "s/'\''/'\''\\\\'\'''\''/g;
2756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2757 ;; #(
2759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2761 esac |
2762 sort
2764 echo
2766 cat <<\_ASBOX
2767 ## ----------------- ##
2768 ## Output variables. ##
2769 ## ----------------- ##
2770 _ASBOX
2771 echo
2772 for ac_var in $ac_subst_vars
2774 eval ac_val=\$$ac_var
2775 case $ac_val in
2776 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2777 esac
2778 $as_echo "$ac_var='\''$ac_val'\''"
2779 done | sort
2780 echo
2782 if test -n "$ac_subst_files"; then
2783 cat <<\_ASBOX
2784 ## ------------------- ##
2785 ## File substitutions. ##
2786 ## ------------------- ##
2787 _ASBOX
2788 echo
2789 for ac_var in $ac_subst_files
2791 eval ac_val=\$$ac_var
2792 case $ac_val in
2793 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2794 esac
2795 $as_echo "$ac_var='\''$ac_val'\''"
2796 done | sort
2797 echo
2800 if test -s confdefs.h; then
2801 cat <<\_ASBOX
2802 ## ----------- ##
2803 ## confdefs.h. ##
2804 ## ----------- ##
2805 _ASBOX
2806 echo
2807 cat confdefs.h
2808 echo
2810 test "$ac_signal" != 0 &&
2811 $as_echo "$as_me: caught signal $ac_signal"
2812 $as_echo "$as_me: exit $exit_status"
2813 } >&5
2814 rm -f core *.core core.conftest.* &&
2815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2816 exit $exit_status
2818 for ac_signal in 1 2 13 15; do
2819 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2820 done
2821 ac_signal=0
2823 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2824 rm -f -r conftest* confdefs.h
2826 $as_echo "/* confdefs.h */" > confdefs.h
2828 # Predefined preprocessor variables.
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_NAME "$PACKAGE_NAME"
2832 _ACEOF
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2836 _ACEOF
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2840 _ACEOF
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_STRING "$PACKAGE_STRING"
2844 _ACEOF
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2848 _ACEOF
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_URL "$PACKAGE_URL"
2852 _ACEOF
2855 # Let the site file select an alternate cache file if it wants to.
2856 # Prefer an explicitly selected file to automatically selected ones.
2857 ac_site_file1=NONE
2858 ac_site_file2=NONE
2859 if test -n "$CONFIG_SITE"; then
2860 ac_site_file1=$CONFIG_SITE
2861 elif test "x$prefix" != xNONE; then
2862 ac_site_file1=$prefix/share/config.site
2863 ac_site_file2=$prefix/etc/config.site
2864 else
2865 ac_site_file1=$ac_default_prefix/share/config.site
2866 ac_site_file2=$ac_default_prefix/etc/config.site
2868 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2870 test "x$ac_site_file" = xNONE && continue
2871 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2873 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2874 sed 's/^/| /' "$ac_site_file" >&5
2875 . "$ac_site_file"
2877 done
2879 if test -r "$cache_file"; then
2880 # Some versions of bash will fail to source /dev/null (special files
2881 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2882 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2884 $as_echo "$as_me: loading cache $cache_file" >&6;}
2885 case $cache_file in
2886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2887 *) . "./$cache_file";;
2888 esac
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2892 $as_echo "$as_me: creating cache $cache_file" >&6;}
2893 >$cache_file
2896 as_fn_append ac_header_list " stdlib.h"
2897 as_fn_append ac_header_list " unistd.h"
2898 as_fn_append ac_header_list " sys/param.h"
2899 # Check that the precious variables saved in the cache have kept the same
2900 # value.
2901 ac_cache_corrupted=false
2902 for ac_var in $ac_precious_vars; do
2903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2904 eval ac_new_set=\$ac_env_${ac_var}_set
2905 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2906 eval ac_new_val=\$ac_env_${ac_var}_value
2907 case $ac_old_set,$ac_new_set in
2908 set,)
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2910 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2911 ac_cache_corrupted=: ;;
2912 ,set)
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2914 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2915 ac_cache_corrupted=: ;;
2916 ,);;
2918 if test "x$ac_old_val" != "x$ac_new_val"; then
2919 # differences in whitespace do not lead to failure.
2920 ac_old_val_w=`echo x $ac_old_val`
2921 ac_new_val_w=`echo x $ac_new_val`
2922 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2924 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2925 ac_cache_corrupted=:
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2928 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2929 eval $ac_var=\$ac_old_val
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2932 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2934 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2935 fi;;
2936 esac
2937 # Pass precious variables to config.status.
2938 if test "$ac_new_set" = set; then
2939 case $ac_new_val in
2940 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2941 *) ac_arg=$ac_var=$ac_new_val ;;
2942 esac
2943 case " $ac_configure_args " in
2944 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2945 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2946 esac
2948 done
2949 if $ac_cache_corrupted; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2953 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2954 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2956 ## -------------------- ##
2957 ## Main body of script. ##
2958 ## -------------------- ##
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 am__api_version='1.11'
2969 ac_aux_dir=
2970 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2971 for ac_t in install-sh install.sh shtool; do
2972 if test -f "$ac_dir/$ac_t"; then
2973 ac_aux_dir=$ac_dir
2974 ac_install_sh="$ac_aux_dir/$ac_t -c"
2975 break 2
2977 done
2978 done
2979 if test -z "$ac_aux_dir"; then
2980 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2983 # These three variables are undocumented and unsupported,
2984 # and are intended to be withdrawn in a future Autoconf release.
2985 # They can cause serious problems if a builder's source tree is in a directory
2986 # whose full name contains unusual characters.
2987 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2988 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2989 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2992 # Find a good install program. We prefer a C program (faster),
2993 # so one script is as good as another. But avoid the broken or
2994 # incompatible versions:
2995 # SysV /etc/install, /usr/sbin/install
2996 # SunOS /usr/etc/install
2997 # IRIX /sbin/install
2998 # AIX /bin/install
2999 # AmigaOS /C/install, which installs bootblocks on floppy discs
3000 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3001 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3002 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3003 # OS/2's system install, which has a completely different semantic
3004 # ./install, which can be erroneously created by make from ./install.sh.
3005 # Reject install programs that cannot install multiple files.
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3007 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3008 if test -z "$INSTALL"; then
3009 if test "${ac_cv_path_install+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 # Account for people who put trailing slashes in PATH elements.
3018 case $as_dir/ in #((
3019 ./ | .// | /[cC]/* | \
3020 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3021 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3022 /usr/ucb/* ) ;;
3024 # OSF1 and SCO ODT 3.0 have their own names for install.
3025 # Don't use installbsd from OSF since it installs stuff as root
3026 # by default.
3027 for ac_prog in ginstall scoinst install; do
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3030 if test $ac_prog = install &&
3031 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3032 # AIX install. It has an incompatible calling convention.
3034 elif test $ac_prog = install &&
3035 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3036 # program-specific install script used by HP pwplus--don't use.
3038 else
3039 rm -rf conftest.one conftest.two conftest.dir
3040 echo one > conftest.one
3041 echo two > conftest.two
3042 mkdir conftest.dir
3043 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3044 test -s conftest.one && test -s conftest.two &&
3045 test -s conftest.dir/conftest.one &&
3046 test -s conftest.dir/conftest.two
3047 then
3048 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3049 break 3
3053 done
3054 done
3056 esac
3058 done
3059 IFS=$as_save_IFS
3061 rm -rf conftest.one conftest.two conftest.dir
3064 if test "${ac_cv_path_install+set}" = set; then
3065 INSTALL=$ac_cv_path_install
3066 else
3067 # As a last resort, use the slow shell script. Don't cache a
3068 # value for INSTALL within a source directory, because that will
3069 # break other packages using the cache if that directory is
3070 # removed, or if the value is a relative name.
3071 INSTALL=$ac_install_sh
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3075 $as_echo "$INSTALL" >&6; }
3077 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3078 # It thinks the first close brace ends the variable substitution.
3079 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3081 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3083 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3086 $as_echo_n "checking whether build environment is sane... " >&6; }
3087 # Just in case
3088 sleep 1
3089 echo timestamp > conftest.file
3090 # Reject unsafe characters in $srcdir or the absolute working directory
3091 # name. Accept space and tab only in the latter.
3092 am_lf='
3094 case `pwd` in
3095 *[\\\"\#\$\&\'\`$am_lf]*)
3096 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3097 esac
3098 case $srcdir in
3099 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3100 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3101 esac
3103 # Do `set' in a subshell so we don't clobber the current shell's
3104 # arguments. Must try -L first in case configure is actually a
3105 # symlink; some systems play weird games with the mod time of symlinks
3106 # (eg FreeBSD returns the mod time of the symlink's containing
3107 # directory).
3108 if (
3109 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3110 if test "$*" = "X"; then
3111 # -L didn't work.
3112 set X `ls -t "$srcdir/configure" conftest.file`
3114 rm -f conftest.file
3115 if test "$*" != "X $srcdir/configure conftest.file" \
3116 && test "$*" != "X conftest.file $srcdir/configure"; then
3118 # If neither matched, then we have a broken ls. This can happen
3119 # if, for instance, CONFIG_SHELL is bash and it inherits a
3120 # broken ls alias from the environment. This has actually
3121 # happened. Such a system could not be considered "sane".
3122 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3123 alias in your environment" "$LINENO" 5
3126 test "$2" = conftest.file
3128 then
3129 # Ok.
3131 else
3132 as_fn_error "newly created file is older than distributed files!
3133 Check your system clock" "$LINENO" 5
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3136 $as_echo "yes" >&6; }
3137 test "$program_prefix" != NONE &&
3138 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3139 # Use a double $ so make ignores it.
3140 test "$program_suffix" != NONE &&
3141 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3142 # Double any \ or $.
3143 # By default was `s,x,x', remove it if useless.
3144 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3145 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3147 # expand $ac_aux_dir to an absolute path
3148 am_aux_dir=`cd $ac_aux_dir && pwd`
3150 if test x"${MISSING+set}" != xset; then
3151 case $am_aux_dir in
3152 *\ * | *\ *)
3153 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3155 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3156 esac
3158 # Use eval to expand $SHELL
3159 if eval "$MISSING --run true"; then
3160 am_missing_run="$MISSING --run "
3161 else
3162 am_missing_run=
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3164 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3167 if test x"${install_sh}" != xset; then
3168 case $am_aux_dir in
3169 *\ * | *\ *)
3170 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3172 install_sh="\${SHELL} $am_aux_dir/install-sh"
3173 esac
3176 # Installed binaries are usually stripped using `strip' when the user
3177 # run `make install-strip'. However `strip' might not be the right
3178 # tool to use in cross-compilation environments, therefore Automake
3179 # will honor the `STRIP' environment variable to overrule this program.
3180 if test "$cross_compiling" != no; then
3181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3183 set dummy ${ac_tool_prefix}strip; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_STRIP+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$STRIP"; then
3190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3203 done
3204 done
3205 IFS=$as_save_IFS
3209 STRIP=$ac_cv_prog_STRIP
3210 if test -n "$STRIP"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3212 $as_echo "$STRIP" >&6; }
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3220 if test -z "$ac_cv_prog_STRIP"; then
3221 ac_ct_STRIP=$STRIP
3222 # Extract the first word of "strip", so it can be a program name with args.
3223 set dummy strip; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 if test -n "$ac_ct_STRIP"; then
3230 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239 ac_cv_prog_ac_ct_STRIP="strip"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 break 2
3243 done
3244 done
3245 IFS=$as_save_IFS
3249 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3250 if test -n "$ac_ct_STRIP"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3252 $as_echo "$ac_ct_STRIP" >&6; }
3253 else
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3258 if test "x$ac_ct_STRIP" = x; then
3259 STRIP=":"
3260 else
3261 case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3266 esac
3267 STRIP=$ac_ct_STRIP
3269 else
3270 STRIP="$ac_cv_prog_STRIP"
3274 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3277 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3278 if test -z "$MKDIR_P"; then
3279 if test "${ac_cv_path_mkdir+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
3287 for ac_prog in mkdir gmkdir; do
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3290 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3291 'mkdir (GNU coreutils) '* | \
3292 'mkdir (coreutils) '* | \
3293 'mkdir (fileutils) '4.1*)
3294 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3295 break 3;;
3296 esac
3297 done
3298 done
3299 done
3300 IFS=$as_save_IFS
3304 test -d ./--version && rmdir ./--version
3305 if test "${ac_cv_path_mkdir+set}" = set; then
3306 MKDIR_P="$ac_cv_path_mkdir -p"
3307 else
3308 # As a last resort, use the slow shell script. Don't cache a
3309 # value for MKDIR_P within a source directory, because that will
3310 # break other packages using the cache if that directory is
3311 # removed, or if the value is a relative name.
3312 MKDIR_P="$ac_install_sh -d"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3316 $as_echo "$MKDIR_P" >&6; }
3318 mkdir_p="$MKDIR_P"
3319 case $mkdir_p in
3320 [\\/$]* | ?:[\\/]*) ;;
3321 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3322 esac
3324 for ac_prog in gawk mawk nawk awk
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_AWK+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$AWK"; then
3334 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 ac_cv_prog_AWK="$ac_prog"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3347 done
3348 done
3349 IFS=$as_save_IFS
3353 AWK=$ac_cv_prog_AWK
3354 if test -n "$AWK"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3356 $as_echo "$AWK" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3363 test -n "$AWK" && break
3364 done
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3367 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3368 set x ${MAKE-make}
3369 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3370 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 cat >conftest.make <<\_ACEOF
3374 SHELL = /bin/sh
3375 all:
3376 @echo '@@@%%%=$(MAKE)=@@@%%%'
3377 _ACEOF
3378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3379 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3380 *@@@%%%=?*=@@@%%%*)
3381 eval ac_cv_prog_make_${ac_make}_set=yes;;
3383 eval ac_cv_prog_make_${ac_make}_set=no;;
3384 esac
3385 rm -f conftest.make
3387 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3389 $as_echo "yes" >&6; }
3390 SET_MAKE=
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 SET_MAKE="MAKE=${MAKE-make}"
3397 rm -rf .tst 2>/dev/null
3398 mkdir .tst 2>/dev/null
3399 if test -d .tst; then
3400 am__leading_dot=.
3401 else
3402 am__leading_dot=_
3404 rmdir .tst 2>/dev/null
3406 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3407 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3408 # is not polluted with repeated "-I."
3409 am__isrc=' -I$(srcdir)'
3410 # test to see if srcdir already configured
3411 if test -f $srcdir/config.status; then
3412 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3416 # test whether we have cygpath
3417 if test -z "$CYGPATH_W"; then
3418 if (cygpath --version) >/dev/null 2>/dev/null; then
3419 CYGPATH_W='cygpath -w'
3420 else
3421 CYGPATH_W=echo
3426 # Define the identity of the package.
3427 PACKAGE='amule'
3428 VERSION='SVN'
3431 cat >>confdefs.h <<_ACEOF
3432 #define PACKAGE "$PACKAGE"
3433 _ACEOF
3436 cat >>confdefs.h <<_ACEOF
3437 #define VERSION "$VERSION"
3438 _ACEOF
3440 # Some tools Automake needs.
3442 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3445 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3448 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3451 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3454 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3456 # We need awk for the "check" target. The system "awk" is bad on
3457 # some platforms.
3458 # Always define AMTAR for backward compatibility.
3460 AMTAR=${AMTAR-"${am_missing_run}tar"}
3462 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3468 # Check whether --enable-silent-rules was given.
3469 if test "${enable_silent_rules+set}" = set; then :
3470 enableval=$enable_silent_rules;
3473 case $enable_silent_rules in
3474 yes) AM_DEFAULT_VERBOSITY=0;;
3475 no) AM_DEFAULT_VERBOSITY=1;;
3476 *) AM_DEFAULT_VERBOSITY=1;;
3477 esac
3478 AM_BACKSLASH='\'
3484 ac_config_headers="$ac_config_headers config.h"
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3489 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3490 # Check whether --enable-maintainer-mode was given.
3491 if test "${enable_maintainer_mode+set}" = set; then :
3492 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3493 else
3494 USE_MAINTAINER_MODE=no
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3498 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3499 if test $USE_MAINTAINER_MODE = yes; then
3500 MAINTAINER_MODE_TRUE=
3501 MAINTAINER_MODE_FALSE='#'
3502 else
3503 MAINTAINER_MODE_TRUE='#'
3504 MAINTAINER_MODE_FALSE=
3507 MAINT=$MAINTAINER_MODE_TRUE
3511 # Make sure we can run config.sub.
3512 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3513 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3516 $as_echo_n "checking build system type... " >&6; }
3517 if test "${ac_cv_build+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 ac_build_alias=$build_alias
3521 test "x$ac_build_alias" = x &&
3522 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3523 test "x$ac_build_alias" = x &&
3524 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3525 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3526 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3530 $as_echo "$ac_cv_build" >&6; }
3531 case $ac_cv_build in
3532 *-*-*) ;;
3533 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3534 esac
3535 build=$ac_cv_build
3536 ac_save_IFS=$IFS; IFS='-'
3537 set x $ac_cv_build
3538 shift
3539 build_cpu=$1
3540 build_vendor=$2
3541 shift; shift
3542 # Remember, the first character of IFS is used to create $*,
3543 # except with old shells:
3544 build_os=$*
3545 IFS=$ac_save_IFS
3546 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3550 $as_echo_n "checking host system type... " >&6; }
3551 if test "${ac_cv_host+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test "x$host_alias" = x; then
3555 ac_cv_host=$ac_cv_build
3556 else
3557 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3558 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3563 $as_echo "$ac_cv_host" >&6; }
3564 case $ac_cv_host in
3565 *-*-*) ;;
3566 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3567 esac
3568 host=$ac_cv_host
3569 ac_save_IFS=$IFS; IFS='-'
3570 set x $ac_cv_host
3571 shift
3572 host_cpu=$1
3573 host_vendor=$2
3574 shift; shift
3575 # Remember, the first character of IFS is used to create $*,
3576 # except with old shells:
3577 host_os=$*
3578 IFS=$ac_save_IFS
3579 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3583 case "${host_os}" in
3584 darwin*)
3585 SYS=darwin
3586 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3587 MULELDFLAGS="-bind_at_load"
3588 touch src/Scanner.cpp
3590 openbsd*)
3591 SYS=openbsd
3592 LIBS="$LIBS -L/usr/local/lib"
3593 MULECPPFLAGS="-D__OPENBSD__"
3595 *cygwin* | *mingw32*)
3596 SYS=win32
3597 MULECPPFLAGS="-DNOMINMAX"
3599 solaris*)
3600 SYS=solaris
3601 RESOLV_LIB="-lresolv -lnsl"
3602 LIBS="$LIBS -lrt"
3604 *netbsd*)
3605 SYS=netbsd
3606 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3607 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3608 # Still, we prepend them, instead of adding, so the user may override them.
3609 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3610 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3612 *irix*)
3613 SYS=irix
3614 MULECPPFLAGS="-D__IRIX__"
3617 SYS=unknown
3619 esac
3621 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3622 if test ${SYS:-unknown} != win32; then :
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3625 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3626 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3628 MULELDFLAGS="$MULELDFLAGS -pthread"
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630 $as_echo "yes" >&6; }
3632 else
3634 MULELDFLAGS="$MULELDFLAGS -lpthread"
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3644 mule_backup_CFLAGS="$CFLAGS"
3645 mule_backup_CXXFLAGS="$CXXFLAGS"
3646 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3647 ac_ext=cpp
3648 ac_cpp='$CXXCPP $CPPFLAGS'
3649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3652 if test -z "$CXX"; then
3653 if test -n "$CCC"; then
3654 CXX=$CCC
3655 else
3656 if test -n "$ac_tool_prefix"; then
3657 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if test "${ac_cv_prog_CXX+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
3665 else
3666 if test -n "$CXX"; then
3667 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3680 done
3681 done
3682 IFS=$as_save_IFS
3686 CXX=$ac_cv_prog_CXX
3687 if test -n "$CXX"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3689 $as_echo "$CXX" >&6; }
3690 else
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3696 test -n "$CXX" && break
3697 done
3699 if test -z "$CXX"; then
3700 ac_ct_CXX=$CXX
3701 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3703 # Extract the first word of "$ac_prog", so it can be a program name with args.
3704 set dummy $ac_prog; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 if test -n "$ac_ct_CXX"; then
3711 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3712 else
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 for as_dir in $PATH
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3720 ac_cv_prog_ac_ct_CXX="$ac_prog"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 break 2
3724 done
3725 done
3726 IFS=$as_save_IFS
3730 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3731 if test -n "$ac_ct_CXX"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3733 $as_echo "$ac_ct_CXX" >&6; }
3734 else
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3740 test -n "$ac_ct_CXX" && break
3741 done
3743 if test "x$ac_ct_CXX" = x; then
3744 CXX="g++"
3745 else
3746 case $cross_compiling:$ac_tool_warned in
3747 yes:)
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3750 ac_tool_warned=yes ;;
3751 esac
3752 CXX=$ac_ct_CXX
3758 # Provide some information about the compiler.
3759 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3760 set X $ac_compile
3761 ac_compiler=$2
3762 for ac_option in --version -v -V -qversion; do
3763 { { ac_try="$ac_compiler $ac_option >&5"
3764 case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3771 ac_status=$?
3772 if test -s conftest.err; then
3773 sed '10a\
3774 ... rest of stderr output deleted ...
3775 10q' conftest.err >conftest.er1
3776 cat conftest.er1 >&5
3778 rm -f conftest.er1 conftest.err
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }
3781 done
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3787 main ()
3791 return 0;
3793 _ACEOF
3794 ac_clean_files_save=$ac_clean_files
3795 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3796 # Try to create an executable without -o first, disregard a.out.
3797 # It will help us diagnose broken compilers, and finding out an intuition
3798 # of exeext.
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3800 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3801 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3803 # The possible output files:
3804 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3806 ac_rmfiles=
3807 for ac_file in $ac_files
3809 case $ac_file in
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3811 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3812 esac
3813 done
3814 rm -f $ac_rmfiles
3816 if { { ac_try="$ac_link_default"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_link_default") 2>&5
3824 ac_status=$?
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }; then :
3827 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3829 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3830 # so that the user can short-circuit this test for compilers unknown to
3831 # Autoconf.
3832 for ac_file in $ac_files ''
3834 test -f "$ac_file" || continue
3835 case $ac_file in
3836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3838 [ab].out )
3839 # We found the default executable, but exeext='' is most
3840 # certainly right.
3841 break;;
3842 *.* )
3843 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3844 then :; else
3845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3847 # We set ac_cv_exeext here because the later test for it is not
3848 # safe: cross compilers may not add the suffix if given an `-o'
3849 # argument, so we may need to know it at that point already.
3850 # Even if this section looks crufty: it has the advantage of
3851 # actually working.
3852 break;;
3854 break;;
3855 esac
3856 done
3857 test "$ac_cv_exeext" = no && ac_cv_exeext=
3859 else
3860 ac_file=''
3862 if test -z "$ac_file"; then :
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3865 $as_echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 { as_fn_set_status 77
3871 as_fn_error "C++ compiler cannot create executables
3872 See \`config.log' for more details." "$LINENO" 5; }; }
3873 else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3875 $as_echo "yes" >&6; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3878 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3880 $as_echo "$ac_file" >&6; }
3881 ac_exeext=$ac_cv_exeext
3883 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3884 ac_clean_files=$ac_clean_files_save
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3886 $as_echo_n "checking for suffix of executables... " >&6; }
3887 if { { ac_try="$ac_link"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_link") 2>&5
3895 ac_status=$?
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }; then :
3898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3900 # work properly (i.e., refer to `conftest.exe'), while it won't with
3901 # `rm'.
3902 for ac_file in conftest.exe conftest conftest.*; do
3903 test -f "$ac_file" || continue
3904 case $ac_file in
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3907 break;;
3908 * ) break;;
3909 esac
3910 done
3911 else
3912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error "cannot compute suffix of executables: cannot compile and link
3915 See \`config.log' for more details." "$LINENO" 5; }
3917 rm -f conftest conftest$ac_cv_exeext
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3919 $as_echo "$ac_cv_exeext" >&6; }
3921 rm -f conftest.$ac_ext
3922 EXEEXT=$ac_cv_exeext
3923 ac_exeext=$EXEEXT
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <stdio.h>
3928 main ()
3930 FILE *f = fopen ("conftest.out", "w");
3931 return ferror (f) || fclose (f) != 0;
3934 return 0;
3936 _ACEOF
3937 ac_clean_files="$ac_clean_files conftest.out"
3938 # Check that the compiler produces executables we can run. If not, either
3939 # the compiler is broken, or we cross compile.
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3941 $as_echo_n "checking whether we are cross compiling... " >&6; }
3942 if test "$cross_compiling" != yes; then
3943 { { ac_try="$ac_link"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949 $as_echo "$ac_try_echo"; } >&5
3950 (eval "$ac_link") 2>&5
3951 ac_status=$?
3952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }
3954 if { ac_try='./conftest$ac_cv_exeext'
3955 { { case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_try") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; }; then
3965 cross_compiling=no
3966 else
3967 if test "$cross_compiling" = maybe; then
3968 cross_compiling=yes
3969 else
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error "cannot run C++ compiled programs.
3973 If you meant to cross compile, use \`--host'.
3974 See \`config.log' for more details." "$LINENO" 5; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3979 $as_echo "$cross_compiling" >&6; }
3981 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3982 ac_clean_files=$ac_clean_files_save
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3984 $as_echo_n "checking for suffix of object files... " >&6; }
3985 if test "${ac_cv_objext+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3992 main ()
3996 return 0;
3998 _ACEOF
3999 rm -f conftest.o conftest.obj
4000 if { { ac_try="$ac_compile"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_compile") 2>&5
4008 ac_status=$?
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; then :
4011 for ac_file in conftest.o conftest.obj conftest.*; do
4012 test -f "$ac_file" || continue;
4013 case $ac_file in
4014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4015 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4016 break;;
4017 esac
4018 done
4019 else
4020 $as_echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error "cannot compute suffix of object files: cannot compile
4026 See \`config.log' for more details." "$LINENO" 5; }
4028 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4031 $as_echo "$ac_cv_objext" >&6; }
4032 OBJEXT=$ac_cv_objext
4033 ac_objext=$OBJEXT
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4035 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4036 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4043 main ()
4045 #ifndef __GNUC__
4046 choke me
4047 #endif
4050 return 0;
4052 _ACEOF
4053 if ac_fn_cxx_try_compile "$LINENO"; then :
4054 ac_compiler_gnu=yes
4055 else
4056 ac_compiler_gnu=no
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4063 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4064 if test $ac_compiler_gnu = yes; then
4065 GXX=yes
4066 else
4067 GXX=
4069 ac_test_CXXFLAGS=${CXXFLAGS+set}
4070 ac_save_CXXFLAGS=$CXXFLAGS
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4072 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4073 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4077 ac_cxx_werror_flag=yes
4078 ac_cv_prog_cxx_g=no
4079 CXXFLAGS="-g"
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4084 main ()
4088 return 0;
4090 _ACEOF
4091 if ac_fn_cxx_try_compile "$LINENO"; then :
4092 ac_cv_prog_cxx_g=yes
4093 else
4094 CXXFLAGS=""
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4099 main ()
4103 return 0;
4105 _ACEOF
4106 if ac_fn_cxx_try_compile "$LINENO"; then :
4108 else
4109 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4110 CXXFLAGS="-g"
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 if ac_fn_cxx_try_compile "$LINENO"; then :
4123 ac_cv_prog_cxx_g=yes
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4133 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4134 if test "$ac_test_CXXFLAGS" = set; then
4135 CXXFLAGS=$ac_save_CXXFLAGS
4136 elif test $ac_cv_prog_cxx_g = yes; then
4137 if test "$GXX" = yes; then
4138 CXXFLAGS="-g -O2"
4139 else
4140 CXXFLAGS="-g"
4142 else
4143 if test "$GXX" = yes; then
4144 CXXFLAGS="-O2"
4145 else
4146 CXXFLAGS=
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154 DEPDIR="${am__leading_dot}deps"
4156 ac_config_commands="$ac_config_commands depfiles"
4159 am_make=${MAKE-make}
4160 cat > confinc << 'END'
4161 am__doit:
4162 @echo this is the am__doit target
4163 .PHONY: am__doit
4165 # If we don't find an include directive, just comment out the code.
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4167 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4168 am__include="#"
4169 am__quote=
4170 _am_result=none
4171 # First try GNU make style include.
4172 echo "include confinc" > confmf
4173 # Ignore all kinds of additional output from `make'.
4174 case `$am_make -s -f confmf 2> /dev/null` in #(
4175 *the\ am__doit\ target*)
4176 am__include=include
4177 am__quote=
4178 _am_result=GNU
4180 esac
4181 # Now try BSD make style include.
4182 if test "$am__include" = "#"; then
4183 echo '.include "confinc"' > confmf
4184 case `$am_make -s -f confmf 2> /dev/null` in #(
4185 *the\ am__doit\ target*)
4186 am__include=.include
4187 am__quote="\""
4188 _am_result=BSD
4190 esac
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4195 $as_echo "$_am_result" >&6; }
4196 rm -f confinc confmf
4198 # Check whether --enable-dependency-tracking was given.
4199 if test "${enable_dependency_tracking+set}" = set; then :
4200 enableval=$enable_dependency_tracking;
4203 if test "x$enable_dependency_tracking" != xno; then
4204 am_depcomp="$ac_aux_dir/depcomp"
4205 AMDEPBACKSLASH='\'
4207 if test "x$enable_dependency_tracking" != xno; then
4208 AMDEP_TRUE=
4209 AMDEP_FALSE='#'
4210 else
4211 AMDEP_TRUE='#'
4212 AMDEP_FALSE=
4217 depcc="$CXX" am_compiler_list=
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4220 $as_echo_n "checking dependency style of $depcc... " >&6; }
4221 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4225 # We make a subdir and do the tests there. Otherwise we can end up
4226 # making bogus files that we don't know about and never remove. For
4227 # instance it was reported that on HP-UX the gcc test will end up
4228 # making a dummy file named `D' -- because `-MD' means `put the output
4229 # in D'.
4230 mkdir conftest.dir
4231 # Copy depcomp to subdir because otherwise we won't find it if we're
4232 # using a relative directory.
4233 cp "$am_depcomp" conftest.dir
4234 cd conftest.dir
4235 # We will build objects and dependencies in a subdirectory because
4236 # it helps to detect inapplicable dependency modes. For instance
4237 # both Tru64's cc and ICC support -MD to output dependencies as a
4238 # side effect of compilation, but ICC will put the dependencies in
4239 # the current directory while Tru64 will put them in the object
4240 # directory.
4241 mkdir sub
4243 am_cv_CXX_dependencies_compiler_type=none
4244 if test "$am_compiler_list" = ""; then
4245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4247 am__universal=false
4248 case " $depcc " in #(
4249 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4250 esac
4252 for depmode in $am_compiler_list; do
4253 # Setup a source with many dependencies, because some compilers
4254 # like to wrap large dependency lists on column 80 (with \), and
4255 # we should not choose a depcomp mode which is confused by this.
4257 # We need to recreate these files for each test, as the compiler may
4258 # overwrite some of them when testing with obscure command lines.
4259 # This happens at least with the AIX C compiler.
4260 : > sub/conftest.c
4261 for i in 1 2 3 4 5 6; do
4262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4264 # Solaris 8's {/usr,}/bin/sh.
4265 touch sub/conftst$i.h
4266 done
4267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4269 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4270 # mode. It turns out that the SunPro C++ compiler does not properly
4271 # handle `-M -o', and we need to detect this. Also, some Intel
4272 # versions had trouble with output in subdirs
4273 am__obj=sub/conftest.${OBJEXT-o}
4274 am__minus_obj="-o $am__obj"
4275 case $depmode in
4276 gcc)
4277 # This depmode causes a compiler race in universal mode.
4278 test "$am__universal" = false || continue
4280 nosideeffect)
4281 # after this tag, mechanisms are not by side-effect, so they'll
4282 # only be used when explicitly requested
4283 if test "x$enable_dependency_tracking" = xyes; then
4284 continue
4285 else
4286 break
4289 msvisualcpp | msvcmsys)
4290 # This compiler won't grok `-c -o', but also, the minuso test has
4291 # not run yet. These depmodes are late enough in the game, and
4292 # so weak that their functioning should not be impacted.
4293 am__obj=conftest.${OBJEXT-o}
4294 am__minus_obj=
4296 none) break ;;
4297 esac
4298 if depmode=$depmode \
4299 source=sub/conftest.c object=$am__obj \
4300 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4301 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4302 >/dev/null 2>conftest.err &&
4303 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4304 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4305 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4306 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4307 # icc doesn't choke on unknown options, it will just issue warnings
4308 # or remarks (even with -Werror). So we grep stderr for any message
4309 # that says an option was ignored or not supported.
4310 # When given -MP, icc 7.0 and 7.1 complain thusly:
4311 # icc: Command line warning: ignoring option '-M'; no argument required
4312 # The diagnosis changed in icc 8.0:
4313 # icc: Command line remark: option '-MP' not supported
4314 if (grep 'ignoring option' conftest.err ||
4315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4316 am_cv_CXX_dependencies_compiler_type=$depmode
4317 break
4320 done
4322 cd ..
4323 rm -rf conftest.dir
4324 else
4325 am_cv_CXX_dependencies_compiler_type=none
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4330 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4331 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4334 test "x$enable_dependency_tracking" != xno \
4335 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4336 am__fastdepCXX_TRUE=
4337 am__fastdepCXX_FALSE='#'
4338 else
4339 am__fastdepCXX_TRUE='#'
4340 am__fastdepCXX_FALSE=
4344 ac_ext=cpp
4345 ac_cpp='$CXXCPP $CPPFLAGS'
4346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4350 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4351 if test -z "$CXXCPP"; then
4352 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 # Double quotes because CXXCPP needs to be expanded
4356 for CXXCPP in "$CXX -E" "/lib/cpp"
4358 ac_preproc_ok=false
4359 for ac_cxx_preproc_warn_flag in '' yes
4361 # Use a header file that comes with gcc, so configuring glibc
4362 # with a fresh cross-compiler works.
4363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4364 # <limits.h> exists even on freestanding compilers.
4365 # On the NeXT, cc -E runs the code through the compiler's parser,
4366 # not just through cpp. "Syntax error" is here to catch this case.
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #ifdef __STDC__
4370 # include <limits.h>
4371 #else
4372 # include <assert.h>
4373 #endif
4374 Syntax error
4375 _ACEOF
4376 if ac_fn_cxx_try_cpp "$LINENO"; then :
4378 else
4379 # Broken: fails on valid input.
4380 continue
4382 rm -f conftest.err conftest.$ac_ext
4384 # OK, works on sane cases. Now check whether nonexistent headers
4385 # can be detected and how.
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388 #include <ac_nonexistent.h>
4389 _ACEOF
4390 if ac_fn_cxx_try_cpp "$LINENO"; then :
4391 # Broken: success on invalid input.
4392 continue
4393 else
4394 # Passes both tests.
4395 ac_preproc_ok=:
4396 break
4398 rm -f conftest.err conftest.$ac_ext
4400 done
4401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4402 rm -f conftest.err conftest.$ac_ext
4403 if $ac_preproc_ok; then :
4404 break
4407 done
4408 ac_cv_prog_CXXCPP=$CXXCPP
4411 CXXCPP=$ac_cv_prog_CXXCPP
4412 else
4413 ac_cv_prog_CXXCPP=$CXXCPP
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4416 $as_echo "$CXXCPP" >&6; }
4417 ac_preproc_ok=false
4418 for ac_cxx_preproc_warn_flag in '' yes
4420 # Use a header file that comes with gcc, so configuring glibc
4421 # with a fresh cross-compiler works.
4422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423 # <limits.h> exists even on freestanding compilers.
4424 # On the NeXT, cc -E runs the code through the compiler's parser,
4425 # not just through cpp. "Syntax error" is here to catch this case.
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #ifdef __STDC__
4429 # include <limits.h>
4430 #else
4431 # include <assert.h>
4432 #endif
4433 Syntax error
4434 _ACEOF
4435 if ac_fn_cxx_try_cpp "$LINENO"; then :
4437 else
4438 # Broken: fails on valid input.
4439 continue
4441 rm -f conftest.err conftest.$ac_ext
4443 # OK, works on sane cases. Now check whether nonexistent headers
4444 # can be detected and how.
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #include <ac_nonexistent.h>
4448 _ACEOF
4449 if ac_fn_cxx_try_cpp "$LINENO"; then :
4450 # Broken: success on invalid input.
4451 continue
4452 else
4453 # Passes both tests.
4454 ac_preproc_ok=:
4455 break
4457 rm -f conftest.err conftest.$ac_ext
4459 done
4460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4461 rm -f conftest.err conftest.$ac_ext
4462 if $ac_preproc_ok; then :
4464 else
4465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4467 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4468 See \`config.log' for more details." "$LINENO" 5; }
4471 ac_ext=c
4472 ac_cpp='$CPP $CPPFLAGS'
4473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482 if test -n "$ac_tool_prefix"; then
4483 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if test "${ac_cv_prog_CC+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4489 else
4490 if test -n "$CC"; then
4491 ac_cv_prog_CC="$CC" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4506 IFS=$as_save_IFS
4510 CC=$ac_cv_prog_CC
4511 if test -n "$CC"; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4513 $as_echo "$CC" >&6; }
4514 else
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4521 if test -z "$ac_cv_prog_CC"; then
4522 ac_ct_CC=$CC
4523 # Extract the first word of "gcc", so it can be a program name with args.
4524 set dummy gcc; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$ac_ct_CC"; then
4531 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_ac_ct_CC="gcc"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4551 if test -n "$ac_ct_CC"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4553 $as_echo "$ac_ct_CC" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4559 if test "x$ac_ct_CC" = x; then
4560 CC=""
4561 else
4562 case $cross_compiling:$ac_tool_warned in
4563 yes:)
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4566 ac_tool_warned=yes ;;
4567 esac
4568 CC=$ac_ct_CC
4570 else
4571 CC="$ac_cv_prog_CC"
4574 if test -z "$CC"; then
4575 if test -n "$ac_tool_prefix"; then
4576 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4577 set dummy ${ac_tool_prefix}cc; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_CC+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$CC"; then
4584 ac_cv_prog_CC="$CC" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_CC="${ac_tool_prefix}cc"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 CC=$ac_cv_prog_CC
4604 if test -n "$CC"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4606 $as_echo "$CC" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4615 if test -z "$CC"; then
4616 # Extract the first word of "cc", so it can be a program name with args.
4617 set dummy cc; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_CC+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$CC"; then
4624 ac_cv_prog_CC="$CC" # Let the user override the test.
4625 else
4626 ac_prog_rejected=no
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4635 ac_prog_rejected=yes
4636 continue
4638 ac_cv_prog_CC="cc"
4639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4642 done
4643 done
4644 IFS=$as_save_IFS
4646 if test $ac_prog_rejected = yes; then
4647 # We found a bogon in the path, so make sure we never use it.
4648 set dummy $ac_cv_prog_CC
4649 shift
4650 if test $# != 0; then
4651 # We chose a different compiler from the bogus one.
4652 # However, it has the same basename, so the bogon will be chosen
4653 # first if we set CC to just the basename; use the full file name.
4654 shift
4655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4660 CC=$ac_cv_prog_CC
4661 if test -n "$CC"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4663 $as_echo "$CC" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4671 if test -z "$CC"; then
4672 if test -n "$ac_tool_prefix"; then
4673 for ac_prog in cl.exe
4675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if test "${ac_cv_prog_CC+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$CC"; then
4683 ac_cv_prog_CC="$CC" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4696 done
4697 done
4698 IFS=$as_save_IFS
4702 CC=$ac_cv_prog_CC
4703 if test -n "$CC"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4705 $as_echo "$CC" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4712 test -n "$CC" && break
4713 done
4715 if test -z "$CC"; then
4716 ac_ct_CC=$CC
4717 for ac_prog in cl.exe
4719 # Extract the first word of "$ac_prog", so it can be a program name with args.
4720 set dummy $ac_prog; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 if test -n "$ac_ct_CC"; then
4727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_ac_ct_CC="$ac_prog"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4740 done
4741 done
4742 IFS=$as_save_IFS
4746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4747 if test -n "$ac_ct_CC"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4749 $as_echo "$ac_ct_CC" >&6; }
4750 else
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4756 test -n "$ac_ct_CC" && break
4757 done
4759 if test "x$ac_ct_CC" = x; then
4760 CC=""
4761 else
4762 case $cross_compiling:$ac_tool_warned in
4763 yes:)
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4766 ac_tool_warned=yes ;;
4767 esac
4768 CC=$ac_ct_CC
4775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4777 as_fn_error "no acceptable C compiler found in \$PATH
4778 See \`config.log' for more details." "$LINENO" 5; }
4780 # Provide some information about the compiler.
4781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4782 set X $ac_compile
4783 ac_compiler=$2
4784 for ac_option in --version -v -V -qversion; do
4785 { { ac_try="$ac_compiler $ac_option >&5"
4786 case "(($ac_try" in
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4789 esac
4790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4791 $as_echo "$ac_try_echo"; } >&5
4792 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4793 ac_status=$?
4794 if test -s conftest.err; then
4795 sed '10a\
4796 ... rest of stderr output deleted ...
4797 10q' conftest.err >conftest.er1
4798 cat conftest.er1 >&5
4800 rm -f conftest.er1 conftest.err
4801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; }
4803 done
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4806 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4807 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4814 main ()
4816 #ifndef __GNUC__
4817 choke me
4818 #endif
4821 return 0;
4823 _ACEOF
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 ac_compiler_gnu=yes
4826 else
4827 ac_compiler_gnu=no
4829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4835 if test $ac_compiler_gnu = yes; then
4836 GCC=yes
4837 else
4838 GCC=
4840 ac_test_CFLAGS=${CFLAGS+set}
4841 ac_save_CFLAGS=$CFLAGS
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4844 if test "${ac_cv_prog_cc_g+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 ac_save_c_werror_flag=$ac_c_werror_flag
4848 ac_c_werror_flag=yes
4849 ac_cv_prog_cc_g=no
4850 CFLAGS="-g"
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4855 main ()
4859 return 0;
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 ac_cv_prog_cc_g=yes
4864 else
4865 CFLAGS=""
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4870 main ()
4874 return 0;
4876 _ACEOF
4877 if ac_fn_c_try_compile "$LINENO"; then :
4879 else
4880 ac_c_werror_flag=$ac_save_c_werror_flag
4881 CFLAGS="-g"
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4886 main ()
4890 return 0;
4892 _ACEOF
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894 ac_cv_prog_cc_g=yes
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 ac_c_werror_flag=$ac_save_c_werror_flag
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4904 $as_echo "$ac_cv_prog_cc_g" >&6; }
4905 if test "$ac_test_CFLAGS" = set; then
4906 CFLAGS=$ac_save_CFLAGS
4907 elif test $ac_cv_prog_cc_g = yes; then
4908 if test "$GCC" = yes; then
4909 CFLAGS="-g -O2"
4910 else
4911 CFLAGS="-g"
4913 else
4914 if test "$GCC" = yes; then
4915 CFLAGS="-O2"
4916 else
4917 CFLAGS=
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4922 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 ac_cv_prog_cc_c89=no
4926 ac_save_CC=$CC
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #include <stdarg.h>
4930 #include <stdio.h>
4931 #include <sys/types.h>
4932 #include <sys/stat.h>
4933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4934 struct buf { int x; };
4935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4936 static char *e (p, i)
4937 char **p;
4938 int i;
4940 return p[i];
4942 static char *f (char * (*g) (char **, int), char **p, ...)
4944 char *s;
4945 va_list v;
4946 va_start (v,p);
4947 s = g (p, va_arg (v,int));
4948 va_end (v);
4949 return s;
4952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4953 function prototypes and stuff, but not '\xHH' hex character constants.
4954 These don't provoke an error unfortunately, instead are silently treated
4955 as 'x'. The following induces an error, until -std is added to get
4956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4957 array size at least. It's necessary to write '\x00'==0 to get something
4958 that's true only with -std. */
4959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4962 inside strings and character constants. */
4963 #define FOO(x) 'x'
4964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4966 int test (int i, double x);
4967 struct s1 {int (*f) (int a);};
4968 struct s2 {int (*f) (double a);};
4969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4970 int argc;
4971 char **argv;
4973 main ()
4975 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4977 return 0;
4979 _ACEOF
4980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4981 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4983 CC="$ac_save_CC $ac_arg"
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985 ac_cv_prog_cc_c89=$ac_arg
4987 rm -f core conftest.err conftest.$ac_objext
4988 test "x$ac_cv_prog_cc_c89" != "xno" && break
4989 done
4990 rm -f conftest.$ac_ext
4991 CC=$ac_save_CC
4994 # AC_CACHE_VAL
4995 case "x$ac_cv_prog_cc_c89" in
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4998 $as_echo "none needed" >&6; } ;;
4999 xno)
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5001 $as_echo "unsupported" >&6; } ;;
5003 CC="$CC $ac_cv_prog_cc_c89"
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5006 esac
5007 if test "x$ac_cv_prog_cc_c89" != xno; then :
5011 ac_ext=c
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 depcc="$CC" am_compiler_list=
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5020 $as_echo_n "checking dependency style of $depcc... " >&6; }
5021 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5025 # We make a subdir and do the tests there. Otherwise we can end up
5026 # making bogus files that we don't know about and never remove. For
5027 # instance it was reported that on HP-UX the gcc test will end up
5028 # making a dummy file named `D' -- because `-MD' means `put the output
5029 # in D'.
5030 mkdir conftest.dir
5031 # Copy depcomp to subdir because otherwise we won't find it if we're
5032 # using a relative directory.
5033 cp "$am_depcomp" conftest.dir
5034 cd conftest.dir
5035 # We will build objects and dependencies in a subdirectory because
5036 # it helps to detect inapplicable dependency modes. For instance
5037 # both Tru64's cc and ICC support -MD to output dependencies as a
5038 # side effect of compilation, but ICC will put the dependencies in
5039 # the current directory while Tru64 will put them in the object
5040 # directory.
5041 mkdir sub
5043 am_cv_CC_dependencies_compiler_type=none
5044 if test "$am_compiler_list" = ""; then
5045 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5047 am__universal=false
5048 case " $depcc " in #(
5049 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5050 esac
5052 for depmode in $am_compiler_list; do
5053 # Setup a source with many dependencies, because some compilers
5054 # like to wrap large dependency lists on column 80 (with \), and
5055 # we should not choose a depcomp mode which is confused by this.
5057 # We need to recreate these files for each test, as the compiler may
5058 # overwrite some of them when testing with obscure command lines.
5059 # This happens at least with the AIX C compiler.
5060 : > sub/conftest.c
5061 for i in 1 2 3 4 5 6; do
5062 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5063 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5064 # Solaris 8's {/usr,}/bin/sh.
5065 touch sub/conftst$i.h
5066 done
5067 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5069 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5070 # mode. It turns out that the SunPro C++ compiler does not properly
5071 # handle `-M -o', and we need to detect this. Also, some Intel
5072 # versions had trouble with output in subdirs
5073 am__obj=sub/conftest.${OBJEXT-o}
5074 am__minus_obj="-o $am__obj"
5075 case $depmode in
5076 gcc)
5077 # This depmode causes a compiler race in universal mode.
5078 test "$am__universal" = false || continue
5080 nosideeffect)
5081 # after this tag, mechanisms are not by side-effect, so they'll
5082 # only be used when explicitly requested
5083 if test "x$enable_dependency_tracking" = xyes; then
5084 continue
5085 else
5086 break
5089 msvisualcpp | msvcmsys)
5090 # This compiler won't grok `-c -o', but also, the minuso test has
5091 # not run yet. These depmodes are late enough in the game, and
5092 # so weak that their functioning should not be impacted.
5093 am__obj=conftest.${OBJEXT-o}
5094 am__minus_obj=
5096 none) break ;;
5097 esac
5098 if depmode=$depmode \
5099 source=sub/conftest.c object=$am__obj \
5100 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5101 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5102 >/dev/null 2>conftest.err &&
5103 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5104 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5105 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5106 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5107 # icc doesn't choke on unknown options, it will just issue warnings
5108 # or remarks (even with -Werror). So we grep stderr for any message
5109 # that says an option was ignored or not supported.
5110 # When given -MP, icc 7.0 and 7.1 complain thusly:
5111 # icc: Command line warning: ignoring option '-M'; no argument required
5112 # The diagnosis changed in icc 8.0:
5113 # icc: Command line remark: option '-MP' not supported
5114 if (grep 'ignoring option' conftest.err ||
5115 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5116 am_cv_CC_dependencies_compiler_type=$depmode
5117 break
5120 done
5122 cd ..
5123 rm -rf conftest.dir
5124 else
5125 am_cv_CC_dependencies_compiler_type=none
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5130 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5131 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5134 test "x$enable_dependency_tracking" != xno \
5135 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5136 am__fastdepCC_TRUE=
5137 am__fastdepCC_FALSE='#'
5138 else
5139 am__fastdepCC_TRUE='#'
5140 am__fastdepCC_FALSE=
5144 ac_ext=c
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5150 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5151 # On Suns, sometimes $CPP names a directory.
5152 if test -n "$CPP" && test -d "$CPP"; then
5153 CPP=
5155 if test -z "$CPP"; then
5156 if test "${ac_cv_prog_CPP+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 # Double quotes because CPP needs to be expanded
5160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5162 ac_preproc_ok=false
5163 for ac_c_preproc_warn_flag in '' yes
5165 # Use a header file that comes with gcc, so configuring glibc
5166 # with a fresh cross-compiler works.
5167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5168 # <limits.h> exists even on freestanding compilers.
5169 # On the NeXT, cc -E runs the code through the compiler's parser,
5170 # not just through cpp. "Syntax error" is here to catch this case.
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 #ifdef __STDC__
5174 # include <limits.h>
5175 #else
5176 # include <assert.h>
5177 #endif
5178 Syntax error
5179 _ACEOF
5180 if ac_fn_c_try_cpp "$LINENO"; then :
5182 else
5183 # Broken: fails on valid input.
5184 continue
5186 rm -f conftest.err conftest.$ac_ext
5188 # OK, works on sane cases. Now check whether nonexistent headers
5189 # can be detected and how.
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5193 _ACEOF
5194 if ac_fn_c_try_cpp "$LINENO"; then :
5195 # Broken: success on invalid input.
5196 continue
5197 else
5198 # Passes both tests.
5199 ac_preproc_ok=:
5200 break
5202 rm -f conftest.err conftest.$ac_ext
5204 done
5205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5206 rm -f conftest.err conftest.$ac_ext
5207 if $ac_preproc_ok; then :
5208 break
5211 done
5212 ac_cv_prog_CPP=$CPP
5215 CPP=$ac_cv_prog_CPP
5216 else
5217 ac_cv_prog_CPP=$CPP
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5220 $as_echo "$CPP" >&6; }
5221 ac_preproc_ok=false
5222 for ac_c_preproc_warn_flag in '' yes
5224 # Use a header file that comes with gcc, so configuring glibc
5225 # with a fresh cross-compiler works.
5226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227 # <limits.h> exists even on freestanding compilers.
5228 # On the NeXT, cc -E runs the code through the compiler's parser,
5229 # not just through cpp. "Syntax error" is here to catch this case.
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #ifdef __STDC__
5233 # include <limits.h>
5234 #else
5235 # include <assert.h>
5236 #endif
5237 Syntax error
5238 _ACEOF
5239 if ac_fn_c_try_cpp "$LINENO"; then :
5241 else
5242 # Broken: fails on valid input.
5243 continue
5245 rm -f conftest.err conftest.$ac_ext
5247 # OK, works on sane cases. Now check whether nonexistent headers
5248 # can be detected and how.
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 #include <ac_nonexistent.h>
5252 _ACEOF
5253 if ac_fn_c_try_cpp "$LINENO"; then :
5254 # Broken: success on invalid input.
5255 continue
5256 else
5257 # Passes both tests.
5258 ac_preproc_ok=:
5259 break
5261 rm -f conftest.err conftest.$ac_ext
5263 done
5264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5265 rm -f conftest.err conftest.$ac_ext
5266 if $ac_preproc_ok; then :
5268 else
5269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5271 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5272 See \`config.log' for more details." "$LINENO" 5; }
5275 ac_ext=c
5276 ac_cpp='$CPP $CPPFLAGS'
5277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5281 ac_build_prefix=
5282 test -n "$build_alias" && ac_build_prefix=$build_alias-
5284 if test "$cross_compiling" = yes; then :
5286 # Even if we're cross-compiling, we want a compiler here
5287 # that is not a cross-compiler.
5288 saved_cross=$cross_compiling
5289 cross_compiling=no
5291 ac_ext=c
5292 ac_cpp='$CPP $BUILD_CPPFLAGS'
5293 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5296 if test -n "$ac_build_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5298 set dummy ${ac_build_prefix}gcc; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$BUILD_CC"; then
5305 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5320 IFS=$as_save_IFS
5324 BUILD_CC=$ac_cv_prog_BUILD_CC
5325 if test -n "$BUILD_CC"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5327 $as_echo "$BUILD_CC" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5335 if test -z "$ac_cv_prog_BUILD_CC"; then
5336 ac_ct_BUILD_CC=$BUILD_CC
5337 # Extract the first word of "gcc", so it can be a program name with args.
5338 set dummy gcc; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$ac_ct_BUILD_CC"; then
5345 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5364 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5365 if test -n "$ac_ct_BUILD_CC"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5367 $as_echo "$ac_ct_BUILD_CC" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5373 if test "x$ac_ct_BUILD_CC" = x; then
5374 BUILD_CC=""
5375 else
5376 case $cross_compiling:$ac_tool_warned in
5377 yes:)
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5380 ac_tool_warned=yes ;;
5381 esac
5382 BUILD_CC=$ac_ct_BUILD_CC
5384 else
5385 BUILD_CC="$ac_cv_prog_BUILD_CC"
5388 if test -z "$BUILD_CC"; then
5389 if test -n "$ac_build_prefix"; then
5390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5391 set dummy ${ac_build_prefix}cc; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$BUILD_CC"; then
5398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5411 done
5412 done
5413 IFS=$as_save_IFS
5417 BUILD_CC=$ac_cv_prog_BUILD_CC
5418 if test -n "$BUILD_CC"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5420 $as_echo "$BUILD_CC" >&6; }
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test -z "$ac_cv_prog_BUILD_CC"; then
5429 ac_ct_BUILD_CC=$BUILD_CC
5430 # Extract the first word of "cc", so it can be a program name with args.
5431 set dummy cc; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 if test -n "$ac_ct_BUILD_CC"; then
5438 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_prog_ac_ct_BUILD_CC="cc"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5451 done
5452 done
5453 IFS=$as_save_IFS
5457 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5458 if test -n "$ac_ct_BUILD_CC"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5460 $as_echo "$ac_ct_BUILD_CC" >&6; }
5461 else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5466 if test "x$ac_ct_BUILD_CC" = x; then
5467 BUILD_CC=""
5468 else
5469 case $cross_compiling:$ac_tool_warned in
5470 yes:)
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473 ac_tool_warned=yes ;;
5474 esac
5475 BUILD_CC=$ac_ct_BUILD_CC
5477 else
5478 BUILD_CC="$ac_cv_prog_BUILD_CC"
5482 if test -z "$BUILD_CC"; then
5483 # Extract the first word of "cc", so it can be a program name with args.
5484 set dummy cc; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 if test -n "$BUILD_CC"; then
5491 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5492 else
5493 ac_prog_rejected=no
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5502 ac_prog_rejected=yes
5503 continue
5505 ac_cv_prog_BUILD_CC="cc"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5509 done
5510 done
5511 IFS=$as_save_IFS
5513 if test $ac_prog_rejected = yes; then
5514 # We found a bogon in the path, so make sure we never use it.
5515 set dummy $ac_cv_prog_BUILD_CC
5516 shift
5517 if test $# != 0; then
5518 # We chose a different compiler from the bogus one.
5519 # However, it has the same basename, so the bogon will be chosen
5520 # first if we set BUILD_CC to just the basename; use the full file name.
5521 shift
5522 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5527 BUILD_CC=$ac_cv_prog_BUILD_CC
5528 if test -n "$BUILD_CC"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5530 $as_echo "$BUILD_CC" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5538 if test -z "$BUILD_CC"; then
5539 if test -n "$ac_build_prefix"; then
5540 for ac_prog in cl
5542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5543 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if test -n "$BUILD_CC"; then
5550 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5563 done
5564 done
5565 IFS=$as_save_IFS
5569 BUILD_CC=$ac_cv_prog_BUILD_CC
5570 if test -n "$BUILD_CC"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5572 $as_echo "$BUILD_CC" >&6; }
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5579 test -n "$BUILD_CC" && break
5580 done
5582 if test -z "$BUILD_CC"; then
5583 ac_ct_BUILD_CC=$BUILD_CC
5584 for ac_prog in cl
5586 # Extract the first word of "$ac_prog", so it can be a program name with args.
5587 set dummy $ac_prog; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if test -n "$ac_ct_BUILD_CC"; then
5594 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5607 done
5608 done
5609 IFS=$as_save_IFS
5613 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5614 if test -n "$ac_ct_BUILD_CC"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5616 $as_echo "$ac_ct_BUILD_CC" >&6; }
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5623 test -n "$ac_ct_BUILD_CC" && break
5624 done
5626 if test "x$ac_ct_BUILD_CC" = x; then
5627 BUILD_CC=""
5628 else
5629 case $cross_compiling:$ac_tool_warned in
5630 yes:)
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5633 ac_tool_warned=yes ;;
5634 esac
5635 BUILD_CC=$ac_ct_BUILD_CC
5642 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5644 as_fn_error "no acceptable C compiler found in \$PATH
5645 See \`config.log' for more details." "$LINENO" 5; }
5647 # Provide some information about the compiler.
5648 echo "$as_me:$LINENO:" \
5649 "checking for C compiler version" >&5
5650 ac_compiler=`set X $ac_compile; echo $2`
5651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5652 (eval $ac_compiler --version </dev/null >&5) 2>&5
5653 ac_status=$?
5654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5655 test $ac_status = 0; }
5656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5657 (eval $ac_compiler -v </dev/null >&5) 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; }
5661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5662 (eval $ac_compiler -V </dev/null >&5) 2>&5
5663 ac_status=$?
5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5665 test $ac_status = 0; }
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5671 main ()
5675 return 0;
5677 _ACEOF
5678 ac_clean_files_save=$ac_clean_files
5679 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5680 # Try to create an executable without -o first, disregard a.out.
5681 # It will help us diagnose broken compilers, and finding out an intuition
5682 # of exeext.
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5684 $as_echo_n "checking whether the C compiler works... " >&6; }
5685 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5687 # The possible output files:
5688 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5690 ac_rmfiles=
5691 for ac_file in $ac_files
5693 case $ac_file in
5694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5695 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5696 esac
5697 done
5698 rm -f $ac_rmfiles
5700 if { { ac_try="$ac_link_default"
5701 case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5706 $as_echo "$ac_try_echo"; } >&5
5707 (eval "$ac_link_default") 2>&5
5708 ac_status=$?
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; }; then :
5711 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5712 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5713 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5714 # so that the user can short-circuit this test for compilers unknown to
5715 # Autoconf.
5716 for ac_file in $ac_files ''
5718 test -f "$ac_file" || continue
5719 case $ac_file in
5720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5722 [ab].out )
5723 # We found the default executable, but exeext='' is most
5724 # certainly right.
5725 break;;
5726 *.* )
5727 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5728 then :; else
5729 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5731 # We set ac_cv_exeext here because the later test for it is not
5732 # safe: cross compilers may not add the suffix if given an `-o'
5733 # argument, so we may need to know it at that point already.
5734 # Even if this section looks crufty: it has the advantage of
5735 # actually working.
5736 break;;
5738 break;;
5739 esac
5740 done
5741 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5743 else
5744 ac_file=''
5746 if test -z "$ac_file"; then :
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 $as_echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5754 { as_fn_set_status 77
5755 as_fn_error "C compiler cannot create executables
5756 See \`config.log' for more details." "$LINENO" 5; }; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5759 $as_echo "yes" >&6; }
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5762 $as_echo_n "checking for C compiler default output file name... " >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5764 $as_echo "$ac_file" >&6; }
5765 ac_build_exeext=$ac_cv_build_exeext
5767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5768 ac_clean_files=$ac_clean_files_save
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5770 $as_echo_n "checking for suffix of executables... " >&6; }
5771 if { { ac_try="$ac_link"
5772 case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775 esac
5776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5777 $as_echo "$ac_try_echo"; } >&5
5778 (eval "$ac_link") 2>&5
5779 ac_status=$?
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5781 test $ac_status = 0; }; then :
5782 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5783 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5784 # work properly (i.e., refer to `conftest.exe'), while it won't with
5785 # `rm'.
5786 for ac_file in conftest.exe conftest conftest.*; do
5787 test -f "$ac_file" || continue
5788 case $ac_file in
5789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5790 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5791 break;;
5792 * ) break;;
5793 esac
5794 done
5795 else
5796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5798 as_fn_error "cannot compute suffix of executables: cannot compile and link
5799 See \`config.log' for more details." "$LINENO" 5; }
5801 rm -f conftest conftest$ac_cv_build_exeext
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5803 $as_echo "$ac_cv_build_exeext" >&6; }
5805 rm -f conftest.$ac_ext
5806 BUILD_EXEEXT=$ac_cv_build_exeext
5807 ac_build_exeext=$BUILD_EXEEXT
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #include <stdio.h>
5812 main ()
5814 FILE *f = fopen ("conftest.out", "w");
5815 return ferror (f) || fclose (f) != 0;
5818 return 0;
5820 _ACEOF
5821 ac_clean_files="$ac_clean_files conftest.out"
5822 # Check that the compiler produces executables we can run. If not, either
5823 # the compiler is broken, or we cross compile.
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5825 $as_echo_n "checking whether we are cross compiling... " >&6; }
5826 if test "$cross_compiling" != yes; then
5827 { { ac_try="$ac_link"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5833 $as_echo "$ac_try_echo"; } >&5
5834 (eval "$ac_link") 2>&5
5835 ac_status=$?
5836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837 test $ac_status = 0; }
5838 if { ac_try='./conftest$ac_cv_build_exeext'
5839 { { case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842 esac
5843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5844 $as_echo "$ac_try_echo"; } >&5
5845 (eval "$ac_try") 2>&5
5846 ac_status=$?
5847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5848 test $ac_status = 0; }; }; then
5849 cross_compiling=no
5850 else
5851 if test "$cross_compiling" = maybe; then
5852 cross_compiling=yes
5853 else
5854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5856 as_fn_error "cannot run C compiled programs.
5857 If you meant to cross compile, use \`--host'.
5858 See \`config.log' for more details." "$LINENO" 5; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5863 $as_echo "$cross_compiling" >&6; }
5865 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5866 ac_clean_files=$ac_clean_files_save
5869 # Restore configuration environment
5870 cross_compiling=$saved_cross
5872 ac_ext=c
5873 ac_cpp='$CPP $CPPFLAGS'
5874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5878 else
5879 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5881 CFLAGS="$mule_backup_CFLAGS"
5882 CXXFLAGS="$mule_backup_CXXFLAGS"
5883 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5884 for ac_prog in gawk mawk nawk awk
5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887 set dummy $ac_prog; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_AWK+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 if test -n "$AWK"; then
5894 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_AWK="$ac_prog"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5907 done
5908 done
5909 IFS=$as_save_IFS
5913 AWK=$ac_cv_prog_AWK
5914 if test -n "$AWK"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5916 $as_echo "$AWK" >&6; }
5917 else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5923 test -n "$AWK" && break
5924 done
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5927 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5928 if test "${ac_cv_path_GREP+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -z "$GREP"; then
5932 ac_path_GREP_found=false
5933 # Loop through the user's path and test for each of PROGNAME-LIST
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_prog in grep ggrep; do
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5942 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5943 # Check for GNU ac_path_GREP and select it if it is found.
5944 # Check for GNU $ac_path_GREP
5945 case `"$ac_path_GREP" --version 2>&1` in
5946 *GNU*)
5947 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5949 ac_count=0
5950 $as_echo_n 0123456789 >"conftest.in"
5951 while :
5953 cat "conftest.in" "conftest.in" >"conftest.tmp"
5954 mv "conftest.tmp" "conftest.in"
5955 cp "conftest.in" "conftest.nl"
5956 $as_echo 'GREP' >> "conftest.nl"
5957 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5959 as_fn_arith $ac_count + 1 && ac_count=$as_val
5960 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5961 # Best one so far, save it but keep looking for a better one
5962 ac_cv_path_GREP="$ac_path_GREP"
5963 ac_path_GREP_max=$ac_count
5965 # 10*(2^10) chars as input seems more than enough
5966 test $ac_count -gt 10 && break
5967 done
5968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5969 esac
5971 $ac_path_GREP_found && break 3
5972 done
5973 done
5974 done
5975 IFS=$as_save_IFS
5976 if test -z "$ac_cv_path_GREP"; then
5977 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5979 else
5980 ac_cv_path_GREP=$GREP
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5985 $as_echo "$ac_cv_path_GREP" >&6; }
5986 GREP="$ac_cv_path_GREP"
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5990 $as_echo_n "checking for egrep... " >&6; }
5991 if test "${ac_cv_path_EGREP+set}" = set; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5995 then ac_cv_path_EGREP="$GREP -E"
5996 else
5997 if test -z "$EGREP"; then
5998 ac_path_EGREP_found=false
5999 # Loop through the user's path and test for each of PROGNAME-LIST
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_prog in egrep; do
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6008 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6009 # Check for GNU ac_path_EGREP and select it if it is found.
6010 # Check for GNU $ac_path_EGREP
6011 case `"$ac_path_EGREP" --version 2>&1` in
6012 *GNU*)
6013 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6015 ac_count=0
6016 $as_echo_n 0123456789 >"conftest.in"
6017 while :
6019 cat "conftest.in" "conftest.in" >"conftest.tmp"
6020 mv "conftest.tmp" "conftest.in"
6021 cp "conftest.in" "conftest.nl"
6022 $as_echo 'EGREP' >> "conftest.nl"
6023 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6024 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6025 as_fn_arith $ac_count + 1 && ac_count=$as_val
6026 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6027 # Best one so far, save it but keep looking for a better one
6028 ac_cv_path_EGREP="$ac_path_EGREP"
6029 ac_path_EGREP_max=$ac_count
6031 # 10*(2^10) chars as input seems more than enough
6032 test $ac_count -gt 10 && break
6033 done
6034 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6035 esac
6037 $ac_path_EGREP_found && break 3
6038 done
6039 done
6040 done
6041 IFS=$as_save_IFS
6042 if test -z "$ac_cv_path_EGREP"; then
6043 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6045 else
6046 ac_cv_path_EGREP=$EGREP
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6052 $as_echo "$ac_cv_path_EGREP" >&6; }
6053 EGREP="$ac_cv_path_EGREP"
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6058 set x ${MAKE-make}
6059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6060 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 cat >conftest.make <<\_ACEOF
6064 SHELL = /bin/sh
6065 all:
6066 @echo '@@@%%%=$(MAKE)=@@@%%%'
6067 _ACEOF
6068 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6070 *@@@%%%=?*=@@@%%%*)
6071 eval ac_cv_prog_make_${ac_make}_set=yes;;
6073 eval ac_cv_prog_make_${ac_make}_set=no;;
6074 esac
6075 rm -f conftest.make
6077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6079 $as_echo "yes" >&6; }
6080 SET_MAKE=
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084 SET_MAKE="MAKE=${MAKE-make}"
6088 for ac_prog in flex lex
6090 # Extract the first word of "$ac_prog", so it can be a program name with args.
6091 set dummy $ac_prog; ac_word=$2
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 $as_echo_n "checking for $ac_word... " >&6; }
6094 if test "${ac_cv_prog_LEX+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6096 else
6097 if test -n "$LEX"; then
6098 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6099 else
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_LEX="$ac_prog"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6111 done
6112 done
6113 IFS=$as_save_IFS
6117 LEX=$ac_cv_prog_LEX
6118 if test -n "$LEX"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6120 $as_echo "$LEX" >&6; }
6121 else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6127 test -n "$LEX" && break
6128 done
6129 test -n "$LEX" || LEX=":"
6131 if test "x$LEX" != "x:"; then
6132 cat >conftest.l <<_ACEOF
6134 a { ECHO; }
6135 b { REJECT; }
6136 c { yymore (); }
6137 d { yyless (1); }
6138 e { yyless (input () != 0); }
6139 f { unput (yytext[0]); }
6140 . { BEGIN INITIAL; }
6142 #ifdef YYTEXT_POINTER
6143 extern char *yytext;
6144 #endif
6146 main (void)
6148 return ! yylex () + ! yywrap ();
6150 _ACEOF
6151 { { ac_try="$LEX conftest.l"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6157 $as_echo "$ac_try_echo"; } >&5
6158 (eval "$LEX conftest.l") 2>&5
6159 ac_status=$?
6160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161 test $ac_status = 0; }
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6163 $as_echo_n "checking lex output file root... " >&6; }
6164 if test "${ac_cv_prog_lex_root+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6168 if test -f lex.yy.c; then
6169 ac_cv_prog_lex_root=lex.yy
6170 elif test -f lexyy.c; then
6171 ac_cv_prog_lex_root=lexyy
6172 else
6173 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6177 $as_echo "$ac_cv_prog_lex_root" >&6; }
6178 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6180 if test -z "${LEXLIB+set}"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6182 $as_echo_n "checking lex library... " >&6; }
6183 if test "${ac_cv_lib_lex+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6187 ac_save_LIBS=$LIBS
6188 ac_cv_lib_lex='none needed'
6189 for ac_lib in '' -lfl -ll; do
6190 LIBS="$ac_lib $ac_save_LIBS"
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 `cat $LEX_OUTPUT_ROOT.c`
6194 _ACEOF
6195 if ac_fn_c_try_link "$LINENO"; then :
6196 ac_cv_lib_lex=$ac_lib
6198 rm -f core conftest.err conftest.$ac_objext \
6199 conftest$ac_exeext conftest.$ac_ext
6200 test "$ac_cv_lib_lex" != 'none needed' && break
6201 done
6202 LIBS=$ac_save_LIBS
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6206 $as_echo "$ac_cv_lib_lex" >&6; }
6207 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6212 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6213 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 # POSIX says lex can declare yytext either as a pointer or an array; the
6217 # default is implementation-dependent. Figure out which it is, since
6218 # not all implementations provide the %pointer and %array declarations.
6219 ac_cv_prog_lex_yytext_pointer=no
6220 ac_save_LIBS=$LIBS
6221 LIBS="$LEXLIB $ac_save_LIBS"
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 #define YYTEXT_POINTER 1
6225 `cat $LEX_OUTPUT_ROOT.c`
6226 _ACEOF
6227 if ac_fn_c_try_link "$LINENO"; then :
6228 ac_cv_prog_lex_yytext_pointer=yes
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6232 LIBS=$ac_save_LIBS
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6236 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6237 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6239 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6242 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6246 if test -n "$ac_tool_prefix"; then
6247 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6248 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 if test -n "$RANLIB"; then
6255 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6260 IFS=$as_save_IFS
6261 test -z "$as_dir" && as_dir=.
6262 for ac_exec_ext in '' $ac_executable_extensions; do
6263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266 break 2
6268 done
6269 done
6270 IFS=$as_save_IFS
6274 RANLIB=$ac_cv_prog_RANLIB
6275 if test -n "$RANLIB"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6277 $as_echo "$RANLIB" >&6; }
6278 else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6285 if test -z "$ac_cv_prog_RANLIB"; then
6286 ac_ct_RANLIB=$RANLIB
6287 # Extract the first word of "ranlib", so it can be a program name with args.
6288 set dummy ranlib; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$ac_ct_RANLIB"; then
6295 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_ac_ct_RANLIB="ranlib"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6308 done
6309 done
6310 IFS=$as_save_IFS
6314 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6315 if test -n "$ac_ct_RANLIB"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6317 $as_echo "$ac_ct_RANLIB" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6323 if test "x$ac_ct_RANLIB" = x; then
6324 RANLIB=":"
6325 else
6326 case $cross_compiling:$ac_tool_warned in
6327 yes:)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332 RANLIB=$ac_ct_RANLIB
6334 else
6335 RANLIB="$ac_cv_prog_RANLIB"
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6339 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6340 if test "${ac_cv_path_SED+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6344 for ac_i in 1 2 3 4 5 6 7; do
6345 ac_script="$ac_script$as_nl$ac_script"
6346 done
6347 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6348 { ac_script=; unset ac_script;}
6349 if test -z "$SED"; then
6350 ac_path_SED_found=false
6351 # Loop through the user's path and test for each of PROGNAME-LIST
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_prog in sed gsed; do
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6360 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6361 # Check for GNU ac_path_SED and select it if it is found.
6362 # Check for GNU $ac_path_SED
6363 case `"$ac_path_SED" --version 2>&1` in
6364 *GNU*)
6365 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6367 ac_count=0
6368 $as_echo_n 0123456789 >"conftest.in"
6369 while :
6371 cat "conftest.in" "conftest.in" >"conftest.tmp"
6372 mv "conftest.tmp" "conftest.in"
6373 cp "conftest.in" "conftest.nl"
6374 $as_echo '' >> "conftest.nl"
6375 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6377 as_fn_arith $ac_count + 1 && ac_count=$as_val
6378 if test $ac_count -gt ${ac_path_SED_max-0}; then
6379 # Best one so far, save it but keep looking for a better one
6380 ac_cv_path_SED="$ac_path_SED"
6381 ac_path_SED_max=$ac_count
6383 # 10*(2^10) chars as input seems more than enough
6384 test $ac_count -gt 10 && break
6385 done
6386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6387 esac
6389 $ac_path_SED_found && break 3
6390 done
6391 done
6392 done
6393 IFS=$as_save_IFS
6394 if test -z "$ac_cv_path_SED"; then
6395 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6397 else
6398 ac_cv_path_SED=$SED
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6403 $as_echo "$ac_cv_path_SED" >&6; }
6404 SED="$ac_cv_path_SED"
6405 rm -f conftest.sed
6407 for ac_prog in 'bison -y' byacc
6409 # Extract the first word of "$ac_prog", so it can be a program name with args.
6410 set dummy $ac_prog; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if test "${ac_cv_prog_YACC+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if test -n "$YACC"; then
6417 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6422 IFS=$as_save_IFS
6423 test -z "$as_dir" && as_dir=.
6424 for ac_exec_ext in '' $ac_executable_extensions; do
6425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6426 ac_cv_prog_YACC="$ac_prog"
6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 break 2
6430 done
6431 done
6432 IFS=$as_save_IFS
6436 YACC=$ac_cv_prog_YACC
6437 if test -n "$YACC"; then
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6439 $as_echo "$YACC" >&6; }
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442 $as_echo "no" >&6; }
6446 test -n "$YACC" && break
6447 done
6448 test -n "$YACC" || YACC="yacc"
6451 if test -n "$ac_tool_prefix"; then
6452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$RANLIB"; then
6460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6473 done
6474 done
6475 IFS=$as_save_IFS
6479 RANLIB=$ac_cv_prog_RANLIB
6480 if test -n "$RANLIB"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6482 $as_echo "$RANLIB" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6490 if test -z "$ac_cv_prog_RANLIB"; then
6491 ac_ct_RANLIB=$RANLIB
6492 # Extract the first word of "ranlib", so it can be a program name with args.
6493 set dummy ranlib; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 if test -n "$ac_ct_RANLIB"; then
6500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6501 else
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 for as_dir in $PATH
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_ac_ct_RANLIB="ranlib"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6513 done
6514 done
6515 IFS=$as_save_IFS
6519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6520 if test -n "$ac_ct_RANLIB"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6522 $as_echo "$ac_ct_RANLIB" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6528 if test "x$ac_ct_RANLIB" = x; then
6529 RANLIB=""
6530 else
6531 case $cross_compiling:$ac_tool_warned in
6532 yes:)
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6535 ac_tool_warned=yes ;;
6536 esac
6537 RANLIB=$ac_ct_RANLIB
6539 else
6540 RANLIB="$ac_cv_prog_RANLIB"
6543 if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}strip; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if test "${ac_cv_prog_STRIP+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if test -n "$STRIP"; then
6552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6567 IFS=$as_save_IFS
6571 STRIP=$ac_cv_prog_STRIP
6572 if test -n "$STRIP"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6574 $as_echo "$STRIP" >&6; }
6575 else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6582 if test -z "$ac_cv_prog_STRIP"; then
6583 ac_ct_STRIP=$STRIP
6584 # Extract the first word of "strip", so it can be a program name with args.
6585 set dummy strip; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6589 $as_echo_n "(cached) " >&6
6590 else
6591 if test -n "$ac_ct_STRIP"; then
6592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6597 IFS=$as_save_IFS
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601 ac_cv_prog_ac_ct_STRIP="strip"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 break 2
6605 done
6606 done
6607 IFS=$as_save_IFS
6611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6612 if test -n "$ac_ct_STRIP"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6614 $as_echo "$ac_ct_STRIP" >&6; }
6615 else
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6620 if test "x$ac_ct_STRIP" = x; then
6621 STRIP=""
6622 else
6623 case $cross_compiling:$ac_tool_warned in
6624 yes:)
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6627 ac_tool_warned=yes ;;
6628 esac
6629 STRIP=$ac_ct_STRIP
6631 else
6632 STRIP="$ac_cv_prog_STRIP"
6635 if test -n "$ac_tool_prefix"; then
6636 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}ar; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if test "${ac_cv_prog_AR+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 if test -n "$AR"; then
6644 ac_cv_prog_AR="$AR" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_prog_AR="${ac_tool_prefix}ar"
6654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6657 done
6658 done
6659 IFS=$as_save_IFS
6663 AR=$ac_cv_prog_AR
6664 if test -n "$AR"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6666 $as_echo "$AR" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6674 if test -z "$ac_cv_prog_AR"; then
6675 ac_ct_AR=$AR
6676 # Extract the first word of "ar", so it can be a program name with args.
6677 set dummy ar; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 if test -n "$ac_ct_AR"; then
6684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_ac_ct_AR="ar"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6697 done
6698 done
6699 IFS=$as_save_IFS
6703 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6704 if test -n "$ac_ct_AR"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6706 $as_echo "$ac_ct_AR" >&6; }
6707 else
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6712 if test "x$ac_ct_AR" = x; then
6713 AR=""
6714 else
6715 case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719 ac_tool_warned=yes ;;
6720 esac
6721 AR=$ac_ct_AR
6723 else
6724 AR="$ac_cv_prog_AR"
6727 if test -n "$ac_tool_prefix"; then
6728 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6729 set dummy ${ac_tool_prefix}ld; ac_word=$2
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_prog_LD+set}" = set; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if test -n "$LD"; then
6736 ac_cv_prog_LD="$LD" # Let the user override the test.
6737 else
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745 ac_cv_prog_LD="${ac_tool_prefix}ld"
6746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6749 done
6750 done
6751 IFS=$as_save_IFS
6755 LD=$ac_cv_prog_LD
6756 if test -n "$LD"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6758 $as_echo "$LD" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6766 if test -z "$ac_cv_prog_LD"; then
6767 ac_ct_LD=$LD
6768 # Extract the first word of "ld", so it can be a program name with args.
6769 set dummy ld; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$ac_ct_LD"; then
6776 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_prog_ac_ct_LD="ld"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6789 done
6790 done
6791 IFS=$as_save_IFS
6795 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6796 if test -n "$ac_ct_LD"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6798 $as_echo "$ac_ct_LD" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6804 if test "x$ac_ct_LD" = x; then
6805 LD=""
6806 else
6807 case $cross_compiling:$ac_tool_warned in
6808 yes:)
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811 ac_tool_warned=yes ;;
6812 esac
6813 LD=$ac_ct_LD
6815 else
6816 LD="$ac_cv_prog_LD"
6820 # Check whether --enable-monolithic was given.
6821 if test "${enable_monolithic+set}" = set; then :
6822 enableval=$enable_monolithic;
6825 if test ${enable_monolithic:-yes} = yes; then
6826 MONOLITHIC_TRUE=
6827 MONOLITHIC_FALSE='#'
6828 else
6829 MONOLITHIC_TRUE='#'
6830 MONOLITHIC_FALSE=
6834 # Check whether --enable-amule-daemon was given.
6835 if test "${enable_amule_daemon+set}" = set; then :
6836 enableval=$enable_amule_daemon;
6839 if test ${enable_amule_daemon:-no} = yes; then
6840 AMULE_DAEMON_TRUE=
6841 AMULE_DAEMON_FALSE='#'
6842 else
6843 AMULE_DAEMON_TRUE='#'
6844 AMULE_DAEMON_FALSE=
6848 # Check whether --enable-amulecmd was given.
6849 if test "${enable_amulecmd+set}" = set; then :
6850 enableval=$enable_amulecmd;
6853 if test ${enable_amulecmd:-no} = yes; then
6854 COMPILE_CMD_TRUE=
6855 COMPILE_CMD_FALSE='#'
6856 else
6857 COMPILE_CMD_TRUE='#'
6858 COMPILE_CMD_FALSE=
6862 # Check whether --enable-webserver was given.
6863 if test "${enable_webserver+set}" = set; then :
6864 enableval=$enable_webserver;
6867 if test ${enable_webserver:-no} = yes; then
6868 WEB_TRUE=
6869 WEB_FALSE='#'
6870 else
6871 WEB_TRUE='#'
6872 WEB_FALSE=
6876 # Check whether --enable-amule-gui was given.
6877 if test "${enable_amule_gui+set}" = set; then :
6878 enableval=$enable_amule_gui;
6881 if test ${enable_amule_gui:-no} = yes; then
6882 AMULE_GUI_TRUE=
6883 AMULE_GUI_FALSE='#'
6884 else
6885 AMULE_GUI_TRUE='#'
6886 AMULE_GUI_FALSE=
6890 # Check whether --enable-cas was given.
6891 if test "${enable_cas+set}" = set; then :
6892 enableval=$enable_cas;
6895 if test ${enable_cas:-no} = yes; then
6896 CAS_TRUE=
6897 CAS_FALSE='#'
6898 else
6899 CAS_TRUE='#'
6900 CAS_FALSE=
6904 # Check whether --enable-wxcas was given.
6905 if test "${enable_wxcas+set}" = set; then :
6906 enableval=$enable_wxcas;
6909 if test ${enable_wxcas:-no} = yes; then
6910 WXCAS_TRUE=
6911 WXCAS_FALSE='#'
6912 else
6913 WXCAS_TRUE='#'
6914 WXCAS_FALSE=
6918 # Check whether --enable-ed2k was given.
6919 if test "${enable_ed2k+set}" = set; then :
6920 enableval=$enable_ed2k;
6923 if test ${enable_ed2k:-yes} = yes; then
6924 ED2K_TRUE=
6925 ED2K_FALSE='#'
6926 else
6927 ED2K_TRUE='#'
6928 ED2K_FALSE=
6932 # Check whether --enable-alc was given.
6933 if test "${enable_alc+set}" = set; then :
6934 enableval=$enable_alc;
6937 if test ${enable_alc:-no} = yes; then
6938 ALC_TRUE=
6939 ALC_FALSE='#'
6940 else
6941 ALC_TRUE='#'
6942 ALC_FALSE=
6946 # Check whether --enable-alcc was given.
6947 if test "${enable_alcc+set}" = set; then :
6948 enableval=$enable_alcc;
6951 if test ${enable_alcc:-no} = yes; then
6952 ALCC_TRUE=
6953 ALCC_FALSE='#'
6954 else
6955 ALCC_TRUE='#'
6956 ALCC_FALSE=
6960 # Check whether --enable-xas was given.
6961 if test "${enable_xas+set}" = set; then :
6962 enableval=$enable_xas;
6965 if test ${enable_xas:-no} = yes; then
6966 XAS_TRUE=
6967 XAS_FALSE='#'
6968 else
6969 XAS_TRUE='#'
6970 XAS_FALSE=
6974 # Check whether --enable-fileview was given.
6975 if test "${enable_fileview+set}" = set; then :
6976 enableval=$enable_fileview;
6979 if test ${enable_fileview:-no} = yes; then
6980 FILEVIEW_TRUE=
6981 FILEVIEW_FALSE='#'
6982 else
6983 FILEVIEW_TRUE='#'
6984 FILEVIEW_FALSE=
6988 # Check whether --enable-plasmamule was given.
6989 if test "${enable_plasmamule+set}" = set; then :
6990 enableval=$enable_plasmamule;
6995 # Run all the tests with static linkage if we want a statically linked binary
6996 # Check whether --enable-static was given.
6997 if test "${enable_static+set}" = set; then :
6998 enableval=$enable_static;
7002 if test ${enable_static:-no} = yes; then :
7003 LDFLAGS="$LDFLAGS -static"
7008 # Check whether --with-kde4-config was given.
7009 if test "${with_kde4_config+set}" = set; then :
7010 withval=$with_kde4_config; KDE4_CONFIG=$withval
7011 else
7012 KDE4_CONFIG=""
7015 # Check whether --enable-kde-in-home was given.
7016 if test "${enable_kde_in_home+set}" = set; then :
7017 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7018 else
7019 KDE_IN_HOME=no
7025 # Check whether --with-moc was given.
7026 if test "${with_moc+set}" = set; then :
7027 withval=$with_moc; QT_MOC=$withval
7028 else
7029 QT_MOC=""
7034 # Default is yes, because they're most likely compatible.
7035 # However, this is only used when cross-compiling.
7037 # Check whether --with-gnu-malloc was given.
7038 if test "${with_gnu_malloc+set}" = set; then :
7039 withval=$with_gnu_malloc; gnumalloc=$withval
7040 else
7041 gnumalloc=yes
7046 # Checking for libs before all other stuff to break
7047 # configure as soon as possible in case of a missing one
7048 # to avoid losing too much time
7050 # Check for gd
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7053 $as_echo_n "checking for ANSI C header files... " >&6; }
7054 if test "${ac_cv_header_stdc+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059 #include <stdlib.h>
7060 #include <stdarg.h>
7061 #include <string.h>
7062 #include <float.h>
7065 main ()
7069 return 0;
7071 _ACEOF
7072 if ac_fn_c_try_compile "$LINENO"; then :
7073 ac_cv_header_stdc=yes
7074 else
7075 ac_cv_header_stdc=no
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 if test $ac_cv_header_stdc = yes; then
7080 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #include <string.h>
7085 _ACEOF
7086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7087 $EGREP "memchr" >/dev/null 2>&1; then :
7089 else
7090 ac_cv_header_stdc=no
7092 rm -f conftest*
7096 if test $ac_cv_header_stdc = yes; then
7097 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 #include <stdlib.h>
7102 _ACEOF
7103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "free" >/dev/null 2>&1; then :
7106 else
7107 ac_cv_header_stdc=no
7109 rm -f conftest*
7113 if test $ac_cv_header_stdc = yes; then
7114 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7115 if test "$cross_compiling" = yes; then :
7117 else
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 #include <ctype.h>
7121 #include <stdlib.h>
7122 #if ((' ' & 0x0FF) == 0x020)
7123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7125 #else
7126 # define ISLOWER(c) \
7127 (('a' <= (c) && (c) <= 'i') \
7128 || ('j' <= (c) && (c) <= 'r') \
7129 || ('s' <= (c) && (c) <= 'z'))
7130 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7131 #endif
7133 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7135 main ()
7137 int i;
7138 for (i = 0; i < 256; i++)
7139 if (XOR (islower (i), ISLOWER (i))
7140 || toupper (i) != TOUPPER (i))
7141 return 2;
7142 return 0;
7144 _ACEOF
7145 if ac_fn_c_try_run "$LINENO"; then :
7147 else
7148 ac_cv_header_stdc=no
7150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7151 conftest.$ac_objext conftest.beam conftest.$ac_ext
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7157 $as_echo "$ac_cv_header_stdc" >&6; }
7158 if test $ac_cv_header_stdc = yes; then
7160 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7164 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7166 inttypes.h stdint.h unistd.h
7167 do :
7168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7169 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7171 eval as_val=\$$as_ac_Header
7172 if test "x$as_val" = x""yes; then :
7173 cat >>confdefs.h <<_ACEOF
7174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7175 _ACEOF
7179 done
7182 if test ${enable_cas:-no} = yes; then :
7186 # Check whether --with-gdlib-prefix was given.
7187 if test "${with_gdlib_prefix+set}" = set; then :
7188 withval=$with_gdlib_prefix;
7192 # Check whether --with-gdlib-config was given.
7193 if test "${with_gdlib_config+set}" = set; then :
7194 withval=$with_gdlib_config;
7198 GDLIB_VERSION=
7200 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7201 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7202 GDLIB_CONFIG_NAME=gdlib-config
7204 if test -n "$with_gdlib_config"; then :
7205 GDLIB_CONFIG_NAME="$with_gdlib_config"
7208 # deal with optional prefix
7209 if test -n "$with_gdlib_prefix"; then :
7210 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7213 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7214 if test -x "$GDLIB_CONFIG_NAME"; then :
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7217 $as_echo_n "checking for gdlib-config... " >&6; }
7218 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7220 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7222 else
7223 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7224 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226 $as_echo_n "checking for $ac_word... " >&6; }
7227 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 case $GDLIB_CONFIG_PATH in
7231 [\\/]* | ?:[\\/]*)
7232 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7237 for as_dir in $as_dummy
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7247 done
7248 done
7249 IFS=$as_save_IFS
7251 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7253 esac
7255 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7256 if test -n "$GDLIB_CONFIG_PATH"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7258 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7267 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7270 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7271 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7273 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7274 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7275 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7276 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7278 gdlib_ver_ok=
7279 if test $gdlib_config_major_version -gt 2; then
7280 gdlib_ver_ok=yes
7281 elif test $gdlib_config_major_version -eq 2; then
7283 if test $gdlib_config_minor_version -gt 0; then
7284 gdlib_ver_ok=yes
7285 elif test $gdlib_config_minor_version -eq 0; then
7286 if test $gdlib_config_micro_version -ge 0; then
7287 gdlib_ver_ok=yes
7296 if test -z "$gdlib_ver_ok"; then :
7298 if test -z "$GDLIB_VERSION"; then :
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7304 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7305 GDLIB_VERSION=
7309 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7312 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7313 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7314 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7315 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7316 mule_backup_CFLAGS="$CFLAGS"
7317 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7318 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7319 if test "x$ac_cv_header_gd_h" = x""yes; then :
7321 else
7323 GDLIB_CFLAGS=
7324 GDLIB_LDFLAGS=
7325 GDLIB_LIBS=
7326 GDLIB_VERSION=
7331 CFLAGS="$mule_backup_CFLAGS"
7337 if test -n "$GDLIB_VERSION"; then :
7339 CAS_DEFS="-D__GD__"
7340 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7342 else
7343 CAS_DEFS=
7348 if test -z "$CAS_DEFS"; then :
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7350 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7351 Please check that gdlib-config is in your default path, check out
7352 LD_LIBRARY_PATH or equivalent variable.
7353 Or this might also be that your gdlib-config has other name.
7354 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7355 (replace /usr/bin/gdlib-config with a valid path to your
7356 gdlib-config).
7357 If you use compiled packages check if you have devel pack installed.
7358 To download the latest version check http://www.boutell.com/gd for
7359 sources." >&5
7360 $as_echo "$as_me: WARNING:
7361 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7362 Please check that gdlib-config is in your default path, check out
7363 LD_LIBRARY_PATH or equivalent variable.
7364 Or this might also be that your gdlib-config has other name.
7365 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7366 (replace /usr/bin/gdlib-config with a valid path to your
7367 gdlib-config).
7368 If you use compiled packages check if you have devel pack installed.
7369 To download the latest version check http://www.boutell.com/gd for
7370 sources." >&2;}
7371 _mule_warning_0=yes
7372 _mule_has_warnings=yes
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7379 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7380 if test "${ac_cv_header_stdbool_h+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7386 #include <stdbool.h>
7387 #ifndef bool
7388 "error: bool is not defined"
7389 #endif
7390 #ifndef false
7391 "error: false is not defined"
7392 #endif
7393 #if false
7394 "error: false is not 0"
7395 #endif
7396 #ifndef true
7397 "error: true is not defined"
7398 #endif
7399 #if true != 1
7400 "error: true is not 1"
7401 #endif
7402 #ifndef __bool_true_false_are_defined
7403 "error: __bool_true_false_are_defined is not defined"
7404 #endif
7406 struct s { _Bool s: 1; _Bool t; } s;
7408 char a[true == 1 ? 1 : -1];
7409 char b[false == 0 ? 1 : -1];
7410 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7411 char d[(bool) 0.5 == true ? 1 : -1];
7412 bool e = &s;
7413 char f[(_Bool) 0.0 == false ? 1 : -1];
7414 char g[true];
7415 char h[sizeof (_Bool)];
7416 char i[sizeof s.t];
7417 enum { j = false, k = true, l = false * true, m = true * 256 };
7418 /* The following fails for
7419 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7420 _Bool n[m];
7421 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7422 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7423 # if defined __xlc__ || defined __GNUC__
7424 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7425 reported by James Lemley on 2005-10-05; see
7426 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7427 This test is not quite right, since xlc is allowed to
7428 reject this program, as the initializer for xlcbug is
7429 not one of the forms that C requires support for.
7430 However, doing the test right would require a runtime
7431 test, and that would make cross-compilation harder.
7432 Let us hope that IBM fixes the xlc bug, and also adds
7433 support for this kind of constant expression. In the
7434 meantime, this test will reject xlc, which is OK, since
7435 our stdbool.h substitute should suffice. We also test
7436 this with GCC, where it should work, to detect more
7437 quickly whether someone messes up the test in the
7438 future. */
7439 char digs[] = "0123456789";
7440 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7441 # endif
7442 /* Catch a bug in an HP-UX C compiler. See
7443 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7444 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7446 _Bool q = true;
7447 _Bool *pq = &q;
7450 main ()
7453 *pq |= q;
7454 *pq |= ! q;
7455 /* Refer to every declared value, to avoid compiler optimizations. */
7456 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7457 + !m + !n + !o + !p + !q + !pq);
7460 return 0;
7462 _ACEOF
7463 if ac_fn_c_try_compile "$LINENO"; then :
7464 ac_cv_header_stdbool_h=yes
7465 else
7466 ac_cv_header_stdbool_h=no
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7471 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7472 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7473 if test "x$ac_cv_type__Bool" = x""yes; then :
7475 cat >>confdefs.h <<_ACEOF
7476 #define HAVE__BOOL 1
7477 _ACEOF
7482 if test $ac_cv_header_stdbool_h = yes; then
7484 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7489 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7490 if test "${ac_cv_c_const+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7497 main ()
7499 /* FIXME: Include the comments suggested by Paul. */
7500 #ifndef __cplusplus
7501 /* Ultrix mips cc rejects this. */
7502 typedef int charset[2];
7503 const charset cs;
7504 /* SunOS 4.1.1 cc rejects this. */
7505 char const *const *pcpcc;
7506 char **ppc;
7507 /* NEC SVR4.0.2 mips cc rejects this. */
7508 struct point {int x, y;};
7509 static struct point const zero = {0,0};
7510 /* AIX XL C 1.02.0.0 rejects this.
7511 It does not let you subtract one const X* pointer from another in
7512 an arm of an if-expression whose if-part is not a constant
7513 expression */
7514 const char *g = "string";
7515 pcpcc = &g + (g ? g-g : 0);
7516 /* HPUX 7.0 cc rejects these. */
7517 ++pcpcc;
7518 ppc = (char**) pcpcc;
7519 pcpcc = (char const *const *) ppc;
7520 { /* SCO 3.2v4 cc rejects this. */
7521 char *t;
7522 char const *s = 0 ? (char *) 0 : (char const *) 0;
7524 *t++ = 0;
7525 if (s) return 0;
7527 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7528 int x[] = {25, 17};
7529 const int *foo = &x[0];
7530 ++foo;
7532 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7533 typedef const int *iptr;
7534 iptr p = 0;
7535 ++p;
7537 { /* AIX XL C 1.02.0.0 rejects this saying
7538 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7539 struct s { int j; const int *ap[3]; };
7540 struct s *b; b->j = 5;
7542 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7543 const int foo = 10;
7544 if (!foo) return 0;
7546 return !cs[0] && !zero.x;
7547 #endif
7550 return 0;
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 ac_cv_c_const=yes
7555 else
7556 ac_cv_c_const=no
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7561 $as_echo "$ac_cv_c_const" >&6; }
7562 if test $ac_cv_c_const = no; then
7564 $as_echo "#define const /**/" >>confdefs.h
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7569 $as_echo_n "checking for inline... " >&6; }
7570 if test "${ac_cv_c_inline+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 ac_cv_c_inline=no
7574 for ac_kw in inline __inline__ __inline; do
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 #ifndef __cplusplus
7578 typedef int foo_t;
7579 static $ac_kw foo_t static_foo () {return 0; }
7580 $ac_kw foo_t foo () {return 0; }
7581 #endif
7583 _ACEOF
7584 if ac_fn_c_try_compile "$LINENO"; then :
7585 ac_cv_c_inline=$ac_kw
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 test "$ac_cv_c_inline" != no && break
7589 done
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7593 $as_echo "$ac_cv_c_inline" >&6; }
7595 case $ac_cv_c_inline in
7596 inline | yes) ;;
7598 case $ac_cv_c_inline in
7599 no) ac_val=;;
7600 *) ac_val=$ac_cv_c_inline;;
7601 esac
7602 cat >>confdefs.h <<_ACEOF
7603 #ifndef __cplusplus
7604 #define inline $ac_val
7605 #endif
7606 _ACEOF
7608 esac
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7611 $as_echo_n "checking for working volatile... " >&6; }
7612 if test "${ac_cv_c_volatile+set}" = set; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7619 main ()
7622 volatile int x;
7623 int * volatile y = (int *) 0;
7624 return !x && !y;
7626 return 0;
7628 _ACEOF
7629 if ac_fn_c_try_compile "$LINENO"; then :
7630 ac_cv_c_volatile=yes
7631 else
7632 ac_cv_c_volatile=no
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7637 $as_echo "$ac_cv_c_volatile" >&6; }
7638 if test $ac_cv_c_volatile = no; then
7640 $as_echo "#define volatile /**/" >>confdefs.h
7645 ac_ext=cpp
7646 ac_cpp='$CXXCPP $CPPFLAGS'
7647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7653 # Check for zlib
7655 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 :
7658 # Check whether --with-zlib was given.
7659 if test "${with_zlib+set}" = set; then :
7660 withval=$with_zlib;
7664 case "${with_zlib:-yes}" in
7666 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7668 yes | sys)
7671 zlib_prefix="$with_zlib"
7672 esac
7674 mule_backup_CPPFLAGS="$CPPFLAGS"
7675 mule_backup_LDFLAGS="$LDFLAGS"
7676 mule_backup_LIBS="$LIBS"
7677 if test -n "$zlib_prefix"; then :
7679 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
7680 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
7681 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
7682 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
7684 else
7686 ZLIB_CPPFLAGS=
7687 ZLIB_LDFLAGS=
7690 ZLIB_LIBS="-lz"
7691 LIBS="$ZLIB_LIBS $LIBS"
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
7694 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
7695 if test "$cross_compiling" = yes; then :
7697 result=no
7698 z_version=
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7703 #include <zlib.h>
7704 #include <stdio.h>
7707 main ()
7710 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
7711 zlibVersion();
7714 return 0;
7717 _ACEOF
7718 if ac_fn_cxx_try_link "$LINENO"; then :
7720 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
7721 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
7722 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
7723 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
7724 if test "$cross_zver_max" -gt "1"; then
7725 result=yes
7726 elif test "$cross_zver_max" -eq "1"; then
7728 if test "$cross_zver_mid" -gt "1"; then
7729 result=yes
7730 elif test "$cross_zver_mid" -eq "1"; then
7731 if test "$cross_zver_min" -ge "4"; then
7732 result=yes
7740 if test ${result:-no} = yes; then :
7741 z_version=" (version $ZLIB_VERSION)"
7745 rm -f core conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7748 $as_echo "$result$z_version" >&6; }
7750 else
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7755 #include <zlib.h>
7756 #include <stdio.h>
7759 main ()
7761 const char *zver = zlibVersion();
7762 FILE *f=fopen("conftestval", "w");
7763 if (!f) return 1;
7764 fprintf(f, "%s",
7765 zver[0] > '1' ||
7766 (zver[0] == '1' &&
7767 (zver[2] > '1' ||
7768 (zver[2] == '1' &&
7769 zver[4] >= '4'))) ? "yes" : "no");
7770 fclose(f);
7771 f=fopen("conftestver", "w");
7772 if (f) {
7773 fprintf(f, "%s", ZLIB_VERSION);
7774 fclose(f);
7778 return 0;
7781 _ACEOF
7782 if ac_fn_cxx_try_run "$LINENO"; then :
7784 if test -f conftestval; then :
7785 result=`cat conftestval`
7786 else
7787 result=no
7789 if test ${result:-no} = yes; then :
7791 if test -f conftestver; then :
7793 ZLIB_VERSION=`cat conftestver`
7794 z_version=" (version $ZLIB_VERSION)"
7796 else
7797 z_version=
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7802 $as_echo "$result$z_version" >&6; }
7804 else
7806 result=no
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7808 $as_echo "$result" >&6; }
7811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7812 conftest.$ac_objext conftest.beam conftest.$ac_ext
7816 CPPFLAGS="$mule_backup_CPPFLAGS"
7817 LDFLAGS="$mule_backup_LDFLAGS"
7818 LIBS="$mule_backup_LIBS"
7820 if test ${result:-no} = no; then :
7822 ZLIB_CPPFLAGS=
7823 ZLIB_LDFLAGS=
7824 ZLIB_LIBS=
7825 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7833 # Check for libpng
7834 if test ${enable_webserver:-no} = yes; then :
7837 # Check whether --with-libpng-prefix was given.
7838 if test "${with_libpng_prefix+set}" = set; then :
7839 withval=$with_libpng_prefix;
7843 # Check whether --with-libpng-config was given.
7844 if test "${with_libpng_config+set}" = set; then :
7845 withval=$with_libpng_config;
7849 LIBPNG_VERSION=
7851 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7852 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7853 LIBPNG_CONFIG_NAME=libpng-config
7855 if test -n "$with_libpng_config"; then :
7856 LIBPNG_CONFIG_NAME="$with_libpng_config"
7859 # deal with optional prefix
7860 if test -n "$with_libpng_prefix"; then :
7861 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7864 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7865 if test -x "$LIBPNG_CONFIG_NAME"; then :
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7868 $as_echo_n "checking for libpng-config... " >&6; }
7869 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7871 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7873 else
7874 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7875 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 case $LIBPNG_CONFIG_PATH in
7882 [\\/]* | ?:[\\/]*)
7883 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7888 for as_dir in $as_dummy
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7894 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 break 2
7898 done
7899 done
7900 IFS=$as_save_IFS
7902 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7904 esac
7906 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7907 if test -n "$LIBPNG_CONFIG_PATH"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7909 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7918 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7921 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7923 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7925 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7926 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7927 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7928 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7930 libpng_ver_ok=
7931 if test $libpng_config_major_version -gt 1; then
7932 libpng_ver_ok=yes
7933 elif test $libpng_config_major_version -eq 1; then
7935 if test $libpng_config_minor_version -gt 2; then
7936 libpng_ver_ok=yes
7937 elif test $libpng_config_minor_version -eq 2; then
7938 if test $libpng_config_micro_version -ge 0; then
7939 libpng_ver_ok=yes
7948 if test -z "$libpng_ver_ok"; then :
7950 if test -z "$LIBPNG_VERSION"; then :
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7953 else
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7956 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7957 LIBPNG_VERSION=
7961 else
7963 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7964 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
7965 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7967 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7970 $as_echo_n "checking if libpng is usable... " >&6; }
7972 SAVED_CFLAGS=$CFLAGS
7973 SAVED_LDFLAGS=$LDFLAGS
7974 SAVED_LIBS=$LIBS
7976 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
7977 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
7978 LIBS="$LIBS $LIBPNG_LIBS"
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7984 #include <png.h>
7985 #include <stdio.h>
7988 main ()
7991 png_uint_32 libpng_vn = png_access_version_number();
7992 printf("\nlibpng version %i\n\n", libpng_vn);
7995 return 0;
7998 _ACEOF
7999 if ac_fn_cxx_try_link "$LINENO"; then :
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8002 $as_echo "yes" >&6; }
8004 else
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8007 $as_echo "no (failed to compile and link test program)" >&6; }
8008 LIBPNG_LIBS=
8009 LIBPNG_LDFLAGS=
8010 LIBPNG_CFLAGS=
8011 LIBPNG_VERSION=
8014 rm -f core conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8017 CFLAGS="$SAVED_CFLAGS"
8018 LDFLAGS="$SAVED_LDFLAGS"
8019 LIBS="$SAVED_LIBS"
8025 if test -n "$LIBPNG_VERSION"; then :
8026 AMULEWEB_DEFS="-DWITH_LIBPNG"
8027 else
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8030 libpng >= 1.2.0 not found.
8031 amuleweb will be compiled but file download progress bar images will
8032 NOT be generated." >&5
8033 $as_echo "$as_me: WARNING:
8034 libpng >= 1.2.0 not found.
8035 amuleweb will be compiled but file download progress bar images will
8036 NOT be generated." >&2;}
8037 _mule_warning_1=yes
8038 _mule_has_warnings=yes
8049 # Check for perl File::Copy
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
8051 $as_echo_n "checking for File::Copy... " >&6; }
8052 if perl -e "require File::Copy" 2>/dev/null; then :
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8054 $as_echo "ok" >&6; }
8055 else
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8057 File::Copy perl module is required by the mldonkey_importer script.
8058 If you want to use this script please install File::Copy from CPAN." >&5
8059 $as_echo "$as_me: WARNING:
8060 File::Copy perl module is required by the mldonkey_importer script.
8061 If you want to use this script please install File::Copy from CPAN." >&2;}
8062 _mule_warning_2=yes
8063 _mule_has_warnings=yes
8068 # Check for GeoIP (required for IP2Country capability)
8070 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8072 # Check whether --enable-geoip was given.
8073 if test "${enable_geoip+set}" = set; then :
8074 enableval=$enable_geoip;
8079 if test ${enable_geoip:-no} = yes; then :
8082 # Check whether --with-geoip-headers was given.
8083 if test "${with_geoip_headers+set}" = set; then :
8084 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8088 # Check whether --with-geoip-lib was given.
8089 if test "${with_geoip_lib+set}" = set; then :
8090 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8094 mule_backup_CPPFLAGS="$CPPFLAGS"
8095 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8096 mule_backup_LDFLAGS="$LDFLAGS"
8097 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8099 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8100 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
8102 if test x$SYS = xwin32; then :
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8105 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8106 # Actually, we might not need any if GeoIP is linked as a .dll
8107 # - but that's even harder to check for
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8112 #include <GeoIP.h>
8113 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8114 I do know it's not the best approach, but at least works with MinGW stock headers.
8115 (tested with w32api-3.12)
8116 #endif
8119 main ()
8123 return 0;
8126 _ACEOF
8127 if ac_fn_cxx_try_compile "$LINENO"; then :
8129 GEOIP_WINSOCK_LIB="-lwsock32"
8131 else
8133 GEOIP_WINSOCK_LIB="-lws2_32"
8136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8138 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8142 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8143 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 ac_check_lib_save_LIBS=$LIBS
8147 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8151 /* Override any GCC internal prototype to avoid an error.
8152 Use char because int might match the return type of a GCC
8153 builtin and then its argument prototype would still apply. */
8154 #ifdef __cplusplus
8155 extern "C"
8156 #endif
8157 char GeoIP_open ();
8159 main ()
8161 return GeoIP_open ();
8163 return 0;
8165 _ACEOF
8166 if ac_fn_cxx_try_link "$LINENO"; then :
8167 ac_cv_lib_GeoIP_GeoIP_open=yes
8168 else
8169 ac_cv_lib_GeoIP_GeoIP_open=no
8171 rm -f core conftest.err conftest.$ac_objext \
8172 conftest$ac_exeext conftest.$ac_ext
8173 LIBS=$ac_check_lib_save_LIBS
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8176 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8177 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
8180 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8182 GEOIP_LIBS="-lGeoIP"
8183 if test x$SYS = xwin32; then :
8184 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8186 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8188 # Check whether --with-geoip-static was given.
8189 if test "${with_geoip_static+set}" = set; then :
8190 withval=$with_geoip_static;
8191 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8193 mule_backup_LIBS="$LIBS"
8194 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8199 #include <GeoIP.h>
8202 main ()
8205 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8208 return 0;
8211 _ACEOF
8212 if ac_fn_cxx_try_link "$LINENO"; then :
8214 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8216 else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8219 Cannot link GeoIP statically, because your linker ($LD) does not
8220 support it." >&5
8221 $as_echo "$as_me: WARNING:
8222 Cannot link GeoIP statically, because your linker ($LD) does not
8223 support it." >&2;}
8224 _mule_warning_3=yes
8225 _mule_has_warnings=yes
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231 LIBS="$mule_backup_LIBS"
8238 else
8240 enable_geoip=disabled
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8242 GeoIP support has been disabled because the GeoIP libraries were not
8243 found" >&5
8244 $as_echo "$as_me: WARNING:
8245 GeoIP support has been disabled because the GeoIP libraries were not
8246 found" >&2;}
8247 _mule_warning_4=yes
8248 _mule_has_warnings=yes
8254 else
8256 enable_geoip=disabled
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8258 GeoIP support has been disabled because the GeoIP header files were
8259 not found" >&5
8260 $as_echo "$as_me: WARNING:
8261 GeoIP support has been disabled because the GeoIP header files were
8262 not found" >&2;}
8263 _mule_warning_5=yes
8264 _mule_has_warnings=yes
8271 CPPFLAGS="$mule_backup_CPPFLAGS"
8272 LDFLAGS="$mule_backup_LDFLAGS"
8279 # Check for wx
8280 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 :
8283 # Check whether --with-wxdir was given.
8284 if test "${with_wxdir+set}" = set; then :
8285 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8286 wx_config_args="--inplace"
8290 # Check whether --with-wx-config was given.
8291 if test "${with_wx_config+set}" = set; then :
8292 withval=$with_wx_config; wx_config_name="$withval"
8296 # Check whether --with-wx-prefix was given.
8297 if test "${with_wx_prefix+set}" = set; then :
8298 withval=$with_wx_prefix; wx_config_prefix="$withval"
8299 else
8300 wx_config_prefix=""
8304 # Check whether --with-wx-exec-prefix was given.
8305 if test "${with_wx_exec_prefix+set}" = set; then :
8306 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8307 else
8308 wx_config_exec_prefix=""
8323 # Check whether --with-toolkit was given.
8324 if test "${with_toolkit+set}" = set; then :
8325 withval=$with_toolkit;
8326 else
8327 withval="auto"
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8332 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8333 if test "$withval" = "auto" ; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8335 $as_echo "will be automatically detected" >&6; }
8336 TOOLKIT="auto"
8337 else
8338 TOOLKIT="$withval"
8340 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
8341 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8342 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
8343 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
8344 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
8345 "$TOOLKIT" != "osx_cocoa"; then
8346 as_fn_error "
8347 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
8348 " "$LINENO" 5
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8352 $as_echo "$TOOLKIT" >&6; }
8359 # Check whether --with-wxshared was given.
8360 if test "${with_wxshared+set}" = set; then :
8361 withval=$with_wxshared;
8362 else
8363 withval="auto"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8368 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8369 if test "$withval" = "yes" ; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8371 $as_echo "yes" >&6; }
8372 WX_SHARED=1
8374 elif test "1" = "1" -a "$withval" = "no" ; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8377 WX_SHARED=0
8378 elif test "$withval" = "auto" ; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8380 $as_echo "will be automatically detected" >&6; }
8381 WX_SHARED="auto"
8382 else
8383 as_fn_error "
8384 Unrecognized option value (allowed values: yes, auto)
8385 " "$LINENO" 5
8392 # Check whether --with-wxdebug was given.
8393 if test "${with_wxdebug+set}" = set; then :
8394 withval=$with_wxdebug;
8395 else
8396 withval="auto"
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8401 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8402 if test "$withval" = "yes" ; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8404 $as_echo "yes" >&6; }
8405 WX_DEBUG=1
8407 elif test "1" = "1" -a "$withval" = "no" ; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 WX_DEBUG=0
8411 elif test "$withval" = "auto" ; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8413 $as_echo "will be automatically detected" >&6; }
8414 WX_DEBUG="auto"
8415 else
8416 as_fn_error "
8417 Unrecognized option value (allowed values: yes, auto)
8418 " "$LINENO" 5
8425 # Check whether --with-wxversion was given.
8426 if test "${with_wxversion+set}" = set; then :
8427 withval=$with_wxversion;
8428 else
8429 withval="auto"
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8434 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8435 if test "$withval" = "auto" ; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8437 $as_echo "will be automatically detected" >&6; }
8438 WX_VERSION="auto"
8439 else
8441 wx_requested_major_version=`echo $withval | \
8442 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8443 wx_requested_minor_version=`echo $withval | \
8444 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8446 if test "${#wx_requested_major_version}" != "1" -o \
8447 "${#wx_requested_minor_version}" != "1" ; then
8448 as_fn_error "
8449 Unrecognized option value (allowed values: auto, 2.8, 2.9)
8450 " "$LINENO" 5
8453 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
8455 $as_echo "$WX_VERSION" >&6; }
8459 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8460 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8461 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8462 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8463 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8464 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
8467 # Force using a static wxWidgets library if the executable is to be linked statically.
8468 if test ${enable_static:-no} = yes; then :
8469 WX_SHARED=0
8471 # Force using a unicode build of the library
8472 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8473 WX_UNICODE=1
8475 DEBUG=$WX_DEBUG
8477 if test "$WX_SHARED" = "1" ; then
8478 WXCONFIG_FLAGS="--static=no "
8479 elif test "$WX_SHARED" = "0" ; then
8480 WXCONFIG_FLAGS="--static=yes "
8483 if test "$WX_DEBUG" = "1" ; then
8484 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8485 elif test "$WX_DEBUG" = "0" ; then
8486 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8489 if test "$WX_UNICODE" = "1" ; then
8490 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8491 elif test "$WX_UNICODE" = "0" ; then
8492 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8495 if test "$TOOLKIT" != "auto" ; then
8496 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8499 if test "$WX_VERSION" != "auto" ; then
8500 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
8503 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8505 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8506 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8510 if test x${WX_CONFIG_NAME+set} != xset ; then
8511 WX_CONFIG_NAME=wx-config
8514 if test "x$wx_config_name" != x ; then
8515 WX_CONFIG_NAME="$wx_config_name"
8518 if test x$wx_config_exec_prefix != x ; then
8519 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8520 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8522 if test x$wx_config_prefix != x ; then
8523 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8524 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8526 if test "$cross_compiling" = "yes"; then
8527 wx_config_args="$wx_config_args --host=$host_alias"
8530 if test -x "$WX_CONFIG_NAME" ; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8532 $as_echo_n "checking for wx-config... " >&6; }
8533 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8535 $as_echo "$WX_CONFIG_PATH" >&6; }
8536 else
8537 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8538 set dummy $WX_CONFIG_NAME; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 case $WX_CONFIG_PATH in
8545 [\\/]* | ?:[\\/]*)
8546 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8551 for as_dir in $as_dummy
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8557 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8561 done
8562 done
8563 IFS=$as_save_IFS
8565 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8567 esac
8569 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8570 if test -n "$WX_CONFIG_PATH"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8572 $as_echo "$WX_CONFIG_PATH" >&6; }
8573 else
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8581 if test "$WX_CONFIG_PATH" != "no" ; then
8582 WX_VERSION_FULL=""
8584 min_wx_version=2.8.12
8585 if test -z "$WXCONFIG_FLAGS" ; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8587 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8588 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8590 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8593 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
8595 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8596 wx_config_major_version=`echo $WX_VERSION_FULL | \
8597 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8598 wx_config_minor_version=`echo $WX_VERSION_FULL | \
8599 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8600 wx_config_micro_version=`echo $WX_VERSION_FULL | \
8601 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8603 wx_requested_major_version=`echo $min_wx_version | \
8604 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8605 wx_requested_minor_version=`echo $min_wx_version | \
8606 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8607 wx_requested_micro_version=`echo $min_wx_version | \
8608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8611 wx_ver_ok=""
8612 if test "x$WX_VERSION_FULL" != x ; then
8613 if test $wx_config_major_version -gt $wx_requested_major_version; then
8614 wx_ver_ok=yes
8615 else
8616 if test $wx_config_major_version -eq $wx_requested_major_version; then
8617 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8618 wx_ver_ok=yes
8619 else
8620 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8621 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8622 wx_ver_ok=yes
8631 if test -n "$wx_ver_ok"; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
8634 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
8635 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
8637 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8639 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
8640 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
8641 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
8643 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8644 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8646 wxWin=1
8648 else
8650 if test "x$WX_VERSION_FULL" = x; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8653 else
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
8655 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
8658 WX_CFLAGS=""
8659 WX_CPPFLAGS=""
8660 WX_CXXFLAGS=""
8661 WX_LIBS=""
8662 WX_RESCOMP=""
8664 if test ! -z "$WXCONFIG_FLAGS"; then
8666 wx_error_message="
8667 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8668 build with the following settings:
8669 $WXCONFIG_FLAGS
8670 but such build is not available.
8672 To see the wxWidgets builds available on this system, please use
8673 'wx-config --list' command. To use the default build, returned by
8674 'wx-config --selected-config', use the options with their 'auto'
8675 default values."
8679 wx_error_message="
8680 The requested wxWidgets build couldn't be found.
8681 $wx_error_message
8683 If you still get this error, then check that 'wx-config' is
8684 in path, the directory where wxWidgets libraries are installed
8685 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8686 or equivalent variable and wxWidgets version is 2.8.12 or above."
8688 as_fn_error "$wx_error_message" "$LINENO" 5
8691 else
8693 WX_CFLAGS=""
8694 WX_CPPFLAGS=""
8695 WX_CXXFLAGS=""
8696 WX_LIBS=""
8697 WX_RESCOMP=""
8712 WX_VERSION_MAJOR="$wx_config_major_version"
8713 WX_VERSION_MINOR="$wx_config_minor_version"
8717 if test "$wxWin" != 1; then :
8718 as_fn_error "
8719 wxWidgets must be installed on your system but wx-config
8720 script couldn't be found. Please check that wx-config is
8721 in path or specified by --with-wx-config=path flag, the
8722 directory where wxWidgets libraries are installed (returned
8723 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8724 equivalent variable and wxWidgets version is 2.8.12 or above.
8725 " "$LINENO" 5
8728 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8729 as_fn_error "
8730 This version of wxWidgets is known to not work with aMule.
8731 Please upgrade to a newer version.
8732 " "$LINENO" 5
8736 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8738 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8740 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8741 echo "[dbg] Using wx-config --selected-config"
8742 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8746 if test $WX_SHARED = "1"; then
8747 STATIC=0
8748 elif test $WX_SHARED = "0"; then
8749 STATIC=1
8750 elif test $WX_SHARED = "auto"; then
8751 STATIC="auto"
8755 if test "$UNICODE" = "auto" ; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8758 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8760 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8762 if test "$WX_UNICODE" != "0"; then
8763 WX_UNICODE=1
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8765 $as_echo "yes" >&6; }
8767 else
8768 WX_UNICODE=0
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8773 else
8775 WX_UNICODE=$UNICODE
8779 if test "$DEBUG" = "auto" ; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8782 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8784 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8786 if test "$WX_DEBUG" != "0"; then
8787 WX_DEBUG=1
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8789 $as_echo "yes" >&6; }
8791 else
8792 WX_DEBUG=0
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8797 else
8799 WX_DEBUG=$DEBUG
8803 if test "$STATIC" = "auto" ; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8806 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8808 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8810 if test "$WX_STATIC" != "0"; then
8811 WX_STATIC=1
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8813 $as_echo "yes" >&6; }
8815 else
8816 WX_STATIC=0
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8821 else
8823 WX_STATIC=$STATIC
8827 if test "$WX_STATIC" != "0"; then
8828 WX_SHARED=0
8829 else
8830 WX_SHARED=1
8837 if test "$TOOLKIT" = "auto" ; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8840 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8842 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8843 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8844 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8845 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8846 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8847 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8848 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8849 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8850 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8851 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8852 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8854 WX_PORT="unknown"
8855 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8856 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8857 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8858 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8859 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8860 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8861 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8862 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8863 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8864 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8865 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8868 if test "$WX_PORT" = "unknown" ; then
8869 as_fn_error "
8870 Cannot detect the currently installed wxWidgets port !
8871 Please check your 'wx-config --cxxflags'...
8872 " "$LINENO" 5
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8876 $as_echo "$WX_PORT" >&6; }
8877 else
8879 if test -n "$TOOLKIT" ; then
8880 WX_PORT=$TOOLKIT
8881 else
8882 WX_PORT=$PORT
8888 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8889 echo "[dbg] Values of all WX_* options after final detection:"
8890 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8891 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8892 echo "[dbg] WX_SHARED: $WX_SHARED"
8893 echo "[dbg] WX_VERSION: $WX_VERSION"
8894 echo "[dbg] WX_PORT: $WX_PORT"
8897 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8898 as_fn_error "
8899 Cannot build shared library against a static build of wxWidgets !
8900 This error happens because the wxWidgets build which was selected
8901 has been detected as static while you asked to build $PACKAGE_NAME
8902 as shared library and this is not possible.
8903 Use the '--disable-shared' option to build $PACKAGE_NAME
8904 as static library or '--with-wxshared' to use wxWidgets as shared library.
8905 " "$LINENO" 5
8908 if test "$DEBUG" = "auto"; then
8909 DEBUG=$WX_DEBUG
8911 if test "$DEBUG" = "1"; then
8912 BUILD="debug"
8913 elif test "$DEBUG" = ""; then
8914 BUILD="release"
8917 if test "$UNICODE" = "auto"; then
8918 UNICODE=$WX_UNICODE
8920 if test "$SHARED" = "auto"; then
8921 SHARED=$WX_SHARED
8923 if test "$TOOLKIT" = "auto"; then
8924 TOOLKIT=$WX_PORT
8928 # We also need wxBase
8929 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8930 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8931 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8933 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8937 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8938 if test "${WX_PORT}" = base; then :
8939 as_fn_error "
8940 The selected components need a wxWidgets library with GUI,
8941 but your installation is base-only. Please install a GUI
8942 enabled version of wxWidgets and then retry.
8943 " "$LINENO" 5
8949 if test ${SYS:-unknown} = win32; then :
8950 if test -n "$ac_tool_prefix"; then
8951 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8952 set dummy ${ac_tool_prefix}windres; ac_word=$2
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954 $as_echo_n "checking for $ac_word... " >&6; }
8955 if test "${ac_cv_prog_RC+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 if test -n "$RC"; then
8959 ac_cv_prog_RC="$RC" # Let the user override the test.
8960 else
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968 ac_cv_prog_RC="${ac_tool_prefix}windres"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8972 done
8973 done
8974 IFS=$as_save_IFS
8978 RC=$ac_cv_prog_RC
8979 if test -n "$RC"; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8981 $as_echo "$RC" >&6; }
8982 else
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8989 if test -z "$ac_cv_prog_RC"; then
8990 ac_ct_RC=$RC
8991 # Extract the first word of "windres", so it can be a program name with args.
8992 set dummy windres; ac_word=$2
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 $as_echo_n "checking for $ac_word... " >&6; }
8995 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 if test -n "$ac_ct_RC"; then
8999 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
9000 else
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 for as_dir in $PATH
9004 IFS=$as_save_IFS
9005 test -z "$as_dir" && as_dir=.
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008 ac_cv_prog_ac_ct_RC="windres"
9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010 break 2
9012 done
9013 done
9014 IFS=$as_save_IFS
9018 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9019 if test -n "$ac_ct_RC"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9021 $as_echo "$ac_ct_RC" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9027 if test "x$ac_ct_RC" = x; then
9028 RC=":"
9029 else
9030 case $cross_compiling:$ac_tool_warned in
9031 yes:)
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9034 ac_tool_warned=yes ;;
9035 esac
9036 RC=$ac_ct_RC
9038 else
9039 RC="$ac_cv_prog_RC"
9045 # Check for libupnp
9046 # Check whether --enable-upnp was given.
9047 if test "${enable_upnp+set}" = set; then :
9048 enableval=$enable_upnp;
9052 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9054 else
9055 enable_upnp=no
9059 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9060 if test -n "$ac_tool_prefix"; then
9061 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9062 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 case $PKG_CONFIG in
9069 [\\/]* | ?:[\\/]*)
9070 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074 for as_dir in $PATH
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9080 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9084 done
9085 done
9086 IFS=$as_save_IFS
9089 esac
9091 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9092 if test -n "$PKG_CONFIG"; then
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9094 $as_echo "$PKG_CONFIG" >&6; }
9095 else
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097 $as_echo "no" >&6; }
9102 if test -z "$ac_cv_path_PKG_CONFIG"; then
9103 ac_pt_PKG_CONFIG=$PKG_CONFIG
9104 # Extract the first word of "pkg-config", so it can be a program name with args.
9105 set dummy pkg-config; ac_word=$2
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 $as_echo_n "checking for $ac_word... " >&6; }
9108 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 case $ac_pt_PKG_CONFIG in
9112 [\\/]* | ?:[\\/]*)
9113 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9127 done
9128 done
9129 IFS=$as_save_IFS
9132 esac
9134 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9135 if test -n "$ac_pt_PKG_CONFIG"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9137 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9143 if test "x$ac_pt_PKG_CONFIG" = x; then
9144 PKG_CONFIG=""
9145 else
9146 case $cross_compiling:$ac_tool_warned in
9147 yes:)
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9150 ac_tool_warned=yes ;;
9151 esac
9152 PKG_CONFIG=$ac_pt_PKG_CONFIG
9154 else
9155 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9159 if test -n "$PKG_CONFIG"; then
9160 _pkg_min_version=0.9.0
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9162 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9163 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9165 $as_echo "yes" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9169 PKG_CONFIG=""
9173 if test ${enable_upnp:-yes} = yes; then :
9177 # Check whether --with-libupnp-prefix was given.
9178 if test "${with_libupnp_prefix+set}" = set; then :
9179 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9183 if test $cross_compiling = no; then :
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9186 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9187 if test -n "$PKG_CONFIG"; then :
9189 if $PKG_CONFIG libupnp --exists; then :
9191 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
9192 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9194 result=yes
9195 resultstr=" (version $LIBUPNP_VERSION)"
9196 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
9197 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
9198 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
9199 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
9200 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
9202 else
9204 result=no
9205 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9209 else
9211 result=no
9212 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9216 else
9218 result=no
9219 resultstr=" (pkg-config not found)"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9223 $as_echo "$result$resultstr" >&6; }
9224 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9226 else
9228 result=no
9229 libupnp_error="cross compiling"
9233 if test ${result:-no} = yes; then :
9234 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9235 else
9236 enable_upnp=disabled
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9238 UPnP code has been disabled because ${libupnp_error}." >&5
9239 $as_echo "$as_me: WARNING:
9240 UPnP code has been disabled because ${libupnp_error}." >&2;}
9241 _mule_warning_6=yes
9242 _mule_has_warnings=yes
9251 # Check for Crypto++ (requires C++)
9252 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9255 # Check whether --with-crypto-prefix was given.
9256 if test "${with_crypto_prefix+set}" = set; then :
9257 withval=$with_crypto_prefix;
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
9262 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
9264 cryptopp_found=false
9266 if test -n "$with_crypto_prefix"; then :
9268 CRYPTOPP_PREFIX="$with_crypto_prefix"
9269 # Find the Cryptopp header in the user-provided location
9270 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then
9272 cryptopp_found=true
9273 CRYPTOPP_LIB_NAME="cryptopp"
9274 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9275 CRYPTOPP_CPPFLAGS=
9276 CRYPTOPP_LDFLAGS=
9277 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9279 else
9281 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9282 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then :
9284 cryptopp_found=true
9285 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9286 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include"
9287 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib"
9288 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9289 break
9292 done
9297 else
9299 # Check whether the compiler can find it
9300 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9304 #include <$CRYPTOPP_LIB_NAME/cryptlib.h>
9307 main ()
9311 return 0;
9314 _ACEOF
9315 if ac_fn_cxx_try_compile "$LINENO"; then :
9317 cryptopp_found=true
9318 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9319 CRYPTOPP_CPPFLAGS=
9320 CRYPTOPP_LDFLAGS=
9321 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9322 break
9325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326 done
9330 if $cryptopp_found; then :
9332 # Find out the crypto++ version and check against the minimum required
9333 # Ask the compiler where are the crypto++ files
9334 mule_backup_CPPFLAGS="$CPPFLAGS"
9335 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS"
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9339 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h>
9341 _ACEOF
9342 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'`
9343 rm -f conftest*
9344 CPPFLAGS="$mule_backup_CPPFLAGS"
9345 # Set a prefix suitable for --with-crypto-prefix
9346 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}"
9347 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}"
9348 # Now check the version
9349 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9350 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9351 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9353 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9355 result=yes
9356 resultstr=" (version $CRYPTOPP_VERSION_STRING)"
9358 cat >>confdefs.h <<_ACEOF
9359 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9360 _ACEOF
9363 else
9365 result=no
9366 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9367 CRYPTOPP_CPPFLAGS=
9368 CRYPTOPP_LDFLAGS=
9369 CRYPTOPP_LIBS=
9373 else
9374 result="no"; resultstr=
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9378 $as_echo "$result$resultstr" >&6; }
9380 if test ${result:-no} = yes; then :
9382 # Check for CryptoPP >= 5.5
9383 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
9384 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
9387 else
9389 as_fn_error "
9390 Could not find crypto++ installation or sources.
9391 Please try again with --with-crypto-prefix=/my_crypto_prefix
9392 (replace /my_crypto_prefix with a valid path to your crypto++
9393 installation or source directory)." "$LINENO" 5
9402 # Check whether --enable-debug was given.
9403 if test "${enable_debug+set}" = set; then :
9404 enableval=$enable_debug;
9408 # Check whether --enable-profile was given.
9409 if test "${enable_profile+set}" = set; then :
9410 enableval=$enable_profile;
9414 # Check whether --enable-optimize was given.
9415 if test "${enable_optimize+set}" = set; then :
9416 enableval=$enable_optimize;
9421 if test ${enable_debug:-yes} = yes; then :
9423 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9425 MULECFLAGS="$MULECFLAGS -g"
9426 MULECXXFLAGS="$MULECXXFLAGS -g"
9428 if test ${GCC:-no} = yes; then :
9430 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9431 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9434 if test ${SYS:-unknown} = win32; then :
9435 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9438 else
9440 if test ${GCC:-no} = yes; then :
9442 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9443 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9449 if test ${enable_profile:-no} = yes; then :
9452 MULECFLAGS="$MULECFLAGS -pg"
9453 MULECXXFLAGS="$MULECXXFLAGS -pg"
9455 MULELDFLAGS="$MULELDFLAGS -pg"
9459 if test ${enable_optimize:-no} = yes; then :
9461 MULECFLAGS="$MULECFLAGS -O2"
9462 MULECXXFLAGS="$MULECXXFLAGS -O2"
9466 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9470 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 :
9475 if test ${GCC:-no} = yes; then :
9477 mule_backup_CXXFLAGS="$CXXFLAGS"
9478 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9481 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9487 main ()
9490 int a;
9491 short *b = (short*)&a;
9492 short c = *b;
9494 return c;
9497 return 0;
9500 _ACEOF
9501 if ac_fn_cxx_try_compile "$LINENO"; then :
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 $as_echo "no" >&6; }
9506 else
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9509 $as_echo "yes" >&6; }
9510 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9516 CXXFLAGS="$mule_backup_CXXFLAGS"
9520 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9522 mule_backup_CPPFLAGS="$CPPFLAGS"
9523 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9526 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9531 #include <wx/wx.h>
9532 #include <wx/filefn.h>
9533 #ifndef wxHAS_LARGE_FILES
9534 #error No LargeFile support!
9535 #endif
9538 _ACEOF
9539 if ac_fn_cxx_try_cpp "$LINENO"; then :
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9542 $as_echo "yes" >&6; }
9544 else
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9548 as_fn_error "
9549 Support for large files in wxWidgets is required by aMule.
9550 To continue you must recompile wxWidgets with support for
9551 large files enabled." "$LINENO" 5
9554 rm -f conftest.err conftest.$ac_ext
9556 CPPFLAGS="$mule_backup_CPPFLAGS"
9560 # Check if the compiler is broken, wrt. exceptions.
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9563 $as_echo_n "checking for exception-handling... " >&6; }
9564 if test "$cross_compiling" = yes; then :
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9567 $as_echo "undeterminable" >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9569 Cross-compilation detected, so exception handling cannot be tested.
9570 Note that broken exception handling in your compiler may lead to
9571 unexpected crashes." >&5
9572 $as_echo "$as_me: WARNING:
9573 Cross-compilation detected, so exception handling cannot be tested.
9574 Note that broken exception handling in your compiler may lead to
9575 unexpected crashes." >&2;}
9576 _mule_warning_7=yes
9577 _mule_has_warnings=yes
9580 else
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9586 main ()
9589 try {
9590 throw 1;
9591 } catch (int) {
9592 return 0;
9594 return 1;
9597 return 0;
9600 _ACEOF
9601 if ac_fn_cxx_try_run "$LINENO"; then :
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9604 $as_echo "yes" >&6; }
9606 else
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609 $as_echo "no" >&6; }
9610 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
9613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9614 conftest.$ac_objext conftest.beam conftest.$ac_ext
9620 for ac_header in typeinfo
9621 do :
9622 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9623 if test "x$ac_cv_header_typeinfo" = x""yes; then :
9624 cat >>confdefs.h <<_ACEOF
9625 #define HAVE_TYPEINFO 1
9626 _ACEOF
9630 done
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9633 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9638 #ifdef HAVE_TYPEINFO
9639 # include <typeinfo>
9640 #endif
9641 #include <cxxabi.h>
9644 main ()
9647 int status;
9648 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9649 std::type_info *ti = abi::__cxa_current_exception_type();
9652 return 0;
9655 _ACEOF
9656 if ac_fn_cxx_try_link "$LINENO"; then :
9659 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9662 $as_echo "yes" >&6; }
9664 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9670 rm -f core conftest.err conftest.$ac_objext \
9671 conftest$ac_exeext conftest.$ac_ext
9674 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 :
9677 # Check whether --with-boost was given.
9678 if test "${with_boost+set}" = set; then :
9679 withval=$with_boost;
9680 else
9681 with_boost=no
9685 if test ${with_boost:-no} != no; then :
9687 echo "$as_me: this is boost.m4 serial 25" >&5
9688 boost_save_IFS=$IFS
9689 boost_version_req=1.47
9690 IFS=.
9691 set x $boost_version_req 0 0 0
9692 IFS=$boost_save_IFS
9693 shift
9694 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9695 boost_version_req_string=$1.$2.$3
9696 # If BOOST_ROOT is set and the user has not provided a value to
9697 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9698 if test x"$BOOST_ROOT" != x; then
9699 if test x"$with_boost" = x; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9701 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9702 with_boost=$BOOST_ROOT
9703 else
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9705 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9708 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9709 boost_save_CPPFLAGS=$CPPFLAGS
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9711 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9712 if test "${boost_cv_inc_path+set}" = set; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 boost_cv_inc_path=no
9716 ac_ext=cpp
9717 ac_cpp='$CXXCPP $CPPFLAGS'
9718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 #include <boost/version.hpp>
9724 #if !defined BOOST_VERSION
9725 # error BOOST_VERSION is not defined
9726 #elif BOOST_VERSION < $boost_version_req
9727 # error Boost headers version < $boost_version_req
9728 #endif
9731 main ()
9735 return 0;
9737 _ACEOF
9738 # If the user provided a value to --with-boost, use it and only it.
9739 case $with_boost in #(
9740 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9741 /usr/include C:/Boost/include;; #(
9742 *) set x "$with_boost/include" "$with_boost";;
9743 esac
9744 shift
9745 for boost_dir
9747 # Without --layout=system, Boost (or at least some versions) installs
9748 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9749 # find headers in such directories.
9751 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9752 # order followed by ${boost_dir}. The final '.' is a sentinel for
9753 # searching $boost_dir" itself. Entries are whitespace separated.
9755 # I didn't indent this loop on purpose (to avoid over-indented code)
9756 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
9757 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
9758 && echo .`
9759 for boost_inc in $boost_layout_system_search_list
9761 if test x"$boost_inc" != x.; then
9762 boost_inc="$boost_dir/$boost_inc"
9763 else
9764 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9766 if test x"$boost_inc" != x; then
9767 # We are going to check whether the version of Boost installed
9768 # in $boost_inc is usable by running a compilation that
9769 # #includes it. But if we pass a -I/some/path in which Boost
9770 # is not installed, the compiler will just skip this -I and
9771 # use other locations (either from CPPFLAGS, or from its list
9772 # of system include directories). As a result we would use
9773 # header installed on the machine instead of the /some/path
9774 # specified by the user. So in that precise case (trying
9775 # $boost_inc), make sure the version.hpp exists.
9777 # Use test -e as there can be symlinks.
9778 test -e "$boost_inc/boost/version.hpp" || continue
9779 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9781 if ac_fn_cxx_try_compile "$LINENO"; then :
9782 boost_cv_inc_path=yes
9783 else
9784 boost_cv_version=no
9786 rm -f core conftest.err conftest.$ac_objext
9787 if test x"$boost_cv_inc_path" = xyes; then
9788 if test x"$boost_inc" != x; then
9789 boost_cv_inc_path=$boost_inc
9791 break 2
9793 done
9794 done
9795 ac_ext=cpp
9796 ac_cpp='$CXXCPP $CPPFLAGS'
9797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9803 $as_echo "$boost_cv_inc_path" >&6; }
9804 case $boost_cv_inc_path in #(
9806 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9808 $as_echo "$as_me: $boost_errmsg" >&6;}
9809 with_boost=disabled
9810 ;;#(
9811 yes)
9812 BOOST_CPPFLAGS=
9813 ;;#(
9815 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9817 esac
9818 if test x"$boost_cv_inc_path" != xno; then
9820 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9823 $as_echo_n "checking for Boost's header version... " >&6; }
9824 if test "${boost_cv_lib_version+set}" = set; then :
9825 $as_echo_n "(cached) " >&6
9826 else
9827 ac_ext=cpp
9828 ac_cpp='$CXXCPP $CPPFLAGS'
9829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 #include <boost/version.hpp>
9835 boost-lib-version = BOOST_LIB_VERSION
9836 _ACEOF
9837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9838 grep -v '#' |
9839 tr -d '\r' |
9840 tr -s '\n' ' ' |
9841 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
9842 boost_cv_lib_version=`cat conftest.i`
9844 rm -rf conftest*
9845 ac_ext=cpp
9846 ac_cpp='$CXXCPP $CPPFLAGS'
9847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9853 $as_echo "$boost_cv_lib_version" >&6; }
9854 # e.g. "134" for 1_34_1 or "135" for 1_35
9855 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
9856 case $boost_major_version in #(
9857 '' | *[!0-9]*)
9858 as_fn_error "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
9860 esac
9862 CPPFLAGS=$boost_save_CPPFLAGS
9864 if test ${with_boost:-no} != disabled; then :
9866 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9867 for cc_temp in $compiler""; do
9868 case $cc_temp in
9869 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9870 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9871 \-*) ;;
9872 *) break;;
9873 esac
9874 done
9875 cc_basename=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9876 # All known linkers require a `.a' archive for static linking (except MSVC,
9877 # which needs '.lib').
9878 libext=a
9879 case $cc_basename in
9880 cl*) libext=lib ;;
9881 esac
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9884 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9885 if test "${boost_cv_lib_tag+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 boost_cv_lib_tag=unknown
9889 if test x$boost_cv_inc_path != xno; then
9890 ac_ext=cpp
9891 ac_cpp='$CXXCPP $CPPFLAGS'
9892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9895 # The following tests are mostly inspired by boost/config/auto_link.hpp
9896 # The list is sorted to most recent/common to oldest compiler (in order
9897 # to increase the likelihood of finding the right compiler with the
9898 # least number of compilation attempt).
9899 # Beware that some tests are sensible to the order (for instance, we must
9900 # look for MinGW before looking for GCC3).
9901 # I used one compilation test per compiler with a #error to recognize
9902 # each compiler so that it works even when cross-compiling (let me know
9903 # if you know a better approach).
9904 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
9905 # como, edg, kcc, bck, mp, sw, tru, xlc
9906 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
9907 # the same defines as GCC's).
9908 for i in \
9909 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
9910 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9911 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
9912 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
9913 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
9914 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9915 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
9916 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
9917 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
9918 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9919 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
9920 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
9921 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
9922 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9923 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
9924 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
9925 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
9926 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9927 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
9928 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
9929 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
9930 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9931 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
9932 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
9933 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
9934 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9935 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
9936 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
9937 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
9938 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9939 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
9940 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
9941 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
9942 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9943 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
9944 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
9945 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
9946 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9947 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
9948 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
9949 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
9950 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9951 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
9952 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
9953 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
9954 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9955 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
9956 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
9957 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
9958 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9959 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
9960 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
9961 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
9962 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9963 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
9964 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
9965 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
9966 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9967 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
9968 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
9969 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
9970 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9971 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
9972 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
9973 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
9974 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
9975 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
9976 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
9977 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
9978 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
9979 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
9980 "defined __BORLANDC__ @ bcb" \
9981 "defined __ICC && (defined __unix || defined ) @ il" \
9982 "defined __ICL @ iw" \
9983 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
9984 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
9985 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
9986 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
9987 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
9988 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
9990 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
9991 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9995 #if $boost_tag_test
9996 /* OK */
9997 #else
9998 # error $boost_tag_test
9999 #endif
10002 main ()
10006 return 0;
10008 _ACEOF
10009 if ac_fn_cxx_try_compile "$LINENO"; then :
10010 boost_cv_lib_tag=$boost_tag; break
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 done
10014 ac_ext=cpp
10015 ac_cpp='$CXXCPP $CPPFLAGS'
10016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10019 case $boost_cv_lib_tag in #(
10020 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10021 # to "gcc41" for instance.
10022 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10023 gcc*)
10024 boost_tag_x=
10025 case $host_os in #(
10026 darwin*)
10027 if test $boost_major_version -ge 136; then
10028 # The `x' added in r46793 of Boost.
10029 boost_tag_x=x
10030 fi;;
10031 esac
10032 # We can specify multiple tags in this variable because it's used by
10033 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10034 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10035 ;; #(
10036 unknown)
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10038 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10039 boost_cv_lib_tag=
10041 esac
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10045 $as_echo "$boost_cv_lib_tag" >&6; }
10046 # Check whether --enable-static-boost was given.
10047 if test "${enable_static_boost+set}" = set; then :
10048 enableval=$enable_static_boost; enable_static_boost=yes
10049 else
10050 enable_static_boost=no
10053 # Check whether we do better use `mt' even though we weren't ask to.
10054 ac_ext=cpp
10055 ac_cpp='$CXXCPP $CPPFLAGS'
10056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10062 #if defined _REENTRANT || defined _MT || defined __MT__
10063 /* use -mt */
10064 #else
10065 # error MT not needed
10066 #endif
10069 main ()
10073 return 0;
10075 _ACEOF
10076 if ac_fn_cxx_try_compile "$LINENO"; then :
10077 boost_guess_use_mt=:
10078 else
10079 boost_guess_use_mt=false
10081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10082 ac_ext=cpp
10083 ac_cpp='$CXXCPP $CPPFLAGS'
10084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10089 $as_echo_n "checking for Boost sources... " >&6; }
10090 mule_backup_CPPFLAGS="$CPPFLAGS"
10091 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10095 #include <boost/../libs/system/src/error_code.cpp>
10097 main ()
10101 return 0;
10104 _ACEOF
10105 if ac_fn_cxx_try_compile "$LINENO"; then :
10108 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10111 $as_echo "yes" >&6; }
10113 else
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10117 if test x"$boost_cv_inc_path" = xno; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10119 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10120 else
10121 ac_ext=cpp
10122 ac_cpp='$CXXCPP $CPPFLAGS'
10123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10126 if test x"$boost_cv_inc_path" = xno; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10128 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10129 else
10130 ac_ext=cpp
10131 ac_cpp='$CXXCPP $CPPFLAGS'
10132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10135 boost_save_CPPFLAGS=$CPPFLAGS
10136 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10137 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10138 if test "x$ac_cv_header_boost_system_error_code_hpp" = x""yes; then :
10140 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10142 else
10143 as_fn_error "cannot find boost/system/error_code.hpp" "$LINENO" 5
10147 CPPFLAGS=$boost_save_CPPFLAGS
10148 ac_ext=cpp
10149 ac_cpp='$CXXCPP $CPPFLAGS'
10150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10155 boost_save_CPPFLAGS=$CPPFLAGS
10156 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10158 $as_echo_n "checking for the Boost system library... " >&6; }
10159 if test "${boost_cv_lib_system+set}" = set; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162 boost_cv_lib_system=no
10163 case "mt" in #(
10164 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
10165 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10166 (*) boost_mt=; boost_rtopt=mt;;
10167 esac
10168 if test $enable_static_boost = yes; then
10169 boost_rtopt="s$boost_rtopt"
10171 # Find the proper debug variant depending on what we've been asked to find.
10172 case $boost_rtopt in #(
10173 (*d*) boost_rt_d=$boost_rtopt;; #(
10174 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
10175 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10176 (*) boost_rt_d='-d';;
10177 esac
10178 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10179 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
10180 $boost_guess_use_mt && boost_mt=-mt
10181 # Look for the abs path the static archive.
10182 # $libext is computed by Libtool but let's make sure it's non empty.
10183 test -z "$libext" &&
10184 as_fn_error "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10185 boost_save_ac_objext=$ac_objext
10186 # Generate the test file.
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 #include <boost/system/error_code.hpp>
10192 main ()
10194 boost::system::error_code e; e.clear();
10196 return 0;
10198 _ACEOF
10199 if ac_fn_cxx_try_compile "$LINENO"; then :
10200 ac_objext=do_not_rm_me_plz
10201 else
10202 as_fn_error "cannot compile a test that uses Boost system" "$LINENO" 5
10204 rm -f core conftest.err conftest.$ac_objext
10205 ac_objext=$boost_save_ac_objext
10206 boost_failed_libs=
10207 # Don't bother to ident the following nested for loops, only the 2
10208 # innermost ones matter.
10209 for boost_lib_ in system; do
10210 for boost_tag_ in -$boost_cv_lib_tag ''; do
10211 for boost_ver_ in -$boost_cv_lib_version ''; do
10212 for boost_mt_ in $boost_mt -mt ''; do
10213 for boost_rtopt_ in $boost_rtopt '' -d; do
10214 for boost_lib in \
10215 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10216 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10217 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10218 boost_$boost_lib_$boost_tag_$boost_ver_
10220 # Avoid testing twice the same lib
10221 case $boost_failed_libs in #(
10222 (*@$boost_lib@*) continue;;
10223 esac
10224 # If with_boost is empty, we'll search in /lib first, which is not quite
10225 # right so instead we'll try to a location based on where the headers are.
10226 boost_tmp_lib=$with_boost
10227 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
10228 for boost_ldpath in "$boost_tmp_lib/lib" '' \
10229 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
10230 "$with_boost" C:/Boost/lib /lib*
10232 # Don't waste time with directories that don't exist.
10233 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
10234 continue
10236 boost_save_LDFLAGS=$LDFLAGS
10237 # Are we looking for a static library?
10238 case $boost_ldpath:$boost_rtopt_ in #(
10239 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
10240 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
10241 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
10242 (*) # No: use -lboost_foo to find the shared library.
10243 boost_cv_lib_system_LIBS="-l$boost_lib";;
10244 esac
10245 boost_save_LIBS=$LIBS
10246 LIBS="$boost_cv_lib_system_LIBS $LIBS"
10247 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
10248 rm -f conftest$ac_exeext
10249 boost_save_ac_ext=$ac_ext
10250 boost_use_source=:
10251 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10252 # tries to link the existing object file instead of compiling from source.
10253 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10254 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10255 if { { ac_try="$ac_link"
10256 case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10259 esac
10260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10261 $as_echo "$ac_try_echo"; } >&5
10262 (eval "$ac_link") 2>conftest.err
10263 ac_status=$?
10264 if test -s conftest.err; then
10265 grep -v '^ *+' conftest.err >conftest.er1
10266 cat conftest.er1 >&5
10267 mv -f conftest.er1 conftest.err
10269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10270 test $ac_status = 0; } && {
10271 test -z "$ac_cxx_werror_flag" ||
10272 test ! -s conftest.err
10273 } && test -s conftest$ac_exeext && {
10274 test "$cross_compiling" = yes ||
10275 $as_executable_p conftest$ac_exeext
10276 }; then :
10277 boost_cv_lib_system=yes
10278 else
10279 if $boost_use_source; then
10280 $as_echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10284 boost_cv_lib_system=no
10286 ac_objext=$boost_save_ac_objext
10287 ac_ext=$boost_save_ac_ext
10288 rm -f core conftest.err conftest_ipa8_conftest.oo \
10289 conftest$ac_exeext
10290 ac_objext=$boost_save_ac_objext
10291 LDFLAGS=$boost_save_LDFLAGS
10292 LIBS=$boost_save_LIBS
10293 if test x"$boost_cv_lib_system" = xyes; then
10294 # Check or used cached result of whether or not using -R or
10295 # -rpath makes sense. Some implementations of ld, such as for
10296 # Mac OSX, require -rpath but -R is the flag known to work on
10297 # other systems. https://github.com/tsuna/boost.m4/issues/19
10298 if test "${boost_cv_rpath_link_ldflag+set}" = set; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 case $boost_ldpath in
10302 '') # Nothing to do.
10303 boost_cv_rpath_link_ldflag=
10304 boost_rpath_link_ldflag_found=yes;;
10306 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10307 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10308 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10309 rm -f conftest$ac_exeext
10310 boost_save_ac_ext=$ac_ext
10311 boost_use_source=:
10312 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10313 # tries to link the existing object file instead of compiling from source.
10314 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10315 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10316 if { { ac_try="$ac_link"
10317 case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10320 esac
10321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10322 $as_echo "$ac_try_echo"; } >&5
10323 (eval "$ac_link") 2>conftest.err
10324 ac_status=$?
10325 if test -s conftest.err; then
10326 grep -v '^ *+' conftest.err >conftest.er1
10327 cat conftest.er1 >&5
10328 mv -f conftest.er1 conftest.err
10330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10331 test $ac_status = 0; } && {
10332 test -z "$ac_cxx_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest$ac_exeext && {
10335 test "$cross_compiling" = yes ||
10336 $as_executable_p conftest$ac_exeext
10337 }; then :
10338 boost_rpath_link_ldflag_found=yes
10339 break
10340 else
10341 if $boost_use_source; then
10342 $as_echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10346 boost_rpath_link_ldflag_found=no
10348 ac_objext=$boost_save_ac_objext
10349 ac_ext=$boost_save_ac_ext
10350 rm -f core conftest.err conftest_ipa8_conftest.oo \
10351 conftest$ac_exeext
10352 done
10354 esac
10355 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10356 as_fn_error "Unable to determine whether to use -R or -rpath" "$LINENO" 5
10358 LDFLAGS=$boost_save_LDFLAGS
10359 LIBS=$boost_save_LIBS
10363 test x"$boost_ldpath" != x &&
10364 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10365 boost_cv_lib_system_LDPATH="$boost_ldpath"
10366 break 7
10367 else
10368 boost_failed_libs="$boost_failed_libs@$boost_lib@"
10370 done
10371 done
10372 done
10373 done
10374 done
10375 done
10376 done # boost_lib_
10377 rm -f conftest.$ac_objext
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10381 $as_echo "$boost_cv_lib_system" >&6; }
10382 case $boost_cv_lib_system in #(
10383 (no) $as_echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10386 as_fn_error "cannot find the flags to link with Boost system" "$LINENO" 5
10388 esac
10389 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
10390 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
10391 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
10392 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
10393 CPPFLAGS=$boost_save_CPPFLAGS
10394 ac_ext=cpp
10395 ac_cpp='$CXXCPP $CPPFLAGS'
10396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10403 if test ${boost_cv_lib_system:-no} != yes; then :
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10406 Boost support has been disabled because Boost.System not found" >&5
10407 $as_echo "$as_me: WARNING:
10408 Boost support has been disabled because Boost.System not found" >&2;}
10409 _mule_warning_8=yes
10410 _mule_has_warnings=yes
10412 with_boost=disabled
10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 CPPFLAGS="$mule_backup_CPPFLAGS"
10419 if test x"$boost_cv_inc_path" = xno; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10422 Boost support has been disabled because Boost.Asio not found" >&5
10423 $as_echo "$as_me: WARNING:
10424 Boost support has been disabled because Boost.Asio not found" >&2;}
10425 _mule_warning_9=yes
10426 _mule_has_warnings=yes
10428 with_boost=disabled
10430 else
10431 ac_ext=cpp
10432 ac_cpp='$CXXCPP $CPPFLAGS'
10433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10436 boost_save_CPPFLAGS=$CPPFLAGS
10437 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10438 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10439 if test "x$ac_cv_header_boost_asio_hpp" = x""yes; then :
10441 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10443 else
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10446 Boost support has been disabled because Boost.Asio not found" >&5
10447 $as_echo "$as_me: WARNING:
10448 Boost support has been disabled because Boost.Asio not found" >&2;}
10449 _mule_warning_10=yes
10450 _mule_has_warnings=yes
10452 with_boost=disabled
10457 CPPFLAGS=$boost_save_CPPFLAGS
10458 ac_ext=cpp
10459 ac_cpp='$CXXCPP $CPPFLAGS'
10460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10466 else
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10468 Boost support has been disabled because of insufficient Boost version." >&5
10469 $as_echo "$as_me: WARNING:
10470 Boost support has been disabled because of insufficient Boost version." >&2;}
10471 _mule_warning_11=yes
10472 _mule_has_warnings=yes
10482 # Ok, we have all needed libs, now checking for other stuff
10483 if test "$LEX" = "flex"; then :
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
10486 $as_echo_n "checking for extended flex capabilities... " >&6; }
10488 extended_flex=`flex --help | grep header-file`
10489 if test -n "$extended_flex"; then :
10490 HAVE_FLEX_EXTENDED=yes
10491 else
10492 HAVE_FLEX_EXTENDED=no
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
10495 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
10497 if test $HAVE_FLEX_EXTENDED = no; then :
10498 { $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
10499 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
10502 else
10503 HAVE_FLEX_EXTENDED=no
10507 # Checks for header files.
10508 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10509 # for constant arguments. Useless!
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10511 $as_echo_n "checking for working alloca.h... " >&6; }
10512 if test "${ac_cv_working_alloca_h+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 /* end confdefs.h. */
10517 #include <alloca.h>
10519 main ()
10521 char *p = (char *) alloca (2 * sizeof (int));
10522 if (p) return 0;
10524 return 0;
10526 _ACEOF
10527 if ac_fn_cxx_try_link "$LINENO"; then :
10528 ac_cv_working_alloca_h=yes
10529 else
10530 ac_cv_working_alloca_h=no
10532 rm -f core conftest.err conftest.$ac_objext \
10533 conftest$ac_exeext conftest.$ac_ext
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10536 $as_echo "$ac_cv_working_alloca_h" >&6; }
10537 if test $ac_cv_working_alloca_h = yes; then
10539 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10544 $as_echo_n "checking for alloca... " >&6; }
10545 if test "${ac_cv_func_alloca_works+set}" = set; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10550 #ifdef __GNUC__
10551 # define alloca __builtin_alloca
10552 #else
10553 # ifdef _MSC_VER
10554 # include <malloc.h>
10555 # define alloca _alloca
10556 # else
10557 # ifdef HAVE_ALLOCA_H
10558 # include <alloca.h>
10559 # else
10560 # ifdef _AIX
10561 #pragma alloca
10562 # else
10563 # ifndef alloca /* predefined by HP cc +Olibcalls */
10564 char *alloca ();
10565 # endif
10566 # endif
10567 # endif
10568 # endif
10569 #endif
10572 main ()
10574 char *p = (char *) alloca (1);
10575 if (p) return 0;
10577 return 0;
10579 _ACEOF
10580 if ac_fn_cxx_try_link "$LINENO"; then :
10581 ac_cv_func_alloca_works=yes
10582 else
10583 ac_cv_func_alloca_works=no
10585 rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10589 $as_echo "$ac_cv_func_alloca_works" >&6; }
10591 if test $ac_cv_func_alloca_works = yes; then
10593 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10595 else
10596 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10597 # that cause trouble. Some versions do not even contain alloca or
10598 # contain a buggy version. If you still want to use their alloca,
10599 # use ar to extract alloca.o from them instead of compiling alloca.c.
10601 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10603 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10607 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10608 if test "${ac_cv_os_cray+set}" = set; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613 #if defined CRAY && ! defined CRAY2
10614 webecray
10615 #else
10616 wenotbecray
10617 #endif
10619 _ACEOF
10620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10621 $EGREP "webecray" >/dev/null 2>&1; then :
10622 ac_cv_os_cray=yes
10623 else
10624 ac_cv_os_cray=no
10626 rm -f conftest*
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10630 $as_echo "$ac_cv_os_cray" >&6; }
10631 if test $ac_cv_os_cray = yes; then
10632 for ac_func in _getb67 GETB67 getb67; do
10633 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10634 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10635 eval as_val=\$$as_ac_var
10636 if test "x$as_val" = x""yes; then :
10638 cat >>confdefs.h <<_ACEOF
10639 #define CRAY_STACKSEG_END $ac_func
10640 _ACEOF
10642 break
10645 done
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10649 $as_echo_n "checking stack direction for C alloca... " >&6; }
10650 if test "${ac_cv_c_stack_direction+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 if test "$cross_compiling" = yes; then :
10654 ac_cv_c_stack_direction=0
10655 else
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658 $ac_includes_default
10660 find_stack_direction ()
10662 static char *addr = 0;
10663 auto char dummy;
10664 if (addr == 0)
10666 addr = &dummy;
10667 return find_stack_direction ();
10669 else
10670 return (&dummy > addr) ? 1 : -1;
10674 main ()
10676 return find_stack_direction () < 0;
10678 _ACEOF
10679 if ac_fn_cxx_try_run "$LINENO"; then :
10680 ac_cv_c_stack_direction=1
10681 else
10682 ac_cv_c_stack_direction=-1
10684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10685 conftest.$ac_objext conftest.beam conftest.$ac_ext
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10690 $as_echo "$ac_cv_c_stack_direction" >&6; }
10691 cat >>confdefs.h <<_ACEOF
10692 #define STACK_DIRECTION $ac_cv_c_stack_direction
10693 _ACEOF
10698 ac_header_dirent=no
10699 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10700 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10702 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10708 #include <sys/types.h>
10709 #include <$ac_hdr>
10712 main ()
10714 if ((DIR *) 0)
10715 return 0;
10717 return 0;
10719 _ACEOF
10720 if ac_fn_cxx_try_compile "$LINENO"; then :
10721 eval "$as_ac_Header=yes"
10722 else
10723 eval "$as_ac_Header=no"
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727 eval ac_res=\$$as_ac_Header
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10729 $as_echo "$ac_res" >&6; }
10730 eval as_val=\$$as_ac_Header
10731 if test "x$as_val" = x""yes; then :
10732 cat >>confdefs.h <<_ACEOF
10733 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10734 _ACEOF
10736 ac_header_dirent=$ac_hdr; break
10739 done
10740 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10741 if test $ac_header_dirent = dirent.h; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10743 $as_echo_n "checking for library containing opendir... " >&6; }
10744 if test "${ac_cv_search_opendir+set}" = set; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10747 ac_func_search_save_LIBS=$LIBS
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10751 /* Override any GCC internal prototype to avoid an error.
10752 Use char because int might match the return type of a GCC
10753 builtin and then its argument prototype would still apply. */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 char opendir ();
10759 main ()
10761 return opendir ();
10763 return 0;
10765 _ACEOF
10766 for ac_lib in '' dir; do
10767 if test -z "$ac_lib"; then
10768 ac_res="none required"
10769 else
10770 ac_res=-l$ac_lib
10771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10773 if ac_fn_cxx_try_link "$LINENO"; then :
10774 ac_cv_search_opendir=$ac_res
10776 rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext
10778 if test "${ac_cv_search_opendir+set}" = set; then :
10779 break
10781 done
10782 if test "${ac_cv_search_opendir+set}" = set; then :
10784 else
10785 ac_cv_search_opendir=no
10787 rm conftest.$ac_ext
10788 LIBS=$ac_func_search_save_LIBS
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10791 $as_echo "$ac_cv_search_opendir" >&6; }
10792 ac_res=$ac_cv_search_opendir
10793 if test "$ac_res" != no; then :
10794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10798 else
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10800 $as_echo_n "checking for library containing opendir... " >&6; }
10801 if test "${ac_cv_search_opendir+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 ac_func_search_save_LIBS=$LIBS
10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10808 /* Override any GCC internal prototype to avoid an error.
10809 Use char because int might match the return type of a GCC
10810 builtin and then its argument prototype would still apply. */
10811 #ifdef __cplusplus
10812 extern "C"
10813 #endif
10814 char opendir ();
10816 main ()
10818 return opendir ();
10820 return 0;
10822 _ACEOF
10823 for ac_lib in '' x; do
10824 if test -z "$ac_lib"; then
10825 ac_res="none required"
10826 else
10827 ac_res=-l$ac_lib
10828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10830 if ac_fn_cxx_try_link "$LINENO"; then :
10831 ac_cv_search_opendir=$ac_res
10833 rm -f core conftest.err conftest.$ac_objext \
10834 conftest$ac_exeext
10835 if test "${ac_cv_search_opendir+set}" = set; then :
10836 break
10838 done
10839 if test "${ac_cv_search_opendir+set}" = set; then :
10841 else
10842 ac_cv_search_opendir=no
10844 rm conftest.$ac_ext
10845 LIBS=$ac_func_search_save_LIBS
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10848 $as_echo "$ac_cv_search_opendir" >&6; }
10849 ac_res=$ac_cv_search_opendir
10850 if test "$ac_res" != no; then :
10851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10858 $as_echo_n "checking for ANSI C header files... " >&6; }
10859 if test "${ac_cv_header_stdc+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 #include <stdlib.h>
10865 #include <stdarg.h>
10866 #include <string.h>
10867 #include <float.h>
10870 main ()
10874 return 0;
10876 _ACEOF
10877 if ac_fn_cxx_try_compile "$LINENO"; then :
10878 ac_cv_header_stdc=yes
10879 else
10880 ac_cv_header_stdc=no
10882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10884 if test $ac_cv_header_stdc = yes; then
10885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888 #include <string.h>
10890 _ACEOF
10891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10892 $EGREP "memchr" >/dev/null 2>&1; then :
10894 else
10895 ac_cv_header_stdc=no
10897 rm -f conftest*
10901 if test $ac_cv_header_stdc = yes; then
10902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905 #include <stdlib.h>
10907 _ACEOF
10908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10909 $EGREP "free" >/dev/null 2>&1; then :
10911 else
10912 ac_cv_header_stdc=no
10914 rm -f conftest*
10918 if test $ac_cv_header_stdc = yes; then
10919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10920 if test "$cross_compiling" = yes; then :
10922 else
10923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10925 #include <ctype.h>
10926 #include <stdlib.h>
10927 #if ((' ' & 0x0FF) == 0x020)
10928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10930 #else
10931 # define ISLOWER(c) \
10932 (('a' <= (c) && (c) <= 'i') \
10933 || ('j' <= (c) && (c) <= 'r') \
10934 || ('s' <= (c) && (c) <= 'z'))
10935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10936 #endif
10938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10940 main ()
10942 int i;
10943 for (i = 0; i < 256; i++)
10944 if (XOR (islower (i), ISLOWER (i))
10945 || toupper (i) != TOUPPER (i))
10946 return 2;
10947 return 0;
10949 _ACEOF
10950 if ac_fn_cxx_try_run "$LINENO"; then :
10952 else
10953 ac_cv_header_stdc=no
10955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10956 conftest.$ac_objext conftest.beam conftest.$ac_ext
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10962 $as_echo "$ac_cv_header_stdc" >&6; }
10963 if test $ac_cv_header_stdc = yes; then
10965 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10969 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
10970 do :
10971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10972 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10973 eval as_val=\$$as_ac_Header
10974 if test "x$as_val" = x""yes; then :
10975 cat >>confdefs.h <<_ACEOF
10976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10977 _ACEOF
10981 done
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
10984 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
10985 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990 #include <sys/types.h>
10991 #include <sys/wait.h>
10992 #ifndef WEXITSTATUS
10993 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10994 #endif
10995 #ifndef WIFEXITED
10996 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10997 #endif
11000 main ()
11002 int s;
11003 wait (&s);
11004 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11006 return 0;
11008 _ACEOF
11009 if ac_fn_cxx_try_compile "$LINENO"; then :
11010 ac_cv_header_sys_wait_h=yes
11011 else
11012 ac_cv_header_sys_wait_h=no
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11017 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11018 if test $ac_cv_header_sys_wait_h = yes; then
11020 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11026 # Checks for typedefs, structures, and compiler characteristics.
11027 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11028 if test "x$ac_cv_type_mode_t" = x""yes; then :
11030 else
11032 cat >>confdefs.h <<_ACEOF
11033 #define mode_t int
11034 _ACEOF
11038 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11039 if test "x$ac_cv_type_off_t" = x""yes; then :
11041 else
11043 cat >>confdefs.h <<_ACEOF
11044 #define off_t long int
11045 _ACEOF
11049 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11050 if test "x$ac_cv_type_size_t" = x""yes; then :
11052 else
11054 cat >>confdefs.h <<_ACEOF
11055 #define size_t unsigned int
11056 _ACEOF
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11061 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11062 if test "${ac_cv_header_time+set}" = set; then :
11063 $as_echo_n "(cached) " >&6
11064 else
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11067 #include <sys/types.h>
11068 #include <sys/time.h>
11069 #include <time.h>
11072 main ()
11074 if ((struct tm *) 0)
11075 return 0;
11077 return 0;
11079 _ACEOF
11080 if ac_fn_cxx_try_compile "$LINENO"; then :
11081 ac_cv_header_time=yes
11082 else
11083 ac_cv_header_time=no
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11088 $as_echo "$ac_cv_header_time" >&6; }
11089 if test $ac_cv_header_time = yes; then
11091 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11096 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11097 if test "${ac_cv_struct_tm+set}" = set; then :
11098 $as_echo_n "(cached) " >&6
11099 else
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11102 #include <sys/types.h>
11103 #include <time.h>
11106 main ()
11108 struct tm tm;
11109 int *p = &tm.tm_sec;
11110 return !p;
11112 return 0;
11114 _ACEOF
11115 if ac_fn_cxx_try_compile "$LINENO"; then :
11116 ac_cv_struct_tm=time.h
11117 else
11118 ac_cv_struct_tm=sys/time.h
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11123 $as_echo "$ac_cv_struct_tm" >&6; }
11124 if test $ac_cv_struct_tm = sys/time.h; then
11126 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11131 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11132 if test "${ac_cv_type_uid_t+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11136 /* end confdefs.h. */
11137 #include <sys/types.h>
11139 _ACEOF
11140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11141 $EGREP "uid_t" >/dev/null 2>&1; then :
11142 ac_cv_type_uid_t=yes
11143 else
11144 ac_cv_type_uid_t=no
11146 rm -f conftest*
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11150 $as_echo "$ac_cv_type_uid_t" >&6; }
11151 if test $ac_cv_type_uid_t = no; then
11153 $as_echo "#define uid_t int" >>confdefs.h
11156 $as_echo "#define gid_t int" >>confdefs.h
11160 ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11161 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
11163 cat >>confdefs.h <<_ACEOF
11164 #define HAVE_PTRDIFF_T 1
11165 _ACEOF
11172 # Checks for library functions.
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11174 $as_echo_n "checking whether closedir returns void... " >&6; }
11175 if test "${ac_cv_func_closedir_void+set}" = set; then :
11176 $as_echo_n "(cached) " >&6
11177 else
11178 if test "$cross_compiling" = yes; then :
11179 ac_cv_func_closedir_void=yes
11180 else
11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11183 $ac_includes_default
11184 #include <$ac_header_dirent>
11185 #ifndef __cplusplus
11186 int closedir ();
11187 #endif
11190 main ()
11192 return closedir (opendir (".")) != 0;
11194 return 0;
11196 _ACEOF
11197 if ac_fn_cxx_try_run "$LINENO"; then :
11198 ac_cv_func_closedir_void=no
11199 else
11200 ac_cv_func_closedir_void=yes
11202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11203 conftest.$ac_objext conftest.beam conftest.$ac_ext
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11208 $as_echo "$ac_cv_func_closedir_void" >&6; }
11209 if test $ac_cv_func_closedir_void = yes; then
11211 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11215 if test $ac_cv_c_compiler_gnu = yes; then
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11217 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11218 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 ac_pattern="Autoconf.*'x'"
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11224 #include <sgtty.h>
11225 Autoconf TIOCGETP
11226 _ACEOF
11227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11228 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11229 ac_cv_prog_gcc_traditional=yes
11230 else
11231 ac_cv_prog_gcc_traditional=no
11233 rm -f conftest*
11236 if test $ac_cv_prog_gcc_traditional = no; then
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239 #include <termio.h>
11240 Autoconf TCGETA
11241 _ACEOF
11242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11243 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11244 ac_cv_prog_gcc_traditional=yes
11246 rm -f conftest*
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11251 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11252 if test $ac_cv_prog_gcc_traditional = yes; then
11253 CC="$CC -traditional"
11257 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11258 if test "x$ac_cv_type_pid_t" = x""yes; then :
11260 else
11262 cat >>confdefs.h <<_ACEOF
11263 #define pid_t int
11264 _ACEOF
11268 for ac_header in vfork.h
11269 do :
11270 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11271 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11272 cat >>confdefs.h <<_ACEOF
11273 #define HAVE_VFORK_H 1
11274 _ACEOF
11278 done
11280 for ac_func in fork vfork
11281 do :
11282 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11283 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11284 eval as_val=\$$as_ac_var
11285 if test "x$as_val" = x""yes; then :
11286 cat >>confdefs.h <<_ACEOF
11287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11288 _ACEOF
11291 done
11293 if test "x$ac_cv_func_fork" = xyes; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11295 $as_echo_n "checking for working fork... " >&6; }
11296 if test "${ac_cv_func_fork_works+set}" = set; then :
11297 $as_echo_n "(cached) " >&6
11298 else
11299 if test "$cross_compiling" = yes; then :
11300 ac_cv_func_fork_works=cross
11301 else
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304 $ac_includes_default
11306 main ()
11309 /* By Ruediger Kuhlmann. */
11310 return fork () < 0;
11313 return 0;
11315 _ACEOF
11316 if ac_fn_cxx_try_run "$LINENO"; then :
11317 ac_cv_func_fork_works=yes
11318 else
11319 ac_cv_func_fork_works=no
11321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11322 conftest.$ac_objext conftest.beam conftest.$ac_ext
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11327 $as_echo "$ac_cv_func_fork_works" >&6; }
11329 else
11330 ac_cv_func_fork_works=$ac_cv_func_fork
11332 if test "x$ac_cv_func_fork_works" = xcross; then
11333 case $host in
11334 *-*-amigaos* | *-*-msdosdjgpp*)
11335 # Override, as these systems have only a dummy fork() stub
11336 ac_cv_func_fork_works=no
11339 ac_cv_func_fork_works=yes
11341 esac
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11343 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11345 ac_cv_func_vfork_works=$ac_cv_func_vfork
11346 if test "x$ac_cv_func_vfork" = xyes; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11348 $as_echo_n "checking for working vfork... " >&6; }
11349 if test "${ac_cv_func_vfork_works+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 if test "$cross_compiling" = yes; then :
11353 ac_cv_func_vfork_works=cross
11354 else
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11357 /* Thanks to Paul Eggert for this test. */
11358 $ac_includes_default
11359 #include <sys/wait.h>
11360 #ifdef HAVE_VFORK_H
11361 # include <vfork.h>
11362 #endif
11363 /* On some sparc systems, changes by the child to local and incoming
11364 argument registers are propagated back to the parent. The compiler
11365 is told about this with #include <vfork.h>, but some compilers
11366 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11367 static variable whose address is put into a register that is
11368 clobbered by the vfork. */
11369 static void
11370 #ifdef __cplusplus
11371 sparc_address_test (int arg)
11372 # else
11373 sparc_address_test (arg) int arg;
11374 #endif
11376 static pid_t child;
11377 if (!child) {
11378 child = vfork ();
11379 if (child < 0) {
11380 perror ("vfork");
11381 _exit(2);
11383 if (!child) {
11384 arg = getpid();
11385 write(-1, "", 0);
11386 _exit (arg);
11392 main ()
11394 pid_t parent = getpid ();
11395 pid_t child;
11397 sparc_address_test (0);
11399 child = vfork ();
11401 if (child == 0) {
11402 /* Here is another test for sparc vfork register problems. This
11403 test uses lots of local variables, at least as many local
11404 variables as main has allocated so far including compiler
11405 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11406 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11407 reuse the register of parent for one of the local variables,
11408 since it will think that parent can't possibly be used any more
11409 in this routine. Assigning to the local variable will thus
11410 munge parent in the parent process. */
11411 pid_t
11412 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11413 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11414 /* Convince the compiler that p..p7 are live; otherwise, it might
11415 use the same hardware register for all 8 local variables. */
11416 if (p != p1 || p != p2 || p != p3 || p != p4
11417 || p != p5 || p != p6 || p != p7)
11418 _exit(1);
11420 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11421 from child file descriptors. If the child closes a descriptor
11422 before it execs or exits, this munges the parent's descriptor
11423 as well. Test for this by closing stdout in the child. */
11424 _exit(close(fileno(stdout)) != 0);
11425 } else {
11426 int status;
11427 struct stat st;
11429 while (wait(&status) != child)
11431 return (
11432 /* Was there some problem with vforking? */
11433 child < 0
11435 /* Did the child fail? (This shouldn't happen.) */
11436 || status
11438 /* Did the vfork/compiler bug occur? */
11439 || parent != getpid()
11441 /* Did the file descriptor bug occur? */
11442 || fstat(fileno(stdout), &st) != 0
11446 _ACEOF
11447 if ac_fn_cxx_try_run "$LINENO"; then :
11448 ac_cv_func_vfork_works=yes
11449 else
11450 ac_cv_func_vfork_works=no
11452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11453 conftest.$ac_objext conftest.beam conftest.$ac_ext
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11458 $as_echo "$ac_cv_func_vfork_works" >&6; }
11461 if test "x$ac_cv_func_fork_works" = xcross; then
11462 ac_cv_func_vfork_works=$ac_cv_func_vfork
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11464 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11467 if test "x$ac_cv_func_vfork_works" = xyes; then
11469 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11471 else
11473 $as_echo "#define vfork fork" >>confdefs.h
11476 if test "x$ac_cv_func_fork_works" = xyes; then
11478 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11483 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11484 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 rm -f conftest.sym conftest.file
11488 echo >conftest.file
11489 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11490 if test "$cross_compiling" = yes; then :
11491 ac_cv_func_lstat_dereferences_slashed_symlink=no
11492 else
11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494 /* end confdefs.h. */
11495 $ac_includes_default
11497 main ()
11499 struct stat sbuf;
11500 /* Linux will dereference the symlink and fail, as required by POSIX.
11501 That is better in the sense that it means we will not
11502 have to compile and use the lstat wrapper. */
11503 return lstat ("conftest.sym/", &sbuf) == 0;
11505 return 0;
11507 _ACEOF
11508 if ac_fn_cxx_try_run "$LINENO"; then :
11509 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11510 else
11511 ac_cv_func_lstat_dereferences_slashed_symlink=no
11513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11514 conftest.$ac_objext conftest.beam conftest.$ac_ext
11517 else
11518 # If the `ln -s' command failed, then we probably don't even
11519 # have an lstat function.
11520 ac_cv_func_lstat_dereferences_slashed_symlink=no
11522 rm -f conftest.sym conftest.file
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11526 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11528 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11530 cat >>confdefs.h <<_ACEOF
11531 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11532 _ACEOF
11535 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11536 case " $LIBOBJS " in
11537 *" lstat.$ac_objext "* ) ;;
11538 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11540 esac
11544 if test x$SYS != xwin32; then :
11546 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11547 # -lseq on Dynix/PTX, -lgen on Unixware.
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11549 $as_echo_n "checking for library containing getmntent... " >&6; }
11550 if test "${ac_cv_search_getmntent+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 ac_func_search_save_LIBS=$LIBS
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11557 /* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 char getmntent ();
11565 main ()
11567 return getmntent ();
11569 return 0;
11571 _ACEOF
11572 for ac_lib in '' sun seq gen; do
11573 if test -z "$ac_lib"; then
11574 ac_res="none required"
11575 else
11576 ac_res=-l$ac_lib
11577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11579 if ac_fn_cxx_try_link "$LINENO"; then :
11580 ac_cv_search_getmntent=$ac_res
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext
11584 if test "${ac_cv_search_getmntent+set}" = set; then :
11585 break
11587 done
11588 if test "${ac_cv_search_getmntent+set}" = set; then :
11590 else
11591 ac_cv_search_getmntent=no
11593 rm conftest.$ac_ext
11594 LIBS=$ac_func_search_save_LIBS
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11597 $as_echo "$ac_cv_search_getmntent" >&6; }
11598 ac_res=$ac_cv_search_getmntent
11599 if test "$ac_res" != no; then :
11600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11601 ac_cv_func_getmntent=yes
11603 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11605 else
11606 ac_cv_func_getmntent=no
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11611 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11612 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 if test "$cross_compiling" = yes; then :
11616 ac_cv_func_lstat_empty_string_bug=yes
11617 else
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11620 $ac_includes_default
11622 main ()
11624 struct stat sbuf;
11625 return lstat ("", &sbuf) == 0;
11627 return 0;
11629 _ACEOF
11630 if ac_fn_cxx_try_run "$LINENO"; then :
11631 ac_cv_func_lstat_empty_string_bug=no
11632 else
11633 ac_cv_func_lstat_empty_string_bug=yes
11635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11636 conftest.$ac_objext conftest.beam conftest.$ac_ext
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11641 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11642 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11643 case " $LIBOBJS " in
11644 *" lstat.$ac_objext "* ) ;;
11645 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11647 esac
11650 cat >>confdefs.h <<_ACEOF
11651 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11652 _ACEOF
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11657 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11658 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 rm -f conftest.sym conftest.file
11662 echo >conftest.file
11663 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11664 if test "$cross_compiling" = yes; then :
11665 ac_cv_func_lstat_dereferences_slashed_symlink=no
11666 else
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669 $ac_includes_default
11671 main ()
11673 struct stat sbuf;
11674 /* Linux will dereference the symlink and fail, as required by POSIX.
11675 That is better in the sense that it means we will not
11676 have to compile and use the lstat wrapper. */
11677 return lstat ("conftest.sym/", &sbuf) == 0;
11679 return 0;
11681 _ACEOF
11682 if ac_fn_cxx_try_run "$LINENO"; then :
11683 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11684 else
11685 ac_cv_func_lstat_dereferences_slashed_symlink=no
11687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11688 conftest.$ac_objext conftest.beam conftest.$ac_ext
11691 else
11692 # If the `ln -s' command failed, then we probably don't even
11693 # have an lstat function.
11694 ac_cv_func_lstat_dereferences_slashed_symlink=no
11696 rm -f conftest.sym conftest.file
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11700 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11702 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11704 cat >>confdefs.h <<_ACEOF
11705 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11706 _ACEOF
11709 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11710 case " $LIBOBJS " in
11711 *" lstat.$ac_objext "* ) ;;
11712 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11714 esac
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11721 $as_echo_n "checking for working memcmp... " >&6; }
11722 if test "${ac_cv_func_memcmp_working+set}" = set; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 if test "$cross_compiling" = yes; then :
11726 ac_cv_func_memcmp_working=no
11727 else
11728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729 /* end confdefs.h. */
11730 $ac_includes_default
11732 main ()
11735 /* Some versions of memcmp are not 8-bit clean. */
11736 char c0 = '\100', c1 = '\200', c2 = '\201';
11737 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11738 return 1;
11740 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11741 or more and with at least one buffer not starting on a 4-byte boundary.
11742 William Lewis provided this test program. */
11744 char foo[21];
11745 char bar[21];
11746 int i;
11747 for (i = 0; i < 4; i++)
11749 char *a = foo + i;
11750 char *b = bar + i;
11751 strcpy (a, "--------01111111");
11752 strcpy (b, "--------10000000");
11753 if (memcmp (a, b, 16) >= 0)
11754 return 1;
11756 return 0;
11760 return 0;
11762 _ACEOF
11763 if ac_fn_cxx_try_run "$LINENO"; then :
11764 ac_cv_func_memcmp_working=yes
11765 else
11766 ac_cv_func_memcmp_working=no
11768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11769 conftest.$ac_objext conftest.beam conftest.$ac_ext
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11774 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11775 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11776 *" memcmp.$ac_objext "* ) ;;
11777 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11779 esac
11782 for ac_header in sys/select.h sys/socket.h
11783 do :
11784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11785 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11786 eval as_val=\$$as_ac_Header
11787 if test "x$as_val" = x""yes; then :
11788 cat >>confdefs.h <<_ACEOF
11789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11790 _ACEOF
11794 done
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11797 $as_echo_n "checking types of arguments for select... " >&6; }
11798 if test "${ac_cv_func_select_args+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11802 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11803 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11806 $ac_includes_default
11807 #ifdef HAVE_SYS_SELECT_H
11808 # include <sys/select.h>
11809 #endif
11810 #ifdef HAVE_SYS_SOCKET_H
11811 # include <sys/socket.h>
11812 #endif
11815 main ()
11817 extern int select ($ac_arg1,
11818 $ac_arg234, $ac_arg234, $ac_arg234,
11819 $ac_arg5);
11821 return 0;
11823 _ACEOF
11824 if ac_fn_cxx_try_compile "$LINENO"; then :
11825 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 done
11829 done
11830 done
11831 # Provide a safe default value.
11832 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11836 $as_echo "$ac_cv_func_select_args" >&6; }
11837 ac_save_IFS=$IFS; IFS=','
11838 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11839 IFS=$ac_save_IFS
11840 shift
11842 cat >>confdefs.h <<_ACEOF
11843 #define SELECT_TYPE_ARG1 $1
11844 _ACEOF
11847 cat >>confdefs.h <<_ACEOF
11848 #define SELECT_TYPE_ARG234 ($2)
11849 _ACEOF
11852 cat >>confdefs.h <<_ACEOF
11853 #define SELECT_TYPE_ARG5 ($3)
11854 _ACEOF
11856 rm -f conftest*
11858 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 ac_cv_func_setvbuf_reversed=no
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11866 $as_echo_n "checking return type of signal handlers... " >&6; }
11867 if test "${ac_cv_type_signal+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11872 #include <sys/types.h>
11873 #include <signal.h>
11876 main ()
11878 return *(signal (0, 0)) (0) == 1;
11880 return 0;
11882 _ACEOF
11883 if ac_fn_cxx_try_compile "$LINENO"; then :
11884 ac_cv_type_signal=int
11885 else
11886 ac_cv_type_signal=void
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11891 $as_echo "$ac_cv_type_signal" >&6; }
11893 cat >>confdefs.h <<_ACEOF
11894 #define RETSIGTYPE $ac_cv_type_signal
11895 _ACEOF
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11899 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11900 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 if test "$cross_compiling" = yes; then :
11904 ac_cv_func_stat_empty_string_bug=yes
11905 else
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907 /* end confdefs.h. */
11908 $ac_includes_default
11910 main ()
11912 struct stat sbuf;
11913 return stat ("", &sbuf) == 0;
11915 return 0;
11917 _ACEOF
11918 if ac_fn_cxx_try_run "$LINENO"; then :
11919 ac_cv_func_stat_empty_string_bug=no
11920 else
11921 ac_cv_func_stat_empty_string_bug=yes
11923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11924 conftest.$ac_objext conftest.beam conftest.$ac_ext
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
11929 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
11930 if test $ac_cv_func_stat_empty_string_bug = yes; then
11931 case " $LIBOBJS " in
11932 *" stat.$ac_objext "* ) ;;
11933 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
11935 esac
11938 cat >>confdefs.h <<_ACEOF
11939 #define HAVE_STAT_EMPTY_STRING_BUG 1
11940 _ACEOF
11944 for ac_func in strftime
11945 do :
11946 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11947 if test "x$ac_cv_func_strftime" = x""yes; then :
11948 cat >>confdefs.h <<_ACEOF
11949 #define HAVE_STRFTIME 1
11950 _ACEOF
11952 else
11953 # strftime is in -lintl on SCO UNIX.
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11955 $as_echo_n "checking for strftime in -lintl... " >&6; }
11956 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
11958 else
11959 ac_check_lib_save_LIBS=$LIBS
11960 LIBS="-lintl $LIBS"
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11967 #ifdef __cplusplus
11968 extern "C"
11969 #endif
11970 char strftime ();
11972 main ()
11974 return strftime ();
11976 return 0;
11978 _ACEOF
11979 if ac_fn_cxx_try_link "$LINENO"; then :
11980 ac_cv_lib_intl_strftime=yes
11981 else
11982 ac_cv_lib_intl_strftime=no
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 LIBS=$ac_check_lib_save_LIBS
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11989 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11990 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11991 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11993 LIBS="-lintl $LIBS"
11997 done
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12000 $as_echo_n "checking for working strtod... " >&6; }
12001 if test "${ac_cv_func_strtod+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 if test "$cross_compiling" = yes; then :
12005 ac_cv_func_strtod=no
12006 else
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12010 $ac_includes_default
12011 #ifndef strtod
12012 double strtod ();
12013 #endif
12015 main()
12018 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12019 char *string = " +69";
12020 char *term;
12021 double value;
12022 value = strtod (string, &term);
12023 if (value != 69 || term != (string + 4))
12024 return 1;
12028 /* Under Solaris 2.4, strtod returns the wrong value for the
12029 terminating character under some conditions. */
12030 char *string = "NaN";
12031 char *term;
12032 strtod (string, &term);
12033 if (term != string && *(term - 1) == 0)
12034 return 1;
12036 return 0;
12039 _ACEOF
12040 if ac_fn_cxx_try_run "$LINENO"; then :
12041 ac_cv_func_strtod=yes
12042 else
12043 ac_cv_func_strtod=no
12045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12046 conftest.$ac_objext conftest.beam conftest.$ac_ext
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12051 $as_echo "$ac_cv_func_strtod" >&6; }
12052 if test $ac_cv_func_strtod = no; then
12053 case " $LIBOBJS " in
12054 *" strtod.$ac_objext "* ) ;;
12055 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12057 esac
12059 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
12060 if test "x$ac_cv_func_pow" = x""yes; then :
12064 if test $ac_cv_func_pow = no; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12066 $as_echo_n "checking for pow in -lm... " >&6; }
12067 if test "${ac_cv_lib_m_pow+set}" = set; then :
12068 $as_echo_n "(cached) " >&6
12069 else
12070 ac_check_lib_save_LIBS=$LIBS
12071 LIBS="-lm $LIBS"
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 char pow ();
12083 main ()
12085 return pow ();
12087 return 0;
12089 _ACEOF
12090 if ac_fn_cxx_try_link "$LINENO"; then :
12091 ac_cv_lib_m_pow=yes
12092 else
12093 ac_cv_lib_m_pow=no
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12100 $as_echo "$ac_cv_lib_m_pow" >&6; }
12101 if test "x$ac_cv_lib_m_pow" = x""yes; then :
12102 POW_LIB=-lm
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12105 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12112 for ac_func in vprintf
12113 do :
12114 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12115 if test "x$ac_cv_func_vprintf" = x""yes; then :
12116 cat >>confdefs.h <<_ACEOF
12117 #define HAVE_VPRINTF 1
12118 _ACEOF
12120 ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12121 if test "x$ac_cv_func__doprnt" = x""yes; then :
12123 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12128 done
12131 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12134 configure cannot check whether malloc() and realloc() are GNU libc
12135 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12136 run configure with the --without-gnu-malloc switch." >&5
12137 $as_echo "$as_me: WARNING:
12138 configure cannot check whether malloc() and realloc() are GNU libc
12139 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12140 run configure with the --without-gnu-malloc switch." >&2;}
12141 _mule_warning_12=yes
12142 _mule_has_warnings=yes
12144 ac_cv_func_malloc_0_nonnull=yes
12145 ac_cv_func_realloc_0_nonnull=yes
12148 for ac_header in stdlib.h
12149 do :
12150 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12151 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12152 cat >>confdefs.h <<_ACEOF
12153 #define HAVE_STDLIB_H 1
12154 _ACEOF
12158 done
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12161 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12162 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12164 else
12165 if test "$cross_compiling" = yes; then :
12166 ac_cv_func_malloc_0_nonnull=no
12167 else
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12171 # include <stdlib.h>
12172 #else
12173 char *malloc ();
12174 #endif
12177 main ()
12179 return ! malloc (0);
12181 return 0;
12183 _ACEOF
12184 if ac_fn_cxx_try_run "$LINENO"; then :
12185 ac_cv_func_malloc_0_nonnull=yes
12186 else
12187 ac_cv_func_malloc_0_nonnull=no
12189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12190 conftest.$ac_objext conftest.beam conftest.$ac_ext
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12195 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12196 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12198 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12200 else
12201 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12203 case " $LIBOBJS " in
12204 *" malloc.$ac_objext "* ) ;;
12205 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12207 esac
12210 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12215 for ac_header in stdlib.h
12216 do :
12217 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12218 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12219 cat >>confdefs.h <<_ACEOF
12220 #define HAVE_STDLIB_H 1
12221 _ACEOF
12225 done
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12228 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12229 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 if test "$cross_compiling" = yes; then :
12233 ac_cv_func_realloc_0_nonnull=no
12234 else
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12238 # include <stdlib.h>
12239 #else
12240 char *realloc ();
12241 #endif
12244 main ()
12246 return ! realloc (0, 0);
12248 return 0;
12250 _ACEOF
12251 if ac_fn_cxx_try_run "$LINENO"; then :
12252 ac_cv_func_realloc_0_nonnull=yes
12253 else
12254 ac_cv_func_realloc_0_nonnull=no
12256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12257 conftest.$ac_objext conftest.beam conftest.$ac_ext
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12262 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12263 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12265 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12267 else
12268 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12270 case " $LIBOBJS " in
12271 *" realloc.$ac_objext "* ) ;;
12272 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12274 esac
12277 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12282 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
12283 do :
12284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12285 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12286 eval as_val=\$$as_ac_var
12287 if test "x$as_val" = x""yes; then :
12288 cat >>confdefs.h <<_ACEOF
12289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12290 _ACEOF
12293 done
12300 for ac_header in $ac_header_list
12301 do :
12302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12303 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12305 eval as_val=\$$as_ac_Header
12306 if test "x$as_val" = x""yes; then :
12307 cat >>confdefs.h <<_ACEOF
12308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12309 _ACEOF
12313 done
12321 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12323 # Check whether --enable-mmap was given.
12324 if test "${enable_mmap+set}" = set; then :
12325 enableval=$enable_mmap;
12332 if test ${enable_mmap:-no} = yes; then :
12334 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12337 for ac_func in getpagesize
12338 do :
12339 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12340 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12341 cat >>confdefs.h <<_ACEOF
12342 #define HAVE_GETPAGESIZE 1
12343 _ACEOF
12346 done
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12349 $as_echo_n "checking for working mmap... " >&6; }
12350 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 if test "$cross_compiling" = yes; then :
12354 ac_cv_func_mmap_fixed_mapped=no
12355 else
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12358 $ac_includes_default
12359 /* malloc might have been renamed as rpl_malloc. */
12360 #undef malloc
12362 /* Thanks to Mike Haertel and Jim Avera for this test.
12363 Here is a matrix of mmap possibilities:
12364 mmap private not fixed
12365 mmap private fixed at somewhere currently unmapped
12366 mmap private fixed at somewhere already mapped
12367 mmap shared not fixed
12368 mmap shared fixed at somewhere currently unmapped
12369 mmap shared fixed at somewhere already mapped
12370 For private mappings, we should verify that changes cannot be read()
12371 back from the file, nor mmap's back from the file at a different
12372 address. (There have been systems where private was not correctly
12373 implemented like the infamous i386 svr4.0, and systems where the
12374 VM page cache was not coherent with the file system buffer cache
12375 like early versions of FreeBSD and possibly contemporary NetBSD.)
12376 For shared mappings, we should conversely verify that changes get
12377 propagated back to all the places they're supposed to be.
12379 Grep wants private fixed already mapped.
12380 The main things grep needs to know about mmap are:
12381 * does it exist and is it safe to write into the mmap'd area
12382 * how to use it (BSD variants) */
12384 #include <fcntl.h>
12385 #include <sys/mman.h>
12387 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12388 char *malloc ();
12389 #endif
12391 /* This mess was copied from the GNU getpagesize.h. */
12392 #ifndef HAVE_GETPAGESIZE
12393 # ifdef _SC_PAGESIZE
12394 # define getpagesize() sysconf(_SC_PAGESIZE)
12395 # else /* no _SC_PAGESIZE */
12396 # ifdef HAVE_SYS_PARAM_H
12397 # include <sys/param.h>
12398 # ifdef EXEC_PAGESIZE
12399 # define getpagesize() EXEC_PAGESIZE
12400 # else /* no EXEC_PAGESIZE */
12401 # ifdef NBPG
12402 # define getpagesize() NBPG * CLSIZE
12403 # ifndef CLSIZE
12404 # define CLSIZE 1
12405 # endif /* no CLSIZE */
12406 # else /* no NBPG */
12407 # ifdef NBPC
12408 # define getpagesize() NBPC
12409 # else /* no NBPC */
12410 # ifdef PAGESIZE
12411 # define getpagesize() PAGESIZE
12412 # endif /* PAGESIZE */
12413 # endif /* no NBPC */
12414 # endif /* no NBPG */
12415 # endif /* no EXEC_PAGESIZE */
12416 # else /* no HAVE_SYS_PARAM_H */
12417 # define getpagesize() 8192 /* punt totally */
12418 # endif /* no HAVE_SYS_PARAM_H */
12419 # endif /* no _SC_PAGESIZE */
12421 #endif /* no HAVE_GETPAGESIZE */
12424 main ()
12426 char *data, *data2, *data3;
12427 int i, pagesize;
12428 int fd, fd2;
12430 pagesize = getpagesize ();
12432 /* First, make a file with some known garbage in it. */
12433 data = (char *) malloc (pagesize);
12434 if (!data)
12435 return 1;
12436 for (i = 0; i < pagesize; ++i)
12437 *(data + i) = rand ();
12438 umask (0);
12439 fd = creat ("conftest.mmap", 0600);
12440 if (fd < 0)
12441 return 2;
12442 if (write (fd, data, pagesize) != pagesize)
12443 return 3;
12444 close (fd);
12446 /* Next, check that the tail of a page is zero-filled. File must have
12447 non-zero length, otherwise we risk SIGBUS for entire page. */
12448 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12449 if (fd2 < 0)
12450 return 4;
12451 data2 = (char *) "";
12452 if (write (fd2, data2, 1) != 1)
12453 return 5;
12454 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12455 if (data2 == MAP_FAILED)
12456 return 6;
12457 for (i = 0; i < pagesize; ++i)
12458 if (*(data2 + i))
12459 return 7;
12460 close (fd2);
12461 if (munmap (data2, pagesize))
12462 return 8;
12464 /* Next, try to mmap the file at a fixed address which already has
12465 something else allocated at it. If we can, also make sure that
12466 we see the same garbage. */
12467 fd = open ("conftest.mmap", O_RDWR);
12468 if (fd < 0)
12469 return 9;
12470 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12471 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12472 return 10;
12473 for (i = 0; i < pagesize; ++i)
12474 if (*(data + i) != *(data2 + i))
12475 return 11;
12477 /* Finally, make sure that changes to the mapped area do not
12478 percolate back to the file as seen by read(). (This is a bug on
12479 some variants of i386 svr4.0.) */
12480 for (i = 0; i < pagesize; ++i)
12481 *(data2 + i) = *(data2 + i) + 1;
12482 data3 = (char *) malloc (pagesize);
12483 if (!data3)
12484 return 12;
12485 if (read (fd, data3, pagesize) != pagesize)
12486 return 13;
12487 for (i = 0; i < pagesize; ++i)
12488 if (*(data + i) != *(data3 + i))
12489 return 14;
12490 close (fd);
12491 return 0;
12493 _ACEOF
12494 if ac_fn_cxx_try_run "$LINENO"; then :
12495 ac_cv_func_mmap_fixed_mapped=yes
12496 else
12497 ac_cv_func_mmap_fixed_mapped=no
12499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12500 conftest.$ac_objext conftest.beam conftest.$ac_ext
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12505 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12506 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12508 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12511 rm -f conftest.mmap conftest.txt
12513 for ac_func in munmap sysconf
12514 do :
12515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12516 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12517 eval as_val=\$$as_ac_var
12518 if test "x$as_val" = x""yes; then :
12519 cat >>confdefs.h <<_ACEOF
12520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12521 _ACEOF
12524 done
12526 if test $ac_cv_func_sysconf = yes; then :
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12529 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12534 #include <unistd.h>
12537 main ()
12540 return sysconf(_SC_PAGESIZE);
12543 return 0;
12546 _ACEOF
12547 if ac_fn_cxx_try_link "$LINENO"; then :
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12550 $as_echo "_SC_PAGESIZE" >&6; }
12552 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12555 else
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12561 #include <unistd.h>
12564 main ()
12567 return sysconf(_SC_PAGE_SIZE);
12570 return 0;
12573 _ACEOF
12574 if ac_fn_cxx_try_link "$LINENO"; then :
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12577 $as_echo "_SC_PAGE_SIZE" >&6; }
12579 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12582 else
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12585 $as_echo "none" >&6; }
12588 rm -f core conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
12592 rm -f core conftest.err conftest.$ac_objext \
12593 conftest$ac_exeext conftest.$ac_ext
12602 # Look for a way to preallocate disk space for files.
12603 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12606 $as_echo_n "checking for fallocate... " >&6; }
12607 mule_backup_CPPFLAGS="$CPPFLAGS"
12608 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12613 #ifndef _GNU_SOURCE
12614 # define _GNU_SOURCE
12615 #endif
12616 #ifdef HAVE_FCNTL_H
12617 # include <fcntl.h>
12618 #endif
12619 #include <linux/falloc.h>
12622 main ()
12625 fallocate(0, 0, 0, 0);
12628 return 0;
12631 _ACEOF
12632 if ac_fn_cxx_try_link "$LINENO"; then :
12635 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638 $as_echo "yes" >&6; }
12640 else
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643 $as_echo "no" >&6; }
12646 rm -f core conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12648 CPPFLAGS="$mule_backup_CPPFLAGS"
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12652 $as_echo_n "checking for SYS_fallocate... " >&6; }
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12657 #include <sys/syscall.h>
12658 #include <sys/types.h>
12659 #include <unistd.h>
12662 main ()
12665 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12668 return 0;
12671 _ACEOF
12672 if ac_fn_cxx_try_link "$LINENO"; then :
12675 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12678 $as_echo "yes" >&6; }
12680 else
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683 $as_echo "no" >&6; }
12686 rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12690 $as_echo_n "checking for posix_fallocate... " >&6; }
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12695 #define _XOPEN_SOURCE 600
12696 #include <stdlib.h>
12697 #ifdef HAVE_FCNTL_H
12698 # include <fcntl.h>
12699 #endif
12702 main ()
12705 posix_fallocate(0, 0, 0);
12708 return 0;
12711 _ACEOF
12712 if ac_fn_cxx_try_link "$LINENO"; then :
12715 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12718 $as_echo "yes" >&6; }
12720 else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12726 rm -f core conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12732 ac_ext=c
12733 ac_cpp='$CPP $CPPFLAGS'
12734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12738 # Checking Native Language Support
12741 MKINSTALLDIRS=
12742 if test -n "$ac_aux_dir"; then
12743 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12745 if test -z "$MKINSTALLDIRS"; then
12746 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12753 # Extract the first word of "msgfmt", so it can be a program name with args.
12754 set dummy msgfmt; ac_word=$2
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756 $as_echo_n "checking for $ac_word... " >&6; }
12757 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12758 $as_echo_n "(cached) " >&6
12759 else
12760 case "$MSGFMT" in
12762 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12766 for ac_dir in $PATH; do
12767 test -z "$ac_dir" && ac_dir=.
12768 if test -f $ac_dir/$ac_word; then
12769 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12770 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12771 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12772 break
12775 done
12776 IFS="$ac_save_ifs"
12777 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12779 esac
12781 MSGFMT="$ac_cv_path_MSGFMT"
12782 if test "$MSGFMT" != ":"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12784 $as_echo "$MSGFMT" >&6; }
12785 else
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12790 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12791 set dummy gmsgfmt; ac_word=$2
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793 $as_echo_n "checking for $ac_word... " >&6; }
12794 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
12796 else
12797 case $GMSGFMT in
12798 [\\/]* | ?:[\\/]*)
12799 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803 for as_dir in $PATH
12805 IFS=$as_save_IFS
12806 test -z "$as_dir" && as_dir=.
12807 for ac_exec_ext in '' $ac_executable_extensions; do
12808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12809 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12811 break 2
12813 done
12814 done
12815 IFS=$as_save_IFS
12817 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12819 esac
12821 GMSGFMT=$ac_cv_path_GMSGFMT
12822 if test -n "$GMSGFMT"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12824 $as_echo "$GMSGFMT" >&6; }
12825 else
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12832 # Extract the first word of "xgettext", so it can be a program name with args.
12833 set dummy xgettext; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835 $as_echo_n "checking for $ac_word... " >&6; }
12836 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 case "$XGETTEXT" in
12841 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12845 for ac_dir in $PATH; do
12846 test -z "$ac_dir" && ac_dir=.
12847 if test -f $ac_dir/$ac_word; then
12848 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12849 (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
12850 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12851 break
12854 done
12855 IFS="$ac_save_ifs"
12856 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12858 esac
12860 XGETTEXT="$ac_cv_path_XGETTEXT"
12861 if test "$XGETTEXT" != ":"; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12863 $as_echo "$XGETTEXT" >&6; }
12864 else
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12869 rm -f messages.po
12871 # Extract the first word of "msgmerge", so it can be a program name with args.
12872 set dummy msgmerge; ac_word=$2
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12874 $as_echo_n "checking for $ac_word... " >&6; }
12875 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878 case "$MSGMERGE" in
12880 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12884 for ac_dir in $PATH; do
12885 test -z "$ac_dir" && ac_dir=.
12886 if test -f $ac_dir/$ac_word; then
12887 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12888 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
12889 break
12892 done
12893 IFS="$ac_save_ifs"
12894 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12896 esac
12898 MSGMERGE="$ac_cv_path_MSGMERGE"
12899 if test "$MSGMERGE" != ":"; then
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12901 $as_echo "$MSGMERGE" >&6; }
12902 else
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12904 $as_echo "no" >&6; }
12908 if test "$GMSGFMT" != ":"; then
12909 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12910 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12912 else
12913 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12915 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12916 GMSGFMT=":"
12920 if test "$XGETTEXT" != ":"; then
12921 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12922 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12924 else
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12926 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12927 XGETTEXT=":"
12929 rm -f messages.po
12932 ac_config_commands="$ac_config_commands default-1"
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
12937 $as_echo_n "checking for strerror in -lcposix... " >&6; }
12938 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 ac_check_lib_save_LIBS=$LIBS
12942 LIBS="-lcposix $LIBS"
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12946 /* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12949 #ifdef __cplusplus
12950 extern "C"
12951 #endif
12952 char strerror ();
12954 main ()
12956 return strerror ();
12958 return 0;
12960 _ACEOF
12961 if ac_fn_c_try_link "$LINENO"; then :
12962 ac_cv_lib_cposix_strerror=yes
12963 else
12964 ac_cv_lib_cposix_strerror=no
12966 rm -f core conftest.err conftest.$ac_objext \
12967 conftest$ac_exeext conftest.$ac_ext
12968 LIBS=$ac_check_lib_save_LIBS
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
12971 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
12972 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
12973 LIBS="$LIBS -lcposix"
12979 for ac_func in getpagesize
12980 do :
12981 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12982 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12983 cat >>confdefs.h <<_ACEOF
12984 #define HAVE_GETPAGESIZE 1
12985 _ACEOF
12988 done
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12991 $as_echo_n "checking for working mmap... " >&6; }
12992 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12993 $as_echo_n "(cached) " >&6
12994 else
12995 if test "$cross_compiling" = yes; then :
12996 ac_cv_func_mmap_fixed_mapped=no
12997 else
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000 $ac_includes_default
13001 /* malloc might have been renamed as rpl_malloc. */
13002 #undef malloc
13004 /* Thanks to Mike Haertel and Jim Avera for this test.
13005 Here is a matrix of mmap possibilities:
13006 mmap private not fixed
13007 mmap private fixed at somewhere currently unmapped
13008 mmap private fixed at somewhere already mapped
13009 mmap shared not fixed
13010 mmap shared fixed at somewhere currently unmapped
13011 mmap shared fixed at somewhere already mapped
13012 For private mappings, we should verify that changes cannot be read()
13013 back from the file, nor mmap's back from the file at a different
13014 address. (There have been systems where private was not correctly
13015 implemented like the infamous i386 svr4.0, and systems where the
13016 VM page cache was not coherent with the file system buffer cache
13017 like early versions of FreeBSD and possibly contemporary NetBSD.)
13018 For shared mappings, we should conversely verify that changes get
13019 propagated back to all the places they're supposed to be.
13021 Grep wants private fixed already mapped.
13022 The main things grep needs to know about mmap are:
13023 * does it exist and is it safe to write into the mmap'd area
13024 * how to use it (BSD variants) */
13026 #include <fcntl.h>
13027 #include <sys/mman.h>
13029 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13030 char *malloc ();
13031 #endif
13033 /* This mess was copied from the GNU getpagesize.h. */
13034 #ifndef HAVE_GETPAGESIZE
13035 # ifdef _SC_PAGESIZE
13036 # define getpagesize() sysconf(_SC_PAGESIZE)
13037 # else /* no _SC_PAGESIZE */
13038 # ifdef HAVE_SYS_PARAM_H
13039 # include <sys/param.h>
13040 # ifdef EXEC_PAGESIZE
13041 # define getpagesize() EXEC_PAGESIZE
13042 # else /* no EXEC_PAGESIZE */
13043 # ifdef NBPG
13044 # define getpagesize() NBPG * CLSIZE
13045 # ifndef CLSIZE
13046 # define CLSIZE 1
13047 # endif /* no CLSIZE */
13048 # else /* no NBPG */
13049 # ifdef NBPC
13050 # define getpagesize() NBPC
13051 # else /* no NBPC */
13052 # ifdef PAGESIZE
13053 # define getpagesize() PAGESIZE
13054 # endif /* PAGESIZE */
13055 # endif /* no NBPC */
13056 # endif /* no NBPG */
13057 # endif /* no EXEC_PAGESIZE */
13058 # else /* no HAVE_SYS_PARAM_H */
13059 # define getpagesize() 8192 /* punt totally */
13060 # endif /* no HAVE_SYS_PARAM_H */
13061 # endif /* no _SC_PAGESIZE */
13063 #endif /* no HAVE_GETPAGESIZE */
13066 main ()
13068 char *data, *data2, *data3;
13069 int i, pagesize;
13070 int fd, fd2;
13072 pagesize = getpagesize ();
13074 /* First, make a file with some known garbage in it. */
13075 data = (char *) malloc (pagesize);
13076 if (!data)
13077 return 1;
13078 for (i = 0; i < pagesize; ++i)
13079 *(data + i) = rand ();
13080 umask (0);
13081 fd = creat ("conftest.mmap", 0600);
13082 if (fd < 0)
13083 return 2;
13084 if (write (fd, data, pagesize) != pagesize)
13085 return 3;
13086 close (fd);
13088 /* Next, check that the tail of a page is zero-filled. File must have
13089 non-zero length, otherwise we risk SIGBUS for entire page. */
13090 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13091 if (fd2 < 0)
13092 return 4;
13093 data2 = "";
13094 if (write (fd2, data2, 1) != 1)
13095 return 5;
13096 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13097 if (data2 == MAP_FAILED)
13098 return 6;
13099 for (i = 0; i < pagesize; ++i)
13100 if (*(data2 + i))
13101 return 7;
13102 close (fd2);
13103 if (munmap (data2, pagesize))
13104 return 8;
13106 /* Next, try to mmap the file at a fixed address which already has
13107 something else allocated at it. If we can, also make sure that
13108 we see the same garbage. */
13109 fd = open ("conftest.mmap", O_RDWR);
13110 if (fd < 0)
13111 return 9;
13112 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13113 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13114 return 10;
13115 for (i = 0; i < pagesize; ++i)
13116 if (*(data + i) != *(data2 + i))
13117 return 11;
13119 /* Finally, make sure that changes to the mapped area do not
13120 percolate back to the file as seen by read(). (This is a bug on
13121 some variants of i386 svr4.0.) */
13122 for (i = 0; i < pagesize; ++i)
13123 *(data2 + i) = *(data2 + i) + 1;
13124 data3 = (char *) malloc (pagesize);
13125 if (!data3)
13126 return 12;
13127 if (read (fd, data3, pagesize) != pagesize)
13128 return 13;
13129 for (i = 0; i < pagesize; ++i)
13130 if (*(data + i) != *(data3 + i))
13131 return 14;
13132 close (fd);
13133 return 0;
13135 _ACEOF
13136 if ac_fn_c_try_run "$LINENO"; then :
13137 ac_cv_func_mmap_fixed_mapped=yes
13138 else
13139 ac_cv_func_mmap_fixed_mapped=no
13141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13142 conftest.$ac_objext conftest.beam conftest.$ac_ext
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13147 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13148 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13150 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13153 rm -f conftest.mmap conftest.txt
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13157 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13158 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13164 #include <features.h>
13165 #ifdef __GNU_LIBRARY__
13166 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13167 Lucky GNU user
13168 #endif
13169 #endif
13171 _ACEOF
13172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13173 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
13174 ac_cv_gnu_library_2_1=yes
13175 else
13176 ac_cv_gnu_library_2_1=no
13178 rm -f conftest*
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13184 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13186 GLIBC21="$ac_cv_gnu_library_2_1"
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13192 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13193 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13197 if test "$cross_compiling" = yes; then :
13199 # Guess based on the CPU.
13200 case "$host_cpu" in
13201 alpha* | i3456786 | m68k | s390*)
13202 gt_cv_int_divbyzero_sigfpe="guessing yes";;
13204 gt_cv_int_divbyzero_sigfpe="guessing no";;
13205 esac
13207 else
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13211 #include <stdlib.h>
13212 #include <signal.h>
13214 static void
13215 #ifdef __cplusplus
13216 sigfpe_handler (int sig)
13217 #else
13218 sigfpe_handler (sig) int sig;
13219 #endif
13221 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13222 exit (sig != SIGFPE);
13225 int x = 1;
13226 int y = 0;
13227 int z;
13228 int nan;
13230 int main ()
13232 signal (SIGFPE, sigfpe_handler);
13233 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13234 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13235 signal (SIGTRAP, sigfpe_handler);
13236 #endif
13237 /* Linux/SPARC yields signal SIGILL. */
13238 #if defined (__sparc__) && defined (__linux__)
13239 signal (SIGILL, sigfpe_handler);
13240 #endif
13242 z = x / y;
13243 nan = y / y;
13244 exit (1);
13247 _ACEOF
13248 if ac_fn_c_try_run "$LINENO"; then :
13249 gt_cv_int_divbyzero_sigfpe=yes
13250 else
13251 gt_cv_int_divbyzero_sigfpe=no
13253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13254 conftest.$ac_objext conftest.beam conftest.$ac_ext
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13260 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13261 case "$gt_cv_int_divbyzero_sigfpe" in
13262 *yes) value=1;;
13263 *) value=0;;
13264 esac
13266 cat >>confdefs.h <<_ACEOF
13267 #define INTDIV0_RAISES_SIGFPE $value
13268 _ACEOF
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13273 $as_echo_n "checking for inttypes.h... " >&6; }
13274 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #include <sys/types.h>
13280 #include <inttypes.h>
13282 main ()
13284 uintmax_t i = (uintmax_t) -1;
13286 return 0;
13288 _ACEOF
13289 if ac_fn_c_try_compile "$LINENO"; then :
13290 jm_ac_cv_header_inttypes_h=yes
13291 else
13292 jm_ac_cv_header_inttypes_h=no
13294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13297 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13298 if test $jm_ac_cv_header_inttypes_h = yes; then
13300 cat >>confdefs.h <<_ACEOF
13301 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13302 _ACEOF
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13308 $as_echo_n "checking for stdint.h... " >&6; }
13309 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
13310 $as_echo_n "(cached) " >&6
13311 else
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13314 #include <sys/types.h>
13315 #include <stdint.h>
13317 main ()
13319 uintmax_t i = (uintmax_t) -1;
13321 return 0;
13323 _ACEOF
13324 if ac_fn_c_try_compile "$LINENO"; then :
13325 jm_ac_cv_header_stdint_h=yes
13326 else
13327 jm_ac_cv_header_stdint_h=no
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13332 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13333 if test $jm_ac_cv_header_stdint_h = yes; then
13335 cat >>confdefs.h <<_ACEOF
13336 #define HAVE_STDINT_H_WITH_UINTMAX 1
13337 _ACEOF
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13343 $as_echo_n "checking for unsigned long long... " >&6; }
13344 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13349 unsigned long long ull = 1; int i = 63;
13351 main ()
13353 unsigned long long ullmax = (unsigned long long) -1;
13354 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13356 return 0;
13358 _ACEOF
13359 if ac_fn_c_try_link "$LINENO"; then :
13360 ac_cv_type_unsigned_long_long=yes
13361 else
13362 ac_cv_type_unsigned_long_long=no
13364 rm -f core conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13368 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13369 if test $ac_cv_type_unsigned_long_long = yes; then
13371 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13378 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
13380 test $ac_cv_type_unsigned_long_long = yes \
13381 && ac_type='unsigned long long' \
13382 || ac_type='unsigned long'
13384 cat >>confdefs.h <<_ACEOF
13385 #define uintmax_t $ac_type
13386 _ACEOF
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13392 $as_echo_n "checking for inttypes.h... " >&6; }
13393 if test "${gt_cv_header_inttypes_h+set}" = set; then :
13394 $as_echo_n "(cached) " >&6
13395 else
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13399 #include <sys/types.h>
13400 #include <inttypes.h>
13402 main ()
13406 return 0;
13408 _ACEOF
13409 if ac_fn_c_try_compile "$LINENO"; then :
13410 gt_cv_header_inttypes_h=yes
13411 else
13412 gt_cv_header_inttypes_h=no
13414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13418 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13419 if test $gt_cv_header_inttypes_h = yes; then
13421 cat >>confdefs.h <<_ACEOF
13422 #define HAVE_INTTYPES_H 1
13423 _ACEOF
13429 if test $gt_cv_header_inttypes_h = yes; then
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13431 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13432 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
13433 $as_echo_n "(cached) " >&6
13434 else
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 #include <inttypes.h>
13439 #ifdef PRId32
13440 char *p = PRId32;
13441 #endif
13444 main ()
13448 return 0;
13450 _ACEOF
13451 if ac_fn_c_try_compile "$LINENO"; then :
13452 gt_cv_inttypes_pri_broken=no
13453 else
13454 gt_cv_inttypes_pri_broken=yes
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13460 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13462 if test "$gt_cv_inttypes_pri_broken" = yes; then
13464 cat >>confdefs.h <<_ACEOF
13465 #define PRI_MACROS_BROKEN 1
13466 _ACEOF
13471 if test "X$prefix" = "XNONE"; then
13472 acl_final_prefix="$ac_default_prefix"
13473 else
13474 acl_final_prefix="$prefix"
13476 if test "X$exec_prefix" = "XNONE"; then
13477 acl_final_exec_prefix='${prefix}'
13478 else
13479 acl_final_exec_prefix="$exec_prefix"
13481 acl_save_prefix="$prefix"
13482 prefix="$acl_final_prefix"
13483 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13484 prefix="$acl_save_prefix"
13487 # Check whether --with-gnu-ld was given.
13488 if test "${with_gnu_ld+set}" = set; then :
13489 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13490 else
13491 with_gnu_ld=no
13494 ac_prog=ld
13495 if test "$GCC" = yes; then
13496 # Check if gcc -print-prog-name=ld gives a path.
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13498 $as_echo_n "checking for ld used by GCC... " >&6; }
13499 case $host in
13500 *-*-mingw*)
13501 # gcc leaves a trailing carriage return which upsets mingw
13502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13505 esac
13506 case $ac_prog in
13507 # Accept absolute paths.
13508 [\\/]* | [A-Za-z]:[\\/]*)
13509 re_direlt='/[^/][^/]*/\.\./'
13510 # Canonicalize the path of ld
13511 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13512 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13513 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13514 done
13515 test -z "$LD" && LD="$ac_prog"
13518 # If it fails, then pretend we aren't using GCC.
13519 ac_prog=ld
13522 # If it is relative, then search for the first ld in PATH.
13523 with_gnu_ld=unknown
13525 esac
13526 elif test "$with_gnu_ld" = yes; then
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13528 $as_echo_n "checking for GNU ld... " >&6; }
13529 else
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13531 $as_echo_n "checking for non-GNU ld... " >&6; }
13533 if test "${acl_cv_path_LD+set}" = set; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 if test -z "$LD"; then
13537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13538 for ac_dir in $PATH; do
13539 test -z "$ac_dir" && ac_dir=.
13540 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13541 acl_cv_path_LD="$ac_dir/$ac_prog"
13542 # Check to see if the program is GNU ld. I'd rather use --version,
13543 # but apparently some GNU ld's only accept -v.
13544 # Break only if it was the GNU/non-GNU ld that we prefer.
13545 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13546 test "$with_gnu_ld" != no && break
13547 else
13548 test "$with_gnu_ld" != yes && break
13551 done
13552 IFS="$ac_save_ifs"
13553 else
13554 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13558 LD="$acl_cv_path_LD"
13559 if test -n "$LD"; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13561 $as_echo "$LD" >&6; }
13562 else
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564 $as_echo "no" >&6; }
13566 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13568 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13569 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13573 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13574 acl_cv_prog_gnu_ld=yes
13575 else
13576 acl_cv_prog_gnu_ld=no
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13580 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13581 with_gnu_ld=$acl_cv_prog_gnu_ld
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13586 $as_echo_n "checking for shared library run path origin... " >&6; }
13587 if test "${acl_cv_rpath+set}" = set; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13591 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13592 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13593 . ./conftest.sh
13594 rm -f ./conftest.sh
13595 acl_cv_rpath=done
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13599 $as_echo "$acl_cv_rpath" >&6; }
13600 wl="$acl_cv_wl"
13601 libext="$acl_cv_libext"
13602 shlibext="$acl_cv_shlibext"
13603 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13604 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13605 hardcode_direct="$acl_cv_hardcode_direct"
13606 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13607 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
13608 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
13609 # Check whether --enable-rpath was given.
13610 if test "${enable_rpath+set}" = set; then :
13611 enableval=$enable_rpath; :
13612 else
13613 enable_rpath=yes
13623 use_additional=yes
13625 acl_save_prefix="$prefix"
13626 prefix="$acl_final_prefix"
13627 acl_save_exec_prefix="$exec_prefix"
13628 exec_prefix="$acl_final_exec_prefix"
13630 eval additional_includedir=\"$includedir\"
13631 eval additional_libdir=\"$libdir\"
13633 exec_prefix="$acl_save_exec_prefix"
13634 prefix="$acl_save_prefix"
13637 # Check whether --with-libiconv-prefix was given.
13638 if test "${with_libiconv_prefix+set}" = set; then :
13639 withval=$with_libiconv_prefix;
13640 if test "X$withval" = "Xno"; then
13641 use_additional=no
13642 else
13643 if test "X$withval" = "X"; then
13645 acl_save_prefix="$prefix"
13646 prefix="$acl_final_prefix"
13647 acl_save_exec_prefix="$exec_prefix"
13648 exec_prefix="$acl_final_exec_prefix"
13650 eval additional_includedir=\"$includedir\"
13651 eval additional_libdir=\"$libdir\"
13653 exec_prefix="$acl_save_exec_prefix"
13654 prefix="$acl_save_prefix"
13656 else
13657 additional_includedir="$withval/include"
13658 additional_libdir="$withval/lib"
13664 LIBICONV=
13665 LTLIBICONV=
13666 INCICONV=
13667 rpathdirs=
13668 ltrpathdirs=
13669 names_already_handled=
13670 names_next_round='iconv '
13671 while test -n "$names_next_round"; do
13672 names_this_round="$names_next_round"
13673 names_next_round=
13674 for name in $names_this_round; do
13675 already_handled=
13676 for n in $names_already_handled; do
13677 if test "$n" = "$name"; then
13678 already_handled=yes
13679 break
13681 done
13682 if test -z "$already_handled"; then
13683 names_already_handled="$names_already_handled $name"
13684 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13685 eval value=\"\$HAVE_LIB$uppername\"
13686 if test -n "$value"; then
13687 if test "$value" = yes; then
13688 eval value=\"\$LIB$uppername\"
13689 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13690 eval value=\"\$LTLIB$uppername\"
13691 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13692 else
13695 else
13696 found_dir=
13697 found_la=
13698 found_so=
13699 found_a=
13700 if test $use_additional = yes; then
13701 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13702 found_dir="$additional_libdir"
13703 found_so="$additional_libdir/lib$name.$shlibext"
13704 if test -f "$additional_libdir/lib$name.la"; then
13705 found_la="$additional_libdir/lib$name.la"
13707 else
13708 if test -f "$additional_libdir/lib$name.$libext"; then
13709 found_dir="$additional_libdir"
13710 found_a="$additional_libdir/lib$name.$libext"
13711 if test -f "$additional_libdir/lib$name.la"; then
13712 found_la="$additional_libdir/lib$name.la"
13717 if test "X$found_dir" = "X"; then
13718 for x in $LDFLAGS $LTLIBICONV; do
13720 acl_save_prefix="$prefix"
13721 prefix="$acl_final_prefix"
13722 acl_save_exec_prefix="$exec_prefix"
13723 exec_prefix="$acl_final_exec_prefix"
13724 eval x=\"$x\"
13725 exec_prefix="$acl_save_exec_prefix"
13726 prefix="$acl_save_prefix"
13728 case "$x" in
13729 -L*)
13730 dir=`echo "X$x" | sed -e 's/^X-L//'`
13731 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13732 found_dir="$dir"
13733 found_so="$dir/lib$name.$shlibext"
13734 if test -f "$dir/lib$name.la"; then
13735 found_la="$dir/lib$name.la"
13737 else
13738 if test -f "$dir/lib$name.$libext"; then
13739 found_dir="$dir"
13740 found_a="$dir/lib$name.$libext"
13741 if test -f "$dir/lib$name.la"; then
13742 found_la="$dir/lib$name.la"
13747 esac
13748 if test "X$found_dir" != "X"; then
13749 break
13751 done
13753 if test "X$found_dir" != "X"; then
13754 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13755 if test "X$found_so" != "X"; then
13756 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13758 else
13759 haveit=
13760 for x in $ltrpathdirs; do
13761 if test "X$x" = "X$found_dir"; then
13762 haveit=yes
13763 break
13765 done
13766 if test -z "$haveit"; then
13767 ltrpathdirs="$ltrpathdirs $found_dir"
13769 if test "$hardcode_direct" = yes; then
13770 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13771 else
13772 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13774 haveit=
13775 for x in $rpathdirs; do
13776 if test "X$x" = "X$found_dir"; then
13777 haveit=yes
13778 break
13780 done
13781 if test -z "$haveit"; then
13782 rpathdirs="$rpathdirs $found_dir"
13784 else
13785 haveit=
13786 for x in $LDFLAGS $LIBICONV; do
13788 acl_save_prefix="$prefix"
13789 prefix="$acl_final_prefix"
13790 acl_save_exec_prefix="$exec_prefix"
13791 exec_prefix="$acl_final_exec_prefix"
13792 eval x=\"$x\"
13793 exec_prefix="$acl_save_exec_prefix"
13794 prefix="$acl_save_prefix"
13796 if test "X$x" = "X-L$found_dir"; then
13797 haveit=yes
13798 break
13800 done
13801 if test -z "$haveit"; then
13802 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13804 if test "$hardcode_minus_L" != no; then
13805 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13806 else
13807 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13812 else
13813 if test "X$found_a" != "X"; then
13814 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13815 else
13816 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13819 additional_includedir=
13820 case "$found_dir" in
13821 */lib | */lib/)
13822 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13823 additional_includedir="$basedir/include"
13825 esac
13826 if test "X$additional_includedir" != "X"; then
13827 if test "X$additional_includedir" != "X/usr/include"; then
13828 haveit=
13829 if test "X$additional_includedir" = "X/usr/local/include"; then
13830 if test -n "$GCC"; then
13831 case $host_os in
13832 linux*) haveit=yes;;
13833 esac
13836 if test -z "$haveit"; then
13837 for x in $CPPFLAGS $INCICONV; do
13839 acl_save_prefix="$prefix"
13840 prefix="$acl_final_prefix"
13841 acl_save_exec_prefix="$exec_prefix"
13842 exec_prefix="$acl_final_exec_prefix"
13843 eval x=\"$x\"
13844 exec_prefix="$acl_save_exec_prefix"
13845 prefix="$acl_save_prefix"
13847 if test "X$x" = "X-I$additional_includedir"; then
13848 haveit=yes
13849 break
13851 done
13852 if test -z "$haveit"; then
13853 if test -d "$additional_includedir"; then
13854 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13860 if test -n "$found_la"; then
13861 save_libdir="$libdir"
13862 case "$found_la" in
13863 */* | *\\*) . "$found_la" ;;
13864 *) . "./$found_la" ;;
13865 esac
13866 libdir="$save_libdir"
13867 for dep in $dependency_libs; do
13868 case "$dep" in
13869 -L*)
13870 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13871 if test "X$additional_libdir" != "X/usr/lib"; then
13872 haveit=
13873 if test "X$additional_libdir" = "X/usr/local/lib"; then
13874 if test -n "$GCC"; then
13875 case $host_os in
13876 linux*) haveit=yes;;
13877 esac
13880 if test -z "$haveit"; then
13881 haveit=
13882 for x in $LDFLAGS $LIBICONV; do
13884 acl_save_prefix="$prefix"
13885 prefix="$acl_final_prefix"
13886 acl_save_exec_prefix="$exec_prefix"
13887 exec_prefix="$acl_final_exec_prefix"
13888 eval x=\"$x\"
13889 exec_prefix="$acl_save_exec_prefix"
13890 prefix="$acl_save_prefix"
13892 if test "X$x" = "X-L$additional_libdir"; then
13893 haveit=yes
13894 break
13896 done
13897 if test -z "$haveit"; then
13898 if test -d "$additional_libdir"; then
13899 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13902 haveit=
13903 for x in $LDFLAGS $LTLIBICONV; do
13905 acl_save_prefix="$prefix"
13906 prefix="$acl_final_prefix"
13907 acl_save_exec_prefix="$exec_prefix"
13908 exec_prefix="$acl_final_exec_prefix"
13909 eval x=\"$x\"
13910 exec_prefix="$acl_save_exec_prefix"
13911 prefix="$acl_save_prefix"
13913 if test "X$x" = "X-L$additional_libdir"; then
13914 haveit=yes
13915 break
13917 done
13918 if test -z "$haveit"; then
13919 if test -d "$additional_libdir"; then
13920 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13926 -R*)
13927 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13928 if test "$enable_rpath" != no; then
13929 haveit=
13930 for x in $rpathdirs; do
13931 if test "X$x" = "X$dir"; then
13932 haveit=yes
13933 break
13935 done
13936 if test -z "$haveit"; then
13937 rpathdirs="$rpathdirs $dir"
13939 haveit=
13940 for x in $ltrpathdirs; do
13941 if test "X$x" = "X$dir"; then
13942 haveit=yes
13943 break
13945 done
13946 if test -z "$haveit"; then
13947 ltrpathdirs="$ltrpathdirs $dir"
13951 -l*)
13952 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13954 *.la)
13955 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13958 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13959 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13961 esac
13962 done
13964 else
13965 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13966 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13970 done
13971 done
13972 if test "X$rpathdirs" != "X"; then
13973 if test -n "$hardcode_libdir_separator"; then
13974 alldirs=
13975 for found_dir in $rpathdirs; do
13976 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13977 done
13978 acl_save_libdir="$libdir"
13979 libdir="$alldirs"
13980 eval flag=\"$hardcode_libdir_flag_spec\"
13981 libdir="$acl_save_libdir"
13982 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13983 else
13984 for found_dir in $rpathdirs; do
13985 acl_save_libdir="$libdir"
13986 libdir="$found_dir"
13987 eval flag=\"$hardcode_libdir_flag_spec\"
13988 libdir="$acl_save_libdir"
13989 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13990 done
13993 if test "X$ltrpathdirs" != "X"; then
13994 for found_dir in $ltrpathdirs; do
13995 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13996 done
14002 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14003 stdlib.h string.h unistd.h sys/param.h
14004 do :
14005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14006 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14007 eval as_val=\$$as_ac_Header
14008 if test "x$as_val" = x""yes; then :
14009 cat >>confdefs.h <<_ACEOF
14010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14011 _ACEOF
14015 done
14017 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14018 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14019 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14020 do :
14021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14022 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14023 eval as_val=\$$as_ac_var
14024 if test "x$as_val" = x""yes; then :
14025 cat >>confdefs.h <<_ACEOF
14026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14027 _ACEOF
14030 done
14038 am_save_CPPFLAGS="$CPPFLAGS"
14040 for element in $INCICONV; do
14041 haveit=
14042 for x in $CPPFLAGS; do
14044 acl_save_prefix="$prefix"
14045 prefix="$acl_final_prefix"
14046 acl_save_exec_prefix="$exec_prefix"
14047 exec_prefix="$acl_final_exec_prefix"
14048 eval x=\"$x\"
14049 exec_prefix="$acl_save_exec_prefix"
14050 prefix="$acl_save_prefix"
14052 if test "X$x" = "X$element"; then
14053 haveit=yes
14054 break
14056 done
14057 if test -z "$haveit"; then
14058 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14060 done
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14064 $as_echo_n "checking for iconv... " >&6; }
14065 if test "${am_cv_func_iconv+set}" = set; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14069 am_cv_func_iconv="no, consider installing GNU libiconv"
14070 am_cv_lib_iconv=no
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14073 #include <stdlib.h>
14074 #include <iconv.h>
14076 main ()
14078 iconv_t cd = iconv_open("","");
14079 iconv(cd,NULL,NULL,NULL,NULL);
14080 iconv_close(cd);
14082 return 0;
14084 _ACEOF
14085 if ac_fn_c_try_link "$LINENO"; then :
14086 am_cv_func_iconv=yes
14088 rm -f core conftest.err conftest.$ac_objext \
14089 conftest$ac_exeext conftest.$ac_ext
14090 if test "$am_cv_func_iconv" != yes; then
14091 am_save_LIBS="$LIBS"
14092 LIBS="$LIBS $LIBICONV"
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095 #include <stdlib.h>
14096 #include <iconv.h>
14098 main ()
14100 iconv_t cd = iconv_open("","");
14101 iconv(cd,NULL,NULL,NULL,NULL);
14102 iconv_close(cd);
14104 return 0;
14106 _ACEOF
14107 if ac_fn_c_try_link "$LINENO"; then :
14108 am_cv_lib_iconv=yes
14109 am_cv_func_iconv=yes
14111 rm -f core conftest.err conftest.$ac_objext \
14112 conftest$ac_exeext conftest.$ac_ext
14113 LIBS="$am_save_LIBS"
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14118 $as_echo "$am_cv_func_iconv" >&6; }
14119 if test "$am_cv_func_iconv" = yes; then
14121 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14124 if test "$am_cv_lib_iconv" = yes; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14126 $as_echo_n "checking how to link with libiconv... " >&6; }
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14128 $as_echo "$LIBICONV" >&6; }
14129 else
14130 CPPFLAGS="$am_save_CPPFLAGS"
14131 LIBICONV=
14132 LTLIBICONV=
14137 if test "$am_cv_func_iconv" = yes; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14139 $as_echo_n "checking for iconv declaration... " >&6; }
14140 if test "${am_cv_proto_iconv+set}" = set; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145 /* end confdefs.h. */
14147 #include <stdlib.h>
14148 #include <iconv.h>
14149 extern
14150 #ifdef __cplusplus
14152 #endif
14153 #if defined(__STDC__) || defined(__cplusplus)
14154 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14155 #else
14156 size_t iconv();
14157 #endif
14160 main ()
14164 return 0;
14166 _ACEOF
14167 if ac_fn_c_try_compile "$LINENO"; then :
14168 am_cv_proto_iconv_arg1=""
14169 else
14170 am_cv_proto_iconv_arg1="const"
14172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14173 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);"
14176 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14178 }$am_cv_proto_iconv" >&5
14179 $as_echo "${ac_t:-
14180 }$am_cv_proto_iconv" >&6; }
14182 cat >>confdefs.h <<_ACEOF
14183 #define ICONV_CONST $am_cv_proto_iconv_arg1
14184 _ACEOF
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14190 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14191 if test "${am_cv_langinfo_codeset+set}" = set; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14195 /* end confdefs.h. */
14196 #include <langinfo.h>
14198 main ()
14200 char* cs = nl_langinfo(CODESET);
14202 return 0;
14204 _ACEOF
14205 if ac_fn_c_try_link "$LINENO"; then :
14206 am_cv_langinfo_codeset=yes
14207 else
14208 am_cv_langinfo_codeset=no
14210 rm -f core conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14215 $as_echo "$am_cv_langinfo_codeset" >&6; }
14216 if test $am_cv_langinfo_codeset = yes; then
14218 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14222 if test $ac_cv_header_locale_h = yes; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14225 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14226 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
14227 $as_echo_n "(cached) " >&6
14228 else
14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h. */
14231 #include <locale.h>
14233 main ()
14235 return LC_MESSAGES
14237 return 0;
14239 _ACEOF
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 am_cv_val_LC_MESSAGES=yes
14242 else
14243 am_cv_val_LC_MESSAGES=no
14245 rm -f core conftest.err conftest.$ac_objext \
14246 conftest$ac_exeext conftest.$ac_ext
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14249 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14250 if test $am_cv_val_LC_MESSAGES = yes; then
14252 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14258 for ac_prog in bison
14260 # Extract the first word of "$ac_prog", so it can be a program name with args.
14261 set dummy $ac_prog; ac_word=$2
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263 $as_echo_n "checking for $ac_word... " >&6; }
14264 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
14265 $as_echo_n "(cached) " >&6
14266 else
14267 if test -n "$INTLBISON"; then
14268 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14269 else
14270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271 for as_dir in $PATH
14273 IFS=$as_save_IFS
14274 test -z "$as_dir" && as_dir=.
14275 for ac_exec_ext in '' $ac_executable_extensions; do
14276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14277 ac_cv_prog_INTLBISON="$ac_prog"
14278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14279 break 2
14281 done
14282 done
14283 IFS=$as_save_IFS
14287 INTLBISON=$ac_cv_prog_INTLBISON
14288 if test -n "$INTLBISON"; then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14290 $as_echo "$INTLBISON" >&6; }
14291 else
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14293 $as_echo "no" >&6; }
14297 test -n "$INTLBISON" && break
14298 done
14300 if test -z "$INTLBISON"; then
14301 ac_verc_fail=yes
14302 else
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14304 $as_echo_n "checking version of bison... " >&6; }
14305 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14306 case $ac_prog_version in
14307 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14308 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14309 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14310 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14311 esac
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14313 $as_echo "$ac_prog_version" >&6; }
14315 if test $ac_verc_fail = yes; then
14316 INTLBISON=:
14321 # Check whether --with-language was given.
14322 if test "${with_language+set}" = set; then :
14323 withval=$with_language; if test "$withval" != "all"; then :
14324 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14344 $as_echo_n "checking whether NLS is requested... " >&6; }
14345 # Check whether --enable-nls was given.
14346 if test "${enable_nls+set}" = set; then :
14347 enableval=$enable_nls; USE_NLS=$enableval
14348 else
14349 USE_NLS=yes
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14353 $as_echo "$USE_NLS" >&6; }
14357 BUILD_INCLUDED_LIBINTL=no
14358 USE_INCLUDED_LIBINTL=no
14360 LIBINTL=
14361 LTLIBINTL=
14362 POSUB=
14364 if test "$USE_NLS" = "yes"; then
14365 gt_use_preinstalled_gnugettext=no
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14368 $as_echo_n "checking whether included gettext is requested... " >&6; }
14370 # Check whether --with-included-gettext was given.
14371 if test "${with_included_gettext+set}" = set; then :
14372 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14373 else
14374 nls_cv_force_use_gnu_gettext=no
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14378 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14380 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14381 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14389 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14390 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14395 #include <libintl.h>
14396 extern int _nl_msg_cat_cntr;
14397 extern int *_nl_domain_bindings;
14399 main ()
14401 bindtextdomain ("", "");
14402 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14404 return 0;
14406 _ACEOF
14407 if ac_fn_c_try_link "$LINENO"; then :
14408 gt_cv_func_gnugettext2_libc=yes
14409 else
14410 gt_cv_func_gnugettext2_libc=no
14412 rm -f core conftest.err conftest.$ac_objext \
14413 conftest$ac_exeext conftest.$ac_ext
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14416 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14418 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14422 use_additional=yes
14424 acl_save_prefix="$prefix"
14425 prefix="$acl_final_prefix"
14426 acl_save_exec_prefix="$exec_prefix"
14427 exec_prefix="$acl_final_exec_prefix"
14429 eval additional_includedir=\"$includedir\"
14430 eval additional_libdir=\"$libdir\"
14432 exec_prefix="$acl_save_exec_prefix"
14433 prefix="$acl_save_prefix"
14436 # Check whether --with-libintl-prefix was given.
14437 if test "${with_libintl_prefix+set}" = set; then :
14438 withval=$with_libintl_prefix;
14439 if test "X$withval" = "Xno"; then
14440 use_additional=no
14441 else
14442 if test "X$withval" = "X"; then
14444 acl_save_prefix="$prefix"
14445 prefix="$acl_final_prefix"
14446 acl_save_exec_prefix="$exec_prefix"
14447 exec_prefix="$acl_final_exec_prefix"
14449 eval additional_includedir=\"$includedir\"
14450 eval additional_libdir=\"$libdir\"
14452 exec_prefix="$acl_save_exec_prefix"
14453 prefix="$acl_save_prefix"
14455 else
14456 additional_includedir="$withval/include"
14457 additional_libdir="$withval/lib"
14463 LIBINTL=
14464 LTLIBINTL=
14465 INCINTL=
14466 rpathdirs=
14467 ltrpathdirs=
14468 names_already_handled=
14469 names_next_round='intl '
14470 while test -n "$names_next_round"; do
14471 names_this_round="$names_next_round"
14472 names_next_round=
14473 for name in $names_this_round; do
14474 already_handled=
14475 for n in $names_already_handled; do
14476 if test "$n" = "$name"; then
14477 already_handled=yes
14478 break
14480 done
14481 if test -z "$already_handled"; then
14482 names_already_handled="$names_already_handled $name"
14483 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14484 eval value=\"\$HAVE_LIB$uppername\"
14485 if test -n "$value"; then
14486 if test "$value" = yes; then
14487 eval value=\"\$LIB$uppername\"
14488 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14489 eval value=\"\$LTLIB$uppername\"
14490 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14491 else
14494 else
14495 found_dir=
14496 found_la=
14497 found_so=
14498 found_a=
14499 if test $use_additional = yes; then
14500 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14501 found_dir="$additional_libdir"
14502 found_so="$additional_libdir/lib$name.$shlibext"
14503 if test -f "$additional_libdir/lib$name.la"; then
14504 found_la="$additional_libdir/lib$name.la"
14506 else
14507 if test -f "$additional_libdir/lib$name.$libext"; then
14508 found_dir="$additional_libdir"
14509 found_a="$additional_libdir/lib$name.$libext"
14510 if test -f "$additional_libdir/lib$name.la"; then
14511 found_la="$additional_libdir/lib$name.la"
14516 if test "X$found_dir" = "X"; then
14517 for x in $LDFLAGS $LTLIBINTL; do
14519 acl_save_prefix="$prefix"
14520 prefix="$acl_final_prefix"
14521 acl_save_exec_prefix="$exec_prefix"
14522 exec_prefix="$acl_final_exec_prefix"
14523 eval x=\"$x\"
14524 exec_prefix="$acl_save_exec_prefix"
14525 prefix="$acl_save_prefix"
14527 case "$x" in
14528 -L*)
14529 dir=`echo "X$x" | sed -e 's/^X-L//'`
14530 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14531 found_dir="$dir"
14532 found_so="$dir/lib$name.$shlibext"
14533 if test -f "$dir/lib$name.la"; then
14534 found_la="$dir/lib$name.la"
14536 else
14537 if test -f "$dir/lib$name.$libext"; then
14538 found_dir="$dir"
14539 found_a="$dir/lib$name.$libext"
14540 if test -f "$dir/lib$name.la"; then
14541 found_la="$dir/lib$name.la"
14546 esac
14547 if test "X$found_dir" != "X"; then
14548 break
14550 done
14552 if test "X$found_dir" != "X"; then
14553 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14554 if test "X$found_so" != "X"; then
14555 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14556 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14557 else
14558 haveit=
14559 for x in $ltrpathdirs; do
14560 if test "X$x" = "X$found_dir"; then
14561 haveit=yes
14562 break
14564 done
14565 if test -z "$haveit"; then
14566 ltrpathdirs="$ltrpathdirs $found_dir"
14568 if test "$hardcode_direct" = yes; then
14569 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14570 else
14571 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14572 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14573 haveit=
14574 for x in $rpathdirs; do
14575 if test "X$x" = "X$found_dir"; then
14576 haveit=yes
14577 break
14579 done
14580 if test -z "$haveit"; then
14581 rpathdirs="$rpathdirs $found_dir"
14583 else
14584 haveit=
14585 for x in $LDFLAGS $LIBINTL; do
14587 acl_save_prefix="$prefix"
14588 prefix="$acl_final_prefix"
14589 acl_save_exec_prefix="$exec_prefix"
14590 exec_prefix="$acl_final_exec_prefix"
14591 eval x=\"$x\"
14592 exec_prefix="$acl_save_exec_prefix"
14593 prefix="$acl_save_prefix"
14595 if test "X$x" = "X-L$found_dir"; then
14596 haveit=yes
14597 break
14599 done
14600 if test -z "$haveit"; then
14601 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14603 if test "$hardcode_minus_L" != no; then
14604 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14605 else
14606 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14611 else
14612 if test "X$found_a" != "X"; then
14613 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14614 else
14615 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14618 additional_includedir=
14619 case "$found_dir" in
14620 */lib | */lib/)
14621 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14622 additional_includedir="$basedir/include"
14624 esac
14625 if test "X$additional_includedir" != "X"; then
14626 if test "X$additional_includedir" != "X/usr/include"; then
14627 haveit=
14628 if test "X$additional_includedir" = "X/usr/local/include"; then
14629 if test -n "$GCC"; then
14630 case $host_os in
14631 linux*) haveit=yes;;
14632 esac
14635 if test -z "$haveit"; then
14636 for x in $CPPFLAGS $INCINTL; do
14638 acl_save_prefix="$prefix"
14639 prefix="$acl_final_prefix"
14640 acl_save_exec_prefix="$exec_prefix"
14641 exec_prefix="$acl_final_exec_prefix"
14642 eval x=\"$x\"
14643 exec_prefix="$acl_save_exec_prefix"
14644 prefix="$acl_save_prefix"
14646 if test "X$x" = "X-I$additional_includedir"; then
14647 haveit=yes
14648 break
14650 done
14651 if test -z "$haveit"; then
14652 if test -d "$additional_includedir"; then
14653 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14659 if test -n "$found_la"; then
14660 save_libdir="$libdir"
14661 case "$found_la" in
14662 */* | *\\*) . "$found_la" ;;
14663 *) . "./$found_la" ;;
14664 esac
14665 libdir="$save_libdir"
14666 for dep in $dependency_libs; do
14667 case "$dep" in
14668 -L*)
14669 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14670 if test "X$additional_libdir" != "X/usr/lib"; then
14671 haveit=
14672 if test "X$additional_libdir" = "X/usr/local/lib"; then
14673 if test -n "$GCC"; then
14674 case $host_os in
14675 linux*) haveit=yes;;
14676 esac
14679 if test -z "$haveit"; then
14680 haveit=
14681 for x in $LDFLAGS $LIBINTL; do
14683 acl_save_prefix="$prefix"
14684 prefix="$acl_final_prefix"
14685 acl_save_exec_prefix="$exec_prefix"
14686 exec_prefix="$acl_final_exec_prefix"
14687 eval x=\"$x\"
14688 exec_prefix="$acl_save_exec_prefix"
14689 prefix="$acl_save_prefix"
14691 if test "X$x" = "X-L$additional_libdir"; then
14692 haveit=yes
14693 break
14695 done
14696 if test -z "$haveit"; then
14697 if test -d "$additional_libdir"; then
14698 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14701 haveit=
14702 for x in $LDFLAGS $LTLIBINTL; do
14704 acl_save_prefix="$prefix"
14705 prefix="$acl_final_prefix"
14706 acl_save_exec_prefix="$exec_prefix"
14707 exec_prefix="$acl_final_exec_prefix"
14708 eval x=\"$x\"
14709 exec_prefix="$acl_save_exec_prefix"
14710 prefix="$acl_save_prefix"
14712 if test "X$x" = "X-L$additional_libdir"; then
14713 haveit=yes
14714 break
14716 done
14717 if test -z "$haveit"; then
14718 if test -d "$additional_libdir"; then
14719 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14725 -R*)
14726 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14727 if test "$enable_rpath" != no; then
14728 haveit=
14729 for x in $rpathdirs; do
14730 if test "X$x" = "X$dir"; then
14731 haveit=yes
14732 break
14734 done
14735 if test -z "$haveit"; then
14736 rpathdirs="$rpathdirs $dir"
14738 haveit=
14739 for x in $ltrpathdirs; do
14740 if test "X$x" = "X$dir"; then
14741 haveit=yes
14742 break
14744 done
14745 if test -z "$haveit"; then
14746 ltrpathdirs="$ltrpathdirs $dir"
14750 -l*)
14751 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14753 *.la)
14754 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14757 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14758 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14760 esac
14761 done
14763 else
14764 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14765 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14769 done
14770 done
14771 if test "X$rpathdirs" != "X"; then
14772 if test -n "$hardcode_libdir_separator"; then
14773 alldirs=
14774 for found_dir in $rpathdirs; do
14775 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14776 done
14777 acl_save_libdir="$libdir"
14778 libdir="$alldirs"
14779 eval flag=\"$hardcode_libdir_flag_spec\"
14780 libdir="$acl_save_libdir"
14781 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14782 else
14783 for found_dir in $rpathdirs; do
14784 acl_save_libdir="$libdir"
14785 libdir="$found_dir"
14786 eval flag=\"$hardcode_libdir_flag_spec\"
14787 libdir="$acl_save_libdir"
14788 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14789 done
14792 if test "X$ltrpathdirs" != "X"; then
14793 for found_dir in $ltrpathdirs; do
14794 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14795 done
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14799 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14800 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
14801 $as_echo_n "(cached) " >&6
14802 else
14803 gt_save_CPPFLAGS="$CPPFLAGS"
14804 CPPFLAGS="$CPPFLAGS $INCINTL"
14805 gt_save_LIBS="$LIBS"
14806 LIBS="$LIBS $LIBINTL"
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14809 #include <libintl.h>
14810 extern int _nl_msg_cat_cntr;
14811 extern
14812 #ifdef __cplusplus
14814 #endif
14815 const char *_nl_expand_alias ();
14817 main ()
14819 bindtextdomain ("", "");
14820 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14822 return 0;
14824 _ACEOF
14825 if ac_fn_c_try_link "$LINENO"; then :
14826 gt_cv_func_gnugettext2_libintl=yes
14827 else
14828 gt_cv_func_gnugettext2_libintl=no
14830 rm -f core conftest.err conftest.$ac_objext \
14831 conftest$ac_exeext conftest.$ac_ext
14832 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14833 LIBS="$LIBS $LIBICONV"
14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835 /* end confdefs.h. */
14836 #include <libintl.h>
14837 extern int _nl_msg_cat_cntr;
14838 extern
14839 #ifdef __cplusplus
14841 #endif
14842 const char *_nl_expand_alias ();
14844 main ()
14846 bindtextdomain ("", "");
14847 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14849 return 0;
14851 _ACEOF
14852 if ac_fn_c_try_link "$LINENO"; then :
14853 LIBINTL="$LIBINTL $LIBICONV"
14854 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14855 gt_cv_func_gnugettext2_libintl=yes
14858 rm -f core conftest.err conftest.$ac_objext \
14859 conftest$ac_exeext conftest.$ac_ext
14861 CPPFLAGS="$gt_save_CPPFLAGS"
14862 LIBS="$gt_save_LIBS"
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14865 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14868 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14869 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14870 && test "$PACKAGE" != gettext; }; then
14871 gt_use_preinstalled_gnugettext=yes
14872 else
14873 LIBINTL=
14874 LTLIBINTL=
14875 INCINTL=
14879 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14880 nls_cv_use_gnu_gettext=yes
14884 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14885 INTLOBJS="\$(GETTOBJS)"
14886 BUILD_INCLUDED_LIBINTL=yes
14887 USE_INCLUDED_LIBINTL=yes
14888 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14889 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14890 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14893 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14894 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14895 CATOBJEXT=.gmo
14899 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14900 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14902 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14904 else
14905 USE_NLS=no
14909 if test "$USE_NLS" = "yes"; then
14911 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14912 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14914 $as_echo_n "checking how to link with libintl... " >&6; }
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14916 $as_echo "$LIBINTL" >&6; }
14918 for element in $INCINTL; do
14919 haveit=
14920 for x in $CPPFLAGS; do
14922 acl_save_prefix="$prefix"
14923 prefix="$acl_final_prefix"
14924 acl_save_exec_prefix="$exec_prefix"
14925 exec_prefix="$acl_final_exec_prefix"
14926 eval x=\"$x\"
14927 exec_prefix="$acl_save_exec_prefix"
14928 prefix="$acl_save_prefix"
14930 if test "X$x" = "X$element"; then
14931 haveit=yes
14932 break
14934 done
14935 if test -z "$haveit"; then
14936 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14938 done
14943 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14946 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14950 POSUB=po
14954 if test "$PACKAGE" = gettext; then
14955 BUILD_INCLUDED_LIBINTL=yes
14963 nls_cv_header_intl=
14964 nls_cv_header_libgt=
14966 DATADIRNAME=share
14969 INSTOBJEXT=.mo
14972 GENCAT=gencat
14975 INTL_LIBTOOL_SUFFIX_PREFIX=
14979 INTLLIBS="$LIBINTL"
14986 if test $USE_INCLUDED_LIBINTL = yes; then :
14987 INCINTL=-I\${top_builddir}/intl
14990 if test x$USE_NLS = xyes; then :
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
14993 $as_echo_n "checking for autopoint... " >&6; }
14994 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
14995 if test -n "$autopoint_version"; then :
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
14998 $as_echo "yes ($autopoint_version)" >&6; }
15001 else
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15004 $as_echo "no" >&6; }
15005 USE_NLS=no
15010 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15012 You need to install GNU gettext/gettext-tools to compile aMule with
15013 i18n support." >&5
15014 $as_echo "$as_me: WARNING:
15015 You need to install GNU gettext/gettext-tools to compile aMule with
15016 i18n support." >&2;}
15017 _mule_warning_13=yes
15018 _mule_has_warnings=yes
15022 if test ${USE_NLS:-no} = yes; then :
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15025 $as_echo_n "checking for requested languages... " >&6; }
15026 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15028 if test ${enable_amule_daemon:-no} = yes; then :
15030 if test -z "$LINGUAS"; then :
15031 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15032 else
15034 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15035 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15038 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15040 else
15041 AMULE_DAEMON_MANPAGES=
15046 if test ${enable_amulecmd:-no} = yes; then :
15048 if test -z "$LINGUAS"; then :
15049 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15050 else
15052 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15053 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15056 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15058 else
15059 AMULECMD_MANPAGES=
15064 if test ${enable_webserver:-no} = yes; then :
15066 if test -z "$LINGUAS"; then :
15067 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15068 else
15070 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15071 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15074 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15076 else
15077 WEBSERVER_MANPAGES=
15082 if test ${enable_amule_gui:-no} = yes; then :
15084 if test -z "$LINGUAS"; then :
15085 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15086 else
15088 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15089 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15092 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15094 else
15095 AMULE_GUI_MANPAGES=
15100 if test ${enable_cas:-no} = yes; then :
15102 if test -z "$LINGUAS"; then :
15103 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15104 else
15106 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15107 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15110 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
15112 else
15113 CAS_MANPAGES=
15118 if test ${enable_wxcas:-no} = yes; then :
15120 if test -z "$LINGUAS"; then :
15121 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15122 else
15124 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15125 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15128 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
15130 else
15131 WXCAS_MANPAGES=
15136 if test ${enable_ed2k:-yes} = yes; then :
15138 if test -z "$LINGUAS"; then :
15139 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15140 else
15142 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15143 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15146 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
15148 else
15149 ED2K_MANPAGES=
15154 if test ${enable_alc:-no} = yes; then :
15156 if test -z "$LINGUAS"; then :
15157 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15158 else
15160 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15161 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15164 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
15166 else
15167 ALC_MANPAGES=
15172 if test ${enable_alcc:-no} = yes; then :
15174 if test -z "$LINGUAS"; then :
15175 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15176 else
15178 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15179 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15182 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
15184 else
15185 ALCC_MANPAGES=
15190 if test ${enable_monolithic:-yes} = yes; then :
15192 if test -z "$LINGUAS"; then :
15193 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15194 else
15196 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15197 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15200 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15202 else
15203 MONOLITHIC_MANPAGES=
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15208 $as_echo "${LINGUAS:-all}" >&6; }
15213 ac_ext=cpp
15214 ac_cpp='$CXXCPP $CPPFLAGS'
15215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15221 # Check for bfd.h (to have proper backtraces without using wxExecute)
15223 for ac_header in ansidecl.h bfd.h
15224 do :
15225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15226 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15227 eval as_val=\$$as_ac_Header
15228 if test "x$as_val" = x""yes; then :
15229 cat >>confdefs.h <<_ACEOF
15230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15231 _ACEOF
15235 done
15237 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15240 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15241 if test "${mule_cv_lib_bfd+set}" = set; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15245 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
15246 # Doing some black magic to prevent multiple tests for the same set of
15247 # libraries when any of the shell variables above expand to nothing.
15248 echo $bfd_ldadd
15249 done | sed -e 's/^ *//;s/ *$//;s/ */ /g' | ${AWK} '!x[$0]++' >conftest.bfd_ldadd
15250 while read bfd_ldadd; do
15251 mule_backup_LIBS="$LIBS"
15252 mule_backup_LDFLAGS="$LDFLAGS"
15253 LIBS="${bfd_ldadd} $LIBS"
15254 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15259 #include <ansidecl.h>
15260 #include <bfd.h>
15263 main ()
15265 const char *dummy = bfd_errmsg(bfd_get_error());
15267 return 0;
15270 _ACEOF
15271 if ac_fn_cxx_try_link "$LINENO"; then :
15273 LIBS="$mule_backup_LIBS"
15274 LDFLAGS="$mule_backup_LDFLAGS"
15275 mule_cv_lib_bfd="${bfd_ldadd}"
15278 rm -f core conftest.err conftest.$ac_objext \
15279 conftest$ac_exeext conftest.$ac_ext
15280 LIBS="$mule_backup_LIBS"
15281 LDFLAGS="$mule_backup_LDFLAGS"
15282 if ${mule_cv_lib_bfd+:} false; then :
15283 break
15285 done <conftest.bfd_ldadd
15286 rm -f conftest.bfd_ldadd
15291 if ${mule_cv_lib_bfd+:} false; then :
15293 BFD_CPPFLAGS="-DHAVE_BFD"
15294 BFD_LIBS="${mule_cv_lib_bfd}"
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15296 $as_echo "${BFD_LIBS:-none required}" >&6; }
15298 else
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15301 $as_echo "not found" >&6; }
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15303 Cannot link to the library containing the bfd functions." >&5
15304 $as_echo "$as_me: WARNING:
15305 Cannot link to the library containing the bfd functions." >&2;}
15306 _mule_warning_14=yes
15307 _mule_has_warnings=yes
15312 else
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15315 bfd.h not found or unusable, please install binutils development
15316 package if you are a developer or want to help testing aMule" >&5
15317 $as_echo "$as_me: WARNING:
15318 bfd.h not found or unusable, please install binutils development
15319 package if you are a developer or want to help testing aMule" >&2;}
15320 _mule_warning_15=yes
15321 _mule_has_warnings=yes
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15329 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15334 #include <execinfo.h>
15337 main ()
15340 void *bt[1];
15341 int n = backtrace((void **)&bt, 1);
15342 char **bt_syms = backtrace_symbols(bt, n);
15345 return 0;
15348 _ACEOF
15349 if ac_fn_cxx_try_link "$LINENO"; then :
15352 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15355 $as_echo "yes" >&6; }
15357 else
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15360 $as_echo "no" >&6; }
15363 rm -f core conftest.err conftest.$ac_objext \
15364 conftest$ac_exeext conftest.$ac_ext
15368 # aMule plasma widget
15369 if test ${enable_plasmamule:-no} = yes; then :
15372 if test -z ${QT_MOC}; then :
15374 for ac_prog in moc-qt4 moc
15376 # Extract the first word of "$ac_prog", so it can be a program name with args.
15377 set dummy $ac_prog; ac_word=$2
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15379 $as_echo_n "checking for $ac_word... " >&6; }
15380 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15381 $as_echo_n "(cached) " >&6
15382 else
15383 case $QT_MOC in
15384 [\\/]* | ?:[\\/]*)
15385 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15389 for as_dir in $PATH
15391 IFS=$as_save_IFS
15392 test -z "$as_dir" && as_dir=.
15393 for ac_exec_ext in '' $ac_executable_extensions; do
15394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15395 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15397 break 2
15399 done
15400 done
15401 IFS=$as_save_IFS
15404 esac
15406 QT_MOC=$ac_cv_path_QT_MOC
15407 if test -n "$QT_MOC"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15409 $as_echo "$QT_MOC" >&6; }
15410 else
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15412 $as_echo "no" >&6; }
15416 test -n "$QT_MOC" && break
15417 done
15419 if test -z ${QT_MOC}; then :
15421 echo moc not found
15422 exit 1
15426 else
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15429 $as_echo_n "checking for moc... " >&6; }
15430 if test -x ${QT_MOC}; then :
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15433 $as_echo "${QT_MOC}" >&6; }
15436 else
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15439 $as_echo "\"not found\"" >&6; }
15440 QT_MOC="not found"
15441 exit 1
15448 if test "${QT_MOC}" != "not found"; then :
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15451 $as_echo_n "checking for moc version >= 4... " >&6; }
15452 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15453 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15456 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15458 else
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15461 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15462 QT_MOC="not found"
15463 exit 1
15469 if test "${QT_MOC}" = "not found"; then :
15470 enable_plasmamule=disabled
15473 if test ${enable_plasmamule:-no} = yes; then :
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15478 $as_echo_n "checking for qt... " >&6; }
15479 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15482 $as_echo "found" >&6; }
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15484 $as_echo_n "checking for qt core cflags... " >&6; }
15485 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15487 $as_echo "$QT_CORE_CFLAGS" >&6; }
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15489 $as_echo_n "checking for qt core libs... " >&6; }
15490 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15492 $as_echo "$QT_CORE_LIBS" >&6; }
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15494 $as_echo_n "checking for qt gui cflags... " >&6; }
15495 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15497 $as_echo "$QT_GUI_CFLAGS" >&6; }
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15499 $as_echo_n "checking for qt gui libs... " >&6; }
15500 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15502 $as_echo "$QT_GUI_LIBS" >&6; }
15504 else
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15506 $as_echo "not found" >&6; }
15507 exit 1
15511 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15513 QT_DBUS_LDFLAGS="-lQtDBus"
15523 if test -z "${QT_CORE_CXXFLAGS}"; then :
15524 enable_plasmamule=disabled
15529 if test ${enable_plasmamule:-no} = yes; then :
15532 if test -z ${KDE4_CONFIG}; then :
15534 # Extract the first word of "kde4-config", so it can be a program name with args.
15535 set dummy kde4-config; ac_word=$2
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15537 $as_echo_n "checking for $ac_word... " >&6; }
15538 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15539 $as_echo_n "(cached) " >&6
15540 else
15541 case $KDE4_CONFIG in
15542 [\\/]* | ?:[\\/]*)
15543 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15547 for as_dir in $PATH
15549 IFS=$as_save_IFS
15550 test -z "$as_dir" && as_dir=.
15551 for ac_exec_ext in '' $ac_executable_extensions; do
15552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15553 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15555 break 2
15557 done
15558 done
15559 IFS=$as_save_IFS
15562 esac
15564 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15565 if test -n "$KDE4_CONFIG"; then
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15567 $as_echo "$KDE4_CONFIG" >&6; }
15568 else
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15570 $as_echo "no" >&6; }
15575 else
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15578 $as_echo_n "checking for kde4-config... " >&6; }
15579 if test ! -x KDE4_CONFIG; then :
15581 KDE4_CONFIG="not found"
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15583 $as_echo "not found" >&6; }
15584 exit 1
15590 if test "${KDE4_CONFIG}" != "not found"; then :
15592 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15593 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15596 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15598 else
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15601 $as_echo "at least version 4 required" >&6; }
15602 exit 1
15606 else
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15609 $as_echo "not found" >&6; }
15610 exit 1
15615 if test "${KDE4_CONFIG}" = "not found"; then :
15616 enable_plasmamule=disabled
15621 if test ${enable_plasmamule:-no} = yes; then :
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15625 $as_echo_n "checking for kde4 headers... " >&6; }
15626 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15628 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15630 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15633 $as_echo "${KDE_HEADER_DIR}" >&6; }
15635 else
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15638 $as_echo "dataengine.h not found" >&6; }
15639 exit 1
15643 else
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15646 $as_echo "kdirwatch.h not found" >&6; }
15647 exit 1
15652 if test -z ${KDE_HEADER_DIR}; then :
15653 enable_plasmamule=disabled
15658 if test ${enable_plasmamule:-no} = yes; then :
15660 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15661 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15666 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15667 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15669 KDE_IN_HOME="yes"
15672 if test ${KDE_IN_HOME} = "yes"; then :
15674 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15676 else
15678 if test -n ${prefix}; then :
15680 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15681 if test -n ${KDE_APPLNK_PATH}; then :
15683 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15687 else
15689 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15695 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15701 $as_echo_n "checking for kde4 services Path... " >&6; }
15702 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15704 KDE_IN_HOME="yes"
15707 if test ${KDE_IN_HOME} = "yes"; then :
15709 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15711 else
15713 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15717 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15723 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15724 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15726 KDE_IN_HOME="yes"
15729 if test ${KDE_IN_HOME} = "yes"; then :
15731 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15733 else
15735 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15739 $as_echo "${KDE_MODULE_PATH}" >&6; }
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15745 $as_echo_n "checking for kde4 icons Path... " >&6; }
15746 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15748 KDE_IN_HOME="yes"
15751 if test ${KDE_IN_HOME} = "yes"; then :
15753 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15755 else
15757 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15760 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15762 $as_echo "${KDE_ICON_PATH}" >&6; }
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15768 $as_echo_n "checking for location for mime-type installation... " >&6; }
15769 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15771 KDE_IN_HOME="yes"
15774 if test ${KDE_IN_HOME} = "yes"; then :
15776 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15778 else
15780 if test -n ${prefix}; then :
15782 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15783 if test -n ${KDE_MIME_PATH}; then :
15785 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15789 else
15791 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15797 $as_echo "${KDE_MIME_PATH}" >&6; }
15801 else
15802 enable_plasmamule=disabled
15807 if test ${enable_debug:-yes} = yes; then :
15809 DEBUGFLAG="-D__DEBUG__"
15817 # Check for readline library
15818 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
15821 $as_echo_n "checking for a readline compatible library... " >&6; }
15822 if test "${vl_cv_lib_readline+set}" = set; then :
15823 $as_echo_n "(cached) " >&6
15824 else
15826 ORIG_LIBS="$LIBS"
15827 for readline_lib in readline edit editline; do
15828 for termcap_lib in "" termcap curses ncurses; do
15829 if test -z "$termcap_lib"; then
15830 TRY_LIB="-l$readline_lib"
15831 else
15832 TRY_LIB="-l$readline_lib -l$termcap_lib"
15834 LIBS="$ORIG_LIBS $TRY_LIB"
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15838 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply. */
15841 #ifdef __cplusplus
15842 extern "C"
15843 #endif
15844 char readline ();
15846 main ()
15848 return readline ();
15850 return 0;
15852 _ACEOF
15853 if ac_fn_cxx_try_link "$LINENO"; then :
15854 vl_cv_lib_readline="$TRY_LIB"
15856 rm -f core conftest.err conftest.$ac_objext \
15857 conftest$ac_exeext conftest.$ac_ext
15858 if test -n "$vl_cv_lib_readline"; then
15859 break
15861 done
15862 if test -n "$vl_cv_lib_readline"; then
15863 break
15865 done
15866 if test -z "$vl_cv_lib_readline"; then
15867 vl_cv_lib_readline="no"
15868 LIBS="$ORIG_LIBS"
15869 READLINE_LIBS=""
15870 else
15871 READLINE_LIBS="$vl_cv_lib_readline"
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
15876 $as_echo "$vl_cv_lib_readline" >&6; }
15878 if test "$vl_cv_lib_readline" != "no"; then
15880 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15882 for ac_header in readline.h readline/readline.h
15883 do :
15884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15885 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15886 eval as_val=\$$as_ac_Header
15887 if test "x$as_val" = x""yes; then :
15888 cat >>confdefs.h <<_ACEOF
15889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15890 _ACEOF
15894 done
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15897 $as_echo_n "checking whether readline supports history... " >&6; }
15898 if test "${vl_cv_lib_readline_history+set}" = set; then :
15899 $as_echo_n "(cached) " >&6
15900 else
15902 vl_cv_lib_readline_history="no"
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904 /* end confdefs.h. */
15906 /* Override any GCC internal prototype to avoid an error.
15907 Use char because int might match the return type of a GCC
15908 builtin and then its argument prototype would still apply. */
15909 #ifdef __cplusplus
15910 extern "C"
15911 #endif
15912 char add_history ();
15914 main ()
15916 return add_history ();
15918 return 0;
15920 _ACEOF
15921 if ac_fn_cxx_try_link "$LINENO"; then :
15922 vl_cv_lib_readline_history="yes"
15924 rm -f core conftest.err conftest.$ac_objext \
15925 conftest$ac_exeext conftest.$ac_ext
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
15929 $as_echo "$vl_cv_lib_readline_history" >&6; }
15930 if test "$vl_cv_lib_readline_history" = "yes"; then
15932 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15934 for ac_header in history.h readline/history.h
15935 do :
15936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15937 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15938 eval as_val=\$$as_ac_Header
15939 if test "x$as_val" = x""yes; then :
15940 cat >>confdefs.h <<_ACEOF
15941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15942 _ACEOF
15946 done
15951 LIBS="$ORIG_LIBS"
15956 ac_ext=c
15957 ac_cpp='$CPP $CPPFLAGS'
15958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15963 # Check for strerror_r
15964 mule_backup_CPPFLAGS="$CPPFLAGS"
15965 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
15966 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15967 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
15968 ac_have_decl=1
15969 else
15970 ac_have_decl=0
15973 cat >>confdefs.h <<_ACEOF
15974 #define HAVE_DECL_STRERROR_R $ac_have_decl
15975 _ACEOF
15977 for ac_func in strerror_r
15978 do :
15979 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15980 if test "x$ac_cv_func_strerror_r" = x""yes; then :
15981 cat >>confdefs.h <<_ACEOF
15982 #define HAVE_STRERROR_R 1
15983 _ACEOF
15986 done
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15989 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15990 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
15991 $as_echo_n "(cached) " >&6
15992 else
15994 ac_cv_func_strerror_r_char_p=no
15995 if test $ac_cv_have_decl_strerror_r = yes; then
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15998 $ac_includes_default
16000 main ()
16003 char buf[100];
16004 char x = *strerror_r (0, buf, sizeof buf);
16005 char *p = strerror_r (0, buf, sizeof buf);
16006 return !p || x;
16009 return 0;
16011 _ACEOF
16012 if ac_fn_c_try_compile "$LINENO"; then :
16013 ac_cv_func_strerror_r_char_p=yes
16015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16016 else
16017 # strerror_r is not declared. Choose between
16018 # systems that have relatively inaccessible declarations for the
16019 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16020 # former has a strerror_r that returns char*, while the latter
16021 # has a strerror_r that returns `int'.
16022 # This test should segfault on the DEC system.
16023 if test "$cross_compiling" = yes; then :
16025 else
16026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16027 /* end confdefs.h. */
16028 $ac_includes_default
16029 extern char *strerror_r ();
16031 main ()
16033 char buf[100];
16034 char x = *strerror_r (0, buf, sizeof buf);
16035 return ! isalpha (x);
16037 return 0;
16039 _ACEOF
16040 if ac_fn_c_try_run "$LINENO"; then :
16041 ac_cv_func_strerror_r_char_p=yes
16043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16044 conftest.$ac_objext conftest.beam conftest.$ac_ext
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16051 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16052 if test $ac_cv_func_strerror_r_char_p = yes; then
16054 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16058 CPPFLAGS="$mule_backup_CPPFLAGS"
16061 # Other tests
16063 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16065 $as_echo_n "checking for docdir... " >&6; }
16066 if test -z "$docdir"; then :
16067 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16070 $as_echo "$docdir" >&6; }
16073 # Try to set the SVN checkout-date
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16075 $as_echo_n "checking for SVNDATE... " >&6; }
16076 modified=
16077 if test -f "$srcdir/.svn-revision"; then
16078 svndate="rev. `cat $srcdir/.svn-revision`"
16079 elif test -d "$srcdir"/.svn; then
16080 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'`"
16081 elif test -d "$srcdir"/.git; then
16083 git_revision=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16084 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16085 modified="+"
16087 if test -f $srcdir/.git/svn/.metadata ; then
16088 git_sha=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16089 svndate=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16090 svn_revision=\`git --git-dir="$srcdir"/.git svn find-rev \${sha}\`
16091 if test -n "\${svn_revision}" ; then
16092 if test \${sha} = ${git_sha} ; then
16093 echo "rev. \${svn_revision}${modified}"
16094 else
16095 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16097 break
16099 done`
16100 else
16101 svndate="rev. g${git_revision}${modified}"
16104 elif test -d "$srcdir"/.hg; then
16106 hg_revision=`hg --cwd "$srcdir" identify --id`
16107 hg_revid=${hg_revision%+}
16108 if test ${hg_revision} != ${hg_revid} ; then
16109 modified="+"
16111 if test -f "$srcdir"/.hg/svn/uuid ; then
16112 svndate=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16113 if test \${svn_revision} != r ; then
16114 if test \${hg_sha} = ${hg_revid} ; then
16115 echo "rev. \${svn_revision#r}${modified}"
16116 else
16117 echo "rev. \${svn_revision#r}+h${hg_revision}"
16119 break
16121 done`
16122 else
16123 svndate="rev. h${hg_revision}"
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16130 $as_echo "${svndate:-None required}" >&6; }
16131 if test -n "$svndate"; then :
16134 cat >>confdefs.h <<_ACEOF
16135 #define SVNDATE "$svndate"
16136 _ACEOF
16138 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
16141 SVNDATE=$svndate
16146 # Check whether --with-denoise-level was given.
16147 if test "${with_denoise_level+set}" = set; then :
16148 withval=$with_denoise_level;
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16153 $as_echo_n "checking denoising level... " >&6; }
16154 if test ${with_denoise_level:-5} = yes; then :
16155 with_denoise_level=5
16157 if test ${with_denoise_level:-5} = no; then :
16158 with_denoise_level=0
16160 if test ${with_denoise_level:-5} -gt 4; then :
16161 if test "${svndate:+set}" = "set"; then :
16162 with_denoise_level=0
16163 else
16164 with_denoise_level=4
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16168 $as_echo "$with_denoise_level" >&6; }
16170 ac_config_commands="$ac_config_commands denoiser"
16175 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16177 # Check whether --enable-ccache was given.
16178 if test "${enable_ccache+set}" = set; then :
16179 enableval=$enable_ccache;
16185 # Check whether --with-ccache-prefix was given.
16186 if test "${with_ccache_prefix+set}" = set; then :
16187 withval=$with_ccache_prefix;
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16192 $as_echo_n "checking whether ccache support should be added... " >&6; }
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16194 $as_echo "${enable_ccache:-no}" >&6; }
16196 if test ${enable_ccache:-no} = yes; then :
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16199 $as_echo_n "checking for ccache presence... " >&6; }
16200 if test -z "$with_ccache_prefix"; then :
16202 ccache_full=`which ccache`
16203 with_ccache_prefix=`dirname ${ccache_full}`
16206 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
16208 CC="$with_ccache_prefix/ccache $CC"
16209 CXX="$with_ccache_prefix/ccache $CXX"
16210 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
16212 else
16213 enable_ccache=no
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16216 $as_echo "${enable_ccache:-no}" >&6; }
16223 if test x$SYS = xwin32; then
16224 SYS_WIN32_TRUE=
16225 SYS_WIN32_FALSE='#'
16226 else
16227 SYS_WIN32_TRUE='#'
16228 SYS_WIN32_FALSE=
16231 if test x$SYS = xwin32 -a "$RC" != ":"; then
16232 NEED_RC_TRUE=
16233 NEED_RC_FALSE='#'
16234 else
16235 NEED_RC_TRUE='#'
16236 NEED_RC_FALSE=
16239 if test x$SYS = xdarwin; then
16240 NEED_CORESERVICES_TRUE=
16241 NEED_CORESERVICES_FALSE='#'
16242 else
16243 NEED_CORESERVICES_TRUE='#'
16244 NEED_CORESERVICES_FALSE=
16247 if test x$USE_NLS = xyes; then
16248 COMPILE_NLS_TRUE=
16249 COMPILE_NLS_FALSE='#'
16250 else
16251 COMPILE_NLS_TRUE='#'
16252 COMPILE_NLS_FALSE=
16255 if test x$HAVE_FLEX_EXTENDED = xyes; then
16256 GENERATE_FLEX_HEADER_TRUE=
16257 GENERATE_FLEX_HEADER_FALSE='#'
16258 else
16259 GENERATE_FLEX_HEADER_TRUE='#'
16260 GENERATE_FLEX_HEADER_FALSE=
16263 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16264 INSTALL_SKINS_TRUE=
16265 INSTALL_SKINS_FALSE='#'
16266 else
16267 INSTALL_SKINS_TRUE='#'
16268 INSTALL_SKINS_FALSE=
16271 if test ${enable_plasmamule:-no} = yes; then
16272 PLASMAMULE_TRUE=
16273 PLASMAMULE_FALSE='#'
16274 else
16275 PLASMAMULE_TRUE='#'
16276 PLASMAMULE_FALSE=
16280 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
16281 COMPILE_LIB_COMMON_TRUE=
16282 COMPILE_LIB_COMMON_FALSE='#'
16283 else
16284 COMPILE_LIB_COMMON_TRUE='#'
16285 COMPILE_LIB_COMMON_FALSE=
16288 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
16289 COMPILE_LIB_EC_TRUE=
16290 COMPILE_LIB_EC_FALSE='#'
16291 else
16292 COMPILE_LIB_EC_TRUE='#'
16293 COMPILE_LIB_EC_FALSE=
16297 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"
16300 if test x$SYS = xwin32; then :
16301 ac_config_files="$ac_config_files version.rc"
16304 cat >confcache <<\_ACEOF
16305 # This file is a shell script that caches the results of configure
16306 # tests run on this system so they can be shared between configure
16307 # scripts and configure runs, see configure's option --config-cache.
16308 # It is not useful on other systems. If it contains results you don't
16309 # want to keep, you may remove or edit it.
16311 # config.status only pays attention to the cache file if you give it
16312 # the --recheck option to rerun configure.
16314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16316 # following values.
16318 _ACEOF
16320 # The following way of writing the cache mishandles newlines in values,
16321 # but we know of no workaround that is simple, portable, and efficient.
16322 # So, we kill variables containing newlines.
16323 # Ultrix sh set writes to stderr and can't be redirected directly,
16324 # and sets the high bit in the cache file unless we assign to the vars.
16326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16327 eval ac_val=\$$ac_var
16328 case $ac_val in #(
16329 *${as_nl}*)
16330 case $ac_var in #(
16331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16333 esac
16334 case $ac_var in #(
16335 _ | IFS | as_nl) ;; #(
16336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16337 *) { eval $ac_var=; unset $ac_var;} ;;
16338 esac ;;
16339 esac
16340 done
16342 (set) 2>&1 |
16343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16344 *${as_nl}ac_space=\ *)
16345 # `set' does not quote correctly, so add quotes: double-quote
16346 # substitution turns \\\\ into \\, and sed turns \\ into \.
16347 sed -n \
16348 "s/'/'\\\\''/g;
16349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16350 ;; #(
16352 # `set' quotes correctly as required by POSIX, so do not add quotes.
16353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16355 esac |
16356 sort
16358 sed '
16359 /^ac_cv_env_/b end
16360 t clear
16361 :clear
16362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16363 t end
16364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16365 :end' >>confcache
16366 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16367 if test -w "$cache_file"; then
16368 test "x$cache_file" != "x/dev/null" &&
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16370 $as_echo "$as_me: updating cache $cache_file" >&6;}
16371 cat confcache >$cache_file
16372 else
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16374 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16377 rm -f confcache
16379 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16380 # Let make expand exec_prefix.
16381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16383 DEFS=-DHAVE_CONFIG_H
16385 ac_libobjs=
16386 ac_ltlibobjs=
16387 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16388 # 1. Remove the extension, and $U if already installed.
16389 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16390 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16391 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16392 # will be set to the directory where LIBOBJS objects are built.
16393 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16394 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16395 done
16396 LIBOBJS=$ac_libobjs
16398 LTLIBOBJS=$ac_ltlibobjs
16401 if test -n "$EXEEXT"; then
16402 am__EXEEXT_TRUE=
16403 am__EXEEXT_FALSE='#'
16404 else
16405 am__EXEEXT_TRUE='#'
16406 am__EXEEXT_FALSE=
16409 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16410 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16413 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16414 as_fn_error "conditional \"AMDEP\" was never defined.
16415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16417 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16418 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16421 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16422 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16425 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16426 as_fn_error "conditional \"MONOLITHIC\" was never defined.
16427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16429 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16430 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
16431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16433 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16434 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
16435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16437 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16438 as_fn_error "conditional \"WEB\" was never defined.
16439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16441 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16442 as_fn_error "conditional \"AMULE_GUI\" was never defined.
16443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16445 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16446 as_fn_error "conditional \"CAS\" was never defined.
16447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16449 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16450 as_fn_error "conditional \"WXCAS\" was never defined.
16451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16453 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16454 as_fn_error "conditional \"ED2K\" was never defined.
16455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16457 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16458 as_fn_error "conditional \"ALC\" was never defined.
16459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16461 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16462 as_fn_error "conditional \"ALCC\" was never defined.
16463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16465 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16466 as_fn_error "conditional \"XAS\" was never defined.
16467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16469 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16470 as_fn_error "conditional \"FILEVIEW\" was never defined.
16471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16473 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16474 as_fn_error "conditional \"SYS_WIN32\" was never defined.
16475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16477 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16478 as_fn_error "conditional \"NEED_RC\" was never defined.
16479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16481 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16482 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
16483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16485 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16486 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
16487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16489 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
16490 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
16491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16493 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16494 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
16495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16497 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16498 as_fn_error "conditional \"PLASMAMULE\" was never defined.
16499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16501 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16502 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
16503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16505 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16506 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
16507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16510 : ${CONFIG_STATUS=./config.status}
16511 ac_write_fail=0
16512 ac_clean_files_save=$ac_clean_files
16513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16515 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16516 as_write_fail=0
16517 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16518 #! $SHELL
16519 # Generated by $as_me.
16520 # Run this file to recreate the current configuration.
16521 # Compiler output produced by configure, useful for debugging
16522 # configure, is in config.log if it exists.
16524 debug=false
16525 ac_cs_recheck=false
16526 ac_cs_silent=false
16528 SHELL=\${CONFIG_SHELL-$SHELL}
16529 export SHELL
16530 _ASEOF
16531 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16532 ## -------------------- ##
16533 ## M4sh Initialization. ##
16534 ## -------------------- ##
16536 # Be more Bourne compatible
16537 DUALCASE=1; export DUALCASE # for MKS sh
16538 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16539 emulate sh
16540 NULLCMD=:
16541 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16542 # is contrary to our usage. Disable this feature.
16543 alias -g '${1+"$@"}'='"$@"'
16544 setopt NO_GLOB_SUBST
16545 else
16546 case `(set -o) 2>/dev/null` in #(
16547 *posix*) :
16548 set -o posix ;; #(
16549 *) :
16551 esac
16555 as_nl='
16557 export as_nl
16558 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16559 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16560 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16562 # Prefer a ksh shell builtin over an external printf program on Solaris,
16563 # but without wasting forks for bash or zsh.
16564 if test -z "$BASH_VERSION$ZSH_VERSION" \
16565 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16566 as_echo='print -r --'
16567 as_echo_n='print -rn --'
16568 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16569 as_echo='printf %s\n'
16570 as_echo_n='printf %s'
16571 else
16572 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16573 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16574 as_echo_n='/usr/ucb/echo -n'
16575 else
16576 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16577 as_echo_n_body='eval
16578 arg=$1;
16579 case $arg in #(
16580 *"$as_nl"*)
16581 expr "X$arg" : "X\\(.*\\)$as_nl";
16582 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16583 esac;
16584 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16586 export as_echo_n_body
16587 as_echo_n='sh -c $as_echo_n_body as_echo'
16589 export as_echo_body
16590 as_echo='sh -c $as_echo_body as_echo'
16593 # The user is always right.
16594 if test "${PATH_SEPARATOR+set}" != set; then
16595 PATH_SEPARATOR=:
16596 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16597 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16598 PATH_SEPARATOR=';'
16603 # IFS
16604 # We need space, tab and new line, in precisely that order. Quoting is
16605 # there to prevent editors from complaining about space-tab.
16606 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16607 # splitting by setting IFS to empty value.)
16608 IFS=" "" $as_nl"
16610 # Find who we are. Look in the path if we contain no directory separator.
16611 case $0 in #((
16612 *[\\/]* ) as_myself=$0 ;;
16613 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16614 for as_dir in $PATH
16616 IFS=$as_save_IFS
16617 test -z "$as_dir" && as_dir=.
16618 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16619 done
16620 IFS=$as_save_IFS
16623 esac
16624 # We did not find ourselves, most probably we were run as `sh COMMAND'
16625 # in which case we are not to be found in the path.
16626 if test "x$as_myself" = x; then
16627 as_myself=$0
16629 if test ! -f "$as_myself"; then
16630 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16631 exit 1
16634 # Unset variables that we do not need and which cause bugs (e.g. in
16635 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16636 # suppresses any "Segmentation fault" message there. '((' could
16637 # trigger a bug in pdksh 5.2.14.
16638 for as_var in BASH_ENV ENV MAIL MAILPATH
16639 do eval test x\${$as_var+set} = xset \
16640 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16641 done
16642 PS1='$ '
16643 PS2='> '
16644 PS4='+ '
16646 # NLS nuisances.
16647 LC_ALL=C
16648 export LC_ALL
16649 LANGUAGE=C
16650 export LANGUAGE
16652 # CDPATH.
16653 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16656 # as_fn_error ERROR [LINENO LOG_FD]
16657 # ---------------------------------
16658 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16659 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16660 # script with status $?, using 1 if that was 0.
16661 as_fn_error ()
16663 as_status=$?; test $as_status -eq 0 && as_status=1
16664 if test "$3"; then
16665 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16666 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16668 $as_echo "$as_me: error: $1" >&2
16669 as_fn_exit $as_status
16670 } # as_fn_error
16673 # as_fn_set_status STATUS
16674 # -----------------------
16675 # Set $? to STATUS, without forking.
16676 as_fn_set_status ()
16678 return $1
16679 } # as_fn_set_status
16681 # as_fn_exit STATUS
16682 # -----------------
16683 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16684 as_fn_exit ()
16686 set +e
16687 as_fn_set_status $1
16688 exit $1
16689 } # as_fn_exit
16691 # as_fn_unset VAR
16692 # ---------------
16693 # Portably unset VAR.
16694 as_fn_unset ()
16696 { eval $1=; unset $1;}
16698 as_unset=as_fn_unset
16699 # as_fn_append VAR VALUE
16700 # ----------------------
16701 # Append the text in VALUE to the end of the definition contained in VAR. Take
16702 # advantage of any shell optimizations that allow amortized linear growth over
16703 # repeated appends, instead of the typical quadratic growth present in naive
16704 # implementations.
16705 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16706 eval 'as_fn_append ()
16708 eval $1+=\$2
16710 else
16711 as_fn_append ()
16713 eval $1=\$$1\$2
16715 fi # as_fn_append
16717 # as_fn_arith ARG...
16718 # ------------------
16719 # Perform arithmetic evaluation on the ARGs, and store the result in the
16720 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16721 # must be portable across $(()) and expr.
16722 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16723 eval 'as_fn_arith ()
16725 as_val=$(( $* ))
16727 else
16728 as_fn_arith ()
16730 as_val=`expr "$@" || test $? -eq 1`
16732 fi # as_fn_arith
16735 if expr a : '\(a\)' >/dev/null 2>&1 &&
16736 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16737 as_expr=expr
16738 else
16739 as_expr=false
16742 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16743 as_basename=basename
16744 else
16745 as_basename=false
16748 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16749 as_dirname=dirname
16750 else
16751 as_dirname=false
16754 as_me=`$as_basename -- "$0" ||
16755 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16756 X"$0" : 'X\(//\)$' \| \
16757 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16758 $as_echo X/"$0" |
16759 sed '/^.*\/\([^/][^/]*\)\/*$/{
16760 s//\1/
16763 /^X\/\(\/\/\)$/{
16764 s//\1/
16767 /^X\/\(\/\).*/{
16768 s//\1/
16771 s/.*/./; q'`
16773 # Avoid depending upon Character Ranges.
16774 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16775 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16776 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16777 as_cr_digits='0123456789'
16778 as_cr_alnum=$as_cr_Letters$as_cr_digits
16780 ECHO_C= ECHO_N= ECHO_T=
16781 case `echo -n x` in #(((((
16782 -n*)
16783 case `echo 'xy\c'` in
16784 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16785 xy) ECHO_C='\c';;
16786 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16787 ECHO_T=' ';;
16788 esac;;
16790 ECHO_N='-n';;
16791 esac
16793 rm -f conf$$ conf$$.exe conf$$.file
16794 if test -d conf$$.dir; then
16795 rm -f conf$$.dir/conf$$.file
16796 else
16797 rm -f conf$$.dir
16798 mkdir conf$$.dir 2>/dev/null
16800 if (echo >conf$$.file) 2>/dev/null; then
16801 if ln -s conf$$.file conf$$ 2>/dev/null; then
16802 as_ln_s='ln -s'
16803 # ... but there are two gotchas:
16804 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16805 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16806 # In both cases, we have to default to `cp -p'.
16807 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16808 as_ln_s='cp -p'
16809 elif ln conf$$.file conf$$ 2>/dev/null; then
16810 as_ln_s=ln
16811 else
16812 as_ln_s='cp -p'
16814 else
16815 as_ln_s='cp -p'
16817 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16818 rmdir conf$$.dir 2>/dev/null
16821 # as_fn_mkdir_p
16822 # -------------
16823 # Create "$as_dir" as a directory, including parents if necessary.
16824 as_fn_mkdir_p ()
16827 case $as_dir in #(
16828 -*) as_dir=./$as_dir;;
16829 esac
16830 test -d "$as_dir" || eval $as_mkdir_p || {
16831 as_dirs=
16832 while :; do
16833 case $as_dir in #(
16834 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16835 *) as_qdir=$as_dir;;
16836 esac
16837 as_dirs="'$as_qdir' $as_dirs"
16838 as_dir=`$as_dirname -- "$as_dir" ||
16839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16840 X"$as_dir" : 'X\(//\)[^/]' \| \
16841 X"$as_dir" : 'X\(//\)$' \| \
16842 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16843 $as_echo X"$as_dir" |
16844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16845 s//\1/
16848 /^X\(\/\/\)[^/].*/{
16849 s//\1/
16852 /^X\(\/\/\)$/{
16853 s//\1/
16856 /^X\(\/\).*/{
16857 s//\1/
16860 s/.*/./; q'`
16861 test -d "$as_dir" && break
16862 done
16863 test -z "$as_dirs" || eval "mkdir $as_dirs"
16864 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16867 } # as_fn_mkdir_p
16868 if mkdir -p . 2>/dev/null; then
16869 as_mkdir_p='mkdir -p "$as_dir"'
16870 else
16871 test -d ./-p && rmdir ./-p
16872 as_mkdir_p=false
16875 if test -x / >/dev/null 2>&1; then
16876 as_test_x='test -x'
16877 else
16878 if ls -dL / >/dev/null 2>&1; then
16879 as_ls_L_option=L
16880 else
16881 as_ls_L_option=
16883 as_test_x='
16884 eval sh -c '\''
16885 if test -d "$1"; then
16886 test -d "$1/.";
16887 else
16888 case $1 in #(
16889 -*)set "./$1";;
16890 esac;
16891 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16892 ???[sx]*):;;*)false;;esac;fi
16893 '\'' sh
16896 as_executable_p=$as_test_x
16898 # Sed expression to map a string onto a valid CPP name.
16899 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16901 # Sed expression to map a string onto a valid variable name.
16902 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16905 exec 6>&1
16906 ## ----------------------------------- ##
16907 ## Main body of $CONFIG_STATUS script. ##
16908 ## ----------------------------------- ##
16909 _ASEOF
16910 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16913 # Save the log message, to keep $0 and so on meaningful, and to
16914 # report actual input values of CONFIG_FILES etc. instead of their
16915 # values after options handling.
16916 ac_log="
16917 This file was extended by aMule $as_me SVN, which was
16918 generated by GNU Autoconf 2.65. Invocation command line was
16920 CONFIG_FILES = $CONFIG_FILES
16921 CONFIG_HEADERS = $CONFIG_HEADERS
16922 CONFIG_LINKS = $CONFIG_LINKS
16923 CONFIG_COMMANDS = $CONFIG_COMMANDS
16924 $ $0 $@
16926 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16929 _ACEOF
16931 case $ac_config_files in *"
16932 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16933 esac
16935 case $ac_config_headers in *"
16936 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16937 esac
16940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16941 # Files that config.status was made for.
16942 config_files="$ac_config_files"
16943 config_headers="$ac_config_headers"
16944 config_commands="$ac_config_commands"
16946 _ACEOF
16948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16949 ac_cs_usage="\
16950 \`$as_me' instantiates files and other configuration actions
16951 from templates according to the current configuration. Unless the files
16952 and actions are specified as TAGs, all are instantiated by default.
16954 Usage: $0 [OPTION]... [TAG]...
16956 -h, --help print this help, then exit
16957 -V, --version print version number and configuration settings, then exit
16958 --config print configuration, then exit
16959 -q, --quiet, --silent
16960 do not print progress messages
16961 -d, --debug don't remove temporary files
16962 --recheck update $as_me by reconfiguring in the same conditions
16963 --file=FILE[:TEMPLATE]
16964 instantiate the configuration file FILE
16965 --header=FILE[:TEMPLATE]
16966 instantiate the configuration header FILE
16968 Configuration files:
16969 $config_files
16971 Configuration headers:
16972 $config_headers
16974 Configuration commands:
16975 $config_commands
16977 Report bugs to <admin@amule.org>."
16979 _ACEOF
16980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16981 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16982 ac_cs_version="\\
16983 aMule config.status SVN
16984 configured by $0, generated by GNU Autoconf 2.65,
16985 with options \\"\$ac_cs_config\\"
16987 Copyright (C) 2009 Free Software Foundation, Inc.
16988 This config.status script is free software; the Free Software Foundation
16989 gives unlimited permission to copy, distribute and modify it."
16991 ac_pwd='$ac_pwd'
16992 srcdir='$srcdir'
16993 INSTALL='$INSTALL'
16994 MKDIR_P='$MKDIR_P'
16995 AWK='$AWK'
16996 test -n "\$AWK" || AWK=awk
16997 _ACEOF
16999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17000 # The default lists apply if the user does not specify any file.
17001 ac_need_defaults=:
17002 while test $# != 0
17004 case $1 in
17005 --*=*)
17006 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17007 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17008 ac_shift=:
17011 ac_option=$1
17012 ac_optarg=$2
17013 ac_shift=shift
17015 esac
17017 case $ac_option in
17018 # Handling of the options.
17019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17020 ac_cs_recheck=: ;;
17021 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17022 $as_echo "$ac_cs_version"; exit ;;
17023 --config | --confi | --conf | --con | --co | --c )
17024 $as_echo "$ac_cs_config"; exit ;;
17025 --debug | --debu | --deb | --de | --d | -d )
17026 debug=: ;;
17027 --file | --fil | --fi | --f )
17028 $ac_shift
17029 case $ac_optarg in
17030 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17031 esac
17032 as_fn_append CONFIG_FILES " '$ac_optarg'"
17033 ac_need_defaults=false;;
17034 --header | --heade | --head | --hea )
17035 $ac_shift
17036 case $ac_optarg in
17037 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17038 esac
17039 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17040 ac_need_defaults=false;;
17041 --he | --h)
17042 # Conflict between --help and --header
17043 as_fn_error "ambiguous option: \`$1'
17044 Try \`$0 --help' for more information.";;
17045 --help | --hel | -h )
17046 $as_echo "$ac_cs_usage"; exit ;;
17047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17048 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17049 ac_cs_silent=: ;;
17051 # This is an error.
17052 -*) as_fn_error "unrecognized option: \`$1'
17053 Try \`$0 --help' for more information." ;;
17055 *) as_fn_append ac_config_targets " $1"
17056 ac_need_defaults=false ;;
17058 esac
17059 shift
17060 done
17062 ac_configure_extra_args=
17064 if $ac_cs_silent; then
17065 exec 6>/dev/null
17066 ac_configure_extra_args="$ac_configure_extra_args --silent"
17069 _ACEOF
17070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17071 if \$ac_cs_recheck; then
17072 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17073 shift
17074 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17075 CONFIG_SHELL='$SHELL'
17076 export CONFIG_SHELL
17077 exec "\$@"
17080 _ACEOF
17081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17082 exec 5>>config.log
17084 echo
17085 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17086 ## Running $as_me. ##
17087 _ASBOX
17088 $as_echo "$ac_log"
17089 } >&5
17091 _ACEOF
17092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094 # INIT-COMMANDS
17096 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17097 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17098 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17099 # from automake.
17100 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17101 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17102 LINGUAS="${LINGUAS-%UNSET%}"
17104 denoiserlevel=$with_denoise_level
17106 _ACEOF
17108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17110 # Handling of arguments.
17111 for ac_config_target in $ac_config_targets
17113 case $ac_config_target in
17114 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17115 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17116 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17117 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
17118 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17119 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17120 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
17121 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17122 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17123 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17124 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
17125 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17126 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
17127 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
17128 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17129 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
17130 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17131 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17132 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17133 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17134 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
17135 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17136 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17137 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17138 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17139 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17140 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17141 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
17142 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17143 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17144 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
17145 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
17146 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
17147 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
17148 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
17149 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17150 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
17151 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
17153 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17154 esac
17155 done
17158 # If the user did not use the arguments to specify the items to instantiate,
17159 # then the envvar interface is used. Set only those that are not.
17160 # We use the long form for the default assignment because of an extremely
17161 # bizarre bug on SunOS 4.1.3.
17162 if $ac_need_defaults; then
17163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17168 # Have a temporary directory for convenience. Make it in the build tree
17169 # simply because there is no reason against having it here, and in addition,
17170 # creating and moving files from /tmp can sometimes cause problems.
17171 # Hook for its removal unless debugging.
17172 # Note that there is a small window in which the directory will not be cleaned:
17173 # after its creation but before its name has been assigned to `$tmp'.
17174 $debug ||
17176 tmp=
17177 trap 'exit_status=$?
17178 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17180 trap 'as_fn_exit 1' 1 2 13 15
17182 # Create a (secure) tmp directory for tmp files.
17185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17186 test -n "$tmp" && test -d "$tmp"
17187 } ||
17189 tmp=./conf$$-$RANDOM
17190 (umask 077 && mkdir "$tmp")
17191 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17193 # Set up the scripts for CONFIG_FILES section.
17194 # No need to generate them if there are no CONFIG_FILES.
17195 # This happens for instance with `./config.status config.h'.
17196 if test -n "$CONFIG_FILES"; then
17199 ac_cr=`echo X | tr X '\015'`
17200 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17201 # But we know of no other shell where ac_cr would be empty at this
17202 # point, so we can use a bashism as a fallback.
17203 if test "x$ac_cr" = x; then
17204 eval ac_cr=\$\'\\r\'
17206 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17207 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17208 ac_cs_awk_cr='\r'
17209 else
17210 ac_cs_awk_cr=$ac_cr
17213 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17214 _ACEOF
17218 echo "cat >conf$$subs.awk <<_ACEOF" &&
17219 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17220 echo "_ACEOF"
17221 } >conf$$subs.sh ||
17222 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17223 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17224 ac_delim='%!_!# '
17225 for ac_last_try in false false false false false :; do
17226 . ./conf$$subs.sh ||
17227 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17229 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17230 if test $ac_delim_n = $ac_delim_num; then
17231 break
17232 elif $ac_last_try; then
17233 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17234 else
17235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17237 done
17238 rm -f conf$$subs.sh
17240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17241 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17242 _ACEOF
17243 sed -n '
17245 s/^/S["/; s/!.*/"]=/
17248 s/^[^!]*!//
17249 :repl
17250 t repl
17251 s/'"$ac_delim"'$//
17252 t delim
17255 s/\(.\{148\}\)..*/\1/
17256 t more1
17257 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17260 b repl
17261 :more1
17262 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17265 s/.\{148\}//
17266 t nl
17267 :delim
17269 s/\(.\{148\}\)..*/\1/
17270 t more2
17271 s/["\\]/\\&/g; s/^/"/; s/$/"/
17274 :more2
17275 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17278 s/.\{148\}//
17279 t delim
17280 ' <conf$$subs.awk | sed '
17281 /^[^""]/{
17283 s/\n//
17285 ' >>$CONFIG_STATUS || ac_write_fail=1
17286 rm -f conf$$subs.awk
17287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17288 _ACAWK
17289 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17290 for (key in S) S_is_set[key] = 1
17291 FS = "\a"
17295 line = $ 0
17296 nfields = split(line, field, "@")
17297 substed = 0
17298 len = length(field[1])
17299 for (i = 2; i < nfields; i++) {
17300 key = field[i]
17301 keylen = length(key)
17302 if (S_is_set[key]) {
17303 value = S[key]
17304 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17305 len += length(value) + length(field[++i])
17306 substed = 1
17307 } else
17308 len += 1 + keylen
17311 print line
17314 _ACAWK
17315 _ACEOF
17316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17317 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17318 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17319 else
17321 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17322 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17323 _ACEOF
17325 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17326 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17327 # trailing colons and then remove the whole line if VPATH becomes empty
17328 # (actually we leave an empty line to preserve line numbers).
17329 if test "x$srcdir" = x.; then
17330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17331 s/:*\$(srcdir):*/:/
17332 s/:*\${srcdir}:*/:/
17333 s/:*@srcdir@:*/:/
17334 s/^\([^=]*=[ ]*\):*/\1/
17335 s/:*$//
17336 s/^[^=]*=[ ]*$//
17340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17341 fi # test -n "$CONFIG_FILES"
17343 # Set up the scripts for CONFIG_HEADERS section.
17344 # No need to generate them if there are no CONFIG_HEADERS.
17345 # This happens for instance with `./config.status Makefile'.
17346 if test -n "$CONFIG_HEADERS"; then
17347 cat >"$tmp/defines.awk" <<\_ACAWK ||
17348 BEGIN {
17349 _ACEOF
17351 # Transform confdefs.h into an awk script `defines.awk', embedded as
17352 # here-document in config.status, that substitutes the proper values into
17353 # config.h.in to produce config.h.
17355 # Create a delimiter string that does not exist in confdefs.h, to ease
17356 # handling of long lines.
17357 ac_delim='%!_!# '
17358 for ac_last_try in false false :; do
17359 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17360 if test -z "$ac_t"; then
17361 break
17362 elif $ac_last_try; then
17363 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17364 else
17365 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17367 done
17369 # For the awk script, D is an array of macro values keyed by name,
17370 # likewise P contains macro parameters if any. Preserve backslash
17371 # newline sequences.
17373 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17374 sed -n '
17375 s/.\{148\}/&'"$ac_delim"'/g
17376 t rset
17377 :rset
17378 s/^[ ]*#[ ]*define[ ][ ]*/ /
17379 t def
17381 :def
17382 s/\\$//
17383 t bsnl
17384 s/["\\]/\\&/g
17385 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17386 D["\1"]=" \3"/p
17387 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17389 :bsnl
17390 s/["\\]/\\&/g
17391 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17392 D["\1"]=" \3\\\\\\n"\\/p
17393 t cont
17394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17395 t cont
17397 :cont
17399 s/.\{148\}/&'"$ac_delim"'/g
17400 t clear
17401 :clear
17402 s/\\$//
17403 t bsnlc
17404 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17406 :bsnlc
17407 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17408 b cont
17409 ' <confdefs.h | sed '
17410 s/'"$ac_delim"'/"\\\
17411 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17414 for (key in D) D_is_set[key] = 1
17415 FS = "\a"
17417 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17418 line = \$ 0
17419 split(line, arg, " ")
17420 if (arg[1] == "#") {
17421 defundef = arg[2]
17422 mac1 = arg[3]
17423 } else {
17424 defundef = substr(arg[1], 2)
17425 mac1 = arg[2]
17427 split(mac1, mac2, "(") #)
17428 macro = mac2[1]
17429 prefix = substr(line, 1, index(line, defundef) - 1)
17430 if (D_is_set[macro]) {
17431 # Preserve the white space surrounding the "#".
17432 print prefix "define", macro P[macro] D[macro]
17433 next
17434 } else {
17435 # Replace #undef with comments. This is necessary, for example,
17436 # in the case of _POSIX_SOURCE, which is predefined and required
17437 # on some systems where configure will not decide to define it.
17438 if (defundef == "undef") {
17439 print "/*", prefix defundef, macro, "*/"
17440 next
17444 { print }
17445 _ACAWK
17446 _ACEOF
17447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17448 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17449 fi # test -n "$CONFIG_HEADERS"
17452 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17453 shift
17454 for ac_tag
17456 case $ac_tag in
17457 :[FHLC]) ac_mode=$ac_tag; continue;;
17458 esac
17459 case $ac_mode$ac_tag in
17460 :[FHL]*:*);;
17461 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17462 :[FH]-) ac_tag=-:-;;
17463 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17464 esac
17465 ac_save_IFS=$IFS
17466 IFS=:
17467 set x $ac_tag
17468 IFS=$ac_save_IFS
17469 shift
17470 ac_file=$1
17471 shift
17473 case $ac_mode in
17474 :L) ac_source=$1;;
17475 :[FH])
17476 ac_file_inputs=
17477 for ac_f
17479 case $ac_f in
17480 -) ac_f="$tmp/stdin";;
17481 *) # Look for the file first in the build tree, then in the source tree
17482 # (if the path is not absolute). The absolute path cannot be DOS-style,
17483 # because $ac_f cannot contain `:'.
17484 test -f "$ac_f" ||
17485 case $ac_f in
17486 [\\/$]*) false;;
17487 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17488 esac ||
17489 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17490 esac
17491 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17492 as_fn_append ac_file_inputs " '$ac_f'"
17493 done
17495 # Let's still pretend it is `configure' which instantiates (i.e., don't
17496 # use $as_me), people would be surprised to read:
17497 # /* config.h. Generated by config.status. */
17498 configure_input='Generated from '`
17499 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17500 `' by configure.'
17501 if test x"$ac_file" != x-; then
17502 configure_input="$ac_file. $configure_input"
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17504 $as_echo "$as_me: creating $ac_file" >&6;}
17506 # Neutralize special characters interpreted by sed in replacement strings.
17507 case $configure_input in #(
17508 *\&* | *\|* | *\\* )
17509 ac_sed_conf_input=`$as_echo "$configure_input" |
17510 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17511 *) ac_sed_conf_input=$configure_input;;
17512 esac
17514 case $ac_tag in
17515 *:-:* | *:-) cat >"$tmp/stdin" \
17516 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17517 esac
17519 esac
17521 ac_dir=`$as_dirname -- "$ac_file" ||
17522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17523 X"$ac_file" : 'X\(//\)[^/]' \| \
17524 X"$ac_file" : 'X\(//\)$' \| \
17525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17526 $as_echo X"$ac_file" |
17527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17528 s//\1/
17531 /^X\(\/\/\)[^/].*/{
17532 s//\1/
17535 /^X\(\/\/\)$/{
17536 s//\1/
17539 /^X\(\/\).*/{
17540 s//\1/
17543 s/.*/./; q'`
17544 as_dir="$ac_dir"; as_fn_mkdir_p
17545 ac_builddir=.
17547 case "$ac_dir" in
17548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17551 # A ".." for each directory in $ac_dir_suffix.
17552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17553 case $ac_top_builddir_sub in
17554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17556 esac ;;
17557 esac
17558 ac_abs_top_builddir=$ac_pwd
17559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17560 # for backward compatibility:
17561 ac_top_builddir=$ac_top_build_prefix
17563 case $srcdir in
17564 .) # We are building in place.
17565 ac_srcdir=.
17566 ac_top_srcdir=$ac_top_builddir_sub
17567 ac_abs_top_srcdir=$ac_pwd ;;
17568 [\\/]* | ?:[\\/]* ) # Absolute name.
17569 ac_srcdir=$srcdir$ac_dir_suffix;
17570 ac_top_srcdir=$srcdir
17571 ac_abs_top_srcdir=$srcdir ;;
17572 *) # Relative name.
17573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17574 ac_top_srcdir=$ac_top_build_prefix$srcdir
17575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17576 esac
17577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17580 case $ac_mode in
17583 # CONFIG_FILE
17586 case $INSTALL in
17587 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17588 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17589 esac
17590 ac_MKDIR_P=$MKDIR_P
17591 case $MKDIR_P in
17592 [\\/$]* | ?:[\\/]* ) ;;
17593 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17594 esac
17595 _ACEOF
17597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17598 # If the template does not know about datarootdir, expand it.
17599 # FIXME: This hack should be removed a few years after 2.60.
17600 ac_datarootdir_hack=; ac_datarootdir_seen=
17601 ac_sed_dataroot='
17602 /datarootdir/ {
17606 /@datadir@/p
17607 /@docdir@/p
17608 /@infodir@/p
17609 /@localedir@/p
17610 /@mandir@/p'
17611 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17612 *datarootdir*) ac_datarootdir_seen=yes;;
17613 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17615 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17616 _ACEOF
17617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17618 ac_datarootdir_hack='
17619 s&@datadir@&$datadir&g
17620 s&@docdir@&$docdir&g
17621 s&@infodir@&$infodir&g
17622 s&@localedir@&$localedir&g
17623 s&@mandir@&$mandir&g
17624 s&\\\${datarootdir}&$datarootdir&g' ;;
17625 esac
17626 _ACEOF
17628 # Neutralize VPATH when `$srcdir' = `.'.
17629 # Shell code in configure.ac might set extrasub.
17630 # FIXME: do we really want to maintain this feature?
17631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17632 ac_sed_extra="$ac_vpsub
17633 $extrasub
17634 _ACEOF
17635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17637 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17638 s|@configure_input@|$ac_sed_conf_input|;t t
17639 s&@top_builddir@&$ac_top_builddir_sub&;t t
17640 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17641 s&@srcdir@&$ac_srcdir&;t t
17642 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17643 s&@top_srcdir@&$ac_top_srcdir&;t t
17644 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17645 s&@builddir@&$ac_builddir&;t t
17646 s&@abs_builddir@&$ac_abs_builddir&;t t
17647 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17648 s&@INSTALL@&$ac_INSTALL&;t t
17649 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17650 $ac_datarootdir_hack
17652 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17653 || as_fn_error "could not create $ac_file" "$LINENO" 5
17655 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17656 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17659 which seems to be undefined. Please make sure it is defined." >&5
17660 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17661 which seems to be undefined. Please make sure it is defined." >&2;}
17663 rm -f "$tmp/stdin"
17664 case $ac_file in
17665 -) cat "$tmp/out" && rm -f "$tmp/out";;
17666 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17667 esac \
17668 || as_fn_error "could not create $ac_file" "$LINENO" 5
17672 # CONFIG_HEADER
17674 if test x"$ac_file" != x-; then
17676 $as_echo "/* $configure_input */" \
17677 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17678 } >"$tmp/config.h" \
17679 || as_fn_error "could not create $ac_file" "$LINENO" 5
17680 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17682 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17683 else
17684 rm -f "$ac_file"
17685 mv "$tmp/config.h" "$ac_file" \
17686 || as_fn_error "could not create $ac_file" "$LINENO" 5
17688 else
17689 $as_echo "/* $configure_input */" \
17690 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17691 || as_fn_error "could not create -" "$LINENO" 5
17693 # Compute "$ac_file"'s index in $config_headers.
17694 _am_arg="$ac_file"
17695 _am_stamp_count=1
17696 for _am_header in $config_headers :; do
17697 case $_am_header in
17698 $_am_arg | $_am_arg:* )
17699 break ;;
17701 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17702 esac
17703 done
17704 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17705 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17706 X"$_am_arg" : 'X\(//\)[^/]' \| \
17707 X"$_am_arg" : 'X\(//\)$' \| \
17708 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17709 $as_echo X"$_am_arg" |
17710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17711 s//\1/
17714 /^X\(\/\/\)[^/].*/{
17715 s//\1/
17718 /^X\(\/\/\)$/{
17719 s//\1/
17722 /^X\(\/\).*/{
17723 s//\1/
17726 s/.*/./; q'`/stamp-h$_am_stamp_count
17729 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17730 $as_echo "$as_me: executing $ac_file commands" >&6;}
17732 esac
17735 case $ac_file$ac_mode in
17736 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17737 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17738 # are listed without --file. Let's play safe and only enable the eval
17739 # if we detect the quoting.
17740 case $CONFIG_FILES in
17741 *\'*) eval set x "$CONFIG_FILES" ;;
17742 *) set x $CONFIG_FILES ;;
17743 esac
17744 shift
17745 for mf
17747 # Strip MF so we end up with the name of the file.
17748 mf=`echo "$mf" | sed -e 's/:.*$//'`
17749 # Check whether this is an Automake generated Makefile or not.
17750 # We used to match only the files named `Makefile.in', but
17751 # some people rename them; so instead we look at the file content.
17752 # Grep'ing the first line is not enough: some people post-process
17753 # each Makefile.in and add a new line on top of each file to say so.
17754 # Grep'ing the whole file is not good either: AIX grep has a line
17755 # limit of 2048, but all sed's we know have understand at least 4000.
17756 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17757 dirpart=`$as_dirname -- "$mf" ||
17758 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17759 X"$mf" : 'X\(//\)[^/]' \| \
17760 X"$mf" : 'X\(//\)$' \| \
17761 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17762 $as_echo X"$mf" |
17763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17764 s//\1/
17767 /^X\(\/\/\)[^/].*/{
17768 s//\1/
17771 /^X\(\/\/\)$/{
17772 s//\1/
17775 /^X\(\/\).*/{
17776 s//\1/
17779 s/.*/./; q'`
17780 else
17781 continue
17783 # Extract the definition of DEPDIR, am__include, and am__quote
17784 # from the Makefile without running `make'.
17785 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17786 test -z "$DEPDIR" && continue
17787 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17788 test -z "am__include" && continue
17789 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17790 # When using ansi2knr, U may be empty or an underscore; expand it
17791 U=`sed -n 's/^U = //p' < "$mf"`
17792 # Find all dependency output files, they are included files with
17793 # $(DEPDIR) in their names. We invoke sed twice because it is the
17794 # simplest approach to changing $(DEPDIR) to its actual value in the
17795 # expansion.
17796 for file in `sed -n "
17797 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17798 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17799 # Make sure the directory exists.
17800 test -f "$dirpart/$file" && continue
17801 fdir=`$as_dirname -- "$file" ||
17802 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17803 X"$file" : 'X\(//\)[^/]' \| \
17804 X"$file" : 'X\(//\)$' \| \
17805 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17806 $as_echo X"$file" |
17807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17808 s//\1/
17811 /^X\(\/\/\)[^/].*/{
17812 s//\1/
17815 /^X\(\/\/\)$/{
17816 s//\1/
17819 /^X\(\/\).*/{
17820 s//\1/
17823 s/.*/./; q'`
17824 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17825 # echo "creating $dirpart/$file"
17826 echo '# dummy' > "$dirpart/$file"
17827 done
17828 done
17831 "default-1":C)
17832 for ac_file in $CONFIG_FILES; do
17833 # Support "outfile[:infile[:infile...]]"
17834 case "$ac_file" in
17835 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17836 esac
17837 # PO directories have a Makefile.in generated from Makefile.in.in.
17838 case "$ac_file" in */Makefile.in)
17839 # Adjust a relative srcdir.
17840 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17841 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17842 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17843 # In autoconf-2.13 it is called $ac_given_srcdir.
17844 # In autoconf-2.50 it is called $srcdir.
17845 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17846 case "$ac_given_srcdir" in
17847 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17848 /*) top_srcdir="$ac_given_srcdir" ;;
17849 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17850 esac
17851 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17852 rm -f "$ac_dir/POTFILES"
17853 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17854 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17855 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17856 # on $ac_dir but don't depend on user-specified configuration
17857 # parameters.
17858 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17859 # The LINGUAS file contains the set of available languages.
17860 if test -n "$ALL_LINGUAS"; then
17861 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17863 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17864 # Hide the ALL_LINGUAS assigment from automake.
17865 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17867 case "$ac_given_srcdir" in
17868 .) srcdirpre= ;;
17869 *) srcdirpre='$(srcdir)/' ;;
17870 esac
17871 POFILES=
17872 GMOFILES=
17873 UPDATEPOFILES=
17874 DUMMYPOFILES=
17875 for lang in $ALL_LINGUAS; do
17876 POFILES="$POFILES $srcdirpre$lang.po"
17877 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17878 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17879 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17880 done
17881 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17882 # environment variable.
17883 INST_LINGUAS=
17884 if test -n "$ALL_LINGUAS"; then
17885 for presentlang in $ALL_LINGUAS; do
17886 useit=no
17887 if test "%UNSET%" != "$LINGUAS"; then
17888 desiredlanguages="$LINGUAS"
17889 else
17890 desiredlanguages="$ALL_LINGUAS"
17892 for desiredlang in $desiredlanguages; do
17893 # Use the presentlang catalog if desiredlang is
17894 # a. equal to presentlang, or
17895 # b. a variant of presentlang (because in this case,
17896 # presentlang can be used as a fallback for messages
17897 # which are not translated in the desiredlang catalog).
17898 case "$desiredlang" in
17899 "$presentlang"*) useit=yes;;
17900 esac
17901 done
17902 if test $useit = yes; then
17903 INST_LINGUAS="$INST_LINGUAS $presentlang"
17905 done
17907 CATALOGS=
17908 if test -n "$INST_LINGUAS"; then
17909 for lang in $INST_LINGUAS; do
17910 CATALOGS="$CATALOGS $lang.gmo"
17911 done
17913 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17914 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"
17915 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17916 if test -f "$f"; then
17917 case "$f" in
17918 *.orig | *.bak | *~) ;;
17919 *) cat "$f" >> "$ac_dir/Makefile" ;;
17920 esac
17922 done
17925 esac
17926 done ;;
17927 "denoiser":C) if test $denoiserlevel -gt 0; then
17928 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
17929 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" \
17930 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
17931 for i in `find . -name 'Makefile' -print`; do
17932 if test -n "`head -n 1 $i | grep '^#'`"; then
17933 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
17935 done
17936 fi ;;
17938 esac
17939 done # for ac_tag
17942 as_fn_exit 0
17943 _ACEOF
17944 ac_clean_files=$ac_clean_files_save
17946 test $ac_write_fail = 0 ||
17947 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17950 # configure is writing to config.log, and then calls config.status.
17951 # config.status does its own redirection, appending to config.log.
17952 # Unfortunately, on DOS this fails, as config.log is still kept open
17953 # by configure, so config.status won't be able to write to it; its
17954 # output is simply discarded. So we exec the FD to /dev/null,
17955 # effectively closing config.log, so it can be properly (re)opened and
17956 # appended to by config.status. When coming back to configure, we
17957 # need to make the FD available again.
17958 if test "$no_create" != yes; then
17959 ac_cs_success=:
17960 ac_config_status_args=
17961 test "$silent" = yes &&
17962 ac_config_status_args="$ac_config_status_args --quiet"
17963 exec 5>/dev/null
17964 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17965 exec 5>>config.log
17966 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17967 # would make configure fail if this is the last instruction.
17968 $ac_cs_success || as_fn_exit $?
17970 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17972 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17976 if test -n "$svndate"; then :
17977 SVN_REVISION=" ($svndate)"
17978 else
17979 SVN_REVISION=
17982 echo
17983 echo
17984 echo " Configure script has finished system check."
17985 echo
17986 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17987 echo
17988 echo " aMule enabled options:"
17989 echo
17990 echo " **** aMule Core ****"
17991 echo " Prefix where aMule should be installed? ${prefix:-none}"
17992 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17993 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17994 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17995 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17996 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17997 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17998 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17999 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18000 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18002 echo
18003 echo " **** aMule TextClient ****"
18004 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18005 echo
18006 echo " **** aMule WebServer ****"
18007 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18008 echo
18009 echo " **** aMule ED2K Links Handler ****"
18010 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18011 echo
18012 echo " **** aMuleLinkCreator ****"
18013 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18014 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18015 echo
18016 echo " **** aMule Statistics ****"
18017 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18018 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18019 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18020 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
18022 echo
18023 echo " **** General Libraries and Tools ****"
18024 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18025 echo " Libraries aMule will use to build:"
18026 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 :
18028 wxinfo="$WX_PORT"
18029 if test $WX_DEBUG -eq 1; then :
18030 wxinfo="$wxinfo,debug"
18032 if test $WX_SHARED -eq 1; then :
18033 wxinfo="$wxinfo,shared"
18034 else
18035 wxinfo="$wxinfo,static"
18037 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
18040 if test ${with_boost:-no} != no; then :
18041 if test ${with_boost:-no} = disabled; then
18042 echo " boost Not detected"
18043 elif test ${boost_cv_inc_path:-yes} != yes; then
18044 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18045 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18050 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18051 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})"
18053 if test ${enable_upnp:-yes} = yes; then :
18055 if test -n "$with_libupnp_prefix"; then :
18056 libupnp_place=" (in $with_libupnp_prefix)"
18058 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18061 if test ${enable_nls:-yes} = yes; then
18062 if test x$USE_NLS = xno; then :
18063 libintl_found="Not detected"
18064 else
18065 if test x$USE_INCLUDED_LIBINTL = xyes; then :
18066 libintl_found="included"
18067 else
18068 libintl_found="system"
18071 echo " libintl $libintl_found"
18073 if test ${enable_geoip:-no} = yes; then :
18074 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18075 geoip_style=system
18076 else
18077 geoip_style=user
18079 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18080 echo " libGeoIP ${geoip_style}"
18083 if test ${enable_webserver:-no} = yes; then :
18084 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18086 if test ${enable_cas:-no} = yes; then :
18087 echo " libgd ${GDLIB_VERSION:-Not detected}"
18089 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 :
18090 echo " zlib ${ZLIB_VERSION:-Not detected}"
18092 if test ${enable_plasmamule:-no} = yes; then :
18093 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18094 echo " qt-core-libs ${QT_CORE_LIBS}"
18095 echo " qt-gui-libs ${QT_GUI_LIBS}"
18096 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18097 echo " kde-headers ${KDE_HEADER_DIR}"
18098 echo " kde-services-path ${KDE_SERVICE_PATH}"
18099 echo " kde-module-path ${KDE_MODULE_PATH}"
18100 echo " kde-icon-path ${KDE_ICON_PATH}"
18101 echo " kde-mime-path ${KDE_MIME_PATH}"
18102 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18105 if test ${_mule_has_warnings:-no} = yes; then
18106 echo ""
18107 echo ""
18108 echo " *** Warnings during configuration ***"
18110 if test ${_mule_warning_0:-no} = yes; then
18111 cat <<_MULEEOT
18113 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18114 Please check that gdlib-config is in your default path, check out
18115 LD_LIBRARY_PATH or equivalent variable.
18116 Or this might also be that your gdlib-config has other name.
18117 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18118 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18119 If you use compiled packages check if you have devel pack installed.
18120 To download the latest version check http://www.boutell.com/gd for sources.
18121 _MULEEOT
18123 if test ${_mule_warning_1:-no} = yes; then
18124 cat <<_MULEEOT
18126 * libpng >= 1.2.0 not found.
18127 amuleweb will be compiled but file download progress bar images will NOT be
18128 generated.
18129 _MULEEOT
18131 if test ${_mule_warning_2:-no} = yes; then
18132 cat <<_MULEEOT
18134 * File::Copy perl module is required by the mldonkey_importer script.
18135 If you want to use this script please install File::Copy from CPAN.
18136 _MULEEOT
18138 if test ${_mule_warning_3:-no} = yes; then
18139 cat <<_MULEEOT
18141 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18142 _MULEEOT
18144 if test ${_mule_warning_4:-no} = yes; then
18145 cat <<_MULEEOT
18147 * GeoIP support has been disabled because the GeoIP libraries were not found
18148 _MULEEOT
18150 if test ${_mule_warning_5:-no} = yes; then
18151 cat <<_MULEEOT
18153 * GeoIP support has been disabled because the GeoIP header files were not
18154 found
18155 _MULEEOT
18157 if test ${_mule_warning_6:-no} = yes; then
18158 cat <<_MULEEOT
18160 * UPnP code has been disabled because ${libupnp_error}.
18161 _MULEEOT
18163 if test ${_mule_warning_7:-no} = yes; then
18164 cat <<_MULEEOT
18166 * Cross-compilation detected, so exception handling cannot be tested.
18167 Note that broken exception handling in your compiler may lead to unexpected
18168 crashes.
18169 _MULEEOT
18171 if test ${_mule_warning_8:-no} = yes; then
18172 cat <<_MULEEOT
18174 * Boost support has been disabled because Boost.System not found
18175 _MULEEOT
18177 if test ${_mule_warning_9:-no} = yes; then
18178 cat <<_MULEEOT
18180 * Boost support has been disabled because Boost.Asio not found
18181 _MULEEOT
18183 if test ${_mule_warning_10:-no} = yes; then
18184 cat <<_MULEEOT
18186 * Boost support has been disabled because Boost.Asio not found
18187 _MULEEOT
18189 if test ${_mule_warning_11:-no} = yes; then
18190 cat <<_MULEEOT
18192 * Boost support has been disabled because of insufficient Boost version.
18193 _MULEEOT
18195 if test ${_mule_warning_12:-no} = yes; then
18196 cat <<_MULEEOT
18198 * configure cannot check whether malloc() and realloc() are GNU libc
18199 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18200 configure with the --without-gnu-malloc switch.
18201 _MULEEOT
18203 if test ${_mule_warning_13:-no} = yes; then
18204 cat <<_MULEEOT
18206 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18207 support.
18208 _MULEEOT
18210 if test ${_mule_warning_14:-no} = yes; then
18211 cat <<_MULEEOT
18213 * Cannot link to the library containing the bfd functions.
18214 _MULEEOT
18216 if test ${_mule_warning_15:-no} = yes; then
18217 cat <<_MULEEOT
18219 * bfd.h not found or unusable, please install binutils development package if
18220 you are a developer or want to help testing aMule
18221 _MULEEOT