Updated MSVC12 projects for wx 3.0.2
[amule.git] / configure
blob75101a81c42b486c5efb862f19c028d3af29571a
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_mmap
917 with_language
918 with_gnu_ld
919 enable_rpath
920 with_libiconv_prefix
921 enable_nls
922 with_included_gettext
923 with_libintl_prefix
924 with_denoise_level
925 enable_ccache
926 with_ccache_prefix
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
932 CXXFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
937 CXXCPP
939 CFLAGS
941 YACC
942 YFLAGS
944 RCFLAGS
945 PKG_CONFIG
946 BOOST_ROOT'
949 # Initialize some variables set by options.
950 ac_init_help=
951 ac_init_version=false
952 ac_unrecognized_opts=
953 ac_unrecognized_sep=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
956 cache_file=/dev/null
957 exec_prefix=NONE
958 no_create=
959 no_recursion=
960 prefix=NONE
961 program_prefix=NONE
962 program_suffix=NONE
963 program_transform_name=s,x,x,
964 silent=
965 site=
966 srcdir=
967 verbose=
968 x_includes=NONE
969 x_libraries=NONE
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
989 htmldir='${docdir}'
990 dvidir='${docdir}'
991 pdfdir='${docdir}'
992 psdir='${docdir}'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
997 ac_prev=
998 ac_dashdash=
999 for ac_option
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1004 ac_prev=
1005 continue
1008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1015 case $ac_dashdash$ac_option in
1017 ac_dashdash=yes ;;
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1039 -datadir | --datadir | --datadi | --datad)
1040 ac_prev=datadir ;;
1041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1042 datadir=$ac_optarg ;;
1044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1051 -disable-* | --disable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=no ;;
1067 -docdir | --docdir | --docdi | --doc | --do)
1068 ac_prev=docdir ;;
1069 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1070 docdir=$ac_optarg ;;
1072 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 ac_prev=dvidir ;;
1074 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1075 dvidir=$ac_optarg ;;
1077 -enable-* | --enable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_$ac_useropt"
1087 "*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=\$ac_optarg ;;
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1153 -localstatedir | --localstatedir | --localstatedi | --localstated \
1154 | --localstate | --localstat | --localsta | --localst | --locals)
1155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1158 localstatedir=$ac_optarg ;;
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1281 -with-* | --with-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 as_fn_error "invalid package name: $ac_useropt"
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1306 "with_$ac_useropt"
1307 "*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) as_fn_error "unrecognized option: \`$ac_option'
1332 Try \`$0 --help' for more information."
1335 *=*)
1336 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337 # Reject names that are not valid shell variable names.
1338 case $ac_envvar in #(
1339 '' | [0-9]* | *[!_$as_cr_alnum]* )
1340 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1341 esac
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1353 esac
1354 done
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 as_fn_error "missing argument to $ac_option"
1361 if test -n "$ac_unrecognized_opts"; then
1362 case $enable_option_checking in
1363 no) ;;
1364 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1365 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 esac
1369 # Check all directory arguments for consistency.
1370 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371 datadir sysconfdir sharedstatedir localstatedir includedir \
1372 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373 libdir localedir mandir
1375 eval ac_val=\$$ac_var
1376 # Remove trailing slashes.
1377 case $ac_val in
1378 */ )
1379 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380 eval $ac_var=\$ac_val;;
1381 esac
1382 # Be sure to have absolute directory names.
1383 case $ac_val in
1384 [\\/$]* | ?:[\\/]* ) continue;;
1385 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386 esac
1387 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1388 done
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399 if test "x$build_alias" = x; then
1400 cross_compiling=maybe
1401 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402 If a cross compiler is detected then cross compile mode will be used." >&2
1403 elif test "x$build_alias" != "x$host_alias"; then
1404 cross_compiling=yes
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1440 /^X\(\/\/\)$/{
1441 s//\1/
1444 /^X\(\/\).*/{
1445 s//\1/
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1453 else
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 ac_abs_confdir=`(
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1463 pwd)`
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1466 srcdir=.
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1471 case $srcdir in
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 esac
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1479 done
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1487 cat <<_ACEOF
1488 \`configure' configures aMule SVN to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1497 Configuration:
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1512 [PREFIX]
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1541 _ACEOF
1543 cat <<\_ACEOF
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550 System types:
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1553 _ACEOF
1556 if test -n "$ac_init_help"; then
1557 case $ac_init_help in
1558 short | recursive ) echo "Configuration of aMule SVN:";;
1559 esac
1560 cat <<\_ACEOF
1562 Optional Features:
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --enable-silent-rules less verbose build output (undo: `make V=1')
1567 --disable-silent-rules verbose build output (undo: `make V=0')
1568 --enable-maintainer-mode enable make rules and dependencies not useful
1569 (and sometimes confusing) to the casual installer
1570 --disable-dependency-tracking speeds up one-time build
1571 --enable-dependency-tracking do not reject slow dependency extractors
1572 --disable-monolithic disable building of the monolithic aMule app
1573 --enable-amule-daemon compile aMule daemon version
1574 --enable-amulecmd compile aMule command line client
1575 --enable-webserver compile aMule WebServer
1576 --enable-amule-gui compile aMule remote GUI
1577 --enable-cas compile C aMule Statistics
1578 --enable-wxcas compile aMule GUI Statistics
1579 --disable-ed2k don't compile aMule ed2k links handler
1580 --enable-alc compile aMuleLinkCreator GUI version
1581 --enable-alcc compile aMuleLinkCreator for console
1582 --enable-xas install xas XChat2 plugin
1583 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1584 --enable-plasmamule compile aMule plasma applet and engine
1585 --enable-static produce a statically linked executable
1586 --enable-kde-in-home install KDE related stuff in your home dir
1587 --enable-geoip compile with GeoIP IP2Country library
1588 --disable-upnp do not compile UPnP code
1589 --disable-debug disable additional debugging output
1590 --enable-profile enable code profiling
1591 --enable-optimize enable code optimization
1592 --enable-mmap enable using mapped memory if supported
1593 --disable-rpath do not hardcode runtime library paths
1594 --disable-nls do not use Native Language Support
1595 --enable-ccache enable ccache support for fast recompilation
1597 Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-kde4-config=PATH kde4-config script to use
1601 --with-moc=PATH Search in PATH for Qt's meta object compiler
1602 --without-gnu-malloc Don't assume that we use GNU libc compatible
1603 malloc/realloc when cross-compiling
1604 --with-gdlib-prefix=PREFIX
1605 prefix where gdlib is installed (optional)
1606 --with-gdlib-config=CONFIG
1607 gdlib-config script to use (optional)
1608 --with-zlib=PREFIX use zlib in PREFIX
1609 --with-libpng-prefix=PREFIX
1610 prefix where libpng is installed (optional)
1611 --with-libpng-config=CONFIG
1612 libpng-config script to use (optional)
1613 --with-geoip-headers=DIR
1614 GeoIP include files location
1615 --with-geoip-lib=DIR GeoIP library location
1616 --with-geoip-static Explicitly link GeoIP statically (default=no)
1617 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1618 --with-wx-config=CONFIG wx-config script to use (optional)
1619 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1620 --with-wx-exec-prefix=PREFIX
1621 Exec prefix where wxWidgets is installed (optional)
1622 --with-toolkit Build against a specific wxWidgets toolkit (default
1623 is auto)
1624 --with-wxshared Force building against a shared build of wxWidgets,
1625 even if --disable-shared is given (default is auto)
1626 --with-wxdebug Force building against a debug build of wxWidgets,
1627 even if --disable-debug is given (default is auto)
1628 --with-wxversion Build against a specific version of wxWidgets
1629 (default is auto)
1630 --with-libupnp-prefix=PREFIX
1631 UPnP library location
1632 --with-crypto-prefix=PREFIX
1633 prefix where crypto++ is installed
1634 --with-boost[=DIR] use Boost.Asio for networking
1635 --with-language=<langs> Specify a comma-separated list of languages you want
1636 to have installed. See po/LINGUAS for available
1637 languages
1638 --with-gnu-ld assume the C compiler uses GNU ld default=no
1639 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1640 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1641 --with-included-gettext use the GNU gettext library included here
1642 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1643 --without-libintl-prefix don't search for libintl in includedir and libdir
1644 --with-denoise-level=<level>
1645 Specifies denoising level (0-4):
1646 0 - Do nothing
1647 4 - Suppress all normal output
1648 (for more information see
1649 src/utils/scripts/denoiser.rules)
1651 --with-ccache-prefix=PREFIX
1652 prefix where ccache is installed
1654 Some influential environment variables:
1655 CXX C++ compiler command
1656 CXXFLAGS C++ compiler flags
1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1658 nonstandard directory <lib dir>
1659 LIBS libraries to pass to the linker, e.g. -l<library>
1660 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1661 you have headers in a nonstandard directory <include dir>
1662 CXXCPP C++ preprocessor
1663 CC C compiler command
1664 CFLAGS C compiler flags
1665 CPP C preprocessor
1666 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1667 the first program found out of: `bison -y', `byacc', `yacc'.
1668 YFLAGS The list of arguments that will be passed by default to $YACC.
1669 This script will default YFLAGS to the empty string to avoid a
1670 default value of `-d' given by some make applications.
1671 RC Resource Compiler
1672 RCFLAGS Resource Compiler Flags
1673 PKG_CONFIG path to pkg-config utility
1674 BOOST_ROOT Location of Boost installation
1676 Use these variables to override the choices made by `configure' or to help
1677 it to find libraries and programs with nonstandard names/locations.
1679 Report bugs to <admin@amule.org>.
1680 _ACEOF
1681 ac_status=$?
1684 if test "$ac_init_help" = "recursive"; then
1685 # If there are subdirs, report their specific --help.
1686 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1687 test -d "$ac_dir" ||
1688 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1689 continue
1690 ac_builddir=.
1692 case "$ac_dir" in
1693 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1696 # A ".." for each directory in $ac_dir_suffix.
1697 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698 case $ac_top_builddir_sub in
1699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1701 esac ;;
1702 esac
1703 ac_abs_top_builddir=$ac_pwd
1704 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1705 # for backward compatibility:
1706 ac_top_builddir=$ac_top_build_prefix
1708 case $srcdir in
1709 .) # We are building in place.
1710 ac_srcdir=.
1711 ac_top_srcdir=$ac_top_builddir_sub
1712 ac_abs_top_srcdir=$ac_pwd ;;
1713 [\\/]* | ?:[\\/]* ) # Absolute name.
1714 ac_srcdir=$srcdir$ac_dir_suffix;
1715 ac_top_srcdir=$srcdir
1716 ac_abs_top_srcdir=$srcdir ;;
1717 *) # Relative name.
1718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719 ac_top_srcdir=$ac_top_build_prefix$srcdir
1720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1721 esac
1722 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1724 cd "$ac_dir" || { ac_status=$?; continue; }
1725 # Check for guested configure.
1726 if test -f "$ac_srcdir/configure.gnu"; then
1727 echo &&
1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729 elif test -f "$ac_srcdir/configure"; then
1730 echo &&
1731 $SHELL "$ac_srcdir/configure" --help=recursive
1732 else
1733 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1734 fi || ac_status=$?
1735 cd "$ac_pwd" || { ac_status=$?; break; }
1736 done
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1741 cat <<\_ACEOF
1742 aMule configure SVN
1743 generated by GNU Autoconf 2.65
1745 Copyright (C) 2009 Free Software Foundation, Inc.
1746 This configure script is free software; the Free Software Foundation
1747 gives unlimited permission to copy, distribute and modify it.
1748 _ACEOF
1749 exit
1752 ## ------------------------ ##
1753 ## Autoconf initialization. ##
1754 ## ------------------------ ##
1756 # ac_fn_cxx_try_compile LINENO
1757 # ----------------------------
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_cxx_try_compile ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext
1763 if { { ac_try="$ac_compile"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_compile") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_cxx_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest.$ac_objext; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1787 ac_retval=1
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_cxx_try_compile
1794 # ac_fn_cxx_try_cpp LINENO
1795 # ------------------------
1796 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_cxx_try_cpp ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if { { ac_try="$ac_cpp conftest.$ac_ext"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } >/dev/null && {
1816 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1817 test ! -s conftest.err
1818 }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=1
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_cxx_try_cpp
1831 # ac_fn_c_try_compile LINENO
1832 # --------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_c_try_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=1
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 as_fn_set_status $ac_retval
1867 } # ac_fn_c_try_compile
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_cpp ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 ac_status=$?
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } >/dev/null && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 }; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=1
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_cpp
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_link ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext conftest$ac_exeext
1913 if { { ac_try="$ac_link"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 $as_test_x conftest$ac_exeext
1934 }; then :
1935 ac_retval=0
1936 else
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1940 ac_retval=1
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948 as_fn_set_status $ac_retval
1950 } # ac_fn_c_try_link
1952 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1953 # -------------------------------------------------------
1954 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1955 # the include files in INCLUDES and setting the cache variable VAR
1956 # accordingly.
1957 ac_fn_c_check_header_mongrel ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 else
1970 # Is the header compilable?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1972 $as_echo_n "checking $2 usability... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 ac_header_compiler=yes
1980 else
1981 ac_header_compiler=no
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1985 $as_echo "$ac_header_compiler" >&6; }
1987 # Is the header present?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1989 $as_echo_n "checking $2 presence... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 #include <$2>
1993 _ACEOF
1994 if ac_fn_c_try_cpp "$LINENO"; then :
1995 ac_header_preproc=yes
1996 else
1997 ac_header_preproc=no
1999 rm -f conftest.err conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2001 $as_echo "$ac_header_preproc" >&6; }
2003 # So? What about this header?
2004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2005 yes:no: )
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2007 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 no:yes:* )
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2013 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2015 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2017 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2019 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2021 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 ( cat <<\_ASBOX
2023 ## ------------------------------ ##
2024 ## Report this to admin@amule.org ##
2025 ## ------------------------------ ##
2026 _ASBOX
2027 ) | sed "s/^/$as_me: WARNING: /" >&2
2029 esac
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2033 $as_echo_n "(cached) " >&6
2034 else
2035 eval "$3=\$ac_header_compiler"
2037 eval ac_res=\$$3
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 } # ac_fn_c_check_header_mongrel
2045 # ac_fn_c_try_run LINENO
2046 # ----------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2048 # that executables *can* be run.
2049 ac_fn_c_try_run ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_link"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>&5
2060 ac_status=$?
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2063 { { case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_try") 2>&5
2070 ac_status=$?
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; }; }; then :
2073 ac_retval=0
2074 else
2075 $as_echo "$as_me: program exited with status $ac_status" >&5
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2079 ac_retval=$ac_status
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_c_try_run
2087 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2088 # -------------------------------------------------------
2089 # Tests whether HEADER exists and can be compiled using the include files in
2090 # INCLUDES, setting the cache variable VAR accordingly.
2091 ac_fn_c_check_header_compile ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2097 $as_echo_n "(cached) " >&6
2098 else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2102 #include <$2>
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 eval "$3=yes"
2106 else
2107 eval "$3=no"
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116 } # ac_fn_c_check_header_compile
2118 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2119 # -------------------------------------------
2120 # Tests whether TYPE exists after having included INCLUDES, setting cache
2121 # variable VAR accordingly.
2122 ac_fn_c_check_type ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128 $as_echo_n "(cached) " >&6
2129 else
2130 eval "$3=no"
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2135 main ()
2137 if (sizeof ($2))
2138 return 0;
2140 return 0;
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2148 main ()
2150 if (sizeof (($2)))
2151 return 0;
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2158 else
2159 eval "$3=yes"
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 eval ac_res=\$$3
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170 } # ac_fn_c_check_type
2172 # ac_fn_cxx_try_link LINENO
2173 # -------------------------
2174 # Try to link conftest.$ac_ext, and return whether this succeeded.
2175 ac_fn_cxx_try_link ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 rm -f conftest.$ac_objext conftest$ac_exeext
2179 if { { ac_try="$ac_link"
2180 case "(($ac_try" in
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2183 esac
2184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2185 $as_echo "$ac_try_echo"; } >&5
2186 (eval "$ac_link") 2>conftest.err
2187 ac_status=$?
2188 if test -s conftest.err; then
2189 grep -v '^ *+' conftest.err >conftest.er1
2190 cat conftest.er1 >&5
2191 mv -f conftest.er1 conftest.err
2193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2194 test $ac_status = 0; } && {
2195 test -z "$ac_cxx_werror_flag" ||
2196 test ! -s conftest.err
2197 } && test -s conftest$ac_exeext && {
2198 test "$cross_compiling" = yes ||
2199 $as_test_x conftest$ac_exeext
2200 }; then :
2201 ac_retval=0
2202 else
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2206 ac_retval=1
2208 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2209 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2210 # interfere with the next link command; also delete a directory that is
2211 # left behind by Apple's compiler. We do this before executing the actions.
2212 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2213 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2214 as_fn_set_status $ac_retval
2216 } # ac_fn_cxx_try_link
2218 # ac_fn_cxx_try_run LINENO
2219 # ------------------------
2220 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2221 # that executables *can* be run.
2222 ac_fn_cxx_try_run ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 if { { ac_try="$ac_link"
2226 case "(($ac_try" in
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2229 esac
2230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2231 $as_echo "$ac_try_echo"; } >&5
2232 (eval "$ac_link") 2>&5
2233 ac_status=$?
2234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2235 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2236 { { case "(($ac_try" in
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2239 esac
2240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2241 $as_echo "$ac_try_echo"; } >&5
2242 (eval "$ac_try") 2>&5
2243 ac_status=$?
2244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245 test $ac_status = 0; }; }; then :
2246 ac_retval=0
2247 else
2248 $as_echo "$as_me: program exited with status $ac_status" >&5
2249 $as_echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2252 ac_retval=$ac_status
2254 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2255 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256 as_fn_set_status $ac_retval
2258 } # ac_fn_cxx_try_run
2260 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2261 # ---------------------------------------------------------
2262 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2263 # the include files in INCLUDES and setting the cache variable VAR
2264 # accordingly.
2265 ac_fn_cxx_check_header_mongrel ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2272 $as_echo_n "(cached) " >&6
2274 eval ac_res=\$$3
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2276 $as_echo "$ac_res" >&6; }
2277 else
2278 # Is the header compilable?
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2280 $as_echo_n "checking $2 usability... " >&6; }
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2284 #include <$2>
2285 _ACEOF
2286 if ac_fn_cxx_try_compile "$LINENO"; then :
2287 ac_header_compiler=yes
2288 else
2289 ac_header_compiler=no
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2293 $as_echo "$ac_header_compiler" >&6; }
2295 # Is the header present?
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2297 $as_echo_n "checking $2 presence... " >&6; }
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 #include <$2>
2301 _ACEOF
2302 if ac_fn_cxx_try_cpp "$LINENO"; then :
2303 ac_header_preproc=yes
2304 else
2305 ac_header_preproc=no
2307 rm -f conftest.err conftest.$ac_ext
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2309 $as_echo "$ac_header_preproc" >&6; }
2311 # So? What about this header?
2312 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2313 yes:no: )
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2315 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2317 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2319 no:yes:* )
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2321 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2323 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2325 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2327 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2329 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2330 ( cat <<\_ASBOX
2331 ## ------------------------------ ##
2332 ## Report this to admin@amule.org ##
2333 ## ------------------------------ ##
2334 _ASBOX
2335 ) | sed "s/^/$as_me: WARNING: /" >&2
2337 esac
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2339 $as_echo_n "checking for $2... " >&6; }
2340 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2341 $as_echo_n "(cached) " >&6
2342 else
2343 eval "$3=\$ac_header_compiler"
2345 eval ac_res=\$$3
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2349 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2351 } # ac_fn_cxx_check_header_mongrel
2353 # ac_fn_cxx_check_func LINENO FUNC VAR
2354 # ------------------------------------
2355 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2356 ac_fn_cxx_check_func ()
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2360 $as_echo_n "checking for $2... " >&6; }
2361 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2362 $as_echo_n "(cached) " >&6
2363 else
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2366 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2368 #define $2 innocuous_$2
2370 /* System header to define __stub macros and hopefully few prototypes,
2371 which can conflict with char $2 (); below.
2372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2373 <limits.h> exists even on freestanding compilers. */
2375 #ifdef __STDC__
2376 # include <limits.h>
2377 #else
2378 # include <assert.h>
2379 #endif
2381 #undef $2
2383 /* Override any GCC internal prototype to avoid an error.
2384 Use char because int might match the return type of a GCC
2385 builtin and then its argument prototype would still apply. */
2386 #ifdef __cplusplus
2387 extern "C"
2388 #endif
2389 char $2 ();
2390 /* The GNU C library defines this for functions which it implements
2391 to always fail with ENOSYS. Some functions are actually named
2392 something starting with __ and the normal name is an alias. */
2393 #if defined __stub_$2 || defined __stub___$2
2394 choke me
2395 #endif
2398 main ()
2400 return $2 ();
2402 return 0;
2404 _ACEOF
2405 if ac_fn_cxx_try_link "$LINENO"; then :
2406 eval "$3=yes"
2407 else
2408 eval "$3=no"
2410 rm -f core conftest.err conftest.$ac_objext \
2411 conftest$ac_exeext conftest.$ac_ext
2413 eval ac_res=\$$3
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2415 $as_echo "$ac_res" >&6; }
2416 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2418 } # ac_fn_cxx_check_func
2420 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2421 # ---------------------------------------------
2422 # Tests whether TYPE exists after having included INCLUDES, setting cache
2423 # variable VAR accordingly.
2424 ac_fn_cxx_check_type ()
2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2428 $as_echo_n "checking for $2... " >&6; }
2429 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 eval "$3=no"
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2437 main ()
2439 if (sizeof ($2))
2440 return 0;
2442 return 0;
2444 _ACEOF
2445 if ac_fn_cxx_try_compile "$LINENO"; then :
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2450 main ()
2452 if (sizeof (($2)))
2453 return 0;
2455 return 0;
2457 _ACEOF
2458 if ac_fn_cxx_try_compile "$LINENO"; then :
2460 else
2461 eval "$3=yes"
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 eval ac_res=\$$3
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2469 $as_echo "$ac_res" >&6; }
2470 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2472 } # ac_fn_cxx_check_type
2474 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2475 # ---------------------------------------------------------
2476 # Tests whether HEADER exists and can be compiled using the include files in
2477 # INCLUDES, setting the cache variable VAR accordingly.
2478 ac_fn_cxx_check_header_compile ()
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2482 $as_echo_n "checking for $2... " >&6; }
2483 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2489 #include <$2>
2490 _ACEOF
2491 if ac_fn_cxx_try_compile "$LINENO"; then :
2492 eval "$3=yes"
2493 else
2494 eval "$3=no"
2496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498 eval ac_res=\$$3
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503 } # ac_fn_cxx_check_header_compile
2505 # ac_fn_c_check_func LINENO FUNC VAR
2506 # ----------------------------------
2507 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2508 ac_fn_c_check_func ()
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2512 $as_echo_n "checking for $2... " >&6; }
2513 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h. */
2518 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2520 #define $2 innocuous_$2
2522 /* System header to define __stub macros and hopefully few prototypes,
2523 which can conflict with char $2 (); below.
2524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2525 <limits.h> exists even on freestanding compilers. */
2527 #ifdef __STDC__
2528 # include <limits.h>
2529 #else
2530 # include <assert.h>
2531 #endif
2533 #undef $2
2535 /* Override any GCC internal prototype to avoid an error.
2536 Use char because int might match the return type of a GCC
2537 builtin and then its argument prototype would still apply. */
2538 #ifdef __cplusplus
2539 extern "C"
2540 #endif
2541 char $2 ();
2542 /* The GNU C library defines this for functions which it implements
2543 to always fail with ENOSYS. Some functions are actually named
2544 something starting with __ and the normal name is an alias. */
2545 #if defined __stub_$2 || defined __stub___$2
2546 choke me
2547 #endif
2550 main ()
2552 return $2 ();
2554 return 0;
2556 _ACEOF
2557 if ac_fn_c_try_link "$LINENO"; then :
2558 eval "$3=yes"
2559 else
2560 eval "$3=no"
2562 rm -f core conftest.err conftest.$ac_objext \
2563 conftest$ac_exeext conftest.$ac_ext
2565 eval ac_res=\$$3
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2570 } # ac_fn_c_check_func
2572 # ac_fn_c_check_decl LINENO SYMBOL VAR
2573 # ------------------------------------
2574 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2575 ac_fn_c_check_decl ()
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2579 $as_echo_n "checking whether $2 is declared... " >&6; }
2580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2587 main ()
2589 #ifndef $2
2590 (void) $2;
2591 #endif
2594 return 0;
2596 _ACEOF
2597 if ac_fn_c_try_compile "$LINENO"; then :
2598 eval "$3=yes"
2599 else
2600 eval "$3=no"
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 eval ac_res=\$$3
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2606 $as_echo "$ac_res" >&6; }
2607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609 } # ac_fn_c_check_decl
2610 cat >config.log <<_ACEOF
2611 This file contains any messages produced by compilers while
2612 running configure, to aid debugging if configure makes a mistake.
2614 It was created by aMule $as_me SVN, which was
2615 generated by GNU Autoconf 2.65. Invocation command line was
2617 $ $0 $@
2619 _ACEOF
2620 exec 5>>config.log
2622 cat <<_ASUNAME
2623 ## --------- ##
2624 ## Platform. ##
2625 ## --------- ##
2627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2644 _ASUNAME
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 $as_echo "PATH: $as_dir"
2652 done
2653 IFS=$as_save_IFS
2655 } >&5
2657 cat >&5 <<_ACEOF
2660 ## ----------- ##
2661 ## Core tests. ##
2662 ## ----------- ##
2664 _ACEOF
2667 # Keep a trace of the command line.
2668 # Strip out --no-create and --no-recursion so they do not pile up.
2669 # Strip out --silent because we don't want to record it for future runs.
2670 # Also quote any args containing shell meta-characters.
2671 # Make two passes to allow for proper duplicate-argument suppression.
2672 ac_configure_args=
2673 ac_configure_args0=
2674 ac_configure_args1=
2675 ac_must_keep_next=false
2676 for ac_pass in 1 2
2678 for ac_arg
2680 case $ac_arg in
2681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2683 | -silent | --silent | --silen | --sile | --sil)
2684 continue ;;
2685 *\'*)
2686 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2687 esac
2688 case $ac_pass in
2689 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2691 as_fn_append ac_configure_args1 " '$ac_arg'"
2692 if test $ac_must_keep_next = true; then
2693 ac_must_keep_next=false # Got value, back to normal.
2694 else
2695 case $ac_arg in
2696 *=* | --config-cache | -C | -disable-* | --disable-* \
2697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2699 | -with-* | --with-* | -without-* | --without-* | --x)
2700 case "$ac_configure_args0 " in
2701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2702 esac
2704 -* ) ac_must_keep_next=true ;;
2705 esac
2707 as_fn_append ac_configure_args " '$ac_arg'"
2709 esac
2710 done
2711 done
2712 { ac_configure_args0=; unset ac_configure_args0;}
2713 { ac_configure_args1=; unset ac_configure_args1;}
2715 # When interrupted or exit'd, cleanup temporary files, and complete
2716 # config.log. We remove comments because anyway the quotes in there
2717 # would cause problems or look ugly.
2718 # WARNING: Use '\'' to represent an apostrophe within the trap.
2719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2720 trap 'exit_status=$?
2721 # Save into config.log some information that might help in debugging.
2723 echo
2725 cat <<\_ASBOX
2726 ## ---------------- ##
2727 ## Cache variables. ##
2728 ## ---------------- ##
2729 _ASBOX
2730 echo
2731 # The following way of writing the cache mishandles newlines in values,
2733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2734 eval ac_val=\$$ac_var
2735 case $ac_val in #(
2736 *${as_nl}*)
2737 case $ac_var in #(
2738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2740 esac
2741 case $ac_var in #(
2742 _ | IFS | as_nl) ;; #(
2743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2744 *) { eval $ac_var=; unset $ac_var;} ;;
2745 esac ;;
2746 esac
2747 done
2748 (set) 2>&1 |
2749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2750 *${as_nl}ac_space=\ *)
2751 sed -n \
2752 "s/'\''/'\''\\\\'\'''\''/g;
2753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2754 ;; #(
2756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2758 esac |
2759 sort
2761 echo
2763 cat <<\_ASBOX
2764 ## ----------------- ##
2765 ## Output variables. ##
2766 ## ----------------- ##
2767 _ASBOX
2768 echo
2769 for ac_var in $ac_subst_vars
2771 eval ac_val=\$$ac_var
2772 case $ac_val in
2773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774 esac
2775 $as_echo "$ac_var='\''$ac_val'\''"
2776 done | sort
2777 echo
2779 if test -n "$ac_subst_files"; then
2780 cat <<\_ASBOX
2781 ## ------------------- ##
2782 ## File substitutions. ##
2783 ## ------------------- ##
2784 _ASBOX
2785 echo
2786 for ac_var in $ac_subst_files
2788 eval ac_val=\$$ac_var
2789 case $ac_val in
2790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2791 esac
2792 $as_echo "$ac_var='\''$ac_val'\''"
2793 done | sort
2794 echo
2797 if test -s confdefs.h; then
2798 cat <<\_ASBOX
2799 ## ----------- ##
2800 ## confdefs.h. ##
2801 ## ----------- ##
2802 _ASBOX
2803 echo
2804 cat confdefs.h
2805 echo
2807 test "$ac_signal" != 0 &&
2808 $as_echo "$as_me: caught signal $ac_signal"
2809 $as_echo "$as_me: exit $exit_status"
2810 } >&5
2811 rm -f core *.core core.conftest.* &&
2812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2813 exit $exit_status
2815 for ac_signal in 1 2 13 15; do
2816 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2817 done
2818 ac_signal=0
2820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2821 rm -f -r conftest* confdefs.h
2823 $as_echo "/* confdefs.h */" > confdefs.h
2825 # Predefined preprocessor variables.
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_NAME "$PACKAGE_NAME"
2829 _ACEOF
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2833 _ACEOF
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2837 _ACEOF
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_STRING "$PACKAGE_STRING"
2841 _ACEOF
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2845 _ACEOF
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_URL "$PACKAGE_URL"
2849 _ACEOF
2852 # Let the site file select an alternate cache file if it wants to.
2853 # Prefer an explicitly selected file to automatically selected ones.
2854 ac_site_file1=NONE
2855 ac_site_file2=NONE
2856 if test -n "$CONFIG_SITE"; then
2857 ac_site_file1=$CONFIG_SITE
2858 elif test "x$prefix" != xNONE; then
2859 ac_site_file1=$prefix/share/config.site
2860 ac_site_file2=$prefix/etc/config.site
2861 else
2862 ac_site_file1=$ac_default_prefix/share/config.site
2863 ac_site_file2=$ac_default_prefix/etc/config.site
2865 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2867 test "x$ac_site_file" = xNONE && continue
2868 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2870 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2871 sed 's/^/| /' "$ac_site_file" >&5
2872 . "$ac_site_file"
2874 done
2876 if test -r "$cache_file"; then
2877 # Some versions of bash will fail to source /dev/null (special files
2878 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2879 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2881 $as_echo "$as_me: loading cache $cache_file" >&6;}
2882 case $cache_file in
2883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2884 *) . "./$cache_file";;
2885 esac
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2889 $as_echo "$as_me: creating cache $cache_file" >&6;}
2890 >$cache_file
2893 as_fn_append ac_header_list " stdlib.h"
2894 as_fn_append ac_header_list " unistd.h"
2895 as_fn_append ac_header_list " sys/param.h"
2896 # Check that the precious variables saved in the cache have kept the same
2897 # value.
2898 ac_cache_corrupted=false
2899 for ac_var in $ac_precious_vars; do
2900 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2901 eval ac_new_set=\$ac_env_${ac_var}_set
2902 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2903 eval ac_new_val=\$ac_env_${ac_var}_value
2904 case $ac_old_set,$ac_new_set in
2905 set,)
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2907 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2908 ac_cache_corrupted=: ;;
2909 ,set)
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2911 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2912 ac_cache_corrupted=: ;;
2913 ,);;
2915 if test "x$ac_old_val" != "x$ac_new_val"; then
2916 # differences in whitespace do not lead to failure.
2917 ac_old_val_w=`echo x $ac_old_val`
2918 ac_new_val_w=`echo x $ac_new_val`
2919 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2921 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2922 ac_cache_corrupted=:
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2925 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2926 eval $ac_var=\$ac_old_val
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2929 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2931 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2932 fi;;
2933 esac
2934 # Pass precious variables to config.status.
2935 if test "$ac_new_set" = set; then
2936 case $ac_new_val in
2937 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2938 *) ac_arg=$ac_var=$ac_new_val ;;
2939 esac
2940 case " $ac_configure_args " in
2941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2942 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2943 esac
2945 done
2946 if $ac_cache_corrupted; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2950 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2951 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2953 ## -------------------- ##
2954 ## Main body of script. ##
2955 ## -------------------- ##
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2964 am__api_version='1.11'
2966 ac_aux_dir=
2967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2968 for ac_t in install-sh install.sh shtool; do
2969 if test -f "$ac_dir/$ac_t"; then
2970 ac_aux_dir=$ac_dir
2971 ac_install_sh="$ac_aux_dir/$ac_t -c"
2972 break 2
2974 done
2975 done
2976 if test -z "$ac_aux_dir"; then
2977 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2980 # These three variables are undocumented and unsupported,
2981 # and are intended to be withdrawn in a future Autoconf release.
2982 # They can cause serious problems if a builder's source tree is in a directory
2983 # whose full name contains unusual characters.
2984 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2985 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2986 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2989 # Find a good install program. We prefer a C program (faster),
2990 # so one script is as good as another. But avoid the broken or
2991 # incompatible versions:
2992 # SysV /etc/install, /usr/sbin/install
2993 # SunOS /usr/etc/install
2994 # IRIX /sbin/install
2995 # AIX /bin/install
2996 # AmigaOS /C/install, which installs bootblocks on floppy discs
2997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000 # OS/2's system install, which has a completely different semantic
3001 # ./install, which can be erroneously created by make from ./install.sh.
3002 # Reject install programs that cannot install multiple files.
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3004 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3005 if test -z "$INSTALL"; then
3006 if test "${ac_cv_path_install+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 # Account for people who put trailing slashes in PATH elements.
3015 case $as_dir/ in #((
3016 ./ | .// | /[cC]/* | \
3017 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3018 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3019 /usr/ucb/* ) ;;
3021 # OSF1 and SCO ODT 3.0 have their own names for install.
3022 # Don't use installbsd from OSF since it installs stuff as root
3023 # by default.
3024 for ac_prog in ginstall scoinst install; do
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3027 if test $ac_prog = install &&
3028 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3029 # AIX install. It has an incompatible calling convention.
3031 elif test $ac_prog = install &&
3032 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033 # program-specific install script used by HP pwplus--don't use.
3035 else
3036 rm -rf conftest.one conftest.two conftest.dir
3037 echo one > conftest.one
3038 echo two > conftest.two
3039 mkdir conftest.dir
3040 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3041 test -s conftest.one && test -s conftest.two &&
3042 test -s conftest.dir/conftest.one &&
3043 test -s conftest.dir/conftest.two
3044 then
3045 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3046 break 3
3050 done
3051 done
3053 esac
3055 done
3056 IFS=$as_save_IFS
3058 rm -rf conftest.one conftest.two conftest.dir
3061 if test "${ac_cv_path_install+set}" = set; then
3062 INSTALL=$ac_cv_path_install
3063 else
3064 # As a last resort, use the slow shell script. Don't cache a
3065 # value for INSTALL within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the value is a relative name.
3068 INSTALL=$ac_install_sh
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3072 $as_echo "$INSTALL" >&6; }
3074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075 # It thinks the first close brace ends the variable substitution.
3076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3083 $as_echo_n "checking whether build environment is sane... " >&6; }
3084 # Just in case
3085 sleep 1
3086 echo timestamp > conftest.file
3087 # Reject unsafe characters in $srcdir or the absolute working directory
3088 # name. Accept space and tab only in the latter.
3089 am_lf='
3091 case `pwd` in
3092 *[\\\"\#\$\&\'\`$am_lf]*)
3093 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3094 esac
3095 case $srcdir in
3096 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3097 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3098 esac
3100 # Do `set' in a subshell so we don't clobber the current shell's
3101 # arguments. Must try -L first in case configure is actually a
3102 # symlink; some systems play weird games with the mod time of symlinks
3103 # (eg FreeBSD returns the mod time of the symlink's containing
3104 # directory).
3105 if (
3106 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3107 if test "$*" = "X"; then
3108 # -L didn't work.
3109 set X `ls -t "$srcdir/configure" conftest.file`
3111 rm -f conftest.file
3112 if test "$*" != "X $srcdir/configure conftest.file" \
3113 && test "$*" != "X conftest.file $srcdir/configure"; then
3115 # If neither matched, then we have a broken ls. This can happen
3116 # if, for instance, CONFIG_SHELL is bash and it inherits a
3117 # broken ls alias from the environment. This has actually
3118 # happened. Such a system could not be considered "sane".
3119 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3120 alias in your environment" "$LINENO" 5
3123 test "$2" = conftest.file
3125 then
3126 # Ok.
3128 else
3129 as_fn_error "newly created file is older than distributed files!
3130 Check your system clock" "$LINENO" 5
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133 $as_echo "yes" >&6; }
3134 test "$program_prefix" != NONE &&
3135 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3136 # Use a double $ so make ignores it.
3137 test "$program_suffix" != NONE &&
3138 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3139 # Double any \ or $.
3140 # By default was `s,x,x', remove it if useless.
3141 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3142 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3144 # expand $ac_aux_dir to an absolute path
3145 am_aux_dir=`cd $ac_aux_dir && pwd`
3147 if test x"${MISSING+set}" != xset; then
3148 case $am_aux_dir in
3149 *\ * | *\ *)
3150 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3152 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3153 esac
3155 # Use eval to expand $SHELL
3156 if eval "$MISSING --run true"; then
3157 am_missing_run="$MISSING --run "
3158 else
3159 am_missing_run=
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3161 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3164 if test x"${install_sh}" != xset; then
3165 case $am_aux_dir in
3166 *\ * | *\ *)
3167 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3169 install_sh="\${SHELL} $am_aux_dir/install-sh"
3170 esac
3173 # Installed binaries are usually stripped using `strip' when the user
3174 # run `make install-strip'. However `strip' might not be the right
3175 # tool to use in cross-compilation environments, therefore Automake
3176 # will honor the `STRIP' environment variable to overrule this program.
3177 if test "$cross_compiling" != no; then
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}strip; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if test "${ac_cv_prog_STRIP+set}" = set; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 if test -n "$STRIP"; then
3187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3200 done
3201 done
3202 IFS=$as_save_IFS
3206 STRIP=$ac_cv_prog_STRIP
3207 if test -n "$STRIP"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3209 $as_echo "$STRIP" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3217 if test -z "$ac_cv_prog_STRIP"; then
3218 ac_ct_STRIP=$STRIP
3219 # Extract the first word of "strip", so it can be a program name with args.
3220 set dummy strip; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$ac_ct_STRIP"; then
3227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_ac_ct_STRIP="strip"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3240 done
3241 done
3242 IFS=$as_save_IFS
3246 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3247 if test -n "$ac_ct_STRIP"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3249 $as_echo "$ac_ct_STRIP" >&6; }
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3255 if test "x$ac_ct_STRIP" = x; then
3256 STRIP=":"
3257 else
3258 case $cross_compiling:$ac_tool_warned in
3259 yes:)
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3262 ac_tool_warned=yes ;;
3263 esac
3264 STRIP=$ac_ct_STRIP
3266 else
3267 STRIP="$ac_cv_prog_STRIP"
3271 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3274 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3275 if test -z "$MKDIR_P"; then
3276 if test "${ac_cv_path_mkdir+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_prog in mkdir gmkdir; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3287 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3288 'mkdir (GNU coreutils) '* | \
3289 'mkdir (coreutils) '* | \
3290 'mkdir (fileutils) '4.1*)
3291 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3292 break 3;;
3293 esac
3294 done
3295 done
3296 done
3297 IFS=$as_save_IFS
3301 test -d ./--version && rmdir ./--version
3302 if test "${ac_cv_path_mkdir+set}" = set; then
3303 MKDIR_P="$ac_cv_path_mkdir -p"
3304 else
3305 # As a last resort, use the slow shell script. Don't cache a
3306 # value for MKDIR_P within a source directory, because that will
3307 # break other packages using the cache if that directory is
3308 # removed, or if the value is a relative name.
3309 MKDIR_P="$ac_install_sh -d"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3313 $as_echo "$MKDIR_P" >&6; }
3315 mkdir_p="$MKDIR_P"
3316 case $mkdir_p in
3317 [\\/$]* | ?:[\\/]*) ;;
3318 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3319 esac
3321 for ac_prog in gawk mawk nawk awk
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_AWK+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3329 else
3330 if test -n "$AWK"; then
3331 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_prog_AWK="$ac_prog"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3344 done
3345 done
3346 IFS=$as_save_IFS
3350 AWK=$ac_cv_prog_AWK
3351 if test -n "$AWK"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3353 $as_echo "$AWK" >&6; }
3354 else
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3360 test -n "$AWK" && break
3361 done
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3364 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3365 set x ${MAKE-make}
3366 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3367 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 cat >conftest.make <<\_ACEOF
3371 SHELL = /bin/sh
3372 all:
3373 @echo '@@@%%%=$(MAKE)=@@@%%%'
3374 _ACEOF
3375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3376 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3377 *@@@%%%=?*=@@@%%%*)
3378 eval ac_cv_prog_make_${ac_make}_set=yes;;
3380 eval ac_cv_prog_make_${ac_make}_set=no;;
3381 esac
3382 rm -f conftest.make
3384 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 $as_echo "yes" >&6; }
3387 SET_MAKE=
3388 else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 SET_MAKE="MAKE=${MAKE-make}"
3394 rm -rf .tst 2>/dev/null
3395 mkdir .tst 2>/dev/null
3396 if test -d .tst; then
3397 am__leading_dot=.
3398 else
3399 am__leading_dot=_
3401 rmdir .tst 2>/dev/null
3403 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3404 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3405 # is not polluted with repeated "-I."
3406 am__isrc=' -I$(srcdir)'
3407 # test to see if srcdir already configured
3408 if test -f $srcdir/config.status; then
3409 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3413 # test whether we have cygpath
3414 if test -z "$CYGPATH_W"; then
3415 if (cygpath --version) >/dev/null 2>/dev/null; then
3416 CYGPATH_W='cygpath -w'
3417 else
3418 CYGPATH_W=echo
3423 # Define the identity of the package.
3424 PACKAGE='amule'
3425 VERSION='SVN'
3428 cat >>confdefs.h <<_ACEOF
3429 #define PACKAGE "$PACKAGE"
3430 _ACEOF
3433 cat >>confdefs.h <<_ACEOF
3434 #define VERSION "$VERSION"
3435 _ACEOF
3437 # Some tools Automake needs.
3439 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3442 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3445 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3448 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3451 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3453 # We need awk for the "check" target. The system "awk" is bad on
3454 # some platforms.
3455 # Always define AMTAR for backward compatibility.
3457 AMTAR=${AMTAR-"${am_missing_run}tar"}
3459 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3465 # Check whether --enable-silent-rules was given.
3466 if test "${enable_silent_rules+set}" = set; then :
3467 enableval=$enable_silent_rules;
3470 case $enable_silent_rules in
3471 yes) AM_DEFAULT_VERBOSITY=0;;
3472 no) AM_DEFAULT_VERBOSITY=1;;
3473 *) AM_DEFAULT_VERBOSITY=1;;
3474 esac
3475 AM_BACKSLASH='\'
3481 ac_config_headers="$ac_config_headers config.h"
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3486 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3487 # Check whether --enable-maintainer-mode was given.
3488 if test "${enable_maintainer_mode+set}" = set; then :
3489 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3490 else
3491 USE_MAINTAINER_MODE=no
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3495 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3496 if test $USE_MAINTAINER_MODE = yes; then
3497 MAINTAINER_MODE_TRUE=
3498 MAINTAINER_MODE_FALSE='#'
3499 else
3500 MAINTAINER_MODE_TRUE='#'
3501 MAINTAINER_MODE_FALSE=
3504 MAINT=$MAINTAINER_MODE_TRUE
3508 # Make sure we can run config.sub.
3509 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3510 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3513 $as_echo_n "checking build system type... " >&6; }
3514 if test "${ac_cv_build+set}" = set; then :
3515 $as_echo_n "(cached) " >&6
3516 else
3517 ac_build_alias=$build_alias
3518 test "x$ac_build_alias" = x &&
3519 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3520 test "x$ac_build_alias" = x &&
3521 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3522 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3523 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3527 $as_echo "$ac_cv_build" >&6; }
3528 case $ac_cv_build in
3529 *-*-*) ;;
3530 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3531 esac
3532 build=$ac_cv_build
3533 ac_save_IFS=$IFS; IFS='-'
3534 set x $ac_cv_build
3535 shift
3536 build_cpu=$1
3537 build_vendor=$2
3538 shift; shift
3539 # Remember, the first character of IFS is used to create $*,
3540 # except with old shells:
3541 build_os=$*
3542 IFS=$ac_save_IFS
3543 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3547 $as_echo_n "checking host system type... " >&6; }
3548 if test "${ac_cv_host+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 if test "x$host_alias" = x; then
3552 ac_cv_host=$ac_cv_build
3553 else
3554 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3555 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3560 $as_echo "$ac_cv_host" >&6; }
3561 case $ac_cv_host in
3562 *-*-*) ;;
3563 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3564 esac
3565 host=$ac_cv_host
3566 ac_save_IFS=$IFS; IFS='-'
3567 set x $ac_cv_host
3568 shift
3569 host_cpu=$1
3570 host_vendor=$2
3571 shift; shift
3572 # Remember, the first character of IFS is used to create $*,
3573 # except with old shells:
3574 host_os=$*
3575 IFS=$ac_save_IFS
3576 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3580 case "${host_os}" in
3581 darwin*)
3582 SYS=darwin
3583 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3584 MULELDFLAGS="-bind_at_load"
3585 touch src/Scanner.cpp
3587 openbsd*)
3588 SYS=openbsd
3589 LIBS="$LIBS -L/usr/local/lib"
3590 MULECPPFLAGS="-D__OPENBSD__"
3592 *cygwin* | *mingw32*)
3593 SYS=win32
3594 MULECPPFLAGS="-DNOMINMAX"
3596 solaris*)
3597 SYS=solaris
3598 RESOLV_LIB="-lresolv -lnsl"
3599 LIBS="$LIBS -lrt"
3601 *netbsd*)
3602 SYS=netbsd
3603 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3604 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3605 # Still, we prepend them, instead of adding, so the user may override them.
3606 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3607 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3609 *irix*)
3610 SYS=irix
3611 MULECPPFLAGS="-D__IRIX__"
3614 SYS=unknown
3616 esac
3618 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3619 if test ${SYS:-unknown} != win32; then :
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3622 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3623 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3625 MULELDFLAGS="$MULELDFLAGS -pthread"
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627 $as_echo "yes" >&6; }
3629 else
3631 MULELDFLAGS="$MULELDFLAGS -lpthread"
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3641 mule_backup_CFLAGS="$CFLAGS"
3642 mule_backup_CXXFLAGS="$CXXFLAGS"
3643 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3644 ac_ext=cpp
3645 ac_cpp='$CXXCPP $CPPFLAGS'
3646 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3649 if test -z "$CXX"; then
3650 if test -n "$CCC"; then
3651 CXX=$CCC
3652 else
3653 if test -n "$ac_tool_prefix"; then
3654 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if test "${ac_cv_prog_CXX+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -n "$CXX"; then
3664 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3677 done
3678 done
3679 IFS=$as_save_IFS
3683 CXX=$ac_cv_prog_CXX
3684 if test -n "$CXX"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3686 $as_echo "$CXX" >&6; }
3687 else
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3693 test -n "$CXX" && break
3694 done
3696 if test -z "$CXX"; then
3697 ac_ct_CXX=$CXX
3698 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3700 # Extract the first word of "$ac_prog", so it can be a program name with args.
3701 set dummy $ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 if test -n "$ac_ct_CXX"; then
3708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_ac_ct_CXX="$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 break 2
3721 done
3722 done
3723 IFS=$as_save_IFS
3727 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3728 if test -n "$ac_ct_CXX"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3730 $as_echo "$ac_ct_CXX" >&6; }
3731 else
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3737 test -n "$ac_ct_CXX" && break
3738 done
3740 if test "x$ac_ct_CXX" = x; then
3741 CXX="g++"
3742 else
3743 case $cross_compiling:$ac_tool_warned in
3744 yes:)
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747 ac_tool_warned=yes ;;
3748 esac
3749 CXX=$ac_ct_CXX
3755 # Provide some information about the compiler.
3756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3757 set X $ac_compile
3758 ac_compiler=$2
3759 for ac_option in --version -v -V -qversion; do
3760 { { ac_try="$ac_compiler $ac_option >&5"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3766 $as_echo "$ac_try_echo"; } >&5
3767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3768 ac_status=$?
3769 if test -s conftest.err; then
3770 sed '10a\
3771 ... rest of stderr output deleted ...
3772 10q' conftest.err >conftest.er1
3773 cat conftest.er1 >&5
3775 rm -f conftest.er1 conftest.err
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3778 done
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3784 main ()
3788 return 0;
3790 _ACEOF
3791 ac_clean_files_save=$ac_clean_files
3792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3793 # Try to create an executable without -o first, disregard a.out.
3794 # It will help us diagnose broken compilers, and finding out an intuition
3795 # of exeext.
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3797 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3798 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3800 # The possible output files:
3801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3803 ac_rmfiles=
3804 for ac_file in $ac_files
3806 case $ac_file in
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3809 esac
3810 done
3811 rm -f $ac_rmfiles
3813 if { { ac_try="$ac_link_default"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link_default") 2>&5
3821 ac_status=$?
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3828 # Autoconf.
3829 for ac_file in $ac_files ''
3831 test -f "$ac_file" || continue
3832 case $ac_file in
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3835 [ab].out )
3836 # We found the default executable, but exeext='' is most
3837 # certainly right.
3838 break;;
3839 *.* )
3840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3841 then :; else
3842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an `-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3848 # actually working.
3849 break;;
3851 break;;
3852 esac
3853 done
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3856 else
3857 ac_file=''
3859 if test -z "$ac_file"; then :
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861 $as_echo "no" >&6; }
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 { as_fn_set_status 77
3868 as_fn_error "C++ compiler cannot create executables
3869 See \`config.log' for more details." "$LINENO" 5; }; }
3870 else
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3875 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3877 $as_echo "$ac_file" >&6; }
3878 ac_exeext=$ac_cv_exeext
3880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3881 ac_clean_files=$ac_clean_files_save
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3883 $as_echo_n "checking for suffix of executables... " >&6; }
3884 if { { ac_try="$ac_link"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link") 2>&5
3892 ac_status=$?
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3897 # work properly (i.e., refer to `conftest.exe'), while it won't with
3898 # `rm'.
3899 for ac_file in conftest.exe conftest conftest.*; do
3900 test -f "$ac_file" || continue
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 break;;
3905 * ) break;;
3906 esac
3907 done
3908 else
3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3911 as_fn_error "cannot compute suffix of executables: cannot compile and link
3912 See \`config.log' for more details." "$LINENO" 5; }
3914 rm -f conftest conftest$ac_cv_exeext
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3916 $as_echo "$ac_cv_exeext" >&6; }
3918 rm -f conftest.$ac_ext
3919 EXEEXT=$ac_cv_exeext
3920 ac_exeext=$EXEEXT
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <stdio.h>
3925 main ()
3927 FILE *f = fopen ("conftest.out", "w");
3928 return ferror (f) || fclose (f) != 0;
3931 return 0;
3933 _ACEOF
3934 ac_clean_files="$ac_clean_files conftest.out"
3935 # Check that the compiler produces executables we can run. If not, either
3936 # the compiler is broken, or we cross compile.
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3938 $as_echo_n "checking whether we are cross compiling... " >&6; }
3939 if test "$cross_compiling" != yes; then
3940 { { ac_try="$ac_link"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3951 if { ac_try='./conftest$ac_cv_exeext'
3952 { { case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_try") 2>&5
3959 ac_status=$?
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }; }; then
3962 cross_compiling=no
3963 else
3964 if test "$cross_compiling" = maybe; then
3965 cross_compiling=yes
3966 else
3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error "cannot run C++ compiled programs.
3970 If you meant to cross compile, use \`--host'.
3971 See \`config.log' for more details." "$LINENO" 5; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3976 $as_echo "$cross_compiling" >&6; }
3978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3979 ac_clean_files=$ac_clean_files_save
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3981 $as_echo_n "checking for suffix of object files... " >&6; }
3982 if test "${ac_cv_objext+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3989 main ()
3993 return 0;
3995 _ACEOF
3996 rm -f conftest.o conftest.obj
3997 if { { ac_try="$ac_compile"
3998 case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_compile") 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; then :
4008 for ac_file in conftest.o conftest.obj conftest.*; do
4009 test -f "$ac_file" || continue;
4010 case $ac_file in
4011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4013 break;;
4014 esac
4015 done
4016 else
4017 $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error "cannot compute suffix of object files: cannot compile
4023 See \`config.log' for more details." "$LINENO" 5; }
4025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4028 $as_echo "$ac_cv_objext" >&6; }
4029 OBJEXT=$ac_cv_objext
4030 ac_objext=$OBJEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4033 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4040 main ()
4042 #ifndef __GNUC__
4043 choke me
4044 #endif
4047 return 0;
4049 _ACEOF
4050 if ac_fn_cxx_try_compile "$LINENO"; then :
4051 ac_compiler_gnu=yes
4052 else
4053 ac_compiler_gnu=no
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4060 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4062 GXX=yes
4063 else
4064 GXX=
4066 ac_test_CXXFLAGS=${CXXFLAGS+set}
4067 ac_save_CXXFLAGS=$CXXFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4069 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4070 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4074 ac_cxx_werror_flag=yes
4075 ac_cv_prog_cxx_g=no
4076 CXXFLAGS="-g"
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 if ac_fn_cxx_try_compile "$LINENO"; then :
4089 ac_cv_prog_cxx_g=yes
4090 else
4091 CXXFLAGS=""
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4100 return 0;
4102 _ACEOF
4103 if ac_fn_cxx_try_compile "$LINENO"; then :
4105 else
4106 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4107 CXXFLAGS="-g"
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4112 main ()
4116 return 0;
4118 _ACEOF
4119 if ac_fn_cxx_try_compile "$LINENO"; then :
4120 ac_cv_prog_cxx_g=yes
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4130 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4131 if test "$ac_test_CXXFLAGS" = set; then
4132 CXXFLAGS=$ac_save_CXXFLAGS
4133 elif test $ac_cv_prog_cxx_g = yes; then
4134 if test "$GXX" = yes; then
4135 CXXFLAGS="-g -O2"
4136 else
4137 CXXFLAGS="-g"
4139 else
4140 if test "$GXX" = yes; then
4141 CXXFLAGS="-O2"
4142 else
4143 CXXFLAGS=
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 DEPDIR="${am__leading_dot}deps"
4153 ac_config_commands="$ac_config_commands depfiles"
4156 am_make=${MAKE-make}
4157 cat > confinc << 'END'
4158 am__doit:
4159 @echo this is the am__doit target
4160 .PHONY: am__doit
4162 # If we don't find an include directive, just comment out the code.
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4164 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4165 am__include="#"
4166 am__quote=
4167 _am_result=none
4168 # First try GNU make style include.
4169 echo "include confinc" > confmf
4170 # Ignore all kinds of additional output from `make'.
4171 case `$am_make -s -f confmf 2> /dev/null` in #(
4172 *the\ am__doit\ target*)
4173 am__include=include
4174 am__quote=
4175 _am_result=GNU
4177 esac
4178 # Now try BSD make style include.
4179 if test "$am__include" = "#"; then
4180 echo '.include "confinc"' > confmf
4181 case `$am_make -s -f confmf 2> /dev/null` in #(
4182 *the\ am__doit\ target*)
4183 am__include=.include
4184 am__quote="\""
4185 _am_result=BSD
4187 esac
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4192 $as_echo "$_am_result" >&6; }
4193 rm -f confinc confmf
4195 # Check whether --enable-dependency-tracking was given.
4196 if test "${enable_dependency_tracking+set}" = set; then :
4197 enableval=$enable_dependency_tracking;
4200 if test "x$enable_dependency_tracking" != xno; then
4201 am_depcomp="$ac_aux_dir/depcomp"
4202 AMDEPBACKSLASH='\'
4204 if test "x$enable_dependency_tracking" != xno; then
4205 AMDEP_TRUE=
4206 AMDEP_FALSE='#'
4207 else
4208 AMDEP_TRUE='#'
4209 AMDEP_FALSE=
4214 depcc="$CXX" am_compiler_list=
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4217 $as_echo_n "checking dependency style of $depcc... " >&6; }
4218 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4222 # We make a subdir and do the tests there. Otherwise we can end up
4223 # making bogus files that we don't know about and never remove. For
4224 # instance it was reported that on HP-UX the gcc test will end up
4225 # making a dummy file named `D' -- because `-MD' means `put the output
4226 # in D'.
4227 mkdir conftest.dir
4228 # Copy depcomp to subdir because otherwise we won't find it if we're
4229 # using a relative directory.
4230 cp "$am_depcomp" conftest.dir
4231 cd conftest.dir
4232 # We will build objects and dependencies in a subdirectory because
4233 # it helps to detect inapplicable dependency modes. For instance
4234 # both Tru64's cc and ICC support -MD to output dependencies as a
4235 # side effect of compilation, but ICC will put the dependencies in
4236 # the current directory while Tru64 will put them in the object
4237 # directory.
4238 mkdir sub
4240 am_cv_CXX_dependencies_compiler_type=none
4241 if test "$am_compiler_list" = ""; then
4242 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4244 am__universal=false
4245 case " $depcc " in #(
4246 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4247 esac
4249 for depmode in $am_compiler_list; do
4250 # Setup a source with many dependencies, because some compilers
4251 # like to wrap large dependency lists on column 80 (with \), and
4252 # we should not choose a depcomp mode which is confused by this.
4254 # We need to recreate these files for each test, as the compiler may
4255 # overwrite some of them when testing with obscure command lines.
4256 # This happens at least with the AIX C compiler.
4257 : > sub/conftest.c
4258 for i in 1 2 3 4 5 6; do
4259 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4260 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4261 # Solaris 8's {/usr,}/bin/sh.
4262 touch sub/conftst$i.h
4263 done
4264 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4266 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4267 # mode. It turns out that the SunPro C++ compiler does not properly
4268 # handle `-M -o', and we need to detect this. Also, some Intel
4269 # versions had trouble with output in subdirs
4270 am__obj=sub/conftest.${OBJEXT-o}
4271 am__minus_obj="-o $am__obj"
4272 case $depmode in
4273 gcc)
4274 # This depmode causes a compiler race in universal mode.
4275 test "$am__universal" = false || continue
4277 nosideeffect)
4278 # after this tag, mechanisms are not by side-effect, so they'll
4279 # only be used when explicitly requested
4280 if test "x$enable_dependency_tracking" = xyes; then
4281 continue
4282 else
4283 break
4286 msvisualcpp | msvcmsys)
4287 # This compiler won't grok `-c -o', but also, the minuso test has
4288 # not run yet. These depmodes are late enough in the game, and
4289 # so weak that their functioning should not be impacted.
4290 am__obj=conftest.${OBJEXT-o}
4291 am__minus_obj=
4293 none) break ;;
4294 esac
4295 if depmode=$depmode \
4296 source=sub/conftest.c object=$am__obj \
4297 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4298 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4299 >/dev/null 2>conftest.err &&
4300 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4301 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4302 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4303 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4304 # icc doesn't choke on unknown options, it will just issue warnings
4305 # or remarks (even with -Werror). So we grep stderr for any message
4306 # that says an option was ignored or not supported.
4307 # When given -MP, icc 7.0 and 7.1 complain thusly:
4308 # icc: Command line warning: ignoring option '-M'; no argument required
4309 # The diagnosis changed in icc 8.0:
4310 # icc: Command line remark: option '-MP' not supported
4311 if (grep 'ignoring option' conftest.err ||
4312 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4313 am_cv_CXX_dependencies_compiler_type=$depmode
4314 break
4317 done
4319 cd ..
4320 rm -rf conftest.dir
4321 else
4322 am_cv_CXX_dependencies_compiler_type=none
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4327 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4328 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4331 test "x$enable_dependency_tracking" != xno \
4332 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4333 am__fastdepCXX_TRUE=
4334 am__fastdepCXX_FALSE='#'
4335 else
4336 am__fastdepCXX_TRUE='#'
4337 am__fastdepCXX_FALSE=
4341 ac_ext=cpp
4342 ac_cpp='$CXXCPP $CPPFLAGS'
4343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4347 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4348 if test -z "$CXXCPP"; then
4349 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 # Double quotes because CXXCPP needs to be expanded
4353 for CXXCPP in "$CXX -E" "/lib/cpp"
4355 ac_preproc_ok=false
4356 for ac_cxx_preproc_warn_flag in '' yes
4358 # Use a header file that comes with gcc, so configuring glibc
4359 # with a fresh cross-compiler works.
4360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361 # <limits.h> exists even on freestanding compilers.
4362 # On the NeXT, cc -E runs the code through the compiler's parser,
4363 # not just through cpp. "Syntax error" is here to catch this case.
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366 #ifdef __STDC__
4367 # include <limits.h>
4368 #else
4369 # include <assert.h>
4370 #endif
4371 Syntax error
4372 _ACEOF
4373 if ac_fn_cxx_try_cpp "$LINENO"; then :
4375 else
4376 # Broken: fails on valid input.
4377 continue
4379 rm -f conftest.err conftest.$ac_ext
4381 # OK, works on sane cases. Now check whether nonexistent headers
4382 # can be detected and how.
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 #include <ac_nonexistent.h>
4386 _ACEOF
4387 if ac_fn_cxx_try_cpp "$LINENO"; then :
4388 # Broken: success on invalid input.
4389 continue
4390 else
4391 # Passes both tests.
4392 ac_preproc_ok=:
4393 break
4395 rm -f conftest.err conftest.$ac_ext
4397 done
4398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4399 rm -f conftest.err conftest.$ac_ext
4400 if $ac_preproc_ok; then :
4401 break
4404 done
4405 ac_cv_prog_CXXCPP=$CXXCPP
4408 CXXCPP=$ac_cv_prog_CXXCPP
4409 else
4410 ac_cv_prog_CXXCPP=$CXXCPP
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4413 $as_echo "$CXXCPP" >&6; }
4414 ac_preproc_ok=false
4415 for ac_cxx_preproc_warn_flag in '' yes
4417 # Use a header file that comes with gcc, so configuring glibc
4418 # with a fresh cross-compiler works.
4419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4420 # <limits.h> exists even on freestanding compilers.
4421 # On the NeXT, cc -E runs the code through the compiler's parser,
4422 # not just through cpp. "Syntax error" is here to catch this case.
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #ifdef __STDC__
4426 # include <limits.h>
4427 #else
4428 # include <assert.h>
4429 #endif
4430 Syntax error
4431 _ACEOF
4432 if ac_fn_cxx_try_cpp "$LINENO"; then :
4434 else
4435 # Broken: fails on valid input.
4436 continue
4438 rm -f conftest.err conftest.$ac_ext
4440 # OK, works on sane cases. Now check whether nonexistent headers
4441 # can be detected and how.
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 #include <ac_nonexistent.h>
4445 _ACEOF
4446 if ac_fn_cxx_try_cpp "$LINENO"; then :
4447 # Broken: success on invalid input.
4448 continue
4449 else
4450 # Passes both tests.
4451 ac_preproc_ok=:
4452 break
4454 rm -f conftest.err conftest.$ac_ext
4456 done
4457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458 rm -f conftest.err conftest.$ac_ext
4459 if $ac_preproc_ok; then :
4461 else
4462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4465 See \`config.log' for more details." "$LINENO" 5; }
4468 ac_ext=c
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474 ac_ext=c
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479 if test -n "$ac_tool_prefix"; then
4480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4481 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_CC+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -n "$CC"; then
4488 ac_cv_prog_CC="$CC" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4501 done
4502 done
4503 IFS=$as_save_IFS
4507 CC=$ac_cv_prog_CC
4508 if test -n "$CC"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4510 $as_echo "$CC" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4518 if test -z "$ac_cv_prog_CC"; then
4519 ac_ct_CC=$CC
4520 # Extract the first word of "gcc", so it can be a program name with args.
4521 set dummy gcc; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$ac_ct_CC"; then
4528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_ac_ct_CC="gcc"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4548 if test -n "$ac_ct_CC"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4550 $as_echo "$ac_ct_CC" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4556 if test "x$ac_ct_CC" = x; then
4557 CC=""
4558 else
4559 case $cross_compiling:$ac_tool_warned in
4560 yes:)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4563 ac_tool_warned=yes ;;
4564 esac
4565 CC=$ac_ct_CC
4567 else
4568 CC="$ac_cv_prog_CC"
4571 if test -z "$CC"; then
4572 if test -n "$ac_tool_prefix"; then
4573 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4574 set dummy ${ac_tool_prefix}cc; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_CC+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$CC"; then
4581 ac_cv_prog_CC="$CC" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590 ac_cv_prog_CC="${ac_tool_prefix}cc"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4600 CC=$ac_cv_prog_CC
4601 if test -n "$CC"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4603 $as_echo "$CC" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4612 if test -z "$CC"; then
4613 # Extract the first word of "cc", so it can be a program name with args.
4614 set dummy cc; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_CC+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$CC"; then
4621 ac_cv_prog_CC="$CC" # Let the user override the test.
4622 else
4623 ac_prog_rejected=no
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4632 ac_prog_rejected=yes
4633 continue
4635 ac_cv_prog_CC="cc"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4643 if test $ac_prog_rejected = yes; then
4644 # We found a bogon in the path, so make sure we never use it.
4645 set dummy $ac_cv_prog_CC
4646 shift
4647 if test $# != 0; then
4648 # We chose a different compiler from the bogus one.
4649 # However, it has the same basename, so the bogon will be chosen
4650 # first if we set CC to just the basename; use the full file name.
4651 shift
4652 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4657 CC=$ac_cv_prog_CC
4658 if test -n "$CC"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4660 $as_echo "$CC" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4668 if test -z "$CC"; then
4669 if test -n "$ac_tool_prefix"; then
4670 for ac_prog in cl.exe
4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_CC+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$CC"; then
4680 ac_cv_prog_CC="$CC" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4693 done
4694 done
4695 IFS=$as_save_IFS
4699 CC=$ac_cv_prog_CC
4700 if test -n "$CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702 $as_echo "$CC" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4709 test -n "$CC" && break
4710 done
4712 if test -z "$CC"; then
4713 ac_ct_CC=$CC
4714 for ac_prog in cl.exe
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$ac_ct_CC"; then
4724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_CC="$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4739 IFS=$as_save_IFS
4743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4744 if test -n "$ac_ct_CC"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4746 $as_echo "$ac_ct_CC" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4753 test -n "$ac_ct_CC" && break
4754 done
4756 if test "x$ac_ct_CC" = x; then
4757 CC=""
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760 yes:)
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 CC=$ac_ct_CC
4772 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4774 as_fn_error "no acceptable C compiler found in \$PATH
4775 See \`config.log' for more details." "$LINENO" 5; }
4777 # Provide some information about the compiler.
4778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4779 set X $ac_compile
4780 ac_compiler=$2
4781 for ac_option in --version -v -V -qversion; do
4782 { { ac_try="$ac_compiler $ac_option >&5"
4783 case "(($ac_try" in
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4786 esac
4787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4788 $as_echo "$ac_try_echo"; } >&5
4789 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4790 ac_status=$?
4791 if test -s conftest.err; then
4792 sed '10a\
4793 ... rest of stderr output deleted ...
4794 10q' conftest.err >conftest.er1
4795 cat conftest.er1 >&5
4797 rm -f conftest.er1 conftest.err
4798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799 test $ac_status = 0; }
4800 done
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4803 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4804 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4811 main ()
4813 #ifndef __GNUC__
4814 choke me
4815 #endif
4818 return 0;
4820 _ACEOF
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822 ac_compiler_gnu=yes
4823 else
4824 ac_compiler_gnu=no
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4831 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4832 if test $ac_compiler_gnu = yes; then
4833 GCC=yes
4834 else
4835 GCC=
4837 ac_test_CFLAGS=${CFLAGS+set}
4838 ac_save_CFLAGS=$CFLAGS
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4840 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4841 if test "${ac_cv_prog_cc_g+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 ac_save_c_werror_flag=$ac_c_werror_flag
4845 ac_c_werror_flag=yes
4846 ac_cv_prog_cc_g=no
4847 CFLAGS="-g"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4852 main ()
4856 return 0;
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 ac_cv_prog_cc_g=yes
4861 else
4862 CFLAGS=""
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4867 main ()
4871 return 0;
4873 _ACEOF
4874 if ac_fn_c_try_compile "$LINENO"; then :
4876 else
4877 ac_c_werror_flag=$ac_save_c_werror_flag
4878 CFLAGS="-g"
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4883 main ()
4887 return 0;
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 ac_cv_prog_cc_g=yes
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 ac_c_werror_flag=$ac_save_c_werror_flag
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4901 $as_echo "$ac_cv_prog_cc_g" >&6; }
4902 if test "$ac_test_CFLAGS" = set; then
4903 CFLAGS=$ac_save_CFLAGS
4904 elif test $ac_cv_prog_cc_g = yes; then
4905 if test "$GCC" = yes; then
4906 CFLAGS="-g -O2"
4907 else
4908 CFLAGS="-g"
4910 else
4911 if test "$GCC" = yes; then
4912 CFLAGS="-O2"
4913 else
4914 CFLAGS=
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4918 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4919 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 ac_cv_prog_cc_c89=no
4923 ac_save_CC=$CC
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #include <stdarg.h>
4927 #include <stdio.h>
4928 #include <sys/types.h>
4929 #include <sys/stat.h>
4930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4931 struct buf { int x; };
4932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4933 static char *e (p, i)
4934 char **p;
4935 int i;
4937 return p[i];
4939 static char *f (char * (*g) (char **, int), char **p, ...)
4941 char *s;
4942 va_list v;
4943 va_start (v,p);
4944 s = g (p, va_arg (v,int));
4945 va_end (v);
4946 return s;
4949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4950 function prototypes and stuff, but not '\xHH' hex character constants.
4951 These don't provoke an error unfortunately, instead are silently treated
4952 as 'x'. The following induces an error, until -std is added to get
4953 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4954 array size at least. It's necessary to write '\x00'==0 to get something
4955 that's true only with -std. */
4956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4959 inside strings and character constants. */
4960 #define FOO(x) 'x'
4961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4963 int test (int i, double x);
4964 struct s1 {int (*f) (int a);};
4965 struct s2 {int (*f) (double a);};
4966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4967 int argc;
4968 char **argv;
4970 main ()
4972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4974 return 0;
4976 _ACEOF
4977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4978 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4980 CC="$ac_save_CC $ac_arg"
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 ac_cv_prog_cc_c89=$ac_arg
4984 rm -f core conftest.err conftest.$ac_objext
4985 test "x$ac_cv_prog_cc_c89" != "xno" && break
4986 done
4987 rm -f conftest.$ac_ext
4988 CC=$ac_save_CC
4991 # AC_CACHE_VAL
4992 case "x$ac_cv_prog_cc_c89" in
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4995 $as_echo "none needed" >&6; } ;;
4996 xno)
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4998 $as_echo "unsupported" >&6; } ;;
5000 CC="$CC $ac_cv_prog_cc_c89"
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5003 esac
5004 if test "x$ac_cv_prog_cc_c89" != xno; then :
5008 ac_ext=c
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 depcc="$CC" am_compiler_list=
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5017 $as_echo_n "checking dependency style of $depcc... " >&6; }
5018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5022 # We make a subdir and do the tests there. Otherwise we can end up
5023 # making bogus files that we don't know about and never remove. For
5024 # instance it was reported that on HP-UX the gcc test will end up
5025 # making a dummy file named `D' -- because `-MD' means `put the output
5026 # in D'.
5027 mkdir conftest.dir
5028 # Copy depcomp to subdir because otherwise we won't find it if we're
5029 # using a relative directory.
5030 cp "$am_depcomp" conftest.dir
5031 cd conftest.dir
5032 # We will build objects and dependencies in a subdirectory because
5033 # it helps to detect inapplicable dependency modes. For instance
5034 # both Tru64's cc and ICC support -MD to output dependencies as a
5035 # side effect of compilation, but ICC will put the dependencies in
5036 # the current directory while Tru64 will put them in the object
5037 # directory.
5038 mkdir sub
5040 am_cv_CC_dependencies_compiler_type=none
5041 if test "$am_compiler_list" = ""; then
5042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5044 am__universal=false
5045 case " $depcc " in #(
5046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5047 esac
5049 for depmode in $am_compiler_list; do
5050 # Setup a source with many dependencies, because some compilers
5051 # like to wrap large dependency lists on column 80 (with \), and
5052 # we should not choose a depcomp mode which is confused by this.
5054 # We need to recreate these files for each test, as the compiler may
5055 # overwrite some of them when testing with obscure command lines.
5056 # This happens at least with the AIX C compiler.
5057 : > sub/conftest.c
5058 for i in 1 2 3 4 5 6; do
5059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5060 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5061 # Solaris 8's {/usr,}/bin/sh.
5062 touch sub/conftst$i.h
5063 done
5064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5066 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5067 # mode. It turns out that the SunPro C++ compiler does not properly
5068 # handle `-M -o', and we need to detect this. Also, some Intel
5069 # versions had trouble with output in subdirs
5070 am__obj=sub/conftest.${OBJEXT-o}
5071 am__minus_obj="-o $am__obj"
5072 case $depmode in
5073 gcc)
5074 # This depmode causes a compiler race in universal mode.
5075 test "$am__universal" = false || continue
5077 nosideeffect)
5078 # after this tag, mechanisms are not by side-effect, so they'll
5079 # only be used when explicitly requested
5080 if test "x$enable_dependency_tracking" = xyes; then
5081 continue
5082 else
5083 break
5086 msvisualcpp | msvcmsys)
5087 # This compiler won't grok `-c -o', but also, the minuso test has
5088 # not run yet. These depmodes are late enough in the game, and
5089 # so weak that their functioning should not be impacted.
5090 am__obj=conftest.${OBJEXT-o}
5091 am__minus_obj=
5093 none) break ;;
5094 esac
5095 if depmode=$depmode \
5096 source=sub/conftest.c object=$am__obj \
5097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5098 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5099 >/dev/null 2>conftest.err &&
5100 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5102 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5104 # icc doesn't choke on unknown options, it will just issue warnings
5105 # or remarks (even with -Werror). So we grep stderr for any message
5106 # that says an option was ignored or not supported.
5107 # When given -MP, icc 7.0 and 7.1 complain thusly:
5108 # icc: Command line warning: ignoring option '-M'; no argument required
5109 # The diagnosis changed in icc 8.0:
5110 # icc: Command line remark: option '-MP' not supported
5111 if (grep 'ignoring option' conftest.err ||
5112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5113 am_cv_CC_dependencies_compiler_type=$depmode
5114 break
5117 done
5119 cd ..
5120 rm -rf conftest.dir
5121 else
5122 am_cv_CC_dependencies_compiler_type=none
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5128 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5131 test "x$enable_dependency_tracking" != xno \
5132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5133 am__fastdepCC_TRUE=
5134 am__fastdepCC_FALSE='#'
5135 else
5136 am__fastdepCC_TRUE='#'
5137 am__fastdepCC_FALSE=
5141 ac_ext=c
5142 ac_cpp='$CPP $CPPFLAGS'
5143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5147 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5148 # On Suns, sometimes $CPP names a directory.
5149 if test -n "$CPP" && test -d "$CPP"; then
5150 CPP=
5152 if test -z "$CPP"; then
5153 if test "${ac_cv_prog_CPP+set}" = set; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 # Double quotes because CPP needs to be expanded
5157 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5159 ac_preproc_ok=false
5160 for ac_c_preproc_warn_flag in '' yes
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 #ifdef __STDC__
5171 # include <limits.h>
5172 #else
5173 # include <assert.h>
5174 #endif
5175 Syntax error
5176 _ACEOF
5177 if ac_fn_c_try_cpp "$LINENO"; then :
5179 else
5180 # Broken: fails on valid input.
5181 continue
5183 rm -f conftest.err conftest.$ac_ext
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <ac_nonexistent.h>
5190 _ACEOF
5191 if ac_fn_c_try_cpp "$LINENO"; then :
5192 # Broken: success on invalid input.
5193 continue
5194 else
5195 # Passes both tests.
5196 ac_preproc_ok=:
5197 break
5199 rm -f conftest.err conftest.$ac_ext
5201 done
5202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203 rm -f conftest.err conftest.$ac_ext
5204 if $ac_preproc_ok; then :
5205 break
5208 done
5209 ac_cv_prog_CPP=$CPP
5212 CPP=$ac_cv_prog_CPP
5213 else
5214 ac_cv_prog_CPP=$CPP
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5217 $as_echo "$CPP" >&6; }
5218 ac_preproc_ok=false
5219 for ac_c_preproc_warn_flag in '' yes
5221 # Use a header file that comes with gcc, so configuring glibc
5222 # with a fresh cross-compiler works.
5223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5224 # <limits.h> exists even on freestanding compilers.
5225 # On the NeXT, cc -E runs the code through the compiler's parser,
5226 # not just through cpp. "Syntax error" is here to catch this case.
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5229 #ifdef __STDC__
5230 # include <limits.h>
5231 #else
5232 # include <assert.h>
5233 #endif
5234 Syntax error
5235 _ACEOF
5236 if ac_fn_c_try_cpp "$LINENO"; then :
5238 else
5239 # Broken: fails on valid input.
5240 continue
5242 rm -f conftest.err conftest.$ac_ext
5244 # OK, works on sane cases. Now check whether nonexistent headers
5245 # can be detected and how.
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 #include <ac_nonexistent.h>
5249 _ACEOF
5250 if ac_fn_c_try_cpp "$LINENO"; then :
5251 # Broken: success on invalid input.
5252 continue
5253 else
5254 # Passes both tests.
5255 ac_preproc_ok=:
5256 break
5258 rm -f conftest.err conftest.$ac_ext
5260 done
5261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5262 rm -f conftest.err conftest.$ac_ext
5263 if $ac_preproc_ok; then :
5265 else
5266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5268 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5269 See \`config.log' for more details." "$LINENO" 5; }
5272 ac_ext=c
5273 ac_cpp='$CPP $CPPFLAGS'
5274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278 ac_build_prefix=
5279 test -n "$build_alias" && ac_build_prefix=$build_alias-
5281 if test "$cross_compiling" = yes; then :
5283 # Even if we're cross-compiling, we want a compiler here
5284 # that is not a cross-compiler.
5285 saved_cross=$cross_compiling
5286 cross_compiling=no
5288 ac_ext=c
5289 ac_cpp='$CPP $BUILD_CPPFLAGS'
5290 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5291 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293 if test -n "$ac_build_prefix"; then
5294 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5295 set dummy ${ac_build_prefix}gcc; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$BUILD_CC"; then
5302 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5315 done
5316 done
5317 IFS=$as_save_IFS
5321 BUILD_CC=$ac_cv_prog_BUILD_CC
5322 if test -n "$BUILD_CC"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5324 $as_echo "$BUILD_CC" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5332 if test -z "$ac_cv_prog_BUILD_CC"; then
5333 ac_ct_BUILD_CC=$BUILD_CC
5334 # Extract the first word of "gcc", so it can be a program name with args.
5335 set dummy gcc; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if test -n "$ac_ct_BUILD_CC"; then
5342 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5355 done
5356 done
5357 IFS=$as_save_IFS
5361 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5362 if test -n "$ac_ct_BUILD_CC"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5364 $as_echo "$ac_ct_BUILD_CC" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5370 if test "x$ac_ct_BUILD_CC" = x; then
5371 BUILD_CC=""
5372 else
5373 case $cross_compiling:$ac_tool_warned in
5374 yes:)
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377 ac_tool_warned=yes ;;
5378 esac
5379 BUILD_CC=$ac_ct_BUILD_CC
5381 else
5382 BUILD_CC="$ac_cv_prog_BUILD_CC"
5385 if test -z "$BUILD_CC"; then
5386 if test -n "$ac_build_prefix"; then
5387 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5388 set dummy ${ac_build_prefix}cc; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$BUILD_CC"; then
5395 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5410 IFS=$as_save_IFS
5414 BUILD_CC=$ac_cv_prog_BUILD_CC
5415 if test -n "$BUILD_CC"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5417 $as_echo "$BUILD_CC" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5425 if test -z "$ac_cv_prog_BUILD_CC"; then
5426 ac_ct_BUILD_CC=$BUILD_CC
5427 # Extract the first word of "cc", so it can be a program name with args.
5428 set dummy cc; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 if test -n "$ac_ct_BUILD_CC"; then
5435 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444 ac_cv_prog_ac_ct_BUILD_CC="cc"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5448 done
5449 done
5450 IFS=$as_save_IFS
5454 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5455 if test -n "$ac_ct_BUILD_CC"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5457 $as_echo "$ac_ct_BUILD_CC" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5463 if test "x$ac_ct_BUILD_CC" = x; then
5464 BUILD_CC=""
5465 else
5466 case $cross_compiling:$ac_tool_warned in
5467 yes:)
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470 ac_tool_warned=yes ;;
5471 esac
5472 BUILD_CC=$ac_ct_BUILD_CC
5474 else
5475 BUILD_CC="$ac_cv_prog_BUILD_CC"
5479 if test -z "$BUILD_CC"; then
5480 # Extract the first word of "cc", so it can be a program name with args.
5481 set dummy cc; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if test -n "$BUILD_CC"; then
5488 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5489 else
5490 ac_prog_rejected=no
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5499 ac_prog_rejected=yes
5500 continue
5502 ac_cv_prog_BUILD_CC="cc"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5506 done
5507 done
5508 IFS=$as_save_IFS
5510 if test $ac_prog_rejected = yes; then
5511 # We found a bogon in the path, so make sure we never use it.
5512 set dummy $ac_cv_prog_BUILD_CC
5513 shift
5514 if test $# != 0; then
5515 # We chose a different compiler from the bogus one.
5516 # However, it has the same basename, so the bogon will be chosen
5517 # first if we set BUILD_CC to just the basename; use the full file name.
5518 shift
5519 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5524 BUILD_CC=$ac_cv_prog_BUILD_CC
5525 if test -n "$BUILD_CC"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5527 $as_echo "$BUILD_CC" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5535 if test -z "$BUILD_CC"; then
5536 if test -n "$ac_build_prefix"; then
5537 for ac_prog in cl
5539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5540 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$BUILD_CC"; then
5547 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5566 BUILD_CC=$ac_cv_prog_BUILD_CC
5567 if test -n "$BUILD_CC"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5569 $as_echo "$BUILD_CC" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5576 test -n "$BUILD_CC" && break
5577 done
5579 if test -z "$BUILD_CC"; then
5580 ac_ct_BUILD_CC=$BUILD_CC
5581 for ac_prog in cl
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584 set dummy $ac_prog; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$ac_ct_BUILD_CC"; then
5591 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5610 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5611 if test -n "$ac_ct_BUILD_CC"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5613 $as_echo "$ac_ct_BUILD_CC" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5620 test -n "$ac_ct_BUILD_CC" && break
5621 done
5623 if test "x$ac_ct_BUILD_CC" = x; then
5624 BUILD_CC=""
5625 else
5626 case $cross_compiling:$ac_tool_warned in
5627 yes:)
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630 ac_tool_warned=yes ;;
5631 esac
5632 BUILD_CC=$ac_ct_BUILD_CC
5639 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5641 as_fn_error "no acceptable C compiler found in \$PATH
5642 See \`config.log' for more details." "$LINENO" 5; }
5644 # Provide some information about the compiler.
5645 echo "$as_me:$LINENO:" \
5646 "checking for C compiler version" >&5
5647 ac_compiler=`set X $ac_compile; echo $2`
5648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5649 (eval $ac_compiler --version </dev/null >&5) 2>&5
5650 ac_status=$?
5651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5652 test $ac_status = 0; }
5653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5654 (eval $ac_compiler -v </dev/null >&5) 2>&5
5655 ac_status=$?
5656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657 test $ac_status = 0; }
5658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5659 (eval $ac_compiler -V </dev/null >&5) 2>&5
5660 ac_status=$?
5661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662 test $ac_status = 0; }
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5668 main ()
5672 return 0;
5674 _ACEOF
5675 ac_clean_files_save=$ac_clean_files
5676 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5677 # Try to create an executable without -o first, disregard a.out.
5678 # It will help us diagnose broken compilers, and finding out an intuition
5679 # of exeext.
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5681 $as_echo_n "checking whether the C compiler works... " >&6; }
5682 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5684 # The possible output files:
5685 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5687 ac_rmfiles=
5688 for ac_file in $ac_files
5690 case $ac_file in
5691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5692 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5693 esac
5694 done
5695 rm -f $ac_rmfiles
5697 if { { ac_try="$ac_link_default"
5698 case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701 esac
5702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5703 $as_echo "$ac_try_echo"; } >&5
5704 (eval "$ac_link_default") 2>&5
5705 ac_status=$?
5706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5707 test $ac_status = 0; }; then :
5708 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5709 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5710 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5711 # so that the user can short-circuit this test for compilers unknown to
5712 # Autoconf.
5713 for ac_file in $ac_files ''
5715 test -f "$ac_file" || continue
5716 case $ac_file in
5717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5719 [ab].out )
5720 # We found the default executable, but exeext='' is most
5721 # certainly right.
5722 break;;
5723 *.* )
5724 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5725 then :; else
5726 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5728 # We set ac_cv_exeext here because the later test for it is not
5729 # safe: cross compilers may not add the suffix if given an `-o'
5730 # argument, so we may need to know it at that point already.
5731 # Even if this section looks crufty: it has the advantage of
5732 # actually working.
5733 break;;
5735 break;;
5736 esac
5737 done
5738 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5740 else
5741 ac_file=''
5743 if test -z "$ac_file"; then :
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5746 $as_echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5751 { as_fn_set_status 77
5752 as_fn_error "C compiler cannot create executables
5753 See \`config.log' for more details." "$LINENO" 5; }; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756 $as_echo "yes" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5759 $as_echo_n "checking for C compiler default output file name... " >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5761 $as_echo "$ac_file" >&6; }
5762 ac_build_exeext=$ac_cv_build_exeext
5764 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5765 ac_clean_files=$ac_clean_files_save
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5767 $as_echo_n "checking for suffix of executables... " >&6; }
5768 if { { ac_try="$ac_link"
5769 case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772 esac
5773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5774 $as_echo "$ac_try_echo"; } >&5
5775 (eval "$ac_link") 2>&5
5776 ac_status=$?
5777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5778 test $ac_status = 0; }; then :
5779 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5780 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5781 # work properly (i.e., refer to `conftest.exe'), while it won't with
5782 # `rm'.
5783 for ac_file in conftest.exe conftest conftest.*; do
5784 test -f "$ac_file" || continue
5785 case $ac_file in
5786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5787 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5788 break;;
5789 * ) break;;
5790 esac
5791 done
5792 else
5793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5795 as_fn_error "cannot compute suffix of executables: cannot compile and link
5796 See \`config.log' for more details." "$LINENO" 5; }
5798 rm -f conftest conftest$ac_cv_build_exeext
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5800 $as_echo "$ac_cv_build_exeext" >&6; }
5802 rm -f conftest.$ac_ext
5803 BUILD_EXEEXT=$ac_cv_build_exeext
5804 ac_build_exeext=$BUILD_EXEEXT
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 #include <stdio.h>
5809 main ()
5811 FILE *f = fopen ("conftest.out", "w");
5812 return ferror (f) || fclose (f) != 0;
5815 return 0;
5817 _ACEOF
5818 ac_clean_files="$ac_clean_files conftest.out"
5819 # Check that the compiler produces executables we can run. If not, either
5820 # the compiler is broken, or we cross compile.
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5822 $as_echo_n "checking whether we are cross compiling... " >&6; }
5823 if test "$cross_compiling" != yes; then
5824 { { ac_try="$ac_link"
5825 case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828 esac
5829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5830 $as_echo "$ac_try_echo"; } >&5
5831 (eval "$ac_link") 2>&5
5832 ac_status=$?
5833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5834 test $ac_status = 0; }
5835 if { ac_try='./conftest$ac_cv_build_exeext'
5836 { { case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839 esac
5840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5841 $as_echo "$ac_try_echo"; } >&5
5842 (eval "$ac_try") 2>&5
5843 ac_status=$?
5844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5845 test $ac_status = 0; }; }; then
5846 cross_compiling=no
5847 else
5848 if test "$cross_compiling" = maybe; then
5849 cross_compiling=yes
5850 else
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 as_fn_error "cannot run C compiled programs.
5854 If you meant to cross compile, use \`--host'.
5855 See \`config.log' for more details." "$LINENO" 5; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5860 $as_echo "$cross_compiling" >&6; }
5862 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5863 ac_clean_files=$ac_clean_files_save
5866 # Restore configuration environment
5867 cross_compiling=$saved_cross
5869 ac_ext=c
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5875 else
5876 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5878 CFLAGS="$mule_backup_CFLAGS"
5879 CXXFLAGS="$mule_backup_CXXFLAGS"
5880 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5881 for ac_prog in gawk mawk nawk awk
5883 # Extract the first word of "$ac_prog", so it can be a program name with args.
5884 set dummy $ac_prog; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if test "${ac_cv_prog_AWK+set}" = set; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -n "$AWK"; then
5891 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_prog_AWK="$ac_prog"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5904 done
5905 done
5906 IFS=$as_save_IFS
5910 AWK=$ac_cv_prog_AWK
5911 if test -n "$AWK"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5913 $as_echo "$AWK" >&6; }
5914 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5920 test -n "$AWK" && break
5921 done
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5924 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5925 if test "${ac_cv_path_GREP+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if test -z "$GREP"; then
5929 ac_path_GREP_found=false
5930 # Loop through the user's path and test for each of PROGNAME-LIST
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_prog in grep ggrep; do
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5939 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5940 # Check for GNU ac_path_GREP and select it if it is found.
5941 # Check for GNU $ac_path_GREP
5942 case `"$ac_path_GREP" --version 2>&1` in
5943 *GNU*)
5944 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5946 ac_count=0
5947 $as_echo_n 0123456789 >"conftest.in"
5948 while :
5950 cat "conftest.in" "conftest.in" >"conftest.tmp"
5951 mv "conftest.tmp" "conftest.in"
5952 cp "conftest.in" "conftest.nl"
5953 $as_echo 'GREP' >> "conftest.nl"
5954 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5956 as_fn_arith $ac_count + 1 && ac_count=$as_val
5957 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5958 # Best one so far, save it but keep looking for a better one
5959 ac_cv_path_GREP="$ac_path_GREP"
5960 ac_path_GREP_max=$ac_count
5962 # 10*(2^10) chars as input seems more than enough
5963 test $ac_count -gt 10 && break
5964 done
5965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5966 esac
5968 $ac_path_GREP_found && break 3
5969 done
5970 done
5971 done
5972 IFS=$as_save_IFS
5973 if test -z "$ac_cv_path_GREP"; then
5974 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5976 else
5977 ac_cv_path_GREP=$GREP
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5982 $as_echo "$ac_cv_path_GREP" >&6; }
5983 GREP="$ac_cv_path_GREP"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5987 $as_echo_n "checking for egrep... " >&6; }
5988 if test "${ac_cv_path_EGREP+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5992 then ac_cv_path_EGREP="$GREP -E"
5993 else
5994 if test -z "$EGREP"; then
5995 ac_path_EGREP_found=false
5996 # Loop through the user's path and test for each of PROGNAME-LIST
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_prog in egrep; do
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6005 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6006 # Check for GNU ac_path_EGREP and select it if it is found.
6007 # Check for GNU $ac_path_EGREP
6008 case `"$ac_path_EGREP" --version 2>&1` in
6009 *GNU*)
6010 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6012 ac_count=0
6013 $as_echo_n 0123456789 >"conftest.in"
6014 while :
6016 cat "conftest.in" "conftest.in" >"conftest.tmp"
6017 mv "conftest.tmp" "conftest.in"
6018 cp "conftest.in" "conftest.nl"
6019 $as_echo 'EGREP' >> "conftest.nl"
6020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6022 as_fn_arith $ac_count + 1 && ac_count=$as_val
6023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6024 # Best one so far, save it but keep looking for a better one
6025 ac_cv_path_EGREP="$ac_path_EGREP"
6026 ac_path_EGREP_max=$ac_count
6028 # 10*(2^10) chars as input seems more than enough
6029 test $ac_count -gt 10 && break
6030 done
6031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6032 esac
6034 $ac_path_EGREP_found && break 3
6035 done
6036 done
6037 done
6038 IFS=$as_save_IFS
6039 if test -z "$ac_cv_path_EGREP"; then
6040 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6042 else
6043 ac_cv_path_EGREP=$EGREP
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6049 $as_echo "$ac_cv_path_EGREP" >&6; }
6050 EGREP="$ac_cv_path_EGREP"
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6054 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6055 set x ${MAKE-make}
6056 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6057 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 cat >conftest.make <<\_ACEOF
6061 SHELL = /bin/sh
6062 all:
6063 @echo '@@@%%%=$(MAKE)=@@@%%%'
6064 _ACEOF
6065 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6066 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6067 *@@@%%%=?*=@@@%%%*)
6068 eval ac_cv_prog_make_${ac_make}_set=yes;;
6070 eval ac_cv_prog_make_${ac_make}_set=no;;
6071 esac
6072 rm -f conftest.make
6074 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6076 $as_echo "yes" >&6; }
6077 SET_MAKE=
6078 else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 SET_MAKE="MAKE=${MAKE-make}"
6085 for ac_prog in flex lex
6087 # Extract the first word of "$ac_prog", so it can be a program name with args.
6088 set dummy $ac_prog; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if test "${ac_cv_prog_LEX+set}" = set; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 if test -n "$LEX"; then
6095 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_LEX="$ac_prog"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 break 2
6108 done
6109 done
6110 IFS=$as_save_IFS
6114 LEX=$ac_cv_prog_LEX
6115 if test -n "$LEX"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6117 $as_echo "$LEX" >&6; }
6118 else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6124 test -n "$LEX" && break
6125 done
6126 test -n "$LEX" || LEX=":"
6128 if test "x$LEX" != "x:"; then
6129 cat >conftest.l <<_ACEOF
6131 a { ECHO; }
6132 b { REJECT; }
6133 c { yymore (); }
6134 d { yyless (1); }
6135 e { yyless (input () != 0); }
6136 f { unput (yytext[0]); }
6137 . { BEGIN INITIAL; }
6139 #ifdef YYTEXT_POINTER
6140 extern char *yytext;
6141 #endif
6143 main (void)
6145 return ! yylex () + ! yywrap ();
6147 _ACEOF
6148 { { ac_try="$LEX conftest.l"
6149 case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152 esac
6153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6154 $as_echo "$ac_try_echo"; } >&5
6155 (eval "$LEX conftest.l") 2>&5
6156 ac_status=$?
6157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6158 test $ac_status = 0; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6160 $as_echo_n "checking lex output file root... " >&6; }
6161 if test "${ac_cv_prog_lex_root+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6165 if test -f lex.yy.c; then
6166 ac_cv_prog_lex_root=lex.yy
6167 elif test -f lexyy.c; then
6168 ac_cv_prog_lex_root=lexyy
6169 else
6170 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6174 $as_echo "$ac_cv_prog_lex_root" >&6; }
6175 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6177 if test -z "${LEXLIB+set}"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6179 $as_echo_n "checking lex library... " >&6; }
6180 if test "${ac_cv_lib_lex+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6184 ac_save_LIBS=$LIBS
6185 ac_cv_lib_lex='none needed'
6186 for ac_lib in '' -lfl -ll; do
6187 LIBS="$ac_lib $ac_save_LIBS"
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6190 `cat $LEX_OUTPUT_ROOT.c`
6191 _ACEOF
6192 if ac_fn_c_try_link "$LINENO"; then :
6193 ac_cv_lib_lex=$ac_lib
6195 rm -f core conftest.err conftest.$ac_objext \
6196 conftest$ac_exeext conftest.$ac_ext
6197 test "$ac_cv_lib_lex" != 'none needed' && break
6198 done
6199 LIBS=$ac_save_LIBS
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6203 $as_echo "$ac_cv_lib_lex" >&6; }
6204 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6209 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6210 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6212 else
6213 # POSIX says lex can declare yytext either as a pointer or an array; the
6214 # default is implementation-dependent. Figure out which it is, since
6215 # not all implementations provide the %pointer and %array declarations.
6216 ac_cv_prog_lex_yytext_pointer=no
6217 ac_save_LIBS=$LIBS
6218 LIBS="$LEXLIB $ac_save_LIBS"
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 #define YYTEXT_POINTER 1
6222 `cat $LEX_OUTPUT_ROOT.c`
6223 _ACEOF
6224 if ac_fn_c_try_link "$LINENO"; then :
6225 ac_cv_prog_lex_yytext_pointer=yes
6227 rm -f core conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
6229 LIBS=$ac_save_LIBS
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6233 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6234 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6236 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6239 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6243 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 if test -n "$RANLIB"; then
6252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6265 done
6266 done
6267 IFS=$as_save_IFS
6271 RANLIB=$ac_cv_prog_RANLIB
6272 if test -n "$RANLIB"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6274 $as_echo "$RANLIB" >&6; }
6275 else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6282 if test -z "$ac_cv_prog_RANLIB"; then
6283 ac_ct_RANLIB=$RANLIB
6284 # Extract the first word of "ranlib", so it can be a program name with args.
6285 set dummy ranlib; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 if test -n "$ac_ct_RANLIB"; then
6292 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_ac_ct_RANLIB="ranlib"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 break 2
6305 done
6306 done
6307 IFS=$as_save_IFS
6311 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6312 if test -n "$ac_ct_RANLIB"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6314 $as_echo "$ac_ct_RANLIB" >&6; }
6315 else
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6320 if test "x$ac_ct_RANLIB" = x; then
6321 RANLIB=":"
6322 else
6323 case $cross_compiling:$ac_tool_warned in
6324 yes:)
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327 ac_tool_warned=yes ;;
6328 esac
6329 RANLIB=$ac_ct_RANLIB
6331 else
6332 RANLIB="$ac_cv_prog_RANLIB"
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6336 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6337 if test "${ac_cv_path_SED+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6341 for ac_i in 1 2 3 4 5 6 7; do
6342 ac_script="$ac_script$as_nl$ac_script"
6343 done
6344 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6345 { ac_script=; unset ac_script;}
6346 if test -z "$SED"; then
6347 ac_path_SED_found=false
6348 # Loop through the user's path and test for each of PROGNAME-LIST
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_prog in sed gsed; do
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6357 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6358 # Check for GNU ac_path_SED and select it if it is found.
6359 # Check for GNU $ac_path_SED
6360 case `"$ac_path_SED" --version 2>&1` in
6361 *GNU*)
6362 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6364 ac_count=0
6365 $as_echo_n 0123456789 >"conftest.in"
6366 while :
6368 cat "conftest.in" "conftest.in" >"conftest.tmp"
6369 mv "conftest.tmp" "conftest.in"
6370 cp "conftest.in" "conftest.nl"
6371 $as_echo '' >> "conftest.nl"
6372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6374 as_fn_arith $ac_count + 1 && ac_count=$as_val
6375 if test $ac_count -gt ${ac_path_SED_max-0}; then
6376 # Best one so far, save it but keep looking for a better one
6377 ac_cv_path_SED="$ac_path_SED"
6378 ac_path_SED_max=$ac_count
6380 # 10*(2^10) chars as input seems more than enough
6381 test $ac_count -gt 10 && break
6382 done
6383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6384 esac
6386 $ac_path_SED_found && break 3
6387 done
6388 done
6389 done
6390 IFS=$as_save_IFS
6391 if test -z "$ac_cv_path_SED"; then
6392 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6394 else
6395 ac_cv_path_SED=$SED
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6400 $as_echo "$ac_cv_path_SED" >&6; }
6401 SED="$ac_cv_path_SED"
6402 rm -f conftest.sed
6404 for ac_prog in 'bison -y' byacc
6406 # Extract the first word of "$ac_prog", so it can be a program name with args.
6407 set dummy $ac_prog; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if test "${ac_cv_prog_YACC+set}" = set; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 if test -n "$YACC"; then
6414 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_YACC="$ac_prog"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6427 done
6428 done
6429 IFS=$as_save_IFS
6433 YACC=$ac_cv_prog_YACC
6434 if test -n "$YACC"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6436 $as_echo "$YACC" >&6; }
6437 else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6443 test -n "$YACC" && break
6444 done
6445 test -n "$YACC" || YACC="yacc"
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 if test -n "$RANLIB"; then
6457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468 break 2
6470 done
6471 done
6472 IFS=$as_save_IFS
6476 RANLIB=$ac_cv_prog_RANLIB
6477 if test -n "$RANLIB"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6479 $as_echo "$RANLIB" >&6; }
6480 else
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6487 if test -z "$ac_cv_prog_RANLIB"; then
6488 ac_ct_RANLIB=$RANLIB
6489 # Extract the first word of "ranlib", so it can be a program name with args.
6490 set dummy ranlib; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 if test -n "$ac_ct_RANLIB"; then
6497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_prog_ac_ct_RANLIB="ranlib"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 break 2
6510 done
6511 done
6512 IFS=$as_save_IFS
6516 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6517 if test -n "$ac_ct_RANLIB"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6519 $as_echo "$ac_ct_RANLIB" >&6; }
6520 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6525 if test "x$ac_ct_RANLIB" = x; then
6526 RANLIB=""
6527 else
6528 case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534 RANLIB=$ac_ct_RANLIB
6536 else
6537 RANLIB="$ac_cv_prog_RANLIB"
6540 if test -n "$ac_tool_prefix"; then
6541 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6542 set dummy ${ac_tool_prefix}strip; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_STRIP+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 if test -n "$STRIP"; then
6549 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 break 2
6562 done
6563 done
6564 IFS=$as_save_IFS
6568 STRIP=$ac_cv_prog_STRIP
6569 if test -n "$STRIP"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6571 $as_echo "$STRIP" >&6; }
6572 else
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6579 if test -z "$ac_cv_prog_STRIP"; then
6580 ac_ct_STRIP=$STRIP
6581 # Extract the first word of "strip", so it can be a program name with args.
6582 set dummy strip; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 if test -n "$ac_ct_STRIP"; then
6589 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_prog_ac_ct_STRIP="strip"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6602 done
6603 done
6604 IFS=$as_save_IFS
6608 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6609 if test -n "$ac_ct_STRIP"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6611 $as_echo "$ac_ct_STRIP" >&6; }
6612 else
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6617 if test "x$ac_ct_STRIP" = x; then
6618 STRIP=""
6619 else
6620 case $cross_compiling:$ac_tool_warned in
6621 yes:)
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6625 esac
6626 STRIP=$ac_ct_STRIP
6628 else
6629 STRIP="$ac_cv_prog_STRIP"
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}ar; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if test "${ac_cv_prog_AR+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$AR"; then
6641 ac_cv_prog_AR="$AR" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_AR="${ac_tool_prefix}ar"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6654 done
6655 done
6656 IFS=$as_save_IFS
6660 AR=$ac_cv_prog_AR
6661 if test -n "$AR"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6663 $as_echo "$AR" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6671 if test -z "$ac_cv_prog_AR"; then
6672 ac_ct_AR=$AR
6673 # Extract the first word of "ar", so it can be a program name with args.
6674 set dummy ar; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$ac_ct_AR"; then
6681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_ac_ct_AR="ar"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6694 done
6695 done
6696 IFS=$as_save_IFS
6700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6701 if test -n "$ac_ct_AR"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6703 $as_echo "$ac_ct_AR" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6709 if test "x$ac_ct_AR" = x; then
6710 AR=""
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718 AR=$ac_ct_AR
6720 else
6721 AR="$ac_cv_prog_AR"
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}ld; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if test "${ac_cv_prog_LD+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 if test -n "$LD"; then
6733 ac_cv_prog_LD="$LD" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_prog_LD="${ac_tool_prefix}ld"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6746 done
6747 done
6748 IFS=$as_save_IFS
6752 LD=$ac_cv_prog_LD
6753 if test -n "$LD"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6755 $as_echo "$LD" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6763 if test -z "$ac_cv_prog_LD"; then
6764 ac_ct_LD=$LD
6765 # Extract the first word of "ld", so it can be a program name with args.
6766 set dummy ld; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6770 $as_echo_n "(cached) " >&6
6771 else
6772 if test -n "$ac_ct_LD"; then
6773 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 ac_cv_prog_ac_ct_LD="ld"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6786 done
6787 done
6788 IFS=$as_save_IFS
6792 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6793 if test -n "$ac_ct_LD"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6795 $as_echo "$ac_ct_LD" >&6; }
6796 else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6801 if test "x$ac_ct_LD" = x; then
6802 LD=""
6803 else
6804 case $cross_compiling:$ac_tool_warned in
6805 yes:)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810 LD=$ac_ct_LD
6812 else
6813 LD="$ac_cv_prog_LD"
6817 # Check whether --enable-monolithic was given.
6818 if test "${enable_monolithic+set}" = set; then :
6819 enableval=$enable_monolithic;
6822 if test ${enable_monolithic:-yes} = yes; then
6823 MONOLITHIC_TRUE=
6824 MONOLITHIC_FALSE='#'
6825 else
6826 MONOLITHIC_TRUE='#'
6827 MONOLITHIC_FALSE=
6831 # Check whether --enable-amule-daemon was given.
6832 if test "${enable_amule_daemon+set}" = set; then :
6833 enableval=$enable_amule_daemon;
6836 if test ${enable_amule_daemon:-no} = yes; then
6837 AMULE_DAEMON_TRUE=
6838 AMULE_DAEMON_FALSE='#'
6839 else
6840 AMULE_DAEMON_TRUE='#'
6841 AMULE_DAEMON_FALSE=
6845 # Check whether --enable-amulecmd was given.
6846 if test "${enable_amulecmd+set}" = set; then :
6847 enableval=$enable_amulecmd;
6850 if test ${enable_amulecmd:-no} = yes; then
6851 COMPILE_CMD_TRUE=
6852 COMPILE_CMD_FALSE='#'
6853 else
6854 COMPILE_CMD_TRUE='#'
6855 COMPILE_CMD_FALSE=
6859 # Check whether --enable-webserver was given.
6860 if test "${enable_webserver+set}" = set; then :
6861 enableval=$enable_webserver;
6864 if test ${enable_webserver:-no} = yes; then
6865 WEB_TRUE=
6866 WEB_FALSE='#'
6867 else
6868 WEB_TRUE='#'
6869 WEB_FALSE=
6873 # Check whether --enable-amule-gui was given.
6874 if test "${enable_amule_gui+set}" = set; then :
6875 enableval=$enable_amule_gui;
6878 if test ${enable_amule_gui:-no} = yes; then
6879 AMULE_GUI_TRUE=
6880 AMULE_GUI_FALSE='#'
6881 else
6882 AMULE_GUI_TRUE='#'
6883 AMULE_GUI_FALSE=
6887 # Check whether --enable-cas was given.
6888 if test "${enable_cas+set}" = set; then :
6889 enableval=$enable_cas;
6892 if test ${enable_cas:-no} = yes; then
6893 CAS_TRUE=
6894 CAS_FALSE='#'
6895 else
6896 CAS_TRUE='#'
6897 CAS_FALSE=
6901 # Check whether --enable-wxcas was given.
6902 if test "${enable_wxcas+set}" = set; then :
6903 enableval=$enable_wxcas;
6906 if test ${enable_wxcas:-no} = yes; then
6907 WXCAS_TRUE=
6908 WXCAS_FALSE='#'
6909 else
6910 WXCAS_TRUE='#'
6911 WXCAS_FALSE=
6915 # Check whether --enable-ed2k was given.
6916 if test "${enable_ed2k+set}" = set; then :
6917 enableval=$enable_ed2k;
6920 if test ${enable_ed2k:-yes} = yes; then
6921 ED2K_TRUE=
6922 ED2K_FALSE='#'
6923 else
6924 ED2K_TRUE='#'
6925 ED2K_FALSE=
6929 # Check whether --enable-alc was given.
6930 if test "${enable_alc+set}" = set; then :
6931 enableval=$enable_alc;
6934 if test ${enable_alc:-no} = yes; then
6935 ALC_TRUE=
6936 ALC_FALSE='#'
6937 else
6938 ALC_TRUE='#'
6939 ALC_FALSE=
6943 # Check whether --enable-alcc was given.
6944 if test "${enable_alcc+set}" = set; then :
6945 enableval=$enable_alcc;
6948 if test ${enable_alcc:-no} = yes; then
6949 ALCC_TRUE=
6950 ALCC_FALSE='#'
6951 else
6952 ALCC_TRUE='#'
6953 ALCC_FALSE=
6957 # Check whether --enable-xas was given.
6958 if test "${enable_xas+set}" = set; then :
6959 enableval=$enable_xas;
6962 if test ${enable_xas:-no} = yes; then
6963 XAS_TRUE=
6964 XAS_FALSE='#'
6965 else
6966 XAS_TRUE='#'
6967 XAS_FALSE=
6971 # Check whether --enable-fileview was given.
6972 if test "${enable_fileview+set}" = set; then :
6973 enableval=$enable_fileview;
6976 if test ${enable_fileview:-no} = yes; then
6977 FILEVIEW_TRUE=
6978 FILEVIEW_FALSE='#'
6979 else
6980 FILEVIEW_TRUE='#'
6981 FILEVIEW_FALSE=
6985 # Check whether --enable-plasmamule was given.
6986 if test "${enable_plasmamule+set}" = set; then :
6987 enableval=$enable_plasmamule;
6992 # Run all the tests with static linkage if we want a statically linked binary
6993 # Check whether --enable-static was given.
6994 if test "${enable_static+set}" = set; then :
6995 enableval=$enable_static;
6999 if test ${enable_static:-no} = yes; then :
7000 LDFLAGS="$LDFLAGS -static"
7005 # Check whether --with-kde4-config was given.
7006 if test "${with_kde4_config+set}" = set; then :
7007 withval=$with_kde4_config; KDE4_CONFIG=$withval
7008 else
7009 KDE4_CONFIG=""
7012 # Check whether --enable-kde-in-home was given.
7013 if test "${enable_kde_in_home+set}" = set; then :
7014 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7015 else
7016 KDE_IN_HOME=no
7022 # Check whether --with-moc was given.
7023 if test "${with_moc+set}" = set; then :
7024 withval=$with_moc; QT_MOC=$withval
7025 else
7026 QT_MOC=""
7031 # Default is yes, because they're most likely compatible.
7032 # However, this is only used when cross-compiling.
7034 # Check whether --with-gnu-malloc was given.
7035 if test "${with_gnu_malloc+set}" = set; then :
7036 withval=$with_gnu_malloc; gnumalloc=$withval
7037 else
7038 gnumalloc=yes
7043 # Checking for libs before all other stuff to break
7044 # configure as soon as possible in case of a missing one
7045 # to avoid losing too much time
7047 # Check for gd
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7050 $as_echo_n "checking for ANSI C header files... " >&6; }
7051 if test "${ac_cv_header_stdc+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 #include <stdlib.h>
7057 #include <stdarg.h>
7058 #include <string.h>
7059 #include <float.h>
7062 main ()
7066 return 0;
7068 _ACEOF
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070 ac_cv_header_stdc=yes
7071 else
7072 ac_cv_header_stdc=no
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 if test $ac_cv_header_stdc = yes; then
7077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7080 #include <string.h>
7082 _ACEOF
7083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084 $EGREP "memchr" >/dev/null 2>&1; then :
7086 else
7087 ac_cv_header_stdc=no
7089 rm -f conftest*
7093 if test $ac_cv_header_stdc = yes; then
7094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097 #include <stdlib.h>
7099 _ACEOF
7100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7101 $EGREP "free" >/dev/null 2>&1; then :
7103 else
7104 ac_cv_header_stdc=no
7106 rm -f conftest*
7110 if test $ac_cv_header_stdc = yes; then
7111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7112 if test "$cross_compiling" = yes; then :
7114 else
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 #include <ctype.h>
7118 #include <stdlib.h>
7119 #if ((' ' & 0x0FF) == 0x020)
7120 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7121 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7122 #else
7123 # define ISLOWER(c) \
7124 (('a' <= (c) && (c) <= 'i') \
7125 || ('j' <= (c) && (c) <= 'r') \
7126 || ('s' <= (c) && (c) <= 'z'))
7127 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7128 #endif
7130 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7132 main ()
7134 int i;
7135 for (i = 0; i < 256; i++)
7136 if (XOR (islower (i), ISLOWER (i))
7137 || toupper (i) != TOUPPER (i))
7138 return 2;
7139 return 0;
7141 _ACEOF
7142 if ac_fn_c_try_run "$LINENO"; then :
7144 else
7145 ac_cv_header_stdc=no
7147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7148 conftest.$ac_objext conftest.beam conftest.$ac_ext
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7154 $as_echo "$ac_cv_header_stdc" >&6; }
7155 if test $ac_cv_header_stdc = yes; then
7157 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7161 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7162 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7163 inttypes.h stdint.h unistd.h
7164 do :
7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7168 eval as_val=\$$as_ac_Header
7169 if test "x$as_val" = x""yes; then :
7170 cat >>confdefs.h <<_ACEOF
7171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7172 _ACEOF
7176 done
7179 if test ${enable_cas:-no} = yes; then :
7183 # Check whether --with-gdlib-prefix was given.
7184 if test "${with_gdlib_prefix+set}" = set; then :
7185 withval=$with_gdlib_prefix;
7189 # Check whether --with-gdlib-config was given.
7190 if test "${with_gdlib_config+set}" = set; then :
7191 withval=$with_gdlib_config;
7195 GDLIB_VERSION=
7197 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7198 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7199 GDLIB_CONFIG_NAME=gdlib-config
7201 if test -n "$with_gdlib_config"; then :
7202 GDLIB_CONFIG_NAME="$with_gdlib_config"
7205 # deal with optional prefix
7206 if test -n "$with_gdlib_prefix"; then :
7207 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7210 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7211 if test -x "$GDLIB_CONFIG_NAME"; then :
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7214 $as_echo_n "checking for gdlib-config... " >&6; }
7215 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7217 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7219 else
7220 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7221 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 case $GDLIB_CONFIG_PATH in
7228 [\\/]* | ?:[\\/]*)
7229 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7234 for as_dir in $as_dummy
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 break 2
7244 done
7245 done
7246 IFS=$as_save_IFS
7248 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7250 esac
7252 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7253 if test -n "$GDLIB_CONFIG_PATH"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7255 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7256 else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7264 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7267 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7268 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7270 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7271 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7272 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7273 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7275 gdlib_ver_ok=
7276 if test $gdlib_config_major_version -gt 2; then
7277 gdlib_ver_ok=yes
7278 elif test $gdlib_config_major_version -eq 2; then
7280 if test $gdlib_config_minor_version -gt 0; then
7281 gdlib_ver_ok=yes
7282 elif test $gdlib_config_minor_version -eq 0; then
7283 if test $gdlib_config_micro_version -ge 0; then
7284 gdlib_ver_ok=yes
7293 if test -z "$gdlib_ver_ok"; then :
7295 if test -z "$GDLIB_VERSION"; then :
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7298 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7301 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7302 GDLIB_VERSION=
7306 else
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7309 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7310 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7311 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7312 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7313 mule_backup_CFLAGS="$CFLAGS"
7314 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7315 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7316 if test "x$ac_cv_header_gd_h" = x""yes; then :
7318 else
7319 GDLIB_VERSION=
7323 CFLAGS="$mule_backup_CFLAGS"
7329 if test -n "$GDLIB_VERSION"; then :
7331 CAS_DEFS="-D__GD__"
7332 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7334 else
7335 CAS_DEFS=
7340 if test -z "$CAS_DEFS"; then :
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7342 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7343 Please check that gdlib-config is in your default path, check out
7344 LD_LIBRARY_PATH or equivalent variable.
7345 Or this might also be that your gdlib-config has other name.
7346 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7347 (replace /usr/bin/gdlib-config with a valid path to your
7348 gdlib-config).
7349 If you use compiled packages check if you have devel pack installed.
7350 To download the latest version check http://www.boutell.com/gd for
7351 sources." >&5
7352 $as_echo "$as_me: WARNING:
7353 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7354 Please check that gdlib-config is in your default path, check out
7355 LD_LIBRARY_PATH or equivalent variable.
7356 Or this might also be that your gdlib-config has other name.
7357 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7358 (replace /usr/bin/gdlib-config with a valid path to your
7359 gdlib-config).
7360 If you use compiled packages check if you have devel pack installed.
7361 To download the latest version check http://www.boutell.com/gd for
7362 sources." >&2;}
7363 _mule_warning_0=yes
7364 _mule_has_warnings=yes
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7371 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7372 if test "${ac_cv_header_stdbool_h+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7378 #include <stdbool.h>
7379 #ifndef bool
7380 "error: bool is not defined"
7381 #endif
7382 #ifndef false
7383 "error: false is not defined"
7384 #endif
7385 #if false
7386 "error: false is not 0"
7387 #endif
7388 #ifndef true
7389 "error: true is not defined"
7390 #endif
7391 #if true != 1
7392 "error: true is not 1"
7393 #endif
7394 #ifndef __bool_true_false_are_defined
7395 "error: __bool_true_false_are_defined is not defined"
7396 #endif
7398 struct s { _Bool s: 1; _Bool t; } s;
7400 char a[true == 1 ? 1 : -1];
7401 char b[false == 0 ? 1 : -1];
7402 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7403 char d[(bool) 0.5 == true ? 1 : -1];
7404 bool e = &s;
7405 char f[(_Bool) 0.0 == false ? 1 : -1];
7406 char g[true];
7407 char h[sizeof (_Bool)];
7408 char i[sizeof s.t];
7409 enum { j = false, k = true, l = false * true, m = true * 256 };
7410 /* The following fails for
7411 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7412 _Bool n[m];
7413 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7414 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7415 # if defined __xlc__ || defined __GNUC__
7416 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7417 reported by James Lemley on 2005-10-05; see
7418 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7419 This test is not quite right, since xlc is allowed to
7420 reject this program, as the initializer for xlcbug is
7421 not one of the forms that C requires support for.
7422 However, doing the test right would require a runtime
7423 test, and that would make cross-compilation harder.
7424 Let us hope that IBM fixes the xlc bug, and also adds
7425 support for this kind of constant expression. In the
7426 meantime, this test will reject xlc, which is OK, since
7427 our stdbool.h substitute should suffice. We also test
7428 this with GCC, where it should work, to detect more
7429 quickly whether someone messes up the test in the
7430 future. */
7431 char digs[] = "0123456789";
7432 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7433 # endif
7434 /* Catch a bug in an HP-UX C compiler. See
7435 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7436 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7438 _Bool q = true;
7439 _Bool *pq = &q;
7442 main ()
7445 *pq |= q;
7446 *pq |= ! q;
7447 /* Refer to every declared value, to avoid compiler optimizations. */
7448 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7449 + !m + !n + !o + !p + !q + !pq);
7452 return 0;
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"; then :
7456 ac_cv_header_stdbool_h=yes
7457 else
7458 ac_cv_header_stdbool_h=no
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7463 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7464 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7465 if test "x$ac_cv_type__Bool" = x""yes; then :
7467 cat >>confdefs.h <<_ACEOF
7468 #define HAVE__BOOL 1
7469 _ACEOF
7474 if test $ac_cv_header_stdbool_h = yes; then
7476 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7481 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7482 if test "${ac_cv_c_const+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7489 main ()
7491 /* FIXME: Include the comments suggested by Paul. */
7492 #ifndef __cplusplus
7493 /* Ultrix mips cc rejects this. */
7494 typedef int charset[2];
7495 const charset cs;
7496 /* SunOS 4.1.1 cc rejects this. */
7497 char const *const *pcpcc;
7498 char **ppc;
7499 /* NEC SVR4.0.2 mips cc rejects this. */
7500 struct point {int x, y;};
7501 static struct point const zero = {0,0};
7502 /* AIX XL C 1.02.0.0 rejects this.
7503 It does not let you subtract one const X* pointer from another in
7504 an arm of an if-expression whose if-part is not a constant
7505 expression */
7506 const char *g = "string";
7507 pcpcc = &g + (g ? g-g : 0);
7508 /* HPUX 7.0 cc rejects these. */
7509 ++pcpcc;
7510 ppc = (char**) pcpcc;
7511 pcpcc = (char const *const *) ppc;
7512 { /* SCO 3.2v4 cc rejects this. */
7513 char *t;
7514 char const *s = 0 ? (char *) 0 : (char const *) 0;
7516 *t++ = 0;
7517 if (s) return 0;
7519 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7520 int x[] = {25, 17};
7521 const int *foo = &x[0];
7522 ++foo;
7524 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7525 typedef const int *iptr;
7526 iptr p = 0;
7527 ++p;
7529 { /* AIX XL C 1.02.0.0 rejects this saying
7530 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7531 struct s { int j; const int *ap[3]; };
7532 struct s *b; b->j = 5;
7534 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7535 const int foo = 10;
7536 if (!foo) return 0;
7538 return !cs[0] && !zero.x;
7539 #endif
7542 return 0;
7544 _ACEOF
7545 if ac_fn_c_try_compile "$LINENO"; then :
7546 ac_cv_c_const=yes
7547 else
7548 ac_cv_c_const=no
7550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7553 $as_echo "$ac_cv_c_const" >&6; }
7554 if test $ac_cv_c_const = no; then
7556 $as_echo "#define const /**/" >>confdefs.h
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7561 $as_echo_n "checking for inline... " >&6; }
7562 if test "${ac_cv_c_inline+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 ac_cv_c_inline=no
7566 for ac_kw in inline __inline__ __inline; do
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 #ifndef __cplusplus
7570 typedef int foo_t;
7571 static $ac_kw foo_t static_foo () {return 0; }
7572 $ac_kw foo_t foo () {return 0; }
7573 #endif
7575 _ACEOF
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 ac_cv_c_inline=$ac_kw
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 test "$ac_cv_c_inline" != no && break
7581 done
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7585 $as_echo "$ac_cv_c_inline" >&6; }
7587 case $ac_cv_c_inline in
7588 inline | yes) ;;
7590 case $ac_cv_c_inline in
7591 no) ac_val=;;
7592 *) ac_val=$ac_cv_c_inline;;
7593 esac
7594 cat >>confdefs.h <<_ACEOF
7595 #ifndef __cplusplus
7596 #define inline $ac_val
7597 #endif
7598 _ACEOF
7600 esac
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7603 $as_echo_n "checking for working volatile... " >&6; }
7604 if test "${ac_cv_c_volatile+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608 /* end confdefs.h. */
7611 main ()
7614 volatile int x;
7615 int * volatile y = (int *) 0;
7616 return !x && !y;
7618 return 0;
7620 _ACEOF
7621 if ac_fn_c_try_compile "$LINENO"; then :
7622 ac_cv_c_volatile=yes
7623 else
7624 ac_cv_c_volatile=no
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7629 $as_echo "$ac_cv_c_volatile" >&6; }
7630 if test $ac_cv_c_volatile = no; then
7632 $as_echo "#define volatile /**/" >>confdefs.h
7637 ac_ext=cpp
7638 ac_cpp='$CXXCPP $CPPFLAGS'
7639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7645 # Check for zlib
7647 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then :
7650 # Check whether --with-zlib was given.
7651 if test "${with_zlib+set}" = set; then :
7652 withval=$with_zlib;
7656 case "${with_zlib:-yes}" in
7658 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7660 yes | sys)
7663 zlib_prefix="$with_zlib"
7664 esac
7666 mule_backup_CPPFLAGS="$CPPFLAGS"
7667 mule_backup_LDFLAGS="$LDFLAGS"
7668 mule_backup_LIBS="$LIBS"
7669 if test -n "$zlib_prefix"; then :
7671 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
7672 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
7673 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
7674 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
7676 else
7678 ZLIB_CPPFLAGS=
7679 ZLIB_LDFLAGS=
7682 ZLIB_LIBS="-lz"
7683 LIBS="$ZLIB_LIBS $LIBS"
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
7686 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
7687 if test "$cross_compiling" = yes; then :
7689 result=no
7690 z_version=
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7695 #include <zlib.h>
7696 #include <stdio.h>
7699 main ()
7702 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
7703 zlibVersion();
7706 return 0;
7709 _ACEOF
7710 if ac_fn_cxx_try_link "$LINENO"; then :
7712 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
7713 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
7714 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
7715 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
7716 if test "$cross_zver_max" -gt "1"; then
7717 result=yes
7718 elif test "$cross_zver_max" -eq "1"; then
7720 if test "$cross_zver_mid" -gt "1"; then
7721 result=yes
7722 elif test "$cross_zver_mid" -eq "1"; then
7723 if test "$cross_zver_min" -ge "4"; then
7724 result=yes
7732 if test ${result:-no} = yes; then :
7733 z_version=" (version $ZLIB_VERSION)"
7737 rm -f core conftest.err conftest.$ac_objext \
7738 conftest$ac_exeext conftest.$ac_ext
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7740 $as_echo "$result$z_version" >&6; }
7742 else
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7747 #include <zlib.h>
7748 #include <stdio.h>
7751 main ()
7753 const char *zver = zlibVersion();
7754 FILE *f=fopen("conftestval", "w");
7755 if (!f) return 1;
7756 fprintf(f, "%s",
7757 zver[0] > '1' ||
7758 (zver[0] == '1' &&
7759 (zver[2] > '1' ||
7760 (zver[2] == '1' &&
7761 zver[4] >= '4'))) ? "yes" : "no");
7762 fclose(f);
7763 f=fopen("conftestver", "w");
7764 if (f) {
7765 fprintf(f, "%s", ZLIB_VERSION);
7766 fclose(f);
7770 return 0;
7773 _ACEOF
7774 if ac_fn_cxx_try_run "$LINENO"; then :
7776 if test -f conftestval; then :
7777 result=`cat conftestval`
7778 else
7779 result=no
7781 if test ${result:-no} = yes; then :
7783 if test -f conftestver; then :
7785 ZLIB_VERSION=`cat conftestver`
7786 z_version=" (version $ZLIB_VERSION)"
7788 else
7789 z_version=
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7794 $as_echo "$result$z_version" >&6; }
7796 else
7798 result=no
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7800 $as_echo "$result" >&6; }
7803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7804 conftest.$ac_objext conftest.beam conftest.$ac_ext
7808 CPPFLAGS="$mule_backup_CPPFLAGS"
7809 LDFLAGS="$mule_backup_LDFLAGS"
7810 LIBS="$mule_backup_LIBS"
7812 if test ${result:-no} = no; then :
7814 ZLIB_CPPFLAGS=
7815 ZLIB_LDFLAGS=
7816 ZLIB_LIBS=
7817 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7825 # Check for libpng
7826 if test ${enable_webserver:-no} = yes; then :
7829 # Check whether --with-libpng-prefix was given.
7830 if test "${with_libpng_prefix+set}" = set; then :
7831 withval=$with_libpng_prefix;
7835 # Check whether --with-libpng-config was given.
7836 if test "${with_libpng_config+set}" = set; then :
7837 withval=$with_libpng_config;
7841 LIBPNG_VERSION=
7843 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7844 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7845 LIBPNG_CONFIG_NAME=libpng-config
7847 if test -n "$with_libpng_config"; then :
7848 LIBPNG_CONFIG_NAME="$with_libpng_config"
7851 # deal with optional prefix
7852 if test -n "$with_libpng_prefix"; then :
7853 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7856 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7857 if test -x "$LIBPNG_CONFIG_NAME"; then :
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7860 $as_echo_n "checking for libpng-config... " >&6; }
7861 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7863 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7865 else
7866 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7867 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7872 else
7873 case $LIBPNG_CONFIG_PATH in
7874 [\\/]* | ?:[\\/]*)
7875 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7880 for as_dir in $as_dummy
7882 IFS=$as_save_IFS
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7888 break 2
7890 done
7891 done
7892 IFS=$as_save_IFS
7894 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7896 esac
7898 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7899 if test -n "$LIBPNG_CONFIG_PATH"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7901 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7910 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7913 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7915 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7917 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7918 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7919 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7920 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7922 libpng_ver_ok=
7923 if test $libpng_config_major_version -gt 1; then
7924 libpng_ver_ok=yes
7925 elif test $libpng_config_major_version -eq 1; then
7927 if test $libpng_config_minor_version -gt 2; then
7928 libpng_ver_ok=yes
7929 elif test $libpng_config_minor_version -eq 2; then
7930 if test $libpng_config_micro_version -ge 0; then
7931 libpng_ver_ok=yes
7940 if test -z "$libpng_ver_ok"; then :
7942 if test -z "$LIBPNG_VERSION"; then :
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7945 else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7948 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7949 LIBPNG_VERSION=
7953 else
7955 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7956 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
7957 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7959 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7962 $as_echo_n "checking if libpng is usable... " >&6; }
7964 SAVED_CFLAGS=$CFLAGS
7965 SAVED_LDFLAGS=$LDFLAGS
7966 SAVED_LIBS=$LIBS
7968 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
7969 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
7970 LIBS="$LIBS $LIBPNG_LIBS"
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7976 #include <png.h>
7977 #include <stdio.h>
7980 main ()
7983 png_uint_32 libpng_vn = png_access_version_number();
7984 printf("\nlibpng version %i\n\n", libpng_vn);
7987 return 0;
7990 _ACEOF
7991 if ac_fn_cxx_try_link "$LINENO"; then :
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7994 $as_echo "yes" >&6; }
7996 else
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
7999 $as_echo "no (failed to compile and link test program)" >&6; }
8000 LIBPNG_LIBS=
8001 LIBPNG_LDFLAGS=
8002 LIBPNG_CFLAGS=
8003 LIBPNG_VERSION=
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8009 CFLAGS=$SAVED_CFLAGS
8010 LDFLAGS=$SAVED_LDFLAGS
8011 LIBS=$SAVED_LIBS
8017 if test -n "$LIBPNG_VERSION"; then :
8018 AMULEWEB_DEFS="-DWITH_LIBPNG"
8019 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8022 libpng >= 1.2.0 not found.
8023 amuleweb will be compiled but file download progress bar images will
8024 NOT be generated." >&5
8025 $as_echo "$as_me: WARNING:
8026 libpng >= 1.2.0 not found.
8027 amuleweb will be compiled but file download progress bar images will
8028 NOT be generated." >&2;}
8029 _mule_warning_1=yes
8030 _mule_has_warnings=yes
8041 # Check for perl File::Copy
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
8043 $as_echo_n "checking for File::Copy... " >&6; }
8044 if perl -e "require File::Copy" 2>/dev/null; then :
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8046 $as_echo "ok" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8049 File::Copy perl module is required by the mldonkey_importer script.
8050 If you want to use this script please install File::Copy from CPAN." >&5
8051 $as_echo "$as_me: WARNING:
8052 File::Copy perl module is required by the mldonkey_importer script.
8053 If you want to use this script please install File::Copy from CPAN." >&2;}
8054 _mule_warning_2=yes
8055 _mule_has_warnings=yes
8060 # Check for GeoIP (required for IP2Country capability)
8062 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8064 # Check whether --enable-geoip was given.
8065 if test "${enable_geoip+set}" = set; then :
8066 enableval=$enable_geoip;
8071 if test ${enable_geoip:-no} = yes; then :
8074 # Check whether --with-geoip-headers was given.
8075 if test "${with_geoip_headers+set}" = set; then :
8076 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8080 # Check whether --with-geoip-lib was given.
8081 if test "${with_geoip_lib+set}" = set; then :
8082 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8086 mule_backup_CPPFLAGS="$CPPFLAGS"
8087 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8088 mule_backup_LDFLAGS="$LDFLAGS"
8089 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8091 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8092 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
8094 if test x$SYS = xwin32; then :
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8097 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8098 # Actually, we might not need any if GeoIP is linked as a .dll
8099 # - but that's even harder to check for
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8104 #include <GeoIP.h>
8105 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8106 I do know it's not the best approach, but at least works with MinGW stock headers.
8107 (tested with w32api-3.12)
8108 #endif
8111 main ()
8115 return 0;
8118 _ACEOF
8119 if ac_fn_cxx_try_compile "$LINENO"; then :
8121 GEOIP_WINSOCK_LIB="-lwsock32"
8123 else
8125 GEOIP_WINSOCK_LIB="-lws2_32"
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8130 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8134 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8135 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 ac_check_lib_save_LIBS=$LIBS
8139 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8143 /* Override any GCC internal prototype to avoid an error.
8144 Use char because int might match the return type of a GCC
8145 builtin and then its argument prototype would still apply. */
8146 #ifdef __cplusplus
8147 extern "C"
8148 #endif
8149 char GeoIP_open ();
8151 main ()
8153 return GeoIP_open ();
8155 return 0;
8157 _ACEOF
8158 if ac_fn_cxx_try_link "$LINENO"; then :
8159 ac_cv_lib_GeoIP_GeoIP_open=yes
8160 else
8161 ac_cv_lib_GeoIP_GeoIP_open=no
8163 rm -f core conftest.err conftest.$ac_objext \
8164 conftest$ac_exeext conftest.$ac_ext
8165 LIBS=$ac_check_lib_save_LIBS
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8168 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8169 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
8172 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8174 GEOIP_LIBS="-lGeoIP"
8175 if test x$SYS = xwin32; then :
8176 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8178 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8180 # Check whether --with-geoip-static was given.
8181 if test "${with_geoip_static+set}" = set; then :
8182 withval=$with_geoip_static;
8183 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8185 mule_backup_LIBS="$LIBS"
8186 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8191 #include <GeoIP.h>
8194 main ()
8197 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8200 return 0;
8203 _ACEOF
8204 if ac_fn_cxx_try_link "$LINENO"; then :
8206 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8208 else
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8211 Cannot link GeoIP statically, because your linker ($LD) does not
8212 support it." >&5
8213 $as_echo "$as_me: WARNING:
8214 Cannot link GeoIP statically, because your linker ($LD) does not
8215 support it." >&2;}
8216 _mule_warning_3=yes
8217 _mule_has_warnings=yes
8221 rm -f core conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8223 LIBS="$mule_backup_LIBS"
8230 else
8232 enable_geoip=disabled
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8234 GeoIP support has been disabled because the GeoIP libraries were not
8235 found" >&5
8236 $as_echo "$as_me: WARNING:
8237 GeoIP support has been disabled because the GeoIP libraries were not
8238 found" >&2;}
8239 _mule_warning_4=yes
8240 _mule_has_warnings=yes
8246 else
8248 enable_geoip=disabled
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8250 GeoIP support has been disabled because the GeoIP header files were
8251 not found" >&5
8252 $as_echo "$as_me: WARNING:
8253 GeoIP support has been disabled because the GeoIP header files were
8254 not found" >&2;}
8255 _mule_warning_5=yes
8256 _mule_has_warnings=yes
8263 CPPFLAGS="$mule_backup_CPPFLAGS"
8264 LDFLAGS="$mule_backup_LDFLAGS"
8271 # Check for wx
8272 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8275 # Check whether --with-wxdir was given.
8276 if test "${with_wxdir+set}" = set; then :
8277 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8278 wx_config_args="--inplace"
8282 # Check whether --with-wx-config was given.
8283 if test "${with_wx_config+set}" = set; then :
8284 withval=$with_wx_config; wx_config_name="$withval"
8288 # Check whether --with-wx-prefix was given.
8289 if test "${with_wx_prefix+set}" = set; then :
8290 withval=$with_wx_prefix; wx_config_prefix="$withval"
8291 else
8292 wx_config_prefix=""
8296 # Check whether --with-wx-exec-prefix was given.
8297 if test "${with_wx_exec_prefix+set}" = set; then :
8298 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8299 else
8300 wx_config_exec_prefix=""
8315 # Check whether --with-toolkit was given.
8316 if test "${with_toolkit+set}" = set; then :
8317 withval=$with_toolkit;
8318 else
8319 withval="auto"
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8324 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8325 if test "$withval" = "auto" ; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8327 $as_echo "will be automatically detected" >&6; }
8328 TOOLKIT="auto"
8329 else
8330 TOOLKIT="$withval"
8332 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
8333 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8334 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
8335 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
8336 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
8337 "$TOOLKIT" != "osx_cocoa"; then
8338 as_fn_error "
8339 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
8340 " "$LINENO" 5
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8344 $as_echo "$TOOLKIT" >&6; }
8351 # Check whether --with-wxshared was given.
8352 if test "${with_wxshared+set}" = set; then :
8353 withval=$with_wxshared;
8354 else
8355 withval="auto"
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8360 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8361 if test "$withval" = "yes" ; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8363 $as_echo "yes" >&6; }
8364 WX_SHARED=1
8366 elif test "1" = "1" -a "$withval" = "no" ; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8368 $as_echo "no" >&6; }
8369 WX_SHARED=0
8370 elif test "$withval" = "auto" ; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8372 $as_echo "will be automatically detected" >&6; }
8373 WX_SHARED="auto"
8374 else
8375 as_fn_error "
8376 Unrecognized option value (allowed values: yes, auto)
8377 " "$LINENO" 5
8384 # Check whether --with-wxdebug was given.
8385 if test "${with_wxdebug+set}" = set; then :
8386 withval=$with_wxdebug;
8387 else
8388 withval="auto"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8393 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8394 if test "$withval" = "yes" ; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8396 $as_echo "yes" >&6; }
8397 WX_DEBUG=1
8399 elif test "1" = "1" -a "$withval" = "no" ; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8402 WX_DEBUG=0
8403 elif test "$withval" = "auto" ; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8405 $as_echo "will be automatically detected" >&6; }
8406 WX_DEBUG="auto"
8407 else
8408 as_fn_error "
8409 Unrecognized option value (allowed values: yes, auto)
8410 " "$LINENO" 5
8417 # Check whether --with-wxversion was given.
8418 if test "${with_wxversion+set}" = set; then :
8419 withval=$with_wxversion;
8420 else
8421 withval="auto"
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8426 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8427 if test "$withval" = "auto" ; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8429 $as_echo "will be automatically detected" >&6; }
8430 WX_VERSION="auto"
8431 else
8433 wx_requested_major_version=`echo $withval | \
8434 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8435 wx_requested_minor_version=`echo $withval | \
8436 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8438 if test "${#wx_requested_major_version}" != "1" -o \
8439 "${#wx_requested_minor_version}" != "1" ; then
8440 as_fn_error "
8441 Unrecognized option value (allowed values: auto, 2.8, 2.9)
8442 " "$LINENO" 5
8445 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
8447 $as_echo "$WX_VERSION" >&6; }
8451 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8452 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8453 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8454 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8455 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8456 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
8459 # Force using a static wxWidgets library if the executable is to be linked statically.
8460 if test ${enable_static:-no} = yes; then :
8461 WX_SHARED=0
8463 # Force using a unicode build of the library
8464 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8465 WX_UNICODE=1
8467 DEBUG=$WX_DEBUG
8469 if test "$WX_SHARED" = "1" ; then
8470 WXCONFIG_FLAGS="--static=no "
8471 elif test "$WX_SHARED" = "0" ; then
8472 WXCONFIG_FLAGS="--static=yes "
8475 if test "$WX_DEBUG" = "1" ; then
8476 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8477 elif test "$WX_DEBUG" = "0" ; then
8478 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8481 if test "$WX_UNICODE" = "1" ; then
8482 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8483 elif test "$WX_UNICODE" = "0" ; then
8484 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8487 if test "$TOOLKIT" != "auto" ; then
8488 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8491 if test "$WX_VERSION" != "auto" ; then
8492 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
8495 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8497 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8498 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8502 if test x${WX_CONFIG_NAME+set} != xset ; then
8503 WX_CONFIG_NAME=wx-config
8506 if test "x$wx_config_name" != x ; then
8507 WX_CONFIG_NAME="$wx_config_name"
8510 if test x$wx_config_exec_prefix != x ; then
8511 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8512 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8514 if test x$wx_config_prefix != x ; then
8515 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8516 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8518 if test "$cross_compiling" = "yes"; then
8519 wx_config_args="$wx_config_args --host=$host_alias"
8522 if test -x "$WX_CONFIG_NAME" ; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8524 $as_echo_n "checking for wx-config... " >&6; }
8525 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8527 $as_echo "$WX_CONFIG_PATH" >&6; }
8528 else
8529 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8530 set dummy $WX_CONFIG_NAME; ac_word=$2
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8532 $as_echo_n "checking for $ac_word... " >&6; }
8533 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8536 case $WX_CONFIG_PATH in
8537 [\\/]* | ?:[\\/]*)
8538 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8542 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8543 for as_dir in $as_dummy
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8553 done
8554 done
8555 IFS=$as_save_IFS
8557 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8559 esac
8561 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8562 if test -n "$WX_CONFIG_PATH"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8564 $as_echo "$WX_CONFIG_PATH" >&6; }
8565 else
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8573 if test "$WX_CONFIG_PATH" != "no" ; then
8574 WX_VERSION_FULL=""
8576 min_wx_version=2.8.12
8577 if test -z "$WXCONFIG_FLAGS" ; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8579 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8580 else
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8582 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8585 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
8587 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8588 wx_config_major_version=`echo $WX_VERSION_FULL | \
8589 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8590 wx_config_minor_version=`echo $WX_VERSION_FULL | \
8591 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8592 wx_config_micro_version=`echo $WX_VERSION_FULL | \
8593 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8595 wx_requested_major_version=`echo $min_wx_version | \
8596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8597 wx_requested_minor_version=`echo $min_wx_version | \
8598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8599 wx_requested_micro_version=`echo $min_wx_version | \
8600 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8603 wx_ver_ok=""
8604 if test "x$WX_VERSION_FULL" != x ; then
8605 if test $wx_config_major_version -gt $wx_requested_major_version; then
8606 wx_ver_ok=yes
8607 else
8608 if test $wx_config_major_version -eq $wx_requested_major_version; then
8609 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8610 wx_ver_ok=yes
8611 else
8612 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8613 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8614 wx_ver_ok=yes
8623 if test -n "$wx_ver_ok"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
8626 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
8627 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
8629 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8631 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
8632 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
8633 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
8635 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8636 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8638 wxWin=1
8640 else
8642 if test "x$WX_VERSION_FULL" = x; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644 $as_echo "no" >&6; }
8645 else
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
8647 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
8650 WX_CFLAGS=""
8651 WX_CPPFLAGS=""
8652 WX_CXXFLAGS=""
8653 WX_LIBS=""
8654 WX_RESCOMP=""
8656 if test ! -z "$WXCONFIG_FLAGS"; then
8658 wx_error_message="
8659 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8660 build with the following settings:
8661 $WXCONFIG_FLAGS
8662 but such build is not available.
8664 To see the wxWidgets builds available on this system, please use
8665 'wx-config --list' command. To use the default build, returned by
8666 'wx-config --selected-config', use the options with their 'auto'
8667 default values."
8671 wx_error_message="
8672 The requested wxWidgets build couldn't be found.
8673 $wx_error_message
8675 If you still get this error, then check that 'wx-config' is
8676 in path, the directory where wxWidgets libraries are installed
8677 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8678 or equivalent variable and wxWidgets version is 2.8.12 or above."
8680 as_fn_error "$wx_error_message" "$LINENO" 5
8683 else
8685 WX_CFLAGS=""
8686 WX_CPPFLAGS=""
8687 WX_CXXFLAGS=""
8688 WX_LIBS=""
8689 WX_RESCOMP=""
8704 WX_VERSION_MAJOR="$wx_config_major_version"
8705 WX_VERSION_MINOR="$wx_config_minor_version"
8709 if test "$wxWin" != 1; then :
8710 as_fn_error "
8711 wxWidgets must be installed on your system but wx-config
8712 script couldn't be found. Please check that wx-config is
8713 in path or specified by --with-wx-config=path flag, the
8714 directory where wxWidgets libraries are installed (returned
8715 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8716 equivalent variable and wxWidgets version is 2.8.12 or above.
8717 " "$LINENO" 5
8720 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8721 as_fn_error "
8722 This version of wxWidgets is known to not work with aMule.
8723 Please upgrade to a newer version.
8724 " "$LINENO" 5
8728 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8730 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8732 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8733 echo "[dbg] Using wx-config --selected-config"
8734 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8738 if test $WX_SHARED = "1"; then
8739 STATIC=0
8740 elif test $WX_SHARED = "0"; then
8741 STATIC=1
8742 elif test $WX_SHARED = "auto"; then
8743 STATIC="auto"
8747 if test "$UNICODE" = "auto" ; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8750 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8752 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8754 if test "$WX_UNICODE" != "0"; then
8755 WX_UNICODE=1
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8757 $as_echo "yes" >&6; }
8759 else
8760 WX_UNICODE=0
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8765 else
8767 WX_UNICODE=$UNICODE
8771 if test "$DEBUG" = "auto" ; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8774 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8776 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8778 if test "$WX_DEBUG" != "0"; then
8779 WX_DEBUG=1
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8781 $as_echo "yes" >&6; }
8783 else
8784 WX_DEBUG=0
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786 $as_echo "no" >&6; }
8789 else
8791 WX_DEBUG=$DEBUG
8795 if test "$STATIC" = "auto" ; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8798 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8800 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8802 if test "$WX_STATIC" != "0"; then
8803 WX_STATIC=1
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8805 $as_echo "yes" >&6; }
8807 else
8808 WX_STATIC=0
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8810 $as_echo "no" >&6; }
8813 else
8815 WX_STATIC=$STATIC
8819 if test "$WX_STATIC" != "0"; then
8820 WX_SHARED=0
8821 else
8822 WX_SHARED=1
8829 if test "$TOOLKIT" = "auto" ; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8832 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8834 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8835 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8836 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8837 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8838 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8839 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8840 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8841 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8842 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8843 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8844 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8846 WX_PORT="unknown"
8847 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8848 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8849 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8850 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8851 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8852 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8853 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8854 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8855 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8856 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8857 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8860 if test "$WX_PORT" = "unknown" ; then
8861 as_fn_error "
8862 Cannot detect the currently installed wxWidgets port !
8863 Please check your 'wx-config --cxxflags'...
8864 " "$LINENO" 5
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8868 $as_echo "$WX_PORT" >&6; }
8869 else
8871 if test -n "$TOOLKIT" ; then
8872 WX_PORT=$TOOLKIT
8873 else
8874 WX_PORT=$PORT
8880 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8881 echo "[dbg] Values of all WX_* options after final detection:"
8882 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8883 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8884 echo "[dbg] WX_SHARED: $WX_SHARED"
8885 echo "[dbg] WX_VERSION: $WX_VERSION"
8886 echo "[dbg] WX_PORT: $WX_PORT"
8889 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8890 as_fn_error "
8891 Cannot build shared library against a static build of wxWidgets !
8892 This error happens because the wxWidgets build which was selected
8893 has been detected as static while you asked to build $PACKAGE_NAME
8894 as shared library and this is not possible.
8895 Use the '--disable-shared' option to build $PACKAGE_NAME
8896 as static library or '--with-wxshared' to use wxWidgets as shared library.
8897 " "$LINENO" 5
8900 if test "$DEBUG" = "auto"; then
8901 DEBUG=$WX_DEBUG
8903 if test "$DEBUG" = "1"; then
8904 BUILD="debug"
8905 elif test "$DEBUG" = ""; then
8906 BUILD="release"
8909 if test "$UNICODE" = "auto"; then
8910 UNICODE=$WX_UNICODE
8912 if test "$SHARED" = "auto"; then
8913 SHARED=$WX_SHARED
8915 if test "$TOOLKIT" = "auto"; then
8916 TOOLKIT=$WX_PORT
8920 # We also need wxBase
8921 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8922 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8923 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8925 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8929 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8930 if test "${WX_PORT}" = base; then :
8931 as_fn_error "
8932 The selected components need a wxWidgets library with GUI,
8933 but your installation is base-only. Please install a GUI
8934 enabled version of wxWidgets and then retry.
8935 " "$LINENO" 5
8941 if test ${SYS:-unknown} = win32; then :
8942 if test -n "$ac_tool_prefix"; then
8943 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8944 set dummy ${ac_tool_prefix}windres; ac_word=$2
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 $as_echo_n "checking for $ac_word... " >&6; }
8947 if test "${ac_cv_prog_RC+set}" = set; then :
8948 $as_echo_n "(cached) " >&6
8949 else
8950 if test -n "$RC"; then
8951 ac_cv_prog_RC="$RC" # Let the user override the test.
8952 else
8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954 for as_dir in $PATH
8956 IFS=$as_save_IFS
8957 test -z "$as_dir" && as_dir=.
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8960 ac_cv_prog_RC="${ac_tool_prefix}windres"
8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 break 2
8964 done
8965 done
8966 IFS=$as_save_IFS
8970 RC=$ac_cv_prog_RC
8971 if test -n "$RC"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8973 $as_echo "$RC" >&6; }
8974 else
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 $as_echo "no" >&6; }
8981 if test -z "$ac_cv_prog_RC"; then
8982 ac_ct_RC=$RC
8983 # Extract the first word of "windres", so it can be a program name with args.
8984 set dummy windres; ac_word=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8988 $as_echo_n "(cached) " >&6
8989 else
8990 if test -n "$ac_ct_RC"; then
8991 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8992 else
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH
8996 IFS=$as_save_IFS
8997 test -z "$as_dir" && as_dir=.
8998 for ac_exec_ext in '' $ac_executable_extensions; do
8999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9000 ac_cv_prog_ac_ct_RC="windres"
9001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 break 2
9004 done
9005 done
9006 IFS=$as_save_IFS
9010 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9011 if test -n "$ac_ct_RC"; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9013 $as_echo "$ac_ct_RC" >&6; }
9014 else
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9019 if test "x$ac_ct_RC" = x; then
9020 RC=":"
9021 else
9022 case $cross_compiling:$ac_tool_warned in
9023 yes:)
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9026 ac_tool_warned=yes ;;
9027 esac
9028 RC=$ac_ct_RC
9030 else
9031 RC="$ac_cv_prog_RC"
9037 # Check for libupnp
9038 # Check whether --enable-upnp was given.
9039 if test "${enable_upnp+set}" = set; then :
9040 enableval=$enable_upnp;
9044 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9046 else
9047 enable_upnp=no
9051 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9052 if test -n "$ac_tool_prefix"; then
9053 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9054 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 case $PKG_CONFIG in
9061 [\\/]* | ?:[\\/]*)
9062 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074 break 2
9076 done
9077 done
9078 IFS=$as_save_IFS
9081 esac
9083 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9084 if test -n "$PKG_CONFIG"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9086 $as_echo "$PKG_CONFIG" >&6; }
9087 else
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9094 if test -z "$ac_cv_path_PKG_CONFIG"; then
9095 ac_pt_PKG_CONFIG=$PKG_CONFIG
9096 # Extract the first word of "pkg-config", so it can be a program name with args.
9097 set dummy pkg-config; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 case $ac_pt_PKG_CONFIG in
9104 [\\/]* | ?:[\\/]*)
9105 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109 for as_dir in $PATH
9111 IFS=$as_save_IFS
9112 test -z "$as_dir" && as_dir=.
9113 for ac_exec_ext in '' $ac_executable_extensions; do
9114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9115 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9117 break 2
9119 done
9120 done
9121 IFS=$as_save_IFS
9124 esac
9126 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9127 if test -n "$ac_pt_PKG_CONFIG"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9129 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9130 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9135 if test "x$ac_pt_PKG_CONFIG" = x; then
9136 PKG_CONFIG=""
9137 else
9138 case $cross_compiling:$ac_tool_warned in
9139 yes:)
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9142 ac_tool_warned=yes ;;
9143 esac
9144 PKG_CONFIG=$ac_pt_PKG_CONFIG
9146 else
9147 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9151 if test -n "$PKG_CONFIG"; then
9152 _pkg_min_version=0.9.0
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9154 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9155 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9157 $as_echo "yes" >&6; }
9158 else
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9161 PKG_CONFIG=""
9165 if test ${enable_upnp:-yes} = yes; then :
9169 # Check whether --with-libupnp-prefix was given.
9170 if test "${with_libupnp_prefix+set}" = set; then :
9171 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9175 if test $cross_compiling = no; then :
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9178 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9179 if test -n "$PKG_CONFIG"; then :
9181 if $PKG_CONFIG libupnp --exists; then :
9183 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
9184 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9186 result=yes
9187 resultstr=" (version $LIBUPNP_VERSION)"
9188 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
9189 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
9190 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
9191 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
9192 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
9194 else
9196 result=no
9197 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9201 else
9203 result=no
9204 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9208 else
9210 result=no
9211 resultstr=" (pkg-config not found)"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9215 $as_echo "$result$resultstr" >&6; }
9216 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9218 else
9220 result=no
9221 libupnp_error="cross compiling"
9225 if test ${result:-no} = yes; then :
9226 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9227 else
9228 enable_upnp=disabled
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9230 UPnP code has been disabled because ${libupnp_error}." >&5
9231 $as_echo "$as_me: WARNING:
9232 UPnP code has been disabled because ${libupnp_error}." >&2;}
9233 _mule_warning_6=yes
9234 _mule_has_warnings=yes
9243 # Check for Crypto++
9244 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9247 # Check whether --with-crypto-prefix was given.
9248 if test "${with_crypto_prefix+set}" = set; then :
9249 withval=$with_crypto_prefix;
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
9254 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
9256 cryptopp_file_with_version="cryptlib.h"
9258 CRYPTOPP_STYLE="unknown"
9259 CRYPTOPP_LIB_NAME="unknown"
9260 cryptopp_includedir="unknown"
9261 CRYPTOPP_INCLUDE_PREFIX="unknown"
9262 cryptopp_libdir="unknown"
9264 if test -n "$with_crypto_prefix"; then :
9266 CRYPTOPP_PREFIX="$with_crypto_prefix"
9267 # Find the Cryptopp header in the user-provided location
9268 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
9270 CRYPTOPP_STYLE="sources"
9271 CRYPTOPP_LIB_NAME="cryptopp"
9272 cryptopp_includedir=
9273 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9274 cryptopp_libdir=
9276 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
9278 CRYPTOPP_STYLE="installed"
9279 CRYPTOPP_LIB_NAME="cryptopp"
9280 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9281 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9282 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9284 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
9286 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
9287 CRYPTOPP_STYLE="gentoo_debian"
9288 CRYPTOPP_LIB_NAME="crypto++"
9289 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9290 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9291 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9296 else
9298 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
9299 # Find the Cryptopp header in system locations
9300 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
9302 CRYPTOPP_STYLE="sources"
9303 CRYPTOPP_LIB_NAME="cryptopp"
9304 cryptopp_includedir=
9305 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9306 cryptopp_libdir=
9307 break
9309 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
9311 CRYPTOPP_STYLE="installed"
9312 CRYPTOPP_LIB_NAME="cryptopp"
9313 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9314 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9315 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9316 break
9318 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
9320 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
9321 CRYPTOPP_STYLE="gentoo_debian"
9322 CRYPTOPP_LIB_NAME="crypto++"
9323 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
9324 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9325 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
9326 break
9330 done
9334 if test $CRYPTOPP_STYLE = "unknown"; then :
9335 result=no; resultstr=""
9336 else
9338 # Find out the crypto++ version and check against the minimum required
9339 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
9340 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9341 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9342 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9344 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9346 result=yes
9347 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
9348 if test -n "$cryptopp_includedir"; then :
9349 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
9350 else
9351 CRYPTOPP_CPPFLAGS=
9353 if test -n "$cryptopp_libdir"; then :
9355 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
9356 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9358 else
9360 CRYPTOPP_LDFLAGS=
9361 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9365 cat >>confdefs.h <<_ACEOF
9366 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9367 _ACEOF
9370 else
9372 result=no
9373 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9380 $as_echo "$result$resultstr" >&6; }
9382 if test ${result:-no} = yes; then :
9384 # Check for CryptoPP >= 5.5
9385 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
9386 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
9389 else
9391 as_fn_error "
9392 Could not find crypto++ header file \"$cryptopp_file_with_version\".
9393 Please try again with --with-crypto-prefix=/my_crypto_prefix
9394 (replace /my_crypto_prefix with a valid path to your crypto++
9395 installation directory)." "$LINENO" 5
9404 # Check whether --enable-debug was given.
9405 if test "${enable_debug+set}" = set; then :
9406 enableval=$enable_debug;
9410 # Check whether --enable-profile was given.
9411 if test "${enable_profile+set}" = set; then :
9412 enableval=$enable_profile;
9416 # Check whether --enable-optimize was given.
9417 if test "${enable_optimize+set}" = set; then :
9418 enableval=$enable_optimize;
9423 if test ${enable_debug:-yes} = yes; then :
9425 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9427 MULECFLAGS="$MULECFLAGS -g"
9428 MULECXXFLAGS="$MULECXXFLAGS -g"
9430 if test ${GCC:-no} = yes; then :
9432 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9433 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9436 if test ${SYS:-unknown} = win32; then :
9437 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9440 else
9442 if test ${GCC:-no} = yes; then :
9444 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9445 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9451 if test ${enable_profile:-no} = yes; then :
9454 MULECFLAGS="$MULECFLAGS -pg"
9455 MULECXXFLAGS="$MULECXXFLAGS -pg"
9457 MULELDFLAGS="$MULELDFLAGS -pg"
9461 if test ${enable_optimize:-no} = yes; then :
9463 MULECFLAGS="$MULECFLAGS -O2"
9464 MULECXXFLAGS="$MULECXXFLAGS -O2"
9468 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9472 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_ed2k:-yes} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9477 if test ${GCC:-no} = yes; then :
9479 mule_backup_CXXFLAGS="$CXXFLAGS"
9480 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9483 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9489 main ()
9492 int a;
9493 short *b = (short*)&a;
9494 short c = *b;
9496 return c;
9499 return 0;
9502 _ACEOF
9503 if ac_fn_cxx_try_compile "$LINENO"; then :
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9506 $as_echo "no" >&6; }
9508 else
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9511 $as_echo "yes" >&6; }
9512 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9518 CXXFLAGS="$mule_backup_CXXFLAGS"
9522 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9524 mule_backup_CPPFLAGS="$CPPFLAGS"
9525 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9528 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9533 #include <wx/wx.h>
9534 #include <wx/filefn.h>
9535 #ifndef wxHAS_LARGE_FILES
9536 #error No LargeFile support!
9537 #endif
9540 _ACEOF
9541 if ac_fn_cxx_try_cpp "$LINENO"; then :
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9544 $as_echo "yes" >&6; }
9546 else
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9549 $as_echo "no" >&6; }
9550 as_fn_error "
9551 Support for large files in wxWidgets is required by aMule.
9552 To continue you must recompile wxWidgets with support for
9553 large files enabled." "$LINENO" 5
9556 rm -f conftest.err conftest.$ac_ext
9558 CPPFLAGS="$mule_backup_CPPFLAGS"
9562 # Check if the compiler is broken, wrt. exceptions.
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9565 $as_echo_n "checking for exception-handling... " >&6; }
9566 if test "$cross_compiling" = yes; then :
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9569 $as_echo "undeterminable" >&6; }
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9571 Cross-compilation detected, so exception handling cannot be tested.
9572 Note that broken exception handling in your compiler may lead to
9573 unexpected crashes." >&5
9574 $as_echo "$as_me: WARNING:
9575 Cross-compilation detected, so exception handling cannot be tested.
9576 Note that broken exception handling in your compiler may lead to
9577 unexpected crashes." >&2;}
9578 _mule_warning_7=yes
9579 _mule_has_warnings=yes
9582 else
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9588 main ()
9591 try {
9592 throw 1;
9593 } catch (int) {
9594 return 0;
9596 return 1;
9599 return 0;
9602 _ACEOF
9603 if ac_fn_cxx_try_run "$LINENO"; then :
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9606 $as_echo "yes" >&6; }
9608 else
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611 $as_echo "no" >&6; }
9612 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
9615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9616 conftest.$ac_objext conftest.beam conftest.$ac_ext
9622 for ac_header in typeinfo
9623 do :
9624 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9625 if test "x$ac_cv_header_typeinfo" = x""yes; then :
9626 cat >>confdefs.h <<_ACEOF
9627 #define HAVE_TYPEINFO 1
9628 _ACEOF
9632 done
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9635 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9640 #ifdef HAVE_TYPEINFO
9641 # include <typeinfo>
9642 #endif
9643 #include <cxxabi.h>
9646 main ()
9649 int status;
9650 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9651 std::type_info *ti = abi::__cxa_current_exception_type();
9654 return 0;
9657 _ACEOF
9658 if ac_fn_cxx_try_link "$LINENO"; then :
9661 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9664 $as_echo "yes" >&6; }
9666 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9672 rm -f core conftest.err conftest.$ac_objext \
9673 conftest$ac_exeext conftest.$ac_ext
9676 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
9679 # Check whether --with-boost was given.
9680 if test "${with_boost+set}" = set; then :
9681 withval=$with_boost; with_boost=${withval:-yes}
9682 else
9683 with_boost=no
9687 if test ${with_boost:-no} != no; then :
9689 echo "$as_me: this is boost.m4 serial 16" >&5
9690 boost_save_IFS=$IFS
9691 boost_version_req=1.47
9692 IFS=.
9693 set x $boost_version_req 0 0 0
9694 IFS=$boost_save_IFS
9695 shift
9696 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9697 boost_version_req_string=$1.$2.$3
9698 # If BOOST_ROOT is set and the user has not provided a value to
9699 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9700 if test x"$BOOST_ROOT" != x; then
9701 if test x"$with_boost" = x; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9703 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9704 with_boost=$BOOST_ROOT
9705 else
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9707 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9710 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9711 boost_save_CPPFLAGS=$CPPFLAGS
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9713 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9714 if test "${boost_cv_inc_path+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 boost_cv_inc_path=no
9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9720 #include <boost/version.hpp>
9721 #if !defined BOOST_VERSION
9722 # error BOOST_VERSION is not defined
9723 #elif BOOST_VERSION < $boost_version_req
9724 # error Boost headers version < $boost_version_req
9725 #endif
9728 main ()
9732 return 0;
9734 _ACEOF
9735 # If the user provided a value to --with-boost, use it and only it.
9736 case $with_boost in #(
9737 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9738 /usr/include C:/Boost/include;; #(
9739 *) set x "$with_boost/include" "$with_boost";;
9740 esac
9741 shift
9742 for boost_dir
9744 # Without --layout=system, Boost (or at least some versions) installs
9745 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9746 # find headers in such directories.
9748 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9749 # order followed by ${boost_dir}. The final '.' is a sentinel for
9750 # searching $boost_dir" itself. Entries are whitespace separated.
9752 # I didn't indent this loop on purpose (to avoid over-indented code)
9753 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
9754 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
9755 && echo .`
9756 for boost_inc in $boost_layout_system_search_list
9758 if test x"$boost_inc" != x.; then
9759 boost_inc="$boost_dir/$boost_inc"
9760 else
9761 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9763 if test x"$boost_inc" != x; then
9764 # We are going to check whether the version of Boost installed
9765 # in $boost_inc is usable by running a compilation that
9766 # #includes it. But if we pass a -I/some/path in which Boost
9767 # is not installed, the compiler will just skip this -I and
9768 # use other locations (either from CPPFLAGS, or from its list
9769 # of system include directories). As a result we would use
9770 # header installed on the machine instead of the /some/path
9771 # specified by the user. So in that precise case (trying
9772 # $boost_inc), make sure the version.hpp exists.
9774 # Use test -e as there can be symlinks.
9775 test -e "$boost_inc/boost/version.hpp" || continue
9776 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9778 if ac_fn_cxx_try_compile "$LINENO"; then :
9779 boost_cv_inc_path=yes
9780 else
9781 boost_cv_version=no
9783 rm -f core conftest.err conftest.$ac_objext
9784 if test x"$boost_cv_inc_path" = xyes; then
9785 if test x"$boost_inc" != x; then
9786 boost_cv_inc_path=$boost_inc
9788 break 2
9790 done
9791 done
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9795 $as_echo "$boost_cv_inc_path" >&6; }
9796 case $boost_cv_inc_path in #(
9798 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9800 $as_echo "$as_me: $boost_errmsg" >&6;}
9801 with_boost=disabled
9802 ;;#(
9803 yes)
9804 BOOST_CPPFLAGS=
9805 ;;#(
9807 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9809 esac
9810 if test x"$boost_cv_inc_path" != xno; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9812 $as_echo_n "checking for Boost's header version... " >&6; }
9813 if test "${boost_cv_lib_version+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9818 #include <boost/version.hpp>
9819 boost-lib-version = BOOST_LIB_VERSION
9820 _ACEOF
9821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9822 tr -d '\r' |
9823 $SED -n -e "/^boost-lib-version = /{s///;s/\"//g;p;q;}" >conftest.i 2>&1; then :
9824 boost_cv_lib_version=`cat conftest.i`
9826 rm -rf conftest*
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9830 $as_echo "$boost_cv_lib_version" >&6; }
9831 # e.g. "134" for 1_34_1 or "135" for 1_35
9832 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
9833 case $boost_major_version in #(
9834 '' | *[!0-9]*)
9835 as_fn_error "invalid value: boost_major_version=$boost_major_version" "$LINENO" 5
9837 esac
9839 CPPFLAGS=$boost_save_CPPFLAGS
9841 if test ${with_boost:-no} != disabled; then :
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9844 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9845 if test "${boost_cv_lib_tag+set}" = set; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 boost_cv_lib_tag=unknown
9849 if test x$boost_cv_inc_path != xno; then
9850 # The following tests are mostly inspired by boost/config/auto_link.hpp
9851 # The list is sorted to most recent/common to oldest compiler (in order
9852 # to increase the likelihood of finding the right compiler with the
9853 # least number of compilation attempt).
9854 # Beware that some tests are sensible to the order (for instance, we must
9855 # look for MinGW before looking for GCC3).
9856 # I used one compilation test per compiler with a #error to recognize
9857 # each compiler so that it works even when cross-compiling (let me know
9858 # if you know a better approach).
9859 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
9860 # como, edg, kcc, bck, mp, sw, tru, xlc
9861 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
9862 # the same defines as GCC's).
9863 for i in \
9864 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
9865 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
9866 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
9867 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
9868 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
9869 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
9870 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
9871 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
9872 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
9873 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
9874 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
9875 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
9876 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
9877 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
9878 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
9879 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
9880 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
9881 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
9882 "defined __BORLANDC__ @ bcb" \
9883 "defined __ICC && (defined __unix || defined ) @ il" \
9884 "defined __ICL @ iw" \
9885 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
9886 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
9887 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
9888 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
9889 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
9890 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
9892 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
9893 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9897 #if $boost_tag_test
9898 /* OK */
9899 #else
9900 # error $boost_tag_test
9901 #endif
9904 main ()
9908 return 0;
9910 _ACEOF
9911 if ac_fn_cxx_try_compile "$LINENO"; then :
9912 boost_cv_lib_tag=$boost_tag; break
9914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9915 done
9916 case $boost_cv_lib_tag in #(
9917 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
9918 # to "gcc41" for instance.
9919 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
9920 gcc*)
9921 boost_tag_x=
9922 case $host_os in #(
9923 darwin*)
9924 if test $boost_major_version -ge 136; then
9925 # The `x' added in r46793 of Boost.
9926 boost_tag_x=x
9927 fi;;
9928 esac
9929 # We can specify multiple tags in this variable because it's used by
9930 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
9931 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
9932 ;; #(
9933 unknown)
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
9935 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
9936 boost_cv_lib_tag=
9938 esac
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
9942 $as_echo "$boost_cv_lib_tag" >&6; }
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
9944 $as_echo_n "checking for Boost sources... " >&6; }
9945 mule_backup_CPPFLAGS="$CPPFLAGS"
9946 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9950 #include <boost/../libs/system/src/error_code.cpp>
9952 main ()
9956 return 0;
9959 _ACEOF
9960 if ac_fn_cxx_try_compile "$LINENO"; then :
9963 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9966 $as_echo "yes" >&6; }
9968 else
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9972 if test x"$boost_cv_inc_path" = xno; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
9974 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
9975 else
9976 if test x"$boost_cv_inc_path" = xno; then
9978 else
9979 boost_save_CPPFLAGS=$CPPFLAGS
9980 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9981 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
9982 if test "x$ac_cv_header_boost_system_error_code_hpp" = x""yes; then :
9984 else
9989 CPPFLAGS=$boost_save_CPPFLAGS
9992 boost_save_CPPFLAGS=$CPPFLAGS
9993 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9994 # Now let's try to find the library. The algorithm is as follows: first look
9995 # for a given library name according to the user's PREFERRED-RT-OPT. For each
9996 # library name, we prefer to use the ones that carry the tag (toolset name).
9997 # Each library is searched through the various standard paths were Boost is
9998 # usually installed. If we can't find the standard variants, we try to
9999 # enforce -mt (for instance on MacOSX, libboost_threads.dylib doesn't exist
10000 # but there's -obviously- libboost_threads-mt.dylib).
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10002 $as_echo_n "checking for the Boost system library... " >&6; }
10003 if test "${boost_cv_lib_system+set}" = set; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 boost_cv_lib_system=no
10007 boost_rtopt=
10008 boost_mt=-mt
10009 boost_save_ac_objext=$ac_objext
10010 # Generate the test file.
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10013 #include <boost/system/error_code.hpp>
10016 main ()
10018 boost::system::error_code e; e.clear();
10020 return 0;
10022 _ACEOF
10023 if ac_fn_cxx_try_compile "$LINENO"; then :
10024 ac_objext=do_not_rm_me_plz
10025 else
10026 as_fn_error "cannot compile a test that uses Boost system" "$LINENO" 5
10028 rm -f core conftest.err conftest.$ac_objext
10029 ac_objext=$boost_save_ac_objext
10030 boost_failed_libs=
10031 # Don't bother to ident the 6 nested for loops, only the 2 innermost ones
10032 # matter.
10033 for boost_tag_ in -$boost_cv_lib_tag ''; do
10034 for boost_ver_ in -$boost_cv_lib_version ''; do
10035 for boost_mt_ in $boost_mt -mt ''; do
10036 for boost_rtopt_ in $boost_rtopt '' -d; do
10037 for boost_lib in \
10038 boost_system$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10039 boost_system$boost_tag_$boost_rtopt_$boost_ver_ \
10040 boost_system$boost_tag_$boost_mt_$boost_ver_ \
10041 boost_system$boost_tag_$boost_ver_
10043 # Avoid testing twice the same lib
10044 case $boost_failed_libs in #(
10045 *@$boost_lib@*) continue;;
10046 esac
10047 # If with_boost is empty, we'll search in /lib first, which is not quite
10048 # right so instead we'll try to a location based on where the headers are.
10049 boost_tmp_lib=$with_boost
10050 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
10051 for boost_ldpath in "$boost_tmp_lib/lib" '' \
10052 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
10053 "$with_boost" C:/Boost/lib /lib*
10055 test -e "$boost_ldpath" || continue
10056 boost_save_LDFLAGS=$LDFLAGS
10057 boost_cv_lib_system_LIBS="-l$boost_lib"
10058 boost_save_LIBS=$LIBS
10059 LIBS="$boost_cv_lib_system_LIBS $LIBS"
10060 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
10061 rm -f conftest$ac_exeext
10062 boost_save_ac_ext=$ac_ext
10063 boost_use_source=:
10064 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10065 # tries to link the existing object file instead of compiling from source.
10066 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10067 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10068 if { { ac_try="$ac_link"
10069 case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072 esac
10073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10074 $as_echo "$ac_try_echo"; } >&5
10075 (eval "$ac_link") 2>conftest.err
10076 ac_status=$?
10077 if test -s conftest.err; then
10078 grep -v '^ *+' conftest.err >conftest.er1
10079 cat conftest.er1 >&5
10080 mv -f conftest.er1 conftest.err
10082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10083 test $ac_status = 0; } && {
10084 test -z "$ac_cxx_werror_flag" ||
10085 test ! -s conftest.err
10086 } && test -s conftest$ac_exeext && {
10087 test "$cross_compiling" = yes ||
10088 $as_executable_p conftest$ac_exeext
10089 }; then :
10090 boost_cv_lib_system=yes
10091 else
10092 if $boost_use_source; then
10093 $as_echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10097 boost_cv_lib_system=no
10099 ac_objext=$boost_save_ac_objext
10100 ac_ext=$boost_save_ac_ext
10101 rm -f core conftest.err conftest_ipa8_conftest.oo \
10102 conftest$ac_exeext
10103 ac_objext=$boost_save_ac_objext
10104 LDFLAGS=$boost_save_LDFLAGS
10105 LIBS=$boost_save_LIBS
10106 if test x"$boost_cv_lib_system" = xyes; then
10107 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath -Wl,-R$boost_ldpath"
10108 boost_cv_lib_system_LDPATH="$boost_ldpath"
10109 break 6
10110 else
10111 boost_failed_libs="$boost_failed_libs@$boost_lib@"
10112 boost_cv_lib_system_LDFLAGS=
10113 boost_cv_lib_system_LDPATH=
10114 boost_cv_lib_system_LIBS=
10116 done
10117 done
10118 done
10119 done
10120 done
10121 done
10122 rm -f conftest.$ac_objext
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10126 $as_echo "$boost_cv_lib_system" >&6; }
10127 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
10128 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
10129 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
10130 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
10131 CPPFLAGS=$boost_save_CPPFLAGS
10136 if test ${boost_cv_lib_system:-no} != yes; then :
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10139 Boost support has been disabled because Boost.System not found" >&5
10140 $as_echo "$as_me: WARNING:
10141 Boost support has been disabled because Boost.System not found" >&2;}
10142 _mule_warning_8=yes
10143 _mule_has_warnings=yes
10145 with_boost=disabled
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 CPPFLAGS="$mule_backup_CPPFLAGS"
10152 if test x"$boost_cv_inc_path" = xno; then
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10155 Boost support has been disabled because Boost.Asio not found" >&5
10156 $as_echo "$as_me: WARNING:
10157 Boost support has been disabled because Boost.Asio not found" >&2;}
10158 _mule_warning_9=yes
10159 _mule_has_warnings=yes
10161 with_boost=disabled
10163 else
10164 boost_save_CPPFLAGS=$CPPFLAGS
10165 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10166 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10167 if test "x$ac_cv_header_boost_asio_hpp" = x""yes; then :
10169 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10171 else
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10174 Boost support has been disabled because Boost.Asio not found" >&5
10175 $as_echo "$as_me: WARNING:
10176 Boost support has been disabled because Boost.Asio not found" >&2;}
10177 _mule_warning_10=yes
10178 _mule_has_warnings=yes
10180 with_boost=disabled
10185 CPPFLAGS=$boost_save_CPPFLAGS
10189 else
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10191 Boost support has been disabled because of insufficient Boost version." >&5
10192 $as_echo "$as_me: WARNING:
10193 Boost support has been disabled because of insufficient Boost version." >&2;}
10194 _mule_warning_11=yes
10195 _mule_has_warnings=yes
10205 # Ok, we have all needed libs, now checking for other stuff
10206 if test "$LEX" = "flex"; then :
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
10209 $as_echo_n "checking for extended flex capabilities... " >&6; }
10211 extended_flex=`flex --help | grep header-file`
10212 if test -n "$extended_flex"; then :
10213 HAVE_FLEX_EXTENDED=yes
10214 else
10215 HAVE_FLEX_EXTENDED=no
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
10218 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
10220 if test $HAVE_FLEX_EXTENDED = no; then :
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
10222 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
10225 else
10226 HAVE_FLEX_EXTENDED=no
10230 # Checks for header files.
10231 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10232 # for constant arguments. Useless!
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10234 $as_echo_n "checking for working alloca.h... " >&6; }
10235 if test "${ac_cv_working_alloca_h+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 #include <alloca.h>
10242 main ()
10244 char *p = (char *) alloca (2 * sizeof (int));
10245 if (p) return 0;
10247 return 0;
10249 _ACEOF
10250 if ac_fn_cxx_try_link "$LINENO"; then :
10251 ac_cv_working_alloca_h=yes
10252 else
10253 ac_cv_working_alloca_h=no
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10259 $as_echo "$ac_cv_working_alloca_h" >&6; }
10260 if test $ac_cv_working_alloca_h = yes; then
10262 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10267 $as_echo_n "checking for alloca... " >&6; }
10268 if test "${ac_cv_func_alloca_works+set}" = set; then :
10269 $as_echo_n "(cached) " >&6
10270 else
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10273 #ifdef __GNUC__
10274 # define alloca __builtin_alloca
10275 #else
10276 # ifdef _MSC_VER
10277 # include <malloc.h>
10278 # define alloca _alloca
10279 # else
10280 # ifdef HAVE_ALLOCA_H
10281 # include <alloca.h>
10282 # else
10283 # ifdef _AIX
10284 #pragma alloca
10285 # else
10286 # ifndef alloca /* predefined by HP cc +Olibcalls */
10287 char *alloca ();
10288 # endif
10289 # endif
10290 # endif
10291 # endif
10292 #endif
10295 main ()
10297 char *p = (char *) alloca (1);
10298 if (p) return 0;
10300 return 0;
10302 _ACEOF
10303 if ac_fn_cxx_try_link "$LINENO"; then :
10304 ac_cv_func_alloca_works=yes
10305 else
10306 ac_cv_func_alloca_works=no
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10312 $as_echo "$ac_cv_func_alloca_works" >&6; }
10314 if test $ac_cv_func_alloca_works = yes; then
10316 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10318 else
10319 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10320 # that cause trouble. Some versions do not even contain alloca or
10321 # contain a buggy version. If you still want to use their alloca,
10322 # use ar to extract alloca.o from them instead of compiling alloca.c.
10324 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10326 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10330 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10331 if test "${ac_cv_os_cray+set}" = set; then :
10332 $as_echo_n "(cached) " >&6
10333 else
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10336 #if defined CRAY && ! defined CRAY2
10337 webecray
10338 #else
10339 wenotbecray
10340 #endif
10342 _ACEOF
10343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10344 $EGREP "webecray" >/dev/null 2>&1; then :
10345 ac_cv_os_cray=yes
10346 else
10347 ac_cv_os_cray=no
10349 rm -f conftest*
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10353 $as_echo "$ac_cv_os_cray" >&6; }
10354 if test $ac_cv_os_cray = yes; then
10355 for ac_func in _getb67 GETB67 getb67; do
10356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10357 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10358 eval as_val=\$$as_ac_var
10359 if test "x$as_val" = x""yes; then :
10361 cat >>confdefs.h <<_ACEOF
10362 #define CRAY_STACKSEG_END $ac_func
10363 _ACEOF
10365 break
10368 done
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10372 $as_echo_n "checking stack direction for C alloca... " >&6; }
10373 if test "${ac_cv_c_stack_direction+set}" = set; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 if test "$cross_compiling" = yes; then :
10377 ac_cv_c_stack_direction=0
10378 else
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10381 $ac_includes_default
10383 find_stack_direction ()
10385 static char *addr = 0;
10386 auto char dummy;
10387 if (addr == 0)
10389 addr = &dummy;
10390 return find_stack_direction ();
10392 else
10393 return (&dummy > addr) ? 1 : -1;
10397 main ()
10399 return find_stack_direction () < 0;
10401 _ACEOF
10402 if ac_fn_cxx_try_run "$LINENO"; then :
10403 ac_cv_c_stack_direction=1
10404 else
10405 ac_cv_c_stack_direction=-1
10407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10408 conftest.$ac_objext conftest.beam conftest.$ac_ext
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10413 $as_echo "$ac_cv_c_stack_direction" >&6; }
10414 cat >>confdefs.h <<_ACEOF
10415 #define STACK_DIRECTION $ac_cv_c_stack_direction
10416 _ACEOF
10421 ac_header_dirent=no
10422 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10423 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10425 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 #include <sys/types.h>
10432 #include <$ac_hdr>
10435 main ()
10437 if ((DIR *) 0)
10438 return 0;
10440 return 0;
10442 _ACEOF
10443 if ac_fn_cxx_try_compile "$LINENO"; then :
10444 eval "$as_ac_Header=yes"
10445 else
10446 eval "$as_ac_Header=no"
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 eval ac_res=\$$as_ac_Header
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10452 $as_echo "$ac_res" >&6; }
10453 eval as_val=\$$as_ac_Header
10454 if test "x$as_val" = x""yes; then :
10455 cat >>confdefs.h <<_ACEOF
10456 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10457 _ACEOF
10459 ac_header_dirent=$ac_hdr; break
10462 done
10463 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10464 if test $ac_header_dirent = dirent.h; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10466 $as_echo_n "checking for library containing opendir... " >&6; }
10467 if test "${ac_cv_search_opendir+set}" = set; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 ac_func_search_save_LIBS=$LIBS
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10474 /* Override any GCC internal prototype to avoid an error.
10475 Use char because int might match the return type of a GCC
10476 builtin and then its argument prototype would still apply. */
10477 #ifdef __cplusplus
10478 extern "C"
10479 #endif
10480 char opendir ();
10482 main ()
10484 return opendir ();
10486 return 0;
10488 _ACEOF
10489 for ac_lib in '' dir; do
10490 if test -z "$ac_lib"; then
10491 ac_res="none required"
10492 else
10493 ac_res=-l$ac_lib
10494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10496 if ac_fn_cxx_try_link "$LINENO"; then :
10497 ac_cv_search_opendir=$ac_res
10499 rm -f core conftest.err conftest.$ac_objext \
10500 conftest$ac_exeext
10501 if test "${ac_cv_search_opendir+set}" = set; then :
10502 break
10504 done
10505 if test "${ac_cv_search_opendir+set}" = set; then :
10507 else
10508 ac_cv_search_opendir=no
10510 rm conftest.$ac_ext
10511 LIBS=$ac_func_search_save_LIBS
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10514 $as_echo "$ac_cv_search_opendir" >&6; }
10515 ac_res=$ac_cv_search_opendir
10516 if test "$ac_res" != no; then :
10517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10521 else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10523 $as_echo_n "checking for library containing opendir... " >&6; }
10524 if test "${ac_cv_search_opendir+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
10526 else
10527 ac_func_search_save_LIBS=$LIBS
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10531 /* Override any GCC internal prototype to avoid an error.
10532 Use char because int might match the return type of a GCC
10533 builtin and then its argument prototype would still apply. */
10534 #ifdef __cplusplus
10535 extern "C"
10536 #endif
10537 char opendir ();
10539 main ()
10541 return opendir ();
10543 return 0;
10545 _ACEOF
10546 for ac_lib in '' x; do
10547 if test -z "$ac_lib"; then
10548 ac_res="none required"
10549 else
10550 ac_res=-l$ac_lib
10551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10553 if ac_fn_cxx_try_link "$LINENO"; then :
10554 ac_cv_search_opendir=$ac_res
10556 rm -f core conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext
10558 if test "${ac_cv_search_opendir+set}" = set; then :
10559 break
10561 done
10562 if test "${ac_cv_search_opendir+set}" = set; then :
10564 else
10565 ac_cv_search_opendir=no
10567 rm conftest.$ac_ext
10568 LIBS=$ac_func_search_save_LIBS
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10571 $as_echo "$ac_cv_search_opendir" >&6; }
10572 ac_res=$ac_cv_search_opendir
10573 if test "$ac_res" != no; then :
10574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10581 $as_echo_n "checking for ANSI C header files... " >&6; }
10582 if test "${ac_cv_header_stdc+set}" = set; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10587 #include <stdlib.h>
10588 #include <stdarg.h>
10589 #include <string.h>
10590 #include <float.h>
10593 main ()
10597 return 0;
10599 _ACEOF
10600 if ac_fn_cxx_try_compile "$LINENO"; then :
10601 ac_cv_header_stdc=yes
10602 else
10603 ac_cv_header_stdc=no
10605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 if test $ac_cv_header_stdc = yes; then
10608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 #include <string.h>
10613 _ACEOF
10614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10615 $EGREP "memchr" >/dev/null 2>&1; then :
10617 else
10618 ac_cv_header_stdc=no
10620 rm -f conftest*
10624 if test $ac_cv_header_stdc = yes; then
10625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include <stdlib.h>
10630 _ACEOF
10631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10632 $EGREP "free" >/dev/null 2>&1; then :
10634 else
10635 ac_cv_header_stdc=no
10637 rm -f conftest*
10641 if test $ac_cv_header_stdc = yes; then
10642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10643 if test "$cross_compiling" = yes; then :
10645 else
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 #include <ctype.h>
10649 #include <stdlib.h>
10650 #if ((' ' & 0x0FF) == 0x020)
10651 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10652 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10653 #else
10654 # define ISLOWER(c) \
10655 (('a' <= (c) && (c) <= 'i') \
10656 || ('j' <= (c) && (c) <= 'r') \
10657 || ('s' <= (c) && (c) <= 'z'))
10658 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10659 #endif
10661 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10663 main ()
10665 int i;
10666 for (i = 0; i < 256; i++)
10667 if (XOR (islower (i), ISLOWER (i))
10668 || toupper (i) != TOUPPER (i))
10669 return 2;
10670 return 0;
10672 _ACEOF
10673 if ac_fn_cxx_try_run "$LINENO"; then :
10675 else
10676 ac_cv_header_stdc=no
10678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10679 conftest.$ac_objext conftest.beam conftest.$ac_ext
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10685 $as_echo "$ac_cv_header_stdc" >&6; }
10686 if test $ac_cv_header_stdc = yes; then
10688 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10692 for ac_header in argz.h arpa/inet.h errno.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h signal.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h
10693 do :
10694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10695 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10696 eval as_val=\$$as_ac_Header
10697 if test "x$as_val" = x""yes; then :
10698 cat >>confdefs.h <<_ACEOF
10699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10700 _ACEOF
10704 done
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
10707 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
10708 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 #include <sys/types.h>
10714 #include <sys/wait.h>
10715 #ifndef WEXITSTATUS
10716 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10717 #endif
10718 #ifndef WIFEXITED
10719 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10720 #endif
10723 main ()
10725 int s;
10726 wait (&s);
10727 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10729 return 0;
10731 _ACEOF
10732 if ac_fn_cxx_try_compile "$LINENO"; then :
10733 ac_cv_header_sys_wait_h=yes
10734 else
10735 ac_cv_header_sys_wait_h=no
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
10740 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
10741 if test $ac_cv_header_sys_wait_h = yes; then
10743 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
10749 # Checks for typedefs, structures, and compiler characteristics.
10750 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10751 if test "x$ac_cv_type_mode_t" = x""yes; then :
10753 else
10755 cat >>confdefs.h <<_ACEOF
10756 #define mode_t int
10757 _ACEOF
10761 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10762 if test "x$ac_cv_type_off_t" = x""yes; then :
10764 else
10766 cat >>confdefs.h <<_ACEOF
10767 #define off_t long int
10768 _ACEOF
10772 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10773 if test "x$ac_cv_type_size_t" = x""yes; then :
10775 else
10777 cat >>confdefs.h <<_ACEOF
10778 #define size_t unsigned int
10779 _ACEOF
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10784 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10785 if test "${ac_cv_header_time+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
10787 else
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10790 #include <sys/types.h>
10791 #include <sys/time.h>
10792 #include <time.h>
10795 main ()
10797 if ((struct tm *) 0)
10798 return 0;
10800 return 0;
10802 _ACEOF
10803 if ac_fn_cxx_try_compile "$LINENO"; then :
10804 ac_cv_header_time=yes
10805 else
10806 ac_cv_header_time=no
10808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10811 $as_echo "$ac_cv_header_time" >&6; }
10812 if test $ac_cv_header_time = yes; then
10814 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10819 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10820 if test "${ac_cv_struct_tm+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10825 #include <sys/types.h>
10826 #include <time.h>
10829 main ()
10831 struct tm tm;
10832 int *p = &tm.tm_sec;
10833 return !p;
10835 return 0;
10837 _ACEOF
10838 if ac_fn_cxx_try_compile "$LINENO"; then :
10839 ac_cv_struct_tm=time.h
10840 else
10841 ac_cv_struct_tm=sys/time.h
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10846 $as_echo "$ac_cv_struct_tm" >&6; }
10847 if test $ac_cv_struct_tm = sys/time.h; then
10849 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10854 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10855 if test "${ac_cv_type_uid_t+set}" = set; then :
10856 $as_echo_n "(cached) " >&6
10857 else
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #include <sys/types.h>
10862 _ACEOF
10863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10864 $EGREP "uid_t" >/dev/null 2>&1; then :
10865 ac_cv_type_uid_t=yes
10866 else
10867 ac_cv_type_uid_t=no
10869 rm -f conftest*
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10873 $as_echo "$ac_cv_type_uid_t" >&6; }
10874 if test $ac_cv_type_uid_t = no; then
10876 $as_echo "#define uid_t int" >>confdefs.h
10879 $as_echo "#define gid_t int" >>confdefs.h
10883 ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10884 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
10886 cat >>confdefs.h <<_ACEOF
10887 #define HAVE_PTRDIFF_T 1
10888 _ACEOF
10895 # Checks for library functions.
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
10897 $as_echo_n "checking whether closedir returns void... " >&6; }
10898 if test "${ac_cv_func_closedir_void+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 if test "$cross_compiling" = yes; then :
10902 ac_cv_func_closedir_void=yes
10903 else
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 $ac_includes_default
10907 #include <$ac_header_dirent>
10908 #ifndef __cplusplus
10909 int closedir ();
10910 #endif
10913 main ()
10915 return closedir (opendir (".")) != 0;
10917 return 0;
10919 _ACEOF
10920 if ac_fn_cxx_try_run "$LINENO"; then :
10921 ac_cv_func_closedir_void=no
10922 else
10923 ac_cv_func_closedir_void=yes
10925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10926 conftest.$ac_objext conftest.beam conftest.$ac_ext
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
10931 $as_echo "$ac_cv_func_closedir_void" >&6; }
10932 if test $ac_cv_func_closedir_void = yes; then
10934 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10938 if test $ac_cv_c_compiler_gnu = yes; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10940 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10941 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 ac_pattern="Autoconf.*'x'"
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10947 #include <sgtty.h>
10948 Autoconf TIOCGETP
10949 _ACEOF
10950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10951 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10952 ac_cv_prog_gcc_traditional=yes
10953 else
10954 ac_cv_prog_gcc_traditional=no
10956 rm -f conftest*
10959 if test $ac_cv_prog_gcc_traditional = no; then
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10962 #include <termio.h>
10963 Autoconf TCGETA
10964 _ACEOF
10965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10966 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10967 ac_cv_prog_gcc_traditional=yes
10969 rm -f conftest*
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10974 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10975 if test $ac_cv_prog_gcc_traditional = yes; then
10976 CC="$CC -traditional"
10980 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10981 if test "x$ac_cv_type_pid_t" = x""yes; then :
10983 else
10985 cat >>confdefs.h <<_ACEOF
10986 #define pid_t int
10987 _ACEOF
10991 for ac_header in vfork.h
10992 do :
10993 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10994 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10995 cat >>confdefs.h <<_ACEOF
10996 #define HAVE_VFORK_H 1
10997 _ACEOF
11001 done
11003 for ac_func in fork vfork
11004 do :
11005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11006 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11007 eval as_val=\$$as_ac_var
11008 if test "x$as_val" = x""yes; then :
11009 cat >>confdefs.h <<_ACEOF
11010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11011 _ACEOF
11014 done
11016 if test "x$ac_cv_func_fork" = xyes; then
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11018 $as_echo_n "checking for working fork... " >&6; }
11019 if test "${ac_cv_func_fork_works+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 if test "$cross_compiling" = yes; then :
11023 ac_cv_func_fork_works=cross
11024 else
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 $ac_includes_default
11029 main ()
11032 /* By Ruediger Kuhlmann. */
11033 return fork () < 0;
11036 return 0;
11038 _ACEOF
11039 if ac_fn_cxx_try_run "$LINENO"; then :
11040 ac_cv_func_fork_works=yes
11041 else
11042 ac_cv_func_fork_works=no
11044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11045 conftest.$ac_objext conftest.beam conftest.$ac_ext
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11050 $as_echo "$ac_cv_func_fork_works" >&6; }
11052 else
11053 ac_cv_func_fork_works=$ac_cv_func_fork
11055 if test "x$ac_cv_func_fork_works" = xcross; then
11056 case $host in
11057 *-*-amigaos* | *-*-msdosdjgpp*)
11058 # Override, as these systems have only a dummy fork() stub
11059 ac_cv_func_fork_works=no
11062 ac_cv_func_fork_works=yes
11064 esac
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11066 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11068 ac_cv_func_vfork_works=$ac_cv_func_vfork
11069 if test "x$ac_cv_func_vfork" = xyes; then
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11071 $as_echo_n "checking for working vfork... " >&6; }
11072 if test "${ac_cv_func_vfork_works+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 if test "$cross_compiling" = yes; then :
11076 ac_cv_func_vfork_works=cross
11077 else
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11080 /* Thanks to Paul Eggert for this test. */
11081 $ac_includes_default
11082 #include <sys/wait.h>
11083 #ifdef HAVE_VFORK_H
11084 # include <vfork.h>
11085 #endif
11086 /* On some sparc systems, changes by the child to local and incoming
11087 argument registers are propagated back to the parent. The compiler
11088 is told about this with #include <vfork.h>, but some compilers
11089 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11090 static variable whose address is put into a register that is
11091 clobbered by the vfork. */
11092 static void
11093 #ifdef __cplusplus
11094 sparc_address_test (int arg)
11095 # else
11096 sparc_address_test (arg) int arg;
11097 #endif
11099 static pid_t child;
11100 if (!child) {
11101 child = vfork ();
11102 if (child < 0) {
11103 perror ("vfork");
11104 _exit(2);
11106 if (!child) {
11107 arg = getpid();
11108 write(-1, "", 0);
11109 _exit (arg);
11115 main ()
11117 pid_t parent = getpid ();
11118 pid_t child;
11120 sparc_address_test (0);
11122 child = vfork ();
11124 if (child == 0) {
11125 /* Here is another test for sparc vfork register problems. This
11126 test uses lots of local variables, at least as many local
11127 variables as main has allocated so far including compiler
11128 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11129 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11130 reuse the register of parent for one of the local variables,
11131 since it will think that parent can't possibly be used any more
11132 in this routine. Assigning to the local variable will thus
11133 munge parent in the parent process. */
11134 pid_t
11135 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11136 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11137 /* Convince the compiler that p..p7 are live; otherwise, it might
11138 use the same hardware register for all 8 local variables. */
11139 if (p != p1 || p != p2 || p != p3 || p != p4
11140 || p != p5 || p != p6 || p != p7)
11141 _exit(1);
11143 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11144 from child file descriptors. If the child closes a descriptor
11145 before it execs or exits, this munges the parent's descriptor
11146 as well. Test for this by closing stdout in the child. */
11147 _exit(close(fileno(stdout)) != 0);
11148 } else {
11149 int status;
11150 struct stat st;
11152 while (wait(&status) != child)
11154 return (
11155 /* Was there some problem with vforking? */
11156 child < 0
11158 /* Did the child fail? (This shouldn't happen.) */
11159 || status
11161 /* Did the vfork/compiler bug occur? */
11162 || parent != getpid()
11164 /* Did the file descriptor bug occur? */
11165 || fstat(fileno(stdout), &st) != 0
11169 _ACEOF
11170 if ac_fn_cxx_try_run "$LINENO"; then :
11171 ac_cv_func_vfork_works=yes
11172 else
11173 ac_cv_func_vfork_works=no
11175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11176 conftest.$ac_objext conftest.beam conftest.$ac_ext
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11181 $as_echo "$ac_cv_func_vfork_works" >&6; }
11184 if test "x$ac_cv_func_fork_works" = xcross; then
11185 ac_cv_func_vfork_works=$ac_cv_func_vfork
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11187 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11190 if test "x$ac_cv_func_vfork_works" = xyes; then
11192 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11194 else
11196 $as_echo "#define vfork fork" >>confdefs.h
11199 if test "x$ac_cv_func_fork_works" = xyes; then
11201 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11206 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11207 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 rm -f conftest.sym conftest.file
11211 echo >conftest.file
11212 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11213 if test "$cross_compiling" = yes; then :
11214 ac_cv_func_lstat_dereferences_slashed_symlink=no
11215 else
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11218 $ac_includes_default
11220 main ()
11222 struct stat sbuf;
11223 /* Linux will dereference the symlink and fail, as required by POSIX.
11224 That is better in the sense that it means we will not
11225 have to compile and use the lstat wrapper. */
11226 return lstat ("conftest.sym/", &sbuf) == 0;
11228 return 0;
11230 _ACEOF
11231 if ac_fn_cxx_try_run "$LINENO"; then :
11232 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11233 else
11234 ac_cv_func_lstat_dereferences_slashed_symlink=no
11236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11237 conftest.$ac_objext conftest.beam conftest.$ac_ext
11240 else
11241 # If the `ln -s' command failed, then we probably don't even
11242 # have an lstat function.
11243 ac_cv_func_lstat_dereferences_slashed_symlink=no
11245 rm -f conftest.sym conftest.file
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11249 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11251 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11253 cat >>confdefs.h <<_ACEOF
11254 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11255 _ACEOF
11258 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11259 case " $LIBOBJS " in
11260 *" lstat.$ac_objext "* ) ;;
11261 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11263 esac
11267 if test x$SYS != xwin32; then :
11269 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11270 # -lseq on Dynix/PTX, -lgen on Unixware.
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11272 $as_echo_n "checking for library containing getmntent... " >&6; }
11273 if test "${ac_cv_search_getmntent+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 ac_func_search_save_LIBS=$LIBS
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 char getmntent ();
11288 main ()
11290 return getmntent ();
11292 return 0;
11294 _ACEOF
11295 for ac_lib in '' sun seq gen; do
11296 if test -z "$ac_lib"; then
11297 ac_res="none required"
11298 else
11299 ac_res=-l$ac_lib
11300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11302 if ac_fn_cxx_try_link "$LINENO"; then :
11303 ac_cv_search_getmntent=$ac_res
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext
11307 if test "${ac_cv_search_getmntent+set}" = set; then :
11308 break
11310 done
11311 if test "${ac_cv_search_getmntent+set}" = set; then :
11313 else
11314 ac_cv_search_getmntent=no
11316 rm conftest.$ac_ext
11317 LIBS=$ac_func_search_save_LIBS
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11320 $as_echo "$ac_cv_search_getmntent" >&6; }
11321 ac_res=$ac_cv_search_getmntent
11322 if test "$ac_res" != no; then :
11323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11324 ac_cv_func_getmntent=yes
11326 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11328 else
11329 ac_cv_func_getmntent=no
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11334 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11335 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 if test "$cross_compiling" = yes; then :
11339 ac_cv_func_lstat_empty_string_bug=yes
11340 else
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11343 $ac_includes_default
11345 main ()
11347 struct stat sbuf;
11348 return lstat ("", &sbuf) == 0;
11350 return 0;
11352 _ACEOF
11353 if ac_fn_cxx_try_run "$LINENO"; then :
11354 ac_cv_func_lstat_empty_string_bug=no
11355 else
11356 ac_cv_func_lstat_empty_string_bug=yes
11358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11359 conftest.$ac_objext conftest.beam conftest.$ac_ext
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11364 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11365 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11366 case " $LIBOBJS " in
11367 *" lstat.$ac_objext "* ) ;;
11368 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11370 esac
11373 cat >>confdefs.h <<_ACEOF
11374 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11375 _ACEOF
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11380 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11381 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 rm -f conftest.sym conftest.file
11385 echo >conftest.file
11386 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11387 if test "$cross_compiling" = yes; then :
11388 ac_cv_func_lstat_dereferences_slashed_symlink=no
11389 else
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392 $ac_includes_default
11394 main ()
11396 struct stat sbuf;
11397 /* Linux will dereference the symlink and fail, as required by POSIX.
11398 That is better in the sense that it means we will not
11399 have to compile and use the lstat wrapper. */
11400 return lstat ("conftest.sym/", &sbuf) == 0;
11402 return 0;
11404 _ACEOF
11405 if ac_fn_cxx_try_run "$LINENO"; then :
11406 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11407 else
11408 ac_cv_func_lstat_dereferences_slashed_symlink=no
11410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11411 conftest.$ac_objext conftest.beam conftest.$ac_ext
11414 else
11415 # If the `ln -s' command failed, then we probably don't even
11416 # have an lstat function.
11417 ac_cv_func_lstat_dereferences_slashed_symlink=no
11419 rm -f conftest.sym conftest.file
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11423 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11425 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11427 cat >>confdefs.h <<_ACEOF
11428 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11429 _ACEOF
11432 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11433 case " $LIBOBJS " in
11434 *" lstat.$ac_objext "* ) ;;
11435 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11437 esac
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11444 $as_echo_n "checking for working memcmp... " >&6; }
11445 if test "${ac_cv_func_memcmp_working+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 if test "$cross_compiling" = yes; then :
11449 ac_cv_func_memcmp_working=no
11450 else
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11453 $ac_includes_default
11455 main ()
11458 /* Some versions of memcmp are not 8-bit clean. */
11459 char c0 = '\100', c1 = '\200', c2 = '\201';
11460 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11461 return 1;
11463 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11464 or more and with at least one buffer not starting on a 4-byte boundary.
11465 William Lewis provided this test program. */
11467 char foo[21];
11468 char bar[21];
11469 int i;
11470 for (i = 0; i < 4; i++)
11472 char *a = foo + i;
11473 char *b = bar + i;
11474 strcpy (a, "--------01111111");
11475 strcpy (b, "--------10000000");
11476 if (memcmp (a, b, 16) >= 0)
11477 return 1;
11479 return 0;
11483 return 0;
11485 _ACEOF
11486 if ac_fn_cxx_try_run "$LINENO"; then :
11487 ac_cv_func_memcmp_working=yes
11488 else
11489 ac_cv_func_memcmp_working=no
11491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11492 conftest.$ac_objext conftest.beam conftest.$ac_ext
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11497 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11498 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11499 *" memcmp.$ac_objext "* ) ;;
11500 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11502 esac
11505 for ac_header in sys/select.h sys/socket.h
11506 do :
11507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11508 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11509 eval as_val=\$$as_ac_Header
11510 if test "x$as_val" = x""yes; then :
11511 cat >>confdefs.h <<_ACEOF
11512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11513 _ACEOF
11517 done
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11520 $as_echo_n "checking types of arguments for select... " >&6; }
11521 if test "${ac_cv_func_select_args+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11525 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11526 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529 $ac_includes_default
11530 #ifdef HAVE_SYS_SELECT_H
11531 # include <sys/select.h>
11532 #endif
11533 #ifdef HAVE_SYS_SOCKET_H
11534 # include <sys/socket.h>
11535 #endif
11538 main ()
11540 extern int select ($ac_arg1,
11541 $ac_arg234, $ac_arg234, $ac_arg234,
11542 $ac_arg5);
11544 return 0;
11546 _ACEOF
11547 if ac_fn_cxx_try_compile "$LINENO"; then :
11548 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551 done
11552 done
11553 done
11554 # Provide a safe default value.
11555 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11559 $as_echo "$ac_cv_func_select_args" >&6; }
11560 ac_save_IFS=$IFS; IFS=','
11561 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11562 IFS=$ac_save_IFS
11563 shift
11565 cat >>confdefs.h <<_ACEOF
11566 #define SELECT_TYPE_ARG1 $1
11567 _ACEOF
11570 cat >>confdefs.h <<_ACEOF
11571 #define SELECT_TYPE_ARG234 ($2)
11572 _ACEOF
11575 cat >>confdefs.h <<_ACEOF
11576 #define SELECT_TYPE_ARG5 ($3)
11577 _ACEOF
11579 rm -f conftest*
11581 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 ac_cv_func_setvbuf_reversed=no
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11589 $as_echo_n "checking return type of signal handlers... " >&6; }
11590 if test "${ac_cv_type_signal+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h. */
11595 #include <sys/types.h>
11596 #include <signal.h>
11599 main ()
11601 return *(signal (0, 0)) (0) == 1;
11603 return 0;
11605 _ACEOF
11606 if ac_fn_cxx_try_compile "$LINENO"; then :
11607 ac_cv_type_signal=int
11608 else
11609 ac_cv_type_signal=void
11611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11614 $as_echo "$ac_cv_type_signal" >&6; }
11616 cat >>confdefs.h <<_ACEOF
11617 #define RETSIGTYPE $ac_cv_type_signal
11618 _ACEOF
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11622 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11623 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
11624 $as_echo_n "(cached) " >&6
11625 else
11626 if test "$cross_compiling" = yes; then :
11627 ac_cv_func_stat_empty_string_bug=yes
11628 else
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h. */
11631 $ac_includes_default
11633 main ()
11635 struct stat sbuf;
11636 return stat ("", &sbuf) == 0;
11638 return 0;
11640 _ACEOF
11641 if ac_fn_cxx_try_run "$LINENO"; then :
11642 ac_cv_func_stat_empty_string_bug=no
11643 else
11644 ac_cv_func_stat_empty_string_bug=yes
11646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11647 conftest.$ac_objext conftest.beam conftest.$ac_ext
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
11652 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
11653 if test $ac_cv_func_stat_empty_string_bug = yes; then
11654 case " $LIBOBJS " in
11655 *" stat.$ac_objext "* ) ;;
11656 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
11658 esac
11661 cat >>confdefs.h <<_ACEOF
11662 #define HAVE_STAT_EMPTY_STRING_BUG 1
11663 _ACEOF
11667 for ac_func in strftime
11668 do :
11669 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11670 if test "x$ac_cv_func_strftime" = x""yes; then :
11671 cat >>confdefs.h <<_ACEOF
11672 #define HAVE_STRFTIME 1
11673 _ACEOF
11675 else
11676 # strftime is in -lintl on SCO UNIX.
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
11678 $as_echo_n "checking for strftime in -lintl... " >&6; }
11679 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 ac_check_lib_save_LIBS=$LIBS
11683 LIBS="-lintl $LIBS"
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11687 /* Override any GCC internal prototype to avoid an error.
11688 Use char because int might match the return type of a GCC
11689 builtin and then its argument prototype would still apply. */
11690 #ifdef __cplusplus
11691 extern "C"
11692 #endif
11693 char strftime ();
11695 main ()
11697 return strftime ();
11699 return 0;
11701 _ACEOF
11702 if ac_fn_cxx_try_link "$LINENO"; then :
11703 ac_cv_lib_intl_strftime=yes
11704 else
11705 ac_cv_lib_intl_strftime=no
11707 rm -f core conftest.err conftest.$ac_objext \
11708 conftest$ac_exeext conftest.$ac_ext
11709 LIBS=$ac_check_lib_save_LIBS
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11712 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11713 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11714 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11716 LIBS="-lintl $LIBS"
11720 done
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
11723 $as_echo_n "checking for working strtod... " >&6; }
11724 if test "${ac_cv_func_strtod+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 if test "$cross_compiling" = yes; then :
11728 ac_cv_func_strtod=no
11729 else
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11733 $ac_includes_default
11734 #ifndef strtod
11735 double strtod ();
11736 #endif
11738 main()
11741 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
11742 char *string = " +69";
11743 char *term;
11744 double value;
11745 value = strtod (string, &term);
11746 if (value != 69 || term != (string + 4))
11747 return 1;
11751 /* Under Solaris 2.4, strtod returns the wrong value for the
11752 terminating character under some conditions. */
11753 char *string = "NaN";
11754 char *term;
11755 strtod (string, &term);
11756 if (term != string && *(term - 1) == 0)
11757 return 1;
11759 return 0;
11762 _ACEOF
11763 if ac_fn_cxx_try_run "$LINENO"; then :
11764 ac_cv_func_strtod=yes
11765 else
11766 ac_cv_func_strtod=no
11768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11769 conftest.$ac_objext conftest.beam conftest.$ac_ext
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11774 $as_echo "$ac_cv_func_strtod" >&6; }
11775 if test $ac_cv_func_strtod = no; then
11776 case " $LIBOBJS " in
11777 *" strtod.$ac_objext "* ) ;;
11778 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11780 esac
11782 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
11783 if test "x$ac_cv_func_pow" = x""yes; then :
11787 if test $ac_cv_func_pow = no; then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11789 $as_echo_n "checking for pow in -lm... " >&6; }
11790 if test "${ac_cv_lib_m_pow+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 ac_check_lib_save_LIBS=$LIBS
11794 LIBS="-lm $LIBS"
11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h. */
11798 /* Override any GCC internal prototype to avoid an error.
11799 Use char because int might match the return type of a GCC
11800 builtin and then its argument prototype would still apply. */
11801 #ifdef __cplusplus
11802 extern "C"
11803 #endif
11804 char pow ();
11806 main ()
11808 return pow ();
11810 return 0;
11812 _ACEOF
11813 if ac_fn_cxx_try_link "$LINENO"; then :
11814 ac_cv_lib_m_pow=yes
11815 else
11816 ac_cv_lib_m_pow=no
11818 rm -f core conftest.err conftest.$ac_objext \
11819 conftest$ac_exeext conftest.$ac_ext
11820 LIBS=$ac_check_lib_save_LIBS
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11823 $as_echo "$ac_cv_lib_m_pow" >&6; }
11824 if test "x$ac_cv_lib_m_pow" = x""yes; then :
11825 POW_LIB=-lm
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
11828 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11835 for ac_func in vprintf
11836 do :
11837 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11838 if test "x$ac_cv_func_vprintf" = x""yes; then :
11839 cat >>confdefs.h <<_ACEOF
11840 #define HAVE_VPRINTF 1
11841 _ACEOF
11843 ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11844 if test "x$ac_cv_func__doprnt" = x""yes; then :
11846 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11851 done
11854 if test $cross_compiling = yes -a $gnumalloc = yes; then :
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11857 configure cannot check whether malloc() and realloc() are GNU libc
11858 compatible. You have to be ABSOLUTELY sure that they are, otherwise
11859 run configure with the --without-gnu-malloc switch." >&5
11860 $as_echo "$as_me: WARNING:
11861 configure cannot check whether malloc() and realloc() are GNU libc
11862 compatible. You have to be ABSOLUTELY sure that they are, otherwise
11863 run configure with the --without-gnu-malloc switch." >&2;}
11864 _mule_warning_12=yes
11865 _mule_has_warnings=yes
11867 ac_cv_func_malloc_0_nonnull=yes
11868 ac_cv_func_realloc_0_nonnull=yes
11871 for ac_header in stdlib.h
11872 do :
11873 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11874 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_STDLIB_H 1
11877 _ACEOF
11881 done
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11884 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11885 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
11886 $as_echo_n "(cached) " >&6
11887 else
11888 if test "$cross_compiling" = yes; then :
11889 ac_cv_func_malloc_0_nonnull=no
11890 else
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11893 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11894 # include <stdlib.h>
11895 #else
11896 char *malloc ();
11897 #endif
11900 main ()
11902 return ! malloc (0);
11904 return 0;
11906 _ACEOF
11907 if ac_fn_cxx_try_run "$LINENO"; then :
11908 ac_cv_func_malloc_0_nonnull=yes
11909 else
11910 ac_cv_func_malloc_0_nonnull=no
11912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11913 conftest.$ac_objext conftest.beam conftest.$ac_ext
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11918 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11919 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11921 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11923 else
11924 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11926 case " $LIBOBJS " in
11927 *" malloc.$ac_objext "* ) ;;
11928 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11930 esac
11933 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11938 for ac_header in stdlib.h
11939 do :
11940 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11941 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11942 cat >>confdefs.h <<_ACEOF
11943 #define HAVE_STDLIB_H 1
11944 _ACEOF
11948 done
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11951 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11952 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 if test "$cross_compiling" = yes; then :
11956 ac_cv_func_realloc_0_nonnull=no
11957 else
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11961 # include <stdlib.h>
11962 #else
11963 char *realloc ();
11964 #endif
11967 main ()
11969 return ! realloc (0, 0);
11971 return 0;
11973 _ACEOF
11974 if ac_fn_cxx_try_run "$LINENO"; then :
11975 ac_cv_func_realloc_0_nonnull=yes
11976 else
11977 ac_cv_func_realloc_0_nonnull=no
11979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11980 conftest.$ac_objext conftest.beam conftest.$ac_ext
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11985 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11986 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11988 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11990 else
11991 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11993 case " $LIBOBJS " in
11994 *" realloc.$ac_objext "* ) ;;
11995 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11997 esac
12000 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12005 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getopt_long getpass getrlimit gettimeofday inet_ntoa localeconv memmove mempcpy memset mkdir nl_langinfo pow select setlocale setrlimit sigaction socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
12006 do :
12007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12008 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12009 eval as_val=\$$as_ac_var
12010 if test "x$as_val" = x""yes; then :
12011 cat >>confdefs.h <<_ACEOF
12012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12013 _ACEOF
12016 done
12023 for ac_header in $ac_header_list
12024 do :
12025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12026 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12028 eval as_val=\$$as_ac_Header
12029 if test "x$as_val" = x""yes; then :
12030 cat >>confdefs.h <<_ACEOF
12031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12032 _ACEOF
12036 done
12044 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12046 # Check whether --enable-mmap was given.
12047 if test "${enable_mmap+set}" = set; then :
12048 enableval=$enable_mmap;
12055 if test ${enable_mmap:-no} = yes; then :
12057 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12060 for ac_func in getpagesize
12061 do :
12062 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12063 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12064 cat >>confdefs.h <<_ACEOF
12065 #define HAVE_GETPAGESIZE 1
12066 _ACEOF
12069 done
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12072 $as_echo_n "checking for working mmap... " >&6; }
12073 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
12075 else
12076 if test "$cross_compiling" = yes; then :
12077 ac_cv_func_mmap_fixed_mapped=no
12078 else
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12081 $ac_includes_default
12082 /* malloc might have been renamed as rpl_malloc. */
12083 #undef malloc
12085 /* Thanks to Mike Haertel and Jim Avera for this test.
12086 Here is a matrix of mmap possibilities:
12087 mmap private not fixed
12088 mmap private fixed at somewhere currently unmapped
12089 mmap private fixed at somewhere already mapped
12090 mmap shared not fixed
12091 mmap shared fixed at somewhere currently unmapped
12092 mmap shared fixed at somewhere already mapped
12093 For private mappings, we should verify that changes cannot be read()
12094 back from the file, nor mmap's back from the file at a different
12095 address. (There have been systems where private was not correctly
12096 implemented like the infamous i386 svr4.0, and systems where the
12097 VM page cache was not coherent with the file system buffer cache
12098 like early versions of FreeBSD and possibly contemporary NetBSD.)
12099 For shared mappings, we should conversely verify that changes get
12100 propagated back to all the places they're supposed to be.
12102 Grep wants private fixed already mapped.
12103 The main things grep needs to know about mmap are:
12104 * does it exist and is it safe to write into the mmap'd area
12105 * how to use it (BSD variants) */
12107 #include <fcntl.h>
12108 #include <sys/mman.h>
12110 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12111 char *malloc ();
12112 #endif
12114 /* This mess was copied from the GNU getpagesize.h. */
12115 #ifndef HAVE_GETPAGESIZE
12116 # ifdef _SC_PAGESIZE
12117 # define getpagesize() sysconf(_SC_PAGESIZE)
12118 # else /* no _SC_PAGESIZE */
12119 # ifdef HAVE_SYS_PARAM_H
12120 # include <sys/param.h>
12121 # ifdef EXEC_PAGESIZE
12122 # define getpagesize() EXEC_PAGESIZE
12123 # else /* no EXEC_PAGESIZE */
12124 # ifdef NBPG
12125 # define getpagesize() NBPG * CLSIZE
12126 # ifndef CLSIZE
12127 # define CLSIZE 1
12128 # endif /* no CLSIZE */
12129 # else /* no NBPG */
12130 # ifdef NBPC
12131 # define getpagesize() NBPC
12132 # else /* no NBPC */
12133 # ifdef PAGESIZE
12134 # define getpagesize() PAGESIZE
12135 # endif /* PAGESIZE */
12136 # endif /* no NBPC */
12137 # endif /* no NBPG */
12138 # endif /* no EXEC_PAGESIZE */
12139 # else /* no HAVE_SYS_PARAM_H */
12140 # define getpagesize() 8192 /* punt totally */
12141 # endif /* no HAVE_SYS_PARAM_H */
12142 # endif /* no _SC_PAGESIZE */
12144 #endif /* no HAVE_GETPAGESIZE */
12147 main ()
12149 char *data, *data2, *data3;
12150 int i, pagesize;
12151 int fd, fd2;
12153 pagesize = getpagesize ();
12155 /* First, make a file with some known garbage in it. */
12156 data = (char *) malloc (pagesize);
12157 if (!data)
12158 return 1;
12159 for (i = 0; i < pagesize; ++i)
12160 *(data + i) = rand ();
12161 umask (0);
12162 fd = creat ("conftest.mmap", 0600);
12163 if (fd < 0)
12164 return 2;
12165 if (write (fd, data, pagesize) != pagesize)
12166 return 3;
12167 close (fd);
12169 /* Next, check that the tail of a page is zero-filled. File must have
12170 non-zero length, otherwise we risk SIGBUS for entire page. */
12171 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12172 if (fd2 < 0)
12173 return 4;
12174 data2 = (char *) "";
12175 if (write (fd2, data2, 1) != 1)
12176 return 5;
12177 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12178 if (data2 == MAP_FAILED)
12179 return 6;
12180 for (i = 0; i < pagesize; ++i)
12181 if (*(data2 + i))
12182 return 7;
12183 close (fd2);
12184 if (munmap (data2, pagesize))
12185 return 8;
12187 /* Next, try to mmap the file at a fixed address which already has
12188 something else allocated at it. If we can, also make sure that
12189 we see the same garbage. */
12190 fd = open ("conftest.mmap", O_RDWR);
12191 if (fd < 0)
12192 return 9;
12193 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12194 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12195 return 10;
12196 for (i = 0; i < pagesize; ++i)
12197 if (*(data + i) != *(data2 + i))
12198 return 11;
12200 /* Finally, make sure that changes to the mapped area do not
12201 percolate back to the file as seen by read(). (This is a bug on
12202 some variants of i386 svr4.0.) */
12203 for (i = 0; i < pagesize; ++i)
12204 *(data2 + i) = *(data2 + i) + 1;
12205 data3 = (char *) malloc (pagesize);
12206 if (!data3)
12207 return 12;
12208 if (read (fd, data3, pagesize) != pagesize)
12209 return 13;
12210 for (i = 0; i < pagesize; ++i)
12211 if (*(data + i) != *(data3 + i))
12212 return 14;
12213 close (fd);
12214 return 0;
12216 _ACEOF
12217 if ac_fn_cxx_try_run "$LINENO"; then :
12218 ac_cv_func_mmap_fixed_mapped=yes
12219 else
12220 ac_cv_func_mmap_fixed_mapped=no
12222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12223 conftest.$ac_objext conftest.beam conftest.$ac_ext
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12228 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12229 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12231 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12234 rm -f conftest.mmap conftest.txt
12236 for ac_func in munmap sysconf
12237 do :
12238 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12239 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12240 eval as_val=\$$as_ac_var
12241 if test "x$as_val" = x""yes; then :
12242 cat >>confdefs.h <<_ACEOF
12243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244 _ACEOF
12247 done
12249 if test $ac_cv_func_sysconf = yes; then :
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12252 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12257 #include <unistd.h>
12260 main ()
12263 return sysconf(_SC_PAGESIZE);
12266 return 0;
12269 _ACEOF
12270 if ac_fn_cxx_try_link "$LINENO"; then :
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12273 $as_echo "_SC_PAGESIZE" >&6; }
12275 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12278 else
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12284 #include <unistd.h>
12287 main ()
12290 return sysconf(_SC_PAGE_SIZE);
12293 return 0;
12296 _ACEOF
12297 if ac_fn_cxx_try_link "$LINENO"; then :
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12300 $as_echo "_SC_PAGE_SIZE" >&6; }
12302 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12305 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12308 $as_echo "none" >&6; }
12311 rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12325 # Look for a way to preallocate disk space for files.
12326 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12329 $as_echo_n "checking for fallocate... " >&6; }
12330 mule_backup_CPPFLAGS="$CPPFLAGS"
12331 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12336 #ifndef _GNU_SOURCE
12337 # define _GNU_SOURCE
12338 #endif
12339 #ifdef HAVE_FCNTL_H
12340 # include <fcntl.h>
12341 #endif
12342 #include <linux/falloc.h>
12345 main ()
12348 fallocate(0, 0, 0, 0);
12351 return 0;
12354 _ACEOF
12355 if ac_fn_cxx_try_link "$LINENO"; then :
12358 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12361 $as_echo "yes" >&6; }
12363 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12369 rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 CPPFLAGS="$mule_backup_CPPFLAGS"
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12375 $as_echo_n "checking for SYS_fallocate... " >&6; }
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12380 #include <sys/syscall.h>
12381 #include <sys/types.h>
12382 #include <unistd.h>
12385 main ()
12388 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12391 return 0;
12394 _ACEOF
12395 if ac_fn_cxx_try_link "$LINENO"; then :
12398 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401 $as_echo "yes" >&6; }
12403 else
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12409 rm -f core conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext conftest.$ac_ext
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12413 $as_echo_n "checking for posix_fallocate... " >&6; }
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12418 #define _XOPEN_SOURCE 600
12419 #include <stdlib.h>
12420 #ifdef HAVE_FCNTL_H
12421 # include <fcntl.h>
12422 #endif
12425 main ()
12428 posix_fallocate(0, 0, 0);
12431 return 0;
12434 _ACEOF
12435 if ac_fn_cxx_try_link "$LINENO"; then :
12438 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441 $as_echo "yes" >&6; }
12443 else
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 $as_echo "no" >&6; }
12449 rm -f core conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
12455 ac_ext=c
12456 ac_cpp='$CPP $CPPFLAGS'
12457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12461 # Checking Native Language Support
12464 MKINSTALLDIRS=
12465 if test -n "$ac_aux_dir"; then
12466 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12468 if test -z "$MKINSTALLDIRS"; then
12469 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12476 # Extract the first word of "msgfmt", so it can be a program name with args.
12477 set dummy msgfmt; ac_word=$2
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479 $as_echo_n "checking for $ac_word... " >&6; }
12480 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12481 $as_echo_n "(cached) " >&6
12482 else
12483 case "$MSGFMT" in
12485 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12489 for ac_dir in $PATH; do
12490 test -z "$ac_dir" && ac_dir=.
12491 if test -f $ac_dir/$ac_word; then
12492 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12493 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12494 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12495 break
12498 done
12499 IFS="$ac_save_ifs"
12500 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12502 esac
12504 MSGFMT="$ac_cv_path_MSGFMT"
12505 if test "$MSGFMT" != ":"; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12507 $as_echo "$MSGFMT" >&6; }
12508 else
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510 $as_echo "no" >&6; }
12513 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12514 set dummy gmsgfmt; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12519 else
12520 case $GMSGFMT in
12521 [\\/]* | ?:[\\/]*)
12522 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12528 IFS=$as_save_IFS
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12532 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12534 break 2
12536 done
12537 done
12538 IFS=$as_save_IFS
12540 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12542 esac
12544 GMSGFMT=$ac_cv_path_GMSGFMT
12545 if test -n "$GMSGFMT"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12547 $as_echo "$GMSGFMT" >&6; }
12548 else
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12555 # Extract the first word of "xgettext", so it can be a program name with args.
12556 set dummy xgettext; ac_word=$2
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 case "$XGETTEXT" in
12564 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12568 for ac_dir in $PATH; do
12569 test -z "$ac_dir" && ac_dir=.
12570 if test -f $ac_dir/$ac_word; then
12571 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12572 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12573 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12574 break
12577 done
12578 IFS="$ac_save_ifs"
12579 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12581 esac
12583 XGETTEXT="$ac_cv_path_XGETTEXT"
12584 if test "$XGETTEXT" != ":"; then
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12586 $as_echo "$XGETTEXT" >&6; }
12587 else
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12592 rm -f messages.po
12594 # Extract the first word of "msgmerge", so it can be a program name with args.
12595 set dummy msgmerge; ac_word=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 case "$MSGMERGE" in
12603 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12607 for ac_dir in $PATH; do
12608 test -z "$ac_dir" && ac_dir=.
12609 if test -f $ac_dir/$ac_word; then
12610 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12611 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
12612 break
12615 done
12616 IFS="$ac_save_ifs"
12617 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12619 esac
12621 MSGMERGE="$ac_cv_path_MSGMERGE"
12622 if test "$MSGMERGE" != ":"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12624 $as_echo "$MSGMERGE" >&6; }
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12631 if test "$GMSGFMT" != ":"; then
12632 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12633 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12635 else
12636 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12638 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12639 GMSGFMT=":"
12643 if test "$XGETTEXT" != ":"; then
12644 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12645 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12649 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12650 XGETTEXT=":"
12652 rm -f messages.po
12655 ac_config_commands="$ac_config_commands default-1"
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
12660 $as_echo_n "checking for strerror in -lcposix... " >&6; }
12661 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12663 else
12664 ac_check_lib_save_LIBS=$LIBS
12665 LIBS="-lcposix $LIBS"
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12669 /* Override any GCC internal prototype to avoid an error.
12670 Use char because int might match the return type of a GCC
12671 builtin and then its argument prototype would still apply. */
12672 #ifdef __cplusplus
12673 extern "C"
12674 #endif
12675 char strerror ();
12677 main ()
12679 return strerror ();
12681 return 0;
12683 _ACEOF
12684 if ac_fn_c_try_link "$LINENO"; then :
12685 ac_cv_lib_cposix_strerror=yes
12686 else
12687 ac_cv_lib_cposix_strerror=no
12689 rm -f core conftest.err conftest.$ac_objext \
12690 conftest$ac_exeext conftest.$ac_ext
12691 LIBS=$ac_check_lib_save_LIBS
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
12694 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
12695 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
12696 LIBS="$LIBS -lcposix"
12702 for ac_func in getpagesize
12703 do :
12704 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12705 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12706 cat >>confdefs.h <<_ACEOF
12707 #define HAVE_GETPAGESIZE 1
12708 _ACEOF
12711 done
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12714 $as_echo_n "checking for working mmap... " >&6; }
12715 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 if test "$cross_compiling" = yes; then :
12719 ac_cv_func_mmap_fixed_mapped=no
12720 else
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12723 $ac_includes_default
12724 /* malloc might have been renamed as rpl_malloc. */
12725 #undef malloc
12727 /* Thanks to Mike Haertel and Jim Avera for this test.
12728 Here is a matrix of mmap possibilities:
12729 mmap private not fixed
12730 mmap private fixed at somewhere currently unmapped
12731 mmap private fixed at somewhere already mapped
12732 mmap shared not fixed
12733 mmap shared fixed at somewhere currently unmapped
12734 mmap shared fixed at somewhere already mapped
12735 For private mappings, we should verify that changes cannot be read()
12736 back from the file, nor mmap's back from the file at a different
12737 address. (There have been systems where private was not correctly
12738 implemented like the infamous i386 svr4.0, and systems where the
12739 VM page cache was not coherent with the file system buffer cache
12740 like early versions of FreeBSD and possibly contemporary NetBSD.)
12741 For shared mappings, we should conversely verify that changes get
12742 propagated back to all the places they're supposed to be.
12744 Grep wants private fixed already mapped.
12745 The main things grep needs to know about mmap are:
12746 * does it exist and is it safe to write into the mmap'd area
12747 * how to use it (BSD variants) */
12749 #include <fcntl.h>
12750 #include <sys/mman.h>
12752 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12753 char *malloc ();
12754 #endif
12756 /* This mess was copied from the GNU getpagesize.h. */
12757 #ifndef HAVE_GETPAGESIZE
12758 # ifdef _SC_PAGESIZE
12759 # define getpagesize() sysconf(_SC_PAGESIZE)
12760 # else /* no _SC_PAGESIZE */
12761 # ifdef HAVE_SYS_PARAM_H
12762 # include <sys/param.h>
12763 # ifdef EXEC_PAGESIZE
12764 # define getpagesize() EXEC_PAGESIZE
12765 # else /* no EXEC_PAGESIZE */
12766 # ifdef NBPG
12767 # define getpagesize() NBPG * CLSIZE
12768 # ifndef CLSIZE
12769 # define CLSIZE 1
12770 # endif /* no CLSIZE */
12771 # else /* no NBPG */
12772 # ifdef NBPC
12773 # define getpagesize() NBPC
12774 # else /* no NBPC */
12775 # ifdef PAGESIZE
12776 # define getpagesize() PAGESIZE
12777 # endif /* PAGESIZE */
12778 # endif /* no NBPC */
12779 # endif /* no NBPG */
12780 # endif /* no EXEC_PAGESIZE */
12781 # else /* no HAVE_SYS_PARAM_H */
12782 # define getpagesize() 8192 /* punt totally */
12783 # endif /* no HAVE_SYS_PARAM_H */
12784 # endif /* no _SC_PAGESIZE */
12786 #endif /* no HAVE_GETPAGESIZE */
12789 main ()
12791 char *data, *data2, *data3;
12792 int i, pagesize;
12793 int fd, fd2;
12795 pagesize = getpagesize ();
12797 /* First, make a file with some known garbage in it. */
12798 data = (char *) malloc (pagesize);
12799 if (!data)
12800 return 1;
12801 for (i = 0; i < pagesize; ++i)
12802 *(data + i) = rand ();
12803 umask (0);
12804 fd = creat ("conftest.mmap", 0600);
12805 if (fd < 0)
12806 return 2;
12807 if (write (fd, data, pagesize) != pagesize)
12808 return 3;
12809 close (fd);
12811 /* Next, check that the tail of a page is zero-filled. File must have
12812 non-zero length, otherwise we risk SIGBUS for entire page. */
12813 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12814 if (fd2 < 0)
12815 return 4;
12816 data2 = "";
12817 if (write (fd2, data2, 1) != 1)
12818 return 5;
12819 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12820 if (data2 == MAP_FAILED)
12821 return 6;
12822 for (i = 0; i < pagesize; ++i)
12823 if (*(data2 + i))
12824 return 7;
12825 close (fd2);
12826 if (munmap (data2, pagesize))
12827 return 8;
12829 /* Next, try to mmap the file at a fixed address which already has
12830 something else allocated at it. If we can, also make sure that
12831 we see the same garbage. */
12832 fd = open ("conftest.mmap", O_RDWR);
12833 if (fd < 0)
12834 return 9;
12835 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12836 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12837 return 10;
12838 for (i = 0; i < pagesize; ++i)
12839 if (*(data + i) != *(data2 + i))
12840 return 11;
12842 /* Finally, make sure that changes to the mapped area do not
12843 percolate back to the file as seen by read(). (This is a bug on
12844 some variants of i386 svr4.0.) */
12845 for (i = 0; i < pagesize; ++i)
12846 *(data2 + i) = *(data2 + i) + 1;
12847 data3 = (char *) malloc (pagesize);
12848 if (!data3)
12849 return 12;
12850 if (read (fd, data3, pagesize) != pagesize)
12851 return 13;
12852 for (i = 0; i < pagesize; ++i)
12853 if (*(data + i) != *(data3 + i))
12854 return 14;
12855 close (fd);
12856 return 0;
12858 _ACEOF
12859 if ac_fn_c_try_run "$LINENO"; then :
12860 ac_cv_func_mmap_fixed_mapped=yes
12861 else
12862 ac_cv_func_mmap_fixed_mapped=no
12864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12865 conftest.$ac_objext conftest.beam conftest.$ac_ext
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12870 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12871 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12873 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12876 rm -f conftest.mmap conftest.txt
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
12880 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12881 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
12882 $as_echo_n "(cached) " >&6
12883 else
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12887 #include <features.h>
12888 #ifdef __GNU_LIBRARY__
12889 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12890 Lucky GNU user
12891 #endif
12892 #endif
12894 _ACEOF
12895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12896 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
12897 ac_cv_gnu_library_2_1=yes
12898 else
12899 ac_cv_gnu_library_2_1=no
12901 rm -f conftest*
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12907 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12909 GLIBC21="$ac_cv_gnu_library_2_1"
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
12915 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
12916 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12920 if test "$cross_compiling" = yes; then :
12922 # Guess based on the CPU.
12923 case "$host_cpu" in
12924 alpha* | i3456786 | m68k | s390*)
12925 gt_cv_int_divbyzero_sigfpe="guessing yes";;
12927 gt_cv_int_divbyzero_sigfpe="guessing no";;
12928 esac
12930 else
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12934 #include <stdlib.h>
12935 #include <signal.h>
12937 static void
12938 #ifdef __cplusplus
12939 sigfpe_handler (int sig)
12940 #else
12941 sigfpe_handler (sig) int sig;
12942 #endif
12944 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
12945 exit (sig != SIGFPE);
12948 int x = 1;
12949 int y = 0;
12950 int z;
12951 int nan;
12953 int main ()
12955 signal (SIGFPE, sigfpe_handler);
12956 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
12957 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12958 signal (SIGTRAP, sigfpe_handler);
12959 #endif
12960 /* Linux/SPARC yields signal SIGILL. */
12961 #if defined (__sparc__) && defined (__linux__)
12962 signal (SIGILL, sigfpe_handler);
12963 #endif
12965 z = x / y;
12966 nan = y / y;
12967 exit (1);
12970 _ACEOF
12971 if ac_fn_c_try_run "$LINENO"; then :
12972 gt_cv_int_divbyzero_sigfpe=yes
12973 else
12974 gt_cv_int_divbyzero_sigfpe=no
12976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12977 conftest.$ac_objext conftest.beam conftest.$ac_ext
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
12983 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
12984 case "$gt_cv_int_divbyzero_sigfpe" in
12985 *yes) value=1;;
12986 *) value=0;;
12987 esac
12989 cat >>confdefs.h <<_ACEOF
12990 #define INTDIV0_RAISES_SIGFPE $value
12991 _ACEOF
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12996 $as_echo_n "checking for inttypes.h... " >&6; }
12997 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13002 #include <sys/types.h>
13003 #include <inttypes.h>
13005 main ()
13007 uintmax_t i = (uintmax_t) -1;
13009 return 0;
13011 _ACEOF
13012 if ac_fn_c_try_compile "$LINENO"; then :
13013 jm_ac_cv_header_inttypes_h=yes
13014 else
13015 jm_ac_cv_header_inttypes_h=no
13017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13020 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13021 if test $jm_ac_cv_header_inttypes_h = yes; then
13023 cat >>confdefs.h <<_ACEOF
13024 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13025 _ACEOF
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13031 $as_echo_n "checking for stdint.h... " >&6; }
13032 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037 #include <sys/types.h>
13038 #include <stdint.h>
13040 main ()
13042 uintmax_t i = (uintmax_t) -1;
13044 return 0;
13046 _ACEOF
13047 if ac_fn_c_try_compile "$LINENO"; then :
13048 jm_ac_cv_header_stdint_h=yes
13049 else
13050 jm_ac_cv_header_stdint_h=no
13052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13055 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13056 if test $jm_ac_cv_header_stdint_h = yes; then
13058 cat >>confdefs.h <<_ACEOF
13059 #define HAVE_STDINT_H_WITH_UINTMAX 1
13060 _ACEOF
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13066 $as_echo_n "checking for unsigned long long... " >&6; }
13067 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
13068 $as_echo_n "(cached) " >&6
13069 else
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13072 unsigned long long ull = 1; int i = 63;
13074 main ()
13076 unsigned long long ullmax = (unsigned long long) -1;
13077 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13079 return 0;
13081 _ACEOF
13082 if ac_fn_c_try_link "$LINENO"; then :
13083 ac_cv_type_unsigned_long_long=yes
13084 else
13085 ac_cv_type_unsigned_long_long=no
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13091 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13092 if test $ac_cv_type_unsigned_long_long = yes; then
13094 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13101 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
13103 test $ac_cv_type_unsigned_long_long = yes \
13104 && ac_type='unsigned long long' \
13105 || ac_type='unsigned long'
13107 cat >>confdefs.h <<_ACEOF
13108 #define uintmax_t $ac_type
13109 _ACEOF
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13115 $as_echo_n "checking for inttypes.h... " >&6; }
13116 if test "${gt_cv_header_inttypes_h+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13122 #include <sys/types.h>
13123 #include <inttypes.h>
13125 main ()
13129 return 0;
13131 _ACEOF
13132 if ac_fn_c_try_compile "$LINENO"; then :
13133 gt_cv_header_inttypes_h=yes
13134 else
13135 gt_cv_header_inttypes_h=no
13137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13141 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13142 if test $gt_cv_header_inttypes_h = yes; then
13144 cat >>confdefs.h <<_ACEOF
13145 #define HAVE_INTTYPES_H 1
13146 _ACEOF
13152 if test $gt_cv_header_inttypes_h = yes; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13154 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13155 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
13156 $as_echo_n "(cached) " >&6
13157 else
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161 #include <inttypes.h>
13162 #ifdef PRId32
13163 char *p = PRId32;
13164 #endif
13167 main ()
13171 return 0;
13173 _ACEOF
13174 if ac_fn_c_try_compile "$LINENO"; then :
13175 gt_cv_inttypes_pri_broken=no
13176 else
13177 gt_cv_inttypes_pri_broken=yes
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13183 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13185 if test "$gt_cv_inttypes_pri_broken" = yes; then
13187 cat >>confdefs.h <<_ACEOF
13188 #define PRI_MACROS_BROKEN 1
13189 _ACEOF
13194 if test "X$prefix" = "XNONE"; then
13195 acl_final_prefix="$ac_default_prefix"
13196 else
13197 acl_final_prefix="$prefix"
13199 if test "X$exec_prefix" = "XNONE"; then
13200 acl_final_exec_prefix='${prefix}'
13201 else
13202 acl_final_exec_prefix="$exec_prefix"
13204 acl_save_prefix="$prefix"
13205 prefix="$acl_final_prefix"
13206 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13207 prefix="$acl_save_prefix"
13210 # Check whether --with-gnu-ld was given.
13211 if test "${with_gnu_ld+set}" = set; then :
13212 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13213 else
13214 with_gnu_ld=no
13217 ac_prog=ld
13218 if test "$GCC" = yes; then
13219 # Check if gcc -print-prog-name=ld gives a path.
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13221 $as_echo_n "checking for ld used by GCC... " >&6; }
13222 case $host in
13223 *-*-mingw*)
13224 # gcc leaves a trailing carriage return which upsets mingw
13225 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13227 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13228 esac
13229 case $ac_prog in
13230 # Accept absolute paths.
13231 [\\/]* | [A-Za-z]:[\\/]*)
13232 re_direlt='/[^/][^/]*/\.\./'
13233 # Canonicalize the path of ld
13234 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13235 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13236 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13237 done
13238 test -z "$LD" && LD="$ac_prog"
13241 # If it fails, then pretend we aren't using GCC.
13242 ac_prog=ld
13245 # If it is relative, then search for the first ld in PATH.
13246 with_gnu_ld=unknown
13248 esac
13249 elif test "$with_gnu_ld" = yes; then
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13251 $as_echo_n "checking for GNU ld... " >&6; }
13252 else
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13254 $as_echo_n "checking for non-GNU ld... " >&6; }
13256 if test "${acl_cv_path_LD+set}" = set; then :
13257 $as_echo_n "(cached) " >&6
13258 else
13259 if test -z "$LD"; then
13260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13261 for ac_dir in $PATH; do
13262 test -z "$ac_dir" && ac_dir=.
13263 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13264 acl_cv_path_LD="$ac_dir/$ac_prog"
13265 # Check to see if the program is GNU ld. I'd rather use --version,
13266 # but apparently some GNU ld's only accept -v.
13267 # Break only if it was the GNU/non-GNU ld that we prefer.
13268 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13269 test "$with_gnu_ld" != no && break
13270 else
13271 test "$with_gnu_ld" != yes && break
13274 done
13275 IFS="$ac_save_ifs"
13276 else
13277 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13281 LD="$acl_cv_path_LD"
13282 if test -n "$LD"; then
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13284 $as_echo "$LD" >&6; }
13285 else
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13289 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13292 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
13294 else
13295 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13296 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13297 acl_cv_prog_gnu_ld=yes
13298 else
13299 acl_cv_prog_gnu_ld=no
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13303 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13304 with_gnu_ld=$acl_cv_prog_gnu_ld
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13309 $as_echo_n "checking for shared library run path origin... " >&6; }
13310 if test "${acl_cv_rpath+set}" = set; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13314 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13315 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13316 . ./conftest.sh
13317 rm -f ./conftest.sh
13318 acl_cv_rpath=done
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13322 $as_echo "$acl_cv_rpath" >&6; }
13323 wl="$acl_cv_wl"
13324 libext="$acl_cv_libext"
13325 shlibext="$acl_cv_shlibext"
13326 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13327 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13328 hardcode_direct="$acl_cv_hardcode_direct"
13329 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13330 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
13331 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
13332 # Check whether --enable-rpath was given.
13333 if test "${enable_rpath+set}" = set; then :
13334 enableval=$enable_rpath; :
13335 else
13336 enable_rpath=yes
13346 use_additional=yes
13348 acl_save_prefix="$prefix"
13349 prefix="$acl_final_prefix"
13350 acl_save_exec_prefix="$exec_prefix"
13351 exec_prefix="$acl_final_exec_prefix"
13353 eval additional_includedir=\"$includedir\"
13354 eval additional_libdir=\"$libdir\"
13356 exec_prefix="$acl_save_exec_prefix"
13357 prefix="$acl_save_prefix"
13360 # Check whether --with-libiconv-prefix was given.
13361 if test "${with_libiconv_prefix+set}" = set; then :
13362 withval=$with_libiconv_prefix;
13363 if test "X$withval" = "Xno"; then
13364 use_additional=no
13365 else
13366 if test "X$withval" = "X"; then
13368 acl_save_prefix="$prefix"
13369 prefix="$acl_final_prefix"
13370 acl_save_exec_prefix="$exec_prefix"
13371 exec_prefix="$acl_final_exec_prefix"
13373 eval additional_includedir=\"$includedir\"
13374 eval additional_libdir=\"$libdir\"
13376 exec_prefix="$acl_save_exec_prefix"
13377 prefix="$acl_save_prefix"
13379 else
13380 additional_includedir="$withval/include"
13381 additional_libdir="$withval/lib"
13387 LIBICONV=
13388 LTLIBICONV=
13389 INCICONV=
13390 rpathdirs=
13391 ltrpathdirs=
13392 names_already_handled=
13393 names_next_round='iconv '
13394 while test -n "$names_next_round"; do
13395 names_this_round="$names_next_round"
13396 names_next_round=
13397 for name in $names_this_round; do
13398 already_handled=
13399 for n in $names_already_handled; do
13400 if test "$n" = "$name"; then
13401 already_handled=yes
13402 break
13404 done
13405 if test -z "$already_handled"; then
13406 names_already_handled="$names_already_handled $name"
13407 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13408 eval value=\"\$HAVE_LIB$uppername\"
13409 if test -n "$value"; then
13410 if test "$value" = yes; then
13411 eval value=\"\$LIB$uppername\"
13412 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13413 eval value=\"\$LTLIB$uppername\"
13414 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13415 else
13418 else
13419 found_dir=
13420 found_la=
13421 found_so=
13422 found_a=
13423 if test $use_additional = yes; then
13424 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13425 found_dir="$additional_libdir"
13426 found_so="$additional_libdir/lib$name.$shlibext"
13427 if test -f "$additional_libdir/lib$name.la"; then
13428 found_la="$additional_libdir/lib$name.la"
13430 else
13431 if test -f "$additional_libdir/lib$name.$libext"; then
13432 found_dir="$additional_libdir"
13433 found_a="$additional_libdir/lib$name.$libext"
13434 if test -f "$additional_libdir/lib$name.la"; then
13435 found_la="$additional_libdir/lib$name.la"
13440 if test "X$found_dir" = "X"; then
13441 for x in $LDFLAGS $LTLIBICONV; do
13443 acl_save_prefix="$prefix"
13444 prefix="$acl_final_prefix"
13445 acl_save_exec_prefix="$exec_prefix"
13446 exec_prefix="$acl_final_exec_prefix"
13447 eval x=\"$x\"
13448 exec_prefix="$acl_save_exec_prefix"
13449 prefix="$acl_save_prefix"
13451 case "$x" in
13452 -L*)
13453 dir=`echo "X$x" | sed -e 's/^X-L//'`
13454 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13455 found_dir="$dir"
13456 found_so="$dir/lib$name.$shlibext"
13457 if test -f "$dir/lib$name.la"; then
13458 found_la="$dir/lib$name.la"
13460 else
13461 if test -f "$dir/lib$name.$libext"; then
13462 found_dir="$dir"
13463 found_a="$dir/lib$name.$libext"
13464 if test -f "$dir/lib$name.la"; then
13465 found_la="$dir/lib$name.la"
13470 esac
13471 if test "X$found_dir" != "X"; then
13472 break
13474 done
13476 if test "X$found_dir" != "X"; then
13477 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13478 if test "X$found_so" != "X"; then
13479 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13480 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13481 else
13482 haveit=
13483 for x in $ltrpathdirs; do
13484 if test "X$x" = "X$found_dir"; then
13485 haveit=yes
13486 break
13488 done
13489 if test -z "$haveit"; then
13490 ltrpathdirs="$ltrpathdirs $found_dir"
13492 if test "$hardcode_direct" = yes; then
13493 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13494 else
13495 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13496 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13497 haveit=
13498 for x in $rpathdirs; do
13499 if test "X$x" = "X$found_dir"; then
13500 haveit=yes
13501 break
13503 done
13504 if test -z "$haveit"; then
13505 rpathdirs="$rpathdirs $found_dir"
13507 else
13508 haveit=
13509 for x in $LDFLAGS $LIBICONV; do
13511 acl_save_prefix="$prefix"
13512 prefix="$acl_final_prefix"
13513 acl_save_exec_prefix="$exec_prefix"
13514 exec_prefix="$acl_final_exec_prefix"
13515 eval x=\"$x\"
13516 exec_prefix="$acl_save_exec_prefix"
13517 prefix="$acl_save_prefix"
13519 if test "X$x" = "X-L$found_dir"; then
13520 haveit=yes
13521 break
13523 done
13524 if test -z "$haveit"; then
13525 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13527 if test "$hardcode_minus_L" != no; then
13528 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13529 else
13530 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13535 else
13536 if test "X$found_a" != "X"; then
13537 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13538 else
13539 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13542 additional_includedir=
13543 case "$found_dir" in
13544 */lib | */lib/)
13545 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13546 additional_includedir="$basedir/include"
13548 esac
13549 if test "X$additional_includedir" != "X"; then
13550 if test "X$additional_includedir" != "X/usr/include"; then
13551 haveit=
13552 if test "X$additional_includedir" = "X/usr/local/include"; then
13553 if test -n "$GCC"; then
13554 case $host_os in
13555 linux*) haveit=yes;;
13556 esac
13559 if test -z "$haveit"; then
13560 for x in $CPPFLAGS $INCICONV; do
13562 acl_save_prefix="$prefix"
13563 prefix="$acl_final_prefix"
13564 acl_save_exec_prefix="$exec_prefix"
13565 exec_prefix="$acl_final_exec_prefix"
13566 eval x=\"$x\"
13567 exec_prefix="$acl_save_exec_prefix"
13568 prefix="$acl_save_prefix"
13570 if test "X$x" = "X-I$additional_includedir"; then
13571 haveit=yes
13572 break
13574 done
13575 if test -z "$haveit"; then
13576 if test -d "$additional_includedir"; then
13577 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13583 if test -n "$found_la"; then
13584 save_libdir="$libdir"
13585 case "$found_la" in
13586 */* | *\\*) . "$found_la" ;;
13587 *) . "./$found_la" ;;
13588 esac
13589 libdir="$save_libdir"
13590 for dep in $dependency_libs; do
13591 case "$dep" in
13592 -L*)
13593 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13594 if test "X$additional_libdir" != "X/usr/lib"; then
13595 haveit=
13596 if test "X$additional_libdir" = "X/usr/local/lib"; then
13597 if test -n "$GCC"; then
13598 case $host_os in
13599 linux*) haveit=yes;;
13600 esac
13603 if test -z "$haveit"; then
13604 haveit=
13605 for x in $LDFLAGS $LIBICONV; do
13607 acl_save_prefix="$prefix"
13608 prefix="$acl_final_prefix"
13609 acl_save_exec_prefix="$exec_prefix"
13610 exec_prefix="$acl_final_exec_prefix"
13611 eval x=\"$x\"
13612 exec_prefix="$acl_save_exec_prefix"
13613 prefix="$acl_save_prefix"
13615 if test "X$x" = "X-L$additional_libdir"; then
13616 haveit=yes
13617 break
13619 done
13620 if test -z "$haveit"; then
13621 if test -d "$additional_libdir"; then
13622 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13625 haveit=
13626 for x in $LDFLAGS $LTLIBICONV; do
13628 acl_save_prefix="$prefix"
13629 prefix="$acl_final_prefix"
13630 acl_save_exec_prefix="$exec_prefix"
13631 exec_prefix="$acl_final_exec_prefix"
13632 eval x=\"$x\"
13633 exec_prefix="$acl_save_exec_prefix"
13634 prefix="$acl_save_prefix"
13636 if test "X$x" = "X-L$additional_libdir"; then
13637 haveit=yes
13638 break
13640 done
13641 if test -z "$haveit"; then
13642 if test -d "$additional_libdir"; then
13643 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13649 -R*)
13650 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13651 if test "$enable_rpath" != no; then
13652 haveit=
13653 for x in $rpathdirs; do
13654 if test "X$x" = "X$dir"; then
13655 haveit=yes
13656 break
13658 done
13659 if test -z "$haveit"; then
13660 rpathdirs="$rpathdirs $dir"
13662 haveit=
13663 for x in $ltrpathdirs; do
13664 if test "X$x" = "X$dir"; then
13665 haveit=yes
13666 break
13668 done
13669 if test -z "$haveit"; then
13670 ltrpathdirs="$ltrpathdirs $dir"
13674 -l*)
13675 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13677 *.la)
13678 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13681 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13682 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13684 esac
13685 done
13687 else
13688 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13689 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13693 done
13694 done
13695 if test "X$rpathdirs" != "X"; then
13696 if test -n "$hardcode_libdir_separator"; then
13697 alldirs=
13698 for found_dir in $rpathdirs; do
13699 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13700 done
13701 acl_save_libdir="$libdir"
13702 libdir="$alldirs"
13703 eval flag=\"$hardcode_libdir_flag_spec\"
13704 libdir="$acl_save_libdir"
13705 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13706 else
13707 for found_dir in $rpathdirs; do
13708 acl_save_libdir="$libdir"
13709 libdir="$found_dir"
13710 eval flag=\"$hardcode_libdir_flag_spec\"
13711 libdir="$acl_save_libdir"
13712 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13713 done
13716 if test "X$ltrpathdirs" != "X"; then
13717 for found_dir in $ltrpathdirs; do
13718 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13719 done
13725 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13726 stdlib.h string.h unistd.h sys/param.h
13727 do :
13728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13729 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13730 eval as_val=\$$as_ac_Header
13731 if test "x$as_val" = x""yes; then :
13732 cat >>confdefs.h <<_ACEOF
13733 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13734 _ACEOF
13738 done
13740 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
13741 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
13742 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
13743 do :
13744 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13745 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13746 eval as_val=\$$as_ac_var
13747 if test "x$as_val" = x""yes; then :
13748 cat >>confdefs.h <<_ACEOF
13749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13750 _ACEOF
13753 done
13761 am_save_CPPFLAGS="$CPPFLAGS"
13763 for element in $INCICONV; do
13764 haveit=
13765 for x in $CPPFLAGS; do
13767 acl_save_prefix="$prefix"
13768 prefix="$acl_final_prefix"
13769 acl_save_exec_prefix="$exec_prefix"
13770 exec_prefix="$acl_final_exec_prefix"
13771 eval x=\"$x\"
13772 exec_prefix="$acl_save_exec_prefix"
13773 prefix="$acl_save_prefix"
13775 if test "X$x" = "X$element"; then
13776 haveit=yes
13777 break
13779 done
13780 if test -z "$haveit"; then
13781 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13783 done
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13787 $as_echo_n "checking for iconv... " >&6; }
13788 if test "${am_cv_func_iconv+set}" = set; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13792 am_cv_func_iconv="no, consider installing GNU libiconv"
13793 am_cv_lib_iconv=no
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796 #include <stdlib.h>
13797 #include <iconv.h>
13799 main ()
13801 iconv_t cd = iconv_open("","");
13802 iconv(cd,NULL,NULL,NULL,NULL);
13803 iconv_close(cd);
13805 return 0;
13807 _ACEOF
13808 if ac_fn_c_try_link "$LINENO"; then :
13809 am_cv_func_iconv=yes
13811 rm -f core conftest.err conftest.$ac_objext \
13812 conftest$ac_exeext conftest.$ac_ext
13813 if test "$am_cv_func_iconv" != yes; then
13814 am_save_LIBS="$LIBS"
13815 LIBS="$LIBS $LIBICONV"
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h. */
13818 #include <stdlib.h>
13819 #include <iconv.h>
13821 main ()
13823 iconv_t cd = iconv_open("","");
13824 iconv(cd,NULL,NULL,NULL,NULL);
13825 iconv_close(cd);
13827 return 0;
13829 _ACEOF
13830 if ac_fn_c_try_link "$LINENO"; then :
13831 am_cv_lib_iconv=yes
13832 am_cv_func_iconv=yes
13834 rm -f core conftest.err conftest.$ac_objext \
13835 conftest$ac_exeext conftest.$ac_ext
13836 LIBS="$am_save_LIBS"
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13841 $as_echo "$am_cv_func_iconv" >&6; }
13842 if test "$am_cv_func_iconv" = yes; then
13844 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13847 if test "$am_cv_lib_iconv" = yes; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13849 $as_echo_n "checking how to link with libiconv... " >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13851 $as_echo "$LIBICONV" >&6; }
13852 else
13853 CPPFLAGS="$am_save_CPPFLAGS"
13854 LIBICONV=
13855 LTLIBICONV=
13860 if test "$am_cv_func_iconv" = yes; then
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13862 $as_echo_n "checking for iconv declaration... " >&6; }
13863 if test "${am_cv_proto_iconv+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13870 #include <stdlib.h>
13871 #include <iconv.h>
13872 extern
13873 #ifdef __cplusplus
13875 #endif
13876 #if defined(__STDC__) || defined(__cplusplus)
13877 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13878 #else
13879 size_t iconv();
13880 #endif
13883 main ()
13887 return 0;
13889 _ACEOF
13890 if ac_fn_c_try_compile "$LINENO"; then :
13891 am_cv_proto_iconv_arg1=""
13892 else
13893 am_cv_proto_iconv_arg1="const"
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13899 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13901 }$am_cv_proto_iconv" >&5
13902 $as_echo "${ac_t:-
13903 }$am_cv_proto_iconv" >&6; }
13905 cat >>confdefs.h <<_ACEOF
13906 #define ICONV_CONST $am_cv_proto_iconv_arg1
13907 _ACEOF
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13913 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13914 if test "${am_cv_langinfo_codeset+set}" = set; then :
13915 $as_echo_n "(cached) " >&6
13916 else
13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918 /* end confdefs.h. */
13919 #include <langinfo.h>
13921 main ()
13923 char* cs = nl_langinfo(CODESET);
13925 return 0;
13927 _ACEOF
13928 if ac_fn_c_try_link "$LINENO"; then :
13929 am_cv_langinfo_codeset=yes
13930 else
13931 am_cv_langinfo_codeset=no
13933 rm -f core conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13938 $as_echo "$am_cv_langinfo_codeset" >&6; }
13939 if test $am_cv_langinfo_codeset = yes; then
13941 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13945 if test $ac_cv_header_locale_h = yes; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13948 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13949 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13954 #include <locale.h>
13956 main ()
13958 return LC_MESSAGES
13960 return 0;
13962 _ACEOF
13963 if ac_fn_c_try_link "$LINENO"; then :
13964 am_cv_val_LC_MESSAGES=yes
13965 else
13966 am_cv_val_LC_MESSAGES=no
13968 rm -f core conftest.err conftest.$ac_objext \
13969 conftest$ac_exeext conftest.$ac_ext
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13972 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13973 if test $am_cv_val_LC_MESSAGES = yes; then
13975 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13981 for ac_prog in bison
13983 # Extract the first word of "$ac_prog", so it can be a program name with args.
13984 set dummy $ac_prog; ac_word=$2
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 if test -n "$INTLBISON"; then
13991 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13992 else
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13996 IFS=$as_save_IFS
13997 test -z "$as_dir" && as_dir=.
13998 for ac_exec_ext in '' $ac_executable_extensions; do
13999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000 ac_cv_prog_INTLBISON="$ac_prog"
14001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14002 break 2
14004 done
14005 done
14006 IFS=$as_save_IFS
14010 INTLBISON=$ac_cv_prog_INTLBISON
14011 if test -n "$INTLBISON"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14013 $as_echo "$INTLBISON" >&6; }
14014 else
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016 $as_echo "no" >&6; }
14020 test -n "$INTLBISON" && break
14021 done
14023 if test -z "$INTLBISON"; then
14024 ac_verc_fail=yes
14025 else
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14027 $as_echo_n "checking version of bison... " >&6; }
14028 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14029 case $ac_prog_version in
14030 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14031 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14032 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14033 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14034 esac
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14036 $as_echo "$ac_prog_version" >&6; }
14038 if test $ac_verc_fail = yes; then
14039 INTLBISON=:
14044 # Check whether --with-language was given.
14045 if test "${with_language+set}" = set; then :
14046 withval=$with_language; if test "$withval" != "all"; then :
14047 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14067 $as_echo_n "checking whether NLS is requested... " >&6; }
14068 # Check whether --enable-nls was given.
14069 if test "${enable_nls+set}" = set; then :
14070 enableval=$enable_nls; USE_NLS=$enableval
14071 else
14072 USE_NLS=yes
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14076 $as_echo "$USE_NLS" >&6; }
14080 BUILD_INCLUDED_LIBINTL=no
14081 USE_INCLUDED_LIBINTL=no
14083 LIBINTL=
14084 LTLIBINTL=
14085 POSUB=
14087 if test "$USE_NLS" = "yes"; then
14088 gt_use_preinstalled_gnugettext=no
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14091 $as_echo_n "checking whether included gettext is requested... " >&6; }
14093 # Check whether --with-included-gettext was given.
14094 if test "${with_included_gettext+set}" = set; then :
14095 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14096 else
14097 nls_cv_force_use_gnu_gettext=no
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14101 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14103 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14104 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14112 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14113 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
14114 $as_echo_n "(cached) " >&6
14115 else
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118 #include <libintl.h>
14119 extern int _nl_msg_cat_cntr;
14120 extern int *_nl_domain_bindings;
14122 main ()
14124 bindtextdomain ("", "");
14125 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14127 return 0;
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"; then :
14131 gt_cv_func_gnugettext2_libc=yes
14132 else
14133 gt_cv_func_gnugettext2_libc=no
14135 rm -f core conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14139 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14141 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14145 use_additional=yes
14147 acl_save_prefix="$prefix"
14148 prefix="$acl_final_prefix"
14149 acl_save_exec_prefix="$exec_prefix"
14150 exec_prefix="$acl_final_exec_prefix"
14152 eval additional_includedir=\"$includedir\"
14153 eval additional_libdir=\"$libdir\"
14155 exec_prefix="$acl_save_exec_prefix"
14156 prefix="$acl_save_prefix"
14159 # Check whether --with-libintl-prefix was given.
14160 if test "${with_libintl_prefix+set}" = set; then :
14161 withval=$with_libintl_prefix;
14162 if test "X$withval" = "Xno"; then
14163 use_additional=no
14164 else
14165 if test "X$withval" = "X"; then
14167 acl_save_prefix="$prefix"
14168 prefix="$acl_final_prefix"
14169 acl_save_exec_prefix="$exec_prefix"
14170 exec_prefix="$acl_final_exec_prefix"
14172 eval additional_includedir=\"$includedir\"
14173 eval additional_libdir=\"$libdir\"
14175 exec_prefix="$acl_save_exec_prefix"
14176 prefix="$acl_save_prefix"
14178 else
14179 additional_includedir="$withval/include"
14180 additional_libdir="$withval/lib"
14186 LIBINTL=
14187 LTLIBINTL=
14188 INCINTL=
14189 rpathdirs=
14190 ltrpathdirs=
14191 names_already_handled=
14192 names_next_round='intl '
14193 while test -n "$names_next_round"; do
14194 names_this_round="$names_next_round"
14195 names_next_round=
14196 for name in $names_this_round; do
14197 already_handled=
14198 for n in $names_already_handled; do
14199 if test "$n" = "$name"; then
14200 already_handled=yes
14201 break
14203 done
14204 if test -z "$already_handled"; then
14205 names_already_handled="$names_already_handled $name"
14206 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14207 eval value=\"\$HAVE_LIB$uppername\"
14208 if test -n "$value"; then
14209 if test "$value" = yes; then
14210 eval value=\"\$LIB$uppername\"
14211 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14212 eval value=\"\$LTLIB$uppername\"
14213 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14214 else
14217 else
14218 found_dir=
14219 found_la=
14220 found_so=
14221 found_a=
14222 if test $use_additional = yes; then
14223 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14224 found_dir="$additional_libdir"
14225 found_so="$additional_libdir/lib$name.$shlibext"
14226 if test -f "$additional_libdir/lib$name.la"; then
14227 found_la="$additional_libdir/lib$name.la"
14229 else
14230 if test -f "$additional_libdir/lib$name.$libext"; then
14231 found_dir="$additional_libdir"
14232 found_a="$additional_libdir/lib$name.$libext"
14233 if test -f "$additional_libdir/lib$name.la"; then
14234 found_la="$additional_libdir/lib$name.la"
14239 if test "X$found_dir" = "X"; then
14240 for x in $LDFLAGS $LTLIBINTL; do
14242 acl_save_prefix="$prefix"
14243 prefix="$acl_final_prefix"
14244 acl_save_exec_prefix="$exec_prefix"
14245 exec_prefix="$acl_final_exec_prefix"
14246 eval x=\"$x\"
14247 exec_prefix="$acl_save_exec_prefix"
14248 prefix="$acl_save_prefix"
14250 case "$x" in
14251 -L*)
14252 dir=`echo "X$x" | sed -e 's/^X-L//'`
14253 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14254 found_dir="$dir"
14255 found_so="$dir/lib$name.$shlibext"
14256 if test -f "$dir/lib$name.la"; then
14257 found_la="$dir/lib$name.la"
14259 else
14260 if test -f "$dir/lib$name.$libext"; then
14261 found_dir="$dir"
14262 found_a="$dir/lib$name.$libext"
14263 if test -f "$dir/lib$name.la"; then
14264 found_la="$dir/lib$name.la"
14269 esac
14270 if test "X$found_dir" != "X"; then
14271 break
14273 done
14275 if test "X$found_dir" != "X"; then
14276 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14277 if test "X$found_so" != "X"; then
14278 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14279 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14280 else
14281 haveit=
14282 for x in $ltrpathdirs; do
14283 if test "X$x" = "X$found_dir"; then
14284 haveit=yes
14285 break
14287 done
14288 if test -z "$haveit"; then
14289 ltrpathdirs="$ltrpathdirs $found_dir"
14291 if test "$hardcode_direct" = yes; then
14292 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14293 else
14294 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14295 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14296 haveit=
14297 for x in $rpathdirs; do
14298 if test "X$x" = "X$found_dir"; then
14299 haveit=yes
14300 break
14302 done
14303 if test -z "$haveit"; then
14304 rpathdirs="$rpathdirs $found_dir"
14306 else
14307 haveit=
14308 for x in $LDFLAGS $LIBINTL; do
14310 acl_save_prefix="$prefix"
14311 prefix="$acl_final_prefix"
14312 acl_save_exec_prefix="$exec_prefix"
14313 exec_prefix="$acl_final_exec_prefix"
14314 eval x=\"$x\"
14315 exec_prefix="$acl_save_exec_prefix"
14316 prefix="$acl_save_prefix"
14318 if test "X$x" = "X-L$found_dir"; then
14319 haveit=yes
14320 break
14322 done
14323 if test -z "$haveit"; then
14324 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14326 if test "$hardcode_minus_L" != no; then
14327 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14328 else
14329 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14334 else
14335 if test "X$found_a" != "X"; then
14336 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14337 else
14338 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14341 additional_includedir=
14342 case "$found_dir" in
14343 */lib | */lib/)
14344 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14345 additional_includedir="$basedir/include"
14347 esac
14348 if test "X$additional_includedir" != "X"; then
14349 if test "X$additional_includedir" != "X/usr/include"; then
14350 haveit=
14351 if test "X$additional_includedir" = "X/usr/local/include"; then
14352 if test -n "$GCC"; then
14353 case $host_os in
14354 linux*) haveit=yes;;
14355 esac
14358 if test -z "$haveit"; then
14359 for x in $CPPFLAGS $INCINTL; do
14361 acl_save_prefix="$prefix"
14362 prefix="$acl_final_prefix"
14363 acl_save_exec_prefix="$exec_prefix"
14364 exec_prefix="$acl_final_exec_prefix"
14365 eval x=\"$x\"
14366 exec_prefix="$acl_save_exec_prefix"
14367 prefix="$acl_save_prefix"
14369 if test "X$x" = "X-I$additional_includedir"; then
14370 haveit=yes
14371 break
14373 done
14374 if test -z "$haveit"; then
14375 if test -d "$additional_includedir"; then
14376 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14382 if test -n "$found_la"; then
14383 save_libdir="$libdir"
14384 case "$found_la" in
14385 */* | *\\*) . "$found_la" ;;
14386 *) . "./$found_la" ;;
14387 esac
14388 libdir="$save_libdir"
14389 for dep in $dependency_libs; do
14390 case "$dep" in
14391 -L*)
14392 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14393 if test "X$additional_libdir" != "X/usr/lib"; then
14394 haveit=
14395 if test "X$additional_libdir" = "X/usr/local/lib"; then
14396 if test -n "$GCC"; then
14397 case $host_os in
14398 linux*) haveit=yes;;
14399 esac
14402 if test -z "$haveit"; then
14403 haveit=
14404 for x in $LDFLAGS $LIBINTL; do
14406 acl_save_prefix="$prefix"
14407 prefix="$acl_final_prefix"
14408 acl_save_exec_prefix="$exec_prefix"
14409 exec_prefix="$acl_final_exec_prefix"
14410 eval x=\"$x\"
14411 exec_prefix="$acl_save_exec_prefix"
14412 prefix="$acl_save_prefix"
14414 if test "X$x" = "X-L$additional_libdir"; then
14415 haveit=yes
14416 break
14418 done
14419 if test -z "$haveit"; then
14420 if test -d "$additional_libdir"; then
14421 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14424 haveit=
14425 for x in $LDFLAGS $LTLIBINTL; do
14427 acl_save_prefix="$prefix"
14428 prefix="$acl_final_prefix"
14429 acl_save_exec_prefix="$exec_prefix"
14430 exec_prefix="$acl_final_exec_prefix"
14431 eval x=\"$x\"
14432 exec_prefix="$acl_save_exec_prefix"
14433 prefix="$acl_save_prefix"
14435 if test "X$x" = "X-L$additional_libdir"; then
14436 haveit=yes
14437 break
14439 done
14440 if test -z "$haveit"; then
14441 if test -d "$additional_libdir"; then
14442 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14448 -R*)
14449 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14450 if test "$enable_rpath" != no; then
14451 haveit=
14452 for x in $rpathdirs; do
14453 if test "X$x" = "X$dir"; then
14454 haveit=yes
14455 break
14457 done
14458 if test -z "$haveit"; then
14459 rpathdirs="$rpathdirs $dir"
14461 haveit=
14462 for x in $ltrpathdirs; do
14463 if test "X$x" = "X$dir"; then
14464 haveit=yes
14465 break
14467 done
14468 if test -z "$haveit"; then
14469 ltrpathdirs="$ltrpathdirs $dir"
14473 -l*)
14474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14476 *.la)
14477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14480 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14481 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14483 esac
14484 done
14486 else
14487 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14488 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14492 done
14493 done
14494 if test "X$rpathdirs" != "X"; then
14495 if test -n "$hardcode_libdir_separator"; then
14496 alldirs=
14497 for found_dir in $rpathdirs; do
14498 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14499 done
14500 acl_save_libdir="$libdir"
14501 libdir="$alldirs"
14502 eval flag=\"$hardcode_libdir_flag_spec\"
14503 libdir="$acl_save_libdir"
14504 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14505 else
14506 for found_dir in $rpathdirs; do
14507 acl_save_libdir="$libdir"
14508 libdir="$found_dir"
14509 eval flag=\"$hardcode_libdir_flag_spec\"
14510 libdir="$acl_save_libdir"
14511 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14512 done
14515 if test "X$ltrpathdirs" != "X"; then
14516 for found_dir in $ltrpathdirs; do
14517 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14518 done
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14522 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14523 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
14524 $as_echo_n "(cached) " >&6
14525 else
14526 gt_save_CPPFLAGS="$CPPFLAGS"
14527 CPPFLAGS="$CPPFLAGS $INCINTL"
14528 gt_save_LIBS="$LIBS"
14529 LIBS="$LIBS $LIBINTL"
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 #include <libintl.h>
14533 extern int _nl_msg_cat_cntr;
14534 extern
14535 #ifdef __cplusplus
14537 #endif
14538 const char *_nl_expand_alias ();
14540 main ()
14542 bindtextdomain ("", "");
14543 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14545 return 0;
14547 _ACEOF
14548 if ac_fn_c_try_link "$LINENO"; then :
14549 gt_cv_func_gnugettext2_libintl=yes
14550 else
14551 gt_cv_func_gnugettext2_libintl=no
14553 rm -f core conftest.err conftest.$ac_objext \
14554 conftest$ac_exeext conftest.$ac_ext
14555 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14556 LIBS="$LIBS $LIBICONV"
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559 #include <libintl.h>
14560 extern int _nl_msg_cat_cntr;
14561 extern
14562 #ifdef __cplusplus
14564 #endif
14565 const char *_nl_expand_alias ();
14567 main ()
14569 bindtextdomain ("", "");
14570 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14572 return 0;
14574 _ACEOF
14575 if ac_fn_c_try_link "$LINENO"; then :
14576 LIBINTL="$LIBINTL $LIBICONV"
14577 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14578 gt_cv_func_gnugettext2_libintl=yes
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14584 CPPFLAGS="$gt_save_CPPFLAGS"
14585 LIBS="$gt_save_LIBS"
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14588 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14591 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14592 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14593 && test "$PACKAGE" != gettext; }; then
14594 gt_use_preinstalled_gnugettext=yes
14595 else
14596 LIBINTL=
14597 LTLIBINTL=
14598 INCINTL=
14602 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14603 nls_cv_use_gnu_gettext=yes
14607 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14608 INTLOBJS="\$(GETTOBJS)"
14609 BUILD_INCLUDED_LIBINTL=yes
14610 USE_INCLUDED_LIBINTL=yes
14611 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14612 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14613 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14616 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14617 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14618 CATOBJEXT=.gmo
14622 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14623 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14625 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14627 else
14628 USE_NLS=no
14632 if test "$USE_NLS" = "yes"; then
14634 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14635 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14637 $as_echo_n "checking how to link with libintl... " >&6; }
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14639 $as_echo "$LIBINTL" >&6; }
14641 for element in $INCINTL; do
14642 haveit=
14643 for x in $CPPFLAGS; do
14645 acl_save_prefix="$prefix"
14646 prefix="$acl_final_prefix"
14647 acl_save_exec_prefix="$exec_prefix"
14648 exec_prefix="$acl_final_exec_prefix"
14649 eval x=\"$x\"
14650 exec_prefix="$acl_save_exec_prefix"
14651 prefix="$acl_save_prefix"
14653 if test "X$x" = "X$element"; then
14654 haveit=yes
14655 break
14657 done
14658 if test -z "$haveit"; then
14659 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14661 done
14666 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14669 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14673 POSUB=po
14677 if test "$PACKAGE" = gettext; then
14678 BUILD_INCLUDED_LIBINTL=yes
14686 nls_cv_header_intl=
14687 nls_cv_header_libgt=
14689 DATADIRNAME=share
14692 INSTOBJEXT=.mo
14695 GENCAT=gencat
14698 INTL_LIBTOOL_SUFFIX_PREFIX=
14702 INTLLIBS="$LIBINTL"
14709 if test $USE_INCLUDED_LIBINTL = yes; then :
14710 INCINTL=-I\${top_builddir}/intl
14713 if test x$USE_NLS = xyes; then :
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
14716 $as_echo_n "checking for autopoint... " >&6; }
14717 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
14718 if test -n "$autopoint_version"; then :
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
14721 $as_echo "yes ($autopoint_version)" >&6; }
14724 else
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14727 $as_echo "no" >&6; }
14728 USE_NLS=no
14733 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14735 You need to install GNU gettext/gettext-tools to compile aMule with
14736 i18n support." >&5
14737 $as_echo "$as_me: WARNING:
14738 You need to install GNU gettext/gettext-tools to compile aMule with
14739 i18n support." >&2;}
14740 _mule_warning_13=yes
14741 _mule_has_warnings=yes
14745 if test ${USE_NLS:-no} = yes; then :
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
14748 $as_echo_n "checking for requested languages... " >&6; }
14749 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
14751 if test ${enable_amule_daemon:-no} = yes; then :
14753 if test -z "$LINGUAS"; then :
14754 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
14755 else
14757 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14758 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
14761 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
14763 else
14764 AMULE_DAEMON_MANPAGES=
14769 if test ${enable_amulecmd:-no} = yes; then :
14771 if test -z "$LINGUAS"; then :
14772 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
14773 else
14775 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14776 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
14779 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
14781 else
14782 AMULECMD_MANPAGES=
14787 if test ${enable_webserver:-no} = yes; then :
14789 if test -z "$LINGUAS"; then :
14790 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
14791 else
14793 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14794 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
14797 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
14799 else
14800 WEBSERVER_MANPAGES=
14805 if test ${enable_amule_gui:-no} = yes; then :
14807 if test -z "$LINGUAS"; then :
14808 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
14809 else
14811 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14812 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
14815 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
14817 else
14818 AMULE_GUI_MANPAGES=
14823 if test ${enable_cas:-no} = yes; then :
14825 if test -z "$LINGUAS"; then :
14826 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
14827 else
14829 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14830 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
14833 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
14835 else
14836 CAS_MANPAGES=
14841 if test ${enable_wxcas:-no} = yes; then :
14843 if test -z "$LINGUAS"; then :
14844 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
14845 else
14847 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14848 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
14851 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
14853 else
14854 WXCAS_MANPAGES=
14859 if test ${enable_ed2k:-yes} = yes; then :
14861 if test -z "$LINGUAS"; then :
14862 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
14863 else
14865 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14866 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
14869 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
14871 else
14872 ED2K_MANPAGES=
14877 if test ${enable_alc:-no} = yes; then :
14879 if test -z "$LINGUAS"; then :
14880 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
14881 else
14883 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14884 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
14887 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
14889 else
14890 ALC_MANPAGES=
14895 if test ${enable_alcc:-no} = yes; then :
14897 if test -z "$LINGUAS"; then :
14898 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
14899 else
14901 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14902 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
14905 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
14907 else
14908 ALCC_MANPAGES=
14913 if test ${enable_monolithic:-yes} = yes; then :
14915 if test -z "$LINGUAS"; then :
14916 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
14917 else
14919 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14920 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
14923 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
14925 else
14926 MONOLITHIC_MANPAGES=
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
14931 $as_echo "${LINGUAS:-all}" >&6; }
14936 ac_ext=cpp
14937 ac_cpp='$CXXCPP $CPPFLAGS'
14938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14944 # Check for bfd.h (to have proper backtraces without using wxExecute)
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
14947 $as_echo_n "checking for bfd... " >&6; }
14948 result=no
14949 for bfd_ldadd in "" "${LIBINTL}" "-ldl" "-ldl ${LIBINTL}"; do
14950 mule_backup_LIBS="$LIBS"
14951 mule_backup_LDFLAGS="$LDFLAGS"
14952 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
14953 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14958 #include <ansidecl.h>
14959 #include <bfd.h>
14962 main ()
14965 const char *dummy = bfd_errmsg(bfd_get_error());
14968 return 0;
14971 _ACEOF
14972 if ac_fn_cxx_try_link "$LINENO"; then :
14974 result=yes
14975 BFD_CPPFLAGS="-DHAVE_BFD"
14976 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
14977 LIBS="$mule_backup_LIBS"
14978 LDFLAGS="$mule_backup_LDFLAGS"
14979 break
14982 rm -f core conftest.err conftest.$ac_objext \
14983 conftest$ac_exeext conftest.$ac_ext
14984 LIBS="$mule_backup_LIBS"
14985 LDFLAGS="$mule_backup_LDFLAGS"
14986 done
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14989 $as_echo "$result" >&6; }
14991 if test $result = no; then :
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14993 bfd.h not found or unusable, please install binutils development
14994 package if you are a developer or want to help testing aMule" >&5
14995 $as_echo "$as_me: WARNING:
14996 bfd.h not found or unusable, please install binutils development
14997 package if you are a developer or want to help testing aMule" >&2;}
14998 _mule_warning_14=yes
14999 _mule_has_warnings=yes
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15006 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15011 #include <execinfo.h>
15014 main ()
15017 void *bt[1];
15018 int n = backtrace((void **)&bt, 1);
15019 char **bt_syms = backtrace_symbols(bt, n);
15022 return 0;
15025 _ACEOF
15026 if ac_fn_cxx_try_link "$LINENO"; then :
15029 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15032 $as_echo "yes" >&6; }
15034 else
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037 $as_echo "no" >&6; }
15040 rm -f core conftest.err conftest.$ac_objext \
15041 conftest$ac_exeext conftest.$ac_ext
15045 # aMule plasma widget
15046 if test ${enable_plasmamule:-no} = yes; then :
15049 if test -z ${QT_MOC}; then :
15051 for ac_prog in moc-qt4 moc
15053 # Extract the first word of "$ac_prog", so it can be a program name with args.
15054 set dummy $ac_prog; ac_word=$2
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15056 $as_echo_n "checking for $ac_word... " >&6; }
15057 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15058 $as_echo_n "(cached) " >&6
15059 else
15060 case $QT_MOC in
15061 [\\/]* | ?:[\\/]*)
15062 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15066 for as_dir in $PATH
15068 IFS=$as_save_IFS
15069 test -z "$as_dir" && as_dir=.
15070 for ac_exec_ext in '' $ac_executable_extensions; do
15071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15072 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15074 break 2
15076 done
15077 done
15078 IFS=$as_save_IFS
15081 esac
15083 QT_MOC=$ac_cv_path_QT_MOC
15084 if test -n "$QT_MOC"; then
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15086 $as_echo "$QT_MOC" >&6; }
15087 else
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15089 $as_echo "no" >&6; }
15093 test -n "$QT_MOC" && break
15094 done
15096 if test -z ${QT_MOC}; then :
15098 echo moc not found
15099 exit 1
15103 else
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15106 $as_echo_n "checking for moc... " >&6; }
15107 if test -x ${QT_MOC}; then :
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15110 $as_echo "${QT_MOC}" >&6; }
15113 else
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15116 $as_echo "\"not found\"" >&6; }
15117 QT_MOC="not found"
15118 exit 1
15125 if test "${QT_MOC}" != "not found"; then :
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15128 $as_echo_n "checking for moc version >= 4... " >&6; }
15129 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15130 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15133 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15135 else
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15138 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15139 QT_MOC="not found"
15140 exit 1
15146 if test "${QT_MOC}" = "not found"; then :
15147 enable_plasmamule=disabled
15150 if test ${enable_plasmamule:-no} = yes; then :
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15155 $as_echo_n "checking for qt... " >&6; }
15156 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15159 $as_echo "found" >&6; }
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15161 $as_echo_n "checking for qt core cflags... " >&6; }
15162 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15164 $as_echo "$QT_CORE_CFLAGS" >&6; }
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15166 $as_echo_n "checking for qt core libs... " >&6; }
15167 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15169 $as_echo "$QT_CORE_LIBS" >&6; }
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15171 $as_echo_n "checking for qt gui cflags... " >&6; }
15172 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15174 $as_echo "$QT_GUI_CFLAGS" >&6; }
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15176 $as_echo_n "checking for qt gui libs... " >&6; }
15177 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15179 $as_echo "$QT_GUI_LIBS" >&6; }
15181 else
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15183 $as_echo "not found" >&6; }
15184 exit 1
15188 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15190 QT_DBUS_LDFLAGS="-lQtDBus"
15200 if test -z "${QT_CORE_CXXFLAGS}"; then :
15201 enable_plasmamule=disabled
15206 if test ${enable_plasmamule:-no} = yes; then :
15209 if test -z ${KDE4_CONFIG}; then :
15211 # Extract the first word of "kde4-config", so it can be a program name with args.
15212 set dummy kde4-config; ac_word=$2
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15214 $as_echo_n "checking for $ac_word... " >&6; }
15215 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218 case $KDE4_CONFIG in
15219 [\\/]* | ?:[\\/]*)
15220 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15224 for as_dir in $PATH
15226 IFS=$as_save_IFS
15227 test -z "$as_dir" && as_dir=.
15228 for ac_exec_ext in '' $ac_executable_extensions; do
15229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15230 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15232 break 2
15234 done
15235 done
15236 IFS=$as_save_IFS
15239 esac
15241 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15242 if test -n "$KDE4_CONFIG"; then
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15244 $as_echo "$KDE4_CONFIG" >&6; }
15245 else
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15247 $as_echo "no" >&6; }
15252 else
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15255 $as_echo_n "checking for kde4-config... " >&6; }
15256 if test ! -x KDE4_CONFIG; then :
15258 KDE4_CONFIG="not found"
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15260 $as_echo "not found" >&6; }
15261 exit 1
15267 if test "${KDE4_CONFIG}" != "not found"; then :
15269 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15270 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15273 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15275 else
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15278 $as_echo "at least version 4 required" >&6; }
15279 exit 1
15283 else
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15286 $as_echo "not found" >&6; }
15287 exit 1
15292 if test "${KDE4_CONFIG}" = "not found"; then :
15293 enable_plasmamule=disabled
15298 if test ${enable_plasmamule:-no} = yes; then :
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15302 $as_echo_n "checking for kde4 headers... " >&6; }
15303 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15305 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15307 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15310 $as_echo "${KDE_HEADER_DIR}" >&6; }
15312 else
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15315 $as_echo "dataengine.h not found" >&6; }
15316 exit 1
15320 else
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15323 $as_echo "kdirwatch.h not found" >&6; }
15324 exit 1
15329 if test -z ${KDE_HEADER_DIR}; then :
15330 enable_plasmamule=disabled
15335 if test ${enable_plasmamule:-no} = yes; then :
15337 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15338 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15343 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15344 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15346 KDE_IN_HOME="yes"
15349 if test ${KDE_IN_HOME} = "yes"; then :
15351 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15353 else
15355 if test -n ${prefix}; then :
15357 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15358 if test -n ${KDE_APPLNK_PATH}; then :
15360 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15364 else
15366 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15372 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15378 $as_echo_n "checking for kde4 services Path... " >&6; }
15379 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15381 KDE_IN_HOME="yes"
15384 if test ${KDE_IN_HOME} = "yes"; then :
15386 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15388 else
15390 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15394 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15400 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15401 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15403 KDE_IN_HOME="yes"
15406 if test ${KDE_IN_HOME} = "yes"; then :
15408 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15410 else
15412 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15416 $as_echo "${KDE_MODULE_PATH}" >&6; }
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15422 $as_echo_n "checking for kde4 icons Path... " >&6; }
15423 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15425 KDE_IN_HOME="yes"
15428 if test ${KDE_IN_HOME} = "yes"; then :
15430 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15432 else
15434 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15437 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15439 $as_echo "${KDE_ICON_PATH}" >&6; }
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15445 $as_echo_n "checking for location for mime-type installation... " >&6; }
15446 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15448 KDE_IN_HOME="yes"
15451 if test ${KDE_IN_HOME} = "yes"; then :
15453 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15455 else
15457 if test -n ${prefix}; then :
15459 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15460 if test -n ${KDE_MIME_PATH}; then :
15462 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15466 else
15468 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15474 $as_echo "${KDE_MIME_PATH}" >&6; }
15478 else
15479 enable_plasmamule=disabled
15484 if test ${enable_debug:-yes} = yes; then :
15486 DEBUGFLAG="-D__DEBUG__"
15494 # Check for readline library
15495 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
15498 $as_echo_n "checking for a readline compatible library... " >&6; }
15499 if test "${vl_cv_lib_readline+set}" = set; then :
15500 $as_echo_n "(cached) " >&6
15501 else
15503 ORIG_LIBS="$LIBS"
15504 for readline_lib in readline edit editline; do
15505 for termcap_lib in "" termcap curses ncurses; do
15506 if test -z "$termcap_lib"; then
15507 TRY_LIB="-l$readline_lib"
15508 else
15509 TRY_LIB="-l$readline_lib -l$termcap_lib"
15511 LIBS="$ORIG_LIBS $TRY_LIB"
15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15515 /* Override any GCC internal prototype to avoid an error.
15516 Use char because int might match the return type of a GCC
15517 builtin and then its argument prototype would still apply. */
15518 #ifdef __cplusplus
15519 extern "C"
15520 #endif
15521 char readline ();
15523 main ()
15525 return readline ();
15527 return 0;
15529 _ACEOF
15530 if ac_fn_cxx_try_link "$LINENO"; then :
15531 vl_cv_lib_readline="$TRY_LIB"
15533 rm -f core conftest.err conftest.$ac_objext \
15534 conftest$ac_exeext conftest.$ac_ext
15535 if test -n "$vl_cv_lib_readline"; then
15536 break
15538 done
15539 if test -n "$vl_cv_lib_readline"; then
15540 break
15542 done
15543 if test -z "$vl_cv_lib_readline"; then
15544 vl_cv_lib_readline="no"
15545 LIBS="$ORIG_LIBS"
15546 READLINE_LIBS=""
15547 else
15548 READLINE_LIBS="$vl_cv_lib_readline"
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
15553 $as_echo "$vl_cv_lib_readline" >&6; }
15555 if test "$vl_cv_lib_readline" != "no"; then
15557 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15559 for ac_header in readline.h readline/readline.h
15560 do :
15561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15562 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15563 eval as_val=\$$as_ac_Header
15564 if test "x$as_val" = x""yes; then :
15565 cat >>confdefs.h <<_ACEOF
15566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15567 _ACEOF
15571 done
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15574 $as_echo_n "checking whether readline supports history... " >&6; }
15575 if test "${vl_cv_lib_readline_history+set}" = set; then :
15576 $as_echo_n "(cached) " >&6
15577 else
15579 vl_cv_lib_readline_history="no"
15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15583 /* Override any GCC internal prototype to avoid an error.
15584 Use char because int might match the return type of a GCC
15585 builtin and then its argument prototype would still apply. */
15586 #ifdef __cplusplus
15587 extern "C"
15588 #endif
15589 char add_history ();
15591 main ()
15593 return add_history ();
15595 return 0;
15597 _ACEOF
15598 if ac_fn_cxx_try_link "$LINENO"; then :
15599 vl_cv_lib_readline_history="yes"
15601 rm -f core conftest.err conftest.$ac_objext \
15602 conftest$ac_exeext conftest.$ac_ext
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
15606 $as_echo "$vl_cv_lib_readline_history" >&6; }
15607 if test "$vl_cv_lib_readline_history" = "yes"; then
15609 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15611 for ac_header in history.h readline/history.h
15612 do :
15613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15614 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15615 eval as_val=\$$as_ac_Header
15616 if test "x$as_val" = x""yes; then :
15617 cat >>confdefs.h <<_ACEOF
15618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15619 _ACEOF
15623 done
15628 LIBS="$ORIG_LIBS"
15633 ac_ext=c
15634 ac_cpp='$CPP $CPPFLAGS'
15635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15640 # Check for strerror_r
15641 mule_backup_CPPFLAGS="$CPPFLAGS"
15642 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
15643 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
15644 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
15645 ac_have_decl=1
15646 else
15647 ac_have_decl=0
15650 cat >>confdefs.h <<_ACEOF
15651 #define HAVE_DECL_STRERROR_R $ac_have_decl
15652 _ACEOF
15654 for ac_func in strerror_r
15655 do :
15656 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
15657 if test "x$ac_cv_func_strerror_r" = x""yes; then :
15658 cat >>confdefs.h <<_ACEOF
15659 #define HAVE_STRERROR_R 1
15660 _ACEOF
15663 done
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15666 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
15667 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
15668 $as_echo_n "(cached) " >&6
15669 else
15671 ac_cv_func_strerror_r_char_p=no
15672 if test $ac_cv_have_decl_strerror_r = yes; then
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675 $ac_includes_default
15677 main ()
15680 char buf[100];
15681 char x = *strerror_r (0, buf, sizeof buf);
15682 char *p = strerror_r (0, buf, sizeof buf);
15683 return !p || x;
15686 return 0;
15688 _ACEOF
15689 if ac_fn_c_try_compile "$LINENO"; then :
15690 ac_cv_func_strerror_r_char_p=yes
15692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15693 else
15694 # strerror_r is not declared. Choose between
15695 # systems that have relatively inaccessible declarations for the
15696 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
15697 # former has a strerror_r that returns char*, while the latter
15698 # has a strerror_r that returns `int'.
15699 # This test should segfault on the DEC system.
15700 if test "$cross_compiling" = yes; then :
15702 else
15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15705 $ac_includes_default
15706 extern char *strerror_r ();
15708 main ()
15710 char buf[100];
15711 char x = *strerror_r (0, buf, sizeof buf);
15712 return ! isalpha (x);
15714 return 0;
15716 _ACEOF
15717 if ac_fn_c_try_run "$LINENO"; then :
15718 ac_cv_func_strerror_r_char_p=yes
15720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15721 conftest.$ac_objext conftest.beam conftest.$ac_ext
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15728 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
15729 if test $ac_cv_func_strerror_r_char_p = yes; then
15731 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
15735 CPPFLAGS="$mule_backup_CPPFLAGS"
15738 # Other tests
15740 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
15742 $as_echo_n "checking for docdir... " >&6; }
15743 if test -z "$docdir"; then :
15744 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
15747 $as_echo "$docdir" >&6; }
15750 # Try to set the SVN checkout-date
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
15752 $as_echo_n "checking for SVNDATE... " >&6; }
15753 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
15754 then
15755 svndate="rev. `cat $srcdir/.svn-revision`"
15756 elif test -d $srcdir/.svn # SVNDATE for svn
15757 then
15758 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
15761 $as_echo "${svndate:-None required}" >&6; }
15762 if test -n "$svndate"; then :
15765 cat >>confdefs.h <<_ACEOF
15766 #define SVNDATE "$svndate"
15767 _ACEOF
15769 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
15772 SVNDATE=$svndate
15777 # Check whether --with-denoise-level was given.
15778 if test "${with_denoise_level+set}" = set; then :
15779 withval=$with_denoise_level;
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
15784 $as_echo_n "checking denoising level... " >&6; }
15785 if test ${with_denoise_level:-5} = yes; then :
15786 with_denoise_level=5
15788 if test ${with_denoise_level:-5} = no; then :
15789 with_denoise_level=0
15791 if test ${with_denoise_level:-5} -gt 4; then :
15792 if test "${svndate:+set}" = "set"; then :
15793 with_denoise_level=0
15794 else
15795 with_denoise_level=4
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
15799 $as_echo "$with_denoise_level" >&6; }
15801 ac_config_commands="$ac_config_commands denoiser"
15806 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15808 # Check whether --enable-ccache was given.
15809 if test "${enable_ccache+set}" = set; then :
15810 enableval=$enable_ccache;
15816 # Check whether --with-ccache-prefix was given.
15817 if test "${with_ccache_prefix+set}" = set; then :
15818 withval=$with_ccache_prefix;
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
15823 $as_echo_n "checking whether ccache support should be added... " >&6; }
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15825 $as_echo "${enable_ccache:-no}" >&6; }
15827 if test ${enable_ccache:-no} = yes; then :
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
15830 $as_echo_n "checking for ccache presence... " >&6; }
15831 if test -z "$with_ccache_prefix"; then :
15833 ccache_full=`which ccache`
15834 with_ccache_prefix=`dirname ${ccache_full}`
15837 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
15839 CC="$with_ccache_prefix/ccache $CC"
15840 CXX="$with_ccache_prefix/ccache $CXX"
15841 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
15843 else
15844 enable_ccache=no
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15847 $as_echo "${enable_ccache:-no}" >&6; }
15854 if test x$SYS = xwin32; then
15855 SYS_WIN32_TRUE=
15856 SYS_WIN32_FALSE='#'
15857 else
15858 SYS_WIN32_TRUE='#'
15859 SYS_WIN32_FALSE=
15862 if test x$SYS = xwin32 -a "$RC" != ":"; then
15863 NEED_RC_TRUE=
15864 NEED_RC_FALSE='#'
15865 else
15866 NEED_RC_TRUE='#'
15867 NEED_RC_FALSE=
15870 if test x$SYS = xdarwin; then
15871 NEED_CORESERVICES_TRUE=
15872 NEED_CORESERVICES_FALSE='#'
15873 else
15874 NEED_CORESERVICES_TRUE='#'
15875 NEED_CORESERVICES_FALSE=
15878 if test x$USE_NLS = xyes; then
15879 COMPILE_NLS_TRUE=
15880 COMPILE_NLS_FALSE='#'
15881 else
15882 COMPILE_NLS_TRUE='#'
15883 COMPILE_NLS_FALSE=
15886 if test x$HAVE_FLEX_EXTENDED = xyes; then
15887 GENERATE_FLEX_HEADER_TRUE=
15888 GENERATE_FLEX_HEADER_FALSE='#'
15889 else
15890 GENERATE_FLEX_HEADER_TRUE='#'
15891 GENERATE_FLEX_HEADER_FALSE=
15894 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
15895 INSTALL_SKINS_TRUE=
15896 INSTALL_SKINS_FALSE='#'
15897 else
15898 INSTALL_SKINS_TRUE='#'
15899 INSTALL_SKINS_FALSE=
15902 if test ${enable_plasmamule:-no} = yes; then
15903 PLASMAMULE_TRUE=
15904 PLASMAMULE_FALSE='#'
15905 else
15906 PLASMAMULE_TRUE='#'
15907 PLASMAMULE_FALSE=
15911 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then
15912 COMPILE_LIB_COMMON_TRUE=
15913 COMPILE_LIB_COMMON_FALSE='#'
15914 else
15915 COMPILE_LIB_COMMON_TRUE='#'
15916 COMPILE_LIB_COMMON_FALSE=
15919 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then
15920 COMPILE_LIB_EC_TRUE=
15921 COMPILE_LIB_EC_FALSE='#'
15922 else
15923 COMPILE_LIB_EC_TRUE='#'
15924 COMPILE_LIB_EC_FALSE=
15928 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile po/Makefile.in src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
15931 if test x$SYS = xwin32; then :
15932 ac_config_files="$ac_config_files version.rc"
15935 cat >confcache <<\_ACEOF
15936 # This file is a shell script that caches the results of configure
15937 # tests run on this system so they can be shared between configure
15938 # scripts and configure runs, see configure's option --config-cache.
15939 # It is not useful on other systems. If it contains results you don't
15940 # want to keep, you may remove or edit it.
15942 # config.status only pays attention to the cache file if you give it
15943 # the --recheck option to rerun configure.
15945 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15946 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15947 # following values.
15949 _ACEOF
15951 # The following way of writing the cache mishandles newlines in values,
15952 # but we know of no workaround that is simple, portable, and efficient.
15953 # So, we kill variables containing newlines.
15954 # Ultrix sh set writes to stderr and can't be redirected directly,
15955 # and sets the high bit in the cache file unless we assign to the vars.
15957 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15958 eval ac_val=\$$ac_var
15959 case $ac_val in #(
15960 *${as_nl}*)
15961 case $ac_var in #(
15962 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15963 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15964 esac
15965 case $ac_var in #(
15966 _ | IFS | as_nl) ;; #(
15967 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15968 *) { eval $ac_var=; unset $ac_var;} ;;
15969 esac ;;
15970 esac
15971 done
15973 (set) 2>&1 |
15974 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15975 *${as_nl}ac_space=\ *)
15976 # `set' does not quote correctly, so add quotes: double-quote
15977 # substitution turns \\\\ into \\, and sed turns \\ into \.
15978 sed -n \
15979 "s/'/'\\\\''/g;
15980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15981 ;; #(
15983 # `set' quotes correctly as required by POSIX, so do not add quotes.
15984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15986 esac |
15987 sort
15989 sed '
15990 /^ac_cv_env_/b end
15991 t clear
15992 :clear
15993 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15994 t end
15995 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15996 :end' >>confcache
15997 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15998 if test -w "$cache_file"; then
15999 test "x$cache_file" != "x/dev/null" &&
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16001 $as_echo "$as_me: updating cache $cache_file" >&6;}
16002 cat confcache >$cache_file
16003 else
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16005 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16008 rm -f confcache
16010 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16011 # Let make expand exec_prefix.
16012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16014 DEFS=-DHAVE_CONFIG_H
16016 ac_libobjs=
16017 ac_ltlibobjs=
16018 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16019 # 1. Remove the extension, and $U if already installed.
16020 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16021 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16022 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16023 # will be set to the directory where LIBOBJS objects are built.
16024 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16025 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16026 done
16027 LIBOBJS=$ac_libobjs
16029 LTLIBOBJS=$ac_ltlibobjs
16032 if test -n "$EXEEXT"; then
16033 am__EXEEXT_TRUE=
16034 am__EXEEXT_FALSE='#'
16035 else
16036 am__EXEEXT_TRUE='#'
16037 am__EXEEXT_FALSE=
16040 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16041 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16044 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16045 as_fn_error "conditional \"AMDEP\" was never defined.
16046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16048 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16049 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16052 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16053 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16056 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16057 as_fn_error "conditional \"MONOLITHIC\" was never defined.
16058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16060 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16061 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
16062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16064 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16065 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
16066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16068 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16069 as_fn_error "conditional \"WEB\" was never defined.
16070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16072 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16073 as_fn_error "conditional \"AMULE_GUI\" was never defined.
16074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16076 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16077 as_fn_error "conditional \"CAS\" was never defined.
16078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16080 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16081 as_fn_error "conditional \"WXCAS\" was never defined.
16082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16084 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16085 as_fn_error "conditional \"ED2K\" was never defined.
16086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16088 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16089 as_fn_error "conditional \"ALC\" was never defined.
16090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16092 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16093 as_fn_error "conditional \"ALCC\" was never defined.
16094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16096 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16097 as_fn_error "conditional \"XAS\" was never defined.
16098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16100 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16101 as_fn_error "conditional \"FILEVIEW\" was never defined.
16102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16104 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16105 as_fn_error "conditional \"SYS_WIN32\" was never defined.
16106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16108 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16109 as_fn_error "conditional \"NEED_RC\" was never defined.
16110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16112 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16113 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
16114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16116 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16117 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
16118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16120 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
16121 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
16122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16124 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16125 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
16126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16128 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16129 as_fn_error "conditional \"PLASMAMULE\" was never defined.
16130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16132 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16133 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
16134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16136 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16137 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
16138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16141 : ${CONFIG_STATUS=./config.status}
16142 ac_write_fail=0
16143 ac_clean_files_save=$ac_clean_files
16144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16146 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16147 as_write_fail=0
16148 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16149 #! $SHELL
16150 # Generated by $as_me.
16151 # Run this file to recreate the current configuration.
16152 # Compiler output produced by configure, useful for debugging
16153 # configure, is in config.log if it exists.
16155 debug=false
16156 ac_cs_recheck=false
16157 ac_cs_silent=false
16159 SHELL=\${CONFIG_SHELL-$SHELL}
16160 export SHELL
16161 _ASEOF
16162 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16163 ## -------------------- ##
16164 ## M4sh Initialization. ##
16165 ## -------------------- ##
16167 # Be more Bourne compatible
16168 DUALCASE=1; export DUALCASE # for MKS sh
16169 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16170 emulate sh
16171 NULLCMD=:
16172 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16173 # is contrary to our usage. Disable this feature.
16174 alias -g '${1+"$@"}'='"$@"'
16175 setopt NO_GLOB_SUBST
16176 else
16177 case `(set -o) 2>/dev/null` in #(
16178 *posix*) :
16179 set -o posix ;; #(
16180 *) :
16182 esac
16186 as_nl='
16188 export as_nl
16189 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16190 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16193 # Prefer a ksh shell builtin over an external printf program on Solaris,
16194 # but without wasting forks for bash or zsh.
16195 if test -z "$BASH_VERSION$ZSH_VERSION" \
16196 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16197 as_echo='print -r --'
16198 as_echo_n='print -rn --'
16199 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16200 as_echo='printf %s\n'
16201 as_echo_n='printf %s'
16202 else
16203 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16204 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16205 as_echo_n='/usr/ucb/echo -n'
16206 else
16207 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16208 as_echo_n_body='eval
16209 arg=$1;
16210 case $arg in #(
16211 *"$as_nl"*)
16212 expr "X$arg" : "X\\(.*\\)$as_nl";
16213 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16214 esac;
16215 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16217 export as_echo_n_body
16218 as_echo_n='sh -c $as_echo_n_body as_echo'
16220 export as_echo_body
16221 as_echo='sh -c $as_echo_body as_echo'
16224 # The user is always right.
16225 if test "${PATH_SEPARATOR+set}" != set; then
16226 PATH_SEPARATOR=:
16227 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16228 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16229 PATH_SEPARATOR=';'
16234 # IFS
16235 # We need space, tab and new line, in precisely that order. Quoting is
16236 # there to prevent editors from complaining about space-tab.
16237 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16238 # splitting by setting IFS to empty value.)
16239 IFS=" "" $as_nl"
16241 # Find who we are. Look in the path if we contain no directory separator.
16242 case $0 in #((
16243 *[\\/]* ) as_myself=$0 ;;
16244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16245 for as_dir in $PATH
16247 IFS=$as_save_IFS
16248 test -z "$as_dir" && as_dir=.
16249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16250 done
16251 IFS=$as_save_IFS
16254 esac
16255 # We did not find ourselves, most probably we were run as `sh COMMAND'
16256 # in which case we are not to be found in the path.
16257 if test "x$as_myself" = x; then
16258 as_myself=$0
16260 if test ! -f "$as_myself"; then
16261 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16262 exit 1
16265 # Unset variables that we do not need and which cause bugs (e.g. in
16266 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16267 # suppresses any "Segmentation fault" message there. '((' could
16268 # trigger a bug in pdksh 5.2.14.
16269 for as_var in BASH_ENV ENV MAIL MAILPATH
16270 do eval test x\${$as_var+set} = xset \
16271 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16272 done
16273 PS1='$ '
16274 PS2='> '
16275 PS4='+ '
16277 # NLS nuisances.
16278 LC_ALL=C
16279 export LC_ALL
16280 LANGUAGE=C
16281 export LANGUAGE
16283 # CDPATH.
16284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16287 # as_fn_error ERROR [LINENO LOG_FD]
16288 # ---------------------------------
16289 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16290 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16291 # script with status $?, using 1 if that was 0.
16292 as_fn_error ()
16294 as_status=$?; test $as_status -eq 0 && as_status=1
16295 if test "$3"; then
16296 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16297 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16299 $as_echo "$as_me: error: $1" >&2
16300 as_fn_exit $as_status
16301 } # as_fn_error
16304 # as_fn_set_status STATUS
16305 # -----------------------
16306 # Set $? to STATUS, without forking.
16307 as_fn_set_status ()
16309 return $1
16310 } # as_fn_set_status
16312 # as_fn_exit STATUS
16313 # -----------------
16314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16315 as_fn_exit ()
16317 set +e
16318 as_fn_set_status $1
16319 exit $1
16320 } # as_fn_exit
16322 # as_fn_unset VAR
16323 # ---------------
16324 # Portably unset VAR.
16325 as_fn_unset ()
16327 { eval $1=; unset $1;}
16329 as_unset=as_fn_unset
16330 # as_fn_append VAR VALUE
16331 # ----------------------
16332 # Append the text in VALUE to the end of the definition contained in VAR. Take
16333 # advantage of any shell optimizations that allow amortized linear growth over
16334 # repeated appends, instead of the typical quadratic growth present in naive
16335 # implementations.
16336 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16337 eval 'as_fn_append ()
16339 eval $1+=\$2
16341 else
16342 as_fn_append ()
16344 eval $1=\$$1\$2
16346 fi # as_fn_append
16348 # as_fn_arith ARG...
16349 # ------------------
16350 # Perform arithmetic evaluation on the ARGs, and store the result in the
16351 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16352 # must be portable across $(()) and expr.
16353 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16354 eval 'as_fn_arith ()
16356 as_val=$(( $* ))
16358 else
16359 as_fn_arith ()
16361 as_val=`expr "$@" || test $? -eq 1`
16363 fi # as_fn_arith
16366 if expr a : '\(a\)' >/dev/null 2>&1 &&
16367 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16368 as_expr=expr
16369 else
16370 as_expr=false
16373 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16374 as_basename=basename
16375 else
16376 as_basename=false
16379 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16380 as_dirname=dirname
16381 else
16382 as_dirname=false
16385 as_me=`$as_basename -- "$0" ||
16386 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16387 X"$0" : 'X\(//\)$' \| \
16388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16389 $as_echo X/"$0" |
16390 sed '/^.*\/\([^/][^/]*\)\/*$/{
16391 s//\1/
16394 /^X\/\(\/\/\)$/{
16395 s//\1/
16398 /^X\/\(\/\).*/{
16399 s//\1/
16402 s/.*/./; q'`
16404 # Avoid depending upon Character Ranges.
16405 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16406 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16407 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16408 as_cr_digits='0123456789'
16409 as_cr_alnum=$as_cr_Letters$as_cr_digits
16411 ECHO_C= ECHO_N= ECHO_T=
16412 case `echo -n x` in #(((((
16413 -n*)
16414 case `echo 'xy\c'` in
16415 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16416 xy) ECHO_C='\c';;
16417 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16418 ECHO_T=' ';;
16419 esac;;
16421 ECHO_N='-n';;
16422 esac
16424 rm -f conf$$ conf$$.exe conf$$.file
16425 if test -d conf$$.dir; then
16426 rm -f conf$$.dir/conf$$.file
16427 else
16428 rm -f conf$$.dir
16429 mkdir conf$$.dir 2>/dev/null
16431 if (echo >conf$$.file) 2>/dev/null; then
16432 if ln -s conf$$.file conf$$ 2>/dev/null; then
16433 as_ln_s='ln -s'
16434 # ... but there are two gotchas:
16435 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16436 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16437 # In both cases, we have to default to `cp -p'.
16438 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16439 as_ln_s='cp -p'
16440 elif ln conf$$.file conf$$ 2>/dev/null; then
16441 as_ln_s=ln
16442 else
16443 as_ln_s='cp -p'
16445 else
16446 as_ln_s='cp -p'
16448 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16449 rmdir conf$$.dir 2>/dev/null
16452 # as_fn_mkdir_p
16453 # -------------
16454 # Create "$as_dir" as a directory, including parents if necessary.
16455 as_fn_mkdir_p ()
16458 case $as_dir in #(
16459 -*) as_dir=./$as_dir;;
16460 esac
16461 test -d "$as_dir" || eval $as_mkdir_p || {
16462 as_dirs=
16463 while :; do
16464 case $as_dir in #(
16465 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16466 *) as_qdir=$as_dir;;
16467 esac
16468 as_dirs="'$as_qdir' $as_dirs"
16469 as_dir=`$as_dirname -- "$as_dir" ||
16470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16471 X"$as_dir" : 'X\(//\)[^/]' \| \
16472 X"$as_dir" : 'X\(//\)$' \| \
16473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16474 $as_echo X"$as_dir" |
16475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16476 s//\1/
16479 /^X\(\/\/\)[^/].*/{
16480 s//\1/
16483 /^X\(\/\/\)$/{
16484 s//\1/
16487 /^X\(\/\).*/{
16488 s//\1/
16491 s/.*/./; q'`
16492 test -d "$as_dir" && break
16493 done
16494 test -z "$as_dirs" || eval "mkdir $as_dirs"
16495 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16498 } # as_fn_mkdir_p
16499 if mkdir -p . 2>/dev/null; then
16500 as_mkdir_p='mkdir -p "$as_dir"'
16501 else
16502 test -d ./-p && rmdir ./-p
16503 as_mkdir_p=false
16506 if test -x / >/dev/null 2>&1; then
16507 as_test_x='test -x'
16508 else
16509 if ls -dL / >/dev/null 2>&1; then
16510 as_ls_L_option=L
16511 else
16512 as_ls_L_option=
16514 as_test_x='
16515 eval sh -c '\''
16516 if test -d "$1"; then
16517 test -d "$1/.";
16518 else
16519 case $1 in #(
16520 -*)set "./$1";;
16521 esac;
16522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16523 ???[sx]*):;;*)false;;esac;fi
16524 '\'' sh
16527 as_executable_p=$as_test_x
16529 # Sed expression to map a string onto a valid CPP name.
16530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16532 # Sed expression to map a string onto a valid variable name.
16533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16536 exec 6>&1
16537 ## ----------------------------------- ##
16538 ## Main body of $CONFIG_STATUS script. ##
16539 ## ----------------------------------- ##
16540 _ASEOF
16541 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16544 # Save the log message, to keep $0 and so on meaningful, and to
16545 # report actual input values of CONFIG_FILES etc. instead of their
16546 # values after options handling.
16547 ac_log="
16548 This file was extended by aMule $as_me SVN, which was
16549 generated by GNU Autoconf 2.65. Invocation command line was
16551 CONFIG_FILES = $CONFIG_FILES
16552 CONFIG_HEADERS = $CONFIG_HEADERS
16553 CONFIG_LINKS = $CONFIG_LINKS
16554 CONFIG_COMMANDS = $CONFIG_COMMANDS
16555 $ $0 $@
16557 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16560 _ACEOF
16562 case $ac_config_files in *"
16563 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16564 esac
16566 case $ac_config_headers in *"
16567 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16568 esac
16571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16572 # Files that config.status was made for.
16573 config_files="$ac_config_files"
16574 config_headers="$ac_config_headers"
16575 config_commands="$ac_config_commands"
16577 _ACEOF
16579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16580 ac_cs_usage="\
16581 \`$as_me' instantiates files and other configuration actions
16582 from templates according to the current configuration. Unless the files
16583 and actions are specified as TAGs, all are instantiated by default.
16585 Usage: $0 [OPTION]... [TAG]...
16587 -h, --help print this help, then exit
16588 -V, --version print version number and configuration settings, then exit
16589 --config print configuration, then exit
16590 -q, --quiet, --silent
16591 do not print progress messages
16592 -d, --debug don't remove temporary files
16593 --recheck update $as_me by reconfiguring in the same conditions
16594 --file=FILE[:TEMPLATE]
16595 instantiate the configuration file FILE
16596 --header=FILE[:TEMPLATE]
16597 instantiate the configuration header FILE
16599 Configuration files:
16600 $config_files
16602 Configuration headers:
16603 $config_headers
16605 Configuration commands:
16606 $config_commands
16608 Report bugs to <admin@amule.org>."
16610 _ACEOF
16611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16612 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16613 ac_cs_version="\\
16614 aMule config.status SVN
16615 configured by $0, generated by GNU Autoconf 2.65,
16616 with options \\"\$ac_cs_config\\"
16618 Copyright (C) 2009 Free Software Foundation, Inc.
16619 This config.status script is free software; the Free Software Foundation
16620 gives unlimited permission to copy, distribute and modify it."
16622 ac_pwd='$ac_pwd'
16623 srcdir='$srcdir'
16624 INSTALL='$INSTALL'
16625 MKDIR_P='$MKDIR_P'
16626 AWK='$AWK'
16627 test -n "\$AWK" || AWK=awk
16628 _ACEOF
16630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16631 # The default lists apply if the user does not specify any file.
16632 ac_need_defaults=:
16633 while test $# != 0
16635 case $1 in
16636 --*=*)
16637 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16638 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16639 ac_shift=:
16642 ac_option=$1
16643 ac_optarg=$2
16644 ac_shift=shift
16646 esac
16648 case $ac_option in
16649 # Handling of the options.
16650 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16651 ac_cs_recheck=: ;;
16652 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16653 $as_echo "$ac_cs_version"; exit ;;
16654 --config | --confi | --conf | --con | --co | --c )
16655 $as_echo "$ac_cs_config"; exit ;;
16656 --debug | --debu | --deb | --de | --d | -d )
16657 debug=: ;;
16658 --file | --fil | --fi | --f )
16659 $ac_shift
16660 case $ac_optarg in
16661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16662 esac
16663 as_fn_append CONFIG_FILES " '$ac_optarg'"
16664 ac_need_defaults=false;;
16665 --header | --heade | --head | --hea )
16666 $ac_shift
16667 case $ac_optarg in
16668 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16669 esac
16670 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16671 ac_need_defaults=false;;
16672 --he | --h)
16673 # Conflict between --help and --header
16674 as_fn_error "ambiguous option: \`$1'
16675 Try \`$0 --help' for more information.";;
16676 --help | --hel | -h )
16677 $as_echo "$ac_cs_usage"; exit ;;
16678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16679 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16680 ac_cs_silent=: ;;
16682 # This is an error.
16683 -*) as_fn_error "unrecognized option: \`$1'
16684 Try \`$0 --help' for more information." ;;
16686 *) as_fn_append ac_config_targets " $1"
16687 ac_need_defaults=false ;;
16689 esac
16690 shift
16691 done
16693 ac_configure_extra_args=
16695 if $ac_cs_silent; then
16696 exec 6>/dev/null
16697 ac_configure_extra_args="$ac_configure_extra_args --silent"
16700 _ACEOF
16701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16702 if \$ac_cs_recheck; then
16703 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16704 shift
16705 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16706 CONFIG_SHELL='$SHELL'
16707 export CONFIG_SHELL
16708 exec "\$@"
16711 _ACEOF
16712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16713 exec 5>>config.log
16715 echo
16716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16717 ## Running $as_me. ##
16718 _ASBOX
16719 $as_echo "$ac_log"
16720 } >&5
16722 _ACEOF
16723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16725 # INIT-COMMANDS
16727 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16728 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16729 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16730 # from automake.
16731 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
16732 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16733 LINGUAS="${LINGUAS-%UNSET%}"
16735 denoiserlevel=$with_denoise_level
16737 _ACEOF
16739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16741 # Handling of arguments.
16742 for ac_config_target in $ac_config_targets
16744 case $ac_config_target in
16745 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16746 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16747 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16748 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
16749 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16750 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16751 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
16752 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16753 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16754 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16755 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
16756 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
16757 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
16758 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
16759 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
16760 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
16761 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
16762 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
16763 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
16764 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
16765 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
16766 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
16767 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
16768 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
16769 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
16770 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
16771 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
16772 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
16773 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
16774 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
16775 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
16776 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
16777 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
16778 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
16779 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
16780 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
16781 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
16782 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
16784 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16785 esac
16786 done
16789 # If the user did not use the arguments to specify the items to instantiate,
16790 # then the envvar interface is used. Set only those that are not.
16791 # We use the long form for the default assignment because of an extremely
16792 # bizarre bug on SunOS 4.1.3.
16793 if $ac_need_defaults; then
16794 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16795 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16796 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16799 # Have a temporary directory for convenience. Make it in the build tree
16800 # simply because there is no reason against having it here, and in addition,
16801 # creating and moving files from /tmp can sometimes cause problems.
16802 # Hook for its removal unless debugging.
16803 # Note that there is a small window in which the directory will not be cleaned:
16804 # after its creation but before its name has been assigned to `$tmp'.
16805 $debug ||
16807 tmp=
16808 trap 'exit_status=$?
16809 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16811 trap 'as_fn_exit 1' 1 2 13 15
16813 # Create a (secure) tmp directory for tmp files.
16816 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16817 test -n "$tmp" && test -d "$tmp"
16818 } ||
16820 tmp=./conf$$-$RANDOM
16821 (umask 077 && mkdir "$tmp")
16822 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16824 # Set up the scripts for CONFIG_FILES section.
16825 # No need to generate them if there are no CONFIG_FILES.
16826 # This happens for instance with `./config.status config.h'.
16827 if test -n "$CONFIG_FILES"; then
16830 ac_cr=`echo X | tr X '\015'`
16831 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16832 # But we know of no other shell where ac_cr would be empty at this
16833 # point, so we can use a bashism as a fallback.
16834 if test "x$ac_cr" = x; then
16835 eval ac_cr=\$\'\\r\'
16837 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16838 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16839 ac_cs_awk_cr='\r'
16840 else
16841 ac_cs_awk_cr=$ac_cr
16844 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16845 _ACEOF
16849 echo "cat >conf$$subs.awk <<_ACEOF" &&
16850 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16851 echo "_ACEOF"
16852 } >conf$$subs.sh ||
16853 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16854 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16855 ac_delim='%!_!# '
16856 for ac_last_try in false false false false false :; do
16857 . ./conf$$subs.sh ||
16858 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16860 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16861 if test $ac_delim_n = $ac_delim_num; then
16862 break
16863 elif $ac_last_try; then
16864 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16865 else
16866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16868 done
16869 rm -f conf$$subs.sh
16871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16873 _ACEOF
16874 sed -n '
16876 s/^/S["/; s/!.*/"]=/
16879 s/^[^!]*!//
16880 :repl
16881 t repl
16882 s/'"$ac_delim"'$//
16883 t delim
16886 s/\(.\{148\}\)..*/\1/
16887 t more1
16888 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16891 b repl
16892 :more1
16893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16896 s/.\{148\}//
16897 t nl
16898 :delim
16900 s/\(.\{148\}\)..*/\1/
16901 t more2
16902 s/["\\]/\\&/g; s/^/"/; s/$/"/
16905 :more2
16906 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16909 s/.\{148\}//
16910 t delim
16911 ' <conf$$subs.awk | sed '
16912 /^[^""]/{
16914 s/\n//
16916 ' >>$CONFIG_STATUS || ac_write_fail=1
16917 rm -f conf$$subs.awk
16918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16919 _ACAWK
16920 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16921 for (key in S) S_is_set[key] = 1
16922 FS = "\a"
16926 line = $ 0
16927 nfields = split(line, field, "@")
16928 substed = 0
16929 len = length(field[1])
16930 for (i = 2; i < nfields; i++) {
16931 key = field[i]
16932 keylen = length(key)
16933 if (S_is_set[key]) {
16934 value = S[key]
16935 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16936 len += length(value) + length(field[++i])
16937 substed = 1
16938 } else
16939 len += 1 + keylen
16942 print line
16945 _ACAWK
16946 _ACEOF
16947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16948 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16949 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16950 else
16952 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16953 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16954 _ACEOF
16956 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16957 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16958 # trailing colons and then remove the whole line if VPATH becomes empty
16959 # (actually we leave an empty line to preserve line numbers).
16960 if test "x$srcdir" = x.; then
16961 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16962 s/:*\$(srcdir):*/:/
16963 s/:*\${srcdir}:*/:/
16964 s/:*@srcdir@:*/:/
16965 s/^\([^=]*=[ ]*\):*/\1/
16966 s/:*$//
16967 s/^[^=]*=[ ]*$//
16971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16972 fi # test -n "$CONFIG_FILES"
16974 # Set up the scripts for CONFIG_HEADERS section.
16975 # No need to generate them if there are no CONFIG_HEADERS.
16976 # This happens for instance with `./config.status Makefile'.
16977 if test -n "$CONFIG_HEADERS"; then
16978 cat >"$tmp/defines.awk" <<\_ACAWK ||
16979 BEGIN {
16980 _ACEOF
16982 # Transform confdefs.h into an awk script `defines.awk', embedded as
16983 # here-document in config.status, that substitutes the proper values into
16984 # config.h.in to produce config.h.
16986 # Create a delimiter string that does not exist in confdefs.h, to ease
16987 # handling of long lines.
16988 ac_delim='%!_!# '
16989 for ac_last_try in false false :; do
16990 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16991 if test -z "$ac_t"; then
16992 break
16993 elif $ac_last_try; then
16994 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16995 else
16996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16998 done
17000 # For the awk script, D is an array of macro values keyed by name,
17001 # likewise P contains macro parameters if any. Preserve backslash
17002 # newline sequences.
17004 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17005 sed -n '
17006 s/.\{148\}/&'"$ac_delim"'/g
17007 t rset
17008 :rset
17009 s/^[ ]*#[ ]*define[ ][ ]*/ /
17010 t def
17012 :def
17013 s/\\$//
17014 t bsnl
17015 s/["\\]/\\&/g
17016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17017 D["\1"]=" \3"/p
17018 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17020 :bsnl
17021 s/["\\]/\\&/g
17022 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17023 D["\1"]=" \3\\\\\\n"\\/p
17024 t cont
17025 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17026 t cont
17028 :cont
17030 s/.\{148\}/&'"$ac_delim"'/g
17031 t clear
17032 :clear
17033 s/\\$//
17034 t bsnlc
17035 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17037 :bsnlc
17038 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17039 b cont
17040 ' <confdefs.h | sed '
17041 s/'"$ac_delim"'/"\\\
17042 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17045 for (key in D) D_is_set[key] = 1
17046 FS = "\a"
17048 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17049 line = \$ 0
17050 split(line, arg, " ")
17051 if (arg[1] == "#") {
17052 defundef = arg[2]
17053 mac1 = arg[3]
17054 } else {
17055 defundef = substr(arg[1], 2)
17056 mac1 = arg[2]
17058 split(mac1, mac2, "(") #)
17059 macro = mac2[1]
17060 prefix = substr(line, 1, index(line, defundef) - 1)
17061 if (D_is_set[macro]) {
17062 # Preserve the white space surrounding the "#".
17063 print prefix "define", macro P[macro] D[macro]
17064 next
17065 } else {
17066 # Replace #undef with comments. This is necessary, for example,
17067 # in the case of _POSIX_SOURCE, which is predefined and required
17068 # on some systems where configure will not decide to define it.
17069 if (defundef == "undef") {
17070 print "/*", prefix defundef, macro, "*/"
17071 next
17075 { print }
17076 _ACAWK
17077 _ACEOF
17078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17079 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17080 fi # test -n "$CONFIG_HEADERS"
17083 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17084 shift
17085 for ac_tag
17087 case $ac_tag in
17088 :[FHLC]) ac_mode=$ac_tag; continue;;
17089 esac
17090 case $ac_mode$ac_tag in
17091 :[FHL]*:*);;
17092 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17093 :[FH]-) ac_tag=-:-;;
17094 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17095 esac
17096 ac_save_IFS=$IFS
17097 IFS=:
17098 set x $ac_tag
17099 IFS=$ac_save_IFS
17100 shift
17101 ac_file=$1
17102 shift
17104 case $ac_mode in
17105 :L) ac_source=$1;;
17106 :[FH])
17107 ac_file_inputs=
17108 for ac_f
17110 case $ac_f in
17111 -) ac_f="$tmp/stdin";;
17112 *) # Look for the file first in the build tree, then in the source tree
17113 # (if the path is not absolute). The absolute path cannot be DOS-style,
17114 # because $ac_f cannot contain `:'.
17115 test -f "$ac_f" ||
17116 case $ac_f in
17117 [\\/$]*) false;;
17118 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17119 esac ||
17120 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17121 esac
17122 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17123 as_fn_append ac_file_inputs " '$ac_f'"
17124 done
17126 # Let's still pretend it is `configure' which instantiates (i.e., don't
17127 # use $as_me), people would be surprised to read:
17128 # /* config.h. Generated by config.status. */
17129 configure_input='Generated from '`
17130 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17131 `' by configure.'
17132 if test x"$ac_file" != x-; then
17133 configure_input="$ac_file. $configure_input"
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17135 $as_echo "$as_me: creating $ac_file" >&6;}
17137 # Neutralize special characters interpreted by sed in replacement strings.
17138 case $configure_input in #(
17139 *\&* | *\|* | *\\* )
17140 ac_sed_conf_input=`$as_echo "$configure_input" |
17141 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17142 *) ac_sed_conf_input=$configure_input;;
17143 esac
17145 case $ac_tag in
17146 *:-:* | *:-) cat >"$tmp/stdin" \
17147 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17148 esac
17150 esac
17152 ac_dir=`$as_dirname -- "$ac_file" ||
17153 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17154 X"$ac_file" : 'X\(//\)[^/]' \| \
17155 X"$ac_file" : 'X\(//\)$' \| \
17156 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17157 $as_echo X"$ac_file" |
17158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17159 s//\1/
17162 /^X\(\/\/\)[^/].*/{
17163 s//\1/
17166 /^X\(\/\/\)$/{
17167 s//\1/
17170 /^X\(\/\).*/{
17171 s//\1/
17174 s/.*/./; q'`
17175 as_dir="$ac_dir"; as_fn_mkdir_p
17176 ac_builddir=.
17178 case "$ac_dir" in
17179 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17181 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17182 # A ".." for each directory in $ac_dir_suffix.
17183 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17184 case $ac_top_builddir_sub in
17185 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17186 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17187 esac ;;
17188 esac
17189 ac_abs_top_builddir=$ac_pwd
17190 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17191 # for backward compatibility:
17192 ac_top_builddir=$ac_top_build_prefix
17194 case $srcdir in
17195 .) # We are building in place.
17196 ac_srcdir=.
17197 ac_top_srcdir=$ac_top_builddir_sub
17198 ac_abs_top_srcdir=$ac_pwd ;;
17199 [\\/]* | ?:[\\/]* ) # Absolute name.
17200 ac_srcdir=$srcdir$ac_dir_suffix;
17201 ac_top_srcdir=$srcdir
17202 ac_abs_top_srcdir=$srcdir ;;
17203 *) # Relative name.
17204 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17205 ac_top_srcdir=$ac_top_build_prefix$srcdir
17206 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17207 esac
17208 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17211 case $ac_mode in
17214 # CONFIG_FILE
17217 case $INSTALL in
17218 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17219 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17220 esac
17221 ac_MKDIR_P=$MKDIR_P
17222 case $MKDIR_P in
17223 [\\/$]* | ?:[\\/]* ) ;;
17224 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17225 esac
17226 _ACEOF
17228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17229 # If the template does not know about datarootdir, expand it.
17230 # FIXME: This hack should be removed a few years after 2.60.
17231 ac_datarootdir_hack=; ac_datarootdir_seen=
17232 ac_sed_dataroot='
17233 /datarootdir/ {
17237 /@datadir@/p
17238 /@docdir@/p
17239 /@infodir@/p
17240 /@localedir@/p
17241 /@mandir@/p'
17242 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17243 *datarootdir*) ac_datarootdir_seen=yes;;
17244 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17246 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17247 _ACEOF
17248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17249 ac_datarootdir_hack='
17250 s&@datadir@&$datadir&g
17251 s&@docdir@&$docdir&g
17252 s&@infodir@&$infodir&g
17253 s&@localedir@&$localedir&g
17254 s&@mandir@&$mandir&g
17255 s&\\\${datarootdir}&$datarootdir&g' ;;
17256 esac
17257 _ACEOF
17259 # Neutralize VPATH when `$srcdir' = `.'.
17260 # Shell code in configure.ac might set extrasub.
17261 # FIXME: do we really want to maintain this feature?
17262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17263 ac_sed_extra="$ac_vpsub
17264 $extrasub
17265 _ACEOF
17266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17269 s|@configure_input@|$ac_sed_conf_input|;t t
17270 s&@top_builddir@&$ac_top_builddir_sub&;t t
17271 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17272 s&@srcdir@&$ac_srcdir&;t t
17273 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17274 s&@top_srcdir@&$ac_top_srcdir&;t t
17275 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17276 s&@builddir@&$ac_builddir&;t t
17277 s&@abs_builddir@&$ac_abs_builddir&;t t
17278 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17279 s&@INSTALL@&$ac_INSTALL&;t t
17280 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17281 $ac_datarootdir_hack
17283 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17284 || as_fn_error "could not create $ac_file" "$LINENO" 5
17286 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17287 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17288 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17290 which seems to be undefined. Please make sure it is defined." >&5
17291 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17292 which seems to be undefined. Please make sure it is defined." >&2;}
17294 rm -f "$tmp/stdin"
17295 case $ac_file in
17296 -) cat "$tmp/out" && rm -f "$tmp/out";;
17297 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17298 esac \
17299 || as_fn_error "could not create $ac_file" "$LINENO" 5
17303 # CONFIG_HEADER
17305 if test x"$ac_file" != x-; then
17307 $as_echo "/* $configure_input */" \
17308 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17309 } >"$tmp/config.h" \
17310 || as_fn_error "could not create $ac_file" "$LINENO" 5
17311 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17313 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17314 else
17315 rm -f "$ac_file"
17316 mv "$tmp/config.h" "$ac_file" \
17317 || as_fn_error "could not create $ac_file" "$LINENO" 5
17319 else
17320 $as_echo "/* $configure_input */" \
17321 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17322 || as_fn_error "could not create -" "$LINENO" 5
17324 # Compute "$ac_file"'s index in $config_headers.
17325 _am_arg="$ac_file"
17326 _am_stamp_count=1
17327 for _am_header in $config_headers :; do
17328 case $_am_header in
17329 $_am_arg | $_am_arg:* )
17330 break ;;
17332 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17333 esac
17334 done
17335 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17336 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17337 X"$_am_arg" : 'X\(//\)[^/]' \| \
17338 X"$_am_arg" : 'X\(//\)$' \| \
17339 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17340 $as_echo X"$_am_arg" |
17341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17342 s//\1/
17345 /^X\(\/\/\)[^/].*/{
17346 s//\1/
17349 /^X\(\/\/\)$/{
17350 s//\1/
17353 /^X\(\/\).*/{
17354 s//\1/
17357 s/.*/./; q'`/stamp-h$_am_stamp_count
17360 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17361 $as_echo "$as_me: executing $ac_file commands" >&6;}
17363 esac
17366 case $ac_file$ac_mode in
17367 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17368 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17369 # are listed without --file. Let's play safe and only enable the eval
17370 # if we detect the quoting.
17371 case $CONFIG_FILES in
17372 *\'*) eval set x "$CONFIG_FILES" ;;
17373 *) set x $CONFIG_FILES ;;
17374 esac
17375 shift
17376 for mf
17378 # Strip MF so we end up with the name of the file.
17379 mf=`echo "$mf" | sed -e 's/:.*$//'`
17380 # Check whether this is an Automake generated Makefile or not.
17381 # We used to match only the files named `Makefile.in', but
17382 # some people rename them; so instead we look at the file content.
17383 # Grep'ing the first line is not enough: some people post-process
17384 # each Makefile.in and add a new line on top of each file to say so.
17385 # Grep'ing the whole file is not good either: AIX grep has a line
17386 # limit of 2048, but all sed's we know have understand at least 4000.
17387 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17388 dirpart=`$as_dirname -- "$mf" ||
17389 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17390 X"$mf" : 'X\(//\)[^/]' \| \
17391 X"$mf" : 'X\(//\)$' \| \
17392 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17393 $as_echo X"$mf" |
17394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17395 s//\1/
17398 /^X\(\/\/\)[^/].*/{
17399 s//\1/
17402 /^X\(\/\/\)$/{
17403 s//\1/
17406 /^X\(\/\).*/{
17407 s//\1/
17410 s/.*/./; q'`
17411 else
17412 continue
17414 # Extract the definition of DEPDIR, am__include, and am__quote
17415 # from the Makefile without running `make'.
17416 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17417 test -z "$DEPDIR" && continue
17418 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17419 test -z "am__include" && continue
17420 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17421 # When using ansi2knr, U may be empty or an underscore; expand it
17422 U=`sed -n 's/^U = //p' < "$mf"`
17423 # Find all dependency output files, they are included files with
17424 # $(DEPDIR) in their names. We invoke sed twice because it is the
17425 # simplest approach to changing $(DEPDIR) to its actual value in the
17426 # expansion.
17427 for file in `sed -n "
17428 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17429 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17430 # Make sure the directory exists.
17431 test -f "$dirpart/$file" && continue
17432 fdir=`$as_dirname -- "$file" ||
17433 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17434 X"$file" : 'X\(//\)[^/]' \| \
17435 X"$file" : 'X\(//\)$' \| \
17436 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17437 $as_echo X"$file" |
17438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17439 s//\1/
17442 /^X\(\/\/\)[^/].*/{
17443 s//\1/
17446 /^X\(\/\/\)$/{
17447 s//\1/
17450 /^X\(\/\).*/{
17451 s//\1/
17454 s/.*/./; q'`
17455 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17456 # echo "creating $dirpart/$file"
17457 echo '# dummy' > "$dirpart/$file"
17458 done
17459 done
17462 "default-1":C)
17463 for ac_file in $CONFIG_FILES; do
17464 # Support "outfile[:infile[:infile...]]"
17465 case "$ac_file" in
17466 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17467 esac
17468 # PO directories have a Makefile.in generated from Makefile.in.in.
17469 case "$ac_file" in */Makefile.in)
17470 # Adjust a relative srcdir.
17471 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17472 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17473 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17474 # In autoconf-2.13 it is called $ac_given_srcdir.
17475 # In autoconf-2.50 it is called $srcdir.
17476 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17477 case "$ac_given_srcdir" in
17478 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17479 /*) top_srcdir="$ac_given_srcdir" ;;
17480 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17481 esac
17482 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17483 rm -f "$ac_dir/POTFILES"
17484 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17485 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17486 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17487 # on $ac_dir but don't depend on user-specified configuration
17488 # parameters.
17489 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17490 # The LINGUAS file contains the set of available languages.
17491 if test -n "$ALL_LINGUAS"; then
17492 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17494 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17495 # Hide the ALL_LINGUAS assigment from automake.
17496 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17498 case "$ac_given_srcdir" in
17499 .) srcdirpre= ;;
17500 *) srcdirpre='$(srcdir)/' ;;
17501 esac
17502 POFILES=
17503 GMOFILES=
17504 UPDATEPOFILES=
17505 DUMMYPOFILES=
17506 for lang in $ALL_LINGUAS; do
17507 POFILES="$POFILES $srcdirpre$lang.po"
17508 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17509 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17510 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17511 done
17512 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17513 # environment variable.
17514 INST_LINGUAS=
17515 if test -n "$ALL_LINGUAS"; then
17516 for presentlang in $ALL_LINGUAS; do
17517 useit=no
17518 if test "%UNSET%" != "$LINGUAS"; then
17519 desiredlanguages="$LINGUAS"
17520 else
17521 desiredlanguages="$ALL_LINGUAS"
17523 for desiredlang in $desiredlanguages; do
17524 # Use the presentlang catalog if desiredlang is
17525 # a. equal to presentlang, or
17526 # b. a variant of presentlang (because in this case,
17527 # presentlang can be used as a fallback for messages
17528 # which are not translated in the desiredlang catalog).
17529 case "$desiredlang" in
17530 "$presentlang"*) useit=yes;;
17531 esac
17532 done
17533 if test $useit = yes; then
17534 INST_LINGUAS="$INST_LINGUAS $presentlang"
17536 done
17538 CATALOGS=
17539 if test -n "$INST_LINGUAS"; then
17540 for lang in $INST_LINGUAS; do
17541 CATALOGS="$CATALOGS $lang.gmo"
17542 done
17544 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17545 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17546 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17547 if test -f "$f"; then
17548 case "$f" in
17549 *.orig | *.bak | *~) ;;
17550 *) cat "$f" >> "$ac_dir/Makefile" ;;
17551 esac
17553 done
17556 esac
17557 done ;;
17558 "denoiser":C) if test $denoiserlevel -gt 0; then
17559 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
17560 sed -e "1{x;s/.*/1/;x;};/^[ ]*\$/d;/^#if /{/level.*$denoiserlevel/{x;s/^/1/;x;b0;};x;s/^/0/;x;:0;d;};/^#else/{x;/^1/{s/1/0/;b1;};s/0/1/;:1;x;d;};/^#endif/{x;s/.//;x;d;};/^[ ]*#/d;x;/^1/{x;b;};x;d" \
17561 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
17562 for i in `find . -name 'Makefile' -print`; do
17563 if test -n "`head -n 1 $i | grep '^#'`"; then
17564 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
17566 done
17567 fi ;;
17569 esac
17570 done # for ac_tag
17573 as_fn_exit 0
17574 _ACEOF
17575 ac_clean_files=$ac_clean_files_save
17577 test $ac_write_fail = 0 ||
17578 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17581 # configure is writing to config.log, and then calls config.status.
17582 # config.status does its own redirection, appending to config.log.
17583 # Unfortunately, on DOS this fails, as config.log is still kept open
17584 # by configure, so config.status won't be able to write to it; its
17585 # output is simply discarded. So we exec the FD to /dev/null,
17586 # effectively closing config.log, so it can be properly (re)opened and
17587 # appended to by config.status. When coming back to configure, we
17588 # need to make the FD available again.
17589 if test "$no_create" != yes; then
17590 ac_cs_success=:
17591 ac_config_status_args=
17592 test "$silent" = yes &&
17593 ac_config_status_args="$ac_config_status_args --quiet"
17594 exec 5>/dev/null
17595 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17596 exec 5>>config.log
17597 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17598 # would make configure fail if this is the last instruction.
17599 $ac_cs_success || as_fn_exit $?
17601 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17603 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17607 if test -n "$svndate"; then :
17608 SVN_REVISION=" ($svndate)"
17609 else
17610 SVN_REVISION=
17613 echo
17614 echo
17615 echo " Configure script has finished system check."
17616 echo
17617 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17618 echo
17619 echo " aMule enabled options:"
17620 echo
17621 echo " **** aMule Core ****"
17622 echo " Prefix where aMule should be installed? ${prefix:-none}"
17623 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17624 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17625 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17626 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17627 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17628 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17629 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17630 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
17631 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
17632 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
17634 echo
17635 echo " **** aMule TextClient ****"
17636 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
17637 echo
17638 echo " **** aMule WebServer ****"
17639 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
17640 echo
17641 echo " **** aMule ED2K Links Handler ****"
17642 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
17643 echo
17644 echo " **** aMuleLinkCreator ****"
17645 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
17646 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
17647 echo
17648 echo " **** aMule Statistics ****"
17649 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
17650 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
17651 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
17652 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
17654 echo
17655 echo " **** General Libraries and Tools ****"
17656 echo " Should ccache support be enabled? ${enable_ccache:-no}"
17657 echo " Libraries aMule will use to build:"
17658 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17660 wxinfo="$WX_PORT"
17661 if test $WX_DEBUG -eq 1; then :
17662 wxinfo="$wxinfo,debug"
17664 if test $WX_SHARED -eq 1; then :
17665 wxinfo="$wxinfo,shared"
17666 else
17667 wxinfo="$wxinfo,static"
17669 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
17672 if test ${with_boost:-no} != no; then :
17673 if test ${with_boost:-no} = disabled; then
17674 echo " boost Not detected"
17675 elif test ${boost_cv_inc_path:-yes} != yes; then
17676 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
17677 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
17682 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17683 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
17685 if test ${enable_upnp:-yes} = yes; then :
17687 if test -n "$with_libupnp_prefix"; then :
17688 libupnp_place=" (in $with_libupnp_prefix)"
17690 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
17693 if test ${enable_nls:-yes} = yes; then
17694 if test x$USE_NLS = xno; then :
17695 libintl_found="Not detected"
17696 else
17697 if test x$USE_INCLUDED_LIBINTL = xyes; then :
17698 libintl_found="included"
17699 else
17700 libintl_found="system"
17703 echo " libintl $libintl_found"
17705 if test ${enable_geoip:-no} = yes; then :
17706 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
17707 geoip_style=system
17708 else
17709 geoip_style=user
17711 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
17712 echo " libGeoIP ${geoip_style}"
17715 if test ${enable_webserver:-no} = yes; then :
17716 echo " libpng ${LIBPNG_VERSION:-Not detected}"
17718 if test ${enable_cas:-no} = yes; then :
17719 echo " libgd ${GDLIB_VERSION:-Not detected}"
17721 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes -o ${enable_amule_gui:-no} = yes ; then :
17722 echo " zlib ${ZLIB_VERSION:-Not detected}"
17724 if test ${enable_plasmamule:-no} = yes; then :
17725 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
17726 echo " qt-core-libs ${QT_CORE_LIBS}"
17727 echo " qt-gui-libs ${QT_GUI_LIBS}"
17728 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
17729 echo " kde-headers ${KDE_HEADER_DIR}"
17730 echo " kde-services-path ${KDE_SERVICE_PATH}"
17731 echo " kde-module-path ${KDE_MODULE_PATH}"
17732 echo " kde-icon-path ${KDE_ICON_PATH}"
17733 echo " kde-mime-path ${KDE_MIME_PATH}"
17734 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
17737 if test ${_mule_has_warnings:-no} = yes; then
17738 echo ""
17739 echo ""
17740 echo " *** Warnings during configuration ***"
17742 if test ${_mule_warning_0:-no} = yes; then
17743 cat <<_MULEEOT
17745 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
17746 Please check that gdlib-config is in your default path, check out
17747 LD_LIBRARY_PATH or equivalent variable.
17748 Or this might also be that your gdlib-config has other name.
17749 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
17750 /usr/bin/gdlib-config with a valid path to your gdlib-config).
17751 If you use compiled packages check if you have devel pack installed.
17752 To download the latest version check http://www.boutell.com/gd for sources.
17753 _MULEEOT
17755 if test ${_mule_warning_1:-no} = yes; then
17756 cat <<_MULEEOT
17758 * libpng >= 1.2.0 not found.
17759 amuleweb will be compiled but file download progress bar images will NOT be
17760 generated.
17761 _MULEEOT
17763 if test ${_mule_warning_2:-no} = yes; then
17764 cat <<_MULEEOT
17766 * File::Copy perl module is required by the mldonkey_importer script.
17767 If you want to use this script please install File::Copy from CPAN.
17768 _MULEEOT
17770 if test ${_mule_warning_3:-no} = yes; then
17771 cat <<_MULEEOT
17773 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
17774 _MULEEOT
17776 if test ${_mule_warning_4:-no} = yes; then
17777 cat <<_MULEEOT
17779 * GeoIP support has been disabled because the GeoIP libraries were not found
17780 _MULEEOT
17782 if test ${_mule_warning_5:-no} = yes; then
17783 cat <<_MULEEOT
17785 * GeoIP support has been disabled because the GeoIP header files were not
17786 found
17787 _MULEEOT
17789 if test ${_mule_warning_6:-no} = yes; then
17790 cat <<_MULEEOT
17792 * UPnP code has been disabled because ${libupnp_error}.
17793 _MULEEOT
17795 if test ${_mule_warning_7:-no} = yes; then
17796 cat <<_MULEEOT
17798 * Cross-compilation detected, so exception handling cannot be tested.
17799 Note that broken exception handling in your compiler may lead to unexpected
17800 crashes.
17801 _MULEEOT
17803 if test ${_mule_warning_8:-no} = yes; then
17804 cat <<_MULEEOT
17806 * Boost support has been disabled because Boost.System not found
17807 _MULEEOT
17809 if test ${_mule_warning_9:-no} = yes; then
17810 cat <<_MULEEOT
17812 * Boost support has been disabled because Boost.Asio not found
17813 _MULEEOT
17815 if test ${_mule_warning_10:-no} = yes; then
17816 cat <<_MULEEOT
17818 * Boost support has been disabled because Boost.Asio not found
17819 _MULEEOT
17821 if test ${_mule_warning_11:-no} = yes; then
17822 cat <<_MULEEOT
17824 * Boost support has been disabled because of insufficient Boost version.
17825 _MULEEOT
17827 if test ${_mule_warning_12:-no} = yes; then
17828 cat <<_MULEEOT
17830 * configure cannot check whether malloc() and realloc() are GNU libc
17831 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17832 configure with the --without-gnu-malloc switch.
17833 _MULEEOT
17835 if test ${_mule_warning_13:-no} = yes; then
17836 cat <<_MULEEOT
17838 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17839 support.
17840 _MULEEOT
17842 if test ${_mule_warning_14:-no} = yes; then
17843 cat <<_MULEEOT
17845 * bfd.h not found or unusable, please install binutils development package if
17846 you are a developer or want to help testing aMule
17847 _MULEEOT