Fix compilation with wxWidgets 2.8.12
[amule.git] / configure
blob42d69d4bf5c4554a43a489f743c2ee733fb14ef9
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 RCFLAGS
689 WXBASE_CPPFLAGS
690 WXBASE_LIBS
691 WX_PORT
692 WX_SHARED
693 WX_DEBUG
694 WX_UNICODE
695 WX_VERSION_MICRO
696 WX_VERSION_MINOR
697 WX_VERSION_MAJOR
698 WX_RESCOMP
699 WX_VERSION
700 WX_LIBS_STATIC
701 WX_LIBS
702 WX_CXXFLAGS_ONLY
703 WX_CFLAGS_ONLY
704 WX_CXXFLAGS
705 WX_CFLAGS
706 WX_CPPFLAGS
707 WX_CONFIG_PATH
708 AMULEWEB_DEFS
709 LIBPNG_LIBS
710 LIBPNG_LDFLAGS
711 LIBPNG_CFLAGS
712 LIBPNG_CONFIG_PATH
713 ZLIB_LIBS
714 ZLIB_LDFLAGS
715 ZLIB_CPPFLAGS
716 CAS_DEFS
717 GDLIB_LIBS
718 GDLIB_LDFLAGS
719 GDLIB_CFLAGS
720 GDLIB_CONFIG_PATH
721 PKG_CONFIG
722 FILEVIEW_FALSE
723 FILEVIEW_TRUE
724 XAS_FALSE
725 XAS_TRUE
726 ALCC_FALSE
727 ALCC_TRUE
728 ALC_FALSE
729 ALC_TRUE
730 ED2K_FALSE
731 ED2K_TRUE
732 WXCAS_FALSE
733 WXCAS_TRUE
734 CAS_FALSE
735 CAS_TRUE
736 AMULE_GUI_FALSE
737 AMULE_GUI_TRUE
738 WEB_FALSE
739 WEB_TRUE
740 COMPILE_CMD_FALSE
741 COMPILE_CMD_TRUE
742 AMULE_DAEMON_FALSE
743 AMULE_DAEMON_TRUE
744 MONOLITHIC_FALSE
745 MONOLITHIC_TRUE
748 YFLAGS
749 YACC
751 RANLIB
752 LEXLIB
753 LEX_OUTPUT_ROOT
755 EGREP
756 GREP
757 BUILD_LDFLAGS
758 BUILD_CFLAGS
759 BUILD_CPPFLAGS
760 BUILD_EXEEXT
761 ac_ct_BUILD_CC
762 BUILD_CC
764 am__fastdepCC_FALSE
765 am__fastdepCC_TRUE
766 CCDEPMODE
767 ac_ct_CC
768 CFLAGS
770 CXXCPP
771 am__fastdepCXX_FALSE
772 am__fastdepCXX_TRUE
773 CXXDEPMODE
774 AMDEPBACKSLASH
775 AMDEP_FALSE
776 AMDEP_TRUE
777 am__quote
778 am__include
779 DEPDIR
780 OBJEXT
781 EXEEXT
782 ac_ct_CXX
783 CPPFLAGS
784 LDFLAGS
785 CXXFLAGS
787 MULERCFLAGS
788 MULELDFLAGS
789 MULECXXFLAGS
790 MULECFLAGS
791 MULECPPFLAGS
792 RESOLV_LIB
793 host_os
794 host_vendor
795 host_cpu
796 host
797 build_os
798 build_vendor
799 build_cpu
800 build
801 MAINT
802 MAINTAINER_MODE_FALSE
803 MAINTAINER_MODE_TRUE
804 AM_BACKSLASH
805 AM_DEFAULT_VERBOSITY
806 am__untar
807 am__tar
808 AMTAR
809 am__leading_dot
810 SET_MAKE
812 mkdir_p
813 MKDIR_P
814 INSTALL_STRIP_PROGRAM
815 STRIP
816 install_sh
817 MAKEINFO
818 AUTOHEADER
819 AUTOMAKE
820 AUTOCONF
821 ACLOCAL
822 VERSION
823 PACKAGE
824 CYGPATH_W
825 am__isrc
826 INSTALL_DATA
827 INSTALL_SCRIPT
828 INSTALL_PROGRAM
829 target_alias
830 host_alias
831 build_alias
832 LIBS
833 ECHO_T
834 ECHO_N
835 ECHO_C
836 DEFS
837 mandir
838 localedir
839 libdir
840 psdir
841 pdfdir
842 dvidir
843 htmldir
844 infodir
845 docdir
846 oldincludedir
847 includedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL
867 GEOIP_LIBS
868 GEOIP_LDFLAGS
869 GEOIP_CPPFLAGS'
870 ac_subst_files=''
871 ac_user_opts='
872 enable_option_checking
873 enable_silent_rules
874 enable_maintainer_mode
875 enable_dependency_tracking
876 enable_monolithic
877 enable_amule_daemon
878 enable_amulecmd
879 enable_webserver
880 enable_amule_gui
881 enable_cas
882 enable_wxcas
883 enable_ed2k
884 enable_alc
885 enable_alcc
886 enable_xas
887 enable_fileview
888 enable_plasmamule
889 enable_static
890 with_kde4_config
891 enable_kde_in_home
892 with_moc
893 with_gnu_malloc
894 with_gdlib_prefix
895 with_gdlib_config
896 with_zlib
897 with_libpng_prefix
898 with_libpng_config
899 enable_geoip
900 with_geoip_headers
901 with_geoip_lib
902 with_geoip_static
903 with_wxdir
904 with_wx_config
905 with_wx_prefix
906 with_wx_exec_prefix
907 with_toolkit
908 with_wxshared
909 with_wxdebug
910 with_wxversion
911 enable_upnp
912 with_libupnp_prefix
913 with_crypto_prefix
914 enable_debug
915 enable_profile
916 enable_optimize
917 with_boost
918 enable_static_boost
919 enable_mmap
920 with_language
921 with_gnu_ld
922 enable_rpath
923 with_libiconv_prefix
924 enable_nls
925 with_included_gettext
926 with_libintl_prefix
927 with_denoise_level
928 enable_ccache
929 with_ccache_prefix
931 ac_precious_vars='build_alias
932 host_alias
933 target_alias
935 CXXFLAGS
936 LDFLAGS
937 LIBS
938 CPPFLAGS
940 CXXCPP
942 CFLAGS
944 YACC
945 YFLAGS
946 PKG_CONFIG
948 RCFLAGS
949 BOOST_ROOT'
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1007 ac_prev=
1008 continue
1011 case $ac_option in
1012 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013 *) ac_optarg=yes ;;
1014 esac
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1018 case $ac_dashdash$ac_option in
1020 ac_dashdash=yes ;;
1022 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 ac_prev=bindir ;;
1024 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025 bindir=$ac_optarg ;;
1027 -build | --build | --buil | --bui | --bu)
1028 ac_prev=build_alias ;;
1029 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030 build_alias=$ac_optarg ;;
1032 -cache-file | --cache-file | --cache-fil | --cache-fi \
1033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034 ac_prev=cache_file ;;
1035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037 cache_file=$ac_optarg ;;
1039 --config-cache | -C)
1040 cache_file=config.cache ;;
1042 -datadir | --datadir | --datadi | --datad)
1043 ac_prev=datadir ;;
1044 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045 datadir=$ac_optarg ;;
1047 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048 | --dataroo | --dataro | --datar)
1049 ac_prev=datarootdir ;;
1050 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052 datarootdir=$ac_optarg ;;
1054 -disable-* | --disable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval enable_$ac_useropt=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_$ac_useropt"
1090 "*) ;;
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1093 esac
1094 eval enable_$ac_useropt=\$ac_optarg ;;
1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098 | --exec | --exe | --ex)
1099 ac_prev=exec_prefix ;;
1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102 | --exec=* | --exe=* | --ex=*)
1103 exec_prefix=$ac_optarg ;;
1105 -gas | --gas | --ga | --g)
1106 # Obsolete; use --with-gas.
1107 with_gas=yes ;;
1109 -help | --help | --hel | --he | -h)
1110 ac_init_help=long ;;
1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112 ac_init_help=recursive ;;
1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114 ac_init_help=short ;;
1116 -host | --host | --hos | --ho)
1117 ac_prev=host_alias ;;
1118 -host=* | --host=* | --hos=* | --ho=*)
1119 host_alias=$ac_optarg ;;
1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 ac_prev=htmldir ;;
1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 | --ht=*)
1125 htmldir=$ac_optarg ;;
1127 -includedir | --includedir | --includedi | --included | --include \
1128 | --includ | --inclu | --incl | --inc)
1129 ac_prev=includedir ;;
1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131 | --includ=* | --inclu=* | --incl=* | --inc=*)
1132 includedir=$ac_optarg ;;
1134 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 ac_prev=infodir ;;
1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137 infodir=$ac_optarg ;;
1139 -libdir | --libdir | --libdi | --libd)
1140 ac_prev=libdir ;;
1141 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142 libdir=$ac_optarg ;;
1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145 | --libexe | --libex | --libe)
1146 ac_prev=libexecdir ;;
1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148 | --libexe=* | --libex=* | --libe=*)
1149 libexecdir=$ac_optarg ;;
1151 -localedir | --localedir | --localedi | --localed | --locale)
1152 ac_prev=localedir ;;
1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154 localedir=$ac_optarg ;;
1156 -localstatedir | --localstatedir | --localstatedi | --localstated \
1157 | --localstate | --localstat | --localsta | --localst | --locals)
1158 ac_prev=localstatedir ;;
1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161 localstatedir=$ac_optarg ;;
1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 ac_prev=mandir ;;
1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166 mandir=$ac_optarg ;;
1168 -nfp | --nfp | --nf)
1169 # Obsolete; use --without-fp.
1170 with_fp=no ;;
1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173 | --no-cr | --no-c | -n)
1174 no_create=yes ;;
1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 no_recursion=yes ;;
1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182 | --oldin | --oldi | --old | --ol | --o)
1183 ac_prev=oldincludedir ;;
1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187 oldincludedir=$ac_optarg ;;
1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 ac_prev=prefix ;;
1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192 prefix=$ac_optarg ;;
1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195 | --program-pre | --program-pr | --program-p)
1196 ac_prev=program_prefix ;;
1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199 program_prefix=$ac_optarg ;;
1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202 | --program-suf | --program-su | --program-s)
1203 ac_prev=program_suffix ;;
1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206 program_suffix=$ac_optarg ;;
1208 -program-transform-name | --program-transform-name \
1209 | --program-transform-nam | --program-transform-na \
1210 | --program-transform-n | --program-transform- \
1211 | --program-transform | --program-transfor \
1212 | --program-transfo | --program-transf \
1213 | --program-trans | --program-tran \
1214 | --progr-tra | --program-tr | --program-t)
1215 ac_prev=program_transform_name ;;
1216 -program-transform-name=* | --program-transform-name=* \
1217 | --program-transform-nam=* | --program-transform-na=* \
1218 | --program-transform-n=* | --program-transform-=* \
1219 | --program-transform=* | --program-transfor=* \
1220 | --program-transfo=* | --program-transf=* \
1221 | --program-trans=* | --program-tran=* \
1222 | --progr-tra=* | --program-tr=* | --program-t=*)
1223 program_transform_name=$ac_optarg ;;
1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 ac_prev=pdfdir ;;
1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228 pdfdir=$ac_optarg ;;
1230 -psdir | --psdir | --psdi | --psd | --ps)
1231 ac_prev=psdir ;;
1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 psdir=$ac_optarg ;;
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1237 silent=yes ;;
1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 ac_prev=sbindir ;;
1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 | --sbi=* | --sb=*)
1243 sbindir=$ac_optarg ;;
1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247 | --sharedst | --shareds | --shared | --share | --shar \
1248 | --sha | --sh)
1249 ac_prev=sharedstatedir ;;
1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 | --sha=* | --sh=*)
1254 sharedstatedir=$ac_optarg ;;
1256 -site | --site | --sit)
1257 ac_prev=site ;;
1258 -site=* | --site=* | --sit=*)
1259 site=$ac_optarg ;;
1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 ac_prev=srcdir ;;
1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264 srcdir=$ac_optarg ;;
1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267 | --syscon | --sysco | --sysc | --sys | --sy)
1268 ac_prev=sysconfdir ;;
1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271 sysconfdir=$ac_optarg ;;
1273 -target | --target | --targe | --targ | --tar | --ta | --t)
1274 ac_prev=target_alias ;;
1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276 target_alias=$ac_optarg ;;
1278 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 verbose=yes ;;
1281 -version | --version | --versio | --versi | --vers | -V)
1282 ac_init_version=: ;;
1284 -with-* | --with-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=\$ac_optarg ;;
1300 -without-* | --without-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 as_fn_error "invalid package name: $ac_useropt"
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1309 "with_$ac_useropt"
1310 "*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval with_$ac_useropt=no ;;
1316 --x)
1317 # Obsolete; use --with-x.
1318 with_x=yes ;;
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1334 -*) as_fn_error "unrecognized option: \`$ac_option'
1335 Try \`$0 --help' for more information."
1338 *=*)
1339 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 case $ac_envvar in #(
1342 '' | [0-9]* | *[!_$as_cr_alnum]* )
1343 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1344 esac
1345 eval $ac_envvar=\$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 esac
1357 done
1359 if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 as_fn_error "missing argument to $ac_option"
1364 if test -n "$ac_unrecognized_opts"; then
1365 case $enable_option_checking in
1366 no) ;;
1367 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1369 esac
1372 # Check all directory arguments for consistency.
1373 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir
1378 eval ac_val=\$$ac_var
1379 # Remove trailing slashes.
1380 case $ac_val in
1381 */ )
1382 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\$ac_val;;
1384 esac
1385 # Be sure to have absolute directory names.
1386 case $ac_val in
1387 [\\/$]* | ?:[\\/]* ) continue;;
1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 esac
1390 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1391 done
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1396 build=$build_alias
1397 host=$host_alias
1398 target=$target_alias
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1407 cross_compiling=yes
1411 ac_tool_prefix=
1412 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414 test "$silent" = yes && exec 6>/dev/null
1417 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di=`ls -di .` &&
1419 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 as_fn_error "working directory cannot be determined"
1421 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1422 as_fn_error "pwd does not report name of working directory"
1425 # Find the source files, if location was not specified.
1426 if test -z "$srcdir"; then
1427 ac_srcdir_defaulted=yes
1428 # Try the directory containing this script, then the parent directory.
1429 ac_confdir=`$as_dirname -- "$as_myself" ||
1430 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1431 X"$as_myself" : 'X\(//\)[^/]' \| \
1432 X"$as_myself" : 'X\(//\)$' \| \
1433 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1434 $as_echo X"$as_myself" |
1435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 s//\1/
1439 /^X\(\/\/\)[^/].*/{
1440 s//\1/
1443 /^X\(\/\/\)$/{
1444 s//\1/
1447 /^X\(\/\).*/{
1448 s//\1/
1451 s/.*/./; q'`
1452 srcdir=$ac_confdir
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 srcdir=..
1456 else
1457 ac_srcdir_defaulted=no
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1461 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 ac_abs_confdir=`(
1465 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1466 pwd)`
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 srcdir=.
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1474 case $srcdir in
1475 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476 esac
1477 for ac_var in $ac_precious_vars; do
1478 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_env_${ac_var}_value=\$${ac_var}
1480 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 done
1485 # Report the --help message.
1487 if test "$ac_init_help" = "long"; then
1488 # Omit some internal or obsolete options to make the list less imposing.
1489 # This message is too long to be a string in the A/UX 3.1 sh.
1490 cat <<_ACEOF
1491 \`configure' configures aMule SVN to adapt to many kinds of systems.
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE. See below for descriptions of some of the useful variables.
1498 Defaults for the options are specified in brackets.
1500 Configuration:
1501 -h, --help display this help and exit
1502 --help=short display options specific to this package
1503 --help=recursive display the short help of all the included packages
1504 -V, --version display version information and exit
1505 -q, --quiet, --silent do not print \`checking...' messages
1506 --cache-file=FILE cache test results in FILE [disabled]
1507 -C, --config-cache alias for \`--cache-file=config.cache'
1508 -n, --no-create do not create output files
1509 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511 Installation directories:
1512 --prefix=PREFIX install architecture-independent files in PREFIX
1513 [$ac_default_prefix]
1514 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 [PREFIX]
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1522 For better control, use the options below.
1524 Fine tuning of the installation directories:
1525 --bindir=DIR user executables [EPREFIX/bin]
1526 --sbindir=DIR system admin executables [EPREFIX/sbin]
1527 --libexecdir=DIR program executables [EPREFIX/libexec]
1528 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1529 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1530 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1531 --libdir=DIR object code libraries [EPREFIX/lib]
1532 --includedir=DIR C header files [PREFIX/include]
1533 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1534 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1535 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1536 --infodir=DIR info documentation [DATAROOTDIR/info]
1537 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1538 --mandir=DIR man documentation [DATAROOTDIR/man]
1539 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1540 --htmldir=DIR html documentation [DOCDIR]
1541 --dvidir=DIR dvi documentation [DOCDIR]
1542 --pdfdir=DIR pdf documentation [DOCDIR]
1543 --psdir=DIR ps documentation [DOCDIR]
1544 _ACEOF
1546 cat <<\_ACEOF
1548 Program names:
1549 --program-prefix=PREFIX prepend PREFIX to installed program names
1550 --program-suffix=SUFFIX append SUFFIX to installed program names
1551 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553 System types:
1554 --build=BUILD configure for building on BUILD [guessed]
1555 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1556 _ACEOF
1559 if test -n "$ac_init_help"; then
1560 case $ac_init_help in
1561 short | recursive ) echo "Configuration of aMule SVN:";;
1562 esac
1563 cat <<\_ACEOF
1565 Optional Features:
1566 --disable-option-checking ignore unrecognized --enable/--with options
1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1569 --enable-silent-rules less verbose build output (undo: `make V=1')
1570 --disable-silent-rules verbose build output (undo: `make V=0')
1571 --enable-maintainer-mode enable make rules and dependencies not useful
1572 (and sometimes confusing) to the casual installer
1573 --disable-dependency-tracking speeds up one-time build
1574 --enable-dependency-tracking do not reject slow dependency extractors
1575 --disable-monolithic disable building of the monolithic aMule app
1576 --enable-amule-daemon compile aMule daemon version
1577 --enable-amulecmd compile aMule command line client
1578 --enable-webserver compile aMule WebServer
1579 --enable-amule-gui compile aMule remote GUI
1580 --enable-cas compile C aMule Statistics
1581 --enable-wxcas compile aMule GUI Statistics
1582 --disable-ed2k don't compile aMule ed2k links handler
1583 --enable-alc compile aMuleLinkCreator GUI version
1584 --enable-alcc compile aMuleLinkCreator for console
1585 --enable-xas install xas XChat2 plugin
1586 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1587 --enable-plasmamule compile aMule plasma applet and engine
1588 --enable-static produce a statically linked executable
1589 --enable-kde-in-home install KDE related stuff in your home dir
1590 --enable-geoip compile with GeoIP IP2Country library
1591 --disable-upnp do not compile UPnP code
1592 --disable-debug disable additional debugging output
1593 --enable-profile enable code profiling
1594 --enable-optimize enable code optimization
1595 --enable-static-boost Prefer the static boost libraries over the shared
1596 ones [no]
1597 --enable-mmap enable using mapped memory if supported
1598 --disable-rpath do not hardcode runtime library paths
1599 --disable-nls do not use Native Language Support
1600 --enable-ccache enable ccache support for fast recompilation
1602 Optional Packages:
1603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1605 --with-kde4-config=PATH kde4-config script to use
1606 --with-moc=PATH Search in PATH for Qt's meta object compiler
1607 --without-gnu-malloc Don't assume that we use GNU libc compatible
1608 malloc/realloc when cross-compiling
1609 --with-gdlib-prefix=PREFIX
1610 prefix where gdlib is installed (optional)
1611 --with-gdlib-config=CONFIG
1612 gdlib-config script to use (optional)
1613 --with-zlib=PREFIX use zlib in PREFIX
1614 --with-libpng-prefix=PREFIX
1615 prefix where libpng is installed (optional)
1616 --with-libpng-config=CONFIG
1617 libpng-config script to use (optional)
1618 --with-geoip-headers=DIR
1619 GeoIP include files location
1620 --with-geoip-lib=DIR GeoIP library location
1621 --with-geoip-static Explicitly link GeoIP statically (default=no)
1622 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1623 --with-wx-config=CONFIG wx-config script to use (optional)
1624 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1625 --with-wx-exec-prefix=PREFIX
1626 Exec prefix where wxWidgets is installed (optional)
1627 --with-toolkit Build against a specific wxWidgets toolkit (default
1628 is auto)
1629 --with-wxshared Force building against a shared build of wxWidgets,
1630 even if --disable-shared is given (default is auto)
1631 --with-wxdebug Force building against a debug build of wxWidgets,
1632 even if --disable-debug is given (default is auto)
1633 --with-wxversion Build against a specific version of wxWidgets
1634 (default is auto)
1635 --with-libupnp-prefix=PREFIX
1636 UPnP library location
1637 --with-crypto-prefix=PREFIX
1638 prefix where crypto++ is installed
1639 --with-boost[=DIR] use Boost.Asio for networking
1640 --with-language=<langs> Specify a comma-separated list of languages you want
1641 to have installed. See po/LINGUAS for available
1642 languages
1643 --with-gnu-ld assume the C compiler uses GNU ld default=no
1644 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1645 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1646 --with-included-gettext use the GNU gettext library included here
1647 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1648 --without-libintl-prefix don't search for libintl in includedir and libdir
1649 --with-denoise-level=<level>
1650 Specifies denoising level (0-4):
1651 0 - Do nothing
1652 4 - Suppress all normal output
1653 (for more information see
1654 src/utils/scripts/denoiser.rules)
1656 --with-ccache-prefix=PREFIX
1657 prefix where ccache is installed
1659 Some influential environment variables:
1660 CXX C++ compiler command
1661 CXXFLAGS C++ compiler flags
1662 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1663 nonstandard directory <lib dir>
1664 LIBS libraries to pass to the linker, e.g. -l<library>
1665 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1666 you have headers in a nonstandard directory <include dir>
1667 CXXCPP C++ preprocessor
1668 CC C compiler command
1669 CFLAGS C compiler flags
1670 CPP C preprocessor
1671 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1672 the first program found out of: `bison -y', `byacc', `yacc'.
1673 YFLAGS The list of arguments that will be passed by default to $YACC.
1674 This script will default YFLAGS to the empty string to avoid a
1675 default value of `-d' given by some make applications.
1676 PKG_CONFIG path to pkg-config utility
1677 RC Resource Compiler
1678 RCFLAGS Resource Compiler Flags
1679 BOOST_ROOT Location of Boost installation
1681 Use these variables to override the choices made by `configure' or to help
1682 it to find libraries and programs with nonstandard names/locations.
1684 Report bugs to <admin@amule.org>.
1685 _ACEOF
1686 ac_status=$?
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1694 continue
1695 ac_builddir=.
1697 case "$ac_dir" in
1698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1706 esac ;;
1707 esac
1708 ac_abs_top_builddir=$ac_pwd
1709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir=$ac_top_build_prefix
1713 case $srcdir in
1714 .) # We are building in place.
1715 ac_srcdir=.
1716 ac_top_srcdir=$ac_top_builddir_sub
1717 ac_abs_top_srcdir=$ac_pwd ;;
1718 [\\/]* | ?:[\\/]* ) # Absolute name.
1719 ac_srcdir=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir=$srcdir
1721 ac_abs_top_srcdir=$srcdir ;;
1722 *) # Relative name.
1723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1726 esac
1727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729 cd "$ac_dir" || { ac_status=$?; continue; }
1730 # Check for guested configure.
1731 if test -f "$ac_srcdir/configure.gnu"; then
1732 echo &&
1733 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1734 elif test -f "$ac_srcdir/configure"; then
1735 echo &&
1736 $SHELL "$ac_srcdir/configure" --help=recursive
1737 else
1738 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1739 fi || ac_status=$?
1740 cd "$ac_pwd" || { ac_status=$?; break; }
1741 done
1744 test -n "$ac_init_help" && exit $ac_status
1745 if $ac_init_version; then
1746 cat <<\_ACEOF
1747 aMule configure SVN
1748 generated by GNU Autoconf 2.65
1750 Copyright (C) 2009 Free Software Foundation, Inc.
1751 This configure script is free software; the Free Software Foundation
1752 gives unlimited permission to copy, distribute and modify it.
1753 _ACEOF
1754 exit
1757 ## ------------------------ ##
1758 ## Autoconf initialization. ##
1759 ## ------------------------ ##
1761 # ac_fn_cxx_try_compile LINENO
1762 # ----------------------------
1763 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_cxx_try_compile ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 rm -f conftest.$ac_objext
1768 if { { ac_try="$ac_compile"
1769 case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_compile") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } && {
1784 test -z "$ac_cxx_werror_flag" ||
1785 test ! -s conftest.err
1786 } && test -s conftest.$ac_objext; then :
1787 ac_retval=0
1788 else
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 ac_retval=1
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 as_fn_set_status $ac_retval
1797 } # ac_fn_cxx_try_compile
1799 # ac_fn_cxx_try_cpp LINENO
1800 # ------------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_cxx_try_cpp ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_cpp conftest.$ac_ext"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813 ac_status=$?
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } >/dev/null && {
1821 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1822 test ! -s conftest.err
1823 }; then :
1824 ac_retval=0
1825 else
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 ac_retval=1
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832 as_fn_set_status $ac_retval
1834 } # ac_fn_cxx_try_cpp
1836 # ac_fn_c_try_compile LINENO
1837 # --------------------------
1838 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_compile ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 rm -f conftest.$ac_objext
1843 if { { ac_try="$ac_compile"
1844 case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_compile") 2>conftest.err
1851 ac_status=$?
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && {
1859 test -z "$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1861 } && test -s conftest.$ac_objext; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1867 ac_retval=1
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 as_fn_set_status $ac_retval
1872 } # ac_fn_c_try_compile
1874 # ac_fn_c_try_cpp LINENO
1875 # ----------------------
1876 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1877 ac_fn_c_try_cpp ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { { ac_try="$ac_cpp conftest.$ac_ext"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } >/dev/null && {
1896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1897 test ! -s conftest.err
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=1
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907 as_fn_set_status $ac_retval
1909 } # ac_fn_c_try_cpp
1911 # ac_fn_c_try_link LINENO
1912 # -----------------------
1913 # Try to link conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_c_try_link ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 rm -f conftest.$ac_objext conftest$ac_exeext
1918 if { { ac_try="$ac_link"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_c_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest$ac_exeext && {
1937 test "$cross_compiling" = yes ||
1938 $as_test_x conftest$ac_exeext
1939 }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1945 ac_retval=1
1947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1949 # interfere with the next link command; also delete a directory that is
1950 # left behind by Apple's compiler. We do this before executing the actions.
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 as_fn_set_status $ac_retval
1955 } # ac_fn_c_try_link
1957 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1958 # -------------------------------------------------------
1959 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1960 # the include files in INCLUDES and setting the cache variable VAR
1961 # accordingly.
1962 ac_fn_c_check_header_mongrel ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967 $as_echo_n "checking for $2... " >&6; }
1968 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1969 $as_echo_n "(cached) " >&6
1971 eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 else
1975 # Is the header compilable?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1977 $as_echo_n "checking $2 usability... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1981 #include <$2>
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 ac_header_compiler=yes
1985 else
1986 ac_header_compiler=no
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1990 $as_echo "$ac_header_compiler" >&6; }
1992 # Is the header present?
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1994 $as_echo_n "checking $2 presence... " >&6; }
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1997 #include <$2>
1998 _ACEOF
1999 if ac_fn_c_try_cpp "$LINENO"; then :
2000 ac_header_preproc=yes
2001 else
2002 ac_header_preproc=no
2004 rm -f conftest.err conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2006 $as_echo "$ac_header_preproc" >&6; }
2008 # So? What about this header?
2009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2010 yes:no: )
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2012 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2016 no:yes:* )
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2018 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2020 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2022 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2024 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2026 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027 ( cat <<\_ASBOX
2028 ## ------------------------------ ##
2029 ## Report this to admin@amule.org ##
2030 ## ------------------------------ ##
2031 _ASBOX
2032 ) | sed "s/^/$as_me: WARNING: /" >&2
2034 esac
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2038 $as_echo_n "(cached) " >&6
2039 else
2040 eval "$3=\$ac_header_compiler"
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048 } # ac_fn_c_check_header_mongrel
2050 # ac_fn_c_try_run LINENO
2051 # ----------------------
2052 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2053 # that executables *can* be run.
2054 ac_fn_c_try_run ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if { { ac_try="$ac_link"
2058 case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_link") 2>&5
2065 ac_status=$?
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2068 { { case "(($ac_try" in
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2071 esac
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074 (eval "$ac_try") 2>&5
2075 ac_status=$?
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; }; }; then :
2078 ac_retval=0
2079 else
2080 $as_echo "$as_me: program exited with status $ac_status" >&5
2081 $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2084 ac_retval=$ac_status
2086 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 as_fn_set_status $ac_retval
2090 } # ac_fn_c_try_run
2092 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2093 # -------------------------------------------------------
2094 # Tests whether HEADER exists and can be compiled using the include files in
2095 # INCLUDES, setting the cache variable VAR accordingly.
2096 ac_fn_c_check_header_compile ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100 $as_echo_n "checking for $2... " >&6; }
2101 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2102 $as_echo_n "(cached) " >&6
2103 else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2107 #include <$2>
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110 eval "$3=yes"
2111 else
2112 eval "$3=no"
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121 } # ac_fn_c_check_header_compile
2123 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2124 # -------------------------------------------
2125 # Tests whether TYPE exists after having included INCLUDES, setting cache
2126 # variable VAR accordingly.
2127 ac_fn_c_check_type ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 eval "$3=no"
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2140 main ()
2142 if (sizeof ($2))
2143 return 0;
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2153 main ()
2155 if (sizeof (($2)))
2156 return 0;
2158 return 0;
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2163 else
2164 eval "$3=yes"
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 } # ac_fn_c_check_type
2177 # ac_fn_cxx_try_link LINENO
2178 # -------------------------
2179 # Try to link conftest.$ac_ext, and return whether this succeeded.
2180 ac_fn_cxx_try_link ()
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 rm -f conftest.$ac_objext conftest$ac_exeext
2184 if { { ac_try="$ac_link"
2185 case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188 esac
2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_link") 2>conftest.err
2192 ac_status=$?
2193 if test -s conftest.err; then
2194 grep -v '^ *+' conftest.err >conftest.er1
2195 cat conftest.er1 >&5
2196 mv -f conftest.er1 conftest.err
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; } && {
2200 test -z "$ac_cxx_werror_flag" ||
2201 test ! -s conftest.err
2202 } && test -s conftest$ac_exeext && {
2203 test "$cross_compiling" = yes ||
2204 $as_test_x conftest$ac_exeext
2205 }; then :
2206 ac_retval=0
2207 else
2208 $as_echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.$ac_ext >&5
2211 ac_retval=1
2213 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2214 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2215 # interfere with the next link command; also delete a directory that is
2216 # left behind by Apple's compiler. We do this before executing the actions.
2217 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2219 as_fn_set_status $ac_retval
2221 } # ac_fn_cxx_try_link
2223 # ac_fn_cxx_try_run LINENO
2224 # ------------------------
2225 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2226 # that executables *can* be run.
2227 ac_fn_cxx_try_run ()
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 if { { ac_try="$ac_link"
2231 case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234 esac
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_link") 2>&5
2238 ac_status=$?
2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2241 { { case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2244 esac
2245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2246 $as_echo "$ac_try_echo"; } >&5
2247 (eval "$ac_try") 2>&5
2248 ac_status=$?
2249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 test $ac_status = 0; }; }; then :
2251 ac_retval=0
2252 else
2253 $as_echo "$as_me: program exited with status $ac_status" >&5
2254 $as_echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2257 ac_retval=$ac_status
2259 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 as_fn_set_status $ac_retval
2263 } # ac_fn_cxx_try_run
2265 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2266 # ---------------------------------------------------------
2267 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2268 # the include files in INCLUDES and setting the cache variable VAR
2269 # accordingly.
2270 ac_fn_cxx_check_header_mongrel ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2275 $as_echo_n "checking for $2... " >&6; }
2276 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2279 eval ac_res=\$$3
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281 $as_echo "$ac_res" >&6; }
2282 else
2283 # Is the header compilable?
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2285 $as_echo_n "checking $2 usability... " >&6; }
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2289 #include <$2>
2290 _ACEOF
2291 if ac_fn_cxx_try_compile "$LINENO"; then :
2292 ac_header_compiler=yes
2293 else
2294 ac_header_compiler=no
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2298 $as_echo "$ac_header_compiler" >&6; }
2300 # Is the header present?
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2302 $as_echo_n "checking $2 presence... " >&6; }
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 #include <$2>
2306 _ACEOF
2307 if ac_fn_cxx_try_cpp "$LINENO"; then :
2308 ac_header_preproc=yes
2309 else
2310 ac_header_preproc=no
2312 rm -f conftest.err conftest.$ac_ext
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2314 $as_echo "$ac_header_preproc" >&6; }
2316 # So? What about this header?
2317 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2318 yes:no: )
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2320 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2322 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2324 no:yes:* )
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2326 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2328 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2330 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2332 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2334 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2335 ( cat <<\_ASBOX
2336 ## ------------------------------ ##
2337 ## Report this to admin@amule.org ##
2338 ## ------------------------------ ##
2339 _ASBOX
2340 ) | sed "s/^/$as_me: WARNING: /" >&2
2342 esac
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2344 $as_echo_n "checking for $2... " >&6; }
2345 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2346 $as_echo_n "(cached) " >&6
2347 else
2348 eval "$3=\$ac_header_compiler"
2350 eval ac_res=\$$3
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356 } # ac_fn_cxx_check_header_mongrel
2358 # ac_fn_cxx_check_func LINENO FUNC VAR
2359 # ------------------------------------
2360 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2361 ac_fn_cxx_check_func ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2367 $as_echo_n "(cached) " >&6
2368 else
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2371 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2373 #define $2 innocuous_$2
2375 /* System header to define __stub macros and hopefully few prototypes,
2376 which can conflict with char $2 (); below.
2377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378 <limits.h> exists even on freestanding compilers. */
2380 #ifdef __STDC__
2381 # include <limits.h>
2382 #else
2383 # include <assert.h>
2384 #endif
2386 #undef $2
2388 /* Override any GCC internal prototype to avoid an error.
2389 Use char because int might match the return type of a GCC
2390 builtin and then its argument prototype would still apply. */
2391 #ifdef __cplusplus
2392 extern "C"
2393 #endif
2394 char $2 ();
2395 /* The GNU C library defines this for functions which it implements
2396 to always fail with ENOSYS. Some functions are actually named
2397 something starting with __ and the normal name is an alias. */
2398 #if defined __stub_$2 || defined __stub___$2
2399 choke me
2400 #endif
2403 main ()
2405 return $2 ();
2407 return 0;
2409 _ACEOF
2410 if ac_fn_cxx_try_link "$LINENO"; then :
2411 eval "$3=yes"
2412 else
2413 eval "$3=no"
2415 rm -f core conftest.err conftest.$ac_objext \
2416 conftest$ac_exeext conftest.$ac_ext
2418 eval ac_res=\$$3
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2423 } # ac_fn_cxx_check_func
2425 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2426 # ---------------------------------------------
2427 # Tests whether TYPE exists after having included INCLUDES, setting cache
2428 # variable VAR accordingly.
2429 ac_fn_cxx_check_type ()
2431 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2433 $as_echo_n "checking for $2... " >&6; }
2434 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 eval "$3=no"
2438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2439 /* end confdefs.h. */
2442 main ()
2444 if (sizeof ($2))
2445 return 0;
2447 return 0;
2449 _ACEOF
2450 if ac_fn_cxx_try_compile "$LINENO"; then :
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 main ()
2457 if (sizeof (($2)))
2458 return 0;
2460 return 0;
2462 _ACEOF
2463 if ac_fn_cxx_try_compile "$LINENO"; then :
2465 else
2466 eval "$3=yes"
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2472 eval ac_res=\$$3
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2474 $as_echo "$ac_res" >&6; }
2475 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2477 } # ac_fn_cxx_check_type
2479 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2480 # ---------------------------------------------------------
2481 # Tests whether HEADER exists and can be compiled using the include files in
2482 # INCLUDES, setting the cache variable VAR accordingly.
2483 ac_fn_cxx_check_header_compile ()
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2487 $as_echo_n "checking for $2... " >&6; }
2488 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2494 #include <$2>
2495 _ACEOF
2496 if ac_fn_cxx_try_compile "$LINENO"; then :
2497 eval "$3=yes"
2498 else
2499 eval "$3=no"
2501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 eval ac_res=\$$3
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505 $as_echo "$ac_res" >&6; }
2506 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508 } # ac_fn_cxx_check_header_compile
2510 # ac_fn_c_check_func LINENO FUNC VAR
2511 # ----------------------------------
2512 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2513 ac_fn_c_check_func ()
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2517 $as_echo_n "checking for $2... " >&6; }
2518 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2523 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2525 #define $2 innocuous_$2
2527 /* System header to define __stub macros and hopefully few prototypes,
2528 which can conflict with char $2 (); below.
2529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2530 <limits.h> exists even on freestanding compilers. */
2532 #ifdef __STDC__
2533 # include <limits.h>
2534 #else
2535 # include <assert.h>
2536 #endif
2538 #undef $2
2540 /* Override any GCC internal prototype to avoid an error.
2541 Use char because int might match the return type of a GCC
2542 builtin and then its argument prototype would still apply. */
2543 #ifdef __cplusplus
2544 extern "C"
2545 #endif
2546 char $2 ();
2547 /* The GNU C library defines this for functions which it implements
2548 to always fail with ENOSYS. Some functions are actually named
2549 something starting with __ and the normal name is an alias. */
2550 #if defined __stub_$2 || defined __stub___$2
2551 choke me
2552 #endif
2555 main ()
2557 return $2 ();
2559 return 0;
2561 _ACEOF
2562 if ac_fn_c_try_link "$LINENO"; then :
2563 eval "$3=yes"
2564 else
2565 eval "$3=no"
2567 rm -f core conftest.err conftest.$ac_objext \
2568 conftest$ac_exeext conftest.$ac_ext
2570 eval ac_res=\$$3
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572 $as_echo "$ac_res" >&6; }
2573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2575 } # ac_fn_c_check_func
2577 # ac_fn_c_check_decl LINENO SYMBOL VAR
2578 # ------------------------------------
2579 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2580 ac_fn_c_check_decl ()
2582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2584 $as_echo_n "checking whether $2 is declared... " >&6; }
2585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2592 main ()
2594 #ifndef $2
2595 (void) $2;
2596 #endif
2599 return 0;
2601 _ACEOF
2602 if ac_fn_c_try_compile "$LINENO"; then :
2603 eval "$3=yes"
2604 else
2605 eval "$3=no"
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 eval ac_res=\$$3
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2614 } # ac_fn_c_check_decl
2615 cat >config.log <<_ACEOF
2616 This file contains any messages produced by compilers while
2617 running configure, to aid debugging if configure makes a mistake.
2619 It was created by aMule $as_me SVN, which was
2620 generated by GNU Autoconf 2.65. Invocation command line was
2622 $ $0 $@
2624 _ACEOF
2625 exec 5>>config.log
2627 cat <<_ASUNAME
2628 ## --------- ##
2629 ## Platform. ##
2630 ## --------- ##
2632 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2633 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2634 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2635 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2636 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2638 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2639 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2641 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2642 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2643 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2644 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2645 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2646 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2647 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2649 _ASUNAME
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 $as_echo "PATH: $as_dir"
2657 done
2658 IFS=$as_save_IFS
2660 } >&5
2662 cat >&5 <<_ACEOF
2665 ## ----------- ##
2666 ## Core tests. ##
2667 ## ----------- ##
2669 _ACEOF
2672 # Keep a trace of the command line.
2673 # Strip out --no-create and --no-recursion so they do not pile up.
2674 # Strip out --silent because we don't want to record it for future runs.
2675 # Also quote any args containing shell meta-characters.
2676 # Make two passes to allow for proper duplicate-argument suppression.
2677 ac_configure_args=
2678 ac_configure_args0=
2679 ac_configure_args1=
2680 ac_must_keep_next=false
2681 for ac_pass in 1 2
2683 for ac_arg
2685 case $ac_arg in
2686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2688 | -silent | --silent | --silen | --sile | --sil)
2689 continue ;;
2690 *\'*)
2691 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2692 esac
2693 case $ac_pass in
2694 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2696 as_fn_append ac_configure_args1 " '$ac_arg'"
2697 if test $ac_must_keep_next = true; then
2698 ac_must_keep_next=false # Got value, back to normal.
2699 else
2700 case $ac_arg in
2701 *=* | --config-cache | -C | -disable-* | --disable-* \
2702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2704 | -with-* | --with-* | -without-* | --without-* | --x)
2705 case "$ac_configure_args0 " in
2706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2707 esac
2709 -* ) ac_must_keep_next=true ;;
2710 esac
2712 as_fn_append ac_configure_args " '$ac_arg'"
2714 esac
2715 done
2716 done
2717 { ac_configure_args0=; unset ac_configure_args0;}
2718 { ac_configure_args1=; unset ac_configure_args1;}
2720 # When interrupted or exit'd, cleanup temporary files, and complete
2721 # config.log. We remove comments because anyway the quotes in there
2722 # would cause problems or look ugly.
2723 # WARNING: Use '\'' to represent an apostrophe within the trap.
2724 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2725 trap 'exit_status=$?
2726 # Save into config.log some information that might help in debugging.
2728 echo
2730 cat <<\_ASBOX
2731 ## ---------------- ##
2732 ## Cache variables. ##
2733 ## ---------------- ##
2734 _ASBOX
2735 echo
2736 # The following way of writing the cache mishandles newlines in values,
2738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2739 eval ac_val=\$$ac_var
2740 case $ac_val in #(
2741 *${as_nl}*)
2742 case $ac_var in #(
2743 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2745 esac
2746 case $ac_var in #(
2747 _ | IFS | as_nl) ;; #(
2748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2749 *) { eval $ac_var=; unset $ac_var;} ;;
2750 esac ;;
2751 esac
2752 done
2753 (set) 2>&1 |
2754 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2755 *${as_nl}ac_space=\ *)
2756 sed -n \
2757 "s/'\''/'\''\\\\'\'''\''/g;
2758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2759 ;; #(
2761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2763 esac |
2764 sort
2766 echo
2768 cat <<\_ASBOX
2769 ## ----------------- ##
2770 ## Output variables. ##
2771 ## ----------------- ##
2772 _ASBOX
2773 echo
2774 for ac_var in $ac_subst_vars
2776 eval ac_val=\$$ac_var
2777 case $ac_val in
2778 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 esac
2780 $as_echo "$ac_var='\''$ac_val'\''"
2781 done | sort
2782 echo
2784 if test -n "$ac_subst_files"; then
2785 cat <<\_ASBOX
2786 ## ------------------- ##
2787 ## File substitutions. ##
2788 ## ------------------- ##
2789 _ASBOX
2790 echo
2791 for ac_var in $ac_subst_files
2793 eval ac_val=\$$ac_var
2794 case $ac_val in
2795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2796 esac
2797 $as_echo "$ac_var='\''$ac_val'\''"
2798 done | sort
2799 echo
2802 if test -s confdefs.h; then
2803 cat <<\_ASBOX
2804 ## ----------- ##
2805 ## confdefs.h. ##
2806 ## ----------- ##
2807 _ASBOX
2808 echo
2809 cat confdefs.h
2810 echo
2812 test "$ac_signal" != 0 &&
2813 $as_echo "$as_me: caught signal $ac_signal"
2814 $as_echo "$as_me: exit $exit_status"
2815 } >&5
2816 rm -f core *.core core.conftest.* &&
2817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2818 exit $exit_status
2820 for ac_signal in 1 2 13 15; do
2821 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2822 done
2823 ac_signal=0
2825 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2826 rm -f -r conftest* confdefs.h
2828 $as_echo "/* confdefs.h */" > confdefs.h
2830 # Predefined preprocessor variables.
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE_NAME "$PACKAGE_NAME"
2834 _ACEOF
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2838 _ACEOF
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2842 _ACEOF
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE_STRING "$PACKAGE_STRING"
2846 _ACEOF
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2850 _ACEOF
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_URL "$PACKAGE_URL"
2854 _ACEOF
2857 # Let the site file select an alternate cache file if it wants to.
2858 # Prefer an explicitly selected file to automatically selected ones.
2859 ac_site_file1=NONE
2860 ac_site_file2=NONE
2861 if test -n "$CONFIG_SITE"; then
2862 ac_site_file1=$CONFIG_SITE
2863 elif test "x$prefix" != xNONE; then
2864 ac_site_file1=$prefix/share/config.site
2865 ac_site_file2=$prefix/etc/config.site
2866 else
2867 ac_site_file1=$ac_default_prefix/share/config.site
2868 ac_site_file2=$ac_default_prefix/etc/config.site
2870 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2872 test "x$ac_site_file" = xNONE && continue
2873 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2875 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2876 sed 's/^/| /' "$ac_site_file" >&5
2877 . "$ac_site_file"
2879 done
2881 if test -r "$cache_file"; then
2882 # Some versions of bash will fail to source /dev/null (special files
2883 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2884 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2886 $as_echo "$as_me: loading cache $cache_file" >&6;}
2887 case $cache_file in
2888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2889 *) . "./$cache_file";;
2890 esac
2892 else
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2894 $as_echo "$as_me: creating cache $cache_file" >&6;}
2895 >$cache_file
2898 as_fn_append ac_header_list " stdlib.h"
2899 as_fn_append ac_header_list " unistd.h"
2900 as_fn_append ac_header_list " sys/param.h"
2901 # Check that the precious variables saved in the cache have kept the same
2902 # value.
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906 eval ac_new_set=\$ac_env_${ac_var}_set
2907 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908 eval ac_new_val=\$ac_env_${ac_var}_value
2909 case $ac_old_set,$ac_new_set in
2910 set,)
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2914 ,set)
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2917 ac_cache_corrupted=: ;;
2918 ,);;
2920 if test "x$ac_old_val" != "x$ac_new_val"; then
2921 # differences in whitespace do not lead to failure.
2922 ac_old_val_w=`echo x $ac_old_val`
2923 ac_new_val_w=`echo x $ac_new_val`
2924 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2927 ac_cache_corrupted=:
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931 eval $ac_var=\$ac_old_val
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2934 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2937 fi;;
2938 esac
2939 # Pass precious variables to config.status.
2940 if test "$ac_new_set" = set; then
2941 case $ac_new_val in
2942 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943 *) ac_arg=$ac_var=$ac_new_val ;;
2944 esac
2945 case " $ac_configure_args " in
2946 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2947 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948 esac
2950 done
2951 if $ac_cache_corrupted; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969 am__api_version='1.11'
2971 ac_aux_dir=
2972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2973 for ac_t in install-sh install.sh shtool; do
2974 if test -f "$ac_dir/$ac_t"; then
2975 ac_aux_dir=$ac_dir
2976 ac_install_sh="$ac_aux_dir/$ac_t -c"
2977 break 2
2979 done
2980 done
2981 if test -z "$ac_aux_dir"; then
2982 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2985 # These three variables are undocumented and unsupported,
2986 # and are intended to be withdrawn in a future Autoconf release.
2987 # They can cause serious problems if a builder's source tree is in a directory
2988 # whose full name contains unusual characters.
2989 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2990 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2991 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2994 # Find a good install program. We prefer a C program (faster),
2995 # so one script is as good as another. But avoid the broken or
2996 # incompatible versions:
2997 # SysV /etc/install, /usr/sbin/install
2998 # SunOS /usr/etc/install
2999 # IRIX /sbin/install
3000 # AIX /bin/install
3001 # AmigaOS /C/install, which installs bootblocks on floppy discs
3002 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3003 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3004 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3005 # OS/2's system install, which has a completely different semantic
3006 # ./install, which can be erroneously created by make from ./install.sh.
3007 # Reject install programs that cannot install multiple files.
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3009 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3010 if test -z "$INSTALL"; then
3011 if test "${ac_cv_path_install+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 # Account for people who put trailing slashes in PATH elements.
3020 case $as_dir/ in #((
3021 ./ | .// | /[cC]/* | \
3022 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3023 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3024 /usr/ucb/* ) ;;
3026 # OSF1 and SCO ODT 3.0 have their own names for install.
3027 # Don't use installbsd from OSF since it installs stuff as root
3028 # by default.
3029 for ac_prog in ginstall scoinst install; do
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3032 if test $ac_prog = install &&
3033 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3034 # AIX install. It has an incompatible calling convention.
3036 elif test $ac_prog = install &&
3037 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3038 # program-specific install script used by HP pwplus--don't use.
3040 else
3041 rm -rf conftest.one conftest.two conftest.dir
3042 echo one > conftest.one
3043 echo two > conftest.two
3044 mkdir conftest.dir
3045 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3046 test -s conftest.one && test -s conftest.two &&
3047 test -s conftest.dir/conftest.one &&
3048 test -s conftest.dir/conftest.two
3049 then
3050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3051 break 3
3055 done
3056 done
3058 esac
3060 done
3061 IFS=$as_save_IFS
3063 rm -rf conftest.one conftest.two conftest.dir
3066 if test "${ac_cv_path_install+set}" = set; then
3067 INSTALL=$ac_cv_path_install
3068 else
3069 # As a last resort, use the slow shell script. Don't cache a
3070 # value for INSTALL within a source directory, because that will
3071 # break other packages using the cache if that directory is
3072 # removed, or if the value is a relative name.
3073 INSTALL=$ac_install_sh
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3077 $as_echo "$INSTALL" >&6; }
3079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3080 # It thinks the first close brace ends the variable substitution.
3081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3088 $as_echo_n "checking whether build environment is sane... " >&6; }
3089 # Just in case
3090 sleep 1
3091 echo timestamp > conftest.file
3092 # Reject unsafe characters in $srcdir or the absolute working directory
3093 # name. Accept space and tab only in the latter.
3094 am_lf='
3096 case `pwd` in
3097 *[\\\"\#\$\&\'\`$am_lf]*)
3098 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3099 esac
3100 case $srcdir in
3101 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3102 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3103 esac
3105 # Do `set' in a subshell so we don't clobber the current shell's
3106 # arguments. Must try -L first in case configure is actually a
3107 # symlink; some systems play weird games with the mod time of symlinks
3108 # (eg FreeBSD returns the mod time of the symlink's containing
3109 # directory).
3110 if (
3111 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3112 if test "$*" = "X"; then
3113 # -L didn't work.
3114 set X `ls -t "$srcdir/configure" conftest.file`
3116 rm -f conftest.file
3117 if test "$*" != "X $srcdir/configure conftest.file" \
3118 && test "$*" != "X conftest.file $srcdir/configure"; then
3120 # If neither matched, then we have a broken ls. This can happen
3121 # if, for instance, CONFIG_SHELL is bash and it inherits a
3122 # broken ls alias from the environment. This has actually
3123 # happened. Such a system could not be considered "sane".
3124 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3125 alias in your environment" "$LINENO" 5
3128 test "$2" = conftest.file
3130 then
3131 # Ok.
3133 else
3134 as_fn_error "newly created file is older than distributed files!
3135 Check your system clock" "$LINENO" 5
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139 test "$program_prefix" != NONE &&
3140 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3141 # Use a double $ so make ignores it.
3142 test "$program_suffix" != NONE &&
3143 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3144 # Double any \ or $.
3145 # By default was `s,x,x', remove it if useless.
3146 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3147 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3149 # expand $ac_aux_dir to an absolute path
3150 am_aux_dir=`cd $ac_aux_dir && pwd`
3152 if test x"${MISSING+set}" != xset; then
3153 case $am_aux_dir in
3154 *\ * | *\ *)
3155 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3157 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3158 esac
3160 # Use eval to expand $SHELL
3161 if eval "$MISSING --run true"; then
3162 am_missing_run="$MISSING --run "
3163 else
3164 am_missing_run=
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3166 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3169 if test x"${install_sh}" != xset; then
3170 case $am_aux_dir in
3171 *\ * | *\ *)
3172 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3174 install_sh="\${SHELL} $am_aux_dir/install-sh"
3175 esac
3178 # Installed binaries are usually stripped using `strip' when the user
3179 # run `make install-strip'. However `strip' might not be the right
3180 # tool to use in cross-compilation environments, therefore Automake
3181 # will honor the `STRIP' environment variable to overrule this program.
3182 if test "$cross_compiling" != no; then
3183 if test -n "$ac_tool_prefix"; then
3184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3185 set dummy ${ac_tool_prefix}strip; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_STRIP+set}" = set; then :
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test -n "$STRIP"; then
3192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3193 else
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3197 IFS=$as_save_IFS
3198 test -z "$as_dir" && as_dir=.
3199 for ac_exec_ext in '' $ac_executable_extensions; do
3200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 break 2
3205 done
3206 done
3207 IFS=$as_save_IFS
3211 STRIP=$ac_cv_prog_STRIP
3212 if test -n "$STRIP"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3214 $as_echo "$STRIP" >&6; }
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3222 if test -z "$ac_cv_prog_STRIP"; then
3223 ac_ct_STRIP=$STRIP
3224 # Extract the first word of "strip", so it can be a program name with args.
3225 set dummy strip; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if test -n "$ac_ct_STRIP"; then
3232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241 ac_cv_prog_ac_ct_STRIP="strip"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3245 done
3246 done
3247 IFS=$as_save_IFS
3251 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3252 if test -n "$ac_ct_STRIP"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3254 $as_echo "$ac_ct_STRIP" >&6; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3260 if test "x$ac_ct_STRIP" = x; then
3261 STRIP=":"
3262 else
3263 case $cross_compiling:$ac_tool_warned in
3264 yes:)
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267 ac_tool_warned=yes ;;
3268 esac
3269 STRIP=$ac_ct_STRIP
3271 else
3272 STRIP="$ac_cv_prog_STRIP"
3276 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3279 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3280 if test -z "$MKDIR_P"; then
3281 if test "${ac_cv_path_mkdir+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_prog in mkdir gmkdir; do
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3292 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3293 'mkdir (GNU coreutils) '* | \
3294 'mkdir (coreutils) '* | \
3295 'mkdir (fileutils) '4.1*)
3296 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3297 break 3;;
3298 esac
3299 done
3300 done
3301 done
3302 IFS=$as_save_IFS
3306 test -d ./--version && rmdir ./--version
3307 if test "${ac_cv_path_mkdir+set}" = set; then
3308 MKDIR_P="$ac_cv_path_mkdir -p"
3309 else
3310 # As a last resort, use the slow shell script. Don't cache a
3311 # value for MKDIR_P within a source directory, because that will
3312 # break other packages using the cache if that directory is
3313 # removed, or if the value is a relative name.
3314 MKDIR_P="$ac_install_sh -d"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3318 $as_echo "$MKDIR_P" >&6; }
3320 mkdir_p="$MKDIR_P"
3321 case $mkdir_p in
3322 [\\/$]* | ?:[\\/]*) ;;
3323 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3324 esac
3326 for ac_prog in gawk mawk nawk awk
3328 # Extract the first word of "$ac_prog", so it can be a program name with args.
3329 set dummy $ac_prog; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if test "${ac_cv_prog_AWK+set}" = set; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if test -n "$AWK"; then
3336 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3341 IFS=$as_save_IFS
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345 ac_cv_prog_AWK="$ac_prog"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3349 done
3350 done
3351 IFS=$as_save_IFS
3355 AWK=$ac_cv_prog_AWK
3356 if test -n "$AWK"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3358 $as_echo "$AWK" >&6; }
3359 else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3365 test -n "$AWK" && break
3366 done
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3369 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3370 set x ${MAKE-make}
3371 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3372 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 cat >conftest.make <<\_ACEOF
3376 SHELL = /bin/sh
3377 all:
3378 @echo '@@@%%%=$(MAKE)=@@@%%%'
3379 _ACEOF
3380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3381 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3382 *@@@%%%=?*=@@@%%%*)
3383 eval ac_cv_prog_make_${ac_make}_set=yes;;
3385 eval ac_cv_prog_make_${ac_make}_set=no;;
3386 esac
3387 rm -f conftest.make
3389 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3391 $as_echo "yes" >&6; }
3392 SET_MAKE=
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 SET_MAKE="MAKE=${MAKE-make}"
3399 rm -rf .tst 2>/dev/null
3400 mkdir .tst 2>/dev/null
3401 if test -d .tst; then
3402 am__leading_dot=.
3403 else
3404 am__leading_dot=_
3406 rmdir .tst 2>/dev/null
3408 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3409 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3410 # is not polluted with repeated "-I."
3411 am__isrc=' -I$(srcdir)'
3412 # test to see if srcdir already configured
3413 if test -f $srcdir/config.status; then
3414 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3418 # test whether we have cygpath
3419 if test -z "$CYGPATH_W"; then
3420 if (cygpath --version) >/dev/null 2>/dev/null; then
3421 CYGPATH_W='cygpath -w'
3422 else
3423 CYGPATH_W=echo
3428 # Define the identity of the package.
3429 PACKAGE='amule'
3430 VERSION='SVN'
3433 cat >>confdefs.h <<_ACEOF
3434 #define PACKAGE "$PACKAGE"
3435 _ACEOF
3438 cat >>confdefs.h <<_ACEOF
3439 #define VERSION "$VERSION"
3440 _ACEOF
3442 # Some tools Automake needs.
3444 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3447 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3450 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3453 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3456 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3458 # We need awk for the "check" target. The system "awk" is bad on
3459 # some platforms.
3460 # Always define AMTAR for backward compatibility.
3462 AMTAR=${AMTAR-"${am_missing_run}tar"}
3464 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3470 # Check whether --enable-silent-rules was given.
3471 if test "${enable_silent_rules+set}" = set; then :
3472 enableval=$enable_silent_rules;
3475 case $enable_silent_rules in
3476 yes) AM_DEFAULT_VERBOSITY=0;;
3477 no) AM_DEFAULT_VERBOSITY=1;;
3478 *) AM_DEFAULT_VERBOSITY=1;;
3479 esac
3480 AM_BACKSLASH='\'
3486 ac_config_headers="$ac_config_headers config.h"
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3491 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3492 # Check whether --enable-maintainer-mode was given.
3493 if test "${enable_maintainer_mode+set}" = set; then :
3494 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3495 else
3496 USE_MAINTAINER_MODE=no
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3500 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3501 if test $USE_MAINTAINER_MODE = yes; then
3502 MAINTAINER_MODE_TRUE=
3503 MAINTAINER_MODE_FALSE='#'
3504 else
3505 MAINTAINER_MODE_TRUE='#'
3506 MAINTAINER_MODE_FALSE=
3509 MAINT=$MAINTAINER_MODE_TRUE
3513 # Make sure we can run config.sub.
3514 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3515 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3518 $as_echo_n "checking build system type... " >&6; }
3519 if test "${ac_cv_build+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 ac_build_alias=$build_alias
3523 test "x$ac_build_alias" = x &&
3524 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3525 test "x$ac_build_alias" = x &&
3526 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3527 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3528 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3532 $as_echo "$ac_cv_build" >&6; }
3533 case $ac_cv_build in
3534 *-*-*) ;;
3535 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3536 esac
3537 build=$ac_cv_build
3538 ac_save_IFS=$IFS; IFS='-'
3539 set x $ac_cv_build
3540 shift
3541 build_cpu=$1
3542 build_vendor=$2
3543 shift; shift
3544 # Remember, the first character of IFS is used to create $*,
3545 # except with old shells:
3546 build_os=$*
3547 IFS=$ac_save_IFS
3548 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3552 $as_echo_n "checking host system type... " >&6; }
3553 if test "${ac_cv_host+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test "x$host_alias" = x; then
3557 ac_cv_host=$ac_cv_build
3558 else
3559 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3560 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3565 $as_echo "$ac_cv_host" >&6; }
3566 case $ac_cv_host in
3567 *-*-*) ;;
3568 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3569 esac
3570 host=$ac_cv_host
3571 ac_save_IFS=$IFS; IFS='-'
3572 set x $ac_cv_host
3573 shift
3574 host_cpu=$1
3575 host_vendor=$2
3576 shift; shift
3577 # Remember, the first character of IFS is used to create $*,
3578 # except with old shells:
3579 host_os=$*
3580 IFS=$ac_save_IFS
3581 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3585 case "${host_os}" in
3586 darwin*)
3587 SYS=darwin
3588 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3589 MULELDFLAGS="-bind_at_load"
3590 touch src/Scanner.cpp
3592 openbsd*)
3593 SYS=openbsd
3594 LIBS="$LIBS -L/usr/local/lib"
3595 MULECPPFLAGS="-D__OPENBSD__"
3597 *cygwin* | *mingw32*)
3598 SYS=win32
3599 MULECPPFLAGS="-DNOMINMAX"
3601 solaris*)
3602 SYS=solaris
3603 RESOLV_LIB="-lresolv -lnsl"
3604 LIBS="$LIBS -lrt"
3606 *netbsd*)
3607 SYS=netbsd
3608 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3609 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3610 # Still, we prepend them, instead of adding, so the user may override them.
3611 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3612 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3614 *irix*)
3615 SYS=irix
3616 MULECPPFLAGS="-D__IRIX__"
3619 SYS=unknown
3621 esac
3623 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3624 if test ${SYS:-unknown} != win32; then :
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3627 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3628 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3630 MULELDFLAGS="$MULELDFLAGS -pthread"
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632 $as_echo "yes" >&6; }
3634 else
3636 MULELDFLAGS="$MULELDFLAGS -lpthread"
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3646 mule_backup_CFLAGS="$CFLAGS"
3647 mule_backup_CXXFLAGS="$CXXFLAGS"
3648 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3649 ac_ext=cpp
3650 ac_cpp='$CXXCPP $CPPFLAGS'
3651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3654 if test -z "$CXX"; then
3655 if test -n "$CCC"; then
3656 CXX=$CCC
3657 else
3658 if test -n "$ac_tool_prefix"; then
3659 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if test "${ac_cv_prog_CXX+set}" = set; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -n "$CXX"; then
3669 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 break 2
3682 done
3683 done
3684 IFS=$as_save_IFS
3688 CXX=$ac_cv_prog_CXX
3689 if test -n "$CXX"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3691 $as_echo "$CXX" >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3698 test -n "$CXX" && break
3699 done
3701 if test -z "$CXX"; then
3702 ac_ct_CXX=$CXX
3703 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3705 # Extract the first word of "$ac_prog", so it can be a program name with args.
3706 set dummy $ac_prog; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -n "$ac_ct_CXX"; then
3713 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3714 else
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3718 IFS=$as_save_IFS
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722 ac_cv_prog_ac_ct_CXX="$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 break 2
3726 done
3727 done
3728 IFS=$as_save_IFS
3732 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3733 if test -n "$ac_ct_CXX"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3735 $as_echo "$ac_ct_CXX" >&6; }
3736 else
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3742 test -n "$ac_ct_CXX" && break
3743 done
3745 if test "x$ac_ct_CXX" = x; then
3746 CXX="g++"
3747 else
3748 case $cross_compiling:$ac_tool_warned in
3749 yes:)
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3752 ac_tool_warned=yes ;;
3753 esac
3754 CXX=$ac_ct_CXX
3760 # Provide some information about the compiler.
3761 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3762 set X $ac_compile
3763 ac_compiler=$2
3764 for ac_option in --version -v -V -qversion; do
3765 { { ac_try="$ac_compiler $ac_option >&5"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3773 ac_status=$?
3774 if test -s conftest.err; then
3775 sed '10a\
3776 ... rest of stderr output deleted ...
3777 10q' conftest.err >conftest.er1
3778 cat conftest.er1 >&5
3780 rm -f conftest.er1 conftest.err
3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782 test $ac_status = 0; }
3783 done
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3789 main ()
3793 return 0;
3795 _ACEOF
3796 ac_clean_files_save=$ac_clean_files
3797 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3798 # Try to create an executable without -o first, disregard a.out.
3799 # It will help us diagnose broken compilers, and finding out an intuition
3800 # of exeext.
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3802 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3803 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3805 # The possible output files:
3806 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3808 ac_rmfiles=
3809 for ac_file in $ac_files
3811 case $ac_file in
3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3814 esac
3815 done
3816 rm -f $ac_rmfiles
3818 if { { ac_try="$ac_link_default"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825 (eval "$ac_link_default") 2>&5
3826 ac_status=$?
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }; then :
3829 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3830 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3831 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3832 # so that the user can short-circuit this test for compilers unknown to
3833 # Autoconf.
3834 for ac_file in $ac_files ''
3836 test -f "$ac_file" || continue
3837 case $ac_file in
3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3840 [ab].out )
3841 # We found the default executable, but exeext='' is most
3842 # certainly right.
3843 break;;
3844 *.* )
3845 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3846 then :; else
3847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3849 # We set ac_cv_exeext here because the later test for it is not
3850 # safe: cross compilers may not add the suffix if given an `-o'
3851 # argument, so we may need to know it at that point already.
3852 # Even if this section looks crufty: it has the advantage of
3853 # actually working.
3854 break;;
3856 break;;
3857 esac
3858 done
3859 test "$ac_cv_exeext" = no && ac_cv_exeext=
3861 else
3862 ac_file=''
3864 if test -z "$ac_file"; then :
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 { as_fn_set_status 77
3873 as_fn_error "C++ compiler cannot create executables
3874 See \`config.log' for more details." "$LINENO" 5; }; }
3875 else
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3877 $as_echo "yes" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3880 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3882 $as_echo "$ac_file" >&6; }
3883 ac_exeext=$ac_cv_exeext
3885 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3886 ac_clean_files=$ac_clean_files_save
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3888 $as_echo_n "checking for suffix of executables... " >&6; }
3889 if { { ac_try="$ac_link"
3890 case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3895 $as_echo "$ac_try_echo"; } >&5
3896 (eval "$ac_link") 2>&5
3897 ac_status=$?
3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }; then :
3900 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3901 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3902 # work properly (i.e., refer to `conftest.exe'), while it won't with
3903 # `rm'.
3904 for ac_file in conftest.exe conftest conftest.*; do
3905 test -f "$ac_file" || continue
3906 case $ac_file in
3907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3908 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3909 break;;
3910 * ) break;;
3911 esac
3912 done
3913 else
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error "cannot compute suffix of executables: cannot compile and link
3917 See \`config.log' for more details." "$LINENO" 5; }
3919 rm -f conftest conftest$ac_cv_exeext
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3921 $as_echo "$ac_cv_exeext" >&6; }
3923 rm -f conftest.$ac_ext
3924 EXEEXT=$ac_cv_exeext
3925 ac_exeext=$EXEEXT
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3928 #include <stdio.h>
3930 main ()
3932 FILE *f = fopen ("conftest.out", "w");
3933 return ferror (f) || fclose (f) != 0;
3936 return 0;
3938 _ACEOF
3939 ac_clean_files="$ac_clean_files conftest.out"
3940 # Check that the compiler produces executables we can run. If not, either
3941 # the compiler is broken, or we cross compile.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3943 $as_echo_n "checking whether we are cross compiling... " >&6; }
3944 if test "$cross_compiling" != yes; then
3945 { { ac_try="$ac_link"
3946 case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951 $as_echo "$ac_try_echo"; } >&5
3952 (eval "$ac_link") 2>&5
3953 ac_status=$?
3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }
3956 if { ac_try='./conftest$ac_cv_exeext'
3957 { { case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3967 cross_compiling=no
3968 else
3969 if test "$cross_compiling" = maybe; then
3970 cross_compiling=yes
3971 else
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error "cannot run C++ compiled programs.
3975 If you meant to cross compile, use \`--host'.
3976 See \`config.log' for more details." "$LINENO" 5; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3981 $as_echo "$cross_compiling" >&6; }
3983 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3984 ac_clean_files=$ac_clean_files_save
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3986 $as_echo_n "checking for suffix of object files... " >&6; }
3987 if test "${ac_cv_objext+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989 else
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3994 main ()
3998 return 0;
4000 _ACEOF
4001 rm -f conftest.o conftest.obj
4002 if { { ac_try="$ac_compile"
4003 case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_compile") 2>&5
4010 ac_status=$?
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; then :
4013 for ac_file in conftest.o conftest.obj conftest.*; do
4014 test -f "$ac_file" || continue;
4015 case $ac_file in
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4018 break;;
4019 esac
4020 done
4021 else
4022 $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error "cannot compute suffix of object files: cannot compile
4028 See \`config.log' for more details." "$LINENO" 5; }
4030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4033 $as_echo "$ac_cv_objext" >&6; }
4034 OBJEXT=$ac_cv_objext
4035 ac_objext=$OBJEXT
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4037 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4038 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4045 main ()
4047 #ifndef __GNUC__
4048 choke me
4049 #endif
4052 return 0;
4054 _ACEOF
4055 if ac_fn_cxx_try_compile "$LINENO"; then :
4056 ac_compiler_gnu=yes
4057 else
4058 ac_compiler_gnu=no
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4065 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4066 if test $ac_compiler_gnu = yes; then
4067 GXX=yes
4068 else
4069 GXX=
4071 ac_test_CXXFLAGS=${CXXFLAGS+set}
4072 ac_save_CXXFLAGS=$CXXFLAGS
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4074 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4075 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4079 ac_cxx_werror_flag=yes
4080 ac_cv_prog_cxx_g=no
4081 CXXFLAGS="-g"
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4086 main ()
4090 return 0;
4092 _ACEOF
4093 if ac_fn_cxx_try_compile "$LINENO"; then :
4094 ac_cv_prog_cxx_g=yes
4095 else
4096 CXXFLAGS=""
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4101 main ()
4105 return 0;
4107 _ACEOF
4108 if ac_fn_cxx_try_compile "$LINENO"; then :
4110 else
4111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4112 CXXFLAGS="-g"
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4117 main ()
4121 return 0;
4123 _ACEOF
4124 if ac_fn_cxx_try_compile "$LINENO"; then :
4125 ac_cv_prog_cxx_g=yes
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4135 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4136 if test "$ac_test_CXXFLAGS" = set; then
4137 CXXFLAGS=$ac_save_CXXFLAGS
4138 elif test $ac_cv_prog_cxx_g = yes; then
4139 if test "$GXX" = yes; then
4140 CXXFLAGS="-g -O2"
4141 else
4142 CXXFLAGS="-g"
4144 else
4145 if test "$GXX" = yes; then
4146 CXXFLAGS="-O2"
4147 else
4148 CXXFLAGS=
4151 ac_ext=c
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156 DEPDIR="${am__leading_dot}deps"
4158 ac_config_commands="$ac_config_commands depfiles"
4161 am_make=${MAKE-make}
4162 cat > confinc << 'END'
4163 am__doit:
4164 @echo this is the am__doit target
4165 .PHONY: am__doit
4167 # If we don't find an include directive, just comment out the code.
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4169 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4170 am__include="#"
4171 am__quote=
4172 _am_result=none
4173 # First try GNU make style include.
4174 echo "include confinc" > confmf
4175 # Ignore all kinds of additional output from `make'.
4176 case `$am_make -s -f confmf 2> /dev/null` in #(
4177 *the\ am__doit\ target*)
4178 am__include=include
4179 am__quote=
4180 _am_result=GNU
4182 esac
4183 # Now try BSD make style include.
4184 if test "$am__include" = "#"; then
4185 echo '.include "confinc"' > confmf
4186 case `$am_make -s -f confmf 2> /dev/null` in #(
4187 *the\ am__doit\ target*)
4188 am__include=.include
4189 am__quote="\""
4190 _am_result=BSD
4192 esac
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4197 $as_echo "$_am_result" >&6; }
4198 rm -f confinc confmf
4200 # Check whether --enable-dependency-tracking was given.
4201 if test "${enable_dependency_tracking+set}" = set; then :
4202 enableval=$enable_dependency_tracking;
4205 if test "x$enable_dependency_tracking" != xno; then
4206 am_depcomp="$ac_aux_dir/depcomp"
4207 AMDEPBACKSLASH='\'
4209 if test "x$enable_dependency_tracking" != xno; then
4210 AMDEP_TRUE=
4211 AMDEP_FALSE='#'
4212 else
4213 AMDEP_TRUE='#'
4214 AMDEP_FALSE=
4219 depcc="$CXX" am_compiler_list=
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4222 $as_echo_n "checking dependency style of $depcc... " >&6; }
4223 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4227 # We make a subdir and do the tests there. Otherwise we can end up
4228 # making bogus files that we don't know about and never remove. For
4229 # instance it was reported that on HP-UX the gcc test will end up
4230 # making a dummy file named `D' -- because `-MD' means `put the output
4231 # in D'.
4232 mkdir conftest.dir
4233 # Copy depcomp to subdir because otherwise we won't find it if we're
4234 # using a relative directory.
4235 cp "$am_depcomp" conftest.dir
4236 cd conftest.dir
4237 # We will build objects and dependencies in a subdirectory because
4238 # it helps to detect inapplicable dependency modes. For instance
4239 # both Tru64's cc and ICC support -MD to output dependencies as a
4240 # side effect of compilation, but ICC will put the dependencies in
4241 # the current directory while Tru64 will put them in the object
4242 # directory.
4243 mkdir sub
4245 am_cv_CXX_dependencies_compiler_type=none
4246 if test "$am_compiler_list" = ""; then
4247 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4249 am__universal=false
4250 case " $depcc " in #(
4251 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4252 esac
4254 for depmode in $am_compiler_list; do
4255 # Setup a source with many dependencies, because some compilers
4256 # like to wrap large dependency lists on column 80 (with \), and
4257 # we should not choose a depcomp mode which is confused by this.
4259 # We need to recreate these files for each test, as the compiler may
4260 # overwrite some of them when testing with obscure command lines.
4261 # This happens at least with the AIX C compiler.
4262 : > sub/conftest.c
4263 for i in 1 2 3 4 5 6; do
4264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4266 # Solaris 8's {/usr,}/bin/sh.
4267 touch sub/conftst$i.h
4268 done
4269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4271 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4272 # mode. It turns out that the SunPro C++ compiler does not properly
4273 # handle `-M -o', and we need to detect this. Also, some Intel
4274 # versions had trouble with output in subdirs
4275 am__obj=sub/conftest.${OBJEXT-o}
4276 am__minus_obj="-o $am__obj"
4277 case $depmode in
4278 gcc)
4279 # This depmode causes a compiler race in universal mode.
4280 test "$am__universal" = false || continue
4282 nosideeffect)
4283 # after this tag, mechanisms are not by side-effect, so they'll
4284 # only be used when explicitly requested
4285 if test "x$enable_dependency_tracking" = xyes; then
4286 continue
4287 else
4288 break
4291 msvisualcpp | msvcmsys)
4292 # This compiler won't grok `-c -o', but also, the minuso test has
4293 # not run yet. These depmodes are late enough in the game, and
4294 # so weak that their functioning should not be impacted.
4295 am__obj=conftest.${OBJEXT-o}
4296 am__minus_obj=
4298 none) break ;;
4299 esac
4300 if depmode=$depmode \
4301 source=sub/conftest.c object=$am__obj \
4302 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4303 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4304 >/dev/null 2>conftest.err &&
4305 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4306 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4307 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4308 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4309 # icc doesn't choke on unknown options, it will just issue warnings
4310 # or remarks (even with -Werror). So we grep stderr for any message
4311 # that says an option was ignored or not supported.
4312 # When given -MP, icc 7.0 and 7.1 complain thusly:
4313 # icc: Command line warning: ignoring option '-M'; no argument required
4314 # The diagnosis changed in icc 8.0:
4315 # icc: Command line remark: option '-MP' not supported
4316 if (grep 'ignoring option' conftest.err ||
4317 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4318 am_cv_CXX_dependencies_compiler_type=$depmode
4319 break
4322 done
4324 cd ..
4325 rm -rf conftest.dir
4326 else
4327 am_cv_CXX_dependencies_compiler_type=none
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4332 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4333 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4336 test "x$enable_dependency_tracking" != xno \
4337 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4338 am__fastdepCXX_TRUE=
4339 am__fastdepCXX_FALSE='#'
4340 else
4341 am__fastdepCXX_TRUE='#'
4342 am__fastdepCXX_FALSE=
4346 ac_ext=cpp
4347 ac_cpp='$CXXCPP $CPPFLAGS'
4348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4352 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4353 if test -z "$CXXCPP"; then
4354 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 # Double quotes because CXXCPP needs to be expanded
4358 for CXXCPP in "$CXX -E" "/lib/cpp"
4360 ac_preproc_ok=false
4361 for ac_cxx_preproc_warn_flag in '' yes
4363 # Use a header file that comes with gcc, so configuring glibc
4364 # with a fresh cross-compiler works.
4365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366 # <limits.h> exists even on freestanding compilers.
4367 # On the NeXT, cc -E runs the code through the compiler's parser,
4368 # not just through cpp. "Syntax error" is here to catch this case.
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #ifdef __STDC__
4372 # include <limits.h>
4373 #else
4374 # include <assert.h>
4375 #endif
4376 Syntax error
4377 _ACEOF
4378 if ac_fn_cxx_try_cpp "$LINENO"; then :
4380 else
4381 # Broken: fails on valid input.
4382 continue
4384 rm -f conftest.err conftest.$ac_ext
4386 # OK, works on sane cases. Now check whether nonexistent headers
4387 # can be detected and how.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390 #include <ac_nonexistent.h>
4391 _ACEOF
4392 if ac_fn_cxx_try_cpp "$LINENO"; then :
4393 # Broken: success on invalid input.
4394 continue
4395 else
4396 # Passes both tests.
4397 ac_preproc_ok=:
4398 break
4400 rm -f conftest.err conftest.$ac_ext
4402 done
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok; then :
4406 break
4409 done
4410 ac_cv_prog_CXXCPP=$CXXCPP
4413 CXXCPP=$ac_cv_prog_CXXCPP
4414 else
4415 ac_cv_prog_CXXCPP=$CXXCPP
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4418 $as_echo "$CXXCPP" >&6; }
4419 ac_preproc_ok=false
4420 for ac_cxx_preproc_warn_flag in '' yes
4422 # Use a header file that comes with gcc, so configuring glibc
4423 # with a fresh cross-compiler works.
4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425 # <limits.h> exists even on freestanding compilers.
4426 # On the NeXT, cc -E runs the code through the compiler's parser,
4427 # not just through cpp. "Syntax error" is here to catch this case.
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 #ifdef __STDC__
4431 # include <limits.h>
4432 #else
4433 # include <assert.h>
4434 #endif
4435 Syntax error
4436 _ACEOF
4437 if ac_fn_cxx_try_cpp "$LINENO"; then :
4439 else
4440 # Broken: fails on valid input.
4441 continue
4443 rm -f conftest.err conftest.$ac_ext
4445 # OK, works on sane cases. Now check whether nonexistent headers
4446 # can be detected and how.
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #include <ac_nonexistent.h>
4450 _ACEOF
4451 if ac_fn_cxx_try_cpp "$LINENO"; then :
4452 # Broken: success on invalid input.
4453 continue
4454 else
4455 # Passes both tests.
4456 ac_preproc_ok=:
4457 break
4459 rm -f conftest.err conftest.$ac_ext
4461 done
4462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4463 rm -f conftest.err conftest.$ac_ext
4464 if $ac_preproc_ok; then :
4466 else
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4470 See \`config.log' for more details." "$LINENO" 5; }
4473 ac_ext=c
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479 ac_ext=c
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484 if test -n "$ac_tool_prefix"; then
4485 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4486 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if test "${ac_cv_prog_CC+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 if test -n "$CC"; then
4493 ac_cv_prog_CC="$CC" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4506 done
4507 done
4508 IFS=$as_save_IFS
4512 CC=$ac_cv_prog_CC
4513 if test -n "$CC"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4515 $as_echo "$CC" >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4523 if test -z "$ac_cv_prog_CC"; then
4524 ac_ct_CC=$CC
4525 # Extract the first word of "gcc", so it can be a program name with args.
4526 set dummy gcc; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$ac_ct_CC"; then
4533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_ac_ct_CC="gcc"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4553 if test -n "$ac_ct_CC"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4555 $as_echo "$ac_ct_CC" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4561 if test "x$ac_ct_CC" = x; then
4562 CC=""
4563 else
4564 case $cross_compiling:$ac_tool_warned in
4565 yes:)
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4568 ac_tool_warned=yes ;;
4569 esac
4570 CC=$ac_ct_CC
4572 else
4573 CC="$ac_cv_prog_CC"
4576 if test -z "$CC"; then
4577 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}cc; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_CC+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -n "$CC"; then
4586 ac_cv_prog_CC="$CC" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_CC="${ac_tool_prefix}cc"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4599 done
4600 done
4601 IFS=$as_save_IFS
4605 CC=$ac_cv_prog_CC
4606 if test -n "$CC"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4608 $as_echo "$CC" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4617 if test -z "$CC"; then
4618 # Extract the first word of "cc", so it can be a program name with args.
4619 set dummy cc; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 ac_prog_rejected=no
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4637 ac_prog_rejected=yes
4638 continue
4640 ac_cv_prog_CC="cc"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4644 done
4645 done
4646 IFS=$as_save_IFS
4648 if test $ac_prog_rejected = yes; then
4649 # We found a bogon in the path, so make sure we never use it.
4650 set dummy $ac_cv_prog_CC
4651 shift
4652 if test $# != 0; then
4653 # We chose a different compiler from the bogus one.
4654 # However, it has the same basename, so the bogon will be chosen
4655 # first if we set CC to just the basename; use the full file name.
4656 shift
4657 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4662 CC=$ac_cv_prog_CC
4663 if test -n "$CC"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4665 $as_echo "$CC" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4673 if test -z "$CC"; then
4674 if test -n "$ac_tool_prefix"; then
4675 for ac_prog in cl.exe
4677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680 $as_echo_n "checking for $ac_word... " >&6; }
4681 if test "${ac_cv_prog_CC+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if test -n "$CC"; then
4685 ac_cv_prog_CC="$CC" # Let the user override the test.
4686 else
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4694 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4698 done
4699 done
4700 IFS=$as_save_IFS
4704 CC=$ac_cv_prog_CC
4705 if test -n "$CC"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4707 $as_echo "$CC" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4714 test -n "$CC" && break
4715 done
4717 if test -z "$CC"; then
4718 ac_ct_CC=$CC
4719 for ac_prog in cl.exe
4721 # Extract the first word of "$ac_prog", so it can be a program name with args.
4722 set dummy $ac_prog; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$ac_ct_CC"; then
4729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_ac_ct_CC="$ac_prog"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4749 if test -n "$ac_ct_CC"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4751 $as_echo "$ac_ct_CC" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4758 test -n "$ac_ct_CC" && break
4759 done
4761 if test "x$ac_ct_CC" = x; then
4762 CC=""
4763 else
4764 case $cross_compiling:$ac_tool_warned in
4765 yes:)
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768 ac_tool_warned=yes ;;
4769 esac
4770 CC=$ac_ct_CC
4777 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4779 as_fn_error "no acceptable C compiler found in \$PATH
4780 See \`config.log' for more details." "$LINENO" 5; }
4782 # Provide some information about the compiler.
4783 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4784 set X $ac_compile
4785 ac_compiler=$2
4786 for ac_option in --version -v -V -qversion; do
4787 { { ac_try="$ac_compiler $ac_option >&5"
4788 case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791 esac
4792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4793 $as_echo "$ac_try_echo"; } >&5
4794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4795 ac_status=$?
4796 if test -s conftest.err; then
4797 sed '10a\
4798 ... rest of stderr output deleted ...
4799 10q' conftest.err >conftest.er1
4800 cat conftest.er1 >&5
4802 rm -f conftest.er1 conftest.err
4803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4804 test $ac_status = 0; }
4805 done
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4808 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4809 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4816 main ()
4818 #ifndef __GNUC__
4819 choke me
4820 #endif
4823 return 0;
4825 _ACEOF
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827 ac_compiler_gnu=yes
4828 else
4829 ac_compiler_gnu=no
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4836 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4837 if test $ac_compiler_gnu = yes; then
4838 GCC=yes
4839 else
4840 GCC=
4842 ac_test_CFLAGS=${CFLAGS+set}
4843 ac_save_CFLAGS=$CFLAGS
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4845 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4846 if test "${ac_cv_prog_cc_g+set}" = set; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 ac_save_c_werror_flag=$ac_c_werror_flag
4850 ac_c_werror_flag=yes
4851 ac_cv_prog_cc_g=no
4852 CFLAGS="-g"
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4857 main ()
4861 return 0;
4863 _ACEOF
4864 if ac_fn_c_try_compile "$LINENO"; then :
4865 ac_cv_prog_cc_g=yes
4866 else
4867 CFLAGS=""
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4872 main ()
4876 return 0;
4878 _ACEOF
4879 if ac_fn_c_try_compile "$LINENO"; then :
4881 else
4882 ac_c_werror_flag=$ac_save_c_werror_flag
4883 CFLAGS="-g"
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4888 main ()
4892 return 0;
4894 _ACEOF
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 ac_cv_prog_cc_g=yes
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 ac_c_werror_flag=$ac_save_c_werror_flag
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4906 $as_echo "$ac_cv_prog_cc_g" >&6; }
4907 if test "$ac_test_CFLAGS" = set; then
4908 CFLAGS=$ac_save_CFLAGS
4909 elif test $ac_cv_prog_cc_g = yes; then
4910 if test "$GCC" = yes; then
4911 CFLAGS="-g -O2"
4912 else
4913 CFLAGS="-g"
4915 else
4916 if test "$GCC" = yes; then
4917 CFLAGS="-O2"
4918 else
4919 CFLAGS=
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4923 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4924 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 ac_cv_prog_cc_c89=no
4928 ac_save_CC=$CC
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 #include <stdarg.h>
4932 #include <stdio.h>
4933 #include <sys/types.h>
4934 #include <sys/stat.h>
4935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4936 struct buf { int x; };
4937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4938 static char *e (p, i)
4939 char **p;
4940 int i;
4942 return p[i];
4944 static char *f (char * (*g) (char **, int), char **p, ...)
4946 char *s;
4947 va_list v;
4948 va_start (v,p);
4949 s = g (p, va_arg (v,int));
4950 va_end (v);
4951 return s;
4954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4955 function prototypes and stuff, but not '\xHH' hex character constants.
4956 These don't provoke an error unfortunately, instead are silently treated
4957 as 'x'. The following induces an error, until -std is added to get
4958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4959 array size at least. It's necessary to write '\x00'==0 to get something
4960 that's true only with -std. */
4961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4964 inside strings and character constants. */
4965 #define FOO(x) 'x'
4966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4968 int test (int i, double x);
4969 struct s1 {int (*f) (int a);};
4970 struct s2 {int (*f) (double a);};
4971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4972 int argc;
4973 char **argv;
4975 main ()
4977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4979 return 0;
4981 _ACEOF
4982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4985 CC="$ac_save_CC $ac_arg"
4986 if ac_fn_c_try_compile "$LINENO"; then :
4987 ac_cv_prog_cc_c89=$ac_arg
4989 rm -f core conftest.err conftest.$ac_objext
4990 test "x$ac_cv_prog_cc_c89" != "xno" && break
4991 done
4992 rm -f conftest.$ac_ext
4993 CC=$ac_save_CC
4996 # AC_CACHE_VAL
4997 case "x$ac_cv_prog_cc_c89" in
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5000 $as_echo "none needed" >&6; } ;;
5001 xno)
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5003 $as_echo "unsupported" >&6; } ;;
5005 CC="$CC $ac_cv_prog_cc_c89"
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5008 esac
5009 if test "x$ac_cv_prog_cc_c89" != xno; then :
5013 ac_ext=c
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019 depcc="$CC" am_compiler_list=
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5022 $as_echo_n "checking dependency style of $depcc... " >&6; }
5023 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5027 # We make a subdir and do the tests there. Otherwise we can end up
5028 # making bogus files that we don't know about and never remove. For
5029 # instance it was reported that on HP-UX the gcc test will end up
5030 # making a dummy file named `D' -- because `-MD' means `put the output
5031 # in D'.
5032 mkdir conftest.dir
5033 # Copy depcomp to subdir because otherwise we won't find it if we're
5034 # using a relative directory.
5035 cp "$am_depcomp" conftest.dir
5036 cd conftest.dir
5037 # We will build objects and dependencies in a subdirectory because
5038 # it helps to detect inapplicable dependency modes. For instance
5039 # both Tru64's cc and ICC support -MD to output dependencies as a
5040 # side effect of compilation, but ICC will put the dependencies in
5041 # the current directory while Tru64 will put them in the object
5042 # directory.
5043 mkdir sub
5045 am_cv_CC_dependencies_compiler_type=none
5046 if test "$am_compiler_list" = ""; then
5047 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5049 am__universal=false
5050 case " $depcc " in #(
5051 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5052 esac
5054 for depmode in $am_compiler_list; do
5055 # Setup a source with many dependencies, because some compilers
5056 # like to wrap large dependency lists on column 80 (with \), and
5057 # we should not choose a depcomp mode which is confused by this.
5059 # We need to recreate these files for each test, as the compiler may
5060 # overwrite some of them when testing with obscure command lines.
5061 # This happens at least with the AIX C compiler.
5062 : > sub/conftest.c
5063 for i in 1 2 3 4 5 6; do
5064 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5065 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5066 # Solaris 8's {/usr,}/bin/sh.
5067 touch sub/conftst$i.h
5068 done
5069 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5071 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5072 # mode. It turns out that the SunPro C++ compiler does not properly
5073 # handle `-M -o', and we need to detect this. Also, some Intel
5074 # versions had trouble with output in subdirs
5075 am__obj=sub/conftest.${OBJEXT-o}
5076 am__minus_obj="-o $am__obj"
5077 case $depmode in
5078 gcc)
5079 # This depmode causes a compiler race in universal mode.
5080 test "$am__universal" = false || continue
5082 nosideeffect)
5083 # after this tag, mechanisms are not by side-effect, so they'll
5084 # only be used when explicitly requested
5085 if test "x$enable_dependency_tracking" = xyes; then
5086 continue
5087 else
5088 break
5091 msvisualcpp | msvcmsys)
5092 # This compiler won't grok `-c -o', but also, the minuso test has
5093 # not run yet. These depmodes are late enough in the game, and
5094 # so weak that their functioning should not be impacted.
5095 am__obj=conftest.${OBJEXT-o}
5096 am__minus_obj=
5098 none) break ;;
5099 esac
5100 if depmode=$depmode \
5101 source=sub/conftest.c object=$am__obj \
5102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5103 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5104 >/dev/null 2>conftest.err &&
5105 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5106 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5107 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5108 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5109 # icc doesn't choke on unknown options, it will just issue warnings
5110 # or remarks (even with -Werror). So we grep stderr for any message
5111 # that says an option was ignored or not supported.
5112 # When given -MP, icc 7.0 and 7.1 complain thusly:
5113 # icc: Command line warning: ignoring option '-M'; no argument required
5114 # The diagnosis changed in icc 8.0:
5115 # icc: Command line remark: option '-MP' not supported
5116 if (grep 'ignoring option' conftest.err ||
5117 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5118 am_cv_CC_dependencies_compiler_type=$depmode
5119 break
5122 done
5124 cd ..
5125 rm -rf conftest.dir
5126 else
5127 am_cv_CC_dependencies_compiler_type=none
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5132 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5133 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5136 test "x$enable_dependency_tracking" != xno \
5137 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5138 am__fastdepCC_TRUE=
5139 am__fastdepCC_FALSE='#'
5140 else
5141 am__fastdepCC_TRUE='#'
5142 am__fastdepCC_FALSE=
5146 ac_ext=c
5147 ac_cpp='$CPP $CPPFLAGS'
5148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5152 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5153 # On Suns, sometimes $CPP names a directory.
5154 if test -n "$CPP" && test -d "$CPP"; then
5155 CPP=
5157 if test -z "$CPP"; then
5158 if test "${ac_cv_prog_CPP+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 # Double quotes because CPP needs to be expanded
5162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5164 ac_preproc_ok=false
5165 for ac_c_preproc_warn_flag in '' yes
5167 # Use a header file that comes with gcc, so configuring glibc
5168 # with a fresh cross-compiler works.
5169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5170 # <limits.h> exists even on freestanding compilers.
5171 # On the NeXT, cc -E runs the code through the compiler's parser,
5172 # not just through cpp. "Syntax error" is here to catch this case.
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 #ifdef __STDC__
5176 # include <limits.h>
5177 #else
5178 # include <assert.h>
5179 #endif
5180 Syntax error
5181 _ACEOF
5182 if ac_fn_c_try_cpp "$LINENO"; then :
5184 else
5185 # Broken: fails on valid input.
5186 continue
5188 rm -f conftest.err conftest.$ac_ext
5190 # OK, works on sane cases. Now check whether nonexistent headers
5191 # can be detected and how.
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194 #include <ac_nonexistent.h>
5195 _ACEOF
5196 if ac_fn_c_try_cpp "$LINENO"; then :
5197 # Broken: success on invalid input.
5198 continue
5199 else
5200 # Passes both tests.
5201 ac_preproc_ok=:
5202 break
5204 rm -f conftest.err conftest.$ac_ext
5206 done
5207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5208 rm -f conftest.err conftest.$ac_ext
5209 if $ac_preproc_ok; then :
5210 break
5213 done
5214 ac_cv_prog_CPP=$CPP
5217 CPP=$ac_cv_prog_CPP
5218 else
5219 ac_cv_prog_CPP=$CPP
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5222 $as_echo "$CPP" >&6; }
5223 ac_preproc_ok=false
5224 for ac_c_preproc_warn_flag in '' yes
5226 # Use a header file that comes with gcc, so configuring glibc
5227 # with a fresh cross-compiler works.
5228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5229 # <limits.h> exists even on freestanding compilers.
5230 # On the NeXT, cc -E runs the code through the compiler's parser,
5231 # not just through cpp. "Syntax error" is here to catch this case.
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234 #ifdef __STDC__
5235 # include <limits.h>
5236 #else
5237 # include <assert.h>
5238 #endif
5239 Syntax error
5240 _ACEOF
5241 if ac_fn_c_try_cpp "$LINENO"; then :
5243 else
5244 # Broken: fails on valid input.
5245 continue
5247 rm -f conftest.err conftest.$ac_ext
5249 # OK, works on sane cases. Now check whether nonexistent headers
5250 # can be detected and how.
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #include <ac_nonexistent.h>
5254 _ACEOF
5255 if ac_fn_c_try_cpp "$LINENO"; then :
5256 # Broken: success on invalid input.
5257 continue
5258 else
5259 # Passes both tests.
5260 ac_preproc_ok=:
5261 break
5263 rm -f conftest.err conftest.$ac_ext
5265 done
5266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5267 rm -f conftest.err conftest.$ac_ext
5268 if $ac_preproc_ok; then :
5270 else
5271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5273 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5274 See \`config.log' for more details." "$LINENO" 5; }
5277 ac_ext=c
5278 ac_cpp='$CPP $CPPFLAGS'
5279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5283 ac_build_prefix=
5284 test -n "$build_alias" && ac_build_prefix=$build_alias-
5286 if test "$cross_compiling" = yes; then :
5288 # Even if we're cross-compiling, we want a compiler here
5289 # that is not a cross-compiler.
5290 saved_cross=$cross_compiling
5291 cross_compiling=no
5293 ac_ext=c
5294 ac_cpp='$CPP $BUILD_CPPFLAGS'
5295 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5296 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5298 if test -n "$ac_build_prefix"; then
5299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5300 set dummy ${ac_build_prefix}gcc; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$BUILD_CC"; then
5307 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5322 IFS=$as_save_IFS
5326 BUILD_CC=$ac_cv_prog_BUILD_CC
5327 if test -n "$BUILD_CC"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5329 $as_echo "$BUILD_CC" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5337 if test -z "$ac_cv_prog_BUILD_CC"; then
5338 ac_ct_BUILD_CC=$BUILD_CC
5339 # Extract the first word of "gcc", so it can be a program name with args.
5340 set dummy gcc; ac_word=$2
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342 $as_echo_n "checking for $ac_word... " >&6; }
5343 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 if test -n "$ac_ct_BUILD_CC"; then
5347 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5360 done
5361 done
5362 IFS=$as_save_IFS
5366 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5367 if test -n "$ac_ct_BUILD_CC"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5369 $as_echo "$ac_ct_BUILD_CC" >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5375 if test "x$ac_ct_BUILD_CC" = x; then
5376 BUILD_CC=""
5377 else
5378 case $cross_compiling:$ac_tool_warned in
5379 yes:)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned=yes ;;
5383 esac
5384 BUILD_CC=$ac_ct_BUILD_CC
5386 else
5387 BUILD_CC="$ac_cv_prog_BUILD_CC"
5390 if test -z "$BUILD_CC"; then
5391 if test -n "$ac_build_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5393 set dummy ${ac_build_prefix}cc; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 if test -n "$BUILD_CC"; then
5400 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5413 done
5414 done
5415 IFS=$as_save_IFS
5419 BUILD_CC=$ac_cv_prog_BUILD_CC
5420 if test -n "$BUILD_CC"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5422 $as_echo "$BUILD_CC" >&6; }
5423 else
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5430 if test -z "$ac_cv_prog_BUILD_CC"; then
5431 ac_ct_BUILD_CC=$BUILD_CC
5432 # Extract the first word of "cc", so it can be a program name with args.
5433 set dummy cc; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 if test -n "$ac_ct_BUILD_CC"; then
5440 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449 ac_cv_prog_ac_ct_BUILD_CC="cc"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5453 done
5454 done
5455 IFS=$as_save_IFS
5459 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5460 if test -n "$ac_ct_BUILD_CC"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5462 $as_echo "$ac_ct_BUILD_CC" >&6; }
5463 else
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5468 if test "x$ac_ct_BUILD_CC" = x; then
5469 BUILD_CC=""
5470 else
5471 case $cross_compiling:$ac_tool_warned in
5472 yes:)
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5475 ac_tool_warned=yes ;;
5476 esac
5477 BUILD_CC=$ac_ct_BUILD_CC
5479 else
5480 BUILD_CC="$ac_cv_prog_BUILD_CC"
5484 if test -z "$BUILD_CC"; then
5485 # Extract the first word of "cc", so it can be a program name with args.
5486 set dummy cc; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$BUILD_CC"; then
5493 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5494 else
5495 ac_prog_rejected=no
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5504 ac_prog_rejected=yes
5505 continue
5507 ac_cv_prog_BUILD_CC="cc"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5511 done
5512 done
5513 IFS=$as_save_IFS
5515 if test $ac_prog_rejected = yes; then
5516 # We found a bogon in the path, so make sure we never use it.
5517 set dummy $ac_cv_prog_BUILD_CC
5518 shift
5519 if test $# != 0; then
5520 # We chose a different compiler from the bogus one.
5521 # However, it has the same basename, so the bogon will be chosen
5522 # first if we set BUILD_CC to just the basename; use the full file name.
5523 shift
5524 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5529 BUILD_CC=$ac_cv_prog_BUILD_CC
5530 if test -n "$BUILD_CC"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5532 $as_echo "$BUILD_CC" >&6; }
5533 else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5540 if test -z "$BUILD_CC"; then
5541 if test -n "$ac_build_prefix"; then
5542 for ac_prog in cl
5544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5545 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$BUILD_CC"; then
5552 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5565 done
5566 done
5567 IFS=$as_save_IFS
5571 BUILD_CC=$ac_cv_prog_BUILD_CC
5572 if test -n "$BUILD_CC"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5574 $as_echo "$BUILD_CC" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5581 test -n "$BUILD_CC" && break
5582 done
5584 if test -z "$BUILD_CC"; then
5585 ac_ct_BUILD_CC=$BUILD_CC
5586 for ac_prog in cl
5588 # Extract the first word of "$ac_prog", so it can be a program name with args.
5589 set dummy $ac_prog; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$ac_ct_BUILD_CC"; then
5596 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5609 done
5610 done
5611 IFS=$as_save_IFS
5615 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5616 if test -n "$ac_ct_BUILD_CC"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5618 $as_echo "$ac_ct_BUILD_CC" >&6; }
5619 else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5625 test -n "$ac_ct_BUILD_CC" && break
5626 done
5628 if test "x$ac_ct_BUILD_CC" = x; then
5629 BUILD_CC=""
5630 else
5631 case $cross_compiling:$ac_tool_warned in
5632 yes:)
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635 ac_tool_warned=yes ;;
5636 esac
5637 BUILD_CC=$ac_ct_BUILD_CC
5644 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5646 as_fn_error "no acceptable C compiler found in \$PATH
5647 See \`config.log' for more details." "$LINENO" 5; }
5649 # Provide some information about the compiler.
5650 echo "$as_me:$LINENO:" \
5651 "checking for C compiler version" >&5
5652 ac_compiler=`set X $ac_compile; echo $2`
5653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5654 (eval $ac_compiler --version </dev/null >&5) 2>&5
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; }
5663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5664 (eval $ac_compiler -V </dev/null >&5) 2>&5
5665 ac_status=$?
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; }
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5673 main ()
5677 return 0;
5679 _ACEOF
5680 ac_clean_files_save=$ac_clean_files
5681 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5682 # Try to create an executable without -o first, disregard a.out.
5683 # It will help us diagnose broken compilers, and finding out an intuition
5684 # of exeext.
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5686 $as_echo_n "checking whether the C compiler works... " >&6; }
5687 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5689 # The possible output files:
5690 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5692 ac_rmfiles=
5693 for ac_file in $ac_files
5695 case $ac_file in
5696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5697 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5698 esac
5699 done
5700 rm -f $ac_rmfiles
5702 if { { ac_try="$ac_link_default"
5703 case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706 esac
5707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5708 $as_echo "$ac_try_echo"; } >&5
5709 (eval "$ac_link_default") 2>&5
5710 ac_status=$?
5711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712 test $ac_status = 0; }; then :
5713 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5714 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5715 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5716 # so that the user can short-circuit this test for compilers unknown to
5717 # Autoconf.
5718 for ac_file in $ac_files ''
5720 test -f "$ac_file" || continue
5721 case $ac_file in
5722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5724 [ab].out )
5725 # We found the default executable, but exeext='' is most
5726 # certainly right.
5727 break;;
5728 *.* )
5729 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5730 then :; else
5731 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5733 # We set ac_cv_exeext here because the later test for it is not
5734 # safe: cross compilers may not add the suffix if given an `-o'
5735 # argument, so we may need to know it at that point already.
5736 # Even if this section looks crufty: it has the advantage of
5737 # actually working.
5738 break;;
5740 break;;
5741 esac
5742 done
5743 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5745 else
5746 ac_file=''
5748 if test -z "$ac_file"; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 $as_echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5756 { as_fn_set_status 77
5757 as_fn_error "C compiler cannot create executables
5758 See \`config.log' for more details." "$LINENO" 5; }; }
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5761 $as_echo "yes" >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5764 $as_echo_n "checking for C compiler default output file name... " >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5766 $as_echo "$ac_file" >&6; }
5767 ac_build_exeext=$ac_cv_build_exeext
5769 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5770 ac_clean_files=$ac_clean_files_save
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5772 $as_echo_n "checking for suffix of executables... " >&6; }
5773 if { { ac_try="$ac_link"
5774 case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5779 $as_echo "$ac_try_echo"; } >&5
5780 (eval "$ac_link") 2>&5
5781 ac_status=$?
5782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783 test $ac_status = 0; }; then :
5784 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5785 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5786 # work properly (i.e., refer to `conftest.exe'), while it won't with
5787 # `rm'.
5788 for ac_file in conftest.exe conftest conftest.*; do
5789 test -f "$ac_file" || continue
5790 case $ac_file in
5791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5792 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5793 break;;
5794 * ) break;;
5795 esac
5796 done
5797 else
5798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 as_fn_error "cannot compute suffix of executables: cannot compile and link
5801 See \`config.log' for more details." "$LINENO" 5; }
5803 rm -f conftest conftest$ac_cv_build_exeext
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5805 $as_echo "$ac_cv_build_exeext" >&6; }
5807 rm -f conftest.$ac_ext
5808 BUILD_EXEEXT=$ac_cv_build_exeext
5809 ac_build_exeext=$BUILD_EXEEXT
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5812 #include <stdio.h>
5814 main ()
5816 FILE *f = fopen ("conftest.out", "w");
5817 return ferror (f) || fclose (f) != 0;
5820 return 0;
5822 _ACEOF
5823 ac_clean_files="$ac_clean_files conftest.out"
5824 # Check that the compiler produces executables we can run. If not, either
5825 # the compiler is broken, or we cross compile.
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5827 $as_echo_n "checking whether we are cross compiling... " >&6; }
5828 if test "$cross_compiling" != yes; then
5829 { { ac_try="$ac_link"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5835 $as_echo "$ac_try_echo"; } >&5
5836 (eval "$ac_link") 2>&5
5837 ac_status=$?
5838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5839 test $ac_status = 0; }
5840 if { ac_try='./conftest$ac_cv_build_exeext'
5841 { { case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844 esac
5845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5846 $as_echo "$ac_try_echo"; } >&5
5847 (eval "$ac_try") 2>&5
5848 ac_status=$?
5849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850 test $ac_status = 0; }; }; then
5851 cross_compiling=no
5852 else
5853 if test "$cross_compiling" = maybe; then
5854 cross_compiling=yes
5855 else
5856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 as_fn_error "cannot run C compiled programs.
5859 If you meant to cross compile, use \`--host'.
5860 See \`config.log' for more details." "$LINENO" 5; }
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5865 $as_echo "$cross_compiling" >&6; }
5867 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5868 ac_clean_files=$ac_clean_files_save
5871 # Restore configuration environment
5872 cross_compiling=$saved_cross
5874 ac_ext=c
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5880 else
5881 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5883 CFLAGS="$mule_backup_CFLAGS"
5884 CXXFLAGS="$mule_backup_CXXFLAGS"
5885 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5886 for ac_prog in gawk mawk nawk awk
5888 # Extract the first word of "$ac_prog", so it can be a program name with args.
5889 set dummy $ac_prog; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if test "${ac_cv_prog_AWK+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 if test -n "$AWK"; then
5896 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905 ac_cv_prog_AWK="$ac_prog"
5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5909 done
5910 done
5911 IFS=$as_save_IFS
5915 AWK=$ac_cv_prog_AWK
5916 if test -n "$AWK"; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5918 $as_echo "$AWK" >&6; }
5919 else
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 $as_echo "no" >&6; }
5925 test -n "$AWK" && break
5926 done
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5929 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5930 if test "${ac_cv_path_GREP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test -z "$GREP"; then
5934 ac_path_GREP_found=false
5935 # Loop through the user's path and test for each of PROGNAME-LIST
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_prog in grep ggrep; do
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5944 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5945 # Check for GNU ac_path_GREP and select it if it is found.
5946 # Check for GNU $ac_path_GREP
5947 case `"$ac_path_GREP" --version 2>&1` in
5948 *GNU*)
5949 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5951 ac_count=0
5952 $as_echo_n 0123456789 >"conftest.in"
5953 while :
5955 cat "conftest.in" "conftest.in" >"conftest.tmp"
5956 mv "conftest.tmp" "conftest.in"
5957 cp "conftest.in" "conftest.nl"
5958 $as_echo 'GREP' >> "conftest.nl"
5959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5961 as_fn_arith $ac_count + 1 && ac_count=$as_val
5962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5963 # Best one so far, save it but keep looking for a better one
5964 ac_cv_path_GREP="$ac_path_GREP"
5965 ac_path_GREP_max=$ac_count
5967 # 10*(2^10) chars as input seems more than enough
5968 test $ac_count -gt 10 && break
5969 done
5970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5971 esac
5973 $ac_path_GREP_found && break 3
5974 done
5975 done
5976 done
5977 IFS=$as_save_IFS
5978 if test -z "$ac_cv_path_GREP"; then
5979 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5981 else
5982 ac_cv_path_GREP=$GREP
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5987 $as_echo "$ac_cv_path_GREP" >&6; }
5988 GREP="$ac_cv_path_GREP"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5992 $as_echo_n "checking for egrep... " >&6; }
5993 if test "${ac_cv_path_EGREP+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5997 then ac_cv_path_EGREP="$GREP -E"
5998 else
5999 if test -z "$EGREP"; then
6000 ac_path_EGREP_found=false
6001 # Loop through the user's path and test for each of PROGNAME-LIST
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
6007 for ac_prog in egrep; do
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6010 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6011 # Check for GNU ac_path_EGREP and select it if it is found.
6012 # Check for GNU $ac_path_EGREP
6013 case `"$ac_path_EGREP" --version 2>&1` in
6014 *GNU*)
6015 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6017 ac_count=0
6018 $as_echo_n 0123456789 >"conftest.in"
6019 while :
6021 cat "conftest.in" "conftest.in" >"conftest.tmp"
6022 mv "conftest.tmp" "conftest.in"
6023 cp "conftest.in" "conftest.nl"
6024 $as_echo 'EGREP' >> "conftest.nl"
6025 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6027 as_fn_arith $ac_count + 1 && ac_count=$as_val
6028 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6029 # Best one so far, save it but keep looking for a better one
6030 ac_cv_path_EGREP="$ac_path_EGREP"
6031 ac_path_EGREP_max=$ac_count
6033 # 10*(2^10) chars as input seems more than enough
6034 test $ac_count -gt 10 && break
6035 done
6036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6037 esac
6039 $ac_path_EGREP_found && break 3
6040 done
6041 done
6042 done
6043 IFS=$as_save_IFS
6044 if test -z "$ac_cv_path_EGREP"; then
6045 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6047 else
6048 ac_cv_path_EGREP=$EGREP
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6054 $as_echo "$ac_cv_path_EGREP" >&6; }
6055 EGREP="$ac_cv_path_EGREP"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6059 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6060 set x ${MAKE-make}
6061 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6062 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6063 $as_echo_n "(cached) " >&6
6064 else
6065 cat >conftest.make <<\_ACEOF
6066 SHELL = /bin/sh
6067 all:
6068 @echo '@@@%%%=$(MAKE)=@@@%%%'
6069 _ACEOF
6070 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6071 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6072 *@@@%%%=?*=@@@%%%*)
6073 eval ac_cv_prog_make_${ac_make}_set=yes;;
6075 eval ac_cv_prog_make_${ac_make}_set=no;;
6076 esac
6077 rm -f conftest.make
6079 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6081 $as_echo "yes" >&6; }
6082 SET_MAKE=
6083 else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 SET_MAKE="MAKE=${MAKE-make}"
6090 for ac_prog in flex lex
6092 # Extract the first word of "$ac_prog", so it can be a program name with args.
6093 set dummy $ac_prog; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if test "${ac_cv_prog_LEX+set}" = set; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 if test -n "$LEX"; then
6100 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_prog_LEX="$ac_prog"
6110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6113 done
6114 done
6115 IFS=$as_save_IFS
6119 LEX=$ac_cv_prog_LEX
6120 if test -n "$LEX"; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
6122 $as_echo "$LEX" >&6; }
6123 else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6129 test -n "$LEX" && break
6130 done
6131 test -n "$LEX" || LEX=":"
6133 if test "x$LEX" != "x:"; then
6134 cat >conftest.l <<_ACEOF
6136 a { ECHO; }
6137 b { REJECT; }
6138 c { yymore (); }
6139 d { yyless (1); }
6140 e { yyless (input () != 0); }
6141 f { unput (yytext[0]); }
6142 . { BEGIN INITIAL; }
6144 #ifdef YYTEXT_POINTER
6145 extern char *yytext;
6146 #endif
6148 main (void)
6150 return ! yylex () + ! yywrap ();
6152 _ACEOF
6153 { { ac_try="$LEX conftest.l"
6154 case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157 esac
6158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6159 $as_echo "$ac_try_echo"; } >&5
6160 (eval "$LEX conftest.l") 2>&5
6161 ac_status=$?
6162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6163 test $ac_status = 0; }
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
6165 $as_echo_n "checking lex output file root... " >&6; }
6166 if test "${ac_cv_prog_lex_root+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6170 if test -f lex.yy.c; then
6171 ac_cv_prog_lex_root=lex.yy
6172 elif test -f lexyy.c; then
6173 ac_cv_prog_lex_root=lexyy
6174 else
6175 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6179 $as_echo "$ac_cv_prog_lex_root" >&6; }
6180 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6182 if test -z "${LEXLIB+set}"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6184 $as_echo_n "checking lex library... " >&6; }
6185 if test "${ac_cv_lib_lex+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6189 ac_save_LIBS=$LIBS
6190 ac_cv_lib_lex='none needed'
6191 for ac_lib in '' -lfl -ll; do
6192 LIBS="$ac_lib $ac_save_LIBS"
6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 `cat $LEX_OUTPUT_ROOT.c`
6196 _ACEOF
6197 if ac_fn_c_try_link "$LINENO"; then :
6198 ac_cv_lib_lex=$ac_lib
6200 rm -f core conftest.err conftest.$ac_objext \
6201 conftest$ac_exeext conftest.$ac_ext
6202 test "$ac_cv_lib_lex" != 'none needed' && break
6203 done
6204 LIBS=$ac_save_LIBS
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6208 $as_echo "$ac_cv_lib_lex" >&6; }
6209 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6214 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6215 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6217 else
6218 # POSIX says lex can declare yytext either as a pointer or an array; the
6219 # default is implementation-dependent. Figure out which it is, since
6220 # not all implementations provide the %pointer and %array declarations.
6221 ac_cv_prog_lex_yytext_pointer=no
6222 ac_save_LIBS=$LIBS
6223 LIBS="$LEXLIB $ac_save_LIBS"
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 #define YYTEXT_POINTER 1
6227 `cat $LEX_OUTPUT_ROOT.c`
6228 _ACEOF
6229 if ac_fn_c_try_link "$LINENO"; then :
6230 ac_cv_prog_lex_yytext_pointer=yes
6232 rm -f core conftest.err conftest.$ac_objext \
6233 conftest$ac_exeext conftest.$ac_ext
6234 LIBS=$ac_save_LIBS
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6238 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6239 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6241 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6244 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 if test -n "$RANLIB"; then
6257 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6270 done
6271 done
6272 IFS=$as_save_IFS
6276 RANLIB=$ac_cv_prog_RANLIB
6277 if test -n "$RANLIB"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6279 $as_echo "$RANLIB" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6287 if test -z "$ac_cv_prog_RANLIB"; then
6288 ac_ct_RANLIB=$RANLIB
6289 # Extract the first word of "ranlib", so it can be a program name with args.
6290 set dummy ranlib; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 if test -n "$ac_ct_RANLIB"; then
6297 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_ac_ct_RANLIB="ranlib"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6310 done
6311 done
6312 IFS=$as_save_IFS
6316 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6317 if test -n "$ac_ct_RANLIB"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6319 $as_echo "$ac_ct_RANLIB" >&6; }
6320 else
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6325 if test "x$ac_ct_RANLIB" = x; then
6326 RANLIB=":"
6327 else
6328 case $cross_compiling:$ac_tool_warned in
6329 yes:)
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332 ac_tool_warned=yes ;;
6333 esac
6334 RANLIB=$ac_ct_RANLIB
6336 else
6337 RANLIB="$ac_cv_prog_RANLIB"
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6341 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6342 if test "${ac_cv_path_SED+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6346 for ac_i in 1 2 3 4 5 6 7; do
6347 ac_script="$ac_script$as_nl$ac_script"
6348 done
6349 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6350 { ac_script=; unset ac_script;}
6351 if test -z "$SED"; then
6352 ac_path_SED_found=false
6353 # Loop through the user's path and test for each of PROGNAME-LIST
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_prog in sed gsed; do
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6362 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6363 # Check for GNU ac_path_SED and select it if it is found.
6364 # Check for GNU $ac_path_SED
6365 case `"$ac_path_SED" --version 2>&1` in
6366 *GNU*)
6367 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6369 ac_count=0
6370 $as_echo_n 0123456789 >"conftest.in"
6371 while :
6373 cat "conftest.in" "conftest.in" >"conftest.tmp"
6374 mv "conftest.tmp" "conftest.in"
6375 cp "conftest.in" "conftest.nl"
6376 $as_echo '' >> "conftest.nl"
6377 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6379 as_fn_arith $ac_count + 1 && ac_count=$as_val
6380 if test $ac_count -gt ${ac_path_SED_max-0}; then
6381 # Best one so far, save it but keep looking for a better one
6382 ac_cv_path_SED="$ac_path_SED"
6383 ac_path_SED_max=$ac_count
6385 # 10*(2^10) chars as input seems more than enough
6386 test $ac_count -gt 10 && break
6387 done
6388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6389 esac
6391 $ac_path_SED_found && break 3
6392 done
6393 done
6394 done
6395 IFS=$as_save_IFS
6396 if test -z "$ac_cv_path_SED"; then
6397 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6399 else
6400 ac_cv_path_SED=$SED
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6405 $as_echo "$ac_cv_path_SED" >&6; }
6406 SED="$ac_cv_path_SED"
6407 rm -f conftest.sed
6409 for ac_prog in 'bison -y' byacc
6411 # Extract the first word of "$ac_prog", so it can be a program name with args.
6412 set dummy $ac_prog; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if test "${ac_cv_prog_YACC+set}" = set; then :
6416 $as_echo_n "(cached) " >&6
6417 else
6418 if test -n "$YACC"; then
6419 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_YACC="$ac_prog"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6432 done
6433 done
6434 IFS=$as_save_IFS
6438 YACC=$ac_cv_prog_YACC
6439 if test -n "$YACC"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6441 $as_echo "$YACC" >&6; }
6442 else
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6448 test -n "$YACC" && break
6449 done
6450 test -n "$YACC" || YACC="yacc"
6453 if test -n "$ac_tool_prefix"; then
6454 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 if test -n "$RANLIB"; then
6462 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6475 done
6476 done
6477 IFS=$as_save_IFS
6481 RANLIB=$ac_cv_prog_RANLIB
6482 if test -n "$RANLIB"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6484 $as_echo "$RANLIB" >&6; }
6485 else
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6492 if test -z "$ac_cv_prog_RANLIB"; then
6493 ac_ct_RANLIB=$RANLIB
6494 # Extract the first word of "ranlib", so it can be a program name with args.
6495 set dummy ranlib; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 if test -n "$ac_ct_RANLIB"; then
6502 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6507 IFS=$as_save_IFS
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_ac_ct_RANLIB="ranlib"
6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513 break 2
6515 done
6516 done
6517 IFS=$as_save_IFS
6521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6522 if test -n "$ac_ct_RANLIB"; then
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6524 $as_echo "$ac_ct_RANLIB" >&6; }
6525 else
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6530 if test "x$ac_ct_RANLIB" = x; then
6531 RANLIB=""
6532 else
6533 case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6538 esac
6539 RANLIB=$ac_ct_RANLIB
6541 else
6542 RANLIB="$ac_cv_prog_RANLIB"
6545 if test -n "$ac_tool_prefix"; then
6546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}strip; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if test "${ac_cv_prog_STRIP+set}" = set; then :
6551 $as_echo_n "(cached) " >&6
6552 else
6553 if test -n "$STRIP"; then
6554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6567 done
6568 done
6569 IFS=$as_save_IFS
6573 STRIP=$ac_cv_prog_STRIP
6574 if test -n "$STRIP"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6576 $as_echo "$STRIP" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6584 if test -z "$ac_cv_prog_STRIP"; then
6585 ac_ct_STRIP=$STRIP
6586 # Extract the first word of "strip", so it can be a program name with args.
6587 set dummy strip; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 if test -n "$ac_ct_STRIP"; then
6594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6599 IFS=$as_save_IFS
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_prog_ac_ct_STRIP="strip"
6604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 break 2
6607 done
6608 done
6609 IFS=$as_save_IFS
6613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6614 if test -n "$ac_ct_STRIP"; then
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6616 $as_echo "$ac_ct_STRIP" >&6; }
6617 else
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6622 if test "x$ac_ct_STRIP" = x; then
6623 STRIP=""
6624 else
6625 case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631 STRIP=$ac_ct_STRIP
6633 else
6634 STRIP="$ac_cv_prog_STRIP"
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}ar; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if test "${ac_cv_prog_AR+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 if test -n "$AR"; then
6646 ac_cv_prog_AR="$AR" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_prog_AR="${ac_tool_prefix}ar"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6659 done
6660 done
6661 IFS=$as_save_IFS
6665 AR=$ac_cv_prog_AR
6666 if test -n "$AR"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6668 $as_echo "$AR" >&6; }
6669 else
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6676 if test -z "$ac_cv_prog_AR"; then
6677 ac_ct_AR=$AR
6678 # Extract the first word of "ar", so it can be a program name with args.
6679 set dummy ar; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6683 $as_echo_n "(cached) " >&6
6684 else
6685 if test -n "$ac_ct_AR"; then
6686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695 ac_cv_prog_ac_ct_AR="ar"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6699 done
6700 done
6701 IFS=$as_save_IFS
6705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6706 if test -n "$ac_ct_AR"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6708 $as_echo "$ac_ct_AR" >&6; }
6709 else
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6714 if test "x$ac_ct_AR" = x; then
6715 AR=""
6716 else
6717 case $cross_compiling:$ac_tool_warned in
6718 yes:)
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6722 esac
6723 AR=$ac_ct_AR
6725 else
6726 AR="$ac_cv_prog_AR"
6729 if test -n "$ac_tool_prefix"; then
6730 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}ld; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_LD+set}" = set; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 if test -n "$LD"; then
6738 ac_cv_prog_LD="$LD" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_LD="${ac_tool_prefix}ld"
6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6751 done
6752 done
6753 IFS=$as_save_IFS
6757 LD=$ac_cv_prog_LD
6758 if test -n "$LD"; then
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6760 $as_echo "$LD" >&6; }
6761 else
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6768 if test -z "$ac_cv_prog_LD"; then
6769 ac_ct_LD=$LD
6770 # Extract the first word of "ld", so it can be a program name with args.
6771 set dummy ld; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 if test -n "$ac_ct_LD"; then
6778 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787 ac_cv_prog_ac_ct_LD="ld"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6791 done
6792 done
6793 IFS=$as_save_IFS
6797 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6798 if test -n "$ac_ct_LD"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6800 $as_echo "$ac_ct_LD" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6806 if test "x$ac_ct_LD" = x; then
6807 LD=""
6808 else
6809 case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815 LD=$ac_ct_LD
6817 else
6818 LD="$ac_cv_prog_LD"
6822 # Check whether --enable-monolithic was given.
6823 if test "${enable_monolithic+set}" = set; then :
6824 enableval=$enable_monolithic;
6827 if test ${enable_monolithic:-yes} = yes; then
6828 MONOLITHIC_TRUE=
6829 MONOLITHIC_FALSE='#'
6830 else
6831 MONOLITHIC_TRUE='#'
6832 MONOLITHIC_FALSE=
6836 # Check whether --enable-amule-daemon was given.
6837 if test "${enable_amule_daemon+set}" = set; then :
6838 enableval=$enable_amule_daemon;
6841 if test ${enable_amule_daemon:-no} = yes; then
6842 AMULE_DAEMON_TRUE=
6843 AMULE_DAEMON_FALSE='#'
6844 else
6845 AMULE_DAEMON_TRUE='#'
6846 AMULE_DAEMON_FALSE=
6850 # Check whether --enable-amulecmd was given.
6851 if test "${enable_amulecmd+set}" = set; then :
6852 enableval=$enable_amulecmd;
6855 if test ${enable_amulecmd:-no} = yes; then
6856 COMPILE_CMD_TRUE=
6857 COMPILE_CMD_FALSE='#'
6858 else
6859 COMPILE_CMD_TRUE='#'
6860 COMPILE_CMD_FALSE=
6864 # Check whether --enable-webserver was given.
6865 if test "${enable_webserver+set}" = set; then :
6866 enableval=$enable_webserver;
6869 if test ${enable_webserver:-no} = yes; then
6870 WEB_TRUE=
6871 WEB_FALSE='#'
6872 else
6873 WEB_TRUE='#'
6874 WEB_FALSE=
6878 # Check whether --enable-amule-gui was given.
6879 if test "${enable_amule_gui+set}" = set; then :
6880 enableval=$enable_amule_gui;
6883 if test ${enable_amule_gui:-no} = yes; then
6884 AMULE_GUI_TRUE=
6885 AMULE_GUI_FALSE='#'
6886 else
6887 AMULE_GUI_TRUE='#'
6888 AMULE_GUI_FALSE=
6892 # Check whether --enable-cas was given.
6893 if test "${enable_cas+set}" = set; then :
6894 enableval=$enable_cas;
6897 if test ${enable_cas:-no} = yes; then
6898 CAS_TRUE=
6899 CAS_FALSE='#'
6900 else
6901 CAS_TRUE='#'
6902 CAS_FALSE=
6906 # Check whether --enable-wxcas was given.
6907 if test "${enable_wxcas+set}" = set; then :
6908 enableval=$enable_wxcas;
6911 if test ${enable_wxcas:-no} = yes; then
6912 WXCAS_TRUE=
6913 WXCAS_FALSE='#'
6914 else
6915 WXCAS_TRUE='#'
6916 WXCAS_FALSE=
6920 # Check whether --enable-ed2k was given.
6921 if test "${enable_ed2k+set}" = set; then :
6922 enableval=$enable_ed2k;
6925 if test ${enable_ed2k:-yes} = yes; then
6926 ED2K_TRUE=
6927 ED2K_FALSE='#'
6928 else
6929 ED2K_TRUE='#'
6930 ED2K_FALSE=
6934 # Check whether --enable-alc was given.
6935 if test "${enable_alc+set}" = set; then :
6936 enableval=$enable_alc;
6939 if test ${enable_alc:-no} = yes; then
6940 ALC_TRUE=
6941 ALC_FALSE='#'
6942 else
6943 ALC_TRUE='#'
6944 ALC_FALSE=
6948 # Check whether --enable-alcc was given.
6949 if test "${enable_alcc+set}" = set; then :
6950 enableval=$enable_alcc;
6953 if test ${enable_alcc:-no} = yes; then
6954 ALCC_TRUE=
6955 ALCC_FALSE='#'
6956 else
6957 ALCC_TRUE='#'
6958 ALCC_FALSE=
6962 # Check whether --enable-xas was given.
6963 if test "${enable_xas+set}" = set; then :
6964 enableval=$enable_xas;
6967 if test ${enable_xas:-no} = yes; then
6968 XAS_TRUE=
6969 XAS_FALSE='#'
6970 else
6971 XAS_TRUE='#'
6972 XAS_FALSE=
6976 # Check whether --enable-fileview was given.
6977 if test "${enable_fileview+set}" = set; then :
6978 enableval=$enable_fileview;
6981 if test ${enable_fileview:-no} = yes; then
6982 FILEVIEW_TRUE=
6983 FILEVIEW_FALSE='#'
6984 else
6985 FILEVIEW_TRUE='#'
6986 FILEVIEW_FALSE=
6990 # Check whether --enable-plasmamule was given.
6991 if test "${enable_plasmamule+set}" = set; then :
6992 enableval=$enable_plasmamule;
6997 # Run all the tests with static linkage if we want a statically linked binary
6998 # Check whether --enable-static was given.
6999 if test "${enable_static+set}" = set; then :
7000 enableval=$enable_static;
7004 if test ${enable_static:-no} = yes; then :
7005 LDFLAGS="$LDFLAGS -static"
7010 # Check whether --with-kde4-config was given.
7011 if test "${with_kde4_config+set}" = set; then :
7012 withval=$with_kde4_config; KDE4_CONFIG=$withval
7013 else
7014 KDE4_CONFIG=""
7017 # Check whether --enable-kde-in-home was given.
7018 if test "${enable_kde_in_home+set}" = set; then :
7019 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7020 else
7021 KDE_IN_HOME=no
7027 # Check whether --with-moc was given.
7028 if test "${with_moc+set}" = set; then :
7029 withval=$with_moc; QT_MOC=$withval
7030 else
7031 QT_MOC=""
7036 # Default is yes, because they're most likely compatible.
7037 # However, this is only used when cross-compiling.
7039 # Check whether --with-gnu-malloc was given.
7040 if test "${with_gnu_malloc+set}" = set; then :
7041 withval=$with_gnu_malloc; gnumalloc=$withval
7042 else
7043 gnumalloc=yes
7048 # Checking for libs before all other stuff to break
7049 # configure as soon as possible in case of a missing one
7050 # to avoid losing too much time
7052 # Check for gd
7055 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7056 if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 case $PKG_CONFIG in
7065 [\\/]* | ?:[\\/]*)
7066 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7080 done
7081 done
7082 IFS=$as_save_IFS
7085 esac
7087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7088 if test -n "$PKG_CONFIG"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7090 $as_echo "$PKG_CONFIG" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7098 if test -z "$ac_cv_path_PKG_CONFIG"; then
7099 ac_pt_PKG_CONFIG=$PKG_CONFIG
7100 # Extract the first word of "pkg-config", so it can be a program name with args.
7101 set dummy pkg-config; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 case $ac_pt_PKG_CONFIG in
7108 [\\/]* | ?:[\\/]*)
7109 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 for as_dir in $PATH
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 break 2
7123 done
7124 done
7125 IFS=$as_save_IFS
7128 esac
7130 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7131 if test -n "$ac_pt_PKG_CONFIG"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7133 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7134 else
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7139 if test "x$ac_pt_PKG_CONFIG" = x; then
7140 PKG_CONFIG=""
7141 else
7142 case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7147 esac
7148 PKG_CONFIG=$ac_pt_PKG_CONFIG
7150 else
7151 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7155 if test -n "$PKG_CONFIG"; then
7156 _pkg_min_version=0.9.0
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7158 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7159 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7161 $as_echo "yes" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 PKG_CONFIG=""
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7171 $as_echo_n "checking for ANSI C header files... " >&6; }
7172 if test "${ac_cv_header_stdc+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 #include <stdlib.h>
7178 #include <stdarg.h>
7179 #include <string.h>
7180 #include <float.h>
7183 main ()
7187 return 0;
7189 _ACEOF
7190 if ac_fn_c_try_compile "$LINENO"; then :
7191 ac_cv_header_stdc=yes
7192 else
7193 ac_cv_header_stdc=no
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 if test $ac_cv_header_stdc = yes; then
7198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 #include <string.h>
7203 _ACEOF
7204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7205 $EGREP "memchr" >/dev/null 2>&1; then :
7207 else
7208 ac_cv_header_stdc=no
7210 rm -f conftest*
7214 if test $ac_cv_header_stdc = yes; then
7215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 #include <stdlib.h>
7220 _ACEOF
7221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7222 $EGREP "free" >/dev/null 2>&1; then :
7224 else
7225 ac_cv_header_stdc=no
7227 rm -f conftest*
7231 if test $ac_cv_header_stdc = yes; then
7232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7233 if test "$cross_compiling" = yes; then :
7235 else
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 #include <ctype.h>
7239 #include <stdlib.h>
7240 #if ((' ' & 0x0FF) == 0x020)
7241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7243 #else
7244 # define ISLOWER(c) \
7245 (('a' <= (c) && (c) <= 'i') \
7246 || ('j' <= (c) && (c) <= 'r') \
7247 || ('s' <= (c) && (c) <= 'z'))
7248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7249 #endif
7251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7253 main ()
7255 int i;
7256 for (i = 0; i < 256; i++)
7257 if (XOR (islower (i), ISLOWER (i))
7258 || toupper (i) != TOUPPER (i))
7259 return 2;
7260 return 0;
7262 _ACEOF
7263 if ac_fn_c_try_run "$LINENO"; then :
7265 else
7266 ac_cv_header_stdc=no
7268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7269 conftest.$ac_objext conftest.beam conftest.$ac_ext
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7275 $as_echo "$ac_cv_header_stdc" >&6; }
7276 if test $ac_cv_header_stdc = yes; then
7278 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7282 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7284 inttypes.h stdint.h unistd.h
7285 do :
7286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7287 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7289 eval as_val=\$$as_ac_Header
7290 if test "x$as_val" = x""yes; then :
7291 cat >>confdefs.h <<_ACEOF
7292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7293 _ACEOF
7297 done
7300 if test ${enable_cas:-no} = yes; then :
7305 # Check whether --with-gdlib-prefix was given.
7306 if test "${with_gdlib_prefix+set}" = set; then :
7307 withval=$with_gdlib_prefix;
7311 # Check whether --with-gdlib-config was given.
7312 if test "${with_gdlib_config+set}" = set; then :
7313 withval=$with_gdlib_config;
7317 GDLIB_VERSION=
7319 # Check gdlib in pkg-config first to avoid deprecation warnings
7320 # If --with-gdlib-config or --with-gdlib-prefix was given, then
7321 # skip the pkg-config check, the user probably wants to use
7322 # another gdlib instance.
7323 if test -z "${with_gdlib_config:-}${with_gdlib_prefix:-}"; then :
7325 if test -n "$PKG_CONFIG"; then :
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib" >&5
7328 $as_echo_n "checking for gdlib... " >&6; }
7330 if $PKG_CONFIG gdlib --exists; then :
7332 GDLIB_VERSION=`$PKG_CONFIG gdlib --modversion`
7334 if $PKG_CONFIG gdlib --atleast-version=2.0.0; then :
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7337 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7338 GDLIB_CFLAGS=`$PKG_CONFIG gdlib --cflags`
7339 GDLIB_LDFLAGS=`$PKG_CONFIG gdlib --libs-only-L`
7340 GDLIB_LIBS=`$PKG_CONFIG gdlib --libs-only-other`
7341 GDLIB_LIBS="$GDLIB_LIBS `$PKG_CONFIG gdlib --libs-only-l`"
7343 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7346 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7347 GDLIB_VERSION=
7351 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7362 # Try gdlib-config if we did not find a sufficient gdlib version in pkg-config
7363 if test -z "$GDLIB_VERSION"; then :
7365 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7366 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7367 GDLIB_CONFIG_NAME=gdlib-config
7369 if test -n "$with_gdlib_config"; then :
7370 GDLIB_CONFIG_NAME="$with_gdlib_config"
7373 # deal with optional prefix
7374 if test -n "$with_gdlib_prefix"; then :
7375 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7378 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7379 if test -x "$GDLIB_CONFIG_NAME"; then :
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7382 $as_echo_n "checking for gdlib-config... " >&6; }
7383 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7385 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7387 else
7388 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7389 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7393 $as_echo_n "(cached) " >&6
7394 else
7395 case $GDLIB_CONFIG_PATH in
7396 [\\/]* | ?:[\\/]*)
7397 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7402 for as_dir in $as_dummy
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7412 done
7413 done
7414 IFS=$as_save_IFS
7416 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7418 esac
7420 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7421 if test -n "$GDLIB_CONFIG_PATH"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7423 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7424 else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7432 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7435 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7436 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7438 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7439 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7440 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7441 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7443 if test $gdlib_config_major_version -gt 2; then
7444 gdlib_ver_ok=yes
7445 elif test $gdlib_config_major_version -eq 2; then
7447 if test $gdlib_config_minor_version -gt 0; then
7448 gdlib_ver_ok=yes
7449 elif test $gdlib_config_minor_version -eq 0; then
7450 if test $gdlib_config_micro_version -ge 0; then
7451 gdlib_ver_ok=yes
7462 if test -z "${gdlib_ver_ok:-}"; then :
7464 if test -z "$GDLIB_VERSION"; then :
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467 else
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7470 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7471 GDLIB_VERSION=
7475 else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7478 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7479 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7480 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7481 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7487 if test -n "$GDLIB_VERSION"; then :
7489 mule_backup_CFLAGS="$CFLAGS"
7490 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7492 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7493 if test "x$ac_cv_header_gd_h" = x""yes; then :
7495 else
7497 GDLIB_CFLAGS=
7498 GDLIB_LDFLAGS=
7499 GDLIB_LIBS=
7500 GDLIB_VERSION=
7506 CFLAGS="$mule_backup_CFLAGS"
7510 if test -n "$GDLIB_VERSION"; then :
7512 CAS_DEFS="-D__GD__"
7513 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7515 else
7516 CAS_DEFS=
7521 if test -z "$CAS_DEFS"; then :
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7523 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7524 Please check that gdlib-config is in your default path, check out
7525 LD_LIBRARY_PATH or equivalent variable.
7526 Or this might also be that your gdlib-config has other name.
7527 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7528 (replace /usr/bin/gdlib-config with a valid path to your
7529 gdlib-config).
7530 If you use compiled packages check if you have devel pack installed.
7531 To download the latest version check http://www.boutell.com/gd for
7532 sources." >&5
7533 $as_echo "$as_me: WARNING:
7534 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7535 Please check that gdlib-config is in your default path, check out
7536 LD_LIBRARY_PATH or equivalent variable.
7537 Or this might also be that your gdlib-config has other name.
7538 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7539 (replace /usr/bin/gdlib-config with a valid path to your
7540 gdlib-config).
7541 If you use compiled packages check if you have devel pack installed.
7542 To download the latest version check http://www.boutell.com/gd for
7543 sources." >&2;}
7544 _mule_warning_0=yes
7545 _mule_has_warnings=yes
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7552 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7553 if test "${ac_cv_header_stdbool_h+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7559 #include <stdbool.h>
7560 #ifndef bool
7561 "error: bool is not defined"
7562 #endif
7563 #ifndef false
7564 "error: false is not defined"
7565 #endif
7566 #if false
7567 "error: false is not 0"
7568 #endif
7569 #ifndef true
7570 "error: true is not defined"
7571 #endif
7572 #if true != 1
7573 "error: true is not 1"
7574 #endif
7575 #ifndef __bool_true_false_are_defined
7576 "error: __bool_true_false_are_defined is not defined"
7577 #endif
7579 struct s { _Bool s: 1; _Bool t; } s;
7581 char a[true == 1 ? 1 : -1];
7582 char b[false == 0 ? 1 : -1];
7583 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7584 char d[(bool) 0.5 == true ? 1 : -1];
7585 bool e = &s;
7586 char f[(_Bool) 0.0 == false ? 1 : -1];
7587 char g[true];
7588 char h[sizeof (_Bool)];
7589 char i[sizeof s.t];
7590 enum { j = false, k = true, l = false * true, m = true * 256 };
7591 /* The following fails for
7592 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7593 _Bool n[m];
7594 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7595 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7596 # if defined __xlc__ || defined __GNUC__
7597 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7598 reported by James Lemley on 2005-10-05; see
7599 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7600 This test is not quite right, since xlc is allowed to
7601 reject this program, as the initializer for xlcbug is
7602 not one of the forms that C requires support for.
7603 However, doing the test right would require a runtime
7604 test, and that would make cross-compilation harder.
7605 Let us hope that IBM fixes the xlc bug, and also adds
7606 support for this kind of constant expression. In the
7607 meantime, this test will reject xlc, which is OK, since
7608 our stdbool.h substitute should suffice. We also test
7609 this with GCC, where it should work, to detect more
7610 quickly whether someone messes up the test in the
7611 future. */
7612 char digs[] = "0123456789";
7613 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7614 # endif
7615 /* Catch a bug in an HP-UX C compiler. See
7616 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7617 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7619 _Bool q = true;
7620 _Bool *pq = &q;
7623 main ()
7626 *pq |= q;
7627 *pq |= ! q;
7628 /* Refer to every declared value, to avoid compiler optimizations. */
7629 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7630 + !m + !n + !o + !p + !q + !pq);
7633 return 0;
7635 _ACEOF
7636 if ac_fn_c_try_compile "$LINENO"; then :
7637 ac_cv_header_stdbool_h=yes
7638 else
7639 ac_cv_header_stdbool_h=no
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7644 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7645 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7646 if test "x$ac_cv_type__Bool" = x""yes; then :
7648 cat >>confdefs.h <<_ACEOF
7649 #define HAVE__BOOL 1
7650 _ACEOF
7655 if test $ac_cv_header_stdbool_h = yes; then
7657 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7662 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7663 if test "${ac_cv_c_const+set}" = set; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7670 main ()
7672 /* FIXME: Include the comments suggested by Paul. */
7673 #ifndef __cplusplus
7674 /* Ultrix mips cc rejects this. */
7675 typedef int charset[2];
7676 const charset cs;
7677 /* SunOS 4.1.1 cc rejects this. */
7678 char const *const *pcpcc;
7679 char **ppc;
7680 /* NEC SVR4.0.2 mips cc rejects this. */
7681 struct point {int x, y;};
7682 static struct point const zero = {0,0};
7683 /* AIX XL C 1.02.0.0 rejects this.
7684 It does not let you subtract one const X* pointer from another in
7685 an arm of an if-expression whose if-part is not a constant
7686 expression */
7687 const char *g = "string";
7688 pcpcc = &g + (g ? g-g : 0);
7689 /* HPUX 7.0 cc rejects these. */
7690 ++pcpcc;
7691 ppc = (char**) pcpcc;
7692 pcpcc = (char const *const *) ppc;
7693 { /* SCO 3.2v4 cc rejects this. */
7694 char *t;
7695 char const *s = 0 ? (char *) 0 : (char const *) 0;
7697 *t++ = 0;
7698 if (s) return 0;
7700 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7701 int x[] = {25, 17};
7702 const int *foo = &x[0];
7703 ++foo;
7705 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7706 typedef const int *iptr;
7707 iptr p = 0;
7708 ++p;
7710 { /* AIX XL C 1.02.0.0 rejects this saying
7711 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7712 struct s { int j; const int *ap[3]; };
7713 struct s *b; b->j = 5;
7715 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7716 const int foo = 10;
7717 if (!foo) return 0;
7719 return !cs[0] && !zero.x;
7720 #endif
7723 return 0;
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"; then :
7727 ac_cv_c_const=yes
7728 else
7729 ac_cv_c_const=no
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7734 $as_echo "$ac_cv_c_const" >&6; }
7735 if test $ac_cv_c_const = no; then
7737 $as_echo "#define const /**/" >>confdefs.h
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7742 $as_echo_n "checking for inline... " >&6; }
7743 if test "${ac_cv_c_inline+set}" = set; then :
7744 $as_echo_n "(cached) " >&6
7745 else
7746 ac_cv_c_inline=no
7747 for ac_kw in inline __inline__ __inline; do
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7750 #ifndef __cplusplus
7751 typedef int foo_t;
7752 static $ac_kw foo_t static_foo () {return 0; }
7753 $ac_kw foo_t foo () {return 0; }
7754 #endif
7756 _ACEOF
7757 if ac_fn_c_try_compile "$LINENO"; then :
7758 ac_cv_c_inline=$ac_kw
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 test "$ac_cv_c_inline" != no && break
7762 done
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7766 $as_echo "$ac_cv_c_inline" >&6; }
7768 case $ac_cv_c_inline in
7769 inline | yes) ;;
7771 case $ac_cv_c_inline in
7772 no) ac_val=;;
7773 *) ac_val=$ac_cv_c_inline;;
7774 esac
7775 cat >>confdefs.h <<_ACEOF
7776 #ifndef __cplusplus
7777 #define inline $ac_val
7778 #endif
7779 _ACEOF
7781 esac
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7784 $as_echo_n "checking for working volatile... " >&6; }
7785 if test "${ac_cv_c_volatile+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7792 main ()
7795 volatile int x;
7796 int * volatile y = (int *) 0;
7797 return !x && !y;
7799 return 0;
7801 _ACEOF
7802 if ac_fn_c_try_compile "$LINENO"; then :
7803 ac_cv_c_volatile=yes
7804 else
7805 ac_cv_c_volatile=no
7807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7810 $as_echo "$ac_cv_c_volatile" >&6; }
7811 if test $ac_cv_c_volatile = no; then
7813 $as_echo "#define volatile /**/" >>confdefs.h
7818 ac_ext=cpp
7819 ac_cpp='$CXXCPP $CPPFLAGS'
7820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7826 # Check for zlib
7828 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 :
7831 # Check whether --with-zlib was given.
7832 if test "${with_zlib+set}" = set; then :
7833 withval=$with_zlib;
7837 case "${with_zlib:-yes}" in
7839 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7841 yes | sys)
7844 zlib_prefix="$with_zlib"
7845 esac
7847 mule_backup_CPPFLAGS="$CPPFLAGS"
7848 mule_backup_LDFLAGS="$LDFLAGS"
7849 mule_backup_LIBS="$LIBS"
7850 if test -n "$zlib_prefix"; then :
7852 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
7853 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
7854 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
7855 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
7857 else
7859 ZLIB_CPPFLAGS=
7860 ZLIB_LDFLAGS=
7863 ZLIB_LIBS="-lz"
7864 LIBS="$ZLIB_LIBS $LIBS"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
7867 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
7868 if test "$cross_compiling" = yes; then :
7870 result=no
7871 z_version=
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7876 #include <zlib.h>
7877 #include <stdio.h>
7880 main ()
7883 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
7884 zlibVersion();
7887 return 0;
7890 _ACEOF
7891 if ac_fn_cxx_try_link "$LINENO"; then :
7893 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
7894 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
7895 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
7896 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
7897 if test "$cross_zver_max" -gt "1"; then
7898 result=yes
7899 elif test "$cross_zver_max" -eq "1"; then
7901 if test "$cross_zver_mid" -gt "1"; then
7902 result=yes
7903 elif test "$cross_zver_mid" -eq "1"; then
7904 if test "$cross_zver_min" -ge "4"; then
7905 result=yes
7913 if test ${result:-no} = yes; then :
7914 z_version=" (version $ZLIB_VERSION)"
7918 rm -f core conftest.err conftest.$ac_objext \
7919 conftest$ac_exeext conftest.$ac_ext
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7921 $as_echo "$result$z_version" >&6; }
7923 else
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7928 #include <zlib.h>
7929 #include <stdio.h>
7932 main ()
7934 const char *zver = zlibVersion();
7935 FILE *f=fopen("conftestval", "w");
7936 if (!f) return 1;
7937 fprintf(f, "%s",
7938 zver[0] > '1' ||
7939 (zver[0] == '1' &&
7940 (zver[2] > '1' ||
7941 (zver[2] == '1' &&
7942 zver[4] >= '4'))) ? "yes" : "no");
7943 fclose(f);
7944 f=fopen("conftestver", "w");
7945 if (f) {
7946 fprintf(f, "%s", ZLIB_VERSION);
7947 fclose(f);
7951 return 0;
7954 _ACEOF
7955 if ac_fn_cxx_try_run "$LINENO"; then :
7957 if test -f conftestval; then :
7958 result=`cat conftestval`
7959 else
7960 result=no
7962 if test ${result:-no} = yes; then :
7964 if test -f conftestver; then :
7966 ZLIB_VERSION=`cat conftestver`
7967 z_version=" (version $ZLIB_VERSION)"
7969 else
7970 z_version=
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7975 $as_echo "$result$z_version" >&6; }
7977 else
7979 result=no
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7981 $as_echo "$result" >&6; }
7984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7985 conftest.$ac_objext conftest.beam conftest.$ac_ext
7989 CPPFLAGS="$mule_backup_CPPFLAGS"
7990 LDFLAGS="$mule_backup_LDFLAGS"
7991 LIBS="$mule_backup_LIBS"
7993 if test ${result:-no} = no; then :
7995 ZLIB_CPPFLAGS=
7996 ZLIB_LDFLAGS=
7997 ZLIB_LIBS=
7998 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8006 # Check for libpng
8007 if test ${enable_webserver:-no} = yes; then :
8010 # Check whether --with-libpng-prefix was given.
8011 if test "${with_libpng_prefix+set}" = set; then :
8012 withval=$with_libpng_prefix;
8016 # Check whether --with-libpng-config was given.
8017 if test "${with_libpng_config+set}" = set; then :
8018 withval=$with_libpng_config;
8022 LIBPNG_VERSION=
8024 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
8025 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
8026 LIBPNG_CONFIG_NAME=libpng-config
8028 if test -n "$with_libpng_config"; then :
8029 LIBPNG_CONFIG_NAME="$with_libpng_config"
8032 # deal with optional prefix
8033 if test -n "$with_libpng_prefix"; then :
8034 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
8037 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
8038 if test -x "$LIBPNG_CONFIG_NAME"; then :
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
8041 $as_echo_n "checking for libpng-config... " >&6; }
8042 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8044 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8046 else
8047 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
8048 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 case $LIBPNG_CONFIG_PATH in
8055 [\\/]* | ?:[\\/]*)
8056 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
8061 for as_dir in $as_dummy
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8071 done
8072 done
8073 IFS=$as_save_IFS
8075 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
8077 esac
8079 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
8080 if test -n "$LIBPNG_CONFIG_PATH"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8082 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8083 else
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8091 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
8094 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
8096 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
8098 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
8099 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8100 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8101 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8103 libpng_ver_ok=
8104 if test $libpng_config_major_version -gt 1; then
8105 libpng_ver_ok=yes
8106 elif test $libpng_config_major_version -eq 1; then
8108 if test $libpng_config_minor_version -gt 2; then
8109 libpng_ver_ok=yes
8110 elif test $libpng_config_minor_version -eq 2; then
8111 if test $libpng_config_micro_version -ge 0; then
8112 libpng_ver_ok=yes
8121 if test -z "$libpng_ver_ok"; then :
8123 if test -z "$LIBPNG_VERSION"; then :
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8126 else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
8129 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
8130 LIBPNG_VERSION=
8134 else
8136 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
8137 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
8138 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
8140 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
8143 $as_echo_n "checking if libpng is usable... " >&6; }
8145 SAVED_CFLAGS=$CFLAGS
8146 SAVED_LDFLAGS=$LDFLAGS
8147 SAVED_LIBS=$LIBS
8149 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
8150 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
8151 LIBS="$LIBS $LIBPNG_LIBS"
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8157 #include <png.h>
8158 #include <stdio.h>
8161 main ()
8164 png_uint_32 libpng_vn = png_access_version_number();
8165 printf("\nlibpng version %i\n\n", libpng_vn);
8168 return 0;
8171 _ACEOF
8172 if ac_fn_cxx_try_link "$LINENO"; then :
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8175 $as_echo "yes" >&6; }
8177 else
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8180 $as_echo "no (failed to compile and link test program)" >&6; }
8181 LIBPNG_LIBS=
8182 LIBPNG_LDFLAGS=
8183 LIBPNG_CFLAGS=
8184 LIBPNG_VERSION=
8187 rm -f core conftest.err conftest.$ac_objext \
8188 conftest$ac_exeext conftest.$ac_ext
8190 CFLAGS="$SAVED_CFLAGS"
8191 LDFLAGS="$SAVED_LDFLAGS"
8192 LIBS="$SAVED_LIBS"
8198 if test -n "$LIBPNG_VERSION"; then :
8199 AMULEWEB_DEFS="-DWITH_LIBPNG"
8200 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8203 libpng >= 1.2.0 not found.
8204 amuleweb will be compiled but file download progress bar images will
8205 NOT be generated." >&5
8206 $as_echo "$as_me: WARNING:
8207 libpng >= 1.2.0 not found.
8208 amuleweb will be compiled but file download progress bar images will
8209 NOT be generated." >&2;}
8210 _mule_warning_1=yes
8211 _mule_has_warnings=yes
8222 # Check for perl File::Copy
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
8224 $as_echo_n "checking for File::Copy... " >&6; }
8225 if perl -e "require File::Copy" 2>/dev/null; then :
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8227 $as_echo "ok" >&6; }
8228 else
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8230 File::Copy perl module is required by the mldonkey_importer script.
8231 If you want to use this script please install File::Copy from CPAN." >&5
8232 $as_echo "$as_me: WARNING:
8233 File::Copy perl module is required by the mldonkey_importer script.
8234 If you want to use this script please install File::Copy from CPAN." >&2;}
8235 _mule_warning_2=yes
8236 _mule_has_warnings=yes
8241 # Check for GeoIP (required for IP2Country capability)
8243 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8245 # Check whether --enable-geoip was given.
8246 if test "${enable_geoip+set}" = set; then :
8247 enableval=$enable_geoip;
8252 if test ${enable_geoip:-no} = yes; then :
8255 # Check whether --with-geoip-headers was given.
8256 if test "${with_geoip_headers+set}" = set; then :
8257 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8261 # Check whether --with-geoip-lib was given.
8262 if test "${with_geoip_lib+set}" = set; then :
8263 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8267 mule_backup_CPPFLAGS="$CPPFLAGS"
8268 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8269 mule_backup_LDFLAGS="$LDFLAGS"
8270 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8272 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8273 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
8275 if test x$SYS = xwin32; then :
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8278 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8279 # Actually, we might not need any if GeoIP is linked as a .dll
8280 # - but that's even harder to check for
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8285 #include <GeoIP.h>
8286 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8287 I do know it's not the best approach, but at least works with MinGW stock headers.
8288 (tested with w32api-3.12)
8289 #endif
8292 main ()
8296 return 0;
8299 _ACEOF
8300 if ac_fn_cxx_try_compile "$LINENO"; then :
8302 GEOIP_WINSOCK_LIB="-lwsock32"
8304 else
8306 GEOIP_WINSOCK_LIB="-lws2_32"
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8311 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8315 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8316 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 ac_check_lib_save_LIBS=$LIBS
8320 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8324 /* Override any GCC internal prototype to avoid an error.
8325 Use char because int might match the return type of a GCC
8326 builtin and then its argument prototype would still apply. */
8327 #ifdef __cplusplus
8328 extern "C"
8329 #endif
8330 char GeoIP_open ();
8332 main ()
8334 return GeoIP_open ();
8336 return 0;
8338 _ACEOF
8339 if ac_fn_cxx_try_link "$LINENO"; then :
8340 ac_cv_lib_GeoIP_GeoIP_open=yes
8341 else
8342 ac_cv_lib_GeoIP_GeoIP_open=no
8344 rm -f core conftest.err conftest.$ac_objext \
8345 conftest$ac_exeext conftest.$ac_ext
8346 LIBS=$ac_check_lib_save_LIBS
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8349 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8350 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
8353 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8355 GEOIP_LIBS="-lGeoIP"
8356 if test x$SYS = xwin32; then :
8357 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8359 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8361 # Check whether --with-geoip-static was given.
8362 if test "${with_geoip_static+set}" = set; then :
8363 withval=$with_geoip_static;
8364 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8366 mule_backup_LIBS="$LIBS"
8367 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8372 #include <GeoIP.h>
8375 main ()
8378 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8381 return 0;
8384 _ACEOF
8385 if ac_fn_cxx_try_link "$LINENO"; then :
8387 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8389 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8392 Cannot link GeoIP statically, because your linker ($LD) does not
8393 support it." >&5
8394 $as_echo "$as_me: WARNING:
8395 Cannot link GeoIP statically, because your linker ($LD) does not
8396 support it." >&2;}
8397 _mule_warning_3=yes
8398 _mule_has_warnings=yes
8402 rm -f core conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 LIBS="$mule_backup_LIBS"
8411 else
8413 enable_geoip=disabled
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8415 GeoIP support has been disabled because the GeoIP libraries were not
8416 found" >&5
8417 $as_echo "$as_me: WARNING:
8418 GeoIP support has been disabled because the GeoIP libraries were not
8419 found" >&2;}
8420 _mule_warning_4=yes
8421 _mule_has_warnings=yes
8427 else
8429 enable_geoip=disabled
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8431 GeoIP support has been disabled because the GeoIP header files were
8432 not found" >&5
8433 $as_echo "$as_me: WARNING:
8434 GeoIP support has been disabled because the GeoIP header files were
8435 not found" >&2;}
8436 _mule_warning_5=yes
8437 _mule_has_warnings=yes
8444 CPPFLAGS="$mule_backup_CPPFLAGS"
8445 LDFLAGS="$mule_backup_LDFLAGS"
8452 # Check for wx
8453 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 :
8456 # Check whether --with-wxdir was given.
8457 if test "${with_wxdir+set}" = set; then :
8458 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8459 wx_config_args="--inplace"
8463 # Check whether --with-wx-config was given.
8464 if test "${with_wx_config+set}" = set; then :
8465 withval=$with_wx_config; wx_config_name="$withval"
8469 # Check whether --with-wx-prefix was given.
8470 if test "${with_wx_prefix+set}" = set; then :
8471 withval=$with_wx_prefix; wx_config_prefix="$withval"
8472 else
8473 wx_config_prefix=""
8477 # Check whether --with-wx-exec-prefix was given.
8478 if test "${with_wx_exec_prefix+set}" = set; then :
8479 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8480 else
8481 wx_config_exec_prefix=""
8496 # Check whether --with-toolkit was given.
8497 if test "${with_toolkit+set}" = set; then :
8498 withval=$with_toolkit;
8499 else
8500 withval="auto"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8505 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8506 if test "$withval" = "auto" ; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8508 $as_echo "will be automatically detected" >&6; }
8509 TOOLKIT=""
8510 else
8511 TOOLKIT="$withval"
8513 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \
8514 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8515 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \
8516 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then
8517 as_fn_error "
8518 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base)
8519 " "$LINENO" 5
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8523 $as_echo "$TOOLKIT" >&6; }
8530 # Check whether --with-wxshared was given.
8531 if test "${with_wxshared+set}" = set; then :
8532 withval=$with_wxshared;
8533 else
8534 withval="auto"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8539 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8540 if test "$withval" = "yes" ; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8542 $as_echo "yes" >&6; }
8543 WX_SHARED=1
8545 elif test "1" = "1" -a "$withval" = "no" ; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547 $as_echo "no" >&6; }
8548 WX_SHARED=0
8549 elif test "$withval" = "auto" ; then
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8551 $as_echo "will be automatically detected" >&6; }
8552 WX_SHARED=""
8553 else
8554 as_fn_error "
8555 Unrecognized option value (allowed values: yes, auto)
8556 " "$LINENO" 5
8563 # Check whether --with-wxdebug was given.
8564 if test "${with_wxdebug+set}" = set; then :
8565 withval=$with_wxdebug;
8566 else
8567 withval="auto"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8572 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8573 if test "$withval" = "yes" ; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8575 $as_echo "yes" >&6; }
8576 WX_DEBUG=1
8578 elif test "1" = "1" -a "$withval" = "no" ; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8581 WX_DEBUG=0
8582 elif test "$withval" = "auto" ; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8584 $as_echo "will be automatically detected" >&6; }
8585 WX_DEBUG=""
8586 else
8587 as_fn_error "
8588 Unrecognized option value (allowed values: yes, auto)
8589 " "$LINENO" 5
8596 # Check whether --with-wxversion was given.
8597 if test "${with_wxversion+set}" = set; then :
8598 withval=$with_wxversion;
8599 else
8600 withval="auto"
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8605 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8606 if test "$withval" = "auto" ; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8608 $as_echo "will be automatically detected" >&6; }
8609 WX_RELEASE=""
8610 else
8612 wx_requested_major_version=`echo $withval | \
8613 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8614 wx_requested_minor_version=`echo $withval | \
8615 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8617 if test "${#wx_requested_major_version}" != "1" -o \
8618 "${#wx_requested_minor_version}" != "1" ; then
8619 as_fn_error "
8620 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0)
8621 " "$LINENO" 5
8624 WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5
8626 $as_echo "$WX_RELEASE" >&6; }
8630 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8631 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8632 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8633 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8634 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8635 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
8638 # Force using a static wxWidgets library if the executable is to be linked statically.
8639 if test ${enable_static:-no} = yes; then :
8640 WX_SHARED=0
8642 # Force using a unicode build of the library
8643 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 :
8644 WX_UNICODE=1
8646 DEBUG=$WX_DEBUG
8648 if test "$WX_SHARED" = "1" ; then
8649 WXCONFIG_FLAGS="--static=no "
8650 elif test "$WX_SHARED" = "0" ; then
8651 WXCONFIG_FLAGS="--static=yes "
8654 if test "$WX_DEBUG" = "1" ; then
8655 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8656 elif test "$WX_DEBUG" = "0" ; then
8657 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8660 if test "$WX_UNICODE" = "1" ; then
8661 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8662 elif test "$WX_UNICODE" = "0" ; then
8663 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8666 if test -n "$TOOLKIT" ; then
8667 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8670 if test -n "$WX_RELEASE" ; then
8671 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE "
8674 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8676 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8677 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8681 if test x${WX_CONFIG_NAME+set} != xset ; then
8682 WX_CONFIG_NAME=wx-config
8685 if test "x$wx_config_name" != x ; then
8686 WX_CONFIG_NAME="$wx_config_name"
8689 if test x$wx_config_exec_prefix != x ; then
8690 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8691 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8693 if test x$wx_config_prefix != x ; then
8694 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8695 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8697 if test "$cross_compiling" = "yes"; then
8698 wx_config_args="$wx_config_args --host=$host_alias"
8701 if test -x "$WX_CONFIG_NAME" ; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8703 $as_echo_n "checking for wx-config... " >&6; }
8704 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8706 $as_echo "$WX_CONFIG_PATH" >&6; }
8707 else
8708 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8709 set dummy $WX_CONFIG_NAME; ac_word=$2
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8711 $as_echo_n "checking for $ac_word... " >&6; }
8712 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 case $WX_CONFIG_PATH in
8716 [\\/]* | ?:[\\/]*)
8717 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8722 for as_dir in $as_dummy
8724 IFS=$as_save_IFS
8725 test -z "$as_dir" && as_dir=.
8726 for ac_exec_ext in '' $ac_executable_extensions; do
8727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8728 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8730 break 2
8732 done
8733 done
8734 IFS=$as_save_IFS
8736 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8738 esac
8740 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8741 if test -n "$WX_CONFIG_PATH"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8743 $as_echo "$WX_CONFIG_PATH" >&6; }
8744 else
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8752 if test "$WX_CONFIG_PATH" != "no" ; then
8753 WX_VERSION=""
8755 min_wx_version=2.8.12
8756 if test -z "$WXCONFIG_FLAGS" ; then
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8758 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8759 else
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8761 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8764 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS"
8766 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8767 wx_config_major_version=`echo $WX_VERSION | \
8768 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8769 wx_config_minor_version=`echo $WX_VERSION | \
8770 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8771 wx_config_micro_version=`echo $WX_VERSION | \
8772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8774 wx_requested_major_version=`echo $min_wx_version | \
8775 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8776 wx_requested_minor_version=`echo $min_wx_version | \
8777 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8778 wx_requested_micro_version=`echo $min_wx_version | \
8779 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8782 wx_ver_ok=""
8783 if test "x$WX_VERSION" != x ; then
8784 if test $wx_config_major_version -gt $wx_requested_major_version; then
8785 wx_ver_ok=yes
8786 else
8787 if test $wx_config_major_version -eq $wx_requested_major_version; then
8788 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8789 wx_ver_ok=yes
8790 else
8791 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8792 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8793 wx_ver_ok=yes
8802 if test -n "$wx_ver_ok"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
8804 $as_echo "yes (version $WX_VERSION)" >&6; }
8805 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs `
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
8808 $as_echo_n "checking for wxWidgets static library... " >&6; }
8809 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
8810 if test "x$WX_LIBS_STATIC" = "x"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8815 $as_echo "yes" >&6; }
8818 wx_has_cppflags=""
8819 if test $wx_config_major_version -gt 2; then
8820 wx_has_cppflags=yes
8821 else
8822 if test $wx_config_major_version -eq 2; then
8823 if test $wx_config_minor_version -gt 2; then
8824 wx_has_cppflags=yes
8825 else
8826 if test $wx_config_minor_version -eq 2; then
8827 if test $wx_config_micro_version -ge 6; then
8828 wx_has_cppflags=yes
8835 wx_has_rescomp=""
8836 if test $wx_config_major_version -gt 2; then
8837 wx_has_rescomp=yes
8838 else
8839 if test $wx_config_major_version -eq 2; then
8840 if test $wx_config_minor_version -ge 7; then
8841 wx_has_rescomp=yes
8845 if test "x$wx_has_rescomp" = x ; then
8846 WX_RESCOMP=
8847 else
8848 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8851 if test "x$wx_has_cppflags" = x ; then
8852 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
8853 WX_CPPFLAGS=$WX_CFLAGS
8854 WX_CXXFLAGS=$WX_CFLAGS
8856 WX_CFLAGS_ONLY=$WX_CFLAGS
8857 WX_CXXFLAGS_ONLY=$WX_CFLAGS
8858 else
8859 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags `
8860 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags `
8861 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
8863 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8864 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8867 wxWin=1
8869 else
8871 if test "x$WX_VERSION" = x; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8874 else
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
8876 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
8879 WX_CFLAGS=""
8880 WX_CPPFLAGS=""
8881 WX_CXXFLAGS=""
8882 WX_LIBS=""
8883 WX_LIBS_STATIC=""
8884 WX_RESCOMP=""
8886 if test ! -z "$WXCONFIG_FLAGS"; then
8888 wx_error_message="
8889 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8890 build with the following settings:
8891 $WXCONFIG_FLAGS
8892 but such build is not available.
8894 To see the wxWidgets builds available on this system, please use
8895 'wx-config --list' command. To use the default build, returned by
8896 'wx-config --selected-config', use the options with their 'auto'
8897 default values."
8901 wx_error_message="
8902 The requested wxWidgets build couldn't be found.
8903 $wx_error_message
8905 If you still get this error, then check that 'wx-config' is
8906 in path, the directory where wxWidgets libraries are installed
8907 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8908 or equivalent variable and wxWidgets version is 2.8.12 or above."
8910 as_fn_error "$wx_error_message" "$LINENO" 5
8913 else
8915 WX_CFLAGS=""
8916 WX_CPPFLAGS=""
8917 WX_CXXFLAGS=""
8918 WX_LIBS=""
8919 WX_LIBS_STATIC=""
8920 WX_RESCOMP=""
8936 WX_VERSION_MAJOR="$wx_config_major_version"
8937 WX_VERSION_MINOR="$wx_config_minor_version"
8938 WX_VERSION_MICRO="$wx_config_micro_version"
8943 if test "$wxWin" != 1; then :
8944 as_fn_error "
8945 wxWidgets must be installed on your system but wx-config
8946 script couldn't be found. Please check that wx-config is
8947 in path or specified by --with-wx-config=path flag, the
8948 directory where wxWidgets libraries are installed (returned
8949 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8950 equivalent variable and wxWidgets version is 2.8.12 or above.
8951 " "$LINENO" 5
8954 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8955 as_fn_error "
8956 This version of wxWidgets is known to not work with aMule.
8957 Please upgrade to a newer version.
8958 " "$LINENO" 5
8962 WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8963 if test $WX_RELEASE -lt 26 ; then
8965 as_fn_error "
8966 Cannot detect the wxWidgets configuration for the selected wxWidgets build
8967 since its version is $WX_VERSION < 2.6.0; please install a newer
8968 version of wxWidgets.
8969 " "$LINENO" 5
8972 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8974 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8975 echo "[dbg] Using wx-config --selected-config"
8976 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8979 if test "$WX_SHARED" = "1"; then
8980 STATIC=0
8981 elif test "$WX_SHARED" = "0"; then
8982 STATIC=1
8986 if test -z "$UNICODE" ; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8989 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8991 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8993 if test "$WX_UNICODE" != "0"; then
8994 WX_UNICODE=1
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8996 $as_echo "yes" >&6; }
8997 else
8998 WX_UNICODE=0
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9002 else
9004 WX_UNICODE=$UNICODE
9008 if test -z "$DEBUG" ; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
9011 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
9013 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
9015 if test "$WX_DEBUG" != "0"; then
9016 WX_DEBUG=1
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9018 $as_echo "yes" >&6; }
9019 else
9020 WX_DEBUG=0
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022 $as_echo "no" >&6; }
9024 else
9026 WX_DEBUG=$DEBUG
9030 if test -z "$STATIC" ; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
9033 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
9035 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
9037 if test "$WX_STATIC" != "0"; then
9038 WX_STATIC=1
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9040 $as_echo "yes" >&6; }
9041 else
9042 WX_STATIC=0
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9046 else
9048 WX_STATIC=$STATIC
9052 if test "$WX_STATIC" != "0"; then
9053 WX_SHARED=0
9054 else
9055 WX_SHARED=1
9062 if test -z "$TOOLKIT" ; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
9065 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
9067 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
9068 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
9069 WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*")
9070 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
9071 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
9072 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
9073 WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*")
9074 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
9075 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
9076 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
9078 WX_PORT="unknown"
9079 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
9080 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
9081 if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi
9082 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
9083 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
9084 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
9085 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi
9086 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
9087 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
9088 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
9090 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
9091 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
9094 if test "$WX_PORT" = "unknown" ; then
9095 as_fn_error "
9096 Cannot detect the currently installed wxWidgets port !
9097 Please check your 'wx-config --cxxflags'...
9098 " "$LINENO" 5
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
9102 $as_echo "$WX_PORT" >&6; }
9103 else
9104 WX_PORT=$TOOLKIT
9109 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9110 echo "[dbg] Values of all WX_* options after final detection:"
9111 echo "[dbg] WX_DEBUG: $WX_DEBUG"
9112 echo "[dbg] WX_UNICODE: $WX_UNICODE"
9113 echo "[dbg] WX_SHARED: $WX_SHARED"
9114 echo "[dbg] WX_RELEASE: $WX_RELEASE"
9115 echo "[dbg] WX_PORT: $WX_PORT"
9118 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
9119 as_fn_error "
9120 Cannot build shared library against a static build of wxWidgets !
9121 This error happens because the wxWidgets build which was selected
9122 has been detected as static while you asked to build $PACKAGE_NAME
9123 as shared library and this is not possible.
9124 Use the '--disable-shared' option to build $PACKAGE_NAME
9125 as static library or '--with-wxshared' to use wxWidgets as shared library.
9126 " "$LINENO" 5
9129 if test -z "$UNICODE" ; then
9130 UNICODE=$WX_UNICODE
9132 if test -z "$SHARED" ; then
9133 SHARED=$WX_SHARED
9135 if test -z "$TOOLKIT" ; then
9136 TOOLKIT=$WX_PORT
9139 if test "$DEBUG" = "1"; then
9140 BUILD="debug"
9141 CXXFLAGS="$CXXFLAGS -g -O0"
9142 CFLAGS="$CFLAGS -g -O0"
9143 elif test "$DEBUG" = "0"; then
9144 BUILD="release"
9145 CXXFLAGS="$CXXFLAGS -O2"
9146 CFLAGS="$CFLAGS -O2"
9150 # We also need wxBase
9151 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
9152 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
9153 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
9155 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
9159 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
9160 if test "${WX_PORT}" = base; then :
9161 as_fn_error "
9162 The selected components need a wxWidgets library with GUI,
9163 but your installation is base-only. Please install a GUI
9164 enabled version of wxWidgets and then retry.
9165 " "$LINENO" 5
9171 if test ${SYS:-unknown} = win32; then :
9172 if test -n "$ac_tool_prefix"; then
9173 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9174 set dummy ${ac_tool_prefix}windres; ac_word=$2
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9176 $as_echo_n "checking for $ac_word... " >&6; }
9177 if test "${ac_cv_prog_RC+set}" = set; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 if test -n "$RC"; then
9181 ac_cv_prog_RC="$RC" # Let the user override the test.
9182 else
9183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9184 for as_dir in $PATH
9186 IFS=$as_save_IFS
9187 test -z "$as_dir" && as_dir=.
9188 for ac_exec_ext in '' $ac_executable_extensions; do
9189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9190 ac_cv_prog_RC="${ac_tool_prefix}windres"
9191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9192 break 2
9194 done
9195 done
9196 IFS=$as_save_IFS
9200 RC=$ac_cv_prog_RC
9201 if test -n "$RC"; then
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9203 $as_echo "$RC" >&6; }
9204 else
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206 $as_echo "no" >&6; }
9211 if test -z "$ac_cv_prog_RC"; then
9212 ac_ct_RC=$RC
9213 # Extract the first word of "windres", so it can be a program name with args.
9214 set dummy windres; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 if test -n "$ac_ct_RC"; then
9221 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
9222 else
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 for as_dir in $PATH
9226 IFS=$as_save_IFS
9227 test -z "$as_dir" && as_dir=.
9228 for ac_exec_ext in '' $ac_executable_extensions; do
9229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9230 ac_cv_prog_ac_ct_RC="windres"
9231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9232 break 2
9234 done
9235 done
9236 IFS=$as_save_IFS
9240 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9241 if test -n "$ac_ct_RC"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9243 $as_echo "$ac_ct_RC" >&6; }
9244 else
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9249 if test "x$ac_ct_RC" = x; then
9250 RC=":"
9251 else
9252 case $cross_compiling:$ac_tool_warned in
9253 yes:)
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9256 ac_tool_warned=yes ;;
9257 esac
9258 RC=$ac_ct_RC
9260 else
9261 RC="$ac_cv_prog_RC"
9267 # Check for libupnp
9268 # Check whether --enable-upnp was given.
9269 if test "${enable_upnp+set}" = set; then :
9270 enableval=$enable_upnp;
9274 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9276 else
9277 enable_upnp=no
9279 if test ${enable_upnp:-yes} = yes; then :
9283 # Check whether --with-libupnp-prefix was given.
9284 if test "${with_libupnp_prefix+set}" = set; then :
9285 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9289 if test $cross_compiling = no; then :
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9292 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9293 if test -n "$PKG_CONFIG"; then :
9295 if $PKG_CONFIG libupnp --exists; then :
9297 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
9298 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9300 result=yes
9301 resultstr=" (version $LIBUPNP_VERSION)"
9302 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
9303 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
9304 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
9305 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
9306 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
9308 else
9310 result=no
9311 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9315 else
9317 result=no
9318 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9322 else
9324 result=no
9325 resultstr=" (pkg-config not found)"
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9329 $as_echo "$result$resultstr" >&6; }
9330 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9332 else
9334 result=no
9335 libupnp_error="cross compiling"
9339 if test ${result:-no} = yes; then :
9340 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9341 else
9342 enable_upnp=disabled
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9344 UPnP code has been disabled because ${libupnp_error}." >&5
9345 $as_echo "$as_me: WARNING:
9346 UPnP code has been disabled because ${libupnp_error}." >&2;}
9347 _mule_warning_6=yes
9348 _mule_has_warnings=yes
9357 # Check for Crypto++ (requires C++)
9358 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9361 # Check whether --with-crypto-prefix was given.
9362 if test "${with_crypto_prefix+set}" = set; then :
9363 withval=$with_crypto_prefix;
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
9368 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
9370 cryptopp_found=false
9372 if test -n "$with_crypto_prefix"; then :
9374 CRYPTOPP_PREFIX="$with_crypto_prefix"
9375 # Find the Cryptopp header in the user-provided location
9376 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then
9378 cryptopp_found=true
9379 CRYPTOPP_LIB_NAME="cryptopp"
9380 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9381 CRYPTOPP_CPPFLAGS=
9382 CRYPTOPP_LDFLAGS=
9383 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9385 else
9387 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9388 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then :
9390 cryptopp_found=true
9391 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9392 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include"
9393 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib"
9394 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9395 break
9398 done
9403 else
9405 # Check whether the compiler can find it
9406 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9410 #include <$CRYPTOPP_LIB_NAME/cryptlib.h>
9413 main ()
9417 return 0;
9420 _ACEOF
9421 if ac_fn_cxx_try_compile "$LINENO"; then :
9423 cryptopp_found=true
9424 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9425 CRYPTOPP_CPPFLAGS=
9426 CRYPTOPP_LDFLAGS=
9427 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9428 break
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432 done
9436 if $cryptopp_found; then :
9438 # Find out the crypto++ version and check against the minimum required
9439 # Ask the compiler where are the crypto++ files
9440 mule_backup_CPPFLAGS="$CPPFLAGS"
9441 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS"
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9445 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h>
9447 _ACEOF
9448 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'`
9449 rm -f conftest*
9450 CPPFLAGS="$mule_backup_CPPFLAGS"
9451 # Set a prefix suitable for --with-crypto-prefix
9452 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}"
9453 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}"
9454 # Now check the version
9455 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9456 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9457 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9459 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9461 result=yes
9462 resultstr=" (version $CRYPTOPP_VERSION_STRING)"
9464 cat >>confdefs.h <<_ACEOF
9465 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9466 _ACEOF
9469 else
9471 result=no
9472 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9473 CRYPTOPP_CPPFLAGS=
9474 CRYPTOPP_LDFLAGS=
9475 CRYPTOPP_LIBS=
9479 else
9480 result="no"; resultstr=
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9484 $as_echo "$result$resultstr" >&6; }
9486 if test ${result:-no} = yes; then :
9488 # Check for CryptoPP >= 5.5
9489 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
9490 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
9493 else
9495 as_fn_error "
9496 Could not find crypto++ installation or sources.
9497 Please try again with --with-crypto-prefix=/my_crypto_prefix
9498 (replace /my_crypto_prefix with a valid path to your crypto++
9499 installation or source directory)." "$LINENO" 5
9508 # Check whether --enable-debug was given.
9509 if test "${enable_debug+set}" = set; then :
9510 enableval=$enable_debug;
9514 # Check whether --enable-profile was given.
9515 if test "${enable_profile+set}" = set; then :
9516 enableval=$enable_profile;
9520 # Check whether --enable-optimize was given.
9521 if test "${enable_optimize+set}" = set; then :
9522 enableval=$enable_optimize;
9527 if test ${enable_debug:-yes} = yes; then :
9529 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9531 MULECFLAGS="$MULECFLAGS -g"
9532 MULECXXFLAGS="$MULECXXFLAGS -g"
9534 if test ${GCC:-no} = yes; then :
9536 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9537 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9540 if test ${SYS:-unknown} = win32; then :
9541 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9544 else
9546 if test ${GCC:-no} = yes; then :
9548 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9549 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9555 if test ${enable_profile:-no} = yes; then :
9558 MULECFLAGS="$MULECFLAGS -pg"
9559 MULECXXFLAGS="$MULECXXFLAGS -pg"
9561 MULELDFLAGS="$MULELDFLAGS -pg"
9565 if test ${enable_optimize:-no} = yes; then :
9567 MULECFLAGS="$MULECFLAGS -O2"
9568 MULECXXFLAGS="$MULECXXFLAGS -O2"
9572 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9576 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 :
9581 if test ${GCC:-no} = yes; then :
9583 mule_backup_CXXFLAGS="$CXXFLAGS"
9584 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9587 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9593 main ()
9596 int a;
9597 short *b = (short*)&a;
9598 short c = *b;
9600 return c;
9603 return 0;
9606 _ACEOF
9607 if ac_fn_cxx_try_compile "$LINENO"; then :
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9612 else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9615 $as_echo "yes" >&6; }
9616 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622 CXXFLAGS="$mule_backup_CXXFLAGS"
9626 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9628 mule_backup_CPPFLAGS="$CPPFLAGS"
9629 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9632 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9637 #include <wx/wx.h>
9638 #include <wx/filefn.h>
9639 #ifndef wxHAS_LARGE_FILES
9640 #error No LargeFile support!
9641 #endif
9644 _ACEOF
9645 if ac_fn_cxx_try_cpp "$LINENO"; then :
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9648 $as_echo "yes" >&6; }
9650 else
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9654 as_fn_error "
9655 Support for large files in wxWidgets is required by aMule.
9656 To continue you must recompile wxWidgets with support for
9657 large files enabled." "$LINENO" 5
9660 rm -f conftest.err conftest.$ac_ext
9662 CPPFLAGS="$mule_backup_CPPFLAGS"
9666 # Check if the compiler is broken, wrt. exceptions.
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9669 $as_echo_n "checking for exception-handling... " >&6; }
9670 if test "$cross_compiling" = yes; then :
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9673 $as_echo "undeterminable" >&6; }
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9675 Cross-compilation detected, so exception handling cannot be tested.
9676 Note that broken exception handling in your compiler may lead to
9677 unexpected crashes." >&5
9678 $as_echo "$as_me: WARNING:
9679 Cross-compilation detected, so exception handling cannot be tested.
9680 Note that broken exception handling in your compiler may lead to
9681 unexpected crashes." >&2;}
9682 _mule_warning_7=yes
9683 _mule_has_warnings=yes
9686 else
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9692 main ()
9695 try {
9696 throw 1;
9697 } catch (int) {
9698 return 0;
9700 return 1;
9703 return 0;
9706 _ACEOF
9707 if ac_fn_cxx_try_run "$LINENO"; then :
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9710 $as_echo "yes" >&6; }
9712 else
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9716 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
9719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9720 conftest.$ac_objext conftest.beam conftest.$ac_ext
9726 for ac_header in typeinfo
9727 do :
9728 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9729 if test "x$ac_cv_header_typeinfo" = x""yes; then :
9730 cat >>confdefs.h <<_ACEOF
9731 #define HAVE_TYPEINFO 1
9732 _ACEOF
9736 done
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9739 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9744 #ifdef HAVE_TYPEINFO
9745 # include <typeinfo>
9746 #endif
9747 #include <cxxabi.h>
9750 main ()
9753 int status;
9754 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9755 std::type_info *ti = abi::__cxa_current_exception_type();
9758 return 0;
9761 _ACEOF
9762 if ac_fn_cxx_try_link "$LINENO"; then :
9765 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9768 $as_echo "yes" >&6; }
9770 else
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9776 rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9780 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 :
9783 # Check whether --with-boost was given.
9784 if test "${with_boost+set}" = set; then :
9785 withval=$with_boost;
9786 else
9787 with_boost=no
9791 if test ${with_boost:-no} != no; then :
9793 echo "$as_me: this is boost.m4 serial 25" >&5
9794 boost_save_IFS=$IFS
9795 boost_version_req=1.47
9796 IFS=.
9797 set x $boost_version_req 0 0 0
9798 IFS=$boost_save_IFS
9799 shift
9800 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9801 boost_version_req_string=$1.$2.$3
9802 # If BOOST_ROOT is set and the user has not provided a value to
9803 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9804 if test x"$BOOST_ROOT" != x; then
9805 if test x"$with_boost" = x; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9807 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9808 with_boost=$BOOST_ROOT
9809 else
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9811 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9814 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9815 boost_save_CPPFLAGS=$CPPFLAGS
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9817 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9818 if test "${boost_cv_inc_path+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 boost_cv_inc_path=no
9822 ac_ext=cpp
9823 ac_cpp='$CXXCPP $CPPFLAGS'
9824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9829 #include <boost/version.hpp>
9830 #if !defined BOOST_VERSION
9831 # error BOOST_VERSION is not defined
9832 #elif BOOST_VERSION < $boost_version_req
9833 # error Boost headers version < $boost_version_req
9834 #endif
9837 main ()
9841 return 0;
9843 _ACEOF
9844 # If the user provided a value to --with-boost, use it and only it.
9845 case $with_boost in #(
9846 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9847 /usr/include C:/Boost/include;; #(
9848 *) set x "$with_boost/include" "$with_boost";;
9849 esac
9850 shift
9851 for boost_dir
9853 # Without --layout=system, Boost (or at least some versions) installs
9854 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9855 # find headers in such directories.
9857 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9858 # order followed by ${boost_dir}. The final '.' is a sentinel for
9859 # searching $boost_dir" itself. Entries are whitespace separated.
9861 # I didn't indent this loop on purpose (to avoid over-indented code)
9862 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
9863 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
9864 && echo .`
9865 for boost_inc in $boost_layout_system_search_list
9867 if test x"$boost_inc" != x.; then
9868 boost_inc="$boost_dir/$boost_inc"
9869 else
9870 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9872 if test x"$boost_inc" != x; then
9873 # We are going to check whether the version of Boost installed
9874 # in $boost_inc is usable by running a compilation that
9875 # #includes it. But if we pass a -I/some/path in which Boost
9876 # is not installed, the compiler will just skip this -I and
9877 # use other locations (either from CPPFLAGS, or from its list
9878 # of system include directories). As a result we would use
9879 # header installed on the machine instead of the /some/path
9880 # specified by the user. So in that precise case (trying
9881 # $boost_inc), make sure the version.hpp exists.
9883 # Use test -e as there can be symlinks.
9884 test -e "$boost_inc/boost/version.hpp" || continue
9885 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9887 if ac_fn_cxx_try_compile "$LINENO"; then :
9888 boost_cv_inc_path=yes
9889 else
9890 boost_cv_version=no
9892 rm -f core conftest.err conftest.$ac_objext
9893 if test x"$boost_cv_inc_path" = xyes; then
9894 if test x"$boost_inc" != x; then
9895 boost_cv_inc_path=$boost_inc
9897 break 2
9899 done
9900 done
9901 ac_ext=cpp
9902 ac_cpp='$CXXCPP $CPPFLAGS'
9903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9909 $as_echo "$boost_cv_inc_path" >&6; }
9910 case $boost_cv_inc_path in #(
9912 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9914 $as_echo "$as_me: $boost_errmsg" >&6;}
9915 with_boost=disabled
9916 ;;#(
9917 yes)
9918 BOOST_CPPFLAGS=
9919 ;;#(
9921 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9923 esac
9924 if test x"$boost_cv_inc_path" != xno; then
9926 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9929 $as_echo_n "checking for Boost's header version... " >&6; }
9930 if test "${boost_cv_lib_version+set}" = set; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 ac_ext=cpp
9934 ac_cpp='$CXXCPP $CPPFLAGS'
9935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 #include <boost/version.hpp>
9941 boost-lib-version = BOOST_LIB_VERSION
9942 _ACEOF
9943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9944 grep -v '#' |
9945 tr -d '\r' |
9946 tr -s '\n' ' ' |
9947 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
9948 boost_cv_lib_version=`cat conftest.i`
9950 rm -rf conftest*
9951 ac_ext=cpp
9952 ac_cpp='$CXXCPP $CPPFLAGS'
9953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9959 $as_echo "$boost_cv_lib_version" >&6; }
9960 # e.g. "134" for 1_34_1 or "135" for 1_35
9961 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
9962 case $boost_major_version in #(
9963 '' | *[!0-9]*)
9964 as_fn_error "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
9966 esac
9968 CPPFLAGS=$boost_save_CPPFLAGS
9970 if test ${with_boost:-no} != disabled; then :
9972 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9973 for cc_temp in $compiler""; do
9974 case $cc_temp in
9975 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9976 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9977 \-*) ;;
9978 *) break;;
9979 esac
9980 done
9981 cc_basename=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9982 # All known linkers require a `.a' archive for static linking (except MSVC,
9983 # which needs '.lib').
9984 libext=a
9985 case $cc_basename in
9986 cl*) libext=lib ;;
9987 esac
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9990 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9991 if test "${boost_cv_lib_tag+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 boost_cv_lib_tag=unknown
9995 if test x$boost_cv_inc_path != xno; then
9996 ac_ext=cpp
9997 ac_cpp='$CXXCPP $CPPFLAGS'
9998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10001 # The following tests are mostly inspired by boost/config/auto_link.hpp
10002 # The list is sorted to most recent/common to oldest compiler (in order
10003 # to increase the likelihood of finding the right compiler with the
10004 # least number of compilation attempt).
10005 # Beware that some tests are sensible to the order (for instance, we must
10006 # look for MinGW before looking for GCC3).
10007 # I used one compilation test per compiler with a #error to recognize
10008 # each compiler so that it works even when cross-compiling (let me know
10009 # if you know a better approach).
10010 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
10011 # como, edg, kcc, bck, mp, sw, tru, xlc
10012 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
10013 # the same defines as GCC's).
10014 for i in \
10015 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10016 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10017 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
10018 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
10019 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10020 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10021 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
10022 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
10023 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10024 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10025 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
10026 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
10027 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10028 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10029 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
10030 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
10031 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
10032 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10033 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
10034 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
10035 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
10036 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10037 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
10038 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
10039 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
10040 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10041 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
10042 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
10043 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
10044 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10045 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
10046 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
10047 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
10048 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10049 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
10050 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
10051 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
10052 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10053 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
10054 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
10055 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
10056 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10057 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
10058 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
10059 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10060 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10061 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
10062 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
10063 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10064 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10065 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
10066 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
10067 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10068 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10069 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
10070 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
10071 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10072 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10073 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
10074 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
10075 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
10076 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10077 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
10078 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
10079 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
10080 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
10081 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
10082 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
10083 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
10084 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
10085 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
10086 "defined __BORLANDC__ @ bcb" \
10087 "defined __ICC && (defined __unix || defined ) @ il" \
10088 "defined __ICL @ iw" \
10089 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
10090 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
10091 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
10092 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
10093 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
10094 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
10096 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
10097 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
10098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099 /* end confdefs.h. */
10101 #if $boost_tag_test
10102 /* OK */
10103 #else
10104 # error $boost_tag_test
10105 #endif
10108 main ()
10112 return 0;
10114 _ACEOF
10115 if ac_fn_cxx_try_compile "$LINENO"; then :
10116 boost_cv_lib_tag=$boost_tag; break
10118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10119 done
10120 ac_ext=cpp
10121 ac_cpp='$CXXCPP $CPPFLAGS'
10122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10125 case $boost_cv_lib_tag in #(
10126 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10127 # to "gcc41" for instance.
10128 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10129 gcc*)
10130 boost_tag_x=
10131 case $host_os in #(
10132 darwin*)
10133 if test $boost_major_version -ge 136; then
10134 # The `x' added in r46793 of Boost.
10135 boost_tag_x=x
10136 fi;;
10137 esac
10138 # We can specify multiple tags in this variable because it's used by
10139 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10140 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10141 ;; #(
10142 unknown)
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10144 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10145 boost_cv_lib_tag=
10147 esac
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10151 $as_echo "$boost_cv_lib_tag" >&6; }
10152 # Check whether --enable-static-boost was given.
10153 if test "${enable_static_boost+set}" = set; then :
10154 enableval=$enable_static_boost; enable_static_boost=yes
10155 else
10156 enable_static_boost=no
10159 # Check whether we do better use `mt' even though we weren't ask to.
10160 ac_ext=cpp
10161 ac_cpp='$CXXCPP $CPPFLAGS'
10162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10168 #if defined _REENTRANT || defined _MT || defined __MT__
10169 /* use -mt */
10170 #else
10171 # error MT not needed
10172 #endif
10175 main ()
10179 return 0;
10181 _ACEOF
10182 if ac_fn_cxx_try_compile "$LINENO"; then :
10183 boost_guess_use_mt=:
10184 else
10185 boost_guess_use_mt=false
10187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188 ac_ext=cpp
10189 ac_cpp='$CXXCPP $CPPFLAGS'
10190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10195 $as_echo_n "checking for Boost sources... " >&6; }
10196 mule_backup_CPPFLAGS="$CPPFLAGS"
10197 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10201 #include <boost/../libs/system/src/error_code.cpp>
10203 main ()
10207 return 0;
10210 _ACEOF
10211 if ac_fn_cxx_try_compile "$LINENO"; then :
10214 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10217 $as_echo "yes" >&6; }
10219 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10223 if test x"$boost_cv_inc_path" = xno; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10225 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10226 else
10227 ac_ext=cpp
10228 ac_cpp='$CXXCPP $CPPFLAGS'
10229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10232 if test x"$boost_cv_inc_path" = xno; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10234 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10235 else
10236 ac_ext=cpp
10237 ac_cpp='$CXXCPP $CPPFLAGS'
10238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10241 boost_save_CPPFLAGS=$CPPFLAGS
10242 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10243 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10244 if test "x$ac_cv_header_boost_system_error_code_hpp" = x""yes; then :
10246 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10248 else
10249 as_fn_error "cannot find boost/system/error_code.hpp" "$LINENO" 5
10253 CPPFLAGS=$boost_save_CPPFLAGS
10254 ac_ext=cpp
10255 ac_cpp='$CXXCPP $CPPFLAGS'
10256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10261 boost_save_CPPFLAGS=$CPPFLAGS
10262 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10264 $as_echo_n "checking for the Boost system library... " >&6; }
10265 if test "${boost_cv_lib_system+set}" = set; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 boost_cv_lib_system=no
10269 case "mt" in #(
10270 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
10271 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10272 (*) boost_mt=; boost_rtopt=mt;;
10273 esac
10274 if test $enable_static_boost = yes; then
10275 boost_rtopt="s$boost_rtopt"
10277 # Find the proper debug variant depending on what we've been asked to find.
10278 case $boost_rtopt in #(
10279 (*d*) boost_rt_d=$boost_rtopt;; #(
10280 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
10281 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10282 (*) boost_rt_d='-d';;
10283 esac
10284 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10285 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
10286 $boost_guess_use_mt && boost_mt=-mt
10287 # Look for the abs path the static archive.
10288 # $libext is computed by Libtool but let's make sure it's non empty.
10289 test -z "$libext" &&
10290 as_fn_error "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10291 boost_save_ac_objext=$ac_objext
10292 # Generate the test file.
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10295 #include <boost/system/error_code.hpp>
10298 main ()
10300 boost::system::error_code e; e.clear();
10302 return 0;
10304 _ACEOF
10305 if ac_fn_cxx_try_compile "$LINENO"; then :
10306 ac_objext=do_not_rm_me_plz
10307 else
10308 as_fn_error "cannot compile a test that uses Boost system" "$LINENO" 5
10310 rm -f core conftest.err conftest.$ac_objext
10311 ac_objext=$boost_save_ac_objext
10312 boost_failed_libs=
10313 # Don't bother to ident the following nested for loops, only the 2
10314 # innermost ones matter.
10315 for boost_lib_ in system; do
10316 for boost_tag_ in -$boost_cv_lib_tag ''; do
10317 for boost_ver_ in -$boost_cv_lib_version ''; do
10318 for boost_mt_ in $boost_mt -mt ''; do
10319 for boost_rtopt_ in $boost_rtopt '' -d; do
10320 for boost_lib in \
10321 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10322 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10323 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10324 boost_$boost_lib_$boost_tag_$boost_ver_
10326 # Avoid testing twice the same lib
10327 case $boost_failed_libs in #(
10328 (*@$boost_lib@*) continue;;
10329 esac
10330 # If with_boost is empty, we'll search in /lib first, which is not quite
10331 # right so instead we'll try to a location based on where the headers are.
10332 boost_tmp_lib=$with_boost
10333 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
10334 for boost_ldpath in "$boost_tmp_lib/lib" '' \
10335 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
10336 "$with_boost" C:/Boost/lib /lib*
10338 # Don't waste time with directories that don't exist.
10339 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
10340 continue
10342 boost_save_LDFLAGS=$LDFLAGS
10343 # Are we looking for a static library?
10344 case $boost_ldpath:$boost_rtopt_ in #(
10345 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
10346 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
10347 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
10348 (*) # No: use -lboost_foo to find the shared library.
10349 boost_cv_lib_system_LIBS="-l$boost_lib";;
10350 esac
10351 boost_save_LIBS=$LIBS
10352 LIBS="$boost_cv_lib_system_LIBS $LIBS"
10353 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
10354 rm -f conftest$ac_exeext
10355 boost_save_ac_ext=$ac_ext
10356 boost_use_source=:
10357 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10358 # tries to link the existing object file instead of compiling from source.
10359 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10360 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10361 if { { ac_try="$ac_link"
10362 case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10365 esac
10366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10367 $as_echo "$ac_try_echo"; } >&5
10368 (eval "$ac_link") 2>conftest.err
10369 ac_status=$?
10370 if test -s conftest.err; then
10371 grep -v '^ *+' conftest.err >conftest.er1
10372 cat conftest.er1 >&5
10373 mv -f conftest.er1 conftest.err
10375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10376 test $ac_status = 0; } && {
10377 test -z "$ac_cxx_werror_flag" ||
10378 test ! -s conftest.err
10379 } && test -s conftest$ac_exeext && {
10380 test "$cross_compiling" = yes ||
10381 $as_executable_p conftest$ac_exeext
10382 }; then :
10383 boost_cv_lib_system=yes
10384 else
10385 if $boost_use_source; then
10386 $as_echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10390 boost_cv_lib_system=no
10392 ac_objext=$boost_save_ac_objext
10393 ac_ext=$boost_save_ac_ext
10394 rm -f core conftest.err conftest_ipa8_conftest.oo \
10395 conftest$ac_exeext
10396 ac_objext=$boost_save_ac_objext
10397 LDFLAGS=$boost_save_LDFLAGS
10398 LIBS=$boost_save_LIBS
10399 if test x"$boost_cv_lib_system" = xyes; then
10400 # Check or used cached result of whether or not using -R or
10401 # -rpath makes sense. Some implementations of ld, such as for
10402 # Mac OSX, require -rpath but -R is the flag known to work on
10403 # other systems. https://github.com/tsuna/boost.m4/issues/19
10404 if test "${boost_cv_rpath_link_ldflag+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 case $boost_ldpath in
10408 '') # Nothing to do.
10409 boost_cv_rpath_link_ldflag=
10410 boost_rpath_link_ldflag_found=yes;;
10412 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10413 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10414 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10415 rm -f conftest$ac_exeext
10416 boost_save_ac_ext=$ac_ext
10417 boost_use_source=:
10418 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10419 # tries to link the existing object file instead of compiling from source.
10420 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10421 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10422 if { { ac_try="$ac_link"
10423 case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10426 esac
10427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10428 $as_echo "$ac_try_echo"; } >&5
10429 (eval "$ac_link") 2>conftest.err
10430 ac_status=$?
10431 if test -s conftest.err; then
10432 grep -v '^ *+' conftest.err >conftest.er1
10433 cat conftest.er1 >&5
10434 mv -f conftest.er1 conftest.err
10436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10437 test $ac_status = 0; } && {
10438 test -z "$ac_cxx_werror_flag" ||
10439 test ! -s conftest.err
10440 } && test -s conftest$ac_exeext && {
10441 test "$cross_compiling" = yes ||
10442 $as_executable_p conftest$ac_exeext
10443 }; then :
10444 boost_rpath_link_ldflag_found=yes
10445 break
10446 else
10447 if $boost_use_source; then
10448 $as_echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10452 boost_rpath_link_ldflag_found=no
10454 ac_objext=$boost_save_ac_objext
10455 ac_ext=$boost_save_ac_ext
10456 rm -f core conftest.err conftest_ipa8_conftest.oo \
10457 conftest$ac_exeext
10458 done
10460 esac
10461 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10462 as_fn_error "Unable to determine whether to use -R or -rpath" "$LINENO" 5
10464 LDFLAGS=$boost_save_LDFLAGS
10465 LIBS=$boost_save_LIBS
10469 test x"$boost_ldpath" != x &&
10470 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10471 boost_cv_lib_system_LDPATH="$boost_ldpath"
10472 break 7
10473 else
10474 boost_failed_libs="$boost_failed_libs@$boost_lib@"
10476 done
10477 done
10478 done
10479 done
10480 done
10481 done
10482 done # boost_lib_
10483 rm -f conftest.$ac_objext
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10487 $as_echo "$boost_cv_lib_system" >&6; }
10488 case $boost_cv_lib_system in #(
10489 (no) $as_echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 as_fn_error "cannot find the flags to link with Boost system" "$LINENO" 5
10494 esac
10495 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
10496 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
10497 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
10498 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
10499 CPPFLAGS=$boost_save_CPPFLAGS
10500 ac_ext=cpp
10501 ac_cpp='$CXXCPP $CPPFLAGS'
10502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10509 if test ${boost_cv_lib_system:-no} != yes; then :
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10512 Boost support has been disabled because Boost.System not found" >&5
10513 $as_echo "$as_me: WARNING:
10514 Boost support has been disabled because Boost.System not found" >&2;}
10515 _mule_warning_8=yes
10516 _mule_has_warnings=yes
10518 with_boost=disabled
10523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524 CPPFLAGS="$mule_backup_CPPFLAGS"
10525 if test x"$boost_cv_inc_path" = xno; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10528 Boost support has been disabled because Boost.Asio not found" >&5
10529 $as_echo "$as_me: WARNING:
10530 Boost support has been disabled because Boost.Asio not found" >&2;}
10531 _mule_warning_9=yes
10532 _mule_has_warnings=yes
10534 with_boost=disabled
10536 else
10537 ac_ext=cpp
10538 ac_cpp='$CXXCPP $CPPFLAGS'
10539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10542 boost_save_CPPFLAGS=$CPPFLAGS
10543 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10544 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10545 if test "x$ac_cv_header_boost_asio_hpp" = x""yes; then :
10547 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10549 else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10552 Boost support has been disabled because Boost.Asio not found" >&5
10553 $as_echo "$as_me: WARNING:
10554 Boost support has been disabled because Boost.Asio not found" >&2;}
10555 _mule_warning_10=yes
10556 _mule_has_warnings=yes
10558 with_boost=disabled
10563 CPPFLAGS=$boost_save_CPPFLAGS
10564 ac_ext=cpp
10565 ac_cpp='$CXXCPP $CPPFLAGS'
10566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10572 else
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10574 Boost support has been disabled because of insufficient Boost version." >&5
10575 $as_echo "$as_me: WARNING:
10576 Boost support has been disabled because of insufficient Boost version." >&2;}
10577 _mule_warning_11=yes
10578 _mule_has_warnings=yes
10588 # Ok, we have all needed libs, now checking for other stuff
10589 if test "$LEX" = "flex"; then :
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
10592 $as_echo_n "checking for extended flex capabilities... " >&6; }
10594 extended_flex=`flex --help | grep header-file`
10595 if test -n "$extended_flex"; then :
10596 HAVE_FLEX_EXTENDED=yes
10597 else
10598 HAVE_FLEX_EXTENDED=no
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
10601 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
10603 if test $HAVE_FLEX_EXTENDED = no; then :
10604 { $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
10605 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
10608 else
10609 HAVE_FLEX_EXTENDED=no
10613 # Checks for header files.
10614 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10615 # for constant arguments. Useless!
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10617 $as_echo_n "checking for working alloca.h... " >&6; }
10618 if test "${ac_cv_working_alloca_h+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10623 #include <alloca.h>
10625 main ()
10627 char *p = (char *) alloca (2 * sizeof (int));
10628 if (p) return 0;
10630 return 0;
10632 _ACEOF
10633 if ac_fn_cxx_try_link "$LINENO"; then :
10634 ac_cv_working_alloca_h=yes
10635 else
10636 ac_cv_working_alloca_h=no
10638 rm -f core conftest.err conftest.$ac_objext \
10639 conftest$ac_exeext conftest.$ac_ext
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10642 $as_echo "$ac_cv_working_alloca_h" >&6; }
10643 if test $ac_cv_working_alloca_h = yes; then
10645 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10650 $as_echo_n "checking for alloca... " >&6; }
10651 if test "${ac_cv_func_alloca_works+set}" = set; then :
10652 $as_echo_n "(cached) " >&6
10653 else
10654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h. */
10656 #ifdef __GNUC__
10657 # define alloca __builtin_alloca
10658 #else
10659 # ifdef _MSC_VER
10660 # include <malloc.h>
10661 # define alloca _alloca
10662 # else
10663 # ifdef HAVE_ALLOCA_H
10664 # include <alloca.h>
10665 # else
10666 # ifdef _AIX
10667 #pragma alloca
10668 # else
10669 # ifndef alloca /* predefined by HP cc +Olibcalls */
10670 char *alloca ();
10671 # endif
10672 # endif
10673 # endif
10674 # endif
10675 #endif
10678 main ()
10680 char *p = (char *) alloca (1);
10681 if (p) return 0;
10683 return 0;
10685 _ACEOF
10686 if ac_fn_cxx_try_link "$LINENO"; then :
10687 ac_cv_func_alloca_works=yes
10688 else
10689 ac_cv_func_alloca_works=no
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10695 $as_echo "$ac_cv_func_alloca_works" >&6; }
10697 if test $ac_cv_func_alloca_works = yes; then
10699 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10701 else
10702 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10703 # that cause trouble. Some versions do not even contain alloca or
10704 # contain a buggy version. If you still want to use their alloca,
10705 # use ar to extract alloca.o from them instead of compiling alloca.c.
10707 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10709 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10713 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10714 if test "${ac_cv_os_cray+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
10716 else
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10719 #if defined CRAY && ! defined CRAY2
10720 webecray
10721 #else
10722 wenotbecray
10723 #endif
10725 _ACEOF
10726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10727 $EGREP "webecray" >/dev/null 2>&1; then :
10728 ac_cv_os_cray=yes
10729 else
10730 ac_cv_os_cray=no
10732 rm -f conftest*
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10736 $as_echo "$ac_cv_os_cray" >&6; }
10737 if test $ac_cv_os_cray = yes; then
10738 for ac_func in _getb67 GETB67 getb67; do
10739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10740 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10741 eval as_val=\$$as_ac_var
10742 if test "x$as_val" = x""yes; then :
10744 cat >>confdefs.h <<_ACEOF
10745 #define CRAY_STACKSEG_END $ac_func
10746 _ACEOF
10748 break
10751 done
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10755 $as_echo_n "checking stack direction for C alloca... " >&6; }
10756 if test "${ac_cv_c_stack_direction+set}" = set; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 if test "$cross_compiling" = yes; then :
10760 ac_cv_c_stack_direction=0
10761 else
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 $ac_includes_default
10766 find_stack_direction ()
10768 static char *addr = 0;
10769 auto char dummy;
10770 if (addr == 0)
10772 addr = &dummy;
10773 return find_stack_direction ();
10775 else
10776 return (&dummy > addr) ? 1 : -1;
10780 main ()
10782 return find_stack_direction () < 0;
10784 _ACEOF
10785 if ac_fn_cxx_try_run "$LINENO"; then :
10786 ac_cv_c_stack_direction=1
10787 else
10788 ac_cv_c_stack_direction=-1
10790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10791 conftest.$ac_objext conftest.beam conftest.$ac_ext
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10796 $as_echo "$ac_cv_c_stack_direction" >&6; }
10797 cat >>confdefs.h <<_ACEOF
10798 #define STACK_DIRECTION $ac_cv_c_stack_direction
10799 _ACEOF
10804 ac_header_dirent=no
10805 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10806 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10808 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10814 #include <sys/types.h>
10815 #include <$ac_hdr>
10818 main ()
10820 if ((DIR *) 0)
10821 return 0;
10823 return 0;
10825 _ACEOF
10826 if ac_fn_cxx_try_compile "$LINENO"; then :
10827 eval "$as_ac_Header=yes"
10828 else
10829 eval "$as_ac_Header=no"
10831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10833 eval ac_res=\$$as_ac_Header
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10835 $as_echo "$ac_res" >&6; }
10836 eval as_val=\$$as_ac_Header
10837 if test "x$as_val" = x""yes; then :
10838 cat >>confdefs.h <<_ACEOF
10839 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10840 _ACEOF
10842 ac_header_dirent=$ac_hdr; break
10845 done
10846 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10847 if test $ac_header_dirent = dirent.h; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10849 $as_echo_n "checking for library containing opendir... " >&6; }
10850 if test "${ac_cv_search_opendir+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 ac_func_search_save_LIBS=$LIBS
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char opendir ();
10865 main ()
10867 return opendir ();
10869 return 0;
10871 _ACEOF
10872 for ac_lib in '' dir; do
10873 if test -z "$ac_lib"; then
10874 ac_res="none required"
10875 else
10876 ac_res=-l$ac_lib
10877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10879 if ac_fn_cxx_try_link "$LINENO"; then :
10880 ac_cv_search_opendir=$ac_res
10882 rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext
10884 if test "${ac_cv_search_opendir+set}" = set; then :
10885 break
10887 done
10888 if test "${ac_cv_search_opendir+set}" = set; then :
10890 else
10891 ac_cv_search_opendir=no
10893 rm conftest.$ac_ext
10894 LIBS=$ac_func_search_save_LIBS
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10897 $as_echo "$ac_cv_search_opendir" >&6; }
10898 ac_res=$ac_cv_search_opendir
10899 if test "$ac_res" != no; then :
10900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10904 else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10906 $as_echo_n "checking for library containing opendir... " >&6; }
10907 if test "${ac_cv_search_opendir+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 ac_func_search_save_LIBS=$LIBS
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10914 /* Override any GCC internal prototype to avoid an error.
10915 Use char because int might match the return type of a GCC
10916 builtin and then its argument prototype would still apply. */
10917 #ifdef __cplusplus
10918 extern "C"
10919 #endif
10920 char opendir ();
10922 main ()
10924 return opendir ();
10926 return 0;
10928 _ACEOF
10929 for ac_lib in '' x; do
10930 if test -z "$ac_lib"; then
10931 ac_res="none required"
10932 else
10933 ac_res=-l$ac_lib
10934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10936 if ac_fn_cxx_try_link "$LINENO"; then :
10937 ac_cv_search_opendir=$ac_res
10939 rm -f core conftest.err conftest.$ac_objext \
10940 conftest$ac_exeext
10941 if test "${ac_cv_search_opendir+set}" = set; then :
10942 break
10944 done
10945 if test "${ac_cv_search_opendir+set}" = set; then :
10947 else
10948 ac_cv_search_opendir=no
10950 rm conftest.$ac_ext
10951 LIBS=$ac_func_search_save_LIBS
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10954 $as_echo "$ac_cv_search_opendir" >&6; }
10955 ac_res=$ac_cv_search_opendir
10956 if test "$ac_res" != no; then :
10957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10964 $as_echo_n "checking for ANSI C header files... " >&6; }
10965 if test "${ac_cv_header_stdc+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10970 #include <stdlib.h>
10971 #include <stdarg.h>
10972 #include <string.h>
10973 #include <float.h>
10976 main ()
10980 return 0;
10982 _ACEOF
10983 if ac_fn_cxx_try_compile "$LINENO"; then :
10984 ac_cv_header_stdc=yes
10985 else
10986 ac_cv_header_stdc=no
10988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10990 if test $ac_cv_header_stdc = yes; then
10991 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10994 #include <string.h>
10996 _ACEOF
10997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10998 $EGREP "memchr" >/dev/null 2>&1; then :
11000 else
11001 ac_cv_header_stdc=no
11003 rm -f conftest*
11007 if test $ac_cv_header_stdc = yes; then
11008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11011 #include <stdlib.h>
11013 _ACEOF
11014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11015 $EGREP "free" >/dev/null 2>&1; then :
11017 else
11018 ac_cv_header_stdc=no
11020 rm -f conftest*
11024 if test $ac_cv_header_stdc = yes; then
11025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11026 if test "$cross_compiling" = yes; then :
11028 else
11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11031 #include <ctype.h>
11032 #include <stdlib.h>
11033 #if ((' ' & 0x0FF) == 0x020)
11034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11036 #else
11037 # define ISLOWER(c) \
11038 (('a' <= (c) && (c) <= 'i') \
11039 || ('j' <= (c) && (c) <= 'r') \
11040 || ('s' <= (c) && (c) <= 'z'))
11041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11042 #endif
11044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11046 main ()
11048 int i;
11049 for (i = 0; i < 256; i++)
11050 if (XOR (islower (i), ISLOWER (i))
11051 || toupper (i) != TOUPPER (i))
11052 return 2;
11053 return 0;
11055 _ACEOF
11056 if ac_fn_cxx_try_run "$LINENO"; then :
11058 else
11059 ac_cv_header_stdc=no
11061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11062 conftest.$ac_objext conftest.beam conftest.$ac_ext
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11068 $as_echo "$ac_cv_header_stdc" >&6; }
11069 if test $ac_cv_header_stdc = yes; then
11071 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11075 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
11076 do :
11077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11078 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11079 eval as_val=\$$as_ac_Header
11080 if test "x$as_val" = x""yes; then :
11081 cat >>confdefs.h <<_ACEOF
11082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11083 _ACEOF
11087 done
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11090 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11091 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11093 else
11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11095 /* end confdefs.h. */
11096 #include <sys/types.h>
11097 #include <sys/wait.h>
11098 #ifndef WEXITSTATUS
11099 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11100 #endif
11101 #ifndef WIFEXITED
11102 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11103 #endif
11106 main ()
11108 int s;
11109 wait (&s);
11110 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11112 return 0;
11114 _ACEOF
11115 if ac_fn_cxx_try_compile "$LINENO"; then :
11116 ac_cv_header_sys_wait_h=yes
11117 else
11118 ac_cv_header_sys_wait_h=no
11120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11123 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11124 if test $ac_cv_header_sys_wait_h = yes; then
11126 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11132 # Checks for typedefs, structures, and compiler characteristics.
11133 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11134 if test "x$ac_cv_type_mode_t" = x""yes; then :
11136 else
11138 cat >>confdefs.h <<_ACEOF
11139 #define mode_t int
11140 _ACEOF
11144 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11145 if test "x$ac_cv_type_off_t" = x""yes; then :
11147 else
11149 cat >>confdefs.h <<_ACEOF
11150 #define off_t long int
11151 _ACEOF
11155 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11156 if test "x$ac_cv_type_size_t" = x""yes; then :
11158 else
11160 cat >>confdefs.h <<_ACEOF
11161 #define size_t unsigned int
11162 _ACEOF
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11167 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11168 if test "${ac_cv_header_time+set}" = set; then :
11169 $as_echo_n "(cached) " >&6
11170 else
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173 #include <sys/types.h>
11174 #include <sys/time.h>
11175 #include <time.h>
11178 main ()
11180 if ((struct tm *) 0)
11181 return 0;
11183 return 0;
11185 _ACEOF
11186 if ac_fn_cxx_try_compile "$LINENO"; then :
11187 ac_cv_header_time=yes
11188 else
11189 ac_cv_header_time=no
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11194 $as_echo "$ac_cv_header_time" >&6; }
11195 if test $ac_cv_header_time = yes; then
11197 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11202 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11203 if test "${ac_cv_struct_tm+set}" = set; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11208 #include <sys/types.h>
11209 #include <time.h>
11212 main ()
11214 struct tm tm;
11215 int *p = &tm.tm_sec;
11216 return !p;
11218 return 0;
11220 _ACEOF
11221 if ac_fn_cxx_try_compile "$LINENO"; then :
11222 ac_cv_struct_tm=time.h
11223 else
11224 ac_cv_struct_tm=sys/time.h
11226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11229 $as_echo "$ac_cv_struct_tm" >&6; }
11230 if test $ac_cv_struct_tm = sys/time.h; then
11232 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11237 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11238 if test "${ac_cv_type_uid_t+set}" = set; then :
11239 $as_echo_n "(cached) " >&6
11240 else
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11243 #include <sys/types.h>
11245 _ACEOF
11246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11247 $EGREP "uid_t" >/dev/null 2>&1; then :
11248 ac_cv_type_uid_t=yes
11249 else
11250 ac_cv_type_uid_t=no
11252 rm -f conftest*
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11256 $as_echo "$ac_cv_type_uid_t" >&6; }
11257 if test $ac_cv_type_uid_t = no; then
11259 $as_echo "#define uid_t int" >>confdefs.h
11262 $as_echo "#define gid_t int" >>confdefs.h
11266 ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11267 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
11269 cat >>confdefs.h <<_ACEOF
11270 #define HAVE_PTRDIFF_T 1
11271 _ACEOF
11278 # Checks for library functions.
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11280 $as_echo_n "checking whether closedir returns void... " >&6; }
11281 if test "${ac_cv_func_closedir_void+set}" = set; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 if test "$cross_compiling" = yes; then :
11285 ac_cv_func_closedir_void=yes
11286 else
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289 $ac_includes_default
11290 #include <$ac_header_dirent>
11291 #ifndef __cplusplus
11292 int closedir ();
11293 #endif
11296 main ()
11298 return closedir (opendir (".")) != 0;
11300 return 0;
11302 _ACEOF
11303 if ac_fn_cxx_try_run "$LINENO"; then :
11304 ac_cv_func_closedir_void=no
11305 else
11306 ac_cv_func_closedir_void=yes
11308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11309 conftest.$ac_objext conftest.beam conftest.$ac_ext
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11314 $as_echo "$ac_cv_func_closedir_void" >&6; }
11315 if test $ac_cv_func_closedir_void = yes; then
11317 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11321 if test $ac_cv_c_compiler_gnu = yes; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11323 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11324 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 ac_pattern="Autoconf.*'x'"
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h. */
11330 #include <sgtty.h>
11331 Autoconf TIOCGETP
11332 _ACEOF
11333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11334 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11335 ac_cv_prog_gcc_traditional=yes
11336 else
11337 ac_cv_prog_gcc_traditional=no
11339 rm -f conftest*
11342 if test $ac_cv_prog_gcc_traditional = no; then
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345 #include <termio.h>
11346 Autoconf TCGETA
11347 _ACEOF
11348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11349 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11350 ac_cv_prog_gcc_traditional=yes
11352 rm -f conftest*
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11357 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11358 if test $ac_cv_prog_gcc_traditional = yes; then
11359 CC="$CC -traditional"
11363 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11364 if test "x$ac_cv_type_pid_t" = x""yes; then :
11366 else
11368 cat >>confdefs.h <<_ACEOF
11369 #define pid_t int
11370 _ACEOF
11374 for ac_header in vfork.h
11375 do :
11376 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11377 if test "x$ac_cv_header_vfork_h" = x""yes; then :
11378 cat >>confdefs.h <<_ACEOF
11379 #define HAVE_VFORK_H 1
11380 _ACEOF
11384 done
11386 for ac_func in fork vfork
11387 do :
11388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11389 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11390 eval as_val=\$$as_ac_var
11391 if test "x$as_val" = x""yes; then :
11392 cat >>confdefs.h <<_ACEOF
11393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11394 _ACEOF
11397 done
11399 if test "x$ac_cv_func_fork" = xyes; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11401 $as_echo_n "checking for working fork... " >&6; }
11402 if test "${ac_cv_func_fork_works+set}" = set; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 if test "$cross_compiling" = yes; then :
11406 ac_cv_func_fork_works=cross
11407 else
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11410 $ac_includes_default
11412 main ()
11415 /* By Ruediger Kuhlmann. */
11416 return fork () < 0;
11419 return 0;
11421 _ACEOF
11422 if ac_fn_cxx_try_run "$LINENO"; then :
11423 ac_cv_func_fork_works=yes
11424 else
11425 ac_cv_func_fork_works=no
11427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11428 conftest.$ac_objext conftest.beam conftest.$ac_ext
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11433 $as_echo "$ac_cv_func_fork_works" >&6; }
11435 else
11436 ac_cv_func_fork_works=$ac_cv_func_fork
11438 if test "x$ac_cv_func_fork_works" = xcross; then
11439 case $host in
11440 *-*-amigaos* | *-*-msdosdjgpp*)
11441 # Override, as these systems have only a dummy fork() stub
11442 ac_cv_func_fork_works=no
11445 ac_cv_func_fork_works=yes
11447 esac
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11449 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11451 ac_cv_func_vfork_works=$ac_cv_func_vfork
11452 if test "x$ac_cv_func_vfork" = xyes; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11454 $as_echo_n "checking for working vfork... " >&6; }
11455 if test "${ac_cv_func_vfork_works+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 if test "$cross_compiling" = yes; then :
11459 ac_cv_func_vfork_works=cross
11460 else
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11463 /* Thanks to Paul Eggert for this test. */
11464 $ac_includes_default
11465 #include <sys/wait.h>
11466 #ifdef HAVE_VFORK_H
11467 # include <vfork.h>
11468 #endif
11469 /* On some sparc systems, changes by the child to local and incoming
11470 argument registers are propagated back to the parent. The compiler
11471 is told about this with #include <vfork.h>, but some compilers
11472 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11473 static variable whose address is put into a register that is
11474 clobbered by the vfork. */
11475 static void
11476 #ifdef __cplusplus
11477 sparc_address_test (int arg)
11478 # else
11479 sparc_address_test (arg) int arg;
11480 #endif
11482 static pid_t child;
11483 if (!child) {
11484 child = vfork ();
11485 if (child < 0) {
11486 perror ("vfork");
11487 _exit(2);
11489 if (!child) {
11490 arg = getpid();
11491 write(-1, "", 0);
11492 _exit (arg);
11498 main ()
11500 pid_t parent = getpid ();
11501 pid_t child;
11503 sparc_address_test (0);
11505 child = vfork ();
11507 if (child == 0) {
11508 /* Here is another test for sparc vfork register problems. This
11509 test uses lots of local variables, at least as many local
11510 variables as main has allocated so far including compiler
11511 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11512 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11513 reuse the register of parent for one of the local variables,
11514 since it will think that parent can't possibly be used any more
11515 in this routine. Assigning to the local variable will thus
11516 munge parent in the parent process. */
11517 pid_t
11518 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11519 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11520 /* Convince the compiler that p..p7 are live; otherwise, it might
11521 use the same hardware register for all 8 local variables. */
11522 if (p != p1 || p != p2 || p != p3 || p != p4
11523 || p != p5 || p != p6 || p != p7)
11524 _exit(1);
11526 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11527 from child file descriptors. If the child closes a descriptor
11528 before it execs or exits, this munges the parent's descriptor
11529 as well. Test for this by closing stdout in the child. */
11530 _exit(close(fileno(stdout)) != 0);
11531 } else {
11532 int status;
11533 struct stat st;
11535 while (wait(&status) != child)
11537 return (
11538 /* Was there some problem with vforking? */
11539 child < 0
11541 /* Did the child fail? (This shouldn't happen.) */
11542 || status
11544 /* Did the vfork/compiler bug occur? */
11545 || parent != getpid()
11547 /* Did the file descriptor bug occur? */
11548 || fstat(fileno(stdout), &st) != 0
11552 _ACEOF
11553 if ac_fn_cxx_try_run "$LINENO"; then :
11554 ac_cv_func_vfork_works=yes
11555 else
11556 ac_cv_func_vfork_works=no
11558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11559 conftest.$ac_objext conftest.beam conftest.$ac_ext
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11564 $as_echo "$ac_cv_func_vfork_works" >&6; }
11567 if test "x$ac_cv_func_fork_works" = xcross; then
11568 ac_cv_func_vfork_works=$ac_cv_func_vfork
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11570 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11573 if test "x$ac_cv_func_vfork_works" = xyes; then
11575 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11577 else
11579 $as_echo "#define vfork fork" >>confdefs.h
11582 if test "x$ac_cv_func_fork_works" = xyes; then
11584 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11589 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11590 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
11592 else
11593 rm -f conftest.sym conftest.file
11594 echo >conftest.file
11595 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11596 if test "$cross_compiling" = yes; then :
11597 ac_cv_func_lstat_dereferences_slashed_symlink=no
11598 else
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11601 $ac_includes_default
11603 main ()
11605 struct stat sbuf;
11606 /* Linux will dereference the symlink and fail, as required by POSIX.
11607 That is better in the sense that it means we will not
11608 have to compile and use the lstat wrapper. */
11609 return lstat ("conftest.sym/", &sbuf) == 0;
11611 return 0;
11613 _ACEOF
11614 if ac_fn_cxx_try_run "$LINENO"; then :
11615 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11616 else
11617 ac_cv_func_lstat_dereferences_slashed_symlink=no
11619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11620 conftest.$ac_objext conftest.beam conftest.$ac_ext
11623 else
11624 # If the `ln -s' command failed, then we probably don't even
11625 # have an lstat function.
11626 ac_cv_func_lstat_dereferences_slashed_symlink=no
11628 rm -f conftest.sym conftest.file
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11632 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11634 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11636 cat >>confdefs.h <<_ACEOF
11637 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11638 _ACEOF
11641 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11642 case " $LIBOBJS " in
11643 *" lstat.$ac_objext "* ) ;;
11644 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11646 esac
11650 if test x$SYS != xwin32; then :
11652 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11653 # -lseq on Dynix/PTX, -lgen on Unixware.
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11655 $as_echo_n "checking for library containing getmntent... " >&6; }
11656 if test "${ac_cv_search_getmntent+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 ac_func_search_save_LIBS=$LIBS
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11663 /* Override any GCC internal prototype to avoid an error.
11664 Use char because int might match the return type of a GCC
11665 builtin and then its argument prototype would still apply. */
11666 #ifdef __cplusplus
11667 extern "C"
11668 #endif
11669 char getmntent ();
11671 main ()
11673 return getmntent ();
11675 return 0;
11677 _ACEOF
11678 for ac_lib in '' sun seq gen; do
11679 if test -z "$ac_lib"; then
11680 ac_res="none required"
11681 else
11682 ac_res=-l$ac_lib
11683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11685 if ac_fn_cxx_try_link "$LINENO"; then :
11686 ac_cv_search_getmntent=$ac_res
11688 rm -f core conftest.err conftest.$ac_objext \
11689 conftest$ac_exeext
11690 if test "${ac_cv_search_getmntent+set}" = set; then :
11691 break
11693 done
11694 if test "${ac_cv_search_getmntent+set}" = set; then :
11696 else
11697 ac_cv_search_getmntent=no
11699 rm conftest.$ac_ext
11700 LIBS=$ac_func_search_save_LIBS
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11703 $as_echo "$ac_cv_search_getmntent" >&6; }
11704 ac_res=$ac_cv_search_getmntent
11705 if test "$ac_res" != no; then :
11706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11707 ac_cv_func_getmntent=yes
11709 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11711 else
11712 ac_cv_func_getmntent=no
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11717 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11718 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
11719 $as_echo_n "(cached) " >&6
11720 else
11721 if test "$cross_compiling" = yes; then :
11722 ac_cv_func_lstat_empty_string_bug=yes
11723 else
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11726 $ac_includes_default
11728 main ()
11730 struct stat sbuf;
11731 return lstat ("", &sbuf) == 0;
11733 return 0;
11735 _ACEOF
11736 if ac_fn_cxx_try_run "$LINENO"; then :
11737 ac_cv_func_lstat_empty_string_bug=no
11738 else
11739 ac_cv_func_lstat_empty_string_bug=yes
11741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11742 conftest.$ac_objext conftest.beam conftest.$ac_ext
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11747 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11748 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11749 case " $LIBOBJS " in
11750 *" lstat.$ac_objext "* ) ;;
11751 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11753 esac
11756 cat >>confdefs.h <<_ACEOF
11757 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11758 _ACEOF
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11763 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11764 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11765 $as_echo_n "(cached) " >&6
11766 else
11767 rm -f conftest.sym conftest.file
11768 echo >conftest.file
11769 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11770 if test "$cross_compiling" = yes; then :
11771 ac_cv_func_lstat_dereferences_slashed_symlink=no
11772 else
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775 $ac_includes_default
11777 main ()
11779 struct stat sbuf;
11780 /* Linux will dereference the symlink and fail, as required by POSIX.
11781 That is better in the sense that it means we will not
11782 have to compile and use the lstat wrapper. */
11783 return lstat ("conftest.sym/", &sbuf) == 0;
11785 return 0;
11787 _ACEOF
11788 if ac_fn_cxx_try_run "$LINENO"; then :
11789 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11790 else
11791 ac_cv_func_lstat_dereferences_slashed_symlink=no
11793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11794 conftest.$ac_objext conftest.beam conftest.$ac_ext
11797 else
11798 # If the `ln -s' command failed, then we probably don't even
11799 # have an lstat function.
11800 ac_cv_func_lstat_dereferences_slashed_symlink=no
11802 rm -f conftest.sym conftest.file
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11806 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11808 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11810 cat >>confdefs.h <<_ACEOF
11811 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11812 _ACEOF
11815 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11816 case " $LIBOBJS " in
11817 *" lstat.$ac_objext "* ) ;;
11818 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11820 esac
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11827 $as_echo_n "checking for working memcmp... " >&6; }
11828 if test "${ac_cv_func_memcmp_working+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 if test "$cross_compiling" = yes; then :
11832 ac_cv_func_memcmp_working=no
11833 else
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11836 $ac_includes_default
11838 main ()
11841 /* Some versions of memcmp are not 8-bit clean. */
11842 char c0 = '\100', c1 = '\200', c2 = '\201';
11843 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11844 return 1;
11846 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11847 or more and with at least one buffer not starting on a 4-byte boundary.
11848 William Lewis provided this test program. */
11850 char foo[21];
11851 char bar[21];
11852 int i;
11853 for (i = 0; i < 4; i++)
11855 char *a = foo + i;
11856 char *b = bar + i;
11857 strcpy (a, "--------01111111");
11858 strcpy (b, "--------10000000");
11859 if (memcmp (a, b, 16) >= 0)
11860 return 1;
11862 return 0;
11866 return 0;
11868 _ACEOF
11869 if ac_fn_cxx_try_run "$LINENO"; then :
11870 ac_cv_func_memcmp_working=yes
11871 else
11872 ac_cv_func_memcmp_working=no
11874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11875 conftest.$ac_objext conftest.beam conftest.$ac_ext
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11880 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11881 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11882 *" memcmp.$ac_objext "* ) ;;
11883 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11885 esac
11888 for ac_header in sys/select.h sys/socket.h
11889 do :
11890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11891 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11892 eval as_val=\$$as_ac_Header
11893 if test "x$as_val" = x""yes; then :
11894 cat >>confdefs.h <<_ACEOF
11895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11896 _ACEOF
11900 done
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11903 $as_echo_n "checking types of arguments for select... " >&6; }
11904 if test "${ac_cv_func_select_args+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
11906 else
11907 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11908 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11909 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11912 $ac_includes_default
11913 #ifdef HAVE_SYS_SELECT_H
11914 # include <sys/select.h>
11915 #endif
11916 #ifdef HAVE_SYS_SOCKET_H
11917 # include <sys/socket.h>
11918 #endif
11921 main ()
11923 extern int select ($ac_arg1,
11924 $ac_arg234, $ac_arg234, $ac_arg234,
11925 $ac_arg5);
11927 return 0;
11929 _ACEOF
11930 if ac_fn_cxx_try_compile "$LINENO"; then :
11931 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934 done
11935 done
11936 done
11937 # Provide a safe default value.
11938 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11942 $as_echo "$ac_cv_func_select_args" >&6; }
11943 ac_save_IFS=$IFS; IFS=','
11944 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11945 IFS=$ac_save_IFS
11946 shift
11948 cat >>confdefs.h <<_ACEOF
11949 #define SELECT_TYPE_ARG1 $1
11950 _ACEOF
11953 cat >>confdefs.h <<_ACEOF
11954 #define SELECT_TYPE_ARG234 ($2)
11955 _ACEOF
11958 cat >>confdefs.h <<_ACEOF
11959 #define SELECT_TYPE_ARG5 ($3)
11960 _ACEOF
11962 rm -f conftest*
11964 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 ac_cv_func_setvbuf_reversed=no
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11972 $as_echo_n "checking return type of signal handlers... " >&6; }
11973 if test "${ac_cv_type_signal+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11978 #include <sys/types.h>
11979 #include <signal.h>
11982 main ()
11984 return *(signal (0, 0)) (0) == 1;
11986 return 0;
11988 _ACEOF
11989 if ac_fn_cxx_try_compile "$LINENO"; then :
11990 ac_cv_type_signal=int
11991 else
11992 ac_cv_type_signal=void
11994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11997 $as_echo "$ac_cv_type_signal" >&6; }
11999 cat >>confdefs.h <<_ACEOF
12000 #define RETSIGTYPE $ac_cv_type_signal
12001 _ACEOF
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
12005 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
12006 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12008 else
12009 if test "$cross_compiling" = yes; then :
12010 ac_cv_func_stat_empty_string_bug=yes
12011 else
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12014 $ac_includes_default
12016 main ()
12018 struct stat sbuf;
12019 return stat ("", &sbuf) == 0;
12021 return 0;
12023 _ACEOF
12024 if ac_fn_cxx_try_run "$LINENO"; then :
12025 ac_cv_func_stat_empty_string_bug=no
12026 else
12027 ac_cv_func_stat_empty_string_bug=yes
12029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12030 conftest.$ac_objext conftest.beam conftest.$ac_ext
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12035 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12036 if test $ac_cv_func_stat_empty_string_bug = yes; then
12037 case " $LIBOBJS " in
12038 *" stat.$ac_objext "* ) ;;
12039 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
12041 esac
12044 cat >>confdefs.h <<_ACEOF
12045 #define HAVE_STAT_EMPTY_STRING_BUG 1
12046 _ACEOF
12050 for ac_func in strftime
12051 do :
12052 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12053 if test "x$ac_cv_func_strftime" = x""yes; then :
12054 cat >>confdefs.h <<_ACEOF
12055 #define HAVE_STRFTIME 1
12056 _ACEOF
12058 else
12059 # strftime is in -lintl on SCO UNIX.
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12061 $as_echo_n "checking for strftime in -lintl... " >&6; }
12062 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 ac_check_lib_save_LIBS=$LIBS
12066 LIBS="-lintl $LIBS"
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12070 /* Override any GCC internal prototype to avoid an error.
12071 Use char because int might match the return type of a GCC
12072 builtin and then its argument prototype would still apply. */
12073 #ifdef __cplusplus
12074 extern "C"
12075 #endif
12076 char strftime ();
12078 main ()
12080 return strftime ();
12082 return 0;
12084 _ACEOF
12085 if ac_fn_cxx_try_link "$LINENO"; then :
12086 ac_cv_lib_intl_strftime=yes
12087 else
12088 ac_cv_lib_intl_strftime=no
12090 rm -f core conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12095 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12096 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12097 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12099 LIBS="-lintl $LIBS"
12103 done
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12106 $as_echo_n "checking for working strtod... " >&6; }
12107 if test "${ac_cv_func_strtod+set}" = set; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 if test "$cross_compiling" = yes; then :
12111 ac_cv_func_strtod=no
12112 else
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12116 $ac_includes_default
12117 #ifndef strtod
12118 double strtod ();
12119 #endif
12121 main()
12124 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12125 char *string = " +69";
12126 char *term;
12127 double value;
12128 value = strtod (string, &term);
12129 if (value != 69 || term != (string + 4))
12130 return 1;
12134 /* Under Solaris 2.4, strtod returns the wrong value for the
12135 terminating character under some conditions. */
12136 char *string = "NaN";
12137 char *term;
12138 strtod (string, &term);
12139 if (term != string && *(term - 1) == 0)
12140 return 1;
12142 return 0;
12145 _ACEOF
12146 if ac_fn_cxx_try_run "$LINENO"; then :
12147 ac_cv_func_strtod=yes
12148 else
12149 ac_cv_func_strtod=no
12151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12152 conftest.$ac_objext conftest.beam conftest.$ac_ext
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12157 $as_echo "$ac_cv_func_strtod" >&6; }
12158 if test $ac_cv_func_strtod = no; then
12159 case " $LIBOBJS " in
12160 *" strtod.$ac_objext "* ) ;;
12161 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12163 esac
12165 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
12166 if test "x$ac_cv_func_pow" = x""yes; then :
12170 if test $ac_cv_func_pow = no; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12172 $as_echo_n "checking for pow in -lm... " >&6; }
12173 if test "${ac_cv_lib_m_pow+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 ac_check_lib_save_LIBS=$LIBS
12177 LIBS="-lm $LIBS"
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12181 /* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12184 #ifdef __cplusplus
12185 extern "C"
12186 #endif
12187 char pow ();
12189 main ()
12191 return pow ();
12193 return 0;
12195 _ACEOF
12196 if ac_fn_cxx_try_link "$LINENO"; then :
12197 ac_cv_lib_m_pow=yes
12198 else
12199 ac_cv_lib_m_pow=no
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12206 $as_echo "$ac_cv_lib_m_pow" >&6; }
12207 if test "x$ac_cv_lib_m_pow" = x""yes; then :
12208 POW_LIB=-lm
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12211 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12218 for ac_func in vprintf
12219 do :
12220 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12221 if test "x$ac_cv_func_vprintf" = x""yes; then :
12222 cat >>confdefs.h <<_ACEOF
12223 #define HAVE_VPRINTF 1
12224 _ACEOF
12226 ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12227 if test "x$ac_cv_func__doprnt" = x""yes; then :
12229 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12234 done
12237 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12240 configure cannot check whether malloc() and realloc() are GNU libc
12241 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12242 run configure with the --without-gnu-malloc switch." >&5
12243 $as_echo "$as_me: WARNING:
12244 configure cannot check whether malloc() and realloc() are GNU libc
12245 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12246 run configure with the --without-gnu-malloc switch." >&2;}
12247 _mule_warning_12=yes
12248 _mule_has_warnings=yes
12250 ac_cv_func_malloc_0_nonnull=yes
12251 ac_cv_func_realloc_0_nonnull=yes
12254 for ac_header in stdlib.h
12255 do :
12256 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12257 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12258 cat >>confdefs.h <<_ACEOF
12259 #define HAVE_STDLIB_H 1
12260 _ACEOF
12264 done
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12267 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12268 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 if test "$cross_compiling" = yes; then :
12272 ac_cv_func_malloc_0_nonnull=no
12273 else
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12276 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12277 # include <stdlib.h>
12278 #else
12279 char *malloc ();
12280 #endif
12283 main ()
12285 return ! malloc (0);
12287 return 0;
12289 _ACEOF
12290 if ac_fn_cxx_try_run "$LINENO"; then :
12291 ac_cv_func_malloc_0_nonnull=yes
12292 else
12293 ac_cv_func_malloc_0_nonnull=no
12295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12296 conftest.$ac_objext conftest.beam conftest.$ac_ext
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12301 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12302 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12304 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12306 else
12307 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12309 case " $LIBOBJS " in
12310 *" malloc.$ac_objext "* ) ;;
12311 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12313 esac
12316 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12321 for ac_header in stdlib.h
12322 do :
12323 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12324 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12325 cat >>confdefs.h <<_ACEOF
12326 #define HAVE_STDLIB_H 1
12327 _ACEOF
12331 done
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12334 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12335 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 if test "$cross_compiling" = yes; then :
12339 ac_cv_func_realloc_0_nonnull=no
12340 else
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12344 # include <stdlib.h>
12345 #else
12346 char *realloc ();
12347 #endif
12350 main ()
12352 return ! realloc (0, 0);
12354 return 0;
12356 _ACEOF
12357 if ac_fn_cxx_try_run "$LINENO"; then :
12358 ac_cv_func_realloc_0_nonnull=yes
12359 else
12360 ac_cv_func_realloc_0_nonnull=no
12362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12363 conftest.$ac_objext conftest.beam conftest.$ac_ext
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12368 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12369 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12371 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12373 else
12374 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12376 case " $LIBOBJS " in
12377 *" realloc.$ac_objext "* ) ;;
12378 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12380 esac
12383 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12388 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
12389 do :
12390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12391 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12392 eval as_val=\$$as_ac_var
12393 if test "x$as_val" = x""yes; then :
12394 cat >>confdefs.h <<_ACEOF
12395 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12396 _ACEOF
12399 done
12406 for ac_header in $ac_header_list
12407 do :
12408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12409 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12411 eval as_val=\$$as_ac_Header
12412 if test "x$as_val" = x""yes; then :
12413 cat >>confdefs.h <<_ACEOF
12414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12415 _ACEOF
12419 done
12427 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12429 # Check whether --enable-mmap was given.
12430 if test "${enable_mmap+set}" = set; then :
12431 enableval=$enable_mmap;
12438 if test ${enable_mmap:-no} = yes; then :
12440 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12443 for ac_func in getpagesize
12444 do :
12445 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12446 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12447 cat >>confdefs.h <<_ACEOF
12448 #define HAVE_GETPAGESIZE 1
12449 _ACEOF
12452 done
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12455 $as_echo_n "checking for working mmap... " >&6; }
12456 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12457 $as_echo_n "(cached) " >&6
12458 else
12459 if test "$cross_compiling" = yes; then :
12460 ac_cv_func_mmap_fixed_mapped=no
12461 else
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12464 $ac_includes_default
12465 /* malloc might have been renamed as rpl_malloc. */
12466 #undef malloc
12468 /* Thanks to Mike Haertel and Jim Avera for this test.
12469 Here is a matrix of mmap possibilities:
12470 mmap private not fixed
12471 mmap private fixed at somewhere currently unmapped
12472 mmap private fixed at somewhere already mapped
12473 mmap shared not fixed
12474 mmap shared fixed at somewhere currently unmapped
12475 mmap shared fixed at somewhere already mapped
12476 For private mappings, we should verify that changes cannot be read()
12477 back from the file, nor mmap's back from the file at a different
12478 address. (There have been systems where private was not correctly
12479 implemented like the infamous i386 svr4.0, and systems where the
12480 VM page cache was not coherent with the file system buffer cache
12481 like early versions of FreeBSD and possibly contemporary NetBSD.)
12482 For shared mappings, we should conversely verify that changes get
12483 propagated back to all the places they're supposed to be.
12485 Grep wants private fixed already mapped.
12486 The main things grep needs to know about mmap are:
12487 * does it exist and is it safe to write into the mmap'd area
12488 * how to use it (BSD variants) */
12490 #include <fcntl.h>
12491 #include <sys/mman.h>
12493 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12494 char *malloc ();
12495 #endif
12497 /* This mess was copied from the GNU getpagesize.h. */
12498 #ifndef HAVE_GETPAGESIZE
12499 # ifdef _SC_PAGESIZE
12500 # define getpagesize() sysconf(_SC_PAGESIZE)
12501 # else /* no _SC_PAGESIZE */
12502 # ifdef HAVE_SYS_PARAM_H
12503 # include <sys/param.h>
12504 # ifdef EXEC_PAGESIZE
12505 # define getpagesize() EXEC_PAGESIZE
12506 # else /* no EXEC_PAGESIZE */
12507 # ifdef NBPG
12508 # define getpagesize() NBPG * CLSIZE
12509 # ifndef CLSIZE
12510 # define CLSIZE 1
12511 # endif /* no CLSIZE */
12512 # else /* no NBPG */
12513 # ifdef NBPC
12514 # define getpagesize() NBPC
12515 # else /* no NBPC */
12516 # ifdef PAGESIZE
12517 # define getpagesize() PAGESIZE
12518 # endif /* PAGESIZE */
12519 # endif /* no NBPC */
12520 # endif /* no NBPG */
12521 # endif /* no EXEC_PAGESIZE */
12522 # else /* no HAVE_SYS_PARAM_H */
12523 # define getpagesize() 8192 /* punt totally */
12524 # endif /* no HAVE_SYS_PARAM_H */
12525 # endif /* no _SC_PAGESIZE */
12527 #endif /* no HAVE_GETPAGESIZE */
12530 main ()
12532 char *data, *data2, *data3;
12533 int i, pagesize;
12534 int fd, fd2;
12536 pagesize = getpagesize ();
12538 /* First, make a file with some known garbage in it. */
12539 data = (char *) malloc (pagesize);
12540 if (!data)
12541 return 1;
12542 for (i = 0; i < pagesize; ++i)
12543 *(data + i) = rand ();
12544 umask (0);
12545 fd = creat ("conftest.mmap", 0600);
12546 if (fd < 0)
12547 return 2;
12548 if (write (fd, data, pagesize) != pagesize)
12549 return 3;
12550 close (fd);
12552 /* Next, check that the tail of a page is zero-filled. File must have
12553 non-zero length, otherwise we risk SIGBUS for entire page. */
12554 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12555 if (fd2 < 0)
12556 return 4;
12557 data2 = (char *) "";
12558 if (write (fd2, data2, 1) != 1)
12559 return 5;
12560 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12561 if (data2 == MAP_FAILED)
12562 return 6;
12563 for (i = 0; i < pagesize; ++i)
12564 if (*(data2 + i))
12565 return 7;
12566 close (fd2);
12567 if (munmap (data2, pagesize))
12568 return 8;
12570 /* Next, try to mmap the file at a fixed address which already has
12571 something else allocated at it. If we can, also make sure that
12572 we see the same garbage. */
12573 fd = open ("conftest.mmap", O_RDWR);
12574 if (fd < 0)
12575 return 9;
12576 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12577 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12578 return 10;
12579 for (i = 0; i < pagesize; ++i)
12580 if (*(data + i) != *(data2 + i))
12581 return 11;
12583 /* Finally, make sure that changes to the mapped area do not
12584 percolate back to the file as seen by read(). (This is a bug on
12585 some variants of i386 svr4.0.) */
12586 for (i = 0; i < pagesize; ++i)
12587 *(data2 + i) = *(data2 + i) + 1;
12588 data3 = (char *) malloc (pagesize);
12589 if (!data3)
12590 return 12;
12591 if (read (fd, data3, pagesize) != pagesize)
12592 return 13;
12593 for (i = 0; i < pagesize; ++i)
12594 if (*(data + i) != *(data3 + i))
12595 return 14;
12596 close (fd);
12597 return 0;
12599 _ACEOF
12600 if ac_fn_cxx_try_run "$LINENO"; then :
12601 ac_cv_func_mmap_fixed_mapped=yes
12602 else
12603 ac_cv_func_mmap_fixed_mapped=no
12605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12606 conftest.$ac_objext conftest.beam conftest.$ac_ext
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12611 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12612 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12614 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12617 rm -f conftest.mmap conftest.txt
12619 for ac_func in munmap sysconf
12620 do :
12621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12622 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12623 eval as_val=\$$as_ac_var
12624 if test "x$as_val" = x""yes; then :
12625 cat >>confdefs.h <<_ACEOF
12626 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12627 _ACEOF
12630 done
12632 if test $ac_cv_func_sysconf = yes; then :
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12635 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h. */
12640 #include <unistd.h>
12643 main ()
12646 return sysconf(_SC_PAGESIZE);
12649 return 0;
12652 _ACEOF
12653 if ac_fn_cxx_try_link "$LINENO"; then :
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12656 $as_echo "_SC_PAGESIZE" >&6; }
12658 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12661 else
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h. */
12667 #include <unistd.h>
12670 main ()
12673 return sysconf(_SC_PAGE_SIZE);
12676 return 0;
12679 _ACEOF
12680 if ac_fn_cxx_try_link "$LINENO"; then :
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12683 $as_echo "_SC_PAGE_SIZE" >&6; }
12685 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12688 else
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12691 $as_echo "none" >&6; }
12694 rm -f core conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext conftest.$ac_ext
12698 rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12708 # Look for a way to preallocate disk space for files.
12709 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12712 $as_echo_n "checking for fallocate... " >&6; }
12713 mule_backup_CPPFLAGS="$CPPFLAGS"
12714 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12719 #ifndef _GNU_SOURCE
12720 # define _GNU_SOURCE
12721 #endif
12722 #ifdef HAVE_FCNTL_H
12723 # include <fcntl.h>
12724 #endif
12725 #include <linux/falloc.h>
12728 main ()
12731 fallocate(0, 0, 0, 0);
12734 return 0;
12737 _ACEOF
12738 if ac_fn_cxx_try_link "$LINENO"; then :
12741 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12744 $as_echo "yes" >&6; }
12746 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12752 rm -f core conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
12754 CPPFLAGS="$mule_backup_CPPFLAGS"
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12758 $as_echo_n "checking for SYS_fallocate... " >&6; }
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12763 #include <sys/syscall.h>
12764 #include <sys/types.h>
12765 #include <unistd.h>
12768 main ()
12771 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12774 return 0;
12777 _ACEOF
12778 if ac_fn_cxx_try_link "$LINENO"; then :
12781 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12784 $as_echo "yes" >&6; }
12786 else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789 $as_echo "no" >&6; }
12792 rm -f core conftest.err conftest.$ac_objext \
12793 conftest$ac_exeext conftest.$ac_ext
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12796 $as_echo_n "checking for posix_fallocate... " >&6; }
12797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12798 /* end confdefs.h. */
12801 #define _XOPEN_SOURCE 600
12802 #include <stdlib.h>
12803 #ifdef HAVE_FCNTL_H
12804 # include <fcntl.h>
12805 #endif
12808 main ()
12811 posix_fallocate(0, 0, 0);
12814 return 0;
12817 _ACEOF
12818 if ac_fn_cxx_try_link "$LINENO"; then :
12821 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12824 $as_echo "yes" >&6; }
12826 else
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12832 rm -f core conftest.err conftest.$ac_objext \
12833 conftest$ac_exeext conftest.$ac_ext
12838 ac_ext=c
12839 ac_cpp='$CPP $CPPFLAGS'
12840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12844 # Checking Native Language Support
12847 MKINSTALLDIRS=
12848 if test -n "$ac_aux_dir"; then
12849 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12851 if test -z "$MKINSTALLDIRS"; then
12852 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12859 # Extract the first word of "msgfmt", so it can be a program name with args.
12860 set dummy msgfmt; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862 $as_echo_n "checking for $ac_word... " >&6; }
12863 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12865 else
12866 case "$MSGFMT" in
12868 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12872 for ac_dir in $PATH; do
12873 test -z "$ac_dir" && ac_dir=.
12874 if test -f $ac_dir/$ac_word; then
12875 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12876 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12877 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12878 break
12881 done
12882 IFS="$ac_save_ifs"
12883 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12885 esac
12887 MSGFMT="$ac_cv_path_MSGFMT"
12888 if test "$MSGFMT" != ":"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12890 $as_echo "$MSGFMT" >&6; }
12891 else
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12896 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12897 set dummy gmsgfmt; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12899 $as_echo_n "checking for $ac_word... " >&6; }
12900 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12901 $as_echo_n "(cached) " >&6
12902 else
12903 case $GMSGFMT in
12904 [\\/]* | ?:[\\/]*)
12905 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12915 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 break 2
12919 done
12920 done
12921 IFS=$as_save_IFS
12923 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12925 esac
12927 GMSGFMT=$ac_cv_path_GMSGFMT
12928 if test -n "$GMSGFMT"; then
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12930 $as_echo "$GMSGFMT" >&6; }
12931 else
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12933 $as_echo "no" >&6; }
12938 # Extract the first word of "xgettext", so it can be a program name with args.
12939 set dummy xgettext; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 case "$XGETTEXT" in
12947 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12951 for ac_dir in $PATH; do
12952 test -z "$ac_dir" && ac_dir=.
12953 if test -f $ac_dir/$ac_word; then
12954 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12955 (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
12956 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12957 break
12960 done
12961 IFS="$ac_save_ifs"
12962 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12964 esac
12966 XGETTEXT="$ac_cv_path_XGETTEXT"
12967 if test "$XGETTEXT" != ":"; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12969 $as_echo "$XGETTEXT" >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12975 rm -f messages.po
12977 # Extract the first word of "msgmerge", so it can be a program name with args.
12978 set dummy msgmerge; ac_word=$2
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12980 $as_echo_n "checking for $ac_word... " >&6; }
12981 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12982 $as_echo_n "(cached) " >&6
12983 else
12984 case "$MSGMERGE" in
12986 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12990 for ac_dir in $PATH; do
12991 test -z "$ac_dir" && ac_dir=.
12992 if test -f $ac_dir/$ac_word; then
12993 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12994 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
12995 break
12998 done
12999 IFS="$ac_save_ifs"
13000 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13002 esac
13004 MSGMERGE="$ac_cv_path_MSGMERGE"
13005 if test "$MSGMERGE" != ":"; then
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13007 $as_echo "$MSGMERGE" >&6; }
13008 else
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010 $as_echo "no" >&6; }
13014 if test "$GMSGFMT" != ":"; then
13015 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13016 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13018 else
13019 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13021 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13022 GMSGFMT=":"
13026 if test "$XGETTEXT" != ":"; then
13027 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
13028 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13030 else
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13032 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13033 XGETTEXT=":"
13035 rm -f messages.po
13038 ac_config_commands="$ac_config_commands default-1"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
13043 $as_echo_n "checking for strerror in -lcposix... " >&6; }
13044 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 ac_check_lib_save_LIBS=$LIBS
13048 LIBS="-lcposix $LIBS"
13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h. */
13052 /* Override any GCC internal prototype to avoid an error.
13053 Use char because int might match the return type of a GCC
13054 builtin and then its argument prototype would still apply. */
13055 #ifdef __cplusplus
13056 extern "C"
13057 #endif
13058 char strerror ();
13060 main ()
13062 return strerror ();
13064 return 0;
13066 _ACEOF
13067 if ac_fn_c_try_link "$LINENO"; then :
13068 ac_cv_lib_cposix_strerror=yes
13069 else
13070 ac_cv_lib_cposix_strerror=no
13072 rm -f core conftest.err conftest.$ac_objext \
13073 conftest$ac_exeext conftest.$ac_ext
13074 LIBS=$ac_check_lib_save_LIBS
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
13077 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
13078 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
13079 LIBS="$LIBS -lcposix"
13085 for ac_func in getpagesize
13086 do :
13087 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13088 if test "x$ac_cv_func_getpagesize" = x""yes; then :
13089 cat >>confdefs.h <<_ACEOF
13090 #define HAVE_GETPAGESIZE 1
13091 _ACEOF
13094 done
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13097 $as_echo_n "checking for working mmap... " >&6; }
13098 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 if test "$cross_compiling" = yes; then :
13102 ac_cv_func_mmap_fixed_mapped=no
13103 else
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 $ac_includes_default
13107 /* malloc might have been renamed as rpl_malloc. */
13108 #undef malloc
13110 /* Thanks to Mike Haertel and Jim Avera for this test.
13111 Here is a matrix of mmap possibilities:
13112 mmap private not fixed
13113 mmap private fixed at somewhere currently unmapped
13114 mmap private fixed at somewhere already mapped
13115 mmap shared not fixed
13116 mmap shared fixed at somewhere currently unmapped
13117 mmap shared fixed at somewhere already mapped
13118 For private mappings, we should verify that changes cannot be read()
13119 back from the file, nor mmap's back from the file at a different
13120 address. (There have been systems where private was not correctly
13121 implemented like the infamous i386 svr4.0, and systems where the
13122 VM page cache was not coherent with the file system buffer cache
13123 like early versions of FreeBSD and possibly contemporary NetBSD.)
13124 For shared mappings, we should conversely verify that changes get
13125 propagated back to all the places they're supposed to be.
13127 Grep wants private fixed already mapped.
13128 The main things grep needs to know about mmap are:
13129 * does it exist and is it safe to write into the mmap'd area
13130 * how to use it (BSD variants) */
13132 #include <fcntl.h>
13133 #include <sys/mman.h>
13135 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13136 char *malloc ();
13137 #endif
13139 /* This mess was copied from the GNU getpagesize.h. */
13140 #ifndef HAVE_GETPAGESIZE
13141 # ifdef _SC_PAGESIZE
13142 # define getpagesize() sysconf(_SC_PAGESIZE)
13143 # else /* no _SC_PAGESIZE */
13144 # ifdef HAVE_SYS_PARAM_H
13145 # include <sys/param.h>
13146 # ifdef EXEC_PAGESIZE
13147 # define getpagesize() EXEC_PAGESIZE
13148 # else /* no EXEC_PAGESIZE */
13149 # ifdef NBPG
13150 # define getpagesize() NBPG * CLSIZE
13151 # ifndef CLSIZE
13152 # define CLSIZE 1
13153 # endif /* no CLSIZE */
13154 # else /* no NBPG */
13155 # ifdef NBPC
13156 # define getpagesize() NBPC
13157 # else /* no NBPC */
13158 # ifdef PAGESIZE
13159 # define getpagesize() PAGESIZE
13160 # endif /* PAGESIZE */
13161 # endif /* no NBPC */
13162 # endif /* no NBPG */
13163 # endif /* no EXEC_PAGESIZE */
13164 # else /* no HAVE_SYS_PARAM_H */
13165 # define getpagesize() 8192 /* punt totally */
13166 # endif /* no HAVE_SYS_PARAM_H */
13167 # endif /* no _SC_PAGESIZE */
13169 #endif /* no HAVE_GETPAGESIZE */
13172 main ()
13174 char *data, *data2, *data3;
13175 int i, pagesize;
13176 int fd, fd2;
13178 pagesize = getpagesize ();
13180 /* First, make a file with some known garbage in it. */
13181 data = (char *) malloc (pagesize);
13182 if (!data)
13183 return 1;
13184 for (i = 0; i < pagesize; ++i)
13185 *(data + i) = rand ();
13186 umask (0);
13187 fd = creat ("conftest.mmap", 0600);
13188 if (fd < 0)
13189 return 2;
13190 if (write (fd, data, pagesize) != pagesize)
13191 return 3;
13192 close (fd);
13194 /* Next, check that the tail of a page is zero-filled. File must have
13195 non-zero length, otherwise we risk SIGBUS for entire page. */
13196 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13197 if (fd2 < 0)
13198 return 4;
13199 data2 = "";
13200 if (write (fd2, data2, 1) != 1)
13201 return 5;
13202 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13203 if (data2 == MAP_FAILED)
13204 return 6;
13205 for (i = 0; i < pagesize; ++i)
13206 if (*(data2 + i))
13207 return 7;
13208 close (fd2);
13209 if (munmap (data2, pagesize))
13210 return 8;
13212 /* Next, try to mmap the file at a fixed address which already has
13213 something else allocated at it. If we can, also make sure that
13214 we see the same garbage. */
13215 fd = open ("conftest.mmap", O_RDWR);
13216 if (fd < 0)
13217 return 9;
13218 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13219 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13220 return 10;
13221 for (i = 0; i < pagesize; ++i)
13222 if (*(data + i) != *(data2 + i))
13223 return 11;
13225 /* Finally, make sure that changes to the mapped area do not
13226 percolate back to the file as seen by read(). (This is a bug on
13227 some variants of i386 svr4.0.) */
13228 for (i = 0; i < pagesize; ++i)
13229 *(data2 + i) = *(data2 + i) + 1;
13230 data3 = (char *) malloc (pagesize);
13231 if (!data3)
13232 return 12;
13233 if (read (fd, data3, pagesize) != pagesize)
13234 return 13;
13235 for (i = 0; i < pagesize; ++i)
13236 if (*(data + i) != *(data3 + i))
13237 return 14;
13238 close (fd);
13239 return 0;
13241 _ACEOF
13242 if ac_fn_c_try_run "$LINENO"; then :
13243 ac_cv_func_mmap_fixed_mapped=yes
13244 else
13245 ac_cv_func_mmap_fixed_mapped=no
13247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13248 conftest.$ac_objext conftest.beam conftest.$ac_ext
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13253 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13254 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13256 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13259 rm -f conftest.mmap conftest.txt
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13263 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13264 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h. */
13270 #include <features.h>
13271 #ifdef __GNU_LIBRARY__
13272 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13273 Lucky GNU user
13274 #endif
13275 #endif
13277 _ACEOF
13278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13279 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
13280 ac_cv_gnu_library_2_1=yes
13281 else
13282 ac_cv_gnu_library_2_1=no
13284 rm -f conftest*
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13290 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13292 GLIBC21="$ac_cv_gnu_library_2_1"
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13298 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13299 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
13300 $as_echo_n "(cached) " >&6
13301 else
13303 if test "$cross_compiling" = yes; then :
13305 # Guess based on the CPU.
13306 case "$host_cpu" in
13307 alpha* | i3456786 | m68k | s390*)
13308 gt_cv_int_divbyzero_sigfpe="guessing yes";;
13310 gt_cv_int_divbyzero_sigfpe="guessing no";;
13311 esac
13313 else
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13317 #include <stdlib.h>
13318 #include <signal.h>
13320 static void
13321 #ifdef __cplusplus
13322 sigfpe_handler (int sig)
13323 #else
13324 sigfpe_handler (sig) int sig;
13325 #endif
13327 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13328 exit (sig != SIGFPE);
13331 int x = 1;
13332 int y = 0;
13333 int z;
13334 int nan;
13336 int main ()
13338 signal (SIGFPE, sigfpe_handler);
13339 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13340 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13341 signal (SIGTRAP, sigfpe_handler);
13342 #endif
13343 /* Linux/SPARC yields signal SIGILL. */
13344 #if defined (__sparc__) && defined (__linux__)
13345 signal (SIGILL, sigfpe_handler);
13346 #endif
13348 z = x / y;
13349 nan = y / y;
13350 exit (1);
13353 _ACEOF
13354 if ac_fn_c_try_run "$LINENO"; then :
13355 gt_cv_int_divbyzero_sigfpe=yes
13356 else
13357 gt_cv_int_divbyzero_sigfpe=no
13359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13360 conftest.$ac_objext conftest.beam conftest.$ac_ext
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13366 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13367 case "$gt_cv_int_divbyzero_sigfpe" in
13368 *yes) value=1;;
13369 *) value=0;;
13370 esac
13372 cat >>confdefs.h <<_ACEOF
13373 #define INTDIV0_RAISES_SIGFPE $value
13374 _ACEOF
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13379 $as_echo_n "checking for inttypes.h... " >&6; }
13380 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
13381 $as_echo_n "(cached) " >&6
13382 else
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385 #include <sys/types.h>
13386 #include <inttypes.h>
13388 main ()
13390 uintmax_t i = (uintmax_t) -1;
13392 return 0;
13394 _ACEOF
13395 if ac_fn_c_try_compile "$LINENO"; then :
13396 jm_ac_cv_header_inttypes_h=yes
13397 else
13398 jm_ac_cv_header_inttypes_h=no
13400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13403 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13404 if test $jm_ac_cv_header_inttypes_h = yes; then
13406 cat >>confdefs.h <<_ACEOF
13407 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13408 _ACEOF
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13414 $as_echo_n "checking for stdint.h... " >&6; }
13415 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13420 #include <sys/types.h>
13421 #include <stdint.h>
13423 main ()
13425 uintmax_t i = (uintmax_t) -1;
13427 return 0;
13429 _ACEOF
13430 if ac_fn_c_try_compile "$LINENO"; then :
13431 jm_ac_cv_header_stdint_h=yes
13432 else
13433 jm_ac_cv_header_stdint_h=no
13435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13438 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13439 if test $jm_ac_cv_header_stdint_h = yes; then
13441 cat >>confdefs.h <<_ACEOF
13442 #define HAVE_STDINT_H_WITH_UINTMAX 1
13443 _ACEOF
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13449 $as_echo_n "checking for unsigned long long... " >&6; }
13450 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 unsigned long long ull = 1; int i = 63;
13457 main ()
13459 unsigned long long ullmax = (unsigned long long) -1;
13460 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13462 return 0;
13464 _ACEOF
13465 if ac_fn_c_try_link "$LINENO"; then :
13466 ac_cv_type_unsigned_long_long=yes
13467 else
13468 ac_cv_type_unsigned_long_long=no
13470 rm -f core conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13474 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13475 if test $ac_cv_type_unsigned_long_long = yes; then
13477 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13484 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
13486 test $ac_cv_type_unsigned_long_long = yes \
13487 && ac_type='unsigned long long' \
13488 || ac_type='unsigned long'
13490 cat >>confdefs.h <<_ACEOF
13491 #define uintmax_t $ac_type
13492 _ACEOF
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13498 $as_echo_n "checking for inttypes.h... " >&6; }
13499 if test "${gt_cv_header_inttypes_h+set}" = set; then :
13500 $as_echo_n "(cached) " >&6
13501 else
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 #include <sys/types.h>
13506 #include <inttypes.h>
13508 main ()
13512 return 0;
13514 _ACEOF
13515 if ac_fn_c_try_compile "$LINENO"; then :
13516 gt_cv_header_inttypes_h=yes
13517 else
13518 gt_cv_header_inttypes_h=no
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13524 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13525 if test $gt_cv_header_inttypes_h = yes; then
13527 cat >>confdefs.h <<_ACEOF
13528 #define HAVE_INTTYPES_H 1
13529 _ACEOF
13535 if test $gt_cv_header_inttypes_h = yes; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13537 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13538 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 #include <inttypes.h>
13545 #ifdef PRId32
13546 char *p = PRId32;
13547 #endif
13550 main ()
13554 return 0;
13556 _ACEOF
13557 if ac_fn_c_try_compile "$LINENO"; then :
13558 gt_cv_inttypes_pri_broken=no
13559 else
13560 gt_cv_inttypes_pri_broken=yes
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13566 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13568 if test "$gt_cv_inttypes_pri_broken" = yes; then
13570 cat >>confdefs.h <<_ACEOF
13571 #define PRI_MACROS_BROKEN 1
13572 _ACEOF
13577 if test "X$prefix" = "XNONE"; then
13578 acl_final_prefix="$ac_default_prefix"
13579 else
13580 acl_final_prefix="$prefix"
13582 if test "X$exec_prefix" = "XNONE"; then
13583 acl_final_exec_prefix='${prefix}'
13584 else
13585 acl_final_exec_prefix="$exec_prefix"
13587 acl_save_prefix="$prefix"
13588 prefix="$acl_final_prefix"
13589 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13590 prefix="$acl_save_prefix"
13593 # Check whether --with-gnu-ld was given.
13594 if test "${with_gnu_ld+set}" = set; then :
13595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13596 else
13597 with_gnu_ld=no
13600 ac_prog=ld
13601 if test "$GCC" = yes; then
13602 # Check if gcc -print-prog-name=ld gives a path.
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13604 $as_echo_n "checking for ld used by GCC... " >&6; }
13605 case $host in
13606 *-*-mingw*)
13607 # gcc leaves a trailing carriage return which upsets mingw
13608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13611 esac
13612 case $ac_prog in
13613 # Accept absolute paths.
13614 [\\/]* | [A-Za-z]:[\\/]*)
13615 re_direlt='/[^/][^/]*/\.\./'
13616 # Canonicalize the path of ld
13617 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13618 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13619 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13620 done
13621 test -z "$LD" && LD="$ac_prog"
13624 # If it fails, then pretend we aren't using GCC.
13625 ac_prog=ld
13628 # If it is relative, then search for the first ld in PATH.
13629 with_gnu_ld=unknown
13631 esac
13632 elif test "$with_gnu_ld" = yes; then
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13634 $as_echo_n "checking for GNU ld... " >&6; }
13635 else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13637 $as_echo_n "checking for non-GNU ld... " >&6; }
13639 if test "${acl_cv_path_LD+set}" = set; then :
13640 $as_echo_n "(cached) " >&6
13641 else
13642 if test -z "$LD"; then
13643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13644 for ac_dir in $PATH; do
13645 test -z "$ac_dir" && ac_dir=.
13646 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13647 acl_cv_path_LD="$ac_dir/$ac_prog"
13648 # Check to see if the program is GNU ld. I'd rather use --version,
13649 # but apparently some GNU ld's only accept -v.
13650 # Break only if it was the GNU/non-GNU ld that we prefer.
13651 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13652 test "$with_gnu_ld" != no && break
13653 else
13654 test "$with_gnu_ld" != yes && break
13657 done
13658 IFS="$ac_save_ifs"
13659 else
13660 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13664 LD="$acl_cv_path_LD"
13665 if test -n "$LD"; then
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13667 $as_echo "$LD" >&6; }
13668 else
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670 $as_echo "no" >&6; }
13672 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13674 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13675 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13677 else
13678 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13679 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13680 acl_cv_prog_gnu_ld=yes
13681 else
13682 acl_cv_prog_gnu_ld=no
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13686 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13687 with_gnu_ld=$acl_cv_prog_gnu_ld
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13692 $as_echo_n "checking for shared library run path origin... " >&6; }
13693 if test "${acl_cv_rpath+set}" = set; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13697 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13698 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13699 . ./conftest.sh
13700 rm -f ./conftest.sh
13701 acl_cv_rpath=done
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13705 $as_echo "$acl_cv_rpath" >&6; }
13706 wl="$acl_cv_wl"
13707 libext="$acl_cv_libext"
13708 shlibext="$acl_cv_shlibext"
13709 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13710 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13711 hardcode_direct="$acl_cv_hardcode_direct"
13712 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13713 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
13714 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
13715 # Check whether --enable-rpath was given.
13716 if test "${enable_rpath+set}" = set; then :
13717 enableval=$enable_rpath; :
13718 else
13719 enable_rpath=yes
13729 use_additional=yes
13731 acl_save_prefix="$prefix"
13732 prefix="$acl_final_prefix"
13733 acl_save_exec_prefix="$exec_prefix"
13734 exec_prefix="$acl_final_exec_prefix"
13736 eval additional_includedir=\"$includedir\"
13737 eval additional_libdir=\"$libdir\"
13739 exec_prefix="$acl_save_exec_prefix"
13740 prefix="$acl_save_prefix"
13743 # Check whether --with-libiconv-prefix was given.
13744 if test "${with_libiconv_prefix+set}" = set; then :
13745 withval=$with_libiconv_prefix;
13746 if test "X$withval" = "Xno"; then
13747 use_additional=no
13748 else
13749 if test "X$withval" = "X"; then
13751 acl_save_prefix="$prefix"
13752 prefix="$acl_final_prefix"
13753 acl_save_exec_prefix="$exec_prefix"
13754 exec_prefix="$acl_final_exec_prefix"
13756 eval additional_includedir=\"$includedir\"
13757 eval additional_libdir=\"$libdir\"
13759 exec_prefix="$acl_save_exec_prefix"
13760 prefix="$acl_save_prefix"
13762 else
13763 additional_includedir="$withval/include"
13764 additional_libdir="$withval/lib"
13770 LIBICONV=
13771 LTLIBICONV=
13772 INCICONV=
13773 rpathdirs=
13774 ltrpathdirs=
13775 names_already_handled=
13776 names_next_round='iconv '
13777 while test -n "$names_next_round"; do
13778 names_this_round="$names_next_round"
13779 names_next_round=
13780 for name in $names_this_round; do
13781 already_handled=
13782 for n in $names_already_handled; do
13783 if test "$n" = "$name"; then
13784 already_handled=yes
13785 break
13787 done
13788 if test -z "$already_handled"; then
13789 names_already_handled="$names_already_handled $name"
13790 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13791 eval value=\"\$HAVE_LIB$uppername\"
13792 if test -n "$value"; then
13793 if test "$value" = yes; then
13794 eval value=\"\$LIB$uppername\"
13795 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13796 eval value=\"\$LTLIB$uppername\"
13797 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13798 else
13801 else
13802 found_dir=
13803 found_la=
13804 found_so=
13805 found_a=
13806 if test $use_additional = yes; then
13807 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13808 found_dir="$additional_libdir"
13809 found_so="$additional_libdir/lib$name.$shlibext"
13810 if test -f "$additional_libdir/lib$name.la"; then
13811 found_la="$additional_libdir/lib$name.la"
13813 else
13814 if test -f "$additional_libdir/lib$name.$libext"; then
13815 found_dir="$additional_libdir"
13816 found_a="$additional_libdir/lib$name.$libext"
13817 if test -f "$additional_libdir/lib$name.la"; then
13818 found_la="$additional_libdir/lib$name.la"
13823 if test "X$found_dir" = "X"; then
13824 for x in $LDFLAGS $LTLIBICONV; do
13826 acl_save_prefix="$prefix"
13827 prefix="$acl_final_prefix"
13828 acl_save_exec_prefix="$exec_prefix"
13829 exec_prefix="$acl_final_exec_prefix"
13830 eval x=\"$x\"
13831 exec_prefix="$acl_save_exec_prefix"
13832 prefix="$acl_save_prefix"
13834 case "$x" in
13835 -L*)
13836 dir=`echo "X$x" | sed -e 's/^X-L//'`
13837 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13838 found_dir="$dir"
13839 found_so="$dir/lib$name.$shlibext"
13840 if test -f "$dir/lib$name.la"; then
13841 found_la="$dir/lib$name.la"
13843 else
13844 if test -f "$dir/lib$name.$libext"; then
13845 found_dir="$dir"
13846 found_a="$dir/lib$name.$libext"
13847 if test -f "$dir/lib$name.la"; then
13848 found_la="$dir/lib$name.la"
13853 esac
13854 if test "X$found_dir" != "X"; then
13855 break
13857 done
13859 if test "X$found_dir" != "X"; then
13860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13861 if test "X$found_so" != "X"; then
13862 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13864 else
13865 haveit=
13866 for x in $ltrpathdirs; do
13867 if test "X$x" = "X$found_dir"; then
13868 haveit=yes
13869 break
13871 done
13872 if test -z "$haveit"; then
13873 ltrpathdirs="$ltrpathdirs $found_dir"
13875 if test "$hardcode_direct" = yes; then
13876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13877 else
13878 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13879 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13880 haveit=
13881 for x in $rpathdirs; do
13882 if test "X$x" = "X$found_dir"; then
13883 haveit=yes
13884 break
13886 done
13887 if test -z "$haveit"; then
13888 rpathdirs="$rpathdirs $found_dir"
13890 else
13891 haveit=
13892 for x in $LDFLAGS $LIBICONV; do
13894 acl_save_prefix="$prefix"
13895 prefix="$acl_final_prefix"
13896 acl_save_exec_prefix="$exec_prefix"
13897 exec_prefix="$acl_final_exec_prefix"
13898 eval x=\"$x\"
13899 exec_prefix="$acl_save_exec_prefix"
13900 prefix="$acl_save_prefix"
13902 if test "X$x" = "X-L$found_dir"; then
13903 haveit=yes
13904 break
13906 done
13907 if test -z "$haveit"; then
13908 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13910 if test "$hardcode_minus_L" != no; then
13911 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13912 else
13913 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13918 else
13919 if test "X$found_a" != "X"; then
13920 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13921 else
13922 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13925 additional_includedir=
13926 case "$found_dir" in
13927 */lib | */lib/)
13928 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13929 additional_includedir="$basedir/include"
13931 esac
13932 if test "X$additional_includedir" != "X"; then
13933 if test "X$additional_includedir" != "X/usr/include"; then
13934 haveit=
13935 if test "X$additional_includedir" = "X/usr/local/include"; then
13936 if test -n "$GCC"; then
13937 case $host_os in
13938 linux*) haveit=yes;;
13939 esac
13942 if test -z "$haveit"; then
13943 for x in $CPPFLAGS $INCICONV; do
13945 acl_save_prefix="$prefix"
13946 prefix="$acl_final_prefix"
13947 acl_save_exec_prefix="$exec_prefix"
13948 exec_prefix="$acl_final_exec_prefix"
13949 eval x=\"$x\"
13950 exec_prefix="$acl_save_exec_prefix"
13951 prefix="$acl_save_prefix"
13953 if test "X$x" = "X-I$additional_includedir"; then
13954 haveit=yes
13955 break
13957 done
13958 if test -z "$haveit"; then
13959 if test -d "$additional_includedir"; then
13960 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13966 if test -n "$found_la"; then
13967 save_libdir="$libdir"
13968 case "$found_la" in
13969 */* | *\\*) . "$found_la" ;;
13970 *) . "./$found_la" ;;
13971 esac
13972 libdir="$save_libdir"
13973 for dep in $dependency_libs; do
13974 case "$dep" in
13975 -L*)
13976 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13977 if test "X$additional_libdir" != "X/usr/lib"; then
13978 haveit=
13979 if test "X$additional_libdir" = "X/usr/local/lib"; then
13980 if test -n "$GCC"; then
13981 case $host_os in
13982 linux*) haveit=yes;;
13983 esac
13986 if test -z "$haveit"; then
13987 haveit=
13988 for x in $LDFLAGS $LIBICONV; do
13990 acl_save_prefix="$prefix"
13991 prefix="$acl_final_prefix"
13992 acl_save_exec_prefix="$exec_prefix"
13993 exec_prefix="$acl_final_exec_prefix"
13994 eval x=\"$x\"
13995 exec_prefix="$acl_save_exec_prefix"
13996 prefix="$acl_save_prefix"
13998 if test "X$x" = "X-L$additional_libdir"; then
13999 haveit=yes
14000 break
14002 done
14003 if test -z "$haveit"; then
14004 if test -d "$additional_libdir"; then
14005 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14008 haveit=
14009 for x in $LDFLAGS $LTLIBICONV; do
14011 acl_save_prefix="$prefix"
14012 prefix="$acl_final_prefix"
14013 acl_save_exec_prefix="$exec_prefix"
14014 exec_prefix="$acl_final_exec_prefix"
14015 eval x=\"$x\"
14016 exec_prefix="$acl_save_exec_prefix"
14017 prefix="$acl_save_prefix"
14019 if test "X$x" = "X-L$additional_libdir"; then
14020 haveit=yes
14021 break
14023 done
14024 if test -z "$haveit"; then
14025 if test -d "$additional_libdir"; then
14026 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14032 -R*)
14033 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14034 if test "$enable_rpath" != no; then
14035 haveit=
14036 for x in $rpathdirs; do
14037 if test "X$x" = "X$dir"; then
14038 haveit=yes
14039 break
14041 done
14042 if test -z "$haveit"; then
14043 rpathdirs="$rpathdirs $dir"
14045 haveit=
14046 for x in $ltrpathdirs; do
14047 if test "X$x" = "X$dir"; then
14048 haveit=yes
14049 break
14051 done
14052 if test -z "$haveit"; then
14053 ltrpathdirs="$ltrpathdirs $dir"
14057 -l*)
14058 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14060 *.la)
14061 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14064 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14067 esac
14068 done
14070 else
14071 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14076 done
14077 done
14078 if test "X$rpathdirs" != "X"; then
14079 if test -n "$hardcode_libdir_separator"; then
14080 alldirs=
14081 for found_dir in $rpathdirs; do
14082 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14083 done
14084 acl_save_libdir="$libdir"
14085 libdir="$alldirs"
14086 eval flag=\"$hardcode_libdir_flag_spec\"
14087 libdir="$acl_save_libdir"
14088 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14089 else
14090 for found_dir in $rpathdirs; do
14091 acl_save_libdir="$libdir"
14092 libdir="$found_dir"
14093 eval flag=\"$hardcode_libdir_flag_spec\"
14094 libdir="$acl_save_libdir"
14095 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14096 done
14099 if test "X$ltrpathdirs" != "X"; then
14100 for found_dir in $ltrpathdirs; do
14101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14102 done
14108 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14109 stdlib.h string.h unistd.h sys/param.h
14110 do :
14111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14112 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14113 eval as_val=\$$as_ac_Header
14114 if test "x$as_val" = x""yes; then :
14115 cat >>confdefs.h <<_ACEOF
14116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14117 _ACEOF
14121 done
14123 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14124 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14125 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14126 do :
14127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14129 eval as_val=\$$as_ac_var
14130 if test "x$as_val" = x""yes; then :
14131 cat >>confdefs.h <<_ACEOF
14132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14133 _ACEOF
14136 done
14144 am_save_CPPFLAGS="$CPPFLAGS"
14146 for element in $INCICONV; do
14147 haveit=
14148 for x in $CPPFLAGS; do
14150 acl_save_prefix="$prefix"
14151 prefix="$acl_final_prefix"
14152 acl_save_exec_prefix="$exec_prefix"
14153 exec_prefix="$acl_final_exec_prefix"
14154 eval x=\"$x\"
14155 exec_prefix="$acl_save_exec_prefix"
14156 prefix="$acl_save_prefix"
14158 if test "X$x" = "X$element"; then
14159 haveit=yes
14160 break
14162 done
14163 if test -z "$haveit"; then
14164 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14166 done
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14170 $as_echo_n "checking for iconv... " >&6; }
14171 if test "${am_cv_func_iconv+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14175 am_cv_func_iconv="no, consider installing GNU libiconv"
14176 am_cv_lib_iconv=no
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179 #include <stdlib.h>
14180 #include <iconv.h>
14182 main ()
14184 iconv_t cd = iconv_open("","");
14185 iconv(cd,NULL,NULL,NULL,NULL);
14186 iconv_close(cd);
14188 return 0;
14190 _ACEOF
14191 if ac_fn_c_try_link "$LINENO"; then :
14192 am_cv_func_iconv=yes
14194 rm -f core conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext conftest.$ac_ext
14196 if test "$am_cv_func_iconv" != yes; then
14197 am_save_LIBS="$LIBS"
14198 LIBS="$LIBS $LIBICONV"
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14201 #include <stdlib.h>
14202 #include <iconv.h>
14204 main ()
14206 iconv_t cd = iconv_open("","");
14207 iconv(cd,NULL,NULL,NULL,NULL);
14208 iconv_close(cd);
14210 return 0;
14212 _ACEOF
14213 if ac_fn_c_try_link "$LINENO"; then :
14214 am_cv_lib_iconv=yes
14215 am_cv_func_iconv=yes
14217 rm -f core conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext conftest.$ac_ext
14219 LIBS="$am_save_LIBS"
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14224 $as_echo "$am_cv_func_iconv" >&6; }
14225 if test "$am_cv_func_iconv" = yes; then
14227 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14230 if test "$am_cv_lib_iconv" = yes; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14232 $as_echo_n "checking how to link with libiconv... " >&6; }
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14234 $as_echo "$LIBICONV" >&6; }
14235 else
14236 CPPFLAGS="$am_save_CPPFLAGS"
14237 LIBICONV=
14238 LTLIBICONV=
14243 if test "$am_cv_func_iconv" = yes; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14245 $as_echo_n "checking for iconv declaration... " >&6; }
14246 if test "${am_cv_proto_iconv+set}" = set; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14253 #include <stdlib.h>
14254 #include <iconv.h>
14255 extern
14256 #ifdef __cplusplus
14258 #endif
14259 #if defined(__STDC__) || defined(__cplusplus)
14260 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14261 #else
14262 size_t iconv();
14263 #endif
14266 main ()
14270 return 0;
14272 _ACEOF
14273 if ac_fn_c_try_compile "$LINENO"; then :
14274 am_cv_proto_iconv_arg1=""
14275 else
14276 am_cv_proto_iconv_arg1="const"
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279 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);"
14282 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14284 }$am_cv_proto_iconv" >&5
14285 $as_echo "${ac_t:-
14286 }$am_cv_proto_iconv" >&6; }
14288 cat >>confdefs.h <<_ACEOF
14289 #define ICONV_CONST $am_cv_proto_iconv_arg1
14290 _ACEOF
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14296 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14297 if test "${am_cv_langinfo_codeset+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14299 else
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302 #include <langinfo.h>
14304 main ()
14306 char* cs = nl_langinfo(CODESET);
14308 return 0;
14310 _ACEOF
14311 if ac_fn_c_try_link "$LINENO"; then :
14312 am_cv_langinfo_codeset=yes
14313 else
14314 am_cv_langinfo_codeset=no
14316 rm -f core conftest.err conftest.$ac_objext \
14317 conftest$ac_exeext conftest.$ac_ext
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14321 $as_echo "$am_cv_langinfo_codeset" >&6; }
14322 if test $am_cv_langinfo_codeset = yes; then
14324 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14328 if test $ac_cv_header_locale_h = yes; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14331 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14332 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14337 #include <locale.h>
14339 main ()
14341 return LC_MESSAGES
14343 return 0;
14345 _ACEOF
14346 if ac_fn_c_try_link "$LINENO"; then :
14347 am_cv_val_LC_MESSAGES=yes
14348 else
14349 am_cv_val_LC_MESSAGES=no
14351 rm -f core conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14355 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14356 if test $am_cv_val_LC_MESSAGES = yes; then
14358 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14364 for ac_prog in bison
14366 # Extract the first word of "$ac_prog", so it can be a program name with args.
14367 set dummy $ac_prog; ac_word=$2
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14369 $as_echo_n "checking for $ac_word... " >&6; }
14370 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
14371 $as_echo_n "(cached) " >&6
14372 else
14373 if test -n "$INTLBISON"; then
14374 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14375 else
14376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14377 for as_dir in $PATH
14379 IFS=$as_save_IFS
14380 test -z "$as_dir" && as_dir=.
14381 for ac_exec_ext in '' $ac_executable_extensions; do
14382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14383 ac_cv_prog_INTLBISON="$ac_prog"
14384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14385 break 2
14387 done
14388 done
14389 IFS=$as_save_IFS
14393 INTLBISON=$ac_cv_prog_INTLBISON
14394 if test -n "$INTLBISON"; then
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14396 $as_echo "$INTLBISON" >&6; }
14397 else
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14403 test -n "$INTLBISON" && break
14404 done
14406 if test -z "$INTLBISON"; then
14407 ac_verc_fail=yes
14408 else
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14410 $as_echo_n "checking version of bison... " >&6; }
14411 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14412 case $ac_prog_version in
14413 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14414 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14415 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14416 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14417 esac
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14419 $as_echo "$ac_prog_version" >&6; }
14421 if test $ac_verc_fail = yes; then
14422 INTLBISON=:
14427 # Check whether --with-language was given.
14428 if test "${with_language+set}" = set; then :
14429 withval=$with_language; if test "$withval" != "all"; then :
14430 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14450 $as_echo_n "checking whether NLS is requested... " >&6; }
14451 # Check whether --enable-nls was given.
14452 if test "${enable_nls+set}" = set; then :
14453 enableval=$enable_nls; USE_NLS=$enableval
14454 else
14455 USE_NLS=yes
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14459 $as_echo "$USE_NLS" >&6; }
14463 BUILD_INCLUDED_LIBINTL=no
14464 USE_INCLUDED_LIBINTL=no
14466 LIBINTL=
14467 LTLIBINTL=
14468 POSUB=
14470 if test "$USE_NLS" = "yes"; then
14471 gt_use_preinstalled_gnugettext=no
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14474 $as_echo_n "checking whether included gettext is requested... " >&6; }
14476 # Check whether --with-included-gettext was given.
14477 if test "${with_included_gettext+set}" = set; then :
14478 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14479 else
14480 nls_cv_force_use_gnu_gettext=no
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14484 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14486 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14487 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14495 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14496 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
14497 $as_echo_n "(cached) " >&6
14498 else
14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14501 #include <libintl.h>
14502 extern int _nl_msg_cat_cntr;
14503 extern int *_nl_domain_bindings;
14505 main ()
14507 bindtextdomain ("", "");
14508 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14510 return 0;
14512 _ACEOF
14513 if ac_fn_c_try_link "$LINENO"; then :
14514 gt_cv_func_gnugettext2_libc=yes
14515 else
14516 gt_cv_func_gnugettext2_libc=no
14518 rm -f core conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext conftest.$ac_ext
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14522 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14524 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14528 use_additional=yes
14530 acl_save_prefix="$prefix"
14531 prefix="$acl_final_prefix"
14532 acl_save_exec_prefix="$exec_prefix"
14533 exec_prefix="$acl_final_exec_prefix"
14535 eval additional_includedir=\"$includedir\"
14536 eval additional_libdir=\"$libdir\"
14538 exec_prefix="$acl_save_exec_prefix"
14539 prefix="$acl_save_prefix"
14542 # Check whether --with-libintl-prefix was given.
14543 if test "${with_libintl_prefix+set}" = set; then :
14544 withval=$with_libintl_prefix;
14545 if test "X$withval" = "Xno"; then
14546 use_additional=no
14547 else
14548 if test "X$withval" = "X"; then
14550 acl_save_prefix="$prefix"
14551 prefix="$acl_final_prefix"
14552 acl_save_exec_prefix="$exec_prefix"
14553 exec_prefix="$acl_final_exec_prefix"
14555 eval additional_includedir=\"$includedir\"
14556 eval additional_libdir=\"$libdir\"
14558 exec_prefix="$acl_save_exec_prefix"
14559 prefix="$acl_save_prefix"
14561 else
14562 additional_includedir="$withval/include"
14563 additional_libdir="$withval/lib"
14569 LIBINTL=
14570 LTLIBINTL=
14571 INCINTL=
14572 rpathdirs=
14573 ltrpathdirs=
14574 names_already_handled=
14575 names_next_round='intl '
14576 while test -n "$names_next_round"; do
14577 names_this_round="$names_next_round"
14578 names_next_round=
14579 for name in $names_this_round; do
14580 already_handled=
14581 for n in $names_already_handled; do
14582 if test "$n" = "$name"; then
14583 already_handled=yes
14584 break
14586 done
14587 if test -z "$already_handled"; then
14588 names_already_handled="$names_already_handled $name"
14589 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14590 eval value=\"\$HAVE_LIB$uppername\"
14591 if test -n "$value"; then
14592 if test "$value" = yes; then
14593 eval value=\"\$LIB$uppername\"
14594 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14595 eval value=\"\$LTLIB$uppername\"
14596 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14597 else
14600 else
14601 found_dir=
14602 found_la=
14603 found_so=
14604 found_a=
14605 if test $use_additional = yes; then
14606 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14607 found_dir="$additional_libdir"
14608 found_so="$additional_libdir/lib$name.$shlibext"
14609 if test -f "$additional_libdir/lib$name.la"; then
14610 found_la="$additional_libdir/lib$name.la"
14612 else
14613 if test -f "$additional_libdir/lib$name.$libext"; then
14614 found_dir="$additional_libdir"
14615 found_a="$additional_libdir/lib$name.$libext"
14616 if test -f "$additional_libdir/lib$name.la"; then
14617 found_la="$additional_libdir/lib$name.la"
14622 if test "X$found_dir" = "X"; then
14623 for x in $LDFLAGS $LTLIBINTL; do
14625 acl_save_prefix="$prefix"
14626 prefix="$acl_final_prefix"
14627 acl_save_exec_prefix="$exec_prefix"
14628 exec_prefix="$acl_final_exec_prefix"
14629 eval x=\"$x\"
14630 exec_prefix="$acl_save_exec_prefix"
14631 prefix="$acl_save_prefix"
14633 case "$x" in
14634 -L*)
14635 dir=`echo "X$x" | sed -e 's/^X-L//'`
14636 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14637 found_dir="$dir"
14638 found_so="$dir/lib$name.$shlibext"
14639 if test -f "$dir/lib$name.la"; then
14640 found_la="$dir/lib$name.la"
14642 else
14643 if test -f "$dir/lib$name.$libext"; then
14644 found_dir="$dir"
14645 found_a="$dir/lib$name.$libext"
14646 if test -f "$dir/lib$name.la"; then
14647 found_la="$dir/lib$name.la"
14652 esac
14653 if test "X$found_dir" != "X"; then
14654 break
14656 done
14658 if test "X$found_dir" != "X"; then
14659 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14660 if test "X$found_so" != "X"; then
14661 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14662 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14663 else
14664 haveit=
14665 for x in $ltrpathdirs; do
14666 if test "X$x" = "X$found_dir"; then
14667 haveit=yes
14668 break
14670 done
14671 if test -z "$haveit"; then
14672 ltrpathdirs="$ltrpathdirs $found_dir"
14674 if test "$hardcode_direct" = yes; then
14675 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14676 else
14677 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14678 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14679 haveit=
14680 for x in $rpathdirs; do
14681 if test "X$x" = "X$found_dir"; then
14682 haveit=yes
14683 break
14685 done
14686 if test -z "$haveit"; then
14687 rpathdirs="$rpathdirs $found_dir"
14689 else
14690 haveit=
14691 for x in $LDFLAGS $LIBINTL; do
14693 acl_save_prefix="$prefix"
14694 prefix="$acl_final_prefix"
14695 acl_save_exec_prefix="$exec_prefix"
14696 exec_prefix="$acl_final_exec_prefix"
14697 eval x=\"$x\"
14698 exec_prefix="$acl_save_exec_prefix"
14699 prefix="$acl_save_prefix"
14701 if test "X$x" = "X-L$found_dir"; then
14702 haveit=yes
14703 break
14705 done
14706 if test -z "$haveit"; then
14707 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14709 if test "$hardcode_minus_L" != no; then
14710 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14711 else
14712 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14717 else
14718 if test "X$found_a" != "X"; then
14719 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14720 else
14721 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14724 additional_includedir=
14725 case "$found_dir" in
14726 */lib | */lib/)
14727 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14728 additional_includedir="$basedir/include"
14730 esac
14731 if test "X$additional_includedir" != "X"; then
14732 if test "X$additional_includedir" != "X/usr/include"; then
14733 haveit=
14734 if test "X$additional_includedir" = "X/usr/local/include"; then
14735 if test -n "$GCC"; then
14736 case $host_os in
14737 linux*) haveit=yes;;
14738 esac
14741 if test -z "$haveit"; then
14742 for x in $CPPFLAGS $INCINTL; do
14744 acl_save_prefix="$prefix"
14745 prefix="$acl_final_prefix"
14746 acl_save_exec_prefix="$exec_prefix"
14747 exec_prefix="$acl_final_exec_prefix"
14748 eval x=\"$x\"
14749 exec_prefix="$acl_save_exec_prefix"
14750 prefix="$acl_save_prefix"
14752 if test "X$x" = "X-I$additional_includedir"; then
14753 haveit=yes
14754 break
14756 done
14757 if test -z "$haveit"; then
14758 if test -d "$additional_includedir"; then
14759 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14765 if test -n "$found_la"; then
14766 save_libdir="$libdir"
14767 case "$found_la" in
14768 */* | *\\*) . "$found_la" ;;
14769 *) . "./$found_la" ;;
14770 esac
14771 libdir="$save_libdir"
14772 for dep in $dependency_libs; do
14773 case "$dep" in
14774 -L*)
14775 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14776 if test "X$additional_libdir" != "X/usr/lib"; then
14777 haveit=
14778 if test "X$additional_libdir" = "X/usr/local/lib"; then
14779 if test -n "$GCC"; then
14780 case $host_os in
14781 linux*) haveit=yes;;
14782 esac
14785 if test -z "$haveit"; then
14786 haveit=
14787 for x in $LDFLAGS $LIBINTL; do
14789 acl_save_prefix="$prefix"
14790 prefix="$acl_final_prefix"
14791 acl_save_exec_prefix="$exec_prefix"
14792 exec_prefix="$acl_final_exec_prefix"
14793 eval x=\"$x\"
14794 exec_prefix="$acl_save_exec_prefix"
14795 prefix="$acl_save_prefix"
14797 if test "X$x" = "X-L$additional_libdir"; then
14798 haveit=yes
14799 break
14801 done
14802 if test -z "$haveit"; then
14803 if test -d "$additional_libdir"; then
14804 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14807 haveit=
14808 for x in $LDFLAGS $LTLIBINTL; do
14810 acl_save_prefix="$prefix"
14811 prefix="$acl_final_prefix"
14812 acl_save_exec_prefix="$exec_prefix"
14813 exec_prefix="$acl_final_exec_prefix"
14814 eval x=\"$x\"
14815 exec_prefix="$acl_save_exec_prefix"
14816 prefix="$acl_save_prefix"
14818 if test "X$x" = "X-L$additional_libdir"; then
14819 haveit=yes
14820 break
14822 done
14823 if test -z "$haveit"; then
14824 if test -d "$additional_libdir"; then
14825 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14831 -R*)
14832 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14833 if test "$enable_rpath" != no; then
14834 haveit=
14835 for x in $rpathdirs; do
14836 if test "X$x" = "X$dir"; then
14837 haveit=yes
14838 break
14840 done
14841 if test -z "$haveit"; then
14842 rpathdirs="$rpathdirs $dir"
14844 haveit=
14845 for x in $ltrpathdirs; do
14846 if test "X$x" = "X$dir"; then
14847 haveit=yes
14848 break
14850 done
14851 if test -z "$haveit"; then
14852 ltrpathdirs="$ltrpathdirs $dir"
14856 -l*)
14857 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14859 *.la)
14860 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14863 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14864 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14866 esac
14867 done
14869 else
14870 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14871 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14875 done
14876 done
14877 if test "X$rpathdirs" != "X"; then
14878 if test -n "$hardcode_libdir_separator"; then
14879 alldirs=
14880 for found_dir in $rpathdirs; do
14881 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14882 done
14883 acl_save_libdir="$libdir"
14884 libdir="$alldirs"
14885 eval flag=\"$hardcode_libdir_flag_spec\"
14886 libdir="$acl_save_libdir"
14887 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14888 else
14889 for found_dir in $rpathdirs; do
14890 acl_save_libdir="$libdir"
14891 libdir="$found_dir"
14892 eval flag=\"$hardcode_libdir_flag_spec\"
14893 libdir="$acl_save_libdir"
14894 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14895 done
14898 if test "X$ltrpathdirs" != "X"; then
14899 for found_dir in $ltrpathdirs; do
14900 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14901 done
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14905 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14906 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
14907 $as_echo_n "(cached) " >&6
14908 else
14909 gt_save_CPPFLAGS="$CPPFLAGS"
14910 CPPFLAGS="$CPPFLAGS $INCINTL"
14911 gt_save_LIBS="$LIBS"
14912 LIBS="$LIBS $LIBINTL"
14913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14914 /* end confdefs.h. */
14915 #include <libintl.h>
14916 extern int _nl_msg_cat_cntr;
14917 extern
14918 #ifdef __cplusplus
14920 #endif
14921 const char *_nl_expand_alias ();
14923 main ()
14925 bindtextdomain ("", "");
14926 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14928 return 0;
14930 _ACEOF
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 gt_cv_func_gnugettext2_libintl=yes
14933 else
14934 gt_cv_func_gnugettext2_libintl=no
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14939 LIBS="$LIBS $LIBICONV"
14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14941 /* end confdefs.h. */
14942 #include <libintl.h>
14943 extern int _nl_msg_cat_cntr;
14944 extern
14945 #ifdef __cplusplus
14947 #endif
14948 const char *_nl_expand_alias ();
14950 main ()
14952 bindtextdomain ("", "");
14953 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14955 return 0;
14957 _ACEOF
14958 if ac_fn_c_try_link "$LINENO"; then :
14959 LIBINTL="$LIBINTL $LIBICONV"
14960 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14961 gt_cv_func_gnugettext2_libintl=yes
14964 rm -f core conftest.err conftest.$ac_objext \
14965 conftest$ac_exeext conftest.$ac_ext
14967 CPPFLAGS="$gt_save_CPPFLAGS"
14968 LIBS="$gt_save_LIBS"
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14971 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14974 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14975 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14976 && test "$PACKAGE" != gettext; }; then
14977 gt_use_preinstalled_gnugettext=yes
14978 else
14979 LIBINTL=
14980 LTLIBINTL=
14981 INCINTL=
14985 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14986 nls_cv_use_gnu_gettext=yes
14990 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14991 INTLOBJS="\$(GETTOBJS)"
14992 BUILD_INCLUDED_LIBINTL=yes
14993 USE_INCLUDED_LIBINTL=yes
14994 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14995 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14996 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14999 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15000 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15001 CATOBJEXT=.gmo
15005 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15006 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15008 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15010 else
15011 USE_NLS=no
15015 if test "$USE_NLS" = "yes"; then
15017 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15018 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15020 $as_echo_n "checking how to link with libintl... " >&6; }
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15022 $as_echo "$LIBINTL" >&6; }
15024 for element in $INCINTL; do
15025 haveit=
15026 for x in $CPPFLAGS; do
15028 acl_save_prefix="$prefix"
15029 prefix="$acl_final_prefix"
15030 acl_save_exec_prefix="$exec_prefix"
15031 exec_prefix="$acl_final_exec_prefix"
15032 eval x=\"$x\"
15033 exec_prefix="$acl_save_exec_prefix"
15034 prefix="$acl_save_prefix"
15036 if test "X$x" = "X$element"; then
15037 haveit=yes
15038 break
15040 done
15041 if test -z "$haveit"; then
15042 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15044 done
15049 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15052 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15056 POSUB=po
15060 if test "$PACKAGE" = gettext; then
15061 BUILD_INCLUDED_LIBINTL=yes
15069 nls_cv_header_intl=
15070 nls_cv_header_libgt=
15072 DATADIRNAME=share
15075 INSTOBJEXT=.mo
15078 GENCAT=gencat
15081 INTL_LIBTOOL_SUFFIX_PREFIX=
15085 INTLLIBS="$LIBINTL"
15092 if test $USE_INCLUDED_LIBINTL = yes; then :
15093 INCINTL=-I\${top_builddir}/intl
15096 if test x$USE_NLS = xyes; then :
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
15099 $as_echo_n "checking for autopoint... " >&6; }
15100 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
15101 if test -n "$autopoint_version"; then :
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
15104 $as_echo "yes ($autopoint_version)" >&6; }
15107 else
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15110 $as_echo "no" >&6; }
15111 USE_NLS=no
15116 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15118 You need to install GNU gettext/gettext-tools to compile aMule with
15119 i18n support." >&5
15120 $as_echo "$as_me: WARNING:
15121 You need to install GNU gettext/gettext-tools to compile aMule with
15122 i18n support." >&2;}
15123 _mule_warning_13=yes
15124 _mule_has_warnings=yes
15128 if test ${USE_NLS:-no} = yes; then :
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15131 $as_echo_n "checking for requested languages... " >&6; }
15132 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15134 if test ${enable_amule_daemon:-no} = yes; then :
15136 if test -z "$LINGUAS"; then :
15137 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15138 else
15140 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15141 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15144 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15146 else
15147 AMULE_DAEMON_MANPAGES=
15152 if test ${enable_amulecmd:-no} = yes; then :
15154 if test -z "$LINGUAS"; then :
15155 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15156 else
15158 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15159 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15162 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15164 else
15165 AMULECMD_MANPAGES=
15170 if test ${enable_webserver:-no} = yes; then :
15172 if test -z "$LINGUAS"; then :
15173 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15174 else
15176 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15177 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15180 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15182 else
15183 WEBSERVER_MANPAGES=
15188 if test ${enable_amule_gui:-no} = yes; then :
15190 if test -z "$LINGUAS"; then :
15191 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15192 else
15194 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15195 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15198 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15200 else
15201 AMULE_GUI_MANPAGES=
15206 if test ${enable_cas:-no} = yes; then :
15208 if test -z "$LINGUAS"; then :
15209 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15210 else
15212 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15213 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15216 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
15218 else
15219 CAS_MANPAGES=
15224 if test ${enable_wxcas:-no} = yes; then :
15226 if test -z "$LINGUAS"; then :
15227 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15228 else
15230 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15231 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15234 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
15236 else
15237 WXCAS_MANPAGES=
15242 if test ${enable_ed2k:-yes} = yes; then :
15244 if test -z "$LINGUAS"; then :
15245 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15246 else
15248 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15249 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15252 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
15254 else
15255 ED2K_MANPAGES=
15260 if test ${enable_alc:-no} = yes; then :
15262 if test -z "$LINGUAS"; then :
15263 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15264 else
15266 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15267 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15270 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
15272 else
15273 ALC_MANPAGES=
15278 if test ${enable_alcc:-no} = yes; then :
15280 if test -z "$LINGUAS"; then :
15281 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15282 else
15284 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15285 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15288 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
15290 else
15291 ALCC_MANPAGES=
15296 if test ${enable_monolithic:-yes} = yes; then :
15298 if test -z "$LINGUAS"; then :
15299 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15300 else
15302 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15303 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15306 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15308 else
15309 MONOLITHIC_MANPAGES=
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15314 $as_echo "${LINGUAS:-all}" >&6; }
15319 ac_ext=cpp
15320 ac_cpp='$CXXCPP $CPPFLAGS'
15321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15327 # Check for bfd.h (to have proper backtraces without using wxExecute)
15329 for ac_header in ansidecl.h bfd.h
15330 do :
15331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15332 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15333 eval as_val=\$$as_ac_Header
15334 if test "x$as_val" = x""yes; then :
15335 cat >>confdefs.h <<_ACEOF
15336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15337 _ACEOF
15341 done
15343 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15346 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15347 if test "${mule_cv_lib_bfd+set}" = set; then :
15348 $as_echo_n "(cached) " >&6
15349 else
15351 for bfd_ldadd in "" "-lbfd" "-liberty" "-ldl" "${LIBINTL}" "${ZLIB_LIBS}" "-lbfd -liberty" "-lbfd -ldl" "-lbfd ${LIBINTL}" "-lbfd ${ZLIB_LIBS}" "-liberty -ldl" "-liberty ${LIBINTL}" "-liberty ${ZLIB_LIBS}" "-ldl ${LIBINTL}" "-ldl ${ZLIB_LIBS}" "${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl" "-lbfd -liberty ${LIBINTL}" "-lbfd -liberty ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL}" "-lbfd -ldl ${ZLIB_LIBS}" "-lbfd ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL}" "-liberty -ldl ${ZLIB_LIBS}" "-liberty ${LIBINTL} ${ZLIB_LIBS}" "-ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL}" "-lbfd -liberty -ldl ${ZLIB_LIBS}" "-lbfd -liberty ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" ; do
15352 # Doing some black magic to prevent multiple tests for the same set of
15353 # libraries when any of the shell variables above expand to nothing.
15354 echo $bfd_ldadd
15355 done | sed -e 's/^ *//;s/ *$//;s/ */ /g' | ${AWK} '!x[$0]++' >conftest.bfd_ldadd
15356 while read bfd_ldadd; do
15357 mule_backup_LIBS="$LIBS"
15358 mule_backup_LDFLAGS="$LDFLAGS"
15359 LIBS="${bfd_ldadd} $LIBS"
15360 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15365 #include <ansidecl.h>
15366 #include <bfd.h>
15369 main ()
15371 const char *dummy = bfd_errmsg(bfd_get_error());
15373 return 0;
15376 _ACEOF
15377 if ac_fn_cxx_try_link "$LINENO"; then :
15379 LIBS="$mule_backup_LIBS"
15380 LDFLAGS="$mule_backup_LDFLAGS"
15381 mule_cv_lib_bfd="${bfd_ldadd}"
15384 rm -f core conftest.err conftest.$ac_objext \
15385 conftest$ac_exeext conftest.$ac_ext
15386 LIBS="$mule_backup_LIBS"
15387 LDFLAGS="$mule_backup_LDFLAGS"
15388 if ${mule_cv_lib_bfd+:} false; then :
15389 break
15391 done <conftest.bfd_ldadd
15392 rm -f conftest.bfd_ldadd
15397 if ${mule_cv_lib_bfd+:} false; then :
15399 BFD_CPPFLAGS="-DHAVE_BFD"
15400 BFD_LIBS="${mule_cv_lib_bfd}"
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15402 $as_echo "${BFD_LIBS:-none required}" >&6; }
15404 else
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15407 $as_echo "not found" >&6; }
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15409 Cannot link to the library containing the bfd functions." >&5
15410 $as_echo "$as_me: WARNING:
15411 Cannot link to the library containing the bfd functions." >&2;}
15412 _mule_warning_14=yes
15413 _mule_has_warnings=yes
15418 else
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15421 bfd.h not found or unusable, please install binutils development
15422 package if you are a developer or want to help testing aMule" >&5
15423 $as_echo "$as_me: WARNING:
15424 bfd.h not found or unusable, please install binutils development
15425 package if you are a developer or want to help testing aMule" >&2;}
15426 _mule_warning_15=yes
15427 _mule_has_warnings=yes
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15435 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h. */
15440 #include <execinfo.h>
15443 main ()
15446 void *bt[1];
15447 int n = backtrace((void **)&bt, 1);
15448 char **bt_syms = backtrace_symbols(bt, n);
15451 return 0;
15454 _ACEOF
15455 if ac_fn_cxx_try_link "$LINENO"; then :
15458 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15461 $as_echo "yes" >&6; }
15463 else
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15466 $as_echo "no" >&6; }
15469 rm -f core conftest.err conftest.$ac_objext \
15470 conftest$ac_exeext conftest.$ac_ext
15474 # aMule plasma widget
15475 if test ${enable_plasmamule:-no} = yes; then :
15478 if test -z ${QT_MOC}; then :
15480 for ac_prog in moc-qt4 moc
15482 # Extract the first word of "$ac_prog", so it can be a program name with args.
15483 set dummy $ac_prog; ac_word=$2
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15485 $as_echo_n "checking for $ac_word... " >&6; }
15486 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15487 $as_echo_n "(cached) " >&6
15488 else
15489 case $QT_MOC in
15490 [\\/]* | ?:[\\/]*)
15491 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15495 for as_dir in $PATH
15497 IFS=$as_save_IFS
15498 test -z "$as_dir" && as_dir=.
15499 for ac_exec_ext in '' $ac_executable_extensions; do
15500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15501 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15503 break 2
15505 done
15506 done
15507 IFS=$as_save_IFS
15510 esac
15512 QT_MOC=$ac_cv_path_QT_MOC
15513 if test -n "$QT_MOC"; then
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15515 $as_echo "$QT_MOC" >&6; }
15516 else
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518 $as_echo "no" >&6; }
15522 test -n "$QT_MOC" && break
15523 done
15525 if test -z ${QT_MOC}; then :
15527 echo moc not found
15528 exit 1
15532 else
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15535 $as_echo_n "checking for moc... " >&6; }
15536 if test -x ${QT_MOC}; then :
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15539 $as_echo "${QT_MOC}" >&6; }
15542 else
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15545 $as_echo "\"not found\"" >&6; }
15546 QT_MOC="not found"
15547 exit 1
15554 if test "${QT_MOC}" != "not found"; then :
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15557 $as_echo_n "checking for moc version >= 4... " >&6; }
15558 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15559 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15562 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15564 else
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15567 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15568 QT_MOC="not found"
15569 exit 1
15575 if test "${QT_MOC}" = "not found"; then :
15576 enable_plasmamule=disabled
15579 if test ${enable_plasmamule:-no} = yes; then :
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15584 $as_echo_n "checking for qt... " >&6; }
15585 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15588 $as_echo "found" >&6; }
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15590 $as_echo_n "checking for qt core cflags... " >&6; }
15591 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15593 $as_echo "$QT_CORE_CFLAGS" >&6; }
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15595 $as_echo_n "checking for qt core libs... " >&6; }
15596 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15598 $as_echo "$QT_CORE_LIBS" >&6; }
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15600 $as_echo_n "checking for qt gui cflags... " >&6; }
15601 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15603 $as_echo "$QT_GUI_CFLAGS" >&6; }
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15605 $as_echo_n "checking for qt gui libs... " >&6; }
15606 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15608 $as_echo "$QT_GUI_LIBS" >&6; }
15610 else
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15612 $as_echo "not found" >&6; }
15613 exit 1
15617 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15619 QT_DBUS_LDFLAGS="-lQtDBus"
15629 if test -z "${QT_CORE_CXXFLAGS}"; then :
15630 enable_plasmamule=disabled
15635 if test ${enable_plasmamule:-no} = yes; then :
15638 if test -z ${KDE4_CONFIG}; then :
15640 # Extract the first word of "kde4-config", so it can be a program name with args.
15641 set dummy kde4-config; ac_word=$2
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15643 $as_echo_n "checking for $ac_word... " >&6; }
15644 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15645 $as_echo_n "(cached) " >&6
15646 else
15647 case $KDE4_CONFIG in
15648 [\\/]* | ?:[\\/]*)
15649 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15653 for as_dir in $PATH
15655 IFS=$as_save_IFS
15656 test -z "$as_dir" && as_dir=.
15657 for ac_exec_ext in '' $ac_executable_extensions; do
15658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15659 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15661 break 2
15663 done
15664 done
15665 IFS=$as_save_IFS
15668 esac
15670 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15671 if test -n "$KDE4_CONFIG"; then
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15673 $as_echo "$KDE4_CONFIG" >&6; }
15674 else
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15676 $as_echo "no" >&6; }
15681 else
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15684 $as_echo_n "checking for kde4-config... " >&6; }
15685 if test ! -x KDE4_CONFIG; then :
15687 KDE4_CONFIG="not found"
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15689 $as_echo "not found" >&6; }
15690 exit 1
15696 if test "${KDE4_CONFIG}" != "not found"; then :
15698 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15699 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15702 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15704 else
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15707 $as_echo "at least version 4 required" >&6; }
15708 exit 1
15712 else
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15715 $as_echo "not found" >&6; }
15716 exit 1
15721 if test "${KDE4_CONFIG}" = "not found"; then :
15722 enable_plasmamule=disabled
15727 if test ${enable_plasmamule:-no} = yes; then :
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15731 $as_echo_n "checking for kde4 headers... " >&6; }
15732 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15734 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15736 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15739 $as_echo "${KDE_HEADER_DIR}" >&6; }
15741 else
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15744 $as_echo "dataengine.h not found" >&6; }
15745 exit 1
15749 else
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15752 $as_echo "kdirwatch.h not found" >&6; }
15753 exit 1
15758 if test -z ${KDE_HEADER_DIR}; then :
15759 enable_plasmamule=disabled
15764 if test ${enable_plasmamule:-no} = yes; then :
15766 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15767 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15772 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15773 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15775 KDE_IN_HOME="yes"
15778 if test ${KDE_IN_HOME} = "yes"; then :
15780 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15782 else
15784 if test -n ${prefix}; then :
15786 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15787 if test -n ${KDE_APPLNK_PATH}; then :
15789 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15793 else
15795 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15801 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15807 $as_echo_n "checking for kde4 services Path... " >&6; }
15808 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15810 KDE_IN_HOME="yes"
15813 if test ${KDE_IN_HOME} = "yes"; then :
15815 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15817 else
15819 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15823 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15829 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15830 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15832 KDE_IN_HOME="yes"
15835 if test ${KDE_IN_HOME} = "yes"; then :
15837 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15839 else
15841 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15845 $as_echo "${KDE_MODULE_PATH}" >&6; }
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15851 $as_echo_n "checking for kde4 icons Path... " >&6; }
15852 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15854 KDE_IN_HOME="yes"
15857 if test ${KDE_IN_HOME} = "yes"; then :
15859 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15861 else
15863 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15866 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15868 $as_echo "${KDE_ICON_PATH}" >&6; }
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15874 $as_echo_n "checking for location for mime-type installation... " >&6; }
15875 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15877 KDE_IN_HOME="yes"
15880 if test ${KDE_IN_HOME} = "yes"; then :
15882 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15884 else
15886 if test -n ${prefix}; then :
15888 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15889 if test -n ${KDE_MIME_PATH}; then :
15891 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15895 else
15897 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15903 $as_echo "${KDE_MIME_PATH}" >&6; }
15907 else
15908 enable_plasmamule=disabled
15913 if test ${enable_debug:-yes} = yes; then :
15915 DEBUGFLAG="-D__DEBUG__"
15923 # Check for readline library
15924 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
15927 $as_echo_n "checking for a readline compatible library... " >&6; }
15928 if test "${vl_cv_lib_readline+set}" = set; then :
15929 $as_echo_n "(cached) " >&6
15930 else
15932 ORIG_LIBS="$LIBS"
15933 for readline_lib in readline edit editline; do
15934 for termcap_lib in "" termcap curses ncurses; do
15935 if test -z "$termcap_lib"; then
15936 TRY_LIB="-l$readline_lib"
15937 else
15938 TRY_LIB="-l$readline_lib -l$termcap_lib"
15940 LIBS="$ORIG_LIBS $TRY_LIB"
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15944 /* Override any GCC internal prototype to avoid an error.
15945 Use char because int might match the return type of a GCC
15946 builtin and then its argument prototype would still apply. */
15947 #ifdef __cplusplus
15948 extern "C"
15949 #endif
15950 char readline ();
15952 main ()
15954 return readline ();
15956 return 0;
15958 _ACEOF
15959 if ac_fn_cxx_try_link "$LINENO"; then :
15960 vl_cv_lib_readline="$TRY_LIB"
15962 rm -f core conftest.err conftest.$ac_objext \
15963 conftest$ac_exeext conftest.$ac_ext
15964 if test -n "$vl_cv_lib_readline"; then
15965 break
15967 done
15968 if test -n "$vl_cv_lib_readline"; then
15969 break
15971 done
15972 if test -z "$vl_cv_lib_readline"; then
15973 vl_cv_lib_readline="no"
15974 LIBS="$ORIG_LIBS"
15975 READLINE_LIBS=""
15976 else
15977 READLINE_LIBS="$vl_cv_lib_readline"
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
15982 $as_echo "$vl_cv_lib_readline" >&6; }
15984 if test "$vl_cv_lib_readline" != "no"; then
15986 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15988 for ac_header in readline.h readline/readline.h
15989 do :
15990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15991 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15992 eval as_val=\$$as_ac_Header
15993 if test "x$as_val" = x""yes; then :
15994 cat >>confdefs.h <<_ACEOF
15995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15996 _ACEOF
16000 done
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
16003 $as_echo_n "checking whether readline supports history... " >&6; }
16004 if test "${vl_cv_lib_readline_history+set}" = set; then :
16005 $as_echo_n "(cached) " >&6
16006 else
16008 vl_cv_lib_readline_history="no"
16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16012 /* Override any GCC internal prototype to avoid an error.
16013 Use char because int might match the return type of a GCC
16014 builtin and then its argument prototype would still apply. */
16015 #ifdef __cplusplus
16016 extern "C"
16017 #endif
16018 char add_history ();
16020 main ()
16022 return add_history ();
16024 return 0;
16026 _ACEOF
16027 if ac_fn_cxx_try_link "$LINENO"; then :
16028 vl_cv_lib_readline_history="yes"
16030 rm -f core conftest.err conftest.$ac_objext \
16031 conftest$ac_exeext conftest.$ac_ext
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16035 $as_echo "$vl_cv_lib_readline_history" >&6; }
16036 if test "$vl_cv_lib_readline_history" = "yes"; then
16038 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16040 for ac_header in history.h readline/history.h
16041 do :
16042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16043 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16044 eval as_val=\$$as_ac_Header
16045 if test "x$as_val" = x""yes; then :
16046 cat >>confdefs.h <<_ACEOF
16047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16048 _ACEOF
16052 done
16057 LIBS="$ORIG_LIBS"
16062 ac_ext=c
16063 ac_cpp='$CPP $CPPFLAGS'
16064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16069 # Check for strerror_r
16070 mule_backup_CPPFLAGS="$CPPFLAGS"
16071 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
16072 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16073 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
16074 ac_have_decl=1
16075 else
16076 ac_have_decl=0
16079 cat >>confdefs.h <<_ACEOF
16080 #define HAVE_DECL_STRERROR_R $ac_have_decl
16081 _ACEOF
16083 for ac_func in strerror_r
16084 do :
16085 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16086 if test "x$ac_cv_func_strerror_r" = x""yes; then :
16087 cat >>confdefs.h <<_ACEOF
16088 #define HAVE_STRERROR_R 1
16089 _ACEOF
16092 done
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16095 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16096 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
16097 $as_echo_n "(cached) " >&6
16098 else
16100 ac_cv_func_strerror_r_char_p=no
16101 if test $ac_cv_have_decl_strerror_r = yes; then
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16104 $ac_includes_default
16106 main ()
16109 char buf[100];
16110 char x = *strerror_r (0, buf, sizeof buf);
16111 char *p = strerror_r (0, buf, sizeof buf);
16112 return !p || x;
16115 return 0;
16117 _ACEOF
16118 if ac_fn_c_try_compile "$LINENO"; then :
16119 ac_cv_func_strerror_r_char_p=yes
16121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122 else
16123 # strerror_r is not declared. Choose between
16124 # systems that have relatively inaccessible declarations for the
16125 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16126 # former has a strerror_r that returns char*, while the latter
16127 # has a strerror_r that returns `int'.
16128 # This test should segfault on the DEC system.
16129 if test "$cross_compiling" = yes; then :
16131 else
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16134 $ac_includes_default
16135 extern char *strerror_r ();
16137 main ()
16139 char buf[100];
16140 char x = *strerror_r (0, buf, sizeof buf);
16141 return ! isalpha (x);
16143 return 0;
16145 _ACEOF
16146 if ac_fn_c_try_run "$LINENO"; then :
16147 ac_cv_func_strerror_r_char_p=yes
16149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16150 conftest.$ac_objext conftest.beam conftest.$ac_ext
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16157 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16158 if test $ac_cv_func_strerror_r_char_p = yes; then
16160 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16164 CPPFLAGS="$mule_backup_CPPFLAGS"
16167 # Other tests
16169 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16171 $as_echo_n "checking for docdir... " >&6; }
16172 if test -z "$docdir"; then :
16173 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16176 $as_echo "$docdir" >&6; }
16179 # Try to set the SVN checkout-date
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16181 $as_echo_n "checking for SVNDATE... " >&6; }
16182 modified=
16183 if test -f "$srcdir/.svn-revision"; then
16184 svndate="rev. `cat $srcdir/.svn-revision`"
16185 elif test -d "$srcdir"/.svn; then
16186 svndate="rev. `svnversion "$srcdir" | ${SED} -e 'h;s/[0-9][0-9]*:\(.*\)/\1/;s/\([0-9][0-9]*\).*/\1/;x;/.*M.*/{x;s/$/+/;b;};x'`"
16187 elif test -d "$srcdir"/.git; then
16189 git_revision=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16190 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16191 modified="+"
16193 if test -f $srcdir/.git/svn/.metadata ; then
16194 git_sha=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16195 svndate=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16196 svn_revision=\`git --git-dir="$srcdir"/.git svn find-rev \${sha}\`
16197 if test -n "\${svn_revision}" ; then
16198 if test \${sha} = ${git_sha} ; then
16199 echo "rev. \${svn_revision}${modified}"
16200 else
16201 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16203 break
16205 done`
16206 else
16207 svndate="rev. g${git_revision}${modified}"
16210 elif test -d "$srcdir"/.hg; then
16212 hg_revision=`hg --cwd "$srcdir" identify --id`
16213 hg_revid=${hg_revision%+}
16214 if test ${hg_revision} != ${hg_revid} ; then
16215 modified="+"
16217 if test -f "$srcdir"/.hg/svn/uuid ; then
16218 svndate=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16219 if test \${svn_revision} != r ; then
16220 if test \${hg_sha} = ${hg_revid} ; then
16221 echo "rev. \${svn_revision#r}${modified}"
16222 else
16223 echo "rev. \${svn_revision#r}+h${hg_revision}"
16225 break
16227 done`
16228 else
16229 svndate="rev. h${hg_revision}"
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16236 $as_echo "${svndate:-None required}" >&6; }
16237 if test -n "$svndate"; then :
16240 cat >>confdefs.h <<_ACEOF
16241 #define SVNDATE "$svndate"
16242 _ACEOF
16244 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
16247 SVNDATE=$svndate
16252 # Check whether --with-denoise-level was given.
16253 if test "${with_denoise_level+set}" = set; then :
16254 withval=$with_denoise_level;
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16259 $as_echo_n "checking denoising level... " >&6; }
16260 if test ${with_denoise_level:-5} = yes; then :
16261 with_denoise_level=5
16263 if test ${with_denoise_level:-5} = no; then :
16264 with_denoise_level=0
16266 if test ${with_denoise_level:-5} -gt 4; then :
16267 if test "${svndate:+set}" = "set"; then :
16268 with_denoise_level=0
16269 else
16270 with_denoise_level=4
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16274 $as_echo "$with_denoise_level" >&6; }
16276 ac_config_commands="$ac_config_commands denoiser"
16281 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16283 # Check whether --enable-ccache was given.
16284 if test "${enable_ccache+set}" = set; then :
16285 enableval=$enable_ccache;
16291 # Check whether --with-ccache-prefix was given.
16292 if test "${with_ccache_prefix+set}" = set; then :
16293 withval=$with_ccache_prefix;
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16298 $as_echo_n "checking whether ccache support should be added... " >&6; }
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16300 $as_echo "${enable_ccache:-no}" >&6; }
16302 if test ${enable_ccache:-no} = yes; then :
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16305 $as_echo_n "checking for ccache presence... " >&6; }
16306 if test -z "$with_ccache_prefix"; then :
16308 ccache_full=`which ccache`
16309 with_ccache_prefix=`dirname ${ccache_full}`
16312 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
16314 CC="$with_ccache_prefix/ccache $CC"
16315 CXX="$with_ccache_prefix/ccache $CXX"
16316 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
16318 else
16319 enable_ccache=no
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16322 $as_echo "${enable_ccache:-no}" >&6; }
16329 if test x$SYS = xwin32; then
16330 SYS_WIN32_TRUE=
16331 SYS_WIN32_FALSE='#'
16332 else
16333 SYS_WIN32_TRUE='#'
16334 SYS_WIN32_FALSE=
16337 if test x$SYS = xwin32 -a "$RC" != ":" -a x$WX_PORT = xmsw; then
16338 NEED_RC_TRUE=
16339 NEED_RC_FALSE='#'
16340 else
16341 NEED_RC_TRUE='#'
16342 NEED_RC_FALSE=
16345 if test x$SYS = xdarwin; then
16346 NEED_CORESERVICES_TRUE=
16347 NEED_CORESERVICES_FALSE='#'
16348 else
16349 NEED_CORESERVICES_TRUE='#'
16350 NEED_CORESERVICES_FALSE=
16353 if test x$USE_NLS = xyes; then
16354 COMPILE_NLS_TRUE=
16355 COMPILE_NLS_FALSE='#'
16356 else
16357 COMPILE_NLS_TRUE='#'
16358 COMPILE_NLS_FALSE=
16361 if test x$HAVE_FLEX_EXTENDED = xyes; then
16362 GENERATE_FLEX_HEADER_TRUE=
16363 GENERATE_FLEX_HEADER_FALSE='#'
16364 else
16365 GENERATE_FLEX_HEADER_TRUE='#'
16366 GENERATE_FLEX_HEADER_FALSE=
16369 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16370 INSTALL_SKINS_TRUE=
16371 INSTALL_SKINS_FALSE='#'
16372 else
16373 INSTALL_SKINS_TRUE='#'
16374 INSTALL_SKINS_FALSE=
16377 if test ${enable_plasmamule:-no} = yes; then
16378 PLASMAMULE_TRUE=
16379 PLASMAMULE_FALSE='#'
16380 else
16381 PLASMAMULE_TRUE='#'
16382 PLASMAMULE_FALSE=
16386 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
16387 COMPILE_LIB_COMMON_TRUE=
16388 COMPILE_LIB_COMMON_FALSE='#'
16389 else
16390 COMPILE_LIB_COMMON_TRUE='#'
16391 COMPILE_LIB_COMMON_FALSE=
16394 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
16395 COMPILE_LIB_EC_TRUE=
16396 COMPILE_LIB_EC_FALSE='#'
16397 else
16398 COMPILE_LIB_EC_TRUE='#'
16399 COMPILE_LIB_EC_FALSE=
16403 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"
16406 if test x$SYS = xwin32; then :
16407 ac_config_files="$ac_config_files version.rc"
16410 cat >confcache <<\_ACEOF
16411 # This file is a shell script that caches the results of configure
16412 # tests run on this system so they can be shared between configure
16413 # scripts and configure runs, see configure's option --config-cache.
16414 # It is not useful on other systems. If it contains results you don't
16415 # want to keep, you may remove or edit it.
16417 # config.status only pays attention to the cache file if you give it
16418 # the --recheck option to rerun configure.
16420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16422 # following values.
16424 _ACEOF
16426 # The following way of writing the cache mishandles newlines in values,
16427 # but we know of no workaround that is simple, portable, and efficient.
16428 # So, we kill variables containing newlines.
16429 # Ultrix sh set writes to stderr and can't be redirected directly,
16430 # and sets the high bit in the cache file unless we assign to the vars.
16432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16433 eval ac_val=\$$ac_var
16434 case $ac_val in #(
16435 *${as_nl}*)
16436 case $ac_var in #(
16437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16439 esac
16440 case $ac_var in #(
16441 _ | IFS | as_nl) ;; #(
16442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16443 *) { eval $ac_var=; unset $ac_var;} ;;
16444 esac ;;
16445 esac
16446 done
16448 (set) 2>&1 |
16449 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16450 *${as_nl}ac_space=\ *)
16451 # `set' does not quote correctly, so add quotes: double-quote
16452 # substitution turns \\\\ into \\, and sed turns \\ into \.
16453 sed -n \
16454 "s/'/'\\\\''/g;
16455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16456 ;; #(
16458 # `set' quotes correctly as required by POSIX, so do not add quotes.
16459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16461 esac |
16462 sort
16464 sed '
16465 /^ac_cv_env_/b end
16466 t clear
16467 :clear
16468 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16469 t end
16470 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16471 :end' >>confcache
16472 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16473 if test -w "$cache_file"; then
16474 test "x$cache_file" != "x/dev/null" &&
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16476 $as_echo "$as_me: updating cache $cache_file" >&6;}
16477 cat confcache >$cache_file
16478 else
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16480 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16483 rm -f confcache
16485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16486 # Let make expand exec_prefix.
16487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16489 DEFS=-DHAVE_CONFIG_H
16491 ac_libobjs=
16492 ac_ltlibobjs=
16493 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16494 # 1. Remove the extension, and $U if already installed.
16495 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16496 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16497 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16498 # will be set to the directory where LIBOBJS objects are built.
16499 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16500 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16501 done
16502 LIBOBJS=$ac_libobjs
16504 LTLIBOBJS=$ac_ltlibobjs
16507 if test -n "$EXEEXT"; then
16508 am__EXEEXT_TRUE=
16509 am__EXEEXT_FALSE='#'
16510 else
16511 am__EXEEXT_TRUE='#'
16512 am__EXEEXT_FALSE=
16515 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16516 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16519 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16520 as_fn_error "conditional \"AMDEP\" was never defined.
16521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16523 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16524 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16527 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16528 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16531 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16532 as_fn_error "conditional \"MONOLITHIC\" was never defined.
16533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16535 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16536 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
16537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16539 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16540 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
16541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16543 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16544 as_fn_error "conditional \"WEB\" was never defined.
16545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16547 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16548 as_fn_error "conditional \"AMULE_GUI\" was never defined.
16549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16551 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16552 as_fn_error "conditional \"CAS\" was never defined.
16553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16555 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16556 as_fn_error "conditional \"WXCAS\" was never defined.
16557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16559 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16560 as_fn_error "conditional \"ED2K\" was never defined.
16561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16563 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16564 as_fn_error "conditional \"ALC\" was never defined.
16565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16567 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16568 as_fn_error "conditional \"ALCC\" was never defined.
16569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16571 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16572 as_fn_error "conditional \"XAS\" was never defined.
16573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16576 as_fn_error "conditional \"FILEVIEW\" was never defined.
16577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16579 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16580 as_fn_error "conditional \"SYS_WIN32\" was never defined.
16581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16584 as_fn_error "conditional \"NEED_RC\" was never defined.
16585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16588 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
16589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16591 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16592 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
16593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16595 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
16596 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
16597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16599 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16600 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
16601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16603 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16604 as_fn_error "conditional \"PLASMAMULE\" was never defined.
16605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16607 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16608 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
16609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16611 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16612 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
16613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16616 : ${CONFIG_STATUS=./config.status}
16617 ac_write_fail=0
16618 ac_clean_files_save=$ac_clean_files
16619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16622 as_write_fail=0
16623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16624 #! $SHELL
16625 # Generated by $as_me.
16626 # Run this file to recreate the current configuration.
16627 # Compiler output produced by configure, useful for debugging
16628 # configure, is in config.log if it exists.
16630 debug=false
16631 ac_cs_recheck=false
16632 ac_cs_silent=false
16634 SHELL=\${CONFIG_SHELL-$SHELL}
16635 export SHELL
16636 _ASEOF
16637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16638 ## -------------------- ##
16639 ## M4sh Initialization. ##
16640 ## -------------------- ##
16642 # Be more Bourne compatible
16643 DUALCASE=1; export DUALCASE # for MKS sh
16644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16645 emulate sh
16646 NULLCMD=:
16647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16648 # is contrary to our usage. Disable this feature.
16649 alias -g '${1+"$@"}'='"$@"'
16650 setopt NO_GLOB_SUBST
16651 else
16652 case `(set -o) 2>/dev/null` in #(
16653 *posix*) :
16654 set -o posix ;; #(
16655 *) :
16657 esac
16661 as_nl='
16663 export as_nl
16664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16668 # Prefer a ksh shell builtin over an external printf program on Solaris,
16669 # but without wasting forks for bash or zsh.
16670 if test -z "$BASH_VERSION$ZSH_VERSION" \
16671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16672 as_echo='print -r --'
16673 as_echo_n='print -rn --'
16674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16675 as_echo='printf %s\n'
16676 as_echo_n='printf %s'
16677 else
16678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16680 as_echo_n='/usr/ucb/echo -n'
16681 else
16682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16683 as_echo_n_body='eval
16684 arg=$1;
16685 case $arg in #(
16686 *"$as_nl"*)
16687 expr "X$arg" : "X\\(.*\\)$as_nl";
16688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16689 esac;
16690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16692 export as_echo_n_body
16693 as_echo_n='sh -c $as_echo_n_body as_echo'
16695 export as_echo_body
16696 as_echo='sh -c $as_echo_body as_echo'
16699 # The user is always right.
16700 if test "${PATH_SEPARATOR+set}" != set; then
16701 PATH_SEPARATOR=:
16702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16704 PATH_SEPARATOR=';'
16709 # IFS
16710 # We need space, tab and new line, in precisely that order. Quoting is
16711 # there to prevent editors from complaining about space-tab.
16712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16713 # splitting by setting IFS to empty value.)
16714 IFS=" "" $as_nl"
16716 # Find who we are. Look in the path if we contain no directory separator.
16717 case $0 in #((
16718 *[\\/]* ) as_myself=$0 ;;
16719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16720 for as_dir in $PATH
16722 IFS=$as_save_IFS
16723 test -z "$as_dir" && as_dir=.
16724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16725 done
16726 IFS=$as_save_IFS
16729 esac
16730 # We did not find ourselves, most probably we were run as `sh COMMAND'
16731 # in which case we are not to be found in the path.
16732 if test "x$as_myself" = x; then
16733 as_myself=$0
16735 if test ! -f "$as_myself"; then
16736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16737 exit 1
16740 # Unset variables that we do not need and which cause bugs (e.g. in
16741 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16742 # suppresses any "Segmentation fault" message there. '((' could
16743 # trigger a bug in pdksh 5.2.14.
16744 for as_var in BASH_ENV ENV MAIL MAILPATH
16745 do eval test x\${$as_var+set} = xset \
16746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16747 done
16748 PS1='$ '
16749 PS2='> '
16750 PS4='+ '
16752 # NLS nuisances.
16753 LC_ALL=C
16754 export LC_ALL
16755 LANGUAGE=C
16756 export LANGUAGE
16758 # CDPATH.
16759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16762 # as_fn_error ERROR [LINENO LOG_FD]
16763 # ---------------------------------
16764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16766 # script with status $?, using 1 if that was 0.
16767 as_fn_error ()
16769 as_status=$?; test $as_status -eq 0 && as_status=1
16770 if test "$3"; then
16771 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16774 $as_echo "$as_me: error: $1" >&2
16775 as_fn_exit $as_status
16776 } # as_fn_error
16779 # as_fn_set_status STATUS
16780 # -----------------------
16781 # Set $? to STATUS, without forking.
16782 as_fn_set_status ()
16784 return $1
16785 } # as_fn_set_status
16787 # as_fn_exit STATUS
16788 # -----------------
16789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16790 as_fn_exit ()
16792 set +e
16793 as_fn_set_status $1
16794 exit $1
16795 } # as_fn_exit
16797 # as_fn_unset VAR
16798 # ---------------
16799 # Portably unset VAR.
16800 as_fn_unset ()
16802 { eval $1=; unset $1;}
16804 as_unset=as_fn_unset
16805 # as_fn_append VAR VALUE
16806 # ----------------------
16807 # Append the text in VALUE to the end of the definition contained in VAR. Take
16808 # advantage of any shell optimizations that allow amortized linear growth over
16809 # repeated appends, instead of the typical quadratic growth present in naive
16810 # implementations.
16811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16812 eval 'as_fn_append ()
16814 eval $1+=\$2
16816 else
16817 as_fn_append ()
16819 eval $1=\$$1\$2
16821 fi # as_fn_append
16823 # as_fn_arith ARG...
16824 # ------------------
16825 # Perform arithmetic evaluation on the ARGs, and store the result in the
16826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16827 # must be portable across $(()) and expr.
16828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16829 eval 'as_fn_arith ()
16831 as_val=$(( $* ))
16833 else
16834 as_fn_arith ()
16836 as_val=`expr "$@" || test $? -eq 1`
16838 fi # as_fn_arith
16841 if expr a : '\(a\)' >/dev/null 2>&1 &&
16842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16843 as_expr=expr
16844 else
16845 as_expr=false
16848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16849 as_basename=basename
16850 else
16851 as_basename=false
16854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16855 as_dirname=dirname
16856 else
16857 as_dirname=false
16860 as_me=`$as_basename -- "$0" ||
16861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16862 X"$0" : 'X\(//\)$' \| \
16863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16864 $as_echo X/"$0" |
16865 sed '/^.*\/\([^/][^/]*\)\/*$/{
16866 s//\1/
16869 /^X\/\(\/\/\)$/{
16870 s//\1/
16873 /^X\/\(\/\).*/{
16874 s//\1/
16877 s/.*/./; q'`
16879 # Avoid depending upon Character Ranges.
16880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16883 as_cr_digits='0123456789'
16884 as_cr_alnum=$as_cr_Letters$as_cr_digits
16886 ECHO_C= ECHO_N= ECHO_T=
16887 case `echo -n x` in #(((((
16888 -n*)
16889 case `echo 'xy\c'` in
16890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16891 xy) ECHO_C='\c';;
16892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16893 ECHO_T=' ';;
16894 esac;;
16896 ECHO_N='-n';;
16897 esac
16899 rm -f conf$$ conf$$.exe conf$$.file
16900 if test -d conf$$.dir; then
16901 rm -f conf$$.dir/conf$$.file
16902 else
16903 rm -f conf$$.dir
16904 mkdir conf$$.dir 2>/dev/null
16906 if (echo >conf$$.file) 2>/dev/null; then
16907 if ln -s conf$$.file conf$$ 2>/dev/null; then
16908 as_ln_s='ln -s'
16909 # ... but there are two gotchas:
16910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16912 # In both cases, we have to default to `cp -p'.
16913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16914 as_ln_s='cp -p'
16915 elif ln conf$$.file conf$$ 2>/dev/null; then
16916 as_ln_s=ln
16917 else
16918 as_ln_s='cp -p'
16920 else
16921 as_ln_s='cp -p'
16923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16924 rmdir conf$$.dir 2>/dev/null
16927 # as_fn_mkdir_p
16928 # -------------
16929 # Create "$as_dir" as a directory, including parents if necessary.
16930 as_fn_mkdir_p ()
16933 case $as_dir in #(
16934 -*) as_dir=./$as_dir;;
16935 esac
16936 test -d "$as_dir" || eval $as_mkdir_p || {
16937 as_dirs=
16938 while :; do
16939 case $as_dir in #(
16940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16941 *) as_qdir=$as_dir;;
16942 esac
16943 as_dirs="'$as_qdir' $as_dirs"
16944 as_dir=`$as_dirname -- "$as_dir" ||
16945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16946 X"$as_dir" : 'X\(//\)[^/]' \| \
16947 X"$as_dir" : 'X\(//\)$' \| \
16948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16949 $as_echo X"$as_dir" |
16950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16951 s//\1/
16954 /^X\(\/\/\)[^/].*/{
16955 s//\1/
16958 /^X\(\/\/\)$/{
16959 s//\1/
16962 /^X\(\/\).*/{
16963 s//\1/
16966 s/.*/./; q'`
16967 test -d "$as_dir" && break
16968 done
16969 test -z "$as_dirs" || eval "mkdir $as_dirs"
16970 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16973 } # as_fn_mkdir_p
16974 if mkdir -p . 2>/dev/null; then
16975 as_mkdir_p='mkdir -p "$as_dir"'
16976 else
16977 test -d ./-p && rmdir ./-p
16978 as_mkdir_p=false
16981 if test -x / >/dev/null 2>&1; then
16982 as_test_x='test -x'
16983 else
16984 if ls -dL / >/dev/null 2>&1; then
16985 as_ls_L_option=L
16986 else
16987 as_ls_L_option=
16989 as_test_x='
16990 eval sh -c '\''
16991 if test -d "$1"; then
16992 test -d "$1/.";
16993 else
16994 case $1 in #(
16995 -*)set "./$1";;
16996 esac;
16997 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16998 ???[sx]*):;;*)false;;esac;fi
16999 '\'' sh
17002 as_executable_p=$as_test_x
17004 # Sed expression to map a string onto a valid CPP name.
17005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17007 # Sed expression to map a string onto a valid variable name.
17008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17011 exec 6>&1
17012 ## ----------------------------------- ##
17013 ## Main body of $CONFIG_STATUS script. ##
17014 ## ----------------------------------- ##
17015 _ASEOF
17016 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17019 # Save the log message, to keep $0 and so on meaningful, and to
17020 # report actual input values of CONFIG_FILES etc. instead of their
17021 # values after options handling.
17022 ac_log="
17023 This file was extended by aMule $as_me SVN, which was
17024 generated by GNU Autoconf 2.65. Invocation command line was
17026 CONFIG_FILES = $CONFIG_FILES
17027 CONFIG_HEADERS = $CONFIG_HEADERS
17028 CONFIG_LINKS = $CONFIG_LINKS
17029 CONFIG_COMMANDS = $CONFIG_COMMANDS
17030 $ $0 $@
17032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17035 _ACEOF
17037 case $ac_config_files in *"
17038 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17039 esac
17041 case $ac_config_headers in *"
17042 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17043 esac
17046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17047 # Files that config.status was made for.
17048 config_files="$ac_config_files"
17049 config_headers="$ac_config_headers"
17050 config_commands="$ac_config_commands"
17052 _ACEOF
17054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17055 ac_cs_usage="\
17056 \`$as_me' instantiates files and other configuration actions
17057 from templates according to the current configuration. Unless the files
17058 and actions are specified as TAGs, all are instantiated by default.
17060 Usage: $0 [OPTION]... [TAG]...
17062 -h, --help print this help, then exit
17063 -V, --version print version number and configuration settings, then exit
17064 --config print configuration, then exit
17065 -q, --quiet, --silent
17066 do not print progress messages
17067 -d, --debug don't remove temporary files
17068 --recheck update $as_me by reconfiguring in the same conditions
17069 --file=FILE[:TEMPLATE]
17070 instantiate the configuration file FILE
17071 --header=FILE[:TEMPLATE]
17072 instantiate the configuration header FILE
17074 Configuration files:
17075 $config_files
17077 Configuration headers:
17078 $config_headers
17080 Configuration commands:
17081 $config_commands
17083 Report bugs to <admin@amule.org>."
17085 _ACEOF
17086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17087 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17088 ac_cs_version="\\
17089 aMule config.status SVN
17090 configured by $0, generated by GNU Autoconf 2.65,
17091 with options \\"\$ac_cs_config\\"
17093 Copyright (C) 2009 Free Software Foundation, Inc.
17094 This config.status script is free software; the Free Software Foundation
17095 gives unlimited permission to copy, distribute and modify it."
17097 ac_pwd='$ac_pwd'
17098 srcdir='$srcdir'
17099 INSTALL='$INSTALL'
17100 MKDIR_P='$MKDIR_P'
17101 AWK='$AWK'
17102 test -n "\$AWK" || AWK=awk
17103 _ACEOF
17105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17106 # The default lists apply if the user does not specify any file.
17107 ac_need_defaults=:
17108 while test $# != 0
17110 case $1 in
17111 --*=*)
17112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17113 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17114 ac_shift=:
17117 ac_option=$1
17118 ac_optarg=$2
17119 ac_shift=shift
17121 esac
17123 case $ac_option in
17124 # Handling of the options.
17125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17126 ac_cs_recheck=: ;;
17127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17128 $as_echo "$ac_cs_version"; exit ;;
17129 --config | --confi | --conf | --con | --co | --c )
17130 $as_echo "$ac_cs_config"; exit ;;
17131 --debug | --debu | --deb | --de | --d | -d )
17132 debug=: ;;
17133 --file | --fil | --fi | --f )
17134 $ac_shift
17135 case $ac_optarg in
17136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17137 esac
17138 as_fn_append CONFIG_FILES " '$ac_optarg'"
17139 ac_need_defaults=false;;
17140 --header | --heade | --head | --hea )
17141 $ac_shift
17142 case $ac_optarg in
17143 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17144 esac
17145 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17146 ac_need_defaults=false;;
17147 --he | --h)
17148 # Conflict between --help and --header
17149 as_fn_error "ambiguous option: \`$1'
17150 Try \`$0 --help' for more information.";;
17151 --help | --hel | -h )
17152 $as_echo "$ac_cs_usage"; exit ;;
17153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17155 ac_cs_silent=: ;;
17157 # This is an error.
17158 -*) as_fn_error "unrecognized option: \`$1'
17159 Try \`$0 --help' for more information." ;;
17161 *) as_fn_append ac_config_targets " $1"
17162 ac_need_defaults=false ;;
17164 esac
17165 shift
17166 done
17168 ac_configure_extra_args=
17170 if $ac_cs_silent; then
17171 exec 6>/dev/null
17172 ac_configure_extra_args="$ac_configure_extra_args --silent"
17175 _ACEOF
17176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17177 if \$ac_cs_recheck; then
17178 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17179 shift
17180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17181 CONFIG_SHELL='$SHELL'
17182 export CONFIG_SHELL
17183 exec "\$@"
17186 _ACEOF
17187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17188 exec 5>>config.log
17190 echo
17191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17192 ## Running $as_me. ##
17193 _ASBOX
17194 $as_echo "$ac_log"
17195 } >&5
17197 _ACEOF
17198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17200 # INIT-COMMANDS
17202 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17203 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17204 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17205 # from automake.
17206 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17207 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17208 LINGUAS="${LINGUAS-%UNSET%}"
17210 denoiserlevel=$with_denoise_level
17212 _ACEOF
17214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17216 # Handling of arguments.
17217 for ac_config_target in $ac_config_targets
17219 case $ac_config_target in
17220 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17221 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17222 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17223 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
17224 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17225 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17226 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
17227 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17228 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17229 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17230 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
17231 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17232 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
17233 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
17234 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17235 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
17236 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17237 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17238 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17239 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17240 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
17241 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17242 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17243 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17244 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17245 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17246 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17247 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
17248 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17249 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17250 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
17251 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
17252 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
17253 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
17254 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
17255 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17256 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
17257 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
17259 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17260 esac
17261 done
17264 # If the user did not use the arguments to specify the items to instantiate,
17265 # then the envvar interface is used. Set only those that are not.
17266 # We use the long form for the default assignment because of an extremely
17267 # bizarre bug on SunOS 4.1.3.
17268 if $ac_need_defaults; then
17269 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17270 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17274 # Have a temporary directory for convenience. Make it in the build tree
17275 # simply because there is no reason against having it here, and in addition,
17276 # creating and moving files from /tmp can sometimes cause problems.
17277 # Hook for its removal unless debugging.
17278 # Note that there is a small window in which the directory will not be cleaned:
17279 # after its creation but before its name has been assigned to `$tmp'.
17280 $debug ||
17282 tmp=
17283 trap 'exit_status=$?
17284 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17286 trap 'as_fn_exit 1' 1 2 13 15
17288 # Create a (secure) tmp directory for tmp files.
17291 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17292 test -n "$tmp" && test -d "$tmp"
17293 } ||
17295 tmp=./conf$$-$RANDOM
17296 (umask 077 && mkdir "$tmp")
17297 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17299 # Set up the scripts for CONFIG_FILES section.
17300 # No need to generate them if there are no CONFIG_FILES.
17301 # This happens for instance with `./config.status config.h'.
17302 if test -n "$CONFIG_FILES"; then
17305 ac_cr=`echo X | tr X '\015'`
17306 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17307 # But we know of no other shell where ac_cr would be empty at this
17308 # point, so we can use a bashism as a fallback.
17309 if test "x$ac_cr" = x; then
17310 eval ac_cr=\$\'\\r\'
17312 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17313 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17314 ac_cs_awk_cr='\r'
17315 else
17316 ac_cs_awk_cr=$ac_cr
17319 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17320 _ACEOF
17324 echo "cat >conf$$subs.awk <<_ACEOF" &&
17325 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17326 echo "_ACEOF"
17327 } >conf$$subs.sh ||
17328 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17329 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17330 ac_delim='%!_!# '
17331 for ac_last_try in false false false false false :; do
17332 . ./conf$$subs.sh ||
17333 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17335 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17336 if test $ac_delim_n = $ac_delim_num; then
17337 break
17338 elif $ac_last_try; then
17339 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17340 else
17341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17343 done
17344 rm -f conf$$subs.sh
17346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17347 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17348 _ACEOF
17349 sed -n '
17351 s/^/S["/; s/!.*/"]=/
17354 s/^[^!]*!//
17355 :repl
17356 t repl
17357 s/'"$ac_delim"'$//
17358 t delim
17361 s/\(.\{148\}\)..*/\1/
17362 t more1
17363 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17366 b repl
17367 :more1
17368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17371 s/.\{148\}//
17372 t nl
17373 :delim
17375 s/\(.\{148\}\)..*/\1/
17376 t more2
17377 s/["\\]/\\&/g; s/^/"/; s/$/"/
17380 :more2
17381 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17384 s/.\{148\}//
17385 t delim
17386 ' <conf$$subs.awk | sed '
17387 /^[^""]/{
17389 s/\n//
17391 ' >>$CONFIG_STATUS || ac_write_fail=1
17392 rm -f conf$$subs.awk
17393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17394 _ACAWK
17395 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17396 for (key in S) S_is_set[key] = 1
17397 FS = "\a"
17401 line = $ 0
17402 nfields = split(line, field, "@")
17403 substed = 0
17404 len = length(field[1])
17405 for (i = 2; i < nfields; i++) {
17406 key = field[i]
17407 keylen = length(key)
17408 if (S_is_set[key]) {
17409 value = S[key]
17410 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17411 len += length(value) + length(field[++i])
17412 substed = 1
17413 } else
17414 len += 1 + keylen
17417 print line
17420 _ACAWK
17421 _ACEOF
17422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17423 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17424 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17425 else
17427 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17428 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17429 _ACEOF
17431 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17432 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17433 # trailing colons and then remove the whole line if VPATH becomes empty
17434 # (actually we leave an empty line to preserve line numbers).
17435 if test "x$srcdir" = x.; then
17436 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17437 s/:*\$(srcdir):*/:/
17438 s/:*\${srcdir}:*/:/
17439 s/:*@srcdir@:*/:/
17440 s/^\([^=]*=[ ]*\):*/\1/
17441 s/:*$//
17442 s/^[^=]*=[ ]*$//
17446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17447 fi # test -n "$CONFIG_FILES"
17449 # Set up the scripts for CONFIG_HEADERS section.
17450 # No need to generate them if there are no CONFIG_HEADERS.
17451 # This happens for instance with `./config.status Makefile'.
17452 if test -n "$CONFIG_HEADERS"; then
17453 cat >"$tmp/defines.awk" <<\_ACAWK ||
17454 BEGIN {
17455 _ACEOF
17457 # Transform confdefs.h into an awk script `defines.awk', embedded as
17458 # here-document in config.status, that substitutes the proper values into
17459 # config.h.in to produce config.h.
17461 # Create a delimiter string that does not exist in confdefs.h, to ease
17462 # handling of long lines.
17463 ac_delim='%!_!# '
17464 for ac_last_try in false false :; do
17465 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17466 if test -z "$ac_t"; then
17467 break
17468 elif $ac_last_try; then
17469 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17470 else
17471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17473 done
17475 # For the awk script, D is an array of macro values keyed by name,
17476 # likewise P contains macro parameters if any. Preserve backslash
17477 # newline sequences.
17479 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17480 sed -n '
17481 s/.\{148\}/&'"$ac_delim"'/g
17482 t rset
17483 :rset
17484 s/^[ ]*#[ ]*define[ ][ ]*/ /
17485 t def
17487 :def
17488 s/\\$//
17489 t bsnl
17490 s/["\\]/\\&/g
17491 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17492 D["\1"]=" \3"/p
17493 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17495 :bsnl
17496 s/["\\]/\\&/g
17497 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17498 D["\1"]=" \3\\\\\\n"\\/p
17499 t cont
17500 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17501 t cont
17503 :cont
17505 s/.\{148\}/&'"$ac_delim"'/g
17506 t clear
17507 :clear
17508 s/\\$//
17509 t bsnlc
17510 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17512 :bsnlc
17513 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17514 b cont
17515 ' <confdefs.h | sed '
17516 s/'"$ac_delim"'/"\\\
17517 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17520 for (key in D) D_is_set[key] = 1
17521 FS = "\a"
17523 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17524 line = \$ 0
17525 split(line, arg, " ")
17526 if (arg[1] == "#") {
17527 defundef = arg[2]
17528 mac1 = arg[3]
17529 } else {
17530 defundef = substr(arg[1], 2)
17531 mac1 = arg[2]
17533 split(mac1, mac2, "(") #)
17534 macro = mac2[1]
17535 prefix = substr(line, 1, index(line, defundef) - 1)
17536 if (D_is_set[macro]) {
17537 # Preserve the white space surrounding the "#".
17538 print prefix "define", macro P[macro] D[macro]
17539 next
17540 } else {
17541 # Replace #undef with comments. This is necessary, for example,
17542 # in the case of _POSIX_SOURCE, which is predefined and required
17543 # on some systems where configure will not decide to define it.
17544 if (defundef == "undef") {
17545 print "/*", prefix defundef, macro, "*/"
17546 next
17550 { print }
17551 _ACAWK
17552 _ACEOF
17553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17554 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17555 fi # test -n "$CONFIG_HEADERS"
17558 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17559 shift
17560 for ac_tag
17562 case $ac_tag in
17563 :[FHLC]) ac_mode=$ac_tag; continue;;
17564 esac
17565 case $ac_mode$ac_tag in
17566 :[FHL]*:*);;
17567 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17568 :[FH]-) ac_tag=-:-;;
17569 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17570 esac
17571 ac_save_IFS=$IFS
17572 IFS=:
17573 set x $ac_tag
17574 IFS=$ac_save_IFS
17575 shift
17576 ac_file=$1
17577 shift
17579 case $ac_mode in
17580 :L) ac_source=$1;;
17581 :[FH])
17582 ac_file_inputs=
17583 for ac_f
17585 case $ac_f in
17586 -) ac_f="$tmp/stdin";;
17587 *) # Look for the file first in the build tree, then in the source tree
17588 # (if the path is not absolute). The absolute path cannot be DOS-style,
17589 # because $ac_f cannot contain `:'.
17590 test -f "$ac_f" ||
17591 case $ac_f in
17592 [\\/$]*) false;;
17593 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17594 esac ||
17595 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17596 esac
17597 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17598 as_fn_append ac_file_inputs " '$ac_f'"
17599 done
17601 # Let's still pretend it is `configure' which instantiates (i.e., don't
17602 # use $as_me), people would be surprised to read:
17603 # /* config.h. Generated by config.status. */
17604 configure_input='Generated from '`
17605 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17606 `' by configure.'
17607 if test x"$ac_file" != x-; then
17608 configure_input="$ac_file. $configure_input"
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17610 $as_echo "$as_me: creating $ac_file" >&6;}
17612 # Neutralize special characters interpreted by sed in replacement strings.
17613 case $configure_input in #(
17614 *\&* | *\|* | *\\* )
17615 ac_sed_conf_input=`$as_echo "$configure_input" |
17616 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17617 *) ac_sed_conf_input=$configure_input;;
17618 esac
17620 case $ac_tag in
17621 *:-:* | *:-) cat >"$tmp/stdin" \
17622 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17623 esac
17625 esac
17627 ac_dir=`$as_dirname -- "$ac_file" ||
17628 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17629 X"$ac_file" : 'X\(//\)[^/]' \| \
17630 X"$ac_file" : 'X\(//\)$' \| \
17631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17632 $as_echo X"$ac_file" |
17633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17634 s//\1/
17637 /^X\(\/\/\)[^/].*/{
17638 s//\1/
17641 /^X\(\/\/\)$/{
17642 s//\1/
17645 /^X\(\/\).*/{
17646 s//\1/
17649 s/.*/./; q'`
17650 as_dir="$ac_dir"; as_fn_mkdir_p
17651 ac_builddir=.
17653 case "$ac_dir" in
17654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17657 # A ".." for each directory in $ac_dir_suffix.
17658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17659 case $ac_top_builddir_sub in
17660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17662 esac ;;
17663 esac
17664 ac_abs_top_builddir=$ac_pwd
17665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17666 # for backward compatibility:
17667 ac_top_builddir=$ac_top_build_prefix
17669 case $srcdir in
17670 .) # We are building in place.
17671 ac_srcdir=.
17672 ac_top_srcdir=$ac_top_builddir_sub
17673 ac_abs_top_srcdir=$ac_pwd ;;
17674 [\\/]* | ?:[\\/]* ) # Absolute name.
17675 ac_srcdir=$srcdir$ac_dir_suffix;
17676 ac_top_srcdir=$srcdir
17677 ac_abs_top_srcdir=$srcdir ;;
17678 *) # Relative name.
17679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17680 ac_top_srcdir=$ac_top_build_prefix$srcdir
17681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17682 esac
17683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17686 case $ac_mode in
17689 # CONFIG_FILE
17692 case $INSTALL in
17693 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17694 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17695 esac
17696 ac_MKDIR_P=$MKDIR_P
17697 case $MKDIR_P in
17698 [\\/$]* | ?:[\\/]* ) ;;
17699 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17700 esac
17701 _ACEOF
17703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17704 # If the template does not know about datarootdir, expand it.
17705 # FIXME: This hack should be removed a few years after 2.60.
17706 ac_datarootdir_hack=; ac_datarootdir_seen=
17707 ac_sed_dataroot='
17708 /datarootdir/ {
17712 /@datadir@/p
17713 /@docdir@/p
17714 /@infodir@/p
17715 /@localedir@/p
17716 /@mandir@/p'
17717 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17718 *datarootdir*) ac_datarootdir_seen=yes;;
17719 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17721 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17722 _ACEOF
17723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17724 ac_datarootdir_hack='
17725 s&@datadir@&$datadir&g
17726 s&@docdir@&$docdir&g
17727 s&@infodir@&$infodir&g
17728 s&@localedir@&$localedir&g
17729 s&@mandir@&$mandir&g
17730 s&\\\${datarootdir}&$datarootdir&g' ;;
17731 esac
17732 _ACEOF
17734 # Neutralize VPATH when `$srcdir' = `.'.
17735 # Shell code in configure.ac might set extrasub.
17736 # FIXME: do we really want to maintain this feature?
17737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17738 ac_sed_extra="$ac_vpsub
17739 $extrasub
17740 _ACEOF
17741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17744 s|@configure_input@|$ac_sed_conf_input|;t t
17745 s&@top_builddir@&$ac_top_builddir_sub&;t t
17746 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17747 s&@srcdir@&$ac_srcdir&;t t
17748 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17749 s&@top_srcdir@&$ac_top_srcdir&;t t
17750 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17751 s&@builddir@&$ac_builddir&;t t
17752 s&@abs_builddir@&$ac_abs_builddir&;t t
17753 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17754 s&@INSTALL@&$ac_INSTALL&;t t
17755 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17756 $ac_datarootdir_hack
17758 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17759 || as_fn_error "could not create $ac_file" "$LINENO" 5
17761 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17762 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17765 which seems to be undefined. Please make sure it is defined." >&5
17766 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17767 which seems to be undefined. Please make sure it is defined." >&2;}
17769 rm -f "$tmp/stdin"
17770 case $ac_file in
17771 -) cat "$tmp/out" && rm -f "$tmp/out";;
17772 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17773 esac \
17774 || as_fn_error "could not create $ac_file" "$LINENO" 5
17778 # CONFIG_HEADER
17780 if test x"$ac_file" != x-; then
17782 $as_echo "/* $configure_input */" \
17783 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17784 } >"$tmp/config.h" \
17785 || as_fn_error "could not create $ac_file" "$LINENO" 5
17786 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17788 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17789 else
17790 rm -f "$ac_file"
17791 mv "$tmp/config.h" "$ac_file" \
17792 || as_fn_error "could not create $ac_file" "$LINENO" 5
17794 else
17795 $as_echo "/* $configure_input */" \
17796 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17797 || as_fn_error "could not create -" "$LINENO" 5
17799 # Compute "$ac_file"'s index in $config_headers.
17800 _am_arg="$ac_file"
17801 _am_stamp_count=1
17802 for _am_header in $config_headers :; do
17803 case $_am_header in
17804 $_am_arg | $_am_arg:* )
17805 break ;;
17807 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17808 esac
17809 done
17810 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17811 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17812 X"$_am_arg" : 'X\(//\)[^/]' \| \
17813 X"$_am_arg" : 'X\(//\)$' \| \
17814 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17815 $as_echo X"$_am_arg" |
17816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17817 s//\1/
17820 /^X\(\/\/\)[^/].*/{
17821 s//\1/
17824 /^X\(\/\/\)$/{
17825 s//\1/
17828 /^X\(\/\).*/{
17829 s//\1/
17832 s/.*/./; q'`/stamp-h$_am_stamp_count
17835 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17836 $as_echo "$as_me: executing $ac_file commands" >&6;}
17838 esac
17841 case $ac_file$ac_mode in
17842 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17843 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17844 # are listed without --file. Let's play safe and only enable the eval
17845 # if we detect the quoting.
17846 case $CONFIG_FILES in
17847 *\'*) eval set x "$CONFIG_FILES" ;;
17848 *) set x $CONFIG_FILES ;;
17849 esac
17850 shift
17851 for mf
17853 # Strip MF so we end up with the name of the file.
17854 mf=`echo "$mf" | sed -e 's/:.*$//'`
17855 # Check whether this is an Automake generated Makefile or not.
17856 # We used to match only the files named `Makefile.in', but
17857 # some people rename them; so instead we look at the file content.
17858 # Grep'ing the first line is not enough: some people post-process
17859 # each Makefile.in and add a new line on top of each file to say so.
17860 # Grep'ing the whole file is not good either: AIX grep has a line
17861 # limit of 2048, but all sed's we know have understand at least 4000.
17862 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17863 dirpart=`$as_dirname -- "$mf" ||
17864 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17865 X"$mf" : 'X\(//\)[^/]' \| \
17866 X"$mf" : 'X\(//\)$' \| \
17867 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17868 $as_echo X"$mf" |
17869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17870 s//\1/
17873 /^X\(\/\/\)[^/].*/{
17874 s//\1/
17877 /^X\(\/\/\)$/{
17878 s//\1/
17881 /^X\(\/\).*/{
17882 s//\1/
17885 s/.*/./; q'`
17886 else
17887 continue
17889 # Extract the definition of DEPDIR, am__include, and am__quote
17890 # from the Makefile without running `make'.
17891 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17892 test -z "$DEPDIR" && continue
17893 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17894 test -z "am__include" && continue
17895 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17896 # When using ansi2knr, U may be empty or an underscore; expand it
17897 U=`sed -n 's/^U = //p' < "$mf"`
17898 # Find all dependency output files, they are included files with
17899 # $(DEPDIR) in their names. We invoke sed twice because it is the
17900 # simplest approach to changing $(DEPDIR) to its actual value in the
17901 # expansion.
17902 for file in `sed -n "
17903 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17904 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17905 # Make sure the directory exists.
17906 test -f "$dirpart/$file" && continue
17907 fdir=`$as_dirname -- "$file" ||
17908 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17909 X"$file" : 'X\(//\)[^/]' \| \
17910 X"$file" : 'X\(//\)$' \| \
17911 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17912 $as_echo X"$file" |
17913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17914 s//\1/
17917 /^X\(\/\/\)[^/].*/{
17918 s//\1/
17921 /^X\(\/\/\)$/{
17922 s//\1/
17925 /^X\(\/\).*/{
17926 s//\1/
17929 s/.*/./; q'`
17930 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17931 # echo "creating $dirpart/$file"
17932 echo '# dummy' > "$dirpart/$file"
17933 done
17934 done
17937 "default-1":C)
17938 for ac_file in $CONFIG_FILES; do
17939 # Support "outfile[:infile[:infile...]]"
17940 case "$ac_file" in
17941 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17942 esac
17943 # PO directories have a Makefile.in generated from Makefile.in.in.
17944 case "$ac_file" in */Makefile.in)
17945 # Adjust a relative srcdir.
17946 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17947 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17948 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17949 # In autoconf-2.13 it is called $ac_given_srcdir.
17950 # In autoconf-2.50 it is called $srcdir.
17951 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17952 case "$ac_given_srcdir" in
17953 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17954 /*) top_srcdir="$ac_given_srcdir" ;;
17955 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17956 esac
17957 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17958 rm -f "$ac_dir/POTFILES"
17959 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17960 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17961 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17962 # on $ac_dir but don't depend on user-specified configuration
17963 # parameters.
17964 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17965 # The LINGUAS file contains the set of available languages.
17966 if test -n "$ALL_LINGUAS"; then
17967 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17969 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17970 # Hide the ALL_LINGUAS assigment from automake.
17971 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17973 case "$ac_given_srcdir" in
17974 .) srcdirpre= ;;
17975 *) srcdirpre='$(srcdir)/' ;;
17976 esac
17977 POFILES=
17978 GMOFILES=
17979 UPDATEPOFILES=
17980 DUMMYPOFILES=
17981 for lang in $ALL_LINGUAS; do
17982 POFILES="$POFILES $srcdirpre$lang.po"
17983 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17984 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17985 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17986 done
17987 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17988 # environment variable.
17989 INST_LINGUAS=
17990 if test -n "$ALL_LINGUAS"; then
17991 for presentlang in $ALL_LINGUAS; do
17992 useit=no
17993 if test "%UNSET%" != "$LINGUAS"; then
17994 desiredlanguages="$LINGUAS"
17995 else
17996 desiredlanguages="$ALL_LINGUAS"
17998 for desiredlang in $desiredlanguages; do
17999 # Use the presentlang catalog if desiredlang is
18000 # a. equal to presentlang, or
18001 # b. a variant of presentlang (because in this case,
18002 # presentlang can be used as a fallback for messages
18003 # which are not translated in the desiredlang catalog).
18004 case "$desiredlang" in
18005 "$presentlang"*) useit=yes;;
18006 esac
18007 done
18008 if test $useit = yes; then
18009 INST_LINGUAS="$INST_LINGUAS $presentlang"
18011 done
18013 CATALOGS=
18014 if test -n "$INST_LINGUAS"; then
18015 for lang in $INST_LINGUAS; do
18016 CATALOGS="$CATALOGS $lang.gmo"
18017 done
18019 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18020 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"
18021 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18022 if test -f "$f"; then
18023 case "$f" in
18024 *.orig | *.bak | *~) ;;
18025 *) cat "$f" >> "$ac_dir/Makefile" ;;
18026 esac
18028 done
18031 esac
18032 done ;;
18033 "denoiser":C) if test $denoiserlevel -gt 0; then
18034 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
18035 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" \
18036 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
18037 for i in `find . -name 'Makefile' -print`; do
18038 if test -n "`head -n 1 $i | grep '^#'`"; then
18039 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
18041 done
18042 fi ;;
18044 esac
18045 done # for ac_tag
18048 as_fn_exit 0
18049 _ACEOF
18050 ac_clean_files=$ac_clean_files_save
18052 test $ac_write_fail = 0 ||
18053 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18056 # configure is writing to config.log, and then calls config.status.
18057 # config.status does its own redirection, appending to config.log.
18058 # Unfortunately, on DOS this fails, as config.log is still kept open
18059 # by configure, so config.status won't be able to write to it; its
18060 # output is simply discarded. So we exec the FD to /dev/null,
18061 # effectively closing config.log, so it can be properly (re)opened and
18062 # appended to by config.status. When coming back to configure, we
18063 # need to make the FD available again.
18064 if test "$no_create" != yes; then
18065 ac_cs_success=:
18066 ac_config_status_args=
18067 test "$silent" = yes &&
18068 ac_config_status_args="$ac_config_status_args --quiet"
18069 exec 5>/dev/null
18070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18071 exec 5>>config.log
18072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18073 # would make configure fail if this is the last instruction.
18074 $ac_cs_success || as_fn_exit $?
18076 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18078 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18082 if test -n "$svndate"; then :
18083 SVN_REVISION=" ($svndate)"
18084 else
18085 SVN_REVISION=
18088 echo
18089 echo
18090 echo " Configure script has finished system check."
18091 echo
18092 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
18093 echo
18094 echo " aMule enabled options:"
18095 echo
18096 echo " **** aMule Core ****"
18097 echo " Prefix where aMule should be installed? ${prefix:-none}"
18098 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
18099 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
18100 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
18101 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
18102 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
18103 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
18104 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
18105 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18106 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18108 echo
18109 echo " **** aMule TextClient ****"
18110 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18111 echo
18112 echo " **** aMule WebServer ****"
18113 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18114 echo
18115 echo " **** aMule ED2K Links Handler ****"
18116 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18117 echo
18118 echo " **** aMuleLinkCreator ****"
18119 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18120 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18121 echo
18122 echo " **** aMule Statistics ****"
18123 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18124 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18125 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18126 echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}"
18128 echo
18129 echo " **** General Libraries and Tools ****"
18130 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18131 echo " Libraries aMule will use to build:"
18132 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 :
18134 wxinfo="$WX_PORT"
18135 if test $WX_DEBUG -eq 1; then :
18136 wxinfo="$wxinfo,debug"
18138 if test $WX_SHARED -eq 1; then :
18139 wxinfo="$wxinfo,shared"
18140 else
18141 wxinfo="$wxinfo,static"
18143 echo " wxWidgets ${WX_VERSION} ($wxinfo)"
18146 if test ${with_boost:-no} != no; then :
18147 if test ${with_boost:-no} = disabled; then
18148 echo " boost Not detected"
18149 elif test ${boost_cv_inc_path:-yes} != yes; then
18150 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18151 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18156 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18157 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})"
18159 if test ${enable_upnp:-yes} = yes; then :
18161 if test -n "$with_libupnp_prefix"; then :
18162 libupnp_place=" (in $with_libupnp_prefix)"
18164 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18167 if test ${enable_nls:-yes} = yes; then
18168 if test x$USE_NLS = xno; then :
18169 libintl_found="Not detected"
18170 else
18171 if test x$USE_INCLUDED_LIBINTL = xyes; then :
18172 libintl_found="included"
18173 else
18174 libintl_found="system"
18177 echo " libintl $libintl_found"
18179 if test ${enable_geoip:-no} = yes; then :
18180 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18181 geoip_style=system
18182 else
18183 geoip_style=user
18185 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18186 echo " libGeoIP ${geoip_style}"
18189 if test ${enable_webserver:-no} = yes; then :
18190 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18192 if test ${enable_cas:-no} = yes; then :
18193 echo " libgd ${GDLIB_VERSION:-Not detected}"
18195 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 :
18196 echo " zlib ${ZLIB_VERSION:-Not detected}"
18198 if test ${enable_plasmamule:-no} = yes; then :
18199 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18200 echo " qt-core-libs ${QT_CORE_LIBS}"
18201 echo " qt-gui-libs ${QT_GUI_LIBS}"
18202 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18203 echo " kde-headers ${KDE_HEADER_DIR}"
18204 echo " kde-services-path ${KDE_SERVICE_PATH}"
18205 echo " kde-module-path ${KDE_MODULE_PATH}"
18206 echo " kde-icon-path ${KDE_ICON_PATH}"
18207 echo " kde-mime-path ${KDE_MIME_PATH}"
18208 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18211 if test ${_mule_has_warnings:-no} = yes; then
18212 echo ""
18213 echo ""
18214 echo " *** Warnings during configuration ***"
18216 if test ${_mule_warning_0:-no} = yes; then
18217 cat <<_MULEEOT
18219 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18220 Please check that gdlib-config is in your default path, check out
18221 LD_LIBRARY_PATH or equivalent variable.
18222 Or this might also be that your gdlib-config has other name.
18223 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18224 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18225 If you use compiled packages check if you have devel pack installed.
18226 To download the latest version check http://www.boutell.com/gd for sources.
18227 _MULEEOT
18229 if test ${_mule_warning_1:-no} = yes; then
18230 cat <<_MULEEOT
18232 * libpng >= 1.2.0 not found.
18233 amuleweb will be compiled but file download progress bar images will NOT be
18234 generated.
18235 _MULEEOT
18237 if test ${_mule_warning_2:-no} = yes; then
18238 cat <<_MULEEOT
18240 * File::Copy perl module is required by the mldonkey_importer script.
18241 If you want to use this script please install File::Copy from CPAN.
18242 _MULEEOT
18244 if test ${_mule_warning_3:-no} = yes; then
18245 cat <<_MULEEOT
18247 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18248 _MULEEOT
18250 if test ${_mule_warning_4:-no} = yes; then
18251 cat <<_MULEEOT
18253 * GeoIP support has been disabled because the GeoIP libraries were not found
18254 _MULEEOT
18256 if test ${_mule_warning_5:-no} = yes; then
18257 cat <<_MULEEOT
18259 * GeoIP support has been disabled because the GeoIP header files were not
18260 found
18261 _MULEEOT
18263 if test ${_mule_warning_6:-no} = yes; then
18264 cat <<_MULEEOT
18266 * UPnP code has been disabled because ${libupnp_error}.
18267 _MULEEOT
18269 if test ${_mule_warning_7:-no} = yes; then
18270 cat <<_MULEEOT
18272 * Cross-compilation detected, so exception handling cannot be tested.
18273 Note that broken exception handling in your compiler may lead to unexpected
18274 crashes.
18275 _MULEEOT
18277 if test ${_mule_warning_8:-no} = yes; then
18278 cat <<_MULEEOT
18280 * Boost support has been disabled because Boost.System not found
18281 _MULEEOT
18283 if test ${_mule_warning_9:-no} = yes; then
18284 cat <<_MULEEOT
18286 * Boost support has been disabled because Boost.Asio not found
18287 _MULEEOT
18289 if test ${_mule_warning_10:-no} = yes; then
18290 cat <<_MULEEOT
18292 * Boost support has been disabled because Boost.Asio not found
18293 _MULEEOT
18295 if test ${_mule_warning_11:-no} = yes; then
18296 cat <<_MULEEOT
18298 * Boost support has been disabled because of insufficient Boost version.
18299 _MULEEOT
18301 if test ${_mule_warning_12:-no} = yes; then
18302 cat <<_MULEEOT
18304 * configure cannot check whether malloc() and realloc() are GNU libc
18305 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18306 configure with the --without-gnu-malloc switch.
18307 _MULEEOT
18309 if test ${_mule_warning_13:-no} = yes; then
18310 cat <<_MULEEOT
18312 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18313 support.
18314 _MULEEOT
18316 if test ${_mule_warning_14:-no} = yes; then
18317 cat <<_MULEEOT
18319 * Cannot link to the library containing the bfd functions.
18320 _MULEEOT
18322 if test ${_mule_warning_15:-no} = yes; then
18323 cat <<_MULEEOT
18325 * bfd.h not found or unusable, please install binutils development package if
18326 you are a developer or want to help testing aMule
18327 _MULEEOT