Fixed nodes.dat default url again (gav616)
[amule.git] / configure
blobd4c9dda46fbbcb0c572db2f7d7ad073c8c1ba758
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 READLINE_LIBS
602 COMPILE_LIB_EC_FALSE
603 COMPILE_LIB_EC_TRUE
604 COMPILE_LIB_COMMON_FALSE
605 COMPILE_LIB_COMMON_TRUE
606 PLASMAMULE_FALSE
607 PLASMAMULE_TRUE
608 INSTALL_SKINS_FALSE
609 INSTALL_SKINS_TRUE
610 GENERATE_FLEX_HEADER_FALSE
611 GENERATE_FLEX_HEADER_TRUE
612 COMPILE_NLS_FALSE
613 COMPILE_NLS_TRUE
614 NEED_CORESERVICES_FALSE
615 NEED_CORESERVICES_TRUE
616 NEED_RC_FALSE
617 NEED_RC_TRUE
618 SYS_WIN32_FALSE
619 SYS_WIN32_TRUE
620 DEBUGFLAG
621 KDE_MIME_PATH
622 KDE_ICON_PATH
623 KDE_MODULE_PATH
624 KDE_SERVICE_PATH
625 KDE_APPLNK_PATH
626 KDE_HEADER_DIR
627 KDE4_CONFIG
628 QT_GUI_LIBS
629 QT_GUI_CXXFLAGS
630 QT_CORE_LIBS
631 QT_CORE_CXXFLAGS
632 QT_DBUS_LDFLAGS
633 QT_MOC
634 SVNDATE
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 CRYPTOPP_LIBS
674 CRYPTOPP_LDFLAGS
675 CRYPTOPP_CPPFLAGS
676 LIBUPNP_LIBS
677 LIBUPNP_LDFLAGS
678 LIBUPNP_CFLAGS
679 LIBUPNP_CPPFLAGS
680 PKG_CONFIG
681 RCFLAGS
683 WXBASE_CPPFLAGS
684 WXBASE_LIBS
685 WX_PORT
686 WX_SHARED
687 WX_DEBUG
688 WX_UNICODE
689 WX_VERSION_MINOR
690 WX_VERSION_MAJOR
691 WX_RESCOMP
692 WX_VERSION_FULL
693 WX_LIBS
694 WX_CXXFLAGS_ONLY
695 WX_CFLAGS_ONLY
696 WX_CXXFLAGS
697 WX_CFLAGS
698 WX_CPPFLAGS
699 WX_CONFIG_PATH
700 AMULEWEB_DEFS
701 LIBPNG_LIBS
702 LIBPNG_LDFLAGS
703 LIBPNG_CFLAGS
704 LIBPNG_CONFIG_PATH
705 CAS_DEFS
706 GDLIB_LIBS
707 GDLIB_LDFLAGS
708 GDLIB_CFLAGS
709 GDLIB_CONFIG_PATH
710 ZLIB_LIBS
711 ZLIB_LDFLAGS
712 ZLIB_CPPFLAGS
713 FILEVIEW_FALSE
714 FILEVIEW_TRUE
715 XAS_FALSE
716 XAS_TRUE
717 ALCC_FALSE
718 ALCC_TRUE
719 ALC_FALSE
720 ALC_TRUE
721 ED2K_FALSE
722 ED2K_TRUE
723 WXCAS_FALSE
724 WXCAS_TRUE
725 CAS_FALSE
726 CAS_TRUE
727 AMULE_GUI_FALSE
728 AMULE_GUI_TRUE
729 WEB_FALSE
730 WEB_TRUE
731 COMPILE_CMD_FALSE
732 COMPILE_CMD_TRUE
733 AMULE_DAEMON_FALSE
734 AMULE_DAEMON_TRUE
735 MONOLITHIC_FALSE
736 MONOLITHIC_TRUE
739 YFLAGS
740 YACC
741 RANLIB
742 LEXLIB
743 LEX_OUTPUT_ROOT
745 EGREP
746 GREP
747 BUILD_LDFLAGS
748 BUILD_CFLAGS
749 BUILD_CPPFLAGS
750 BUILD_EXEEXT
751 ac_ct_BUILD_CC
752 BUILD_CC
754 am__fastdepCC_FALSE
755 am__fastdepCC_TRUE
756 CCDEPMODE
757 ac_ct_CC
758 CFLAGS
760 CXXCPP
761 am__fastdepCXX_FALSE
762 am__fastdepCXX_TRUE
763 CXXDEPMODE
764 AMDEPBACKSLASH
765 AMDEP_FALSE
766 AMDEP_TRUE
767 am__quote
768 am__include
769 DEPDIR
770 OBJEXT
771 EXEEXT
772 ac_ct_CXX
773 CPPFLAGS
774 LDFLAGS
775 CXXFLAGS
777 MULERCFLAGS
778 MULELDFLAGS
779 MULECXXFLAGS
780 MULECFLAGS
781 MULECPPFLAGS
782 RESOLV_LIB
783 host_os
784 host_vendor
785 host_cpu
786 host
787 build_os
788 build_vendor
789 build_cpu
790 build
791 MAINT
792 MAINTAINER_MODE_FALSE
793 MAINTAINER_MODE_TRUE
794 AM_BACKSLASH
795 AM_DEFAULT_VERBOSITY
796 am__untar
797 am__tar
798 AMTAR
799 am__leading_dot
800 SET_MAKE
802 mkdir_p
803 MKDIR_P
804 INSTALL_STRIP_PROGRAM
805 STRIP
806 install_sh
807 MAKEINFO
808 AUTOHEADER
809 AUTOMAKE
810 AUTOCONF
811 ACLOCAL
812 VERSION
813 PACKAGE
814 CYGPATH_W
815 am__isrc
816 INSTALL_DATA
817 INSTALL_SCRIPT
818 INSTALL_PROGRAM
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL
857 GEOIP_LIBS
858 GEOIP_LDFLAGS
859 GEOIP_CPPFLAGS'
860 ac_subst_files=''
861 ac_user_opts='
862 enable_option_checking
863 enable_silent_rules
864 enable_maintainer_mode
865 enable_dependency_tracking
866 enable_monolithic
867 enable_amule_daemon
868 enable_amulecmd
869 enable_webserver
870 enable_amule_gui
871 enable_cas
872 enable_wxcas
873 enable_ed2k
874 enable_alc
875 enable_alcc
876 enable_xas
877 enable_fileview
878 enable_plasmamule
879 enable_static
880 with_kde4_config
881 enable_kde_in_home
882 with_moc
883 with_gnu_malloc
884 with_zlib
885 with_gdlib_prefix
886 with_gdlib_config
887 with_libpng_prefix
888 with_libpng_config
889 enable_geoip
890 with_geoip_headers
891 with_geoip_lib
892 with_geoip_static
893 with_wxdir
894 with_wx_config
895 with_wx_prefix
896 with_wx_exec_prefix
897 with_toolkit
898 with_wxshared
899 with_wxdebug
900 with_wxversion
901 enable_upnp
902 with_libupnp_prefix
903 with_crypto_prefix
904 enable_debug
905 enable_profile
906 enable_optimize
907 enable_mmap
908 with_language
909 with_gnu_ld
910 enable_rpath
911 with_libiconv_prefix
912 enable_nls
913 with_included_gettext
914 with_libintl_prefix
915 with_denoise_level
916 enable_ccache
917 with_ccache_prefix
919 ac_precious_vars='build_alias
920 host_alias
921 target_alias
923 CXXFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
928 CXXCPP
930 CFLAGS
932 YACC
933 YFLAGS
935 RCFLAGS
936 PKG_CONFIG'
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 ac_unrecognized_opts=
943 ac_unrecognized_sep=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
946 cache_file=/dev/null
947 exec_prefix=NONE
948 no_create=
949 no_recursion=
950 prefix=NONE
951 program_prefix=NONE
952 program_suffix=NONE
953 program_transform_name=s,x,x,
954 silent=
955 site=
956 srcdir=
957 verbose=
958 x_includes=NONE
959 x_libraries=NONE
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir='${datarootdir}/info'
979 htmldir='${docdir}'
980 dvidir='${docdir}'
981 pdfdir='${docdir}'
982 psdir='${docdir}'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
987 ac_prev=
988 ac_dashdash=
989 for ac_option
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
994 ac_prev=
995 continue
998 case $ac_option in
999 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 *) ac_optarg=yes ;;
1001 esac
1003 # Accept the important Cygnus configure options, so we can diagnose typos.
1005 case $ac_dashdash$ac_option in
1007 ac_dashdash=yes ;;
1009 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010 ac_prev=bindir ;;
1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012 bindir=$ac_optarg ;;
1014 -build | --build | --buil | --bui | --bu)
1015 ac_prev=build_alias ;;
1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017 build_alias=$ac_optarg ;;
1019 -cache-file | --cache-file | --cache-fil | --cache-fi \
1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021 ac_prev=cache_file ;;
1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024 cache_file=$ac_optarg ;;
1026 --config-cache | -C)
1027 cache_file=config.cache ;;
1029 -datadir | --datadir | --datadi | --datad)
1030 ac_prev=datadir ;;
1031 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032 datadir=$ac_optarg ;;
1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035 | --dataroo | --dataro | --datar)
1036 ac_prev=datarootdir ;;
1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039 datarootdir=$ac_optarg ;;
1041 -disable-* | --disable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=no ;;
1057 -docdir | --docdir | --docdi | --doc | --do)
1058 ac_prev=docdir ;;
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 ac_prev=dvidir ;;
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1067 -enable-* | --enable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=\$ac_optarg ;;
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1271 -with-* | --with-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1296 "with_$ac_useropt"
1297 "*) ;;
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1300 esac
1301 eval with_$ac_useropt=no ;;
1303 --x)
1304 # Obsolete; use --with-x.
1305 with_x=yes ;;
1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308 | --x-incl | --x-inc | --x-in | --x-i)
1309 ac_prev=x_includes ;;
1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312 x_includes=$ac_optarg ;;
1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316 ac_prev=x_libraries ;;
1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319 x_libraries=$ac_optarg ;;
1321 -*) as_fn_error "unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information."
1325 *=*)
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 case $ac_envvar in #(
1329 '' | [0-9]* | *[!_$as_cr_alnum]* )
1330 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1331 esac
1332 eval $ac_envvar=\$ac_optarg
1333 export $ac_envvar ;;
1336 # FIXME: should be removed in autoconf 3.0.
1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343 esac
1344 done
1346 if test -n "$ac_prev"; then
1347 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348 as_fn_error "missing argument to $ac_option"
1351 if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1353 no) ;;
1354 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356 esac
1359 # Check all directory arguments for consistency.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1365 eval ac_val=\$$ac_var
1366 # Remove trailing slashes.
1367 case $ac_val in
1368 */ )
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
1371 esac
1372 # Be sure to have absolute directory names.
1373 case $ac_val in
1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376 esac
1377 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1378 done
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1383 build=$build_alias
1384 host=$host_alias
1385 target=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1394 cross_compiling=yes
1398 ac_tool_prefix=
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401 test "$silent" = yes && exec 6>/dev/null
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 as_fn_error "working directory cannot be determined"
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409 as_fn_error "pwd does not report name of working directory"
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414 ac_srcdir_defaulted=yes
1415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir=`$as_dirname -- "$as_myself" ||
1417 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418 X"$as_myself" : 'X\(//\)[^/]' \| \
1419 X"$as_myself" : 'X\(//\)$' \| \
1420 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421 $as_echo X"$as_myself" |
1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 s//\1/
1426 /^X\(\/\/\)[^/].*/{
1427 s//\1/
1430 /^X\(\/\/\)$/{
1431 s//\1/
1434 /^X\(\/\).*/{
1435 s//\1/
1438 s/.*/./; q'`
1439 srcdir=$ac_confdir
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 srcdir=..
1443 else
1444 ac_srcdir_defaulted=no
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 ac_abs_confdir=`(
1452 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1453 pwd)`
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 srcdir=.
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1461 case $srcdir in
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 esac
1464 for ac_var in $ac_precious_vars; do
1465 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_${ac_var}_value=\$${ac_var}
1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 done
1472 # Report the --help message.
1474 if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1477 cat <<_ACEOF
1478 \`configure' configures aMule SVN to adapt to many kinds of systems.
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1485 Defaults for the options are specified in brackets.
1487 Configuration:
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 [PREFIX]
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1509 For better control, use the options below.
1511 Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1531 _ACEOF
1533 cat <<\_ACEOF
1535 Program names:
1536 --program-prefix=PREFIX prepend PREFIX to installed program names
1537 --program-suffix=SUFFIX append SUFFIX to installed program names
1538 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1540 System types:
1541 --build=BUILD configure for building on BUILD [guessed]
1542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543 _ACEOF
1546 if test -n "$ac_init_help"; then
1547 case $ac_init_help in
1548 short | recursive ) echo "Configuration of aMule SVN:";;
1549 esac
1550 cat <<\_ACEOF
1552 Optional Features:
1553 --disable-option-checking ignore unrecognized --enable/--with options
1554 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1555 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1556 --enable-silent-rules less verbose build output (undo: `make V=1')
1557 --disable-silent-rules verbose build output (undo: `make V=0')
1558 --enable-maintainer-mode enable make rules and dependencies not useful
1559 (and sometimes confusing) to the casual installer
1560 --disable-dependency-tracking speeds up one-time build
1561 --enable-dependency-tracking do not reject slow dependency extractors
1562 --disable-monolithic disable building of the monolithic aMule app
1563 --enable-amule-daemon compile aMule daemon version
1564 --enable-amulecmd compile aMule command line client
1565 --enable-webserver compile aMule WebServer
1566 --enable-amule-gui compile aMule remote GUI
1567 --enable-cas compile C aMule Statistics
1568 --enable-wxcas compile aMule GUI Statistics
1569 --disable-ed2k don't compile aMule ed2k links handler
1570 --enable-alc compile aMuleLinkCreator GUI version
1571 --enable-alcc compile aMuleLinkCreator for console
1572 --enable-xas install xas XChat2 plugin
1573 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1574 --enable-plasmamule compile aMule plasma applet and engine
1575 --enable-static produce a statically linked executable
1576 --enable-kde-in-home install KDE related stuff in your home dir
1577 --enable-geoip compile with GeoIP IP2Country library
1578 --disable-upnp do not compile UPnP code
1579 --disable-debug disable additional debugging output
1580 --enable-profile enable code profiling
1581 --enable-optimize enable code optimization
1582 --enable-mmap enable using mapped memory if supported
1583 --disable-rpath do not hardcode runtime library paths
1584 --disable-nls do not use Native Language Support
1585 --enable-ccache enable ccache support for fast recompilation
1587 Optional Packages:
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-kde4-config=PATH kde4-config script to use
1591 --with-moc=PATH Search in PATH for Qt's meta object compiler
1592 --without-gnu-malloc Don't assume that we use GNU libc compatible
1593 malloc/realloc when cross-compiling
1594 --with-zlib=PREFIX use zlib in PREFIX
1595 --with-gdlib-prefix=PREFIX
1596 prefix where gdlib is installed (optional)
1597 --with-gdlib-config=CONFIG
1598 gdlib-config script to use (optional)
1599 --with-libpng-prefix=PREFIX
1600 prefix where libpng is installed (optional)
1601 --with-libpng-config=CONFIG
1602 libpng-config script to use (optional)
1603 --with-geoip-headers=DIR
1604 GeoIP include files location
1605 --with-geoip-lib=DIR GeoIP library location
1606 --with-geoip-static Explicitly link GeoIP statically (default=no)
1607 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1608 --with-wx-config=CONFIG wx-config script to use (optional)
1609 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1610 --with-wx-exec-prefix=PREFIX
1611 Exec prefix where wxWidgets is installed (optional)
1612 --with-toolkit Build against a specific wxWidgets toolkit (default
1613 is auto)
1614 --with-wxshared Force building against a shared build of wxWidgets,
1615 even if --disable-shared is given (default is auto)
1616 --with-wxdebug Force building against a debug build of wxWidgets,
1617 even if --disable-debug is given (default is auto)
1618 --with-wxversion Build against a specific version of wxWidgets
1619 (default is auto)
1620 --with-libupnp-prefix=PREFIX
1621 UPnP library location
1622 --with-crypto-prefix=PREFIX
1623 prefix where crypto++ is installed
1624 --with-language=<langs> Specify a comma-separated list of languages you want
1625 to have installed. See po/LINGUAS for available
1626 languages
1627 --with-gnu-ld assume the C compiler uses GNU ld default=no
1628 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1629 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1630 --with-included-gettext use the GNU gettext library included here
1631 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1632 --without-libintl-prefix don't search for libintl in includedir and libdir
1633 --with-denoise-level=<level>
1634 Specifies denoising level (0-4):
1635 0 - Do nothing
1636 4 - Suppress all normal output
1637 (for more information see
1638 src/utils/scripts/denoiser.rules)
1640 --with-ccache-prefix=PREFIX
1641 prefix where ccache is installed
1643 Some influential environment variables:
1644 CXX C++ compiler command
1645 CXXFLAGS C++ compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1651 CXXCPP C++ preprocessor
1652 CC C compiler command
1653 CFLAGS C compiler flags
1654 CPP C preprocessor
1655 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1656 the first program found out of: `bison -y', `byacc', `yacc'.
1657 YFLAGS The list of arguments that will be passed by default to $YACC.
1658 This script will default YFLAGS to the empty string to avoid a
1659 default value of `-d' given by some make applications.
1660 RC Resource Compiler
1661 RCFLAGS Resource Compiler Flags
1662 PKG_CONFIG path to pkg-config utility
1664 Use these variables to override the choices made by `configure' or to help
1665 it to find libraries and programs with nonstandard names/locations.
1667 Report bugs to <admin@amule.org>.
1668 _ACEOF
1669 ac_status=$?
1672 if test "$ac_init_help" = "recursive"; then
1673 # If there are subdirs, report their specific --help.
1674 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1675 test -d "$ac_dir" ||
1676 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1677 continue
1678 ac_builddir=.
1680 case "$ac_dir" in
1681 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1684 # A ".." for each directory in $ac_dir_suffix.
1685 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1686 case $ac_top_builddir_sub in
1687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1689 esac ;;
1690 esac
1691 ac_abs_top_builddir=$ac_pwd
1692 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1693 # for backward compatibility:
1694 ac_top_builddir=$ac_top_build_prefix
1696 case $srcdir in
1697 .) # We are building in place.
1698 ac_srcdir=.
1699 ac_top_srcdir=$ac_top_builddir_sub
1700 ac_abs_top_srcdir=$ac_pwd ;;
1701 [\\/]* | ?:[\\/]* ) # Absolute name.
1702 ac_srcdir=$srcdir$ac_dir_suffix;
1703 ac_top_srcdir=$srcdir
1704 ac_abs_top_srcdir=$srcdir ;;
1705 *) # Relative name.
1706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1707 ac_top_srcdir=$ac_top_build_prefix$srcdir
1708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1709 esac
1710 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1712 cd "$ac_dir" || { ac_status=$?; continue; }
1713 # Check for guested configure.
1714 if test -f "$ac_srcdir/configure.gnu"; then
1715 echo &&
1716 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1717 elif test -f "$ac_srcdir/configure"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure" --help=recursive
1720 else
1721 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1722 fi || ac_status=$?
1723 cd "$ac_pwd" || { ac_status=$?; break; }
1724 done
1727 test -n "$ac_init_help" && exit $ac_status
1728 if $ac_init_version; then
1729 cat <<\_ACEOF
1730 aMule configure SVN
1731 generated by GNU Autoconf 2.65
1733 Copyright (C) 2009 Free Software Foundation, Inc.
1734 This configure script is free software; the Free Software Foundation
1735 gives unlimited permission to copy, distribute and modify it.
1736 _ACEOF
1737 exit
1740 ## ------------------------ ##
1741 ## Autoconf initialization. ##
1742 ## ------------------------ ##
1744 # ac_fn_cxx_try_compile LINENO
1745 # ----------------------------
1746 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_cxx_try_compile ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext
1751 if { { ac_try="$ac_compile"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_compile") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_cxx_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest.$ac_objext; then :
1770 ac_retval=0
1771 else
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 ac_retval=1
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 as_fn_set_status $ac_retval
1780 } # ac_fn_cxx_try_compile
1782 # ac_fn_cxx_try_cpp LINENO
1783 # ------------------------
1784 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_cxx_try_cpp ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_cpp conftest.$ac_ext"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } >/dev/null && {
1804 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1805 test ! -s conftest.err
1806 }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=1
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 as_fn_set_status $ac_retval
1817 } # ac_fn_cxx_try_cpp
1819 # ac_fn_c_try_compile LINENO
1820 # --------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=1
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_c_try_compile
1857 # ac_fn_c_try_cpp LINENO
1858 # ----------------------
1859 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_c_try_cpp ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_cpp conftest.$ac_ext"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1871 ac_status=$?
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } >/dev/null && {
1879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1880 test ! -s conftest.err
1881 }; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1887 ac_retval=1
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_c_try_cpp
1894 # ac_fn_c_try_link LINENO
1895 # -----------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_c_try_link ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 $as_test_x conftest$ac_exeext
1922 }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 ac_retval=1
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_c_try_link
1940 # ac_fn_c_try_run LINENO
1941 # ----------------------
1942 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1943 # that executables *can* be run.
1944 ac_fn_c_try_run ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if { { ac_try="$ac_link"
1948 case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_link") 2>&5
1955 ac_status=$?
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1958 { { case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961 esac
1962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963 $as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_try") 2>&5
1965 ac_status=$?
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; }; }; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: program exited with status $ac_status" >&5
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1974 ac_retval=$ac_status
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1978 as_fn_set_status $ac_retval
1980 } # ac_fn_c_try_run
1982 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1983 # -------------------------------------------------------
1984 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1985 # the include files in INCLUDES and setting the cache variable VAR
1986 # accordingly.
1987 ac_fn_c_check_header_mongrel ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1996 eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 else
2000 # Is the header compilable?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2002 $as_echo_n "checking $2 usability... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_header_compiler=yes
2010 else
2011 ac_header_compiler=no
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2015 $as_echo "$ac_header_compiler" >&6; }
2017 # Is the header present?
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2019 $as_echo_n "checking $2 presence... " >&6; }
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 #include <$2>
2023 _ACEOF
2024 if ac_fn_c_try_cpp "$LINENO"; then :
2025 ac_header_preproc=yes
2026 else
2027 ac_header_preproc=no
2029 rm -f conftest.err conftest.$ac_ext
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2031 $as_echo "$ac_header_preproc" >&6; }
2033 # So? What about this header?
2034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2035 yes:no: )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2037 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2041 no:yes:* )
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2043 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2045 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2047 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2049 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2051 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2052 ( cat <<\_ASBOX
2053 ## ------------------------------ ##
2054 ## Report this to admin@amule.org ##
2055 ## ------------------------------ ##
2056 _ASBOX
2057 ) | sed "s/^/$as_me: WARNING: /" >&2
2059 esac
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2063 $as_echo_n "(cached) " >&6
2064 else
2065 eval "$3=\$ac_header_compiler"
2067 eval ac_res=\$$3
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 } # ac_fn_c_check_header_mongrel
2075 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2076 # -------------------------------------------------------
2077 # Tests whether HEADER exists and can be compiled using the include files in
2078 # INCLUDES, setting the cache variable VAR accordingly.
2079 ac_fn_c_check_header_compile ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2085 $as_echo_n "(cached) " >&6
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2090 #include <$2>
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 eval "$3=yes"
2094 else
2095 eval "$3=no"
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104 } # ac_fn_c_check_header_compile
2106 # ac_fn_cxx_try_run LINENO
2107 # ------------------------
2108 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2109 # that executables *can* be run.
2110 ac_fn_cxx_try_run ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if { { ac_try="$ac_link"
2114 case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117 esac
2118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119 $as_echo "$ac_try_echo"; } >&5
2120 (eval "$ac_link") 2>&5
2121 ac_status=$?
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2124 { { case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127 esac
2128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129 $as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_try") 2>&5
2131 ac_status=$?
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; }; }; then :
2134 ac_retval=0
2135 else
2136 $as_echo "$as_me: program exited with status $ac_status" >&5
2137 $as_echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2140 ac_retval=$ac_status
2142 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2144 as_fn_set_status $ac_retval
2146 } # ac_fn_cxx_try_run
2148 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2149 # ---------------------------------------------------------
2150 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2151 # the include files in INCLUDES and setting the cache variable VAR
2152 # accordingly.
2153 ac_fn_cxx_check_header_mongrel ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2158 $as_echo_n "checking for $2... " >&6; }
2159 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2160 $as_echo_n "(cached) " >&6
2162 eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 else
2166 # Is the header compilable?
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2168 $as_echo_n "checking $2 usability... " >&6; }
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2172 #include <$2>
2173 _ACEOF
2174 if ac_fn_cxx_try_compile "$LINENO"; then :
2175 ac_header_compiler=yes
2176 else
2177 ac_header_compiler=no
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2181 $as_echo "$ac_header_compiler" >&6; }
2183 # Is the header present?
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2185 $as_echo_n "checking $2 presence... " >&6; }
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2188 #include <$2>
2189 _ACEOF
2190 if ac_fn_cxx_try_cpp "$LINENO"; then :
2191 ac_header_preproc=yes
2192 else
2193 ac_header_preproc=no
2195 rm -f conftest.err conftest.$ac_ext
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2197 $as_echo "$ac_header_preproc" >&6; }
2199 # So? What about this header?
2200 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2201 yes:no: )
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2203 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2205 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2207 no:yes:* )
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2209 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2211 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2213 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2215 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2217 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2218 ( cat <<\_ASBOX
2219 ## ------------------------------ ##
2220 ## Report this to admin@amule.org ##
2221 ## ------------------------------ ##
2222 _ASBOX
2223 ) | sed "s/^/$as_me: WARNING: /" >&2
2225 esac
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 eval "$3=\$ac_header_compiler"
2233 eval ac_res=\$$3
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239 } # ac_fn_cxx_check_header_mongrel
2241 # ac_fn_cxx_try_link LINENO
2242 # -------------------------
2243 # Try to link conftest.$ac_ext, and return whether this succeeded.
2244 ac_fn_cxx_try_link ()
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 rm -f conftest.$ac_objext conftest$ac_exeext
2248 if { { ac_try="$ac_link"
2249 case "(($ac_try" in
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2252 esac
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_link") 2>conftest.err
2256 ac_status=$?
2257 if test -s conftest.err; then
2258 grep -v '^ *+' conftest.err >conftest.er1
2259 cat conftest.er1 >&5
2260 mv -f conftest.er1 conftest.err
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } && {
2264 test -z "$ac_cxx_werror_flag" ||
2265 test ! -s conftest.err
2266 } && test -s conftest$ac_exeext && {
2267 test "$cross_compiling" = yes ||
2268 $as_test_x conftest$ac_exeext
2269 }; then :
2270 ac_retval=0
2271 else
2272 $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2275 ac_retval=1
2277 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2278 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2279 # interfere with the next link command; also delete a directory that is
2280 # left behind by Apple's compiler. We do this before executing the actions.
2281 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2282 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2283 as_fn_set_status $ac_retval
2285 } # ac_fn_cxx_try_link
2287 # ac_fn_c_check_func LINENO FUNC VAR
2288 # ----------------------------------
2289 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2290 ac_fn_c_check_func ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2296 $as_echo_n "(cached) " >&6
2297 else
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2302 #define $2 innocuous_$2
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $2 (); below.
2306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2307 <limits.h> exists even on freestanding compilers. */
2309 #ifdef __STDC__
2310 # include <limits.h>
2311 #else
2312 # include <assert.h>
2313 #endif
2315 #undef $2
2317 /* Override any GCC internal prototype to avoid an error.
2318 Use char because int might match the return type of a GCC
2319 builtin and then its argument prototype would still apply. */
2320 #ifdef __cplusplus
2321 extern "C"
2322 #endif
2323 char $2 ();
2324 /* The GNU C library defines this for functions which it implements
2325 to always fail with ENOSYS. Some functions are actually named
2326 something starting with __ and the normal name is an alias. */
2327 #if defined __stub_$2 || defined __stub___$2
2328 choke me
2329 #endif
2332 main ()
2334 return $2 ();
2336 return 0;
2338 _ACEOF
2339 if ac_fn_c_try_link "$LINENO"; then :
2340 eval "$3=yes"
2341 else
2342 eval "$3=no"
2344 rm -f core conftest.err conftest.$ac_objext \
2345 conftest$ac_exeext conftest.$ac_ext
2347 eval ac_res=\$$3
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352 } # ac_fn_c_check_func
2354 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2355 # -------------------------------------------
2356 # Tests whether TYPE exists after having included INCLUDES, setting cache
2357 # variable VAR accordingly.
2358 ac_fn_c_check_type ()
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 eval "$3=no"
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2371 main ()
2373 if (sizeof ($2))
2374 return 0;
2376 return 0;
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"; then :
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2384 main ()
2386 if (sizeof (($2)))
2387 return 0;
2389 return 0;
2391 _ACEOF
2392 if ac_fn_c_try_compile "$LINENO"; then :
2394 else
2395 eval "$3=yes"
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406 } # ac_fn_c_check_type
2408 # ac_fn_c_check_decl LINENO SYMBOL VAR
2409 # ------------------------------------
2410 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2411 ac_fn_c_check_decl ()
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2415 $as_echo_n "checking whether $2 is declared... " >&6; }
2416 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2423 main ()
2425 #ifndef $2
2426 (void) $2;
2427 #endif
2430 return 0;
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 eval "$3=yes"
2435 else
2436 eval "$3=no"
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 eval ac_res=\$$3
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_check_decl
2446 cat >config.log <<_ACEOF
2447 This file contains any messages produced by compilers while
2448 running configure, to aid debugging if configure makes a mistake.
2450 It was created by aMule $as_me SVN, which was
2451 generated by GNU Autoconf 2.65. Invocation command line was
2453 $ $0 $@
2455 _ACEOF
2456 exec 5>>config.log
2458 cat <<_ASUNAME
2459 ## --------- ##
2460 ## Platform. ##
2461 ## --------- ##
2463 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2464 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2465 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2466 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2467 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2469 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2470 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2472 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2473 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2474 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2475 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2476 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2477 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2478 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2480 _ASUNAME
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 $as_echo "PATH: $as_dir"
2488 done
2489 IFS=$as_save_IFS
2491 } >&5
2493 cat >&5 <<_ACEOF
2496 ## ----------- ##
2497 ## Core tests. ##
2498 ## ----------- ##
2500 _ACEOF
2503 # Keep a trace of the command line.
2504 # Strip out --no-create and --no-recursion so they do not pile up.
2505 # Strip out --silent because we don't want to record it for future runs.
2506 # Also quote any args containing shell meta-characters.
2507 # Make two passes to allow for proper duplicate-argument suppression.
2508 ac_configure_args=
2509 ac_configure_args0=
2510 ac_configure_args1=
2511 ac_must_keep_next=false
2512 for ac_pass in 1 2
2514 for ac_arg
2516 case $ac_arg in
2517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2519 | -silent | --silent | --silen | --sile | --sil)
2520 continue ;;
2521 *\'*)
2522 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2523 esac
2524 case $ac_pass in
2525 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2527 as_fn_append ac_configure_args1 " '$ac_arg'"
2528 if test $ac_must_keep_next = true; then
2529 ac_must_keep_next=false # Got value, back to normal.
2530 else
2531 case $ac_arg in
2532 *=* | --config-cache | -C | -disable-* | --disable-* \
2533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2535 | -with-* | --with-* | -without-* | --without-* | --x)
2536 case "$ac_configure_args0 " in
2537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2538 esac
2540 -* ) ac_must_keep_next=true ;;
2541 esac
2543 as_fn_append ac_configure_args " '$ac_arg'"
2545 esac
2546 done
2547 done
2548 { ac_configure_args0=; unset ac_configure_args0;}
2549 { ac_configure_args1=; unset ac_configure_args1;}
2551 # When interrupted or exit'd, cleanup temporary files, and complete
2552 # config.log. We remove comments because anyway the quotes in there
2553 # would cause problems or look ugly.
2554 # WARNING: Use '\'' to represent an apostrophe within the trap.
2555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2556 trap 'exit_status=$?
2557 # Save into config.log some information that might help in debugging.
2559 echo
2561 cat <<\_ASBOX
2562 ## ---------------- ##
2563 ## Cache variables. ##
2564 ## ---------------- ##
2565 _ASBOX
2566 echo
2567 # The following way of writing the cache mishandles newlines in values,
2569 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2570 eval ac_val=\$$ac_var
2571 case $ac_val in #(
2572 *${as_nl}*)
2573 case $ac_var in #(
2574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2576 esac
2577 case $ac_var in #(
2578 _ | IFS | as_nl) ;; #(
2579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2580 *) { eval $ac_var=; unset $ac_var;} ;;
2581 esac ;;
2582 esac
2583 done
2584 (set) 2>&1 |
2585 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2586 *${as_nl}ac_space=\ *)
2587 sed -n \
2588 "s/'\''/'\''\\\\'\'''\''/g;
2589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2590 ;; #(
2592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2594 esac |
2595 sort
2597 echo
2599 cat <<\_ASBOX
2600 ## ----------------- ##
2601 ## Output variables. ##
2602 ## ----------------- ##
2603 _ASBOX
2604 echo
2605 for ac_var in $ac_subst_vars
2607 eval ac_val=\$$ac_var
2608 case $ac_val in
2609 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610 esac
2611 $as_echo "$ac_var='\''$ac_val'\''"
2612 done | sort
2613 echo
2615 if test -n "$ac_subst_files"; then
2616 cat <<\_ASBOX
2617 ## ------------------- ##
2618 ## File substitutions. ##
2619 ## ------------------- ##
2620 _ASBOX
2621 echo
2622 for ac_var in $ac_subst_files
2624 eval ac_val=\$$ac_var
2625 case $ac_val in
2626 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2627 esac
2628 $as_echo "$ac_var='\''$ac_val'\''"
2629 done | sort
2630 echo
2633 if test -s confdefs.h; then
2634 cat <<\_ASBOX
2635 ## ----------- ##
2636 ## confdefs.h. ##
2637 ## ----------- ##
2638 _ASBOX
2639 echo
2640 cat confdefs.h
2641 echo
2643 test "$ac_signal" != 0 &&
2644 $as_echo "$as_me: caught signal $ac_signal"
2645 $as_echo "$as_me: exit $exit_status"
2646 } >&5
2647 rm -f core *.core core.conftest.* &&
2648 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2649 exit $exit_status
2651 for ac_signal in 1 2 13 15; do
2652 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2653 done
2654 ac_signal=0
2656 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2657 rm -f -r conftest* confdefs.h
2659 $as_echo "/* confdefs.h */" > confdefs.h
2661 # Predefined preprocessor variables.
2663 cat >>confdefs.h <<_ACEOF
2664 #define PACKAGE_NAME "$PACKAGE_NAME"
2665 _ACEOF
2667 cat >>confdefs.h <<_ACEOF
2668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2669 _ACEOF
2671 cat >>confdefs.h <<_ACEOF
2672 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2673 _ACEOF
2675 cat >>confdefs.h <<_ACEOF
2676 #define PACKAGE_STRING "$PACKAGE_STRING"
2677 _ACEOF
2679 cat >>confdefs.h <<_ACEOF
2680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2681 _ACEOF
2683 cat >>confdefs.h <<_ACEOF
2684 #define PACKAGE_URL "$PACKAGE_URL"
2685 _ACEOF
2688 # Let the site file select an alternate cache file if it wants to.
2689 # Prefer an explicitly selected file to automatically selected ones.
2690 ac_site_file1=NONE
2691 ac_site_file2=NONE
2692 if test -n "$CONFIG_SITE"; then
2693 ac_site_file1=$CONFIG_SITE
2694 elif test "x$prefix" != xNONE; then
2695 ac_site_file1=$prefix/share/config.site
2696 ac_site_file2=$prefix/etc/config.site
2697 else
2698 ac_site_file1=$ac_default_prefix/share/config.site
2699 ac_site_file2=$ac_default_prefix/etc/config.site
2701 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2703 test "x$ac_site_file" = xNONE && continue
2704 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2706 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2707 sed 's/^/| /' "$ac_site_file" >&5
2708 . "$ac_site_file"
2710 done
2712 if test -r "$cache_file"; then
2713 # Some versions of bash will fail to source /dev/null (special files
2714 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2715 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2717 $as_echo "$as_me: loading cache $cache_file" >&6;}
2718 case $cache_file in
2719 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2720 *) . "./$cache_file";;
2721 esac
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2725 $as_echo "$as_me: creating cache $cache_file" >&6;}
2726 >$cache_file
2729 as_fn_append ac_header_list " stdlib.h"
2730 as_fn_append ac_header_list " unistd.h"
2731 as_fn_append ac_header_list " sys/param.h"
2732 # Check that the precious variables saved in the cache have kept the same
2733 # value.
2734 ac_cache_corrupted=false
2735 for ac_var in $ac_precious_vars; do
2736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2737 eval ac_new_set=\$ac_env_${ac_var}_set
2738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2739 eval ac_new_val=\$ac_env_${ac_var}_value
2740 case $ac_old_set,$ac_new_set in
2741 set,)
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2743 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2744 ac_cache_corrupted=: ;;
2745 ,set)
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2747 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2748 ac_cache_corrupted=: ;;
2749 ,);;
2751 if test "x$ac_old_val" != "x$ac_new_val"; then
2752 # differences in whitespace do not lead to failure.
2753 ac_old_val_w=`echo x $ac_old_val`
2754 ac_new_val_w=`echo x $ac_new_val`
2755 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2757 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2758 ac_cache_corrupted=:
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2761 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2762 eval $ac_var=\$ac_old_val
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2765 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2767 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2768 fi;;
2769 esac
2770 # Pass precious variables to config.status.
2771 if test "$ac_new_set" = set; then
2772 case $ac_new_val in
2773 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2774 *) ac_arg=$ac_var=$ac_new_val ;;
2775 esac
2776 case " $ac_configure_args " in
2777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2778 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2779 esac
2781 done
2782 if $ac_cache_corrupted; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2786 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2787 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2789 ## -------------------- ##
2790 ## Main body of script. ##
2791 ## -------------------- ##
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 am__api_version='1.11'
2802 ac_aux_dir=
2803 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2804 for ac_t in install-sh install.sh shtool; do
2805 if test -f "$ac_dir/$ac_t"; then
2806 ac_aux_dir=$ac_dir
2807 ac_install_sh="$ac_aux_dir/$ac_t -c"
2808 break 2
2810 done
2811 done
2812 if test -z "$ac_aux_dir"; then
2813 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2816 # These three variables are undocumented and unsupported,
2817 # and are intended to be withdrawn in a future Autoconf release.
2818 # They can cause serious problems if a builder's source tree is in a directory
2819 # whose full name contains unusual characters.
2820 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2821 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2822 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2825 # Find a good install program. We prefer a C program (faster),
2826 # so one script is as good as another. But avoid the broken or
2827 # incompatible versions:
2828 # SysV /etc/install, /usr/sbin/install
2829 # SunOS /usr/etc/install
2830 # IRIX /sbin/install
2831 # AIX /bin/install
2832 # AmigaOS /C/install, which installs bootblocks on floppy discs
2833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2836 # OS/2's system install, which has a completely different semantic
2837 # ./install, which can be erroneously created by make from ./install.sh.
2838 # Reject install programs that cannot install multiple files.
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2840 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2841 if test -z "$INSTALL"; then
2842 if test "${ac_cv_path_install+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 # Account for people who put trailing slashes in PATH elements.
2851 case $as_dir/ in #((
2852 ./ | .// | /[cC]/* | \
2853 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2854 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2855 /usr/ucb/* ) ;;
2857 # OSF1 and SCO ODT 3.0 have their own names for install.
2858 # Don't use installbsd from OSF since it installs stuff as root
2859 # by default.
2860 for ac_prog in ginstall scoinst install; do
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2863 if test $ac_prog = install &&
2864 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2865 # AIX install. It has an incompatible calling convention.
2867 elif test $ac_prog = install &&
2868 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2869 # program-specific install script used by HP pwplus--don't use.
2871 else
2872 rm -rf conftest.one conftest.two conftest.dir
2873 echo one > conftest.one
2874 echo two > conftest.two
2875 mkdir conftest.dir
2876 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2877 test -s conftest.one && test -s conftest.two &&
2878 test -s conftest.dir/conftest.one &&
2879 test -s conftest.dir/conftest.two
2880 then
2881 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2882 break 3
2886 done
2887 done
2889 esac
2891 done
2892 IFS=$as_save_IFS
2894 rm -rf conftest.one conftest.two conftest.dir
2897 if test "${ac_cv_path_install+set}" = set; then
2898 INSTALL=$ac_cv_path_install
2899 else
2900 # As a last resort, use the slow shell script. Don't cache a
2901 # value for INSTALL within a source directory, because that will
2902 # break other packages using the cache if that directory is
2903 # removed, or if the value is a relative name.
2904 INSTALL=$ac_install_sh
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2908 $as_echo "$INSTALL" >&6; }
2910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2911 # It thinks the first close brace ends the variable substitution.
2912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2919 $as_echo_n "checking whether build environment is sane... " >&6; }
2920 # Just in case
2921 sleep 1
2922 echo timestamp > conftest.file
2923 # Reject unsafe characters in $srcdir or the absolute working directory
2924 # name. Accept space and tab only in the latter.
2925 am_lf='
2927 case `pwd` in
2928 *[\\\"\#\$\&\'\`$am_lf]*)
2929 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2930 esac
2931 case $srcdir in
2932 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2933 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2934 esac
2936 # Do `set' in a subshell so we don't clobber the current shell's
2937 # arguments. Must try -L first in case configure is actually a
2938 # symlink; some systems play weird games with the mod time of symlinks
2939 # (eg FreeBSD returns the mod time of the symlink's containing
2940 # directory).
2941 if (
2942 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2943 if test "$*" = "X"; then
2944 # -L didn't work.
2945 set X `ls -t "$srcdir/configure" conftest.file`
2947 rm -f conftest.file
2948 if test "$*" != "X $srcdir/configure conftest.file" \
2949 && test "$*" != "X conftest.file $srcdir/configure"; then
2951 # If neither matched, then we have a broken ls. This can happen
2952 # if, for instance, CONFIG_SHELL is bash and it inherits a
2953 # broken ls alias from the environment. This has actually
2954 # happened. Such a system could not be considered "sane".
2955 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2956 alias in your environment" "$LINENO" 5
2959 test "$2" = conftest.file
2961 then
2962 # Ok.
2964 else
2965 as_fn_error "newly created file is older than distributed files!
2966 Check your system clock" "$LINENO" 5
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969 $as_echo "yes" >&6; }
2970 test "$program_prefix" != NONE &&
2971 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2972 # Use a double $ so make ignores it.
2973 test "$program_suffix" != NONE &&
2974 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2975 # Double any \ or $.
2976 # By default was `s,x,x', remove it if useless.
2977 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2978 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2980 # expand $ac_aux_dir to an absolute path
2981 am_aux_dir=`cd $ac_aux_dir && pwd`
2983 if test x"${MISSING+set}" != xset; then
2984 case $am_aux_dir in
2985 *\ * | *\ *)
2986 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2988 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2989 esac
2991 # Use eval to expand $SHELL
2992 if eval "$MISSING --run true"; then
2993 am_missing_run="$MISSING --run "
2994 else
2995 am_missing_run=
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2997 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3000 if test x"${install_sh}" != xset; then
3001 case $am_aux_dir in
3002 *\ * | *\ *)
3003 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3005 install_sh="\${SHELL} $am_aux_dir/install-sh"
3006 esac
3009 # Installed binaries are usually stripped using `strip' when the user
3010 # run `make install-strip'. However `strip' might not be the right
3011 # tool to use in cross-compilation environments, therefore Automake
3012 # will honor the `STRIP' environment variable to overrule this program.
3013 if test "$cross_compiling" != no; then
3014 if test -n "$ac_tool_prefix"; then
3015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}strip; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if test "${ac_cv_prog_STRIP+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 if test -n "$STRIP"; then
3023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3036 done
3037 done
3038 IFS=$as_save_IFS
3042 STRIP=$ac_cv_prog_STRIP
3043 if test -n "$STRIP"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3045 $as_echo "$STRIP" >&6; }
3046 else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3053 if test -z "$ac_cv_prog_STRIP"; then
3054 ac_ct_STRIP=$STRIP
3055 # Extract the first word of "strip", so it can be a program name with args.
3056 set dummy strip; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 if test -n "$ac_ct_STRIP"; then
3063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 ac_cv_prog_ac_ct_STRIP="strip"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3076 done
3077 done
3078 IFS=$as_save_IFS
3082 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3083 if test -n "$ac_ct_STRIP"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3085 $as_echo "$ac_ct_STRIP" >&6; }
3086 else
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3091 if test "x$ac_ct_STRIP" = x; then
3092 STRIP=":"
3093 else
3094 case $cross_compiling:$ac_tool_warned in
3095 yes:)
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3098 ac_tool_warned=yes ;;
3099 esac
3100 STRIP=$ac_ct_STRIP
3102 else
3103 STRIP="$ac_cv_prog_STRIP"
3107 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3110 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3111 if test -z "$MKDIR_P"; then
3112 if test "${ac_cv_path_mkdir+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_prog in mkdir gmkdir; do
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3123 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3124 'mkdir (GNU coreutils) '* | \
3125 'mkdir (coreutils) '* | \
3126 'mkdir (fileutils) '4.1*)
3127 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3128 break 3;;
3129 esac
3130 done
3131 done
3132 done
3133 IFS=$as_save_IFS
3137 test -d ./--version && rmdir ./--version
3138 if test "${ac_cv_path_mkdir+set}" = set; then
3139 MKDIR_P="$ac_cv_path_mkdir -p"
3140 else
3141 # As a last resort, use the slow shell script. Don't cache a
3142 # value for MKDIR_P within a source directory, because that will
3143 # break other packages using the cache if that directory is
3144 # removed, or if the value is a relative name.
3145 MKDIR_P="$ac_install_sh -d"
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3149 $as_echo "$MKDIR_P" >&6; }
3151 mkdir_p="$MKDIR_P"
3152 case $mkdir_p in
3153 [\\/$]* | ?:[\\/]*) ;;
3154 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3155 esac
3157 for ac_prog in gawk mawk nawk awk
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_AWK+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$AWK"; then
3167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_AWK="$ac_prog"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3180 done
3181 done
3182 IFS=$as_save_IFS
3186 AWK=$ac_cv_prog_AWK
3187 if test -n "$AWK"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3189 $as_echo "$AWK" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3196 test -n "$AWK" && break
3197 done
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3200 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3201 set x ${MAKE-make}
3202 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3203 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 cat >conftest.make <<\_ACEOF
3207 SHELL = /bin/sh
3208 all:
3209 @echo '@@@%%%=$(MAKE)=@@@%%%'
3210 _ACEOF
3211 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3213 *@@@%%%=?*=@@@%%%*)
3214 eval ac_cv_prog_make_${ac_make}_set=yes;;
3216 eval ac_cv_prog_make_${ac_make}_set=no;;
3217 esac
3218 rm -f conftest.make
3220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3223 SET_MAKE=
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 SET_MAKE="MAKE=${MAKE-make}"
3230 rm -rf .tst 2>/dev/null
3231 mkdir .tst 2>/dev/null
3232 if test -d .tst; then
3233 am__leading_dot=.
3234 else
3235 am__leading_dot=_
3237 rmdir .tst 2>/dev/null
3239 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3240 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3241 # is not polluted with repeated "-I."
3242 am__isrc=' -I$(srcdir)'
3243 # test to see if srcdir already configured
3244 if test -f $srcdir/config.status; then
3245 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3249 # test whether we have cygpath
3250 if test -z "$CYGPATH_W"; then
3251 if (cygpath --version) >/dev/null 2>/dev/null; then
3252 CYGPATH_W='cygpath -w'
3253 else
3254 CYGPATH_W=echo
3259 # Define the identity of the package.
3260 PACKAGE='amule'
3261 VERSION='SVN'
3264 cat >>confdefs.h <<_ACEOF
3265 #define PACKAGE "$PACKAGE"
3266 _ACEOF
3269 cat >>confdefs.h <<_ACEOF
3270 #define VERSION "$VERSION"
3271 _ACEOF
3273 # Some tools Automake needs.
3275 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3278 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3281 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3284 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3287 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3289 # We need awk for the "check" target. The system "awk" is bad on
3290 # some platforms.
3291 # Always define AMTAR for backward compatibility.
3293 AMTAR=${AMTAR-"${am_missing_run}tar"}
3295 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3301 # Check whether --enable-silent-rules was given.
3302 if test "${enable_silent_rules+set}" = set; then :
3303 enableval=$enable_silent_rules;
3306 case $enable_silent_rules in
3307 yes) AM_DEFAULT_VERBOSITY=0;;
3308 no) AM_DEFAULT_VERBOSITY=1;;
3309 *) AM_DEFAULT_VERBOSITY=1;;
3310 esac
3311 AM_BACKSLASH='\'
3317 ac_config_headers="$ac_config_headers config.h"
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3321 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3322 # Check whether --enable-maintainer-mode was given.
3323 if test "${enable_maintainer_mode+set}" = set; then :
3324 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3325 else
3326 USE_MAINTAINER_MODE=no
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3330 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3331 if test $USE_MAINTAINER_MODE = yes; then
3332 MAINTAINER_MODE_TRUE=
3333 MAINTAINER_MODE_FALSE='#'
3334 else
3335 MAINTAINER_MODE_TRUE='#'
3336 MAINTAINER_MODE_FALSE=
3339 MAINT=$MAINTAINER_MODE_TRUE
3343 # Make sure we can run config.sub.
3344 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3345 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3348 $as_echo_n "checking build system type... " >&6; }
3349 if test "${ac_cv_build+set}" = set; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 ac_build_alias=$build_alias
3353 test "x$ac_build_alias" = x &&
3354 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3355 test "x$ac_build_alias" = x &&
3356 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3357 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3358 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3362 $as_echo "$ac_cv_build" >&6; }
3363 case $ac_cv_build in
3364 *-*-*) ;;
3365 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3366 esac
3367 build=$ac_cv_build
3368 ac_save_IFS=$IFS; IFS='-'
3369 set x $ac_cv_build
3370 shift
3371 build_cpu=$1
3372 build_vendor=$2
3373 shift; shift
3374 # Remember, the first character of IFS is used to create $*,
3375 # except with old shells:
3376 build_os=$*
3377 IFS=$ac_save_IFS
3378 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3382 $as_echo_n "checking host system type... " >&6; }
3383 if test "${ac_cv_host+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if test "x$host_alias" = x; then
3387 ac_cv_host=$ac_cv_build
3388 else
3389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3390 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3395 $as_echo "$ac_cv_host" >&6; }
3396 case $ac_cv_host in
3397 *-*-*) ;;
3398 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3399 esac
3400 host=$ac_cv_host
3401 ac_save_IFS=$IFS; IFS='-'
3402 set x $ac_cv_host
3403 shift
3404 host_cpu=$1
3405 host_vendor=$2
3406 shift; shift
3407 # Remember, the first character of IFS is used to create $*,
3408 # except with old shells:
3409 host_os=$*
3410 IFS=$ac_save_IFS
3411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3415 case "${host_os}" in
3416 darwin*)
3417 SYS=darwin
3418 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3419 MULELDFLAGS="-bind_at_load"
3420 touch src/Scanner.cpp
3422 openbsd*)
3423 SYS=openbsd
3424 LIBS="$LIBS -L/usr/local/lib"
3425 MULECPPFLAGS="-D__OPENBSD__"
3427 *cygwin* | *mingw32*)
3428 SYS=win32
3429 MULECPPFLAGS="-DNOMINMAX"
3431 solaris*)
3432 SYS=solaris
3433 RESOLV_LIB="-lresolv -lnsl"
3434 LIBS="$LIBS -lrt"
3436 *netbsd*)
3437 SYS=netbsd
3438 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3439 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3440 # Still, we prepend them, instead of adding, so the user may override them.
3441 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3442 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3444 *irix*)
3445 SYS=irix
3446 MULECPPFLAGS="-D__IRIX__"
3449 SYS=unknown
3451 esac
3453 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3454 if test ${SYS:-unknown} != win32; then :
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3457 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3458 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3460 MULELDFLAGS="$MULELDFLAGS -pthread"
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462 $as_echo "yes" >&6; }
3464 else
3466 MULELDFLAGS="$MULELDFLAGS -lpthread"
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 $as_echo "no" >&6; }
3476 mule_backup_CFLAGS="$CFLAGS"
3477 mule_backup_CXXFLAGS="$CXXFLAGS"
3478 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3479 ac_ext=cpp
3480 ac_cpp='$CXXCPP $CPPFLAGS'
3481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3484 if test -z "$CXX"; then
3485 if test -n "$CCC"; then
3486 CXX=$CCC
3487 else
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CXX+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3497 else
3498 if test -n "$CXX"; then
3499 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3512 done
3513 done
3514 IFS=$as_save_IFS
3518 CXX=$ac_cv_prog_CXX
3519 if test -n "$CXX"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3521 $as_echo "$CXX" >&6; }
3522 else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3528 test -n "$CXX" && break
3529 done
3531 if test -z "$CXX"; then
3532 ac_ct_CXX=$CXX
3533 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_CXX"; then
3543 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CXX="$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3563 if test -n "$ac_ct_CXX"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3565 $as_echo "$ac_ct_CXX" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$ac_ct_CXX" && break
3573 done
3575 if test "x$ac_ct_CXX" = x; then
3576 CXX="g++"
3577 else
3578 case $cross_compiling:$ac_tool_warned in
3579 yes:)
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3583 esac
3584 CXX=$ac_ct_CXX
3590 # Provide some information about the compiler.
3591 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3592 set X $ac_compile
3593 ac_compiler=$2
3594 for ac_option in --version -v -V -qversion; do
3595 { { ac_try="$ac_compiler $ac_option >&5"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3603 ac_status=$?
3604 if test -s conftest.err; then
3605 sed '10a\
3606 ... rest of stderr output deleted ...
3607 10q' conftest.err >conftest.er1
3608 cat conftest.er1 >&5
3610 rm -f conftest.er1 conftest.err
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }
3613 done
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3619 main ()
3623 return 0;
3625 _ACEOF
3626 ac_clean_files_save=$ac_clean_files
3627 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3628 # Try to create an executable without -o first, disregard a.out.
3629 # It will help us diagnose broken compilers, and finding out an intuition
3630 # of exeext.
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3632 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3633 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3635 # The possible output files:
3636 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3638 ac_rmfiles=
3639 for ac_file in $ac_files
3641 case $ac_file in
3642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3643 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3644 esac
3645 done
3646 rm -f $ac_rmfiles
3648 if { { ac_try="$ac_link_default"
3649 case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_link_default") 2>&5
3656 ac_status=$?
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; then :
3659 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3660 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3661 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3662 # so that the user can short-circuit this test for compilers unknown to
3663 # Autoconf.
3664 for ac_file in $ac_files ''
3666 test -f "$ac_file" || continue
3667 case $ac_file in
3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3670 [ab].out )
3671 # We found the default executable, but exeext='' is most
3672 # certainly right.
3673 break;;
3674 *.* )
3675 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3676 then :; else
3677 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3679 # We set ac_cv_exeext here because the later test for it is not
3680 # safe: cross compilers may not add the suffix if given an `-o'
3681 # argument, so we may need to know it at that point already.
3682 # Even if this section looks crufty: it has the advantage of
3683 # actually working.
3684 break;;
3686 break;;
3687 esac
3688 done
3689 test "$ac_cv_exeext" = no && ac_cv_exeext=
3691 else
3692 ac_file=''
3694 if test -z "$ac_file"; then :
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3702 { as_fn_set_status 77
3703 as_fn_error "C++ compiler cannot create executables
3704 See \`config.log' for more details." "$LINENO" 5; }; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3707 $as_echo "yes" >&6; }
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3710 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3712 $as_echo "$ac_file" >&6; }
3713 ac_exeext=$ac_cv_exeext
3715 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3716 ac_clean_files=$ac_clean_files_save
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3718 $as_echo_n "checking for suffix of executables... " >&6; }
3719 if { { ac_try="$ac_link"
3720 case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_link") 2>&5
3727 ac_status=$?
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }; then :
3730 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3731 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3732 # work properly (i.e., refer to `conftest.exe'), while it won't with
3733 # `rm'.
3734 for ac_file in conftest.exe conftest conftest.*; do
3735 test -f "$ac_file" || continue
3736 case $ac_file in
3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3738 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3739 break;;
3740 * ) break;;
3741 esac
3742 done
3743 else
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error "cannot compute suffix of executables: cannot compile and link
3747 See \`config.log' for more details." "$LINENO" 5; }
3749 rm -f conftest conftest$ac_cv_exeext
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3751 $as_echo "$ac_cv_exeext" >&6; }
3753 rm -f conftest.$ac_ext
3754 EXEEXT=$ac_cv_exeext
3755 ac_exeext=$EXEEXT
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758 #include <stdio.h>
3760 main ()
3762 FILE *f = fopen ("conftest.out", "w");
3763 return ferror (f) || fclose (f) != 0;
3766 return 0;
3768 _ACEOF
3769 ac_clean_files="$ac_clean_files conftest.out"
3770 # Check that the compiler produces executables we can run. If not, either
3771 # the compiler is broken, or we cross compile.
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3773 $as_echo_n "checking whether we are cross compiling... " >&6; }
3774 if test "$cross_compiling" != yes; then
3775 { { ac_try="$ac_link"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_link") 2>&5
3783 ac_status=$?
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }
3786 if { ac_try='./conftest$ac_cv_exeext'
3787 { { case "(($ac_try" in
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3790 esac
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793 (eval "$ac_try") 2>&5
3794 ac_status=$?
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }; }; then
3797 cross_compiling=no
3798 else
3799 if test "$cross_compiling" = maybe; then
3800 cross_compiling=yes
3801 else
3802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804 as_fn_error "cannot run C++ compiled programs.
3805 If you meant to cross compile, use \`--host'.
3806 See \`config.log' for more details." "$LINENO" 5; }
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3811 $as_echo "$cross_compiling" >&6; }
3813 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3814 ac_clean_files=$ac_clean_files_save
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3816 $as_echo_n "checking for suffix of object files... " >&6; }
3817 if test "${ac_cv_objext+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3824 main ()
3828 return 0;
3830 _ACEOF
3831 rm -f conftest.o conftest.obj
3832 if { { ac_try="$ac_compile"
3833 case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836 esac
3837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838 $as_echo "$ac_try_echo"; } >&5
3839 (eval "$ac_compile") 2>&5
3840 ac_status=$?
3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842 test $ac_status = 0; }; then :
3843 for ac_file in conftest.o conftest.obj conftest.*; do
3844 test -f "$ac_file" || continue;
3845 case $ac_file in
3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3847 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3848 break;;
3849 esac
3850 done
3851 else
3852 $as_echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3857 as_fn_error "cannot compute suffix of object files: cannot compile
3858 See \`config.log' for more details." "$LINENO" 5; }
3860 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3863 $as_echo "$ac_cv_objext" >&6; }
3864 OBJEXT=$ac_cv_objext
3865 ac_objext=$OBJEXT
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3867 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3868 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3875 main ()
3877 #ifndef __GNUC__
3878 choke me
3879 #endif
3882 return 0;
3884 _ACEOF
3885 if ac_fn_cxx_try_compile "$LINENO"; then :
3886 ac_compiler_gnu=yes
3887 else
3888 ac_compiler_gnu=no
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3895 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3896 if test $ac_compiler_gnu = yes; then
3897 GXX=yes
3898 else
3899 GXX=
3901 ac_test_CXXFLAGS=${CXXFLAGS+set}
3902 ac_save_CXXFLAGS=$CXXFLAGS
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3904 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3905 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3909 ac_cxx_werror_flag=yes
3910 ac_cv_prog_cxx_g=no
3911 CXXFLAGS="-g"
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3916 main ()
3920 return 0;
3922 _ACEOF
3923 if ac_fn_cxx_try_compile "$LINENO"; then :
3924 ac_cv_prog_cxx_g=yes
3925 else
3926 CXXFLAGS=""
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3931 main ()
3935 return 0;
3937 _ACEOF
3938 if ac_fn_cxx_try_compile "$LINENO"; then :
3940 else
3941 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3942 CXXFLAGS="-g"
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3947 main ()
3951 return 0;
3953 _ACEOF
3954 if ac_fn_cxx_try_compile "$LINENO"; then :
3955 ac_cv_prog_cxx_g=yes
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3965 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3966 if test "$ac_test_CXXFLAGS" = set; then
3967 CXXFLAGS=$ac_save_CXXFLAGS
3968 elif test $ac_cv_prog_cxx_g = yes; then
3969 if test "$GXX" = yes; then
3970 CXXFLAGS="-g -O2"
3971 else
3972 CXXFLAGS="-g"
3974 else
3975 if test "$GXX" = yes; then
3976 CXXFLAGS="-O2"
3977 else
3978 CXXFLAGS=
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 DEPDIR="${am__leading_dot}deps"
3988 ac_config_commands="$ac_config_commands depfiles"
3991 am_make=${MAKE-make}
3992 cat > confinc << 'END'
3993 am__doit:
3994 @echo this is the am__doit target
3995 .PHONY: am__doit
3997 # If we don't find an include directive, just comment out the code.
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3999 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4000 am__include="#"
4001 am__quote=
4002 _am_result=none
4003 # First try GNU make style include.
4004 echo "include confinc" > confmf
4005 # Ignore all kinds of additional output from `make'.
4006 case `$am_make -s -f confmf 2> /dev/null` in #(
4007 *the\ am__doit\ target*)
4008 am__include=include
4009 am__quote=
4010 _am_result=GNU
4012 esac
4013 # Now try BSD make style include.
4014 if test "$am__include" = "#"; then
4015 echo '.include "confinc"' > confmf
4016 case `$am_make -s -f confmf 2> /dev/null` in #(
4017 *the\ am__doit\ target*)
4018 am__include=.include
4019 am__quote="\""
4020 _am_result=BSD
4022 esac
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4027 $as_echo "$_am_result" >&6; }
4028 rm -f confinc confmf
4030 # Check whether --enable-dependency-tracking was given.
4031 if test "${enable_dependency_tracking+set}" = set; then :
4032 enableval=$enable_dependency_tracking;
4035 if test "x$enable_dependency_tracking" != xno; then
4036 am_depcomp="$ac_aux_dir/depcomp"
4037 AMDEPBACKSLASH='\'
4039 if test "x$enable_dependency_tracking" != xno; then
4040 AMDEP_TRUE=
4041 AMDEP_FALSE='#'
4042 else
4043 AMDEP_TRUE='#'
4044 AMDEP_FALSE=
4049 depcc="$CXX" am_compiler_list=
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4052 $as_echo_n "checking dependency style of $depcc... " >&6; }
4053 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4057 # We make a subdir and do the tests there. Otherwise we can end up
4058 # making bogus files that we don't know about and never remove. For
4059 # instance it was reported that on HP-UX the gcc test will end up
4060 # making a dummy file named `D' -- because `-MD' means `put the output
4061 # in D'.
4062 mkdir conftest.dir
4063 # Copy depcomp to subdir because otherwise we won't find it if we're
4064 # using a relative directory.
4065 cp "$am_depcomp" conftest.dir
4066 cd conftest.dir
4067 # We will build objects and dependencies in a subdirectory because
4068 # it helps to detect inapplicable dependency modes. For instance
4069 # both Tru64's cc and ICC support -MD to output dependencies as a
4070 # side effect of compilation, but ICC will put the dependencies in
4071 # the current directory while Tru64 will put them in the object
4072 # directory.
4073 mkdir sub
4075 am_cv_CXX_dependencies_compiler_type=none
4076 if test "$am_compiler_list" = ""; then
4077 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4079 am__universal=false
4080 case " $depcc " in #(
4081 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4082 esac
4084 for depmode in $am_compiler_list; do
4085 # Setup a source with many dependencies, because some compilers
4086 # like to wrap large dependency lists on column 80 (with \), and
4087 # we should not choose a depcomp mode which is confused by this.
4089 # We need to recreate these files for each test, as the compiler may
4090 # overwrite some of them when testing with obscure command lines.
4091 # This happens at least with the AIX C compiler.
4092 : > sub/conftest.c
4093 for i in 1 2 3 4 5 6; do
4094 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4095 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4096 # Solaris 8's {/usr,}/bin/sh.
4097 touch sub/conftst$i.h
4098 done
4099 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4101 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4102 # mode. It turns out that the SunPro C++ compiler does not properly
4103 # handle `-M -o', and we need to detect this. Also, some Intel
4104 # versions had trouble with output in subdirs
4105 am__obj=sub/conftest.${OBJEXT-o}
4106 am__minus_obj="-o $am__obj"
4107 case $depmode in
4108 gcc)
4109 # This depmode causes a compiler race in universal mode.
4110 test "$am__universal" = false || continue
4112 nosideeffect)
4113 # after this tag, mechanisms are not by side-effect, so they'll
4114 # only be used when explicitly requested
4115 if test "x$enable_dependency_tracking" = xyes; then
4116 continue
4117 else
4118 break
4121 msvisualcpp | msvcmsys)
4122 # This compiler won't grok `-c -o', but also, the minuso test has
4123 # not run yet. These depmodes are late enough in the game, and
4124 # so weak that their functioning should not be impacted.
4125 am__obj=conftest.${OBJEXT-o}
4126 am__minus_obj=
4128 none) break ;;
4129 esac
4130 if depmode=$depmode \
4131 source=sub/conftest.c object=$am__obj \
4132 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4133 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4134 >/dev/null 2>conftest.err &&
4135 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4136 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4137 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4138 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4139 # icc doesn't choke on unknown options, it will just issue warnings
4140 # or remarks (even with -Werror). So we grep stderr for any message
4141 # that says an option was ignored or not supported.
4142 # When given -MP, icc 7.0 and 7.1 complain thusly:
4143 # icc: Command line warning: ignoring option '-M'; no argument required
4144 # The diagnosis changed in icc 8.0:
4145 # icc: Command line remark: option '-MP' not supported
4146 if (grep 'ignoring option' conftest.err ||
4147 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4148 am_cv_CXX_dependencies_compiler_type=$depmode
4149 break
4152 done
4154 cd ..
4155 rm -rf conftest.dir
4156 else
4157 am_cv_CXX_dependencies_compiler_type=none
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4162 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4163 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4166 test "x$enable_dependency_tracking" != xno \
4167 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4168 am__fastdepCXX_TRUE=
4169 am__fastdepCXX_FALSE='#'
4170 else
4171 am__fastdepCXX_TRUE='#'
4172 am__fastdepCXX_FALSE=
4176 ac_ext=cpp
4177 ac_cpp='$CXXCPP $CPPFLAGS'
4178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4182 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4183 if test -z "$CXXCPP"; then
4184 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 # Double quotes because CXXCPP needs to be expanded
4188 for CXXCPP in "$CXX -E" "/lib/cpp"
4190 ac_preproc_ok=false
4191 for ac_cxx_preproc_warn_flag in '' yes
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error" is here to catch this case.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #ifdef __STDC__
4202 # include <limits.h>
4203 #else
4204 # include <assert.h>
4205 #endif
4206 Syntax error
4207 _ACEOF
4208 if ac_fn_cxx_try_cpp "$LINENO"; then :
4210 else
4211 # Broken: fails on valid input.
4212 continue
4214 rm -f conftest.err conftest.$ac_ext
4216 # OK, works on sane cases. Now check whether nonexistent headers
4217 # can be detected and how.
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <ac_nonexistent.h>
4221 _ACEOF
4222 if ac_fn_cxx_try_cpp "$LINENO"; then :
4223 # Broken: success on invalid input.
4224 continue
4225 else
4226 # Passes both tests.
4227 ac_preproc_ok=:
4228 break
4230 rm -f conftest.err conftest.$ac_ext
4232 done
4233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4234 rm -f conftest.err conftest.$ac_ext
4235 if $ac_preproc_ok; then :
4236 break
4239 done
4240 ac_cv_prog_CXXCPP=$CXXCPP
4243 CXXCPP=$ac_cv_prog_CXXCPP
4244 else
4245 ac_cv_prog_CXXCPP=$CXXCPP
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4248 $as_echo "$CXXCPP" >&6; }
4249 ac_preproc_ok=false
4250 for ac_cxx_preproc_warn_flag in '' yes
4252 # Use a header file that comes with gcc, so configuring glibc
4253 # with a fresh cross-compiler works.
4254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4255 # <limits.h> exists even on freestanding compilers.
4256 # On the NeXT, cc -E runs the code through the compiler's parser,
4257 # not just through cpp. "Syntax error" is here to catch this case.
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #ifdef __STDC__
4261 # include <limits.h>
4262 #else
4263 # include <assert.h>
4264 #endif
4265 Syntax error
4266 _ACEOF
4267 if ac_fn_cxx_try_cpp "$LINENO"; then :
4269 else
4270 # Broken: fails on valid input.
4271 continue
4273 rm -f conftest.err conftest.$ac_ext
4275 # OK, works on sane cases. Now check whether nonexistent headers
4276 # can be detected and how.
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 #include <ac_nonexistent.h>
4280 _ACEOF
4281 if ac_fn_cxx_try_cpp "$LINENO"; then :
4282 # Broken: success on invalid input.
4283 continue
4284 else
4285 # Passes both tests.
4286 ac_preproc_ok=:
4287 break
4289 rm -f conftest.err conftest.$ac_ext
4291 done
4292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4293 rm -f conftest.err conftest.$ac_ext
4294 if $ac_preproc_ok; then :
4296 else
4297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4299 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4300 See \`config.log' for more details." "$LINENO" 5; }
4303 ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 ac_ext=c
4310 ac_cpp='$CPP $CPPFLAGS'
4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if test "${ac_cv_prog_CC+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 if test -n "$CC"; then
4323 ac_cv_prog_CC="$CC" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4336 done
4337 done
4338 IFS=$as_save_IFS
4342 CC=$ac_cv_prog_CC
4343 if test -n "$CC"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345 $as_echo "$CC" >&6; }
4346 else
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4353 if test -z "$ac_cv_prog_CC"; then
4354 ac_ct_CC=$CC
4355 # Extract the first word of "gcc", so it can be a program name with args.
4356 set dummy gcc; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$ac_ct_CC"; then
4363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_ac_ct_CC="gcc"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4376 done
4377 done
4378 IFS=$as_save_IFS
4382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4383 if test -n "$ac_ct_CC"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4385 $as_echo "$ac_ct_CC" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4391 if test "x$ac_ct_CC" = x; then
4392 CC=""
4393 else
4394 case $cross_compiling:$ac_tool_warned in
4395 yes:)
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398 ac_tool_warned=yes ;;
4399 esac
4400 CC=$ac_ct_CC
4402 else
4403 CC="$ac_cv_prog_CC"
4406 if test -z "$CC"; then
4407 if test -n "$ac_tool_prefix"; then
4408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4409 set dummy ${ac_tool_prefix}cc; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if test "${ac_cv_prog_CC+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if test -n "$CC"; then
4416 ac_cv_prog_CC="$CC" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_prog_CC="${ac_tool_prefix}cc"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4429 done
4430 done
4431 IFS=$as_save_IFS
4435 CC=$ac_cv_prog_CC
4436 if test -n "$CC"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4438 $as_echo "$CC" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4447 if test -z "$CC"; then
4448 # Extract the first word of "cc", so it can be a program name with args.
4449 set dummy cc; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if test "${ac_cv_prog_CC+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 if test -n "$CC"; then
4456 ac_cv_prog_CC="$CC" # Let the user override the test.
4457 else
4458 ac_prog_rejected=no
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4467 ac_prog_rejected=yes
4468 continue
4470 ac_cv_prog_CC="cc"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4474 done
4475 done
4476 IFS=$as_save_IFS
4478 if test $ac_prog_rejected = yes; then
4479 # We found a bogon in the path, so make sure we never use it.
4480 set dummy $ac_cv_prog_CC
4481 shift
4482 if test $# != 0; then
4483 # We chose a different compiler from the bogus one.
4484 # However, it has the same basename, so the bogon will be chosen
4485 # first if we set CC to just the basename; use the full file name.
4486 shift
4487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4492 CC=$ac_cv_prog_CC
4493 if test -n "$CC"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4495 $as_echo "$CC" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4503 if test -z "$CC"; then
4504 if test -n "$ac_tool_prefix"; then
4505 for ac_prog in cl.exe
4507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if test "${ac_cv_prog_CC+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$CC"; then
4515 ac_cv_prog_CC="$CC" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4530 IFS=$as_save_IFS
4534 CC=$ac_cv_prog_CC
4535 if test -n "$CC"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4537 $as_echo "$CC" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4544 test -n "$CC" && break
4545 done
4547 if test -z "$CC"; then
4548 ac_ct_CC=$CC
4549 for ac_prog in cl.exe
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552 set dummy $ac_prog; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$ac_ct_CC"; then
4559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_ac_ct_CC="$ac_prog"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4579 if test -n "$ac_ct_CC"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4581 $as_echo "$ac_ct_CC" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4588 test -n "$ac_ct_CC" && break
4589 done
4591 if test "x$ac_ct_CC" = x; then
4592 CC=""
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595 yes:)
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 ac_tool_warned=yes ;;
4599 esac
4600 CC=$ac_ct_CC
4607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error "no acceptable C compiler found in \$PATH
4610 See \`config.log' for more details." "$LINENO" 5; }
4612 # Provide some information about the compiler.
4613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4614 set X $ac_compile
4615 ac_compiler=$2
4616 for ac_option in --version -v -V -qversion; do
4617 { { ac_try="$ac_compiler $ac_option >&5"
4618 case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621 esac
4622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4623 $as_echo "$ac_try_echo"; } >&5
4624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4625 ac_status=$?
4626 if test -s conftest.err; then
4627 sed '10a\
4628 ... rest of stderr output deleted ...
4629 10q' conftest.err >conftest.er1
4630 cat conftest.er1 >&5
4632 rm -f conftest.er1 conftest.err
4633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634 test $ac_status = 0; }
4635 done
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4638 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4639 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4646 main ()
4648 #ifndef __GNUC__
4649 choke me
4650 #endif
4653 return 0;
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_compiler_gnu=yes
4658 else
4659 ac_compiler_gnu=no
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4666 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4667 if test $ac_compiler_gnu = yes; then
4668 GCC=yes
4669 else
4670 GCC=
4672 ac_test_CFLAGS=${CFLAGS+set}
4673 ac_save_CFLAGS=$CFLAGS
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4675 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4676 if test "${ac_cv_prog_cc_g+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 ac_save_c_werror_flag=$ac_c_werror_flag
4680 ac_c_werror_flag=yes
4681 ac_cv_prog_cc_g=no
4682 CFLAGS="-g"
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4687 main ()
4691 return 0;
4693 _ACEOF
4694 if ac_fn_c_try_compile "$LINENO"; then :
4695 ac_cv_prog_cc_g=yes
4696 else
4697 CFLAGS=""
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 main ()
4706 return 0;
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"; then :
4711 else
4712 ac_c_werror_flag=$ac_save_c_werror_flag
4713 CFLAGS="-g"
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4718 main ()
4722 return 0;
4724 _ACEOF
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 ac_cv_prog_cc_g=yes
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 ac_c_werror_flag=$ac_save_c_werror_flag
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4736 $as_echo "$ac_cv_prog_cc_g" >&6; }
4737 if test "$ac_test_CFLAGS" = set; then
4738 CFLAGS=$ac_save_CFLAGS
4739 elif test $ac_cv_prog_cc_g = yes; then
4740 if test "$GCC" = yes; then
4741 CFLAGS="-g -O2"
4742 else
4743 CFLAGS="-g"
4745 else
4746 if test "$GCC" = yes; then
4747 CFLAGS="-O2"
4748 else
4749 CFLAGS=
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4753 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4754 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 ac_cv_prog_cc_c89=no
4758 ac_save_CC=$CC
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #include <stdarg.h>
4762 #include <stdio.h>
4763 #include <sys/types.h>
4764 #include <sys/stat.h>
4765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4766 struct buf { int x; };
4767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4768 static char *e (p, i)
4769 char **p;
4770 int i;
4772 return p[i];
4774 static char *f (char * (*g) (char **, int), char **p, ...)
4776 char *s;
4777 va_list v;
4778 va_start (v,p);
4779 s = g (p, va_arg (v,int));
4780 va_end (v);
4781 return s;
4784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4785 function prototypes and stuff, but not '\xHH' hex character constants.
4786 These don't provoke an error unfortunately, instead are silently treated
4787 as 'x'. The following induces an error, until -std is added to get
4788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4789 array size at least. It's necessary to write '\x00'==0 to get something
4790 that's true only with -std. */
4791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4794 inside strings and character constants. */
4795 #define FOO(x) 'x'
4796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4798 int test (int i, double x);
4799 struct s1 {int (*f) (int a);};
4800 struct s2 {int (*f) (double a);};
4801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4802 int argc;
4803 char **argv;
4805 main ()
4807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4809 return 0;
4811 _ACEOF
4812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4815 CC="$ac_save_CC $ac_arg"
4816 if ac_fn_c_try_compile "$LINENO"; then :
4817 ac_cv_prog_cc_c89=$ac_arg
4819 rm -f core conftest.err conftest.$ac_objext
4820 test "x$ac_cv_prog_cc_c89" != "xno" && break
4821 done
4822 rm -f conftest.$ac_ext
4823 CC=$ac_save_CC
4826 # AC_CACHE_VAL
4827 case "x$ac_cv_prog_cc_c89" in
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4830 $as_echo "none needed" >&6; } ;;
4831 xno)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4833 $as_echo "unsupported" >&6; } ;;
4835 CC="$CC $ac_cv_prog_cc_c89"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4837 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4838 esac
4839 if test "x$ac_cv_prog_cc_c89" != xno; then :
4843 ac_ext=c
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849 depcc="$CC" am_compiler_list=
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4852 $as_echo_n "checking dependency style of $depcc... " >&6; }
4853 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4857 # We make a subdir and do the tests there. Otherwise we can end up
4858 # making bogus files that we don't know about and never remove. For
4859 # instance it was reported that on HP-UX the gcc test will end up
4860 # making a dummy file named `D' -- because `-MD' means `put the output
4861 # in D'.
4862 mkdir conftest.dir
4863 # Copy depcomp to subdir because otherwise we won't find it if we're
4864 # using a relative directory.
4865 cp "$am_depcomp" conftest.dir
4866 cd conftest.dir
4867 # We will build objects and dependencies in a subdirectory because
4868 # it helps to detect inapplicable dependency modes. For instance
4869 # both Tru64's cc and ICC support -MD to output dependencies as a
4870 # side effect of compilation, but ICC will put the dependencies in
4871 # the current directory while Tru64 will put them in the object
4872 # directory.
4873 mkdir sub
4875 am_cv_CC_dependencies_compiler_type=none
4876 if test "$am_compiler_list" = ""; then
4877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4879 am__universal=false
4880 case " $depcc " in #(
4881 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4882 esac
4884 for depmode in $am_compiler_list; do
4885 # Setup a source with many dependencies, because some compilers
4886 # like to wrap large dependency lists on column 80 (with \), and
4887 # we should not choose a depcomp mode which is confused by this.
4889 # We need to recreate these files for each test, as the compiler may
4890 # overwrite some of them when testing with obscure command lines.
4891 # This happens at least with the AIX C compiler.
4892 : > sub/conftest.c
4893 for i in 1 2 3 4 5 6; do
4894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4895 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4896 # Solaris 8's {/usr,}/bin/sh.
4897 touch sub/conftst$i.h
4898 done
4899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4901 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4902 # mode. It turns out that the SunPro C++ compiler does not properly
4903 # handle `-M -o', and we need to detect this. Also, some Intel
4904 # versions had trouble with output in subdirs
4905 am__obj=sub/conftest.${OBJEXT-o}
4906 am__minus_obj="-o $am__obj"
4907 case $depmode in
4908 gcc)
4909 # This depmode causes a compiler race in universal mode.
4910 test "$am__universal" = false || continue
4912 nosideeffect)
4913 # after this tag, mechanisms are not by side-effect, so they'll
4914 # only be used when explicitly requested
4915 if test "x$enable_dependency_tracking" = xyes; then
4916 continue
4917 else
4918 break
4921 msvisualcpp | msvcmsys)
4922 # This compiler won't grok `-c -o', but also, the minuso test has
4923 # not run yet. These depmodes are late enough in the game, and
4924 # so weak that their functioning should not be impacted.
4925 am__obj=conftest.${OBJEXT-o}
4926 am__minus_obj=
4928 none) break ;;
4929 esac
4930 if depmode=$depmode \
4931 source=sub/conftest.c object=$am__obj \
4932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4934 >/dev/null 2>conftest.err &&
4935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4939 # icc doesn't choke on unknown options, it will just issue warnings
4940 # or remarks (even with -Werror). So we grep stderr for any message
4941 # that says an option was ignored or not supported.
4942 # When given -MP, icc 7.0 and 7.1 complain thusly:
4943 # icc: Command line warning: ignoring option '-M'; no argument required
4944 # The diagnosis changed in icc 8.0:
4945 # icc: Command line remark: option '-MP' not supported
4946 if (grep 'ignoring option' conftest.err ||
4947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4948 am_cv_CC_dependencies_compiler_type=$depmode
4949 break
4952 done
4954 cd ..
4955 rm -rf conftest.dir
4956 else
4957 am_cv_CC_dependencies_compiler_type=none
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4962 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4966 test "x$enable_dependency_tracking" != xno \
4967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4968 am__fastdepCC_TRUE=
4969 am__fastdepCC_FALSE='#'
4970 else
4971 am__fastdepCC_TRUE='#'
4972 am__fastdepCC_FALSE=
4976 ac_ext=c
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4982 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4983 # On Suns, sometimes $CPP names a directory.
4984 if test -n "$CPP" && test -d "$CPP"; then
4985 CPP=
4987 if test -z "$CPP"; then
4988 if test "${ac_cv_prog_CPP+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 # Double quotes because CPP needs to be expanded
4992 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4994 ac_preproc_ok=false
4995 for ac_c_preproc_warn_flag in '' yes
4997 # Use a header file that comes with gcc, so configuring glibc
4998 # with a fresh cross-compiler works.
4999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5000 # <limits.h> exists even on freestanding compilers.
5001 # On the NeXT, cc -E runs the code through the compiler's parser,
5002 # not just through cpp. "Syntax error" is here to catch this case.
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005 #ifdef __STDC__
5006 # include <limits.h>
5007 #else
5008 # include <assert.h>
5009 #endif
5010 Syntax error
5011 _ACEOF
5012 if ac_fn_c_try_cpp "$LINENO"; then :
5014 else
5015 # Broken: fails on valid input.
5016 continue
5018 rm -f conftest.err conftest.$ac_ext
5020 # OK, works on sane cases. Now check whether nonexistent headers
5021 # can be detected and how.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 #include <ac_nonexistent.h>
5025 _ACEOF
5026 if ac_fn_c_try_cpp "$LINENO"; then :
5027 # Broken: success on invalid input.
5028 continue
5029 else
5030 # Passes both tests.
5031 ac_preproc_ok=:
5032 break
5034 rm -f conftest.err conftest.$ac_ext
5036 done
5037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5038 rm -f conftest.err conftest.$ac_ext
5039 if $ac_preproc_ok; then :
5040 break
5043 done
5044 ac_cv_prog_CPP=$CPP
5047 CPP=$ac_cv_prog_CPP
5048 else
5049 ac_cv_prog_CPP=$CPP
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5052 $as_echo "$CPP" >&6; }
5053 ac_preproc_ok=false
5054 for ac_c_preproc_warn_flag in '' yes
5056 # Use a header file that comes with gcc, so configuring glibc
5057 # with a fresh cross-compiler works.
5058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059 # <limits.h> exists even on freestanding compilers.
5060 # On the NeXT, cc -E runs the code through the compiler's parser,
5061 # not just through cpp. "Syntax error" is here to catch this case.
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064 #ifdef __STDC__
5065 # include <limits.h>
5066 #else
5067 # include <assert.h>
5068 #endif
5069 Syntax error
5070 _ACEOF
5071 if ac_fn_c_try_cpp "$LINENO"; then :
5073 else
5074 # Broken: fails on valid input.
5075 continue
5077 rm -f conftest.err conftest.$ac_ext
5079 # OK, works on sane cases. Now check whether nonexistent headers
5080 # can be detected and how.
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 #include <ac_nonexistent.h>
5084 _ACEOF
5085 if ac_fn_c_try_cpp "$LINENO"; then :
5086 # Broken: success on invalid input.
5087 continue
5088 else
5089 # Passes both tests.
5090 ac_preproc_ok=:
5091 break
5093 rm -f conftest.err conftest.$ac_ext
5095 done
5096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5097 rm -f conftest.err conftest.$ac_ext
5098 if $ac_preproc_ok; then :
5100 else
5101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5103 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5104 See \`config.log' for more details." "$LINENO" 5; }
5107 ac_ext=c
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5113 ac_build_prefix=
5114 test -n "$build_alias" && ac_build_prefix=$build_alias-
5116 if test "$cross_compiling" = yes; then :
5118 # Even if we're cross-compiling, we want a compiler here
5119 # that is not a cross-compiler.
5120 saved_cross=$cross_compiling
5121 cross_compiling=no
5123 ac_ext=c
5124 ac_cpp='$CPP $BUILD_CPPFLAGS'
5125 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5128 if test -n "$ac_build_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5130 set dummy ${ac_build_prefix}gcc; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if test -n "$BUILD_CC"; then
5137 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5146 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5150 done
5151 done
5152 IFS=$as_save_IFS
5156 BUILD_CC=$ac_cv_prog_BUILD_CC
5157 if test -n "$BUILD_CC"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5159 $as_echo "$BUILD_CC" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5167 if test -z "$ac_cv_prog_BUILD_CC"; then
5168 ac_ct_BUILD_CC=$BUILD_CC
5169 # Extract the first word of "gcc", so it can be a program name with args.
5170 set dummy gcc; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if test -n "$ac_ct_BUILD_CC"; then
5177 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5190 done
5191 done
5192 IFS=$as_save_IFS
5196 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5197 if test -n "$ac_ct_BUILD_CC"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5199 $as_echo "$ac_ct_BUILD_CC" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5205 if test "x$ac_ct_BUILD_CC" = x; then
5206 BUILD_CC=""
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209 yes:)
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5213 esac
5214 BUILD_CC=$ac_ct_BUILD_CC
5216 else
5217 BUILD_CC="$ac_cv_prog_BUILD_CC"
5220 if test -z "$BUILD_CC"; then
5221 if test -n "$ac_build_prefix"; then
5222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5223 set dummy ${ac_build_prefix}cc; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 if test -n "$BUILD_CC"; then
5230 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5243 done
5244 done
5245 IFS=$as_save_IFS
5249 BUILD_CC=$ac_cv_prog_BUILD_CC
5250 if test -n "$BUILD_CC"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5252 $as_echo "$BUILD_CC" >&6; }
5253 else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 $as_echo "no" >&6; }
5260 if test -z "$ac_cv_prog_BUILD_CC"; then
5261 ac_ct_BUILD_CC=$BUILD_CC
5262 # Extract the first word of "cc", so it can be a program name with args.
5263 set dummy cc; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -n "$ac_ct_BUILD_CC"; then
5270 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279 ac_cv_prog_ac_ct_BUILD_CC="cc"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5283 done
5284 done
5285 IFS=$as_save_IFS
5289 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5290 if test -n "$ac_ct_BUILD_CC"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5292 $as_echo "$ac_ct_BUILD_CC" >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5298 if test "x$ac_ct_BUILD_CC" = x; then
5299 BUILD_CC=""
5300 else
5301 case $cross_compiling:$ac_tool_warned in
5302 yes:)
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305 ac_tool_warned=yes ;;
5306 esac
5307 BUILD_CC=$ac_ct_BUILD_CC
5309 else
5310 BUILD_CC="$ac_cv_prog_BUILD_CC"
5314 if test -z "$BUILD_CC"; then
5315 # Extract the first word of "cc", so it can be a program name with args.
5316 set dummy cc; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$BUILD_CC"; then
5323 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5324 else
5325 ac_prog_rejected=no
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5334 ac_prog_rejected=yes
5335 continue
5337 ac_cv_prog_BUILD_CC="cc"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5341 done
5342 done
5343 IFS=$as_save_IFS
5345 if test $ac_prog_rejected = yes; then
5346 # We found a bogon in the path, so make sure we never use it.
5347 set dummy $ac_cv_prog_BUILD_CC
5348 shift
5349 if test $# != 0; then
5350 # We chose a different compiler from the bogus one.
5351 # However, it has the same basename, so the bogon will be chosen
5352 # first if we set BUILD_CC to just the basename; use the full file name.
5353 shift
5354 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5359 BUILD_CC=$ac_cv_prog_BUILD_CC
5360 if test -n "$BUILD_CC"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5362 $as_echo "$BUILD_CC" >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5370 if test -z "$BUILD_CC"; then
5371 if test -n "$ac_build_prefix"; then
5372 for ac_prog in cl
5374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5375 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$BUILD_CC"; then
5382 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5395 done
5396 done
5397 IFS=$as_save_IFS
5401 BUILD_CC=$ac_cv_prog_BUILD_CC
5402 if test -n "$BUILD_CC"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5404 $as_echo "$BUILD_CC" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5411 test -n "$BUILD_CC" && break
5412 done
5414 if test -z "$BUILD_CC"; then
5415 ac_ct_BUILD_CC=$BUILD_CC
5416 for ac_prog in cl
5418 # Extract the first word of "$ac_prog", so it can be a program name with args.
5419 set dummy $ac_prog; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -n "$ac_ct_BUILD_CC"; then
5426 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5439 done
5440 done
5441 IFS=$as_save_IFS
5445 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5446 if test -n "$ac_ct_BUILD_CC"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5448 $as_echo "$ac_ct_BUILD_CC" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5455 test -n "$ac_ct_BUILD_CC" && break
5456 done
5458 if test "x$ac_ct_BUILD_CC" = x; then
5459 BUILD_CC=""
5460 else
5461 case $cross_compiling:$ac_tool_warned in
5462 yes:)
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5465 ac_tool_warned=yes ;;
5466 esac
5467 BUILD_CC=$ac_ct_BUILD_CC
5474 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5476 as_fn_error "no acceptable C compiler found in \$PATH
5477 See \`config.log' for more details." "$LINENO" 5; }
5479 # Provide some information about the compiler.
5480 echo "$as_me:$LINENO:" \
5481 "checking for C compiler version" >&5
5482 ac_compiler=`set X $ac_compile; echo $2`
5483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5484 (eval $ac_compiler --version </dev/null >&5) 2>&5
5485 ac_status=$?
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; }
5488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5489 (eval $ac_compiler -v </dev/null >&5) 2>&5
5490 ac_status=$?
5491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5492 test $ac_status = 0; }
5493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5494 (eval $ac_compiler -V </dev/null >&5) 2>&5
5495 ac_status=$?
5496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5497 test $ac_status = 0; }
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5503 main ()
5507 return 0;
5509 _ACEOF
5510 ac_clean_files_save=$ac_clean_files
5511 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5512 # Try to create an executable without -o first, disregard a.out.
5513 # It will help us diagnose broken compilers, and finding out an intuition
5514 # of exeext.
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5516 $as_echo_n "checking whether the C compiler works... " >&6; }
5517 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5519 # The possible output files:
5520 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5522 ac_rmfiles=
5523 for ac_file in $ac_files
5525 case $ac_file in
5526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5527 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5528 esac
5529 done
5530 rm -f $ac_rmfiles
5532 if { { ac_try="$ac_link_default"
5533 case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5538 $as_echo "$ac_try_echo"; } >&5
5539 (eval "$ac_link_default") 2>&5
5540 ac_status=$?
5541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5542 test $ac_status = 0; }; then :
5543 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5544 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5545 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5546 # so that the user can short-circuit this test for compilers unknown to
5547 # Autoconf.
5548 for ac_file in $ac_files ''
5550 test -f "$ac_file" || continue
5551 case $ac_file in
5552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5554 [ab].out )
5555 # We found the default executable, but exeext='' is most
5556 # certainly right.
5557 break;;
5558 *.* )
5559 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5560 then :; else
5561 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5563 # We set ac_cv_exeext here because the later test for it is not
5564 # safe: cross compilers may not add the suffix if given an `-o'
5565 # argument, so we may need to know it at that point already.
5566 # Even if this section looks crufty: it has the advantage of
5567 # actually working.
5568 break;;
5570 break;;
5571 esac
5572 done
5573 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5575 else
5576 ac_file=''
5578 if test -z "$ac_file"; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5581 $as_echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5586 { as_fn_set_status 77
5587 as_fn_error "C compiler cannot create executables
5588 See \`config.log' for more details." "$LINENO" 5; }; }
5589 else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5591 $as_echo "yes" >&6; }
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5594 $as_echo_n "checking for C compiler default output file name... " >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5596 $as_echo "$ac_file" >&6; }
5597 ac_build_exeext=$ac_cv_build_exeext
5599 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5600 ac_clean_files=$ac_clean_files_save
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5602 $as_echo_n "checking for suffix of executables... " >&6; }
5603 if { { ac_try="$ac_link"
5604 case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
5608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5609 $as_echo "$ac_try_echo"; } >&5
5610 (eval "$ac_link") 2>&5
5611 ac_status=$?
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; }; then :
5614 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5615 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5616 # work properly (i.e., refer to `conftest.exe'), while it won't with
5617 # `rm'.
5618 for ac_file in conftest.exe conftest conftest.*; do
5619 test -f "$ac_file" || continue
5620 case $ac_file in
5621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5622 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5623 break;;
5624 * ) break;;
5625 esac
5626 done
5627 else
5628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5630 as_fn_error "cannot compute suffix of executables: cannot compile and link
5631 See \`config.log' for more details." "$LINENO" 5; }
5633 rm -f conftest conftest$ac_cv_build_exeext
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5635 $as_echo "$ac_cv_build_exeext" >&6; }
5637 rm -f conftest.$ac_ext
5638 BUILD_EXEEXT=$ac_cv_build_exeext
5639 ac_build_exeext=$BUILD_EXEEXT
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #include <stdio.h>
5644 main ()
5646 FILE *f = fopen ("conftest.out", "w");
5647 return ferror (f) || fclose (f) != 0;
5650 return 0;
5652 _ACEOF
5653 ac_clean_files="$ac_clean_files conftest.out"
5654 # Check that the compiler produces executables we can run. If not, either
5655 # the compiler is broken, or we cross compile.
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5657 $as_echo_n "checking whether we are cross compiling... " >&6; }
5658 if test "$cross_compiling" != yes; then
5659 { { ac_try="$ac_link"
5660 case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5665 $as_echo "$ac_try_echo"; } >&5
5666 (eval "$ac_link") 2>&5
5667 ac_status=$?
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; }
5670 if { ac_try='./conftest$ac_cv_build_exeext'
5671 { { case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5676 $as_echo "$ac_try_echo"; } >&5
5677 (eval "$ac_try") 2>&5
5678 ac_status=$?
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; }; }; then
5681 cross_compiling=no
5682 else
5683 if test "$cross_compiling" = maybe; then
5684 cross_compiling=yes
5685 else
5686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5688 as_fn_error "cannot run C compiled programs.
5689 If you meant to cross compile, use \`--host'.
5690 See \`config.log' for more details." "$LINENO" 5; }
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5695 $as_echo "$cross_compiling" >&6; }
5697 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5698 ac_clean_files=$ac_clean_files_save
5701 # Restore configuration environment
5702 cross_compiling=$saved_cross
5704 ac_ext=c
5705 ac_cpp='$CPP $CPPFLAGS'
5706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710 else
5711 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5713 CFLAGS="$mule_backup_CFLAGS"
5714 CXXFLAGS="$mule_backup_CXXFLAGS"
5715 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5716 for ac_prog in gawk mawk nawk awk
5718 # Extract the first word of "$ac_prog", so it can be a program name with args.
5719 set dummy $ac_prog; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_prog_AWK+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 if test -n "$AWK"; then
5726 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735 ac_cv_prog_AWK="$ac_prog"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5739 done
5740 done
5741 IFS=$as_save_IFS
5745 AWK=$ac_cv_prog_AWK
5746 if test -n "$AWK"; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5748 $as_echo "$AWK" >&6; }
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5755 test -n "$AWK" && break
5756 done
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5759 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5760 if test "${ac_cv_path_GREP+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -z "$GREP"; then
5764 ac_path_GREP_found=false
5765 # Loop through the user's path and test for each of PROGNAME-LIST
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_prog in grep ggrep; do
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5774 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5775 # Check for GNU ac_path_GREP and select it if it is found.
5776 # Check for GNU $ac_path_GREP
5777 case `"$ac_path_GREP" --version 2>&1` in
5778 *GNU*)
5779 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5781 ac_count=0
5782 $as_echo_n 0123456789 >"conftest.in"
5783 while :
5785 cat "conftest.in" "conftest.in" >"conftest.tmp"
5786 mv "conftest.tmp" "conftest.in"
5787 cp "conftest.in" "conftest.nl"
5788 $as_echo 'GREP' >> "conftest.nl"
5789 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5791 as_fn_arith $ac_count + 1 && ac_count=$as_val
5792 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5793 # Best one so far, save it but keep looking for a better one
5794 ac_cv_path_GREP="$ac_path_GREP"
5795 ac_path_GREP_max=$ac_count
5797 # 10*(2^10) chars as input seems more than enough
5798 test $ac_count -gt 10 && break
5799 done
5800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5801 esac
5803 $ac_path_GREP_found && break 3
5804 done
5805 done
5806 done
5807 IFS=$as_save_IFS
5808 if test -z "$ac_cv_path_GREP"; then
5809 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5811 else
5812 ac_cv_path_GREP=$GREP
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5817 $as_echo "$ac_cv_path_GREP" >&6; }
5818 GREP="$ac_cv_path_GREP"
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5822 $as_echo_n "checking for egrep... " >&6; }
5823 if test "${ac_cv_path_EGREP+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5827 then ac_cv_path_EGREP="$GREP -E"
5828 else
5829 if test -z "$EGREP"; then
5830 ac_path_EGREP_found=false
5831 # Loop through the user's path and test for each of PROGNAME-LIST
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_prog in egrep; do
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5840 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5841 # Check for GNU ac_path_EGREP and select it if it is found.
5842 # Check for GNU $ac_path_EGREP
5843 case `"$ac_path_EGREP" --version 2>&1` in
5844 *GNU*)
5845 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5847 ac_count=0
5848 $as_echo_n 0123456789 >"conftest.in"
5849 while :
5851 cat "conftest.in" "conftest.in" >"conftest.tmp"
5852 mv "conftest.tmp" "conftest.in"
5853 cp "conftest.in" "conftest.nl"
5854 $as_echo 'EGREP' >> "conftest.nl"
5855 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5857 as_fn_arith $ac_count + 1 && ac_count=$as_val
5858 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5859 # Best one so far, save it but keep looking for a better one
5860 ac_cv_path_EGREP="$ac_path_EGREP"
5861 ac_path_EGREP_max=$ac_count
5863 # 10*(2^10) chars as input seems more than enough
5864 test $ac_count -gt 10 && break
5865 done
5866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5867 esac
5869 $ac_path_EGREP_found && break 3
5870 done
5871 done
5872 done
5873 IFS=$as_save_IFS
5874 if test -z "$ac_cv_path_EGREP"; then
5875 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5877 else
5878 ac_cv_path_EGREP=$EGREP
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5884 $as_echo "$ac_cv_path_EGREP" >&6; }
5885 EGREP="$ac_cv_path_EGREP"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5889 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5890 set x ${MAKE-make}
5891 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5892 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 cat >conftest.make <<\_ACEOF
5896 SHELL = /bin/sh
5897 all:
5898 @echo '@@@%%%=$(MAKE)=@@@%%%'
5899 _ACEOF
5900 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5901 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5902 *@@@%%%=?*=@@@%%%*)
5903 eval ac_cv_prog_make_${ac_make}_set=yes;;
5905 eval ac_cv_prog_make_${ac_make}_set=no;;
5906 esac
5907 rm -f conftest.make
5909 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5911 $as_echo "yes" >&6; }
5912 SET_MAKE=
5913 else
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915 $as_echo "no" >&6; }
5916 SET_MAKE="MAKE=${MAKE-make}"
5920 for ac_prog in flex lex
5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
5923 set dummy $ac_prog; ac_word=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if test "${ac_cv_prog_LEX+set}" = set; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 if test -n "$LEX"; then
5930 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5935 IFS=$as_save_IFS
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_prog_LEX="$ac_prog"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5943 done
5944 done
5945 IFS=$as_save_IFS
5949 LEX=$ac_cv_prog_LEX
5950 if test -n "$LEX"; then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5952 $as_echo "$LEX" >&6; }
5953 else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 $as_echo "no" >&6; }
5959 test -n "$LEX" && break
5960 done
5961 test -n "$LEX" || LEX=":"
5963 if test "x$LEX" != "x:"; then
5964 cat >conftest.l <<_ACEOF
5966 a { ECHO; }
5967 b { REJECT; }
5968 c { yymore (); }
5969 d { yyless (1); }
5970 e { yyless (input () != 0); }
5971 f { unput (yytext[0]); }
5972 . { BEGIN INITIAL; }
5974 #ifdef YYTEXT_POINTER
5975 extern char *yytext;
5976 #endif
5978 main (void)
5980 return ! yylex () + ! yywrap ();
5982 _ACEOF
5983 { { ac_try="$LEX conftest.l"
5984 case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987 esac
5988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5989 $as_echo "$ac_try_echo"; } >&5
5990 (eval "$LEX conftest.l") 2>&5
5991 ac_status=$?
5992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993 test $ac_status = 0; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5995 $as_echo_n "checking lex output file root... " >&6; }
5996 if test "${ac_cv_prog_lex_root+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
6000 if test -f lex.yy.c; then
6001 ac_cv_prog_lex_root=lex.yy
6002 elif test -f lexyy.c; then
6003 ac_cv_prog_lex_root=lexyy
6004 else
6005 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
6009 $as_echo "$ac_cv_prog_lex_root" >&6; }
6010 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6012 if test -z "${LEXLIB+set}"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
6014 $as_echo_n "checking lex library... " >&6; }
6015 if test "${ac_cv_lib_lex+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6019 ac_save_LIBS=$LIBS
6020 ac_cv_lib_lex='none needed'
6021 for ac_lib in '' -lfl -ll; do
6022 LIBS="$ac_lib $ac_save_LIBS"
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 `cat $LEX_OUTPUT_ROOT.c`
6026 _ACEOF
6027 if ac_fn_c_try_link "$LINENO"; then :
6028 ac_cv_lib_lex=$ac_lib
6030 rm -f core conftest.err conftest.$ac_objext \
6031 conftest$ac_exeext conftest.$ac_ext
6032 test "$ac_cv_lib_lex" != 'none needed' && break
6033 done
6034 LIBS=$ac_save_LIBS
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
6038 $as_echo "$ac_cv_lib_lex" >&6; }
6039 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
6044 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6045 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
6046 $as_echo_n "(cached) " >&6
6047 else
6048 # POSIX says lex can declare yytext either as a pointer or an array; the
6049 # default is implementation-dependent. Figure out which it is, since
6050 # not all implementations provide the %pointer and %array declarations.
6051 ac_cv_prog_lex_yytext_pointer=no
6052 ac_save_LIBS=$LIBS
6053 LIBS="$LEXLIB $ac_save_LIBS"
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #define YYTEXT_POINTER 1
6057 `cat $LEX_OUTPUT_ROOT.c`
6058 _ACEOF
6059 if ac_fn_c_try_link "$LINENO"; then :
6060 ac_cv_prog_lex_yytext_pointer=yes
6062 rm -f core conftest.err conftest.$ac_objext \
6063 conftest$ac_exeext conftest.$ac_ext
6064 LIBS=$ac_save_LIBS
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6068 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6069 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6071 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6074 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6078 if test -n "$ac_tool_prefix"; then
6079 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6080 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test -n "$RANLIB"; then
6087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6100 done
6101 done
6102 IFS=$as_save_IFS
6106 RANLIB=$ac_cv_prog_RANLIB
6107 if test -n "$RANLIB"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6109 $as_echo "$RANLIB" >&6; }
6110 else
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6117 if test -z "$ac_cv_prog_RANLIB"; then
6118 ac_ct_RANLIB=$RANLIB
6119 # Extract the first word of "ranlib", so it can be a program name with args.
6120 set dummy ranlib; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 if test -n "$ac_ct_RANLIB"; then
6127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136 ac_cv_prog_ac_ct_RANLIB="ranlib"
6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6140 done
6141 done
6142 IFS=$as_save_IFS
6146 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6147 if test -n "$ac_ct_RANLIB"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6149 $as_echo "$ac_ct_RANLIB" >&6; }
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6155 if test "x$ac_ct_RANLIB" = x; then
6156 RANLIB=":"
6157 else
6158 case $cross_compiling:$ac_tool_warned in
6159 yes:)
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162 ac_tool_warned=yes ;;
6163 esac
6164 RANLIB=$ac_ct_RANLIB
6166 else
6167 RANLIB="$ac_cv_prog_RANLIB"
6170 for ac_prog in 'bison -y' byacc
6172 # Extract the first word of "$ac_prog", so it can be a program name with args.
6173 set dummy $ac_prog; ac_word=$2
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175 $as_echo_n "checking for $ac_word... " >&6; }
6176 if test "${ac_cv_prog_YACC+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 if test -n "$YACC"; then
6180 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6181 else
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6189 ac_cv_prog_YACC="$ac_prog"
6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6193 done
6194 done
6195 IFS=$as_save_IFS
6199 YACC=$ac_cv_prog_YACC
6200 if test -n "$YACC"; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6202 $as_echo "$YACC" >&6; }
6203 else
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 $as_echo "no" >&6; }
6209 test -n "$YACC" && break
6210 done
6211 test -n "$YACC" || YACC="yacc"
6214 if test -n "$ac_tool_prefix"; then
6215 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6216 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218 $as_echo_n "checking for $ac_word... " >&6; }
6219 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6220 $as_echo_n "(cached) " >&6
6221 else
6222 if test -n "$RANLIB"; then
6223 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6232 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 break 2
6236 done
6237 done
6238 IFS=$as_save_IFS
6242 RANLIB=$ac_cv_prog_RANLIB
6243 if test -n "$RANLIB"; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6245 $as_echo "$RANLIB" >&6; }
6246 else
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 $as_echo "no" >&6; }
6253 if test -z "$ac_cv_prog_RANLIB"; then
6254 ac_ct_RANLIB=$RANLIB
6255 # Extract the first word of "ranlib", so it can be a program name with args.
6256 set dummy ranlib; ac_word=$2
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6260 $as_echo_n "(cached) " >&6
6261 else
6262 if test -n "$ac_ct_RANLIB"; then
6263 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_ac_ct_RANLIB="ranlib"
6273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 break 2
6276 done
6277 done
6278 IFS=$as_save_IFS
6282 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6283 if test -n "$ac_ct_RANLIB"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6285 $as_echo "$ac_ct_RANLIB" >&6; }
6286 else
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6291 if test "x$ac_ct_RANLIB" = x; then
6292 RANLIB=""
6293 else
6294 case $cross_compiling:$ac_tool_warned in
6295 yes:)
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6298 ac_tool_warned=yes ;;
6299 esac
6300 RANLIB=$ac_ct_RANLIB
6302 else
6303 RANLIB="$ac_cv_prog_RANLIB"
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}strip; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if test "${ac_cv_prog_STRIP+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 if test -n "$STRIP"; then
6315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6334 STRIP=$ac_cv_prog_STRIP
6335 if test -n "$STRIP"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6337 $as_echo "$STRIP" >&6; }
6338 else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6345 if test -z "$ac_cv_prog_STRIP"; then
6346 ac_ct_STRIP=$STRIP
6347 # Extract the first word of "strip", so it can be a program name with args.
6348 set dummy strip; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -n "$ac_ct_STRIP"; then
6355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_STRIP="strip"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6375 if test -n "$ac_ct_STRIP"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6377 $as_echo "$ac_ct_STRIP" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6383 if test "x$ac_ct_STRIP" = x; then
6384 STRIP=""
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6390 ac_tool_warned=yes ;;
6391 esac
6392 STRIP=$ac_ct_STRIP
6394 else
6395 STRIP="$ac_cv_prog_STRIP"
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}ar; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if test "${ac_cv_prog_AR+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 if test -n "$AR"; then
6407 ac_cv_prog_AR="$AR" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416 ac_cv_prog_AR="${ac_tool_prefix}ar"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6420 done
6421 done
6422 IFS=$as_save_IFS
6426 AR=$ac_cv_prog_AR
6427 if test -n "$AR"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6429 $as_echo "$AR" >&6; }
6430 else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_prog_AR"; then
6438 ac_ct_AR=$AR
6439 # Extract the first word of "ar", so it can be a program name with args.
6440 set dummy ar; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$ac_ct_AR"; then
6447 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_ac_ct_AR="ar"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6462 IFS=$as_save_IFS
6466 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6467 if test -n "$ac_ct_AR"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6469 $as_echo "$ac_ct_AR" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_ct_AR" = x; then
6476 AR=""
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484 AR=$ac_ct_AR
6486 else
6487 AR="$ac_cv_prog_AR"
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}ld; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if test "${ac_cv_prog_LD+set}" = set; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 if test -n "$LD"; then
6499 ac_cv_prog_LD="$LD" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508 ac_cv_prog_LD="${ac_tool_prefix}ld"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6512 done
6513 done
6514 IFS=$as_save_IFS
6518 LD=$ac_cv_prog_LD
6519 if test -n "$LD"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6521 $as_echo "$LD" >&6; }
6522 else
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6529 if test -z "$ac_cv_prog_LD"; then
6530 ac_ct_LD=$LD
6531 # Extract the first word of "ld", so it can be a program name with args.
6532 set dummy ld; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 if test -n "$ac_ct_LD"; then
6539 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_ac_ct_LD="ld"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6552 done
6553 done
6554 IFS=$as_save_IFS
6558 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6559 if test -n "$ac_ct_LD"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6561 $as_echo "$ac_ct_LD" >&6; }
6562 else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6567 if test "x$ac_ct_LD" = x; then
6568 LD=""
6569 else
6570 case $cross_compiling:$ac_tool_warned in
6571 yes:)
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574 ac_tool_warned=yes ;;
6575 esac
6576 LD=$ac_ct_LD
6578 else
6579 LD="$ac_cv_prog_LD"
6583 # Check whether --enable-monolithic was given.
6584 if test "${enable_monolithic+set}" = set; then :
6585 enableval=$enable_monolithic;
6588 if test ${enable_monolithic:-yes} = yes; then
6589 MONOLITHIC_TRUE=
6590 MONOLITHIC_FALSE='#'
6591 else
6592 MONOLITHIC_TRUE='#'
6593 MONOLITHIC_FALSE=
6597 # Check whether --enable-amule-daemon was given.
6598 if test "${enable_amule_daemon+set}" = set; then :
6599 enableval=$enable_amule_daemon;
6602 if test ${enable_amule_daemon:-no} = yes; then
6603 AMULE_DAEMON_TRUE=
6604 AMULE_DAEMON_FALSE='#'
6605 else
6606 AMULE_DAEMON_TRUE='#'
6607 AMULE_DAEMON_FALSE=
6611 # Check whether --enable-amulecmd was given.
6612 if test "${enable_amulecmd+set}" = set; then :
6613 enableval=$enable_amulecmd;
6616 if test ${enable_amulecmd:-no} = yes; then
6617 COMPILE_CMD_TRUE=
6618 COMPILE_CMD_FALSE='#'
6619 else
6620 COMPILE_CMD_TRUE='#'
6621 COMPILE_CMD_FALSE=
6625 # Check whether --enable-webserver was given.
6626 if test "${enable_webserver+set}" = set; then :
6627 enableval=$enable_webserver;
6630 if test ${enable_webserver:-no} = yes; then
6631 WEB_TRUE=
6632 WEB_FALSE='#'
6633 else
6634 WEB_TRUE='#'
6635 WEB_FALSE=
6639 # Check whether --enable-amule-gui was given.
6640 if test "${enable_amule_gui+set}" = set; then :
6641 enableval=$enable_amule_gui;
6644 if test ${enable_amule_gui:-no} = yes; then
6645 AMULE_GUI_TRUE=
6646 AMULE_GUI_FALSE='#'
6647 else
6648 AMULE_GUI_TRUE='#'
6649 AMULE_GUI_FALSE=
6653 # Check whether --enable-cas was given.
6654 if test "${enable_cas+set}" = set; then :
6655 enableval=$enable_cas;
6658 if test ${enable_cas:-no} = yes; then
6659 CAS_TRUE=
6660 CAS_FALSE='#'
6661 else
6662 CAS_TRUE='#'
6663 CAS_FALSE=
6667 # Check whether --enable-wxcas was given.
6668 if test "${enable_wxcas+set}" = set; then :
6669 enableval=$enable_wxcas;
6672 if test ${enable_wxcas:-no} = yes; then
6673 WXCAS_TRUE=
6674 WXCAS_FALSE='#'
6675 else
6676 WXCAS_TRUE='#'
6677 WXCAS_FALSE=
6681 # Check whether --enable-ed2k was given.
6682 if test "${enable_ed2k+set}" = set; then :
6683 enableval=$enable_ed2k;
6686 if test ${enable_ed2k:-yes} = yes; then
6687 ED2K_TRUE=
6688 ED2K_FALSE='#'
6689 else
6690 ED2K_TRUE='#'
6691 ED2K_FALSE=
6695 # Check whether --enable-alc was given.
6696 if test "${enable_alc+set}" = set; then :
6697 enableval=$enable_alc;
6700 if test ${enable_alc:-no} = yes; then
6701 ALC_TRUE=
6702 ALC_FALSE='#'
6703 else
6704 ALC_TRUE='#'
6705 ALC_FALSE=
6709 # Check whether --enable-alcc was given.
6710 if test "${enable_alcc+set}" = set; then :
6711 enableval=$enable_alcc;
6714 if test ${enable_alcc:-no} = yes; then
6715 ALCC_TRUE=
6716 ALCC_FALSE='#'
6717 else
6718 ALCC_TRUE='#'
6719 ALCC_FALSE=
6723 # Check whether --enable-xas was given.
6724 if test "${enable_xas+set}" = set; then :
6725 enableval=$enable_xas;
6728 if test ${enable_xas:-no} = yes; then
6729 XAS_TRUE=
6730 XAS_FALSE='#'
6731 else
6732 XAS_TRUE='#'
6733 XAS_FALSE=
6737 # Check whether --enable-fileview was given.
6738 if test "${enable_fileview+set}" = set; then :
6739 enableval=$enable_fileview;
6742 if test ${enable_fileview:-no} = yes; then
6743 FILEVIEW_TRUE=
6744 FILEVIEW_FALSE='#'
6745 else
6746 FILEVIEW_TRUE='#'
6747 FILEVIEW_FALSE=
6751 # Check whether --enable-plasmamule was given.
6752 if test "${enable_plasmamule+set}" = set; then :
6753 enableval=$enable_plasmamule;
6758 # Run all the tests with static linkage if we want a statically linked binary
6759 # Check whether --enable-static was given.
6760 if test "${enable_static+set}" = set; then :
6761 enableval=$enable_static;
6765 if test ${enable_static:-no} = yes; then :
6766 LDFLAGS="$LDFLAGS -static"
6771 # Check whether --with-kde4-config was given.
6772 if test "${with_kde4_config+set}" = set; then :
6773 withval=$with_kde4_config; KDE4_CONFIG=$withval
6774 else
6775 KDE4_CONFIG=""
6778 # Check whether --enable-kde-in-home was given.
6779 if test "${enable_kde_in_home+set}" = set; then :
6780 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
6781 else
6782 KDE_IN_HOME=no
6788 # Check whether --with-moc was given.
6789 if test "${with_moc+set}" = set; then :
6790 withval=$with_moc; QT_MOC=$withval
6791 else
6792 QT_MOC=""
6797 # Default is yes, because they're most likely compatible.
6798 # However, this is only used when cross-compiling.
6800 # Check whether --with-gnu-malloc was given.
6801 if test "${with_gnu_malloc+set}" = set; then :
6802 withval=$with_gnu_malloc; gnumalloc=$withval
6803 else
6804 gnumalloc=yes
6809 # Checking for libs before all other stuff to break
6810 # configure as soon as possible in case of a missing one
6811 # to avoid losing too much time
6813 # Check for zlib
6814 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 :
6817 # Check whether --with-zlib was given.
6818 if test "${with_zlib+set}" = set; then :
6819 withval=$with_zlib;
6823 case "${with_zlib:-yes}" in
6825 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6827 yes | sys)
6830 zlib_prefix="$with_zlib"
6831 esac
6833 mule_backup_CPPFLAGS="$CPPFLAGS"
6834 mule_backup_LDFLAGS="$LDFLAGS"
6835 mule_backup_LIBS="$LIBS"
6836 if test -n "$zlib_prefix"; then :
6838 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
6839 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
6840 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
6841 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
6843 else
6845 ZLIB_CPPFLAGS=
6846 ZLIB_LDFLAGS=
6849 ZLIB_LIBS="-lz"
6850 LIBS="$ZLIB_LIBS $LIBS"
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
6853 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
6854 if test "$cross_compiling" = yes; then :
6856 result=no
6857 z_version=
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6862 #include <zlib.h>
6863 #include <stdio.h>
6866 main ()
6869 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
6870 zlibVersion();
6873 return 0;
6876 _ACEOF
6877 if ac_fn_c_try_link "$LINENO"; then :
6879 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
6880 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
6881 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
6882 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
6883 if test "$cross_zver_max" -gt "1"; then
6884 result=yes
6885 elif test "$cross_zver_max" -eq "1"; then
6887 if test "$cross_zver_mid" -gt "1"; then
6888 result=yes
6889 elif test "$cross_zver_mid" -eq "1"; then
6890 if test "$cross_zver_min" -ge "4"; then
6891 result=yes
6899 if test ${result:-no} = yes; then :
6900 z_version=" (version $ZLIB_VERSION)"
6904 rm -f core conftest.err conftest.$ac_objext \
6905 conftest$ac_exeext conftest.$ac_ext
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6907 $as_echo "$result$z_version" >&6; }
6909 else
6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 /* end confdefs.h. */
6914 #include <zlib.h>
6915 #include <stdio.h>
6918 main ()
6920 char *zver = zlibVersion();
6921 FILE *f=fopen("conftestval", "w");
6922 if (!f) return 1;
6923 fprintf(f, "%s",
6924 zver[0] > '1' ||
6925 (zver[0] == '1' &&
6926 (zver[2] > '1' ||
6927 (zver[2] == '1' &&
6928 zver[4] >= '4'))) ? "yes" : "no");
6929 fclose(f);
6930 f=fopen("conftestver", "w");
6931 if (f) {
6932 fprintf(f, "%s", ZLIB_VERSION);
6933 fclose(f);
6937 return 0;
6940 _ACEOF
6941 if ac_fn_c_try_run "$LINENO"; then :
6943 if test -f conftestval; then :
6944 result=`cat conftestval`
6945 else
6946 result=no
6948 if test ${result:-no} = yes; then :
6950 if test -f conftestver; then :
6952 ZLIB_VERSION=`cat conftestver`
6953 z_version=" (version $ZLIB_VERSION)"
6955 else
6956 z_version=
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6961 $as_echo "$result$z_version" >&6; }
6963 else
6965 result=no
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6967 $as_echo "$result" >&6; }
6970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6971 conftest.$ac_objext conftest.beam conftest.$ac_ext
6975 CPPFLAGS="$mule_backup_CPPFLAGS"
6976 LDFLAGS="$mule_backup_LDFLAGS"
6977 LIBS="$mule_backup_LIBS"
6979 if test ${result:-no} = no; then :
6981 ZLIB_CPPFLAGS=
6982 ZLIB_LDFLAGS=
6983 ZLIB_LIBS=
6984 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6993 $as_echo_n "checking for ANSI C header files... " >&6; }
6994 if test "${ac_cv_header_stdc+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 #include <stdlib.h>
7000 #include <stdarg.h>
7001 #include <string.h>
7002 #include <float.h>
7005 main ()
7009 return 0;
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013 ac_cv_header_stdc=yes
7014 else
7015 ac_cv_header_stdc=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 if test $ac_cv_header_stdc = yes; then
7020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023 #include <string.h>
7025 _ACEOF
7026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7027 $EGREP "memchr" >/dev/null 2>&1; then :
7029 else
7030 ac_cv_header_stdc=no
7032 rm -f conftest*
7036 if test $ac_cv_header_stdc = yes; then
7037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7040 #include <stdlib.h>
7042 _ACEOF
7043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 $EGREP "free" >/dev/null 2>&1; then :
7046 else
7047 ac_cv_header_stdc=no
7049 rm -f conftest*
7053 if test $ac_cv_header_stdc = yes; then
7054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7055 if test "$cross_compiling" = yes; then :
7057 else
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7060 #include <ctype.h>
7061 #include <stdlib.h>
7062 #if ((' ' & 0x0FF) == 0x020)
7063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7065 #else
7066 # define ISLOWER(c) \
7067 (('a' <= (c) && (c) <= 'i') \
7068 || ('j' <= (c) && (c) <= 'r') \
7069 || ('s' <= (c) && (c) <= 'z'))
7070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7071 #endif
7073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7075 main ()
7077 int i;
7078 for (i = 0; i < 256; i++)
7079 if (XOR (islower (i), ISLOWER (i))
7080 || toupper (i) != TOUPPER (i))
7081 return 2;
7082 return 0;
7084 _ACEOF
7085 if ac_fn_c_try_run "$LINENO"; then :
7087 else
7088 ac_cv_header_stdc=no
7090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7091 conftest.$ac_objext conftest.beam conftest.$ac_ext
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7097 $as_echo "$ac_cv_header_stdc" >&6; }
7098 if test $ac_cv_header_stdc = yes; then
7100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7105 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7106 inttypes.h stdint.h unistd.h
7107 do :
7108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7109 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7111 eval as_val=\$$as_ac_Header
7112 if test "x$as_val" = x""yes; then :
7113 cat >>confdefs.h <<_ACEOF
7114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7115 _ACEOF
7119 done
7122 if test ${enable_cas:-no} = yes; then :
7124 # Check for gd
7127 # Check whether --with-gdlib-prefix was given.
7128 if test "${with_gdlib_prefix+set}" = set; then :
7129 withval=$with_gdlib_prefix;
7133 # Check whether --with-gdlib-config was given.
7134 if test "${with_gdlib_config+set}" = set; then :
7135 withval=$with_gdlib_config;
7139 GDLIB_VERSION=
7141 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7142 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7143 GDLIB_CONFIG_NAME=gdlib-config
7145 if test -n "$with_gdlib_config"; then :
7146 GDLIB_CONFIG_NAME="$with_gdlib_config"
7149 # deal with optional prefix
7150 if test -n "$with_gdlib_prefix"; then :
7151 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7154 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7155 if test -x "$GDLIB_CONFIG_NAME"; then :
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7158 $as_echo_n "checking for gdlib-config... " >&6; }
7159 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7161 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7163 else
7164 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7165 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 case $GDLIB_CONFIG_PATH in
7172 [\\/]* | ?:[\\/]*)
7173 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7178 for as_dir in $as_dummy
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7188 done
7189 done
7190 IFS=$as_save_IFS
7192 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7194 esac
7196 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7197 if test -n "$GDLIB_CONFIG_PATH"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7199 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7208 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7211 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7212 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7214 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7215 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7216 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7217 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7219 gdlib_ver_ok=
7220 if test $gdlib_config_major_version -gt 2; then
7221 gdlib_ver_ok=yes
7222 elif test $gdlib_config_major_version -eq 2; then
7224 if test $gdlib_config_minor_version -gt 0; then
7225 gdlib_ver_ok=yes
7226 elif test $gdlib_config_minor_version -eq 0; then
7227 if test $gdlib_config_micro_version -ge 0; then
7228 gdlib_ver_ok=yes
7237 if test -z "$gdlib_ver_ok"; then :
7239 if test -z "$GDLIB_VERSION"; then :
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 else
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7245 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7246 GDLIB_VERSION=
7250 else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7253 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7254 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7255 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7256 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7257 mule_backup_CFLAGS="$CFLAGS"
7258 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7259 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7260 if test "x$ac_cv_header_gd_h" = x""yes; then :
7262 else
7263 GDLIB_VERSION=
7267 CFLAGS="$mule_backup_CFLAGS"
7273 if test -n "$GDLIB_VERSION"; then :
7275 CAS_DEFS="-D__GD__"
7276 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7278 else
7279 CAS_DEFS=
7284 if test -z "$CAS_DEFS"; then :
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7286 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7287 Please check that gdlib-config is in your default path, check out
7288 LD_LIBRARY_PATH or equivalent variable.
7289 Or this might also be that your gdlib-config has other name.
7290 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7291 (replace /usr/bin/gdlib-config with a valid path to your
7292 gdlib-config).
7293 If you use compiled packages check if you have devel pack installed.
7294 To download the latest version check http://www.boutell.com/gd for
7295 sources." >&5
7296 $as_echo "$as_me: WARNING:
7297 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7298 Please check that gdlib-config is in your default path, check out
7299 LD_LIBRARY_PATH or equivalent variable.
7300 Or this might also be that your gdlib-config has other name.
7301 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7302 (replace /usr/bin/gdlib-config with a valid path to your
7303 gdlib-config).
7304 If you use compiled packages check if you have devel pack installed.
7305 To download the latest version check http://www.boutell.com/gd for
7306 sources." >&2;}
7307 _mule_warning_0=yes
7308 _mule_has_warnings=yes
7314 if test ${enable_webserver:-no} = yes; then :
7317 # Check whether --with-libpng-prefix was given.
7318 if test "${with_libpng_prefix+set}" = set; then :
7319 withval=$with_libpng_prefix;
7323 # Check whether --with-libpng-config was given.
7324 if test "${with_libpng_config+set}" = set; then :
7325 withval=$with_libpng_config;
7329 LIBPNG_VERSION=
7331 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7332 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7333 LIBPNG_CONFIG_NAME=libpng-config
7335 if test -n "$with_libpng_config"; then :
7336 LIBPNG_CONFIG_NAME="$with_libpng_config"
7339 # deal with optional prefix
7340 if test -n "$with_libpng_prefix"; then :
7341 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7344 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7345 if test -x "$LIBPNG_CONFIG_NAME"; then :
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7348 $as_echo_n "checking for libpng-config... " >&6; }
7349 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7351 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7353 else
7354 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7355 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 case $LIBPNG_CONFIG_PATH in
7362 [\\/]* | ?:[\\/]*)
7363 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7368 for as_dir in $as_dummy
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 break 2
7378 done
7379 done
7380 IFS=$as_save_IFS
7382 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7384 esac
7386 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7387 if test -n "$LIBPNG_CONFIG_PATH"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7389 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7390 else
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7398 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7401 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7403 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7405 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7406 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7407 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7408 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7410 libpng_ver_ok=
7411 if test $libpng_config_major_version -gt 1; then
7412 libpng_ver_ok=yes
7413 elif test $libpng_config_major_version -eq 1; then
7415 if test $libpng_config_minor_version -gt 2; then
7416 libpng_ver_ok=yes
7417 elif test $libpng_config_minor_version -eq 2; then
7418 if test $libpng_config_micro_version -ge 0; then
7419 libpng_ver_ok=yes
7428 if test -z "$libpng_ver_ok"; then :
7430 if test -z "$LIBPNG_VERSION"; then :
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7436 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7437 LIBPNG_VERSION=
7441 else
7443 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7444 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
7445 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7447 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7450 $as_echo_n "checking if libpng is usable... " >&6; }
7452 SAVED_CFLAGS=$CFLAGS
7453 SAVED_LDFLAGS=$LDFLAGS
7454 SAVED_LIBS=$LIBS
7456 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
7457 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
7458 LIBS="$LIBS $LIBPNG_LIBS"
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7464 #include <png.h>
7465 #include <stdio.h>
7468 main ()
7471 png_uint_32 libpng_vn = png_access_version_number();
7472 printf("\nlibpng version %i\n\n", libpng_vn);
7475 return 0;
7478 _ACEOF
7479 if ac_fn_c_try_link "$LINENO"; then :
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7482 $as_echo "yes" >&6; }
7484 else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
7487 $as_echo "no (failed to compile and link test program)" >&6; }
7488 LIBPNG_LIBS=
7489 LIBPNG_LDFLAGS=
7490 LIBPNG_CFLAGS=
7491 LIBPNG_VERSION=
7494 rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
7497 CFLAGS=$SAVED_CFLAGS
7498 LDFLAGS=$SAVED_LDFLAGS
7499 LIBS=$SAVED_LIBS
7505 if test -n "$LIBPNG_VERSION"; then :
7506 AMULEWEB_DEFS="-DWITH_LIBPNG"
7507 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7510 libpng >= 1.2.0 not found.
7511 amuleweb will be compiled but file download progress bar images will
7512 NOT be generated." >&5
7513 $as_echo "$as_me: WARNING:
7514 libpng >= 1.2.0 not found.
7515 amuleweb will be compiled but file download progress bar images will
7516 NOT be generated." >&2;}
7517 _mule_warning_1=yes
7518 _mule_has_warnings=yes
7528 # Check for perl File::Copy
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
7530 $as_echo_n "checking for File::Copy... " >&6; }
7531 if perl -e "require File::Copy" 2>/dev/null; then :
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7533 $as_echo "ok" >&6; }
7534 else
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7536 File::Copy perl module is required by the mldonkey_importer script.
7537 If you want to use this script please install File::Copy from CPAN." >&5
7538 $as_echo "$as_me: WARNING:
7539 File::Copy perl module is required by the mldonkey_importer script.
7540 If you want to use this script please install File::Copy from CPAN." >&2;}
7541 _mule_warning_2=yes
7542 _mule_has_warnings=yes
7546 # Check for GeoIP (required for IP2Country capability)
7547 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7549 # Check whether --enable-geoip was given.
7550 if test "${enable_geoip+set}" = set; then :
7551 enableval=$enable_geoip;
7556 if test ${enable_geoip:-no} = yes; then :
7559 # Check whether --with-geoip-headers was given.
7560 if test "${with_geoip_headers+set}" = set; then :
7561 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
7565 # Check whether --with-geoip-lib was given.
7566 if test "${with_geoip_lib+set}" = set; then :
7567 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
7571 mule_backup_CPPFLAGS="$CPPFLAGS"
7572 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7573 mule_backup_LDFLAGS="$LDFLAGS"
7574 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7576 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
7577 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
7579 if test x$SYS = xwin32; then :
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
7582 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
7583 # Actually, we might not need any if GeoIP is linked as a .dll
7584 # - but that's even harder to check for
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7589 #include <GeoIP.h>
7590 #ifdef _WINSOCK2_H
7591 I do know it's not the best approach, but at least works with MinGW stock headers.
7592 (tested with w32api-3.12)
7593 #endif
7596 main ()
7600 return 0;
7603 _ACEOF
7604 if ac_fn_c_try_compile "$LINENO"; then :
7606 GEOIP_WINSOCK_LIB="-lwsock32"
7608 else
7610 GEOIP_WINSOCK_LIB="-lws2_32"
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
7615 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
7619 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
7620 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 ac_check_lib_save_LIBS=$LIBS
7624 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7628 /* Override any GCC internal prototype to avoid an error.
7629 Use char because int might match the return type of a GCC
7630 builtin and then its argument prototype would still apply. */
7631 #ifdef __cplusplus
7632 extern "C"
7633 #endif
7634 char GeoIP_open ();
7636 main ()
7638 return GeoIP_open ();
7640 return 0;
7642 _ACEOF
7643 if ac_fn_c_try_link "$LINENO"; then :
7644 ac_cv_lib_GeoIP_GeoIP_open=yes
7645 else
7646 ac_cv_lib_GeoIP_GeoIP_open=no
7648 rm -f core conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 LIBS=$ac_check_lib_save_LIBS
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7653 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
7654 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
7657 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
7659 GEOIP_LIBS="-lGeoIP"
7660 if test x$SYS = xwin32; then :
7661 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7663 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7665 # Check whether --with-geoip-static was given.
7666 if test "${with_geoip_static+set}" = set; then :
7667 withval=$with_geoip_static;
7668 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
7670 mule_backup_LIBS="$LIBS"
7671 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7676 #include <GeoIP.h>
7679 main ()
7682 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7685 return 0;
7688 _ACEOF
7689 if ac_fn_c_try_link "$LINENO"; then :
7691 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7693 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7696 Cannot link GeoIP statically, because your linker ($LD) does not
7697 support it." >&5
7698 $as_echo "$as_me: WARNING:
7699 Cannot link GeoIP statically, because your linker ($LD) does not
7700 support it." >&2;}
7701 _mule_warning_3=yes
7702 _mule_has_warnings=yes
7706 rm -f core conftest.err conftest.$ac_objext \
7707 conftest$ac_exeext conftest.$ac_ext
7708 LIBS="$mule_backup_LIBS"
7715 else
7717 enable_geoip=disabled
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7719 GeoIP support has been disabled because the GeoIP libraries were not
7720 found" >&5
7721 $as_echo "$as_me: WARNING:
7722 GeoIP support has been disabled because the GeoIP libraries were not
7723 found" >&2;}
7724 _mule_warning_4=yes
7725 _mule_has_warnings=yes
7731 else
7733 enable_geoip=disabled
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7735 GeoIP support has been disabled because the GeoIP header files were
7736 not found" >&5
7737 $as_echo "$as_me: WARNING:
7738 GeoIP support has been disabled because the GeoIP header files were
7739 not found" >&2;}
7740 _mule_warning_5=yes
7741 _mule_has_warnings=yes
7748 CPPFLAGS="$mule_backup_CPPFLAGS"
7749 LDFLAGS="$mule_backup_LDFLAGS"
7755 # Check for wx
7756 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 :
7759 # Check whether --with-wxdir was given.
7760 if test "${with_wxdir+set}" = set; then :
7761 withval=$with_wxdir; wx_config_name="$withval/wx-config"
7762 wx_config_args="--inplace"
7766 # Check whether --with-wx-config was given.
7767 if test "${with_wx_config+set}" = set; then :
7768 withval=$with_wx_config; wx_config_name="$withval"
7772 # Check whether --with-wx-prefix was given.
7773 if test "${with_wx_prefix+set}" = set; then :
7774 withval=$with_wx_prefix; wx_config_prefix="$withval"
7775 else
7776 wx_config_prefix=""
7780 # Check whether --with-wx-exec-prefix was given.
7781 if test "${with_wx_exec_prefix+set}" = set; then :
7782 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
7783 else
7784 wx_config_exec_prefix=""
7799 # Check whether --with-toolkit was given.
7800 if test "${with_toolkit+set}" = set; then :
7801 withval=$with_toolkit;
7802 else
7803 withval="auto"
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
7808 $as_echo_n "checking for the --with-toolkit option... " >&6; }
7809 if test "$withval" = "auto" ; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7811 $as_echo "will be automatically detected" >&6; }
7812 TOOLKIT="auto"
7813 else
7814 TOOLKIT="$withval"
7816 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7817 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7818 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7819 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7820 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7821 "$TOOLKIT" != "osx_cocoa"; then
7822 as_fn_error "
7823 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7824 " "$LINENO" 5
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
7828 $as_echo "$TOOLKIT" >&6; }
7835 # Check whether --with-wxshared was given.
7836 if test "${with_wxshared+set}" = set; then :
7837 withval=$with_wxshared;
7838 else
7839 withval="auto"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
7844 $as_echo_n "checking for the --with-wxshared option... " >&6; }
7845 if test "$withval" = "yes" ; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7848 WX_SHARED=1
7850 elif test "1" = "1" -a "$withval" = "no" ; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7853 WX_SHARED=0
7854 elif test "$withval" = "auto" ; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7856 $as_echo "will be automatically detected" >&6; }
7857 WX_SHARED="auto"
7858 else
7859 as_fn_error "
7860 Unrecognized option value (allowed values: yes, auto)
7861 " "$LINENO" 5
7868 # Check whether --with-wxdebug was given.
7869 if test "${with_wxdebug+set}" = set; then :
7870 withval=$with_wxdebug;
7871 else
7872 withval="auto"
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
7877 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
7878 if test "$withval" = "yes" ; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7880 $as_echo "yes" >&6; }
7881 WX_DEBUG=1
7883 elif test "1" = "1" -a "$withval" = "no" ; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 WX_DEBUG=0
7887 elif test "$withval" = "auto" ; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7889 $as_echo "will be automatically detected" >&6; }
7890 WX_DEBUG="auto"
7891 else
7892 as_fn_error "
7893 Unrecognized option value (allowed values: yes, auto)
7894 " "$LINENO" 5
7901 # Check whether --with-wxversion was given.
7902 if test "${with_wxversion+set}" = set; then :
7903 withval=$with_wxversion;
7904 else
7905 withval="auto"
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
7910 $as_echo_n "checking for the --with-wxversion option... " >&6; }
7911 if test "$withval" = "auto" ; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7913 $as_echo "will be automatically detected" >&6; }
7914 WX_VERSION="auto"
7915 else
7917 wx_requested_major_version=`echo $withval | \
7918 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7919 wx_requested_minor_version=`echo $withval | \
7920 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7922 if test "${#wx_requested_major_version}" != "1" -o \
7923 "${#wx_requested_minor_version}" != "1" ; then
7924 as_fn_error "
7925 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7926 " "$LINENO" 5
7929 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
7931 $as_echo "$WX_VERSION" >&6; }
7935 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7936 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7937 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7938 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7939 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7940 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7943 # Force using a static wxWidgets library if the executable is to be linked statically.
7944 if test ${enable_static:-no} = yes; then :
7945 WX_SHARED=0
7947 # Force using a unicode build of the library
7948 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 :
7949 WX_UNICODE=1
7951 DEBUG=$WX_DEBUG
7953 if test "$WX_SHARED" = "1" ; then
7954 WXCONFIG_FLAGS="--static=no "
7955 elif test "$WX_SHARED" = "0" ; then
7956 WXCONFIG_FLAGS="--static=yes "
7959 if test "$WX_DEBUG" = "1" ; then
7960 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7961 elif test "$WX_DEBUG" = "0" ; then
7962 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7965 if test "$WX_UNICODE" = "1" ; then
7966 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7967 elif test "$WX_UNICODE" = "0" ; then
7968 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7971 if test "$TOOLKIT" != "auto" ; then
7972 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7975 if test "$WX_VERSION" != "auto" ; then
7976 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7979 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7981 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7982 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7986 if test x${WX_CONFIG_NAME+set} != xset ; then
7987 WX_CONFIG_NAME=wx-config
7990 if test "x$wx_config_name" != x ; then
7991 WX_CONFIG_NAME="$wx_config_name"
7994 if test x$wx_config_exec_prefix != x ; then
7995 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7996 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7998 if test x$wx_config_prefix != x ; then
7999 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8000 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8002 if test "$cross_compiling" = "yes"; then
8003 wx_config_args="$wx_config_args --host=$host_alias"
8006 if test -x "$WX_CONFIG_NAME" ; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8008 $as_echo_n "checking for wx-config... " >&6; }
8009 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8011 $as_echo "$WX_CONFIG_PATH" >&6; }
8012 else
8013 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8014 set dummy $WX_CONFIG_NAME; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 case $WX_CONFIG_PATH in
8021 [\\/]* | ?:[\\/]*)
8022 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8027 for as_dir in $as_dummy
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8037 done
8038 done
8039 IFS=$as_save_IFS
8041 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8043 esac
8045 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8046 if test -n "$WX_CONFIG_PATH"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8048 $as_echo "$WX_CONFIG_PATH" >&6; }
8049 else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8057 if test "$WX_CONFIG_PATH" != "no" ; then
8058 WX_VERSION_FULL=""
8060 min_wx_version=2.8.12
8061 if test -z "$WXCONFIG_FLAGS" ; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8063 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8064 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8066 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8069 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
8071 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8072 wx_config_major_version=`echo $WX_VERSION_FULL | \
8073 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8074 wx_config_minor_version=`echo $WX_VERSION_FULL | \
8075 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8076 wx_config_micro_version=`echo $WX_VERSION_FULL | \
8077 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8079 wx_requested_major_version=`echo $min_wx_version | \
8080 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8081 wx_requested_minor_version=`echo $min_wx_version | \
8082 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8083 wx_requested_micro_version=`echo $min_wx_version | \
8084 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8087 wx_ver_ok=""
8088 if test "x$WX_VERSION_FULL" != x ; then
8089 if test $wx_config_major_version -gt $wx_requested_major_version; then
8090 wx_ver_ok=yes
8091 else
8092 if test $wx_config_major_version -eq $wx_requested_major_version; then
8093 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8094 wx_ver_ok=yes
8095 else
8096 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8097 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8098 wx_ver_ok=yes
8107 if test -n "$wx_ver_ok"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
8110 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
8111 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
8113 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8115 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
8116 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
8117 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
8119 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8120 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8122 wxWin=1
8124 else
8126 if test "x$WX_VERSION_FULL" = x; then
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
8131 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
8134 WX_CFLAGS=""
8135 WX_CPPFLAGS=""
8136 WX_CXXFLAGS=""
8137 WX_LIBS=""
8138 WX_RESCOMP=""
8140 if test ! -z "$WXCONFIG_FLAGS"; then
8142 wx_error_message="
8143 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8144 build with the following settings:
8145 $WXCONFIG_FLAGS
8146 but such build is not available.
8148 To see the wxWidgets builds available on this system, please use
8149 'wx-config --list' command. To use the default build, returned by
8150 'wx-config --selected-config', use the options with their 'auto'
8151 default values."
8155 wx_error_message="
8156 The requested wxWidgets build couldn't be found.
8157 $wx_error_message
8159 If you still get this error, then check that 'wx-config' is
8160 in path, the directory where wxWidgets libraries are installed
8161 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8162 or equivalent variable and wxWidgets version is 2.8.12 or above."
8164 as_fn_error "$wx_error_message" "$LINENO" 5
8167 else
8169 WX_CFLAGS=""
8170 WX_CPPFLAGS=""
8171 WX_CXXFLAGS=""
8172 WX_LIBS=""
8173 WX_RESCOMP=""
8188 WX_VERSION_MAJOR="$wx_config_major_version"
8189 WX_VERSION_MINOR="$wx_config_minor_version"
8193 if test "$wxWin" != 1; then :
8194 as_fn_error "
8195 wxWidgets must be installed on your system but wx-config
8196 script couldn't be found. Please check that wx-config is
8197 in path or specified by --with-wx-config=path flag, the
8198 directory where wxWidgets libraries are installed (returned
8199 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8200 equivalent variable and wxWidgets version is 2.8.12 or above.
8201 " "$LINENO" 5
8204 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8205 as_fn_error "
8206 This version of wxWidgets is known to not work with aMule.
8207 Please upgrade to a newer version.
8208 " "$LINENO" 5
8212 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8214 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8216 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8217 echo "[dbg] Using wx-config --selected-config"
8218 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8222 if test $WX_SHARED = "1"; then
8223 STATIC=0
8224 elif test $WX_SHARED = "0"; then
8225 STATIC=1
8226 elif test $WX_SHARED = "auto"; then
8227 STATIC="auto"
8231 if test "$UNICODE" = "auto" ; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8234 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8236 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8238 if test "$WX_UNICODE" != "0"; then
8239 WX_UNICODE=1
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8241 $as_echo "yes" >&6; }
8243 else
8244 WX_UNICODE=0
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8249 else
8251 WX_UNICODE=$UNICODE
8255 if test "$DEBUG" = "auto" ; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8258 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8260 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8262 if test "$WX_DEBUG" != "0"; then
8263 WX_DEBUG=1
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8265 $as_echo "yes" >&6; }
8267 else
8268 WX_DEBUG=0
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8273 else
8275 WX_DEBUG=$DEBUG
8279 if test "$STATIC" = "auto" ; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8282 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8284 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8286 if test "$WX_STATIC" != "0"; then
8287 WX_STATIC=1
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8289 $as_echo "yes" >&6; }
8291 else
8292 WX_STATIC=0
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8297 else
8299 WX_STATIC=$STATIC
8303 if test "$WX_STATIC" != "0"; then
8304 WX_SHARED=0
8305 else
8306 WX_SHARED=1
8313 if test "$TOOLKIT" = "auto" ; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8316 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8318 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8319 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8320 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8321 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8322 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8323 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8324 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8325 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8326 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8327 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8328 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8330 WX_PORT="unknown"
8331 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8332 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8333 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8334 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8335 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8336 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8337 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8338 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8339 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8340 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8341 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8344 if test "$WX_PORT" = "unknown" ; then
8345 as_fn_error "
8346 Cannot detect the currently installed wxWidgets port !
8347 Please check your 'wx-config --cxxflags'...
8348 " "$LINENO" 5
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8352 $as_echo "$WX_PORT" >&6; }
8353 else
8355 if test -n "$TOOLKIT" ; then
8356 WX_PORT=$TOOLKIT
8357 else
8358 WX_PORT=$PORT
8364 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8365 echo "[dbg] Values of all WX_* options after final detection:"
8366 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8367 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8368 echo "[dbg] WX_SHARED: $WX_SHARED"
8369 echo "[dbg] WX_VERSION: $WX_VERSION"
8370 echo "[dbg] WX_PORT: $WX_PORT"
8373 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8374 as_fn_error "
8375 Cannot build shared library against a static build of wxWidgets !
8376 This error happens because the wxWidgets build which was selected
8377 has been detected as static while you asked to build $PACKAGE_NAME
8378 as shared library and this is not possible.
8379 Use the '--disable-shared' option to build $PACKAGE_NAME
8380 as static library or '--with-wxshared' to use wxWidgets as shared library.
8381 " "$LINENO" 5
8384 if test "$DEBUG" = "auto"; then
8385 DEBUG=$WX_DEBUG
8387 if test "$DEBUG" = "1"; then
8388 BUILD="debug"
8389 elif test "$DEBUG" = ""; then
8390 BUILD="release"
8393 if test "$UNICODE" = "auto"; then
8394 UNICODE=$WX_UNICODE
8396 if test "$SHARED" = "auto"; then
8397 SHARED=$WX_SHARED
8399 if test "$TOOLKIT" = "auto"; then
8400 TOOLKIT=$WX_PORT
8404 # We also need wxBase
8405 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8406 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8407 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8409 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8413 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8414 if test "${WX_PORT}" = base; then :
8415 as_fn_error "
8416 The selected components need a wxWidgets library with GUI,
8417 but your installation is base-only. Please install a GUI
8418 enabled version of wxWidgets and then retry.
8419 " "$LINENO" 5
8424 if test ${SYS:-unknown} = win32; then :
8425 if test -n "$ac_tool_prefix"; then
8426 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8427 set dummy ${ac_tool_prefix}windres; ac_word=$2
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8429 $as_echo_n "checking for $ac_word... " >&6; }
8430 if test "${ac_cv_prog_RC+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 if test -n "$RC"; then
8434 ac_cv_prog_RC="$RC" # Let the user override the test.
8435 else
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 for as_dir in $PATH
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_prog_RC="${ac_tool_prefix}windres"
8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8447 done
8448 done
8449 IFS=$as_save_IFS
8453 RC=$ac_cv_prog_RC
8454 if test -n "$RC"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8456 $as_echo "$RC" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8464 if test -z "$ac_cv_prog_RC"; then
8465 ac_ct_RC=$RC
8466 # Extract the first word of "windres", so it can be a program name with args.
8467 set dummy windres; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 if test -n "$ac_ct_RC"; then
8474 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8475 else
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_prog_ac_ct_RC="windres"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8487 done
8488 done
8489 IFS=$as_save_IFS
8493 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8494 if test -n "$ac_ct_RC"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
8496 $as_echo "$ac_ct_RC" >&6; }
8497 else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8502 if test "x$ac_ct_RC" = x; then
8503 RC=":"
8504 else
8505 case $cross_compiling:$ac_tool_warned in
8506 yes:)
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8509 ac_tool_warned=yes ;;
8510 esac
8511 RC=$ac_ct_RC
8513 else
8514 RC="$ac_cv_prog_RC"
8520 # Check for libupnp
8521 # Check whether --enable-upnp was given.
8522 if test "${enable_upnp+set}" = set; then :
8523 enableval=$enable_upnp;
8527 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
8529 else
8530 enable_upnp=no
8534 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8535 if test -n "$ac_tool_prefix"; then
8536 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8537 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 case $PKG_CONFIG in
8544 [\\/]* | ?:[\\/]*)
8545 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8559 done
8560 done
8561 IFS=$as_save_IFS
8564 esac
8566 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8567 if test -n "$PKG_CONFIG"; then
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8569 $as_echo "$PKG_CONFIG" >&6; }
8570 else
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8577 if test -z "$ac_cv_path_PKG_CONFIG"; then
8578 ac_pt_PKG_CONFIG=$PKG_CONFIG
8579 # Extract the first word of "pkg-config", so it can be a program name with args.
8580 set dummy pkg-config; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 case $ac_pt_PKG_CONFIG in
8587 [\\/]* | ?:[\\/]*)
8588 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8598 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8602 done
8603 done
8604 IFS=$as_save_IFS
8607 esac
8609 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8610 if test -n "$ac_pt_PKG_CONFIG"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8612 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8613 else
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8618 if test "x$ac_pt_PKG_CONFIG" = x; then
8619 PKG_CONFIG=""
8620 else
8621 case $cross_compiling:$ac_tool_warned in
8622 yes:)
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8625 ac_tool_warned=yes ;;
8626 esac
8627 PKG_CONFIG=$ac_pt_PKG_CONFIG
8629 else
8630 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8634 if test -n "$PKG_CONFIG"; then
8635 _pkg_min_version=0.9.0
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8637 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8638 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8640 $as_echo "yes" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8644 PKG_CONFIG=""
8648 if test ${enable_upnp:-yes} = yes; then :
8652 # Check whether --with-libupnp-prefix was given.
8653 if test "${with_libupnp_prefix+set}" = set; then :
8654 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8658 if test $cross_compiling = no; then :
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
8661 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
8662 if test -n "$PKG_CONFIG"; then :
8664 if $PKG_CONFIG libupnp --exists; then :
8666 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8667 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
8669 result=yes
8670 resultstr=" (version $LIBUPNP_VERSION)"
8671 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8672 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8673 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8674 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8675 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8677 else
8679 result=no
8680 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8684 else
8686 result=no
8687 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8691 else
8693 result=no
8694 resultstr=" (pkg-config not found)"
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8698 $as_echo "$result$resultstr" >&6; }
8699 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8701 else
8703 result=no
8704 libupnp_error="cross compiling"
8708 if test ${result:-no} = yes; then :
8709 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8710 else
8711 enable_upnp=disabled
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8713 UPnP code has been disabled because ${libupnp_error}." >&5
8714 $as_echo "$as_me: WARNING:
8715 UPnP code has been disabled because ${libupnp_error}." >&2;}
8716 _mule_warning_6=yes
8717 _mule_has_warnings=yes
8726 # Check for Crypto++
8727 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8730 # Check whether --with-crypto-prefix was given.
8731 if test "${with_crypto_prefix+set}" = set; then :
8732 withval=$with_crypto_prefix;
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
8737 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
8739 cryptopp_file_with_version="cryptlib.h"
8741 CRYPTOPP_STYLE="unknown"
8742 CRYPTOPP_LIB_NAME="unknown"
8743 cryptopp_includedir="unknown"
8744 CRYPTOPP_INCLUDE_PREFIX="unknown"
8745 cryptopp_libdir="unknown"
8747 if test -n "$with_crypto_prefix"; then :
8749 CRYPTOPP_PREFIX="$with_crypto_prefix"
8750 # Find the Cryptopp header in the user-provided location
8751 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8753 CRYPTOPP_STYLE="sources"
8754 CRYPTOPP_LIB_NAME="cryptopp"
8755 cryptopp_includedir=
8756 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8757 cryptopp_libdir=
8759 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8761 CRYPTOPP_STYLE="installed"
8762 CRYPTOPP_LIB_NAME="cryptopp"
8763 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8764 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8765 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8767 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8769 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8770 CRYPTOPP_STYLE="gentoo_debian"
8771 CRYPTOPP_LIB_NAME="crypto++"
8772 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8773 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8774 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8779 else
8781 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8782 # Find the Cryptopp header in system locations
8783 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8785 CRYPTOPP_STYLE="sources"
8786 CRYPTOPP_LIB_NAME="cryptopp"
8787 cryptopp_includedir=
8788 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8789 cryptopp_libdir=
8790 break
8792 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8794 CRYPTOPP_STYLE="installed"
8795 CRYPTOPP_LIB_NAME="cryptopp"
8796 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8797 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8798 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8799 break
8801 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8803 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8804 CRYPTOPP_STYLE="gentoo_debian"
8805 CRYPTOPP_LIB_NAME="crypto++"
8806 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8807 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8808 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8809 break
8813 done
8817 if test $CRYPTOPP_STYLE = "unknown"; then :
8818 result=no; resultstr=""
8819 else
8821 # Find out the crypto++ version and check against the minimum required
8822 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8823 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8824 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8825 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8827 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
8829 result=yes
8830 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8831 if test -n "$cryptopp_includedir"; then :
8832 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8833 else
8834 CRYPTOPP_CPPFLAGS=
8836 if test -n "$cryptopp_libdir"; then :
8838 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8839 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8841 else
8843 CRYPTOPP_LDFLAGS=
8844 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8848 cat >>confdefs.h <<_ACEOF
8849 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8850 _ACEOF
8853 else
8855 result=no
8856 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8863 $as_echo "$result$resultstr" >&6; }
8865 if test ${result:-no} = yes; then :
8867 # Check for CryptoPP >= 5.5
8868 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
8869 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8872 else
8874 as_fn_error "
8875 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8876 Please try again with --with-crypto-prefix=/my_crypto_prefix
8877 (replace /my_crypto_prefix with a valid path to your crypto++
8878 installation directory)." "$LINENO" 5
8886 # Check whether --enable-debug was given.
8887 if test "${enable_debug+set}" = set; then :
8888 enableval=$enable_debug;
8892 # Check whether --enable-profile was given.
8893 if test "${enable_profile+set}" = set; then :
8894 enableval=$enable_profile;
8898 # Check whether --enable-optimize was given.
8899 if test "${enable_optimize+set}" = set; then :
8900 enableval=$enable_optimize;
8905 if test ${enable_debug:-yes} = yes; then :
8907 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
8909 MULECFLAGS="$MULECFLAGS -g"
8910 MULECXXFLAGS="$MULECXXFLAGS -g"
8912 if test ${GCC:-no} = yes; then :
8914 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
8915 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
8918 if test ${SYS:-unknown} = win32; then :
8919 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
8922 else
8924 if test ${GCC:-no} = yes; then :
8926 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
8927 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
8933 if test ${enable_profile:-no} = yes; then :
8936 MULECFLAGS="$MULECFLAGS -pg"
8937 MULECXXFLAGS="$MULECXXFLAGS -pg"
8939 MULELDFLAGS="$MULELDFLAGS -pg"
8943 if test ${enable_optimize:-no} = yes; then :
8945 MULECFLAGS="$MULECFLAGS -O2"
8946 MULECXXFLAGS="$MULECXXFLAGS -O2"
8950 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
8955 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 :
8956 ac_ext=cpp
8957 ac_cpp='$CXXCPP $CPPFLAGS'
8958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8965 if test ${GCC:-no} = yes; then :
8967 mule_backup_CXXFLAGS="$CXXFLAGS"
8968 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
8971 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8977 main ()
8980 int a;
8981 short *b = (short*)&a;
8982 short c = *b;
8984 return c;
8987 return 0;
8990 _ACEOF
8991 if ac_fn_cxx_try_compile "$LINENO"; then :
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994 $as_echo "no" >&6; }
8996 else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8999 $as_echo "yes" >&6; }
9000 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9006 CXXFLAGS="$mule_backup_CXXFLAGS"
9010 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9012 mule_backup_CPPFLAGS="$CPPFLAGS"
9013 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9016 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9021 #include <wx/wx.h>
9022 #include <wx/filefn.h>
9023 #ifndef wxHAS_LARGE_FILES
9024 #error No LargeFile support!
9025 #endif
9028 _ACEOF
9029 if ac_fn_cxx_try_cpp "$LINENO"; then :
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9032 $as_echo "yes" >&6; }
9034 else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9038 as_fn_error "
9039 Support for large files in wxWidgets is required by aMule.
9040 To continue you must recompile wxWidgets with support for
9041 large files enabled." "$LINENO" 5
9044 rm -f conftest.err conftest.$ac_ext
9046 CPPFLAGS="$mule_backup_CPPFLAGS"
9050 # Check if the compiler is broken, wrt. exceptions.
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9053 $as_echo_n "checking for exception-handling... " >&6; }
9054 if test "$cross_compiling" = yes; then :
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9057 $as_echo "undeterminable" >&6; }
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9059 Cross-compilation detected, so exception handling cannot be tested.
9060 Note that broken exception handling in your compiler may lead to
9061 unexpected crashes." >&5
9062 $as_echo "$as_me: WARNING:
9063 Cross-compilation detected, so exception handling cannot be tested.
9064 Note that broken exception handling in your compiler may lead to
9065 unexpected crashes." >&2;}
9066 _mule_warning_7=yes
9067 _mule_has_warnings=yes
9070 else
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9076 main ()
9079 try {
9080 throw 1;
9081 } catch (int) {
9082 return 0;
9084 return 1;
9087 return 0;
9090 _ACEOF
9091 if ac_fn_cxx_try_run "$LINENO"; then :
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9094 $as_echo "yes" >&6; }
9096 else
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9100 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
9103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9104 conftest.$ac_objext conftest.beam conftest.$ac_ext
9110 for ac_header in typeinfo
9111 do :
9112 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9113 if test "x$ac_cv_header_typeinfo" = x""yes; then :
9114 cat >>confdefs.h <<_ACEOF
9115 #define HAVE_TYPEINFO 1
9116 _ACEOF
9120 done
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9123 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9128 #ifdef HAVE_TYPEINFO
9129 # include <typeinfo>
9130 #endif
9131 #include <cxxabi.h>
9134 main ()
9137 int status;
9138 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9139 std::type_info *ti = abi::__cxa_current_exception_type();
9142 return 0;
9145 _ACEOF
9146 if ac_fn_cxx_try_link "$LINENO"; then :
9149 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9152 $as_echo "yes" >&6; }
9154 else
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9163 ac_ext=c
9164 ac_cpp='$CPP $CPPFLAGS'
9165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9172 # Ok, we have all needed libs, now checking for other stuff
9173 if test "$LEX" = "flex"; then :
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
9176 $as_echo_n "checking for extended flex capabilities... " >&6; }
9178 extended_flex=`flex --help | grep header-file`
9179 if test -n "$extended_flex"; then :
9180 HAVE_FLEX_EXTENDED=yes
9181 else
9182 HAVE_FLEX_EXTENDED=no
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
9185 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
9187 if test $HAVE_FLEX_EXTENDED = no; then :
9188 { $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
9189 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
9192 else
9193 HAVE_FLEX_EXTENDED=no
9196 # Flush standard test results for speeding cache
9197 cat >confcache <<\_ACEOF
9198 # This file is a shell script that caches the results of configure
9199 # tests run on this system so they can be shared between configure
9200 # scripts and configure runs, see configure's option --config-cache.
9201 # It is not useful on other systems. If it contains results you don't
9202 # want to keep, you may remove or edit it.
9204 # config.status only pays attention to the cache file if you give it
9205 # the --recheck option to rerun configure.
9207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9209 # following values.
9211 _ACEOF
9213 # The following way of writing the cache mishandles newlines in values,
9214 # but we know of no workaround that is simple, portable, and efficient.
9215 # So, we kill variables containing newlines.
9216 # Ultrix sh set writes to stderr and can't be redirected directly,
9217 # and sets the high bit in the cache file unless we assign to the vars.
9219 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9220 eval ac_val=\$$ac_var
9221 case $ac_val in #(
9222 *${as_nl}*)
9223 case $ac_var in #(
9224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9226 esac
9227 case $ac_var in #(
9228 _ | IFS | as_nl) ;; #(
9229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9230 *) { eval $ac_var=; unset $ac_var;} ;;
9231 esac ;;
9232 esac
9233 done
9235 (set) 2>&1 |
9236 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9237 *${as_nl}ac_space=\ *)
9238 # `set' does not quote correctly, so add quotes: double-quote
9239 # substitution turns \\\\ into \\, and sed turns \\ into \.
9240 sed -n \
9241 "s/'/'\\\\''/g;
9242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9243 ;; #(
9245 # `set' quotes correctly as required by POSIX, so do not add quotes.
9246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9248 esac |
9249 sort
9251 sed '
9252 /^ac_cv_env_/b end
9253 t clear
9254 :clear
9255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9256 t end
9257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9258 :end' >>confcache
9259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9260 if test -w "$cache_file"; then
9261 test "x$cache_file" != "x/dev/null" &&
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9263 $as_echo "$as_me: updating cache $cache_file" >&6;}
9264 cat confcache >$cache_file
9265 else
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9267 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9270 rm -f confcache
9272 # Checks for header files.
9273 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9274 # for constant arguments. Useless!
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9276 $as_echo_n "checking for working alloca.h... " >&6; }
9277 if test "${ac_cv_working_alloca_h+set}" = set; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 #include <alloca.h>
9284 main ()
9286 char *p = (char *) alloca (2 * sizeof (int));
9287 if (p) return 0;
9289 return 0;
9291 _ACEOF
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 ac_cv_working_alloca_h=yes
9294 else
9295 ac_cv_working_alloca_h=no
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9301 $as_echo "$ac_cv_working_alloca_h" >&6; }
9302 if test $ac_cv_working_alloca_h = yes; then
9304 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9309 $as_echo_n "checking for alloca... " >&6; }
9310 if test "${ac_cv_func_alloca_works+set}" = set; then :
9311 $as_echo_n "(cached) " >&6
9312 else
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #ifdef __GNUC__
9316 # define alloca __builtin_alloca
9317 #else
9318 # ifdef _MSC_VER
9319 # include <malloc.h>
9320 # define alloca _alloca
9321 # else
9322 # ifdef HAVE_ALLOCA_H
9323 # include <alloca.h>
9324 # else
9325 # ifdef _AIX
9326 #pragma alloca
9327 # else
9328 # ifndef alloca /* predefined by HP cc +Olibcalls */
9329 char *alloca ();
9330 # endif
9331 # endif
9332 # endif
9333 # endif
9334 #endif
9337 main ()
9339 char *p = (char *) alloca (1);
9340 if (p) return 0;
9342 return 0;
9344 _ACEOF
9345 if ac_fn_c_try_link "$LINENO"; then :
9346 ac_cv_func_alloca_works=yes
9347 else
9348 ac_cv_func_alloca_works=no
9350 rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9354 $as_echo "$ac_cv_func_alloca_works" >&6; }
9356 if test $ac_cv_func_alloca_works = yes; then
9358 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9360 else
9361 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9362 # that cause trouble. Some versions do not even contain alloca or
9363 # contain a buggy version. If you still want to use their alloca,
9364 # use ar to extract alloca.o from them instead of compiling alloca.c.
9366 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9368 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9372 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9373 if test "${ac_cv_os_cray+set}" = set; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 #if defined CRAY && ! defined CRAY2
9379 webecray
9380 #else
9381 wenotbecray
9382 #endif
9384 _ACEOF
9385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9386 $EGREP "webecray" >/dev/null 2>&1; then :
9387 ac_cv_os_cray=yes
9388 else
9389 ac_cv_os_cray=no
9391 rm -f conftest*
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9395 $as_echo "$ac_cv_os_cray" >&6; }
9396 if test $ac_cv_os_cray = yes; then
9397 for ac_func in _getb67 GETB67 getb67; do
9398 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9399 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9400 eval as_val=\$$as_ac_var
9401 if test "x$as_val" = x""yes; then :
9403 cat >>confdefs.h <<_ACEOF
9404 #define CRAY_STACKSEG_END $ac_func
9405 _ACEOF
9407 break
9410 done
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9414 $as_echo_n "checking stack direction for C alloca... " >&6; }
9415 if test "${ac_cv_c_stack_direction+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 if test "$cross_compiling" = yes; then :
9419 ac_cv_c_stack_direction=0
9420 else
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 $ac_includes_default
9425 find_stack_direction ()
9427 static char *addr = 0;
9428 auto char dummy;
9429 if (addr == 0)
9431 addr = &dummy;
9432 return find_stack_direction ();
9434 else
9435 return (&dummy > addr) ? 1 : -1;
9439 main ()
9441 return find_stack_direction () < 0;
9443 _ACEOF
9444 if ac_fn_c_try_run "$LINENO"; then :
9445 ac_cv_c_stack_direction=1
9446 else
9447 ac_cv_c_stack_direction=-1
9449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9450 conftest.$ac_objext conftest.beam conftest.$ac_ext
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9455 $as_echo "$ac_cv_c_stack_direction" >&6; }
9456 cat >>confdefs.h <<_ACEOF
9457 #define STACK_DIRECTION $ac_cv_c_stack_direction
9458 _ACEOF
9463 ac_header_dirent=no
9464 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9465 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9467 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473 #include <sys/types.h>
9474 #include <$ac_hdr>
9477 main ()
9479 if ((DIR *) 0)
9480 return 0;
9482 return 0;
9484 _ACEOF
9485 if ac_fn_c_try_compile "$LINENO"; then :
9486 eval "$as_ac_Header=yes"
9487 else
9488 eval "$as_ac_Header=no"
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492 eval ac_res=\$$as_ac_Header
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9494 $as_echo "$ac_res" >&6; }
9495 eval as_val=\$$as_ac_Header
9496 if test "x$as_val" = x""yes; then :
9497 cat >>confdefs.h <<_ACEOF
9498 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9499 _ACEOF
9501 ac_header_dirent=$ac_hdr; break
9504 done
9505 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9506 if test $ac_header_dirent = dirent.h; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9508 $as_echo_n "checking for library containing opendir... " >&6; }
9509 if test "${ac_cv_search_opendir+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 ac_func_search_save_LIBS=$LIBS
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9516 /* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9519 #ifdef __cplusplus
9520 extern "C"
9521 #endif
9522 char opendir ();
9524 main ()
9526 return opendir ();
9528 return 0;
9530 _ACEOF
9531 for ac_lib in '' dir; do
9532 if test -z "$ac_lib"; then
9533 ac_res="none required"
9534 else
9535 ac_res=-l$ac_lib
9536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9538 if ac_fn_c_try_link "$LINENO"; then :
9539 ac_cv_search_opendir=$ac_res
9541 rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext
9543 if test "${ac_cv_search_opendir+set}" = set; then :
9544 break
9546 done
9547 if test "${ac_cv_search_opendir+set}" = set; then :
9549 else
9550 ac_cv_search_opendir=no
9552 rm conftest.$ac_ext
9553 LIBS=$ac_func_search_save_LIBS
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9556 $as_echo "$ac_cv_search_opendir" >&6; }
9557 ac_res=$ac_cv_search_opendir
9558 if test "$ac_res" != no; then :
9559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9563 else
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9565 $as_echo_n "checking for library containing opendir... " >&6; }
9566 if test "${ac_cv_search_opendir+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 ac_func_search_save_LIBS=$LIBS
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9573 /* Override any GCC internal prototype to avoid an error.
9574 Use char because int might match the return type of a GCC
9575 builtin and then its argument prototype would still apply. */
9576 #ifdef __cplusplus
9577 extern "C"
9578 #endif
9579 char opendir ();
9581 main ()
9583 return opendir ();
9585 return 0;
9587 _ACEOF
9588 for ac_lib in '' x; do
9589 if test -z "$ac_lib"; then
9590 ac_res="none required"
9591 else
9592 ac_res=-l$ac_lib
9593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9595 if ac_fn_c_try_link "$LINENO"; then :
9596 ac_cv_search_opendir=$ac_res
9598 rm -f core conftest.err conftest.$ac_objext \
9599 conftest$ac_exeext
9600 if test "${ac_cv_search_opendir+set}" = set; then :
9601 break
9603 done
9604 if test "${ac_cv_search_opendir+set}" = set; then :
9606 else
9607 ac_cv_search_opendir=no
9609 rm conftest.$ac_ext
9610 LIBS=$ac_func_search_save_LIBS
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9613 $as_echo "$ac_cv_search_opendir" >&6; }
9614 ac_res=$ac_cv_search_opendir
9615 if test "$ac_res" != no; then :
9616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9623 $as_echo_n "checking for ANSI C header files... " >&6; }
9624 if test "${ac_cv_header_stdc+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 #include <stdlib.h>
9630 #include <stdarg.h>
9631 #include <string.h>
9632 #include <float.h>
9635 main ()
9639 return 0;
9641 _ACEOF
9642 if ac_fn_c_try_compile "$LINENO"; then :
9643 ac_cv_header_stdc=yes
9644 else
9645 ac_cv_header_stdc=no
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649 if test $ac_cv_header_stdc = yes; then
9650 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #include <string.h>
9655 _ACEOF
9656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9657 $EGREP "memchr" >/dev/null 2>&1; then :
9659 else
9660 ac_cv_header_stdc=no
9662 rm -f conftest*
9666 if test $ac_cv_header_stdc = yes; then
9667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9670 #include <stdlib.h>
9672 _ACEOF
9673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9674 $EGREP "free" >/dev/null 2>&1; then :
9676 else
9677 ac_cv_header_stdc=no
9679 rm -f conftest*
9683 if test $ac_cv_header_stdc = yes; then
9684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9685 if test "$cross_compiling" = yes; then :
9687 else
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690 #include <ctype.h>
9691 #include <stdlib.h>
9692 #if ((' ' & 0x0FF) == 0x020)
9693 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9694 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9695 #else
9696 # define ISLOWER(c) \
9697 (('a' <= (c) && (c) <= 'i') \
9698 || ('j' <= (c) && (c) <= 'r') \
9699 || ('s' <= (c) && (c) <= 'z'))
9700 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9701 #endif
9703 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9705 main ()
9707 int i;
9708 for (i = 0; i < 256; i++)
9709 if (XOR (islower (i), ISLOWER (i))
9710 || toupper (i) != TOUPPER (i))
9711 return 2;
9712 return 0;
9714 _ACEOF
9715 if ac_fn_c_try_run "$LINENO"; then :
9717 else
9718 ac_cv_header_stdc=no
9720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9721 conftest.$ac_objext conftest.beam conftest.$ac_ext
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9727 $as_echo "$ac_cv_header_stdc" >&6; }
9728 if test $ac_cv_header_stdc = yes; then
9730 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9734 for ac_header in argz.h arpa/inet.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 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 errno.h signal.h
9735 do :
9736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9737 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9738 eval as_val=\$$as_ac_Header
9739 if test "x$as_val" = x""yes; then :
9740 cat >>confdefs.h <<_ACEOF
9741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9742 _ACEOF
9746 done
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9749 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9750 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9751 $as_echo_n "(cached) " >&6
9752 else
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 #include <sys/types.h>
9756 #include <sys/wait.h>
9757 #ifndef WEXITSTATUS
9758 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9759 #endif
9760 #ifndef WIFEXITED
9761 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9762 #endif
9765 main ()
9767 int s;
9768 wait (&s);
9769 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9771 return 0;
9773 _ACEOF
9774 if ac_fn_c_try_compile "$LINENO"; then :
9775 ac_cv_header_sys_wait_h=yes
9776 else
9777 ac_cv_header_sys_wait_h=no
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9782 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9783 if test $ac_cv_header_sys_wait_h = yes; then
9785 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9790 # Checks for typedefs, structures, and compiler characteristics.
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9792 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9793 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9799 #include <stdbool.h>
9800 #ifndef bool
9801 "error: bool is not defined"
9802 #endif
9803 #ifndef false
9804 "error: false is not defined"
9805 #endif
9806 #if false
9807 "error: false is not 0"
9808 #endif
9809 #ifndef true
9810 "error: true is not defined"
9811 #endif
9812 #if true != 1
9813 "error: true is not 1"
9814 #endif
9815 #ifndef __bool_true_false_are_defined
9816 "error: __bool_true_false_are_defined is not defined"
9817 #endif
9819 struct s { _Bool s: 1; _Bool t; } s;
9821 char a[true == 1 ? 1 : -1];
9822 char b[false == 0 ? 1 : -1];
9823 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9824 char d[(bool) 0.5 == true ? 1 : -1];
9825 bool e = &s;
9826 char f[(_Bool) 0.0 == false ? 1 : -1];
9827 char g[true];
9828 char h[sizeof (_Bool)];
9829 char i[sizeof s.t];
9830 enum { j = false, k = true, l = false * true, m = true * 256 };
9831 /* The following fails for
9832 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9833 _Bool n[m];
9834 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9835 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9836 # if defined __xlc__ || defined __GNUC__
9837 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9838 reported by James Lemley on 2005-10-05; see
9839 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9840 This test is not quite right, since xlc is allowed to
9841 reject this program, as the initializer for xlcbug is
9842 not one of the forms that C requires support for.
9843 However, doing the test right would require a runtime
9844 test, and that would make cross-compilation harder.
9845 Let us hope that IBM fixes the xlc bug, and also adds
9846 support for this kind of constant expression. In the
9847 meantime, this test will reject xlc, which is OK, since
9848 our stdbool.h substitute should suffice. We also test
9849 this with GCC, where it should work, to detect more
9850 quickly whether someone messes up the test in the
9851 future. */
9852 char digs[] = "0123456789";
9853 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9854 # endif
9855 /* Catch a bug in an HP-UX C compiler. See
9856 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9857 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9859 _Bool q = true;
9860 _Bool *pq = &q;
9863 main ()
9866 *pq |= q;
9867 *pq |= ! q;
9868 /* Refer to every declared value, to avoid compiler optimizations. */
9869 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9870 + !m + !n + !o + !p + !q + !pq);
9873 return 0;
9875 _ACEOF
9876 if ac_fn_c_try_compile "$LINENO"; then :
9877 ac_cv_header_stdbool_h=yes
9878 else
9879 ac_cv_header_stdbool_h=no
9881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9884 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9885 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9886 if test "x$ac_cv_type__Bool" = x""yes; then :
9888 cat >>confdefs.h <<_ACEOF
9889 #define HAVE__BOOL 1
9890 _ACEOF
9895 if test $ac_cv_header_stdbool_h = yes; then
9897 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9902 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9903 if test "${ac_cv_c_const+set}" = set; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9910 main ()
9912 /* FIXME: Include the comments suggested by Paul. */
9913 #ifndef __cplusplus
9914 /* Ultrix mips cc rejects this. */
9915 typedef int charset[2];
9916 const charset cs;
9917 /* SunOS 4.1.1 cc rejects this. */
9918 char const *const *pcpcc;
9919 char **ppc;
9920 /* NEC SVR4.0.2 mips cc rejects this. */
9921 struct point {int x, y;};
9922 static struct point const zero = {0,0};
9923 /* AIX XL C 1.02.0.0 rejects this.
9924 It does not let you subtract one const X* pointer from another in
9925 an arm of an if-expression whose if-part is not a constant
9926 expression */
9927 const char *g = "string";
9928 pcpcc = &g + (g ? g-g : 0);
9929 /* HPUX 7.0 cc rejects these. */
9930 ++pcpcc;
9931 ppc = (char**) pcpcc;
9932 pcpcc = (char const *const *) ppc;
9933 { /* SCO 3.2v4 cc rejects this. */
9934 char *t;
9935 char const *s = 0 ? (char *) 0 : (char const *) 0;
9937 *t++ = 0;
9938 if (s) return 0;
9940 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9941 int x[] = {25, 17};
9942 const int *foo = &x[0];
9943 ++foo;
9945 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9946 typedef const int *iptr;
9947 iptr p = 0;
9948 ++p;
9950 { /* AIX XL C 1.02.0.0 rejects this saying
9951 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9952 struct s { int j; const int *ap[3]; };
9953 struct s *b; b->j = 5;
9955 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9956 const int foo = 10;
9957 if (!foo) return 0;
9959 return !cs[0] && !zero.x;
9960 #endif
9963 return 0;
9965 _ACEOF
9966 if ac_fn_c_try_compile "$LINENO"; then :
9967 ac_cv_c_const=yes
9968 else
9969 ac_cv_c_const=no
9971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9974 $as_echo "$ac_cv_c_const" >&6; }
9975 if test $ac_cv_c_const = no; then
9977 $as_echo "#define const /**/" >>confdefs.h
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9982 $as_echo_n "checking for inline... " >&6; }
9983 if test "${ac_cv_c_inline+set}" = set; then :
9984 $as_echo_n "(cached) " >&6
9985 else
9986 ac_cv_c_inline=no
9987 for ac_kw in inline __inline__ __inline; do
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 #ifndef __cplusplus
9991 typedef int foo_t;
9992 static $ac_kw foo_t static_foo () {return 0; }
9993 $ac_kw foo_t foo () {return 0; }
9994 #endif
9996 _ACEOF
9997 if ac_fn_c_try_compile "$LINENO"; then :
9998 ac_cv_c_inline=$ac_kw
10000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10001 test "$ac_cv_c_inline" != no && break
10002 done
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10006 $as_echo "$ac_cv_c_inline" >&6; }
10008 case $ac_cv_c_inline in
10009 inline | yes) ;;
10011 case $ac_cv_c_inline in
10012 no) ac_val=;;
10013 *) ac_val=$ac_cv_c_inline;;
10014 esac
10015 cat >>confdefs.h <<_ACEOF
10016 #ifndef __cplusplus
10017 #define inline $ac_val
10018 #endif
10019 _ACEOF
10021 esac
10023 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10024 if test "x$ac_cv_type_mode_t" = x""yes; then :
10026 else
10028 cat >>confdefs.h <<_ACEOF
10029 #define mode_t int
10030 _ACEOF
10034 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
10035 if test "x$ac_cv_type_off_t" = x""yes; then :
10037 else
10039 cat >>confdefs.h <<_ACEOF
10040 #define off_t long int
10041 _ACEOF
10045 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10046 if test "x$ac_cv_type_size_t" = x""yes; then :
10048 else
10050 cat >>confdefs.h <<_ACEOF
10051 #define size_t unsigned int
10052 _ACEOF
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10057 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10058 if test "${ac_cv_header_time+set}" = set; then :
10059 $as_echo_n "(cached) " >&6
10060 else
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 #include <sys/types.h>
10064 #include <sys/time.h>
10065 #include <time.h>
10068 main ()
10070 if ((struct tm *) 0)
10071 return 0;
10073 return 0;
10075 _ACEOF
10076 if ac_fn_c_try_compile "$LINENO"; then :
10077 ac_cv_header_time=yes
10078 else
10079 ac_cv_header_time=no
10081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10084 $as_echo "$ac_cv_header_time" >&6; }
10085 if test $ac_cv_header_time = yes; then
10087 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10092 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10093 if test "${ac_cv_struct_tm+set}" = set; then :
10094 $as_echo_n "(cached) " >&6
10095 else
10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h. */
10098 #include <sys/types.h>
10099 #include <time.h>
10102 main ()
10104 struct tm tm;
10105 int *p = &tm.tm_sec;
10106 return !p;
10108 return 0;
10110 _ACEOF
10111 if ac_fn_c_try_compile "$LINENO"; then :
10112 ac_cv_struct_tm=time.h
10113 else
10114 ac_cv_struct_tm=sys/time.h
10116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10119 $as_echo "$ac_cv_struct_tm" >&6; }
10120 if test $ac_cv_struct_tm = sys/time.h; then
10122 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10127 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
10128 if test "${ac_cv_type_uid_t+set}" = set; then :
10129 $as_echo_n "(cached) " >&6
10130 else
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133 #include <sys/types.h>
10135 _ACEOF
10136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10137 $EGREP "uid_t" >/dev/null 2>&1; then :
10138 ac_cv_type_uid_t=yes
10139 else
10140 ac_cv_type_uid_t=no
10142 rm -f conftest*
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10146 $as_echo "$ac_cv_type_uid_t" >&6; }
10147 if test $ac_cv_type_uid_t = no; then
10149 $as_echo "#define uid_t int" >>confdefs.h
10152 $as_echo "#define gid_t int" >>confdefs.h
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
10157 $as_echo_n "checking for working volatile... " >&6; }
10158 if test "${ac_cv_c_volatile+set}" = set; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10165 main ()
10168 volatile int x;
10169 int * volatile y = (int *) 0;
10170 return !x && !y;
10172 return 0;
10174 _ACEOF
10175 if ac_fn_c_try_compile "$LINENO"; then :
10176 ac_cv_c_volatile=yes
10177 else
10178 ac_cv_c_volatile=no
10180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
10183 $as_echo "$ac_cv_c_volatile" >&6; }
10184 if test $ac_cv_c_volatile = no; then
10186 $as_echo "#define volatile /**/" >>confdefs.h
10190 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10191 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
10193 cat >>confdefs.h <<_ACEOF
10194 #define HAVE_PTRDIFF_T 1
10195 _ACEOF
10201 # Checks for library functions.
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
10203 $as_echo_n "checking whether closedir returns void... " >&6; }
10204 if test "${ac_cv_func_closedir_void+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 if test "$cross_compiling" = yes; then :
10208 ac_cv_func_closedir_void=yes
10209 else
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 $ac_includes_default
10213 #include <$ac_header_dirent>
10214 #ifndef __cplusplus
10215 int closedir ();
10216 #endif
10219 main ()
10221 return closedir (opendir (".")) != 0;
10223 return 0;
10225 _ACEOF
10226 if ac_fn_c_try_run "$LINENO"; then :
10227 ac_cv_func_closedir_void=no
10228 else
10229 ac_cv_func_closedir_void=yes
10231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10232 conftest.$ac_objext conftest.beam conftest.$ac_ext
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
10237 $as_echo "$ac_cv_func_closedir_void" >&6; }
10238 if test $ac_cv_func_closedir_void = yes; then
10240 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10244 if test $ac_cv_c_compiler_gnu = yes; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10246 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10247 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 ac_pattern="Autoconf.*'x'"
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253 #include <sgtty.h>
10254 Autoconf TIOCGETP
10255 _ACEOF
10256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10257 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10258 ac_cv_prog_gcc_traditional=yes
10259 else
10260 ac_cv_prog_gcc_traditional=no
10262 rm -f conftest*
10265 if test $ac_cv_prog_gcc_traditional = no; then
10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h. */
10268 #include <termio.h>
10269 Autoconf TCGETA
10270 _ACEOF
10271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10272 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10273 ac_cv_prog_gcc_traditional=yes
10275 rm -f conftest*
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10280 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10281 if test $ac_cv_prog_gcc_traditional = yes; then
10282 CC="$CC -traditional"
10286 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10287 if test "x$ac_cv_type_pid_t" = x""yes; then :
10289 else
10291 cat >>confdefs.h <<_ACEOF
10292 #define pid_t int
10293 _ACEOF
10297 for ac_header in vfork.h
10298 do :
10299 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10300 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10301 cat >>confdefs.h <<_ACEOF
10302 #define HAVE_VFORK_H 1
10303 _ACEOF
10307 done
10309 for ac_func in fork vfork
10310 do :
10311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10312 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10313 eval as_val=\$$as_ac_var
10314 if test "x$as_val" = x""yes; then :
10315 cat >>confdefs.h <<_ACEOF
10316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10317 _ACEOF
10320 done
10322 if test "x$ac_cv_func_fork" = xyes; then
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10324 $as_echo_n "checking for working fork... " >&6; }
10325 if test "${ac_cv_func_fork_works+set}" = set; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 if test "$cross_compiling" = yes; then :
10329 ac_cv_func_fork_works=cross
10330 else
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 $ac_includes_default
10335 main ()
10338 /* By Ruediger Kuhlmann. */
10339 return fork () < 0;
10342 return 0;
10344 _ACEOF
10345 if ac_fn_c_try_run "$LINENO"; then :
10346 ac_cv_func_fork_works=yes
10347 else
10348 ac_cv_func_fork_works=no
10350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10351 conftest.$ac_objext conftest.beam conftest.$ac_ext
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10356 $as_echo "$ac_cv_func_fork_works" >&6; }
10358 else
10359 ac_cv_func_fork_works=$ac_cv_func_fork
10361 if test "x$ac_cv_func_fork_works" = xcross; then
10362 case $host in
10363 *-*-amigaos* | *-*-msdosdjgpp*)
10364 # Override, as these systems have only a dummy fork() stub
10365 ac_cv_func_fork_works=no
10368 ac_cv_func_fork_works=yes
10370 esac
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10372 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10374 ac_cv_func_vfork_works=$ac_cv_func_vfork
10375 if test "x$ac_cv_func_vfork" = xyes; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10377 $as_echo_n "checking for working vfork... " >&6; }
10378 if test "${ac_cv_func_vfork_works+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 if test "$cross_compiling" = yes; then :
10382 ac_cv_func_vfork_works=cross
10383 else
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10386 /* Thanks to Paul Eggert for this test. */
10387 $ac_includes_default
10388 #include <sys/wait.h>
10389 #ifdef HAVE_VFORK_H
10390 # include <vfork.h>
10391 #endif
10392 /* On some sparc systems, changes by the child to local and incoming
10393 argument registers are propagated back to the parent. The compiler
10394 is told about this with #include <vfork.h>, but some compilers
10395 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10396 static variable whose address is put into a register that is
10397 clobbered by the vfork. */
10398 static void
10399 #ifdef __cplusplus
10400 sparc_address_test (int arg)
10401 # else
10402 sparc_address_test (arg) int arg;
10403 #endif
10405 static pid_t child;
10406 if (!child) {
10407 child = vfork ();
10408 if (child < 0) {
10409 perror ("vfork");
10410 _exit(2);
10412 if (!child) {
10413 arg = getpid();
10414 write(-1, "", 0);
10415 _exit (arg);
10421 main ()
10423 pid_t parent = getpid ();
10424 pid_t child;
10426 sparc_address_test (0);
10428 child = vfork ();
10430 if (child == 0) {
10431 /* Here is another test for sparc vfork register problems. This
10432 test uses lots of local variables, at least as many local
10433 variables as main has allocated so far including compiler
10434 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10435 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10436 reuse the register of parent for one of the local variables,
10437 since it will think that parent can't possibly be used any more
10438 in this routine. Assigning to the local variable will thus
10439 munge parent in the parent process. */
10440 pid_t
10441 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10442 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10443 /* Convince the compiler that p..p7 are live; otherwise, it might
10444 use the same hardware register for all 8 local variables. */
10445 if (p != p1 || p != p2 || p != p3 || p != p4
10446 || p != p5 || p != p6 || p != p7)
10447 _exit(1);
10449 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10450 from child file descriptors. If the child closes a descriptor
10451 before it execs or exits, this munges the parent's descriptor
10452 as well. Test for this by closing stdout in the child. */
10453 _exit(close(fileno(stdout)) != 0);
10454 } else {
10455 int status;
10456 struct stat st;
10458 while (wait(&status) != child)
10460 return (
10461 /* Was there some problem with vforking? */
10462 child < 0
10464 /* Did the child fail? (This shouldn't happen.) */
10465 || status
10467 /* Did the vfork/compiler bug occur? */
10468 || parent != getpid()
10470 /* Did the file descriptor bug occur? */
10471 || fstat(fileno(stdout), &st) != 0
10475 _ACEOF
10476 if ac_fn_c_try_run "$LINENO"; then :
10477 ac_cv_func_vfork_works=yes
10478 else
10479 ac_cv_func_vfork_works=no
10481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10482 conftest.$ac_objext conftest.beam conftest.$ac_ext
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10487 $as_echo "$ac_cv_func_vfork_works" >&6; }
10490 if test "x$ac_cv_func_fork_works" = xcross; then
10491 ac_cv_func_vfork_works=$ac_cv_func_vfork
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10493 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10496 if test "x$ac_cv_func_vfork_works" = xyes; then
10498 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10500 else
10502 $as_echo "#define vfork fork" >>confdefs.h
10505 if test "x$ac_cv_func_fork_works" = xyes; then
10507 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10512 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10513 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10514 $as_echo_n "(cached) " >&6
10515 else
10516 rm -f conftest.sym conftest.file
10517 echo >conftest.file
10518 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10519 if test "$cross_compiling" = yes; then :
10520 ac_cv_func_lstat_dereferences_slashed_symlink=no
10521 else
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524 $ac_includes_default
10526 main ()
10528 struct stat sbuf;
10529 /* Linux will dereference the symlink and fail, as required by POSIX.
10530 That is better in the sense that it means we will not
10531 have to compile and use the lstat wrapper. */
10532 return lstat ("conftest.sym/", &sbuf) == 0;
10534 return 0;
10536 _ACEOF
10537 if ac_fn_c_try_run "$LINENO"; then :
10538 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10539 else
10540 ac_cv_func_lstat_dereferences_slashed_symlink=no
10542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10543 conftest.$ac_objext conftest.beam conftest.$ac_ext
10546 else
10547 # If the `ln -s' command failed, then we probably don't even
10548 # have an lstat function.
10549 ac_cv_func_lstat_dereferences_slashed_symlink=no
10551 rm -f conftest.sym conftest.file
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10555 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10557 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10559 cat >>confdefs.h <<_ACEOF
10560 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10561 _ACEOF
10564 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10565 case " $LIBOBJS " in
10566 *" lstat.$ac_objext "* ) ;;
10567 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10569 esac
10573 if test x$SYS != xwin32; then :
10575 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10576 # -lseq on Dynix/PTX, -lgen on Unixware.
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
10578 $as_echo_n "checking for library containing getmntent... " >&6; }
10579 if test "${ac_cv_search_getmntent+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10581 else
10582 ac_func_search_save_LIBS=$LIBS
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10586 /* Override any GCC internal prototype to avoid an error.
10587 Use char because int might match the return type of a GCC
10588 builtin and then its argument prototype would still apply. */
10589 #ifdef __cplusplus
10590 extern "C"
10591 #endif
10592 char getmntent ();
10594 main ()
10596 return getmntent ();
10598 return 0;
10600 _ACEOF
10601 for ac_lib in '' sun seq gen; do
10602 if test -z "$ac_lib"; then
10603 ac_res="none required"
10604 else
10605 ac_res=-l$ac_lib
10606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 ac_cv_search_getmntent=$ac_res
10611 rm -f core conftest.err conftest.$ac_objext \
10612 conftest$ac_exeext
10613 if test "${ac_cv_search_getmntent+set}" = set; then :
10614 break
10616 done
10617 if test "${ac_cv_search_getmntent+set}" = set; then :
10619 else
10620 ac_cv_search_getmntent=no
10622 rm conftest.$ac_ext
10623 LIBS=$ac_func_search_save_LIBS
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10626 $as_echo "$ac_cv_search_getmntent" >&6; }
10627 ac_res=$ac_cv_search_getmntent
10628 if test "$ac_res" != no; then :
10629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10630 ac_cv_func_getmntent=yes
10632 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
10634 else
10635 ac_cv_func_getmntent=no
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
10640 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
10641 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10643 else
10644 if test "$cross_compiling" = yes; then :
10645 ac_cv_func_lstat_empty_string_bug=yes
10646 else
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 $ac_includes_default
10651 main ()
10653 struct stat sbuf;
10654 return lstat ("", &sbuf) == 0;
10656 return 0;
10658 _ACEOF
10659 if ac_fn_c_try_run "$LINENO"; then :
10660 ac_cv_func_lstat_empty_string_bug=no
10661 else
10662 ac_cv_func_lstat_empty_string_bug=yes
10664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10665 conftest.$ac_objext conftest.beam conftest.$ac_ext
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
10670 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
10671 if test $ac_cv_func_lstat_empty_string_bug = yes; then
10672 case " $LIBOBJS " in
10673 *" lstat.$ac_objext "* ) ;;
10674 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10676 esac
10679 cat >>confdefs.h <<_ACEOF
10680 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
10681 _ACEOF
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10686 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10687 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10688 $as_echo_n "(cached) " >&6
10689 else
10690 rm -f conftest.sym conftest.file
10691 echo >conftest.file
10692 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10693 if test "$cross_compiling" = yes; then :
10694 ac_cv_func_lstat_dereferences_slashed_symlink=no
10695 else
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698 $ac_includes_default
10700 main ()
10702 struct stat sbuf;
10703 /* Linux will dereference the symlink and fail, as required by POSIX.
10704 That is better in the sense that it means we will not
10705 have to compile and use the lstat wrapper. */
10706 return lstat ("conftest.sym/", &sbuf) == 0;
10708 return 0;
10710 _ACEOF
10711 if ac_fn_c_try_run "$LINENO"; then :
10712 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10713 else
10714 ac_cv_func_lstat_dereferences_slashed_symlink=no
10716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10717 conftest.$ac_objext conftest.beam conftest.$ac_ext
10720 else
10721 # If the `ln -s' command failed, then we probably don't even
10722 # have an lstat function.
10723 ac_cv_func_lstat_dereferences_slashed_symlink=no
10725 rm -f conftest.sym conftest.file
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10729 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10731 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10733 cat >>confdefs.h <<_ACEOF
10734 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10735 _ACEOF
10738 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10739 case " $LIBOBJS " in
10740 *" lstat.$ac_objext "* ) ;;
10741 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10743 esac
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
10750 $as_echo_n "checking for working memcmp... " >&6; }
10751 if test "${ac_cv_func_memcmp_working+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 if test "$cross_compiling" = yes; then :
10755 ac_cv_func_memcmp_working=no
10756 else
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759 $ac_includes_default
10761 main ()
10764 /* Some versions of memcmp are not 8-bit clean. */
10765 char c0 = '\100', c1 = '\200', c2 = '\201';
10766 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10767 return 1;
10769 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10770 or more and with at least one buffer not starting on a 4-byte boundary.
10771 William Lewis provided this test program. */
10773 char foo[21];
10774 char bar[21];
10775 int i;
10776 for (i = 0; i < 4; i++)
10778 char *a = foo + i;
10779 char *b = bar + i;
10780 strcpy (a, "--------01111111");
10781 strcpy (b, "--------10000000");
10782 if (memcmp (a, b, 16) >= 0)
10783 return 1;
10785 return 0;
10789 return 0;
10791 _ACEOF
10792 if ac_fn_c_try_run "$LINENO"; then :
10793 ac_cv_func_memcmp_working=yes
10794 else
10795 ac_cv_func_memcmp_working=no
10797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10798 conftest.$ac_objext conftest.beam conftest.$ac_ext
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
10803 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10804 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10805 *" memcmp.$ac_objext "* ) ;;
10806 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10808 esac
10811 for ac_header in sys/select.h sys/socket.h
10812 do :
10813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10814 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10815 eval as_val=\$$as_ac_Header
10816 if test "x$as_val" = x""yes; then :
10817 cat >>confdefs.h <<_ACEOF
10818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10819 _ACEOF
10823 done
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10826 $as_echo_n "checking types of arguments for select... " >&6; }
10827 if test "${ac_cv_func_select_args+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10831 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10832 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835 $ac_includes_default
10836 #ifdef HAVE_SYS_SELECT_H
10837 # include <sys/select.h>
10838 #endif
10839 #ifdef HAVE_SYS_SOCKET_H
10840 # include <sys/socket.h>
10841 #endif
10844 main ()
10846 extern int select ($ac_arg1,
10847 $ac_arg234, $ac_arg234, $ac_arg234,
10848 $ac_arg5);
10850 return 0;
10852 _ACEOF
10853 if ac_fn_c_try_compile "$LINENO"; then :
10854 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857 done
10858 done
10859 done
10860 # Provide a safe default value.
10861 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10865 $as_echo "$ac_cv_func_select_args" >&6; }
10866 ac_save_IFS=$IFS; IFS=','
10867 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10868 IFS=$ac_save_IFS
10869 shift
10871 cat >>confdefs.h <<_ACEOF
10872 #define SELECT_TYPE_ARG1 $1
10873 _ACEOF
10876 cat >>confdefs.h <<_ACEOF
10877 #define SELECT_TYPE_ARG234 ($2)
10878 _ACEOF
10881 cat >>confdefs.h <<_ACEOF
10882 #define SELECT_TYPE_ARG5 ($3)
10883 _ACEOF
10885 rm -f conftest*
10887 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 ac_cv_func_setvbuf_reversed=no
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10895 $as_echo_n "checking return type of signal handlers... " >&6; }
10896 if test "${ac_cv_type_signal+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10901 #include <sys/types.h>
10902 #include <signal.h>
10905 main ()
10907 return *(signal (0, 0)) (0) == 1;
10909 return 0;
10911 _ACEOF
10912 if ac_fn_c_try_compile "$LINENO"; then :
10913 ac_cv_type_signal=int
10914 else
10915 ac_cv_type_signal=void
10917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10920 $as_echo "$ac_cv_type_signal" >&6; }
10922 cat >>confdefs.h <<_ACEOF
10923 #define RETSIGTYPE $ac_cv_type_signal
10924 _ACEOF
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
10928 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10929 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 if test "$cross_compiling" = yes; then :
10933 ac_cv_func_stat_empty_string_bug=yes
10934 else
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10937 $ac_includes_default
10939 main ()
10941 struct stat sbuf;
10942 return stat ("", &sbuf) == 0;
10944 return 0;
10946 _ACEOF
10947 if ac_fn_c_try_run "$LINENO"; then :
10948 ac_cv_func_stat_empty_string_bug=no
10949 else
10950 ac_cv_func_stat_empty_string_bug=yes
10952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10953 conftest.$ac_objext conftest.beam conftest.$ac_ext
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
10958 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10959 if test $ac_cv_func_stat_empty_string_bug = yes; then
10960 case " $LIBOBJS " in
10961 *" stat.$ac_objext "* ) ;;
10962 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10964 esac
10967 cat >>confdefs.h <<_ACEOF
10968 #define HAVE_STAT_EMPTY_STRING_BUG 1
10969 _ACEOF
10973 for ac_func in strftime
10974 do :
10975 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
10976 if test "x$ac_cv_func_strftime" = x""yes; then :
10977 cat >>confdefs.h <<_ACEOF
10978 #define HAVE_STRFTIME 1
10979 _ACEOF
10981 else
10982 # strftime is in -lintl on SCO UNIX.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
10984 $as_echo_n "checking for strftime in -lintl... " >&6; }
10985 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-lintl $LIBS"
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char strftime ();
11001 main ()
11003 return strftime ();
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_intl_strftime=yes
11010 else
11011 ac_cv_lib_intl_strftime=no
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
11018 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
11019 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
11020 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
11022 LIBS="-lintl $LIBS"
11026 done
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
11029 $as_echo_n "checking for working strtod... " >&6; }
11030 if test "${ac_cv_func_strtod+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 if test "$cross_compiling" = yes; then :
11034 ac_cv_func_strtod=no
11035 else
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11039 $ac_includes_default
11040 #ifndef strtod
11041 double strtod ();
11042 #endif
11044 main()
11047 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
11048 char *string = " +69";
11049 char *term;
11050 double value;
11051 value = strtod (string, &term);
11052 if (value != 69 || term != (string + 4))
11053 return 1;
11057 /* Under Solaris 2.4, strtod returns the wrong value for the
11058 terminating character under some conditions. */
11059 char *string = "NaN";
11060 char *term;
11061 strtod (string, &term);
11062 if (term != string && *(term - 1) == 0)
11063 return 1;
11065 return 0;
11068 _ACEOF
11069 if ac_fn_c_try_run "$LINENO"; then :
11070 ac_cv_func_strtod=yes
11071 else
11072 ac_cv_func_strtod=no
11074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11075 conftest.$ac_objext conftest.beam conftest.$ac_ext
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
11080 $as_echo "$ac_cv_func_strtod" >&6; }
11081 if test $ac_cv_func_strtod = no; then
11082 case " $LIBOBJS " in
11083 *" strtod.$ac_objext "* ) ;;
11084 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
11086 esac
11088 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
11089 if test "x$ac_cv_func_pow" = x""yes; then :
11093 if test $ac_cv_func_pow = no; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
11095 $as_echo_n "checking for pow in -lm... " >&6; }
11096 if test "${ac_cv_lib_m_pow+set}" = set; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-lm $LIBS"
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11104 /* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11107 #ifdef __cplusplus
11108 extern "C"
11109 #endif
11110 char pow ();
11112 main ()
11114 return pow ();
11116 return 0;
11118 _ACEOF
11119 if ac_fn_c_try_link "$LINENO"; then :
11120 ac_cv_lib_m_pow=yes
11121 else
11122 ac_cv_lib_m_pow=no
11124 rm -f core conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
11129 $as_echo "$ac_cv_lib_m_pow" >&6; }
11130 if test "x$ac_cv_lib_m_pow" = x""yes; then :
11131 POW_LIB=-lm
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
11134 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
11141 for ac_func in vprintf
11142 do :
11143 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11144 if test "x$ac_cv_func_vprintf" = x""yes; then :
11145 cat >>confdefs.h <<_ACEOF
11146 #define HAVE_VPRINTF 1
11147 _ACEOF
11149 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11150 if test "x$ac_cv_func__doprnt" = x""yes; then :
11152 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11157 done
11160 if test $cross_compiling = yes -a $gnumalloc = yes; then :
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11163 configure cannot check whether malloc() and realloc() are GNU libc
11164 compatible. You have to be ABSOLUTELY sure that they are, otherwise
11165 run configure with the --without-gnu-malloc switch." >&5
11166 $as_echo "$as_me: WARNING:
11167 configure cannot check whether malloc() and realloc() are GNU libc
11168 compatible. You have to be ABSOLUTELY sure that they are, otherwise
11169 run configure with the --without-gnu-malloc switch." >&2;}
11170 _mule_warning_8=yes
11171 _mule_has_warnings=yes
11173 ac_cv_func_malloc_0_nonnull=yes
11174 ac_cv_func_realloc_0_nonnull=yes
11177 for ac_header in stdlib.h
11178 do :
11179 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11180 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11181 cat >>confdefs.h <<_ACEOF
11182 #define HAVE_STDLIB_H 1
11183 _ACEOF
11187 done
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11190 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11191 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 if test "$cross_compiling" = yes; then :
11195 ac_cv_func_malloc_0_nonnull=no
11196 else
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11200 # include <stdlib.h>
11201 #else
11202 char *malloc ();
11203 #endif
11206 main ()
11208 return ! malloc (0);
11210 return 0;
11212 _ACEOF
11213 if ac_fn_c_try_run "$LINENO"; then :
11214 ac_cv_func_malloc_0_nonnull=yes
11215 else
11216 ac_cv_func_malloc_0_nonnull=no
11218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11219 conftest.$ac_objext conftest.beam conftest.$ac_ext
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11224 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11225 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11227 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11229 else
11230 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11232 case " $LIBOBJS " in
11233 *" malloc.$ac_objext "* ) ;;
11234 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11236 esac
11239 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11244 for ac_header in stdlib.h
11245 do :
11246 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11247 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11248 cat >>confdefs.h <<_ACEOF
11249 #define HAVE_STDLIB_H 1
11250 _ACEOF
11254 done
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11257 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11258 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 if test "$cross_compiling" = yes; then :
11262 ac_cv_func_realloc_0_nonnull=no
11263 else
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11266 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11267 # include <stdlib.h>
11268 #else
11269 char *realloc ();
11270 #endif
11273 main ()
11275 return ! realloc (0, 0);
11277 return 0;
11279 _ACEOF
11280 if ac_fn_c_try_run "$LINENO"; then :
11281 ac_cv_func_realloc_0_nonnull=yes
11282 else
11283 ac_cv_func_realloc_0_nonnull=no
11285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11286 conftest.$ac_objext conftest.beam conftest.$ac_ext
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11291 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11292 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11294 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11296 else
11297 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11299 case " $LIBOBJS " in
11300 *" realloc.$ac_objext "* ) ;;
11301 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11303 esac
11306 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11311 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
11312 do :
11313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11314 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11315 eval as_val=\$$as_ac_var
11316 if test "x$as_val" = x""yes; then :
11317 cat >>confdefs.h <<_ACEOF
11318 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11319 _ACEOF
11322 done
11324 #-------------------------------------------------------------------------------
11325 # End of autoscan stuff
11326 #-------------------------------------------------------------------------------
11328 for ac_func in mkdir getrlimit setrlimit getopt_long
11329 do :
11330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11332 eval as_val=\$$as_ac_var
11333 if test "x$as_val" = x""yes; then :
11334 cat >>confdefs.h <<_ACEOF
11335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11336 _ACEOF
11339 done
11345 for ac_header in $ac_header_list
11346 do :
11347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11350 eval as_val=\$$as_ac_Header
11351 if test "x$as_val" = x""yes; then :
11352 cat >>confdefs.h <<_ACEOF
11353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11354 _ACEOF
11358 done
11366 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11368 # Check whether --enable-mmap was given.
11369 if test "${enable_mmap+set}" = set; then :
11370 enableval=$enable_mmap;
11375 if test ${enable_mmap:-no} = yes; then :
11377 for ac_header in sys/mman.h
11378 do :
11379 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11380 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11381 cat >>confdefs.h <<_ACEOF
11382 #define HAVE_SYS_MMAN_H 1
11383 _ACEOF
11387 done
11390 for ac_func in getpagesize
11391 do :
11392 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11393 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11394 cat >>confdefs.h <<_ACEOF
11395 #define HAVE_GETPAGESIZE 1
11396 _ACEOF
11399 done
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11402 $as_echo_n "checking for working mmap... " >&6; }
11403 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 if test "$cross_compiling" = yes; then :
11407 ac_cv_func_mmap_fixed_mapped=no
11408 else
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11411 $ac_includes_default
11412 /* malloc might have been renamed as rpl_malloc. */
11413 #undef malloc
11415 /* Thanks to Mike Haertel and Jim Avera for this test.
11416 Here is a matrix of mmap possibilities:
11417 mmap private not fixed
11418 mmap private fixed at somewhere currently unmapped
11419 mmap private fixed at somewhere already mapped
11420 mmap shared not fixed
11421 mmap shared fixed at somewhere currently unmapped
11422 mmap shared fixed at somewhere already mapped
11423 For private mappings, we should verify that changes cannot be read()
11424 back from the file, nor mmap's back from the file at a different
11425 address. (There have been systems where private was not correctly
11426 implemented like the infamous i386 svr4.0, and systems where the
11427 VM page cache was not coherent with the file system buffer cache
11428 like early versions of FreeBSD and possibly contemporary NetBSD.)
11429 For shared mappings, we should conversely verify that changes get
11430 propagated back to all the places they're supposed to be.
11432 Grep wants private fixed already mapped.
11433 The main things grep needs to know about mmap are:
11434 * does it exist and is it safe to write into the mmap'd area
11435 * how to use it (BSD variants) */
11437 #include <fcntl.h>
11438 #include <sys/mman.h>
11440 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11441 char *malloc ();
11442 #endif
11444 /* This mess was copied from the GNU getpagesize.h. */
11445 #ifndef HAVE_GETPAGESIZE
11446 # ifdef _SC_PAGESIZE
11447 # define getpagesize() sysconf(_SC_PAGESIZE)
11448 # else /* no _SC_PAGESIZE */
11449 # ifdef HAVE_SYS_PARAM_H
11450 # include <sys/param.h>
11451 # ifdef EXEC_PAGESIZE
11452 # define getpagesize() EXEC_PAGESIZE
11453 # else /* no EXEC_PAGESIZE */
11454 # ifdef NBPG
11455 # define getpagesize() NBPG * CLSIZE
11456 # ifndef CLSIZE
11457 # define CLSIZE 1
11458 # endif /* no CLSIZE */
11459 # else /* no NBPG */
11460 # ifdef NBPC
11461 # define getpagesize() NBPC
11462 # else /* no NBPC */
11463 # ifdef PAGESIZE
11464 # define getpagesize() PAGESIZE
11465 # endif /* PAGESIZE */
11466 # endif /* no NBPC */
11467 # endif /* no NBPG */
11468 # endif /* no EXEC_PAGESIZE */
11469 # else /* no HAVE_SYS_PARAM_H */
11470 # define getpagesize() 8192 /* punt totally */
11471 # endif /* no HAVE_SYS_PARAM_H */
11472 # endif /* no _SC_PAGESIZE */
11474 #endif /* no HAVE_GETPAGESIZE */
11477 main ()
11479 char *data, *data2, *data3;
11480 int i, pagesize;
11481 int fd, fd2;
11483 pagesize = getpagesize ();
11485 /* First, make a file with some known garbage in it. */
11486 data = (char *) malloc (pagesize);
11487 if (!data)
11488 return 1;
11489 for (i = 0; i < pagesize; ++i)
11490 *(data + i) = rand ();
11491 umask (0);
11492 fd = creat ("conftest.mmap", 0600);
11493 if (fd < 0)
11494 return 2;
11495 if (write (fd, data, pagesize) != pagesize)
11496 return 3;
11497 close (fd);
11499 /* Next, check that the tail of a page is zero-filled. File must have
11500 non-zero length, otherwise we risk SIGBUS for entire page. */
11501 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11502 if (fd2 < 0)
11503 return 4;
11504 data2 = "";
11505 if (write (fd2, data2, 1) != 1)
11506 return 5;
11507 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11508 if (data2 == MAP_FAILED)
11509 return 6;
11510 for (i = 0; i < pagesize; ++i)
11511 if (*(data2 + i))
11512 return 7;
11513 close (fd2);
11514 if (munmap (data2, pagesize))
11515 return 8;
11517 /* Next, try to mmap the file at a fixed address which already has
11518 something else allocated at it. If we can, also make sure that
11519 we see the same garbage. */
11520 fd = open ("conftest.mmap", O_RDWR);
11521 if (fd < 0)
11522 return 9;
11523 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11524 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11525 return 10;
11526 for (i = 0; i < pagesize; ++i)
11527 if (*(data + i) != *(data2 + i))
11528 return 11;
11530 /* Finally, make sure that changes to the mapped area do not
11531 percolate back to the file as seen by read(). (This is a bug on
11532 some variants of i386 svr4.0.) */
11533 for (i = 0; i < pagesize; ++i)
11534 *(data2 + i) = *(data2 + i) + 1;
11535 data3 = (char *) malloc (pagesize);
11536 if (!data3)
11537 return 12;
11538 if (read (fd, data3, pagesize) != pagesize)
11539 return 13;
11540 for (i = 0; i < pagesize; ++i)
11541 if (*(data + i) != *(data3 + i))
11542 return 14;
11543 close (fd);
11544 return 0;
11546 _ACEOF
11547 if ac_fn_c_try_run "$LINENO"; then :
11548 ac_cv_func_mmap_fixed_mapped=yes
11549 else
11550 ac_cv_func_mmap_fixed_mapped=no
11552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11553 conftest.$ac_objext conftest.beam conftest.$ac_ext
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11558 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11559 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11561 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11564 rm -f conftest.mmap conftest.txt
11566 for ac_func in munmap sysconf
11567 do :
11568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11569 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11570 eval as_val=\$$as_ac_var
11571 if test "x$as_val" = x""yes; then :
11572 cat >>confdefs.h <<_ACEOF
11573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11574 _ACEOF
11577 done
11579 if test $ac_cv_func_sysconf = yes; then :
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
11582 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11587 #include <unistd.h>
11590 main ()
11593 return sysconf(_SC_PAGESIZE);
11596 return 0;
11599 _ACEOF
11600 if ac_fn_c_try_link "$LINENO"; then :
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
11603 $as_echo "_SC_PAGESIZE" >&6; }
11605 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
11608 else
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11614 #include <unistd.h>
11617 main ()
11620 return sysconf(_SC_PAGE_SIZE);
11623 return 0;
11626 _ACEOF
11627 if ac_fn_c_try_link "$LINENO"; then :
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
11630 $as_echo "_SC_PAGE_SIZE" >&6; }
11632 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
11635 else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11638 $as_echo "none" >&6; }
11641 rm -f core conftest.err conftest.$ac_objext \
11642 conftest$ac_exeext conftest.$ac_ext
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11650 else
11652 # fake the result of the test for munmap() for the gettext macros
11653 ac_cv_func_munmap=no
11659 mule_backup_CPPFLAGS="$CPPFLAGS"
11660 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
11661 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11662 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
11663 ac_have_decl=1
11664 else
11665 ac_have_decl=0
11668 cat >>confdefs.h <<_ACEOF
11669 #define HAVE_DECL_STRERROR_R $ac_have_decl
11670 _ACEOF
11672 for ac_func in strerror_r
11673 do :
11674 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11675 if test "x$ac_cv_func_strerror_r" = x""yes; then :
11676 cat >>confdefs.h <<_ACEOF
11677 #define HAVE_STRERROR_R 1
11678 _ACEOF
11681 done
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11684 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11685 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11689 ac_cv_func_strerror_r_char_p=no
11690 if test $ac_cv_have_decl_strerror_r = yes; then
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11693 $ac_includes_default
11695 main ()
11698 char buf[100];
11699 char x = *strerror_r (0, buf, sizeof buf);
11700 char *p = strerror_r (0, buf, sizeof buf);
11701 return !p || x;
11704 return 0;
11706 _ACEOF
11707 if ac_fn_c_try_compile "$LINENO"; then :
11708 ac_cv_func_strerror_r_char_p=yes
11710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11711 else
11712 # strerror_r is not declared. Choose between
11713 # systems that have relatively inaccessible declarations for the
11714 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11715 # former has a strerror_r that returns char*, while the latter
11716 # has a strerror_r that returns `int'.
11717 # This test should segfault on the DEC system.
11718 if test "$cross_compiling" = yes; then :
11720 else
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11723 $ac_includes_default
11724 extern char *strerror_r ();
11726 main ()
11728 char buf[100];
11729 char x = *strerror_r (0, buf, sizeof buf);
11730 return ! isalpha (x);
11732 return 0;
11734 _ACEOF
11735 if ac_fn_c_try_run "$LINENO"; then :
11736 ac_cv_func_strerror_r_char_p=yes
11738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11739 conftest.$ac_objext conftest.beam conftest.$ac_ext
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11746 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11747 if test $ac_cv_func_strerror_r_char_p = yes; then
11749 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11753 CPPFLAGS="$mule_backup_CPPFLAGS"
11755 # Look for a way to preallocate disk space for files.
11756 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
11759 $as_echo_n "checking for fallocate... " >&6; }
11760 mule_backup_CPPFLAGS="$CPPFLAGS"
11761 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
11762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11766 #define _GNU_SOURCE
11767 #ifdef HAVE_FCNTL_H
11768 # include <fcntl.h>
11769 #endif
11770 #include <linux/falloc.h>
11773 main ()
11776 fallocate(0, 0, 0, 0);
11779 return 0;
11782 _ACEOF
11783 if ac_fn_c_try_link "$LINENO"; then :
11786 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11791 else
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11797 rm -f core conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
11799 CPPFLAGS="$mule_backup_CPPFLAGS"
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
11803 $as_echo_n "checking for SYS_fallocate... " >&6; }
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11808 #include <sys/syscall.h>
11809 #include <sys/types.h>
11810 #include <unistd.h>
11813 main ()
11816 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
11819 return 0;
11822 _ACEOF
11823 if ac_fn_c_try_link "$LINENO"; then :
11826 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11829 $as_echo "yes" >&6; }
11831 else
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11837 rm -f core conftest.err conftest.$ac_objext \
11838 conftest$ac_exeext conftest.$ac_ext
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
11841 $as_echo_n "checking for posix_fallocate... " >&6; }
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11846 #define _XOPEN_SOURCE 600
11847 #include <stdlib.h>
11848 #ifdef HAVE_FCNTL_H
11849 # include <fcntl.h>
11850 #endif
11853 main ()
11856 posix_fallocate(0, 0, 0);
11859 return 0;
11862 _ACEOF
11863 if ac_fn_c_try_link "$LINENO"; then :
11866 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11869 $as_echo "yes" >&6; }
11871 else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874 $as_echo "no" >&6; }
11877 rm -f core conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11882 # Checking Native Language Support
11885 MKINSTALLDIRS=
11886 if test -n "$ac_aux_dir"; then
11887 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11889 if test -z "$MKINSTALLDIRS"; then
11890 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11897 # Extract the first word of "msgfmt", so it can be a program name with args.
11898 set dummy msgfmt; ac_word=$2
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11900 $as_echo_n "checking for $ac_word... " >&6; }
11901 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 case "$MSGFMT" in
11906 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11910 for ac_dir in $PATH; do
11911 test -z "$ac_dir" && ac_dir=.
11912 if test -f $ac_dir/$ac_word; then
11913 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11914 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11915 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11916 break
11919 done
11920 IFS="$ac_save_ifs"
11921 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11923 esac
11925 MSGFMT="$ac_cv_path_MSGFMT"
11926 if test "$MSGFMT" != ":"; then
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11928 $as_echo "$MSGFMT" >&6; }
11929 else
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11934 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11935 set dummy gmsgfmt; ac_word=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 case $GMSGFMT in
11942 [\\/]* | ?:[\\/]*)
11943 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11953 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11955 break 2
11957 done
11958 done
11959 IFS=$as_save_IFS
11961 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11963 esac
11965 GMSGFMT=$ac_cv_path_GMSGFMT
11966 if test -n "$GMSGFMT"; then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11968 $as_echo "$GMSGFMT" >&6; }
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11976 # Extract the first word of "xgettext", so it can be a program name with args.
11977 set dummy xgettext; ac_word=$2
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11979 $as_echo_n "checking for $ac_word... " >&6; }
11980 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 case "$XGETTEXT" in
11985 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11989 for ac_dir in $PATH; do
11990 test -z "$ac_dir" && ac_dir=.
11991 if test -f $ac_dir/$ac_word; then
11992 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11993 (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
11994 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11995 break
11998 done
11999 IFS="$ac_save_ifs"
12000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12002 esac
12004 XGETTEXT="$ac_cv_path_XGETTEXT"
12005 if test "$XGETTEXT" != ":"; then
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12007 $as_echo "$XGETTEXT" >&6; }
12008 else
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12013 rm -f messages.po
12015 # Extract the first word of "msgmerge", so it can be a program name with args.
12016 set dummy msgmerge; ac_word=$2
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018 $as_echo_n "checking for $ac_word... " >&6; }
12019 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 case "$MSGMERGE" in
12024 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12028 for ac_dir in $PATH; do
12029 test -z "$ac_dir" && ac_dir=.
12030 if test -f $ac_dir/$ac_word; then
12031 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12032 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
12033 break
12036 done
12037 IFS="$ac_save_ifs"
12038 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12040 esac
12042 MSGMERGE="$ac_cv_path_MSGMERGE"
12043 if test "$MSGMERGE" != ":"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12045 $as_echo "$MSGMERGE" >&6; }
12046 else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048 $as_echo "no" >&6; }
12052 if test "$GMSGFMT" != ":"; then
12053 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12054 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12056 else
12057 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12059 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12060 GMSGFMT=":"
12064 if test "$XGETTEXT" != ":"; then
12065 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12066 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12070 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12071 XGETTEXT=":"
12073 rm -f messages.po
12076 ac_config_commands="$ac_config_commands default-1"
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
12081 $as_echo_n "checking for strerror in -lcposix... " >&6; }
12082 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
12083 $as_echo_n "(cached) " >&6
12084 else
12085 ac_check_lib_save_LIBS=$LIBS
12086 LIBS="-lcposix $LIBS"
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12090 /* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
12093 #ifdef __cplusplus
12094 extern "C"
12095 #endif
12096 char strerror ();
12098 main ()
12100 return strerror ();
12102 return 0;
12104 _ACEOF
12105 if ac_fn_c_try_link "$LINENO"; then :
12106 ac_cv_lib_cposix_strerror=yes
12107 else
12108 ac_cv_lib_cposix_strerror=no
12110 rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12112 LIBS=$ac_check_lib_save_LIBS
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
12115 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
12116 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
12117 LIBS="$LIBS -lcposix"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
12124 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12125 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12131 #include <features.h>
12132 #ifdef __GNU_LIBRARY__
12133 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12134 Lucky GNU user
12135 #endif
12136 #endif
12138 _ACEOF
12139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12140 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
12141 ac_cv_gnu_library_2_1=yes
12142 else
12143 ac_cv_gnu_library_2_1=no
12145 rm -f conftest*
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
12151 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
12153 GLIBC21="$ac_cv_gnu_library_2_1"
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
12159 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
12160 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12164 if test "$cross_compiling" = yes; then :
12166 # Guess based on the CPU.
12167 case "$host_cpu" in
12168 alpha* | i3456786 | m68k | s390*)
12169 gt_cv_int_divbyzero_sigfpe="guessing yes";;
12171 gt_cv_int_divbyzero_sigfpe="guessing no";;
12172 esac
12174 else
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12178 #include <stdlib.h>
12179 #include <signal.h>
12181 static void
12182 #ifdef __cplusplus
12183 sigfpe_handler (int sig)
12184 #else
12185 sigfpe_handler (sig) int sig;
12186 #endif
12188 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
12189 exit (sig != SIGFPE);
12192 int x = 1;
12193 int y = 0;
12194 int z;
12195 int nan;
12197 int main ()
12199 signal (SIGFPE, sigfpe_handler);
12200 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
12201 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12202 signal (SIGTRAP, sigfpe_handler);
12203 #endif
12204 /* Linux/SPARC yields signal SIGILL. */
12205 #if defined (__sparc__) && defined (__linux__)
12206 signal (SIGILL, sigfpe_handler);
12207 #endif
12209 z = x / y;
12210 nan = y / y;
12211 exit (1);
12214 _ACEOF
12215 if ac_fn_c_try_run "$LINENO"; then :
12216 gt_cv_int_divbyzero_sigfpe=yes
12217 else
12218 gt_cv_int_divbyzero_sigfpe=no
12220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12221 conftest.$ac_objext conftest.beam conftest.$ac_ext
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
12227 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
12228 case "$gt_cv_int_divbyzero_sigfpe" in
12229 *yes) value=1;;
12230 *) value=0;;
12231 esac
12233 cat >>confdefs.h <<_ACEOF
12234 #define INTDIV0_RAISES_SIGFPE $value
12235 _ACEOF
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12240 $as_echo_n "checking for inttypes.h... " >&6; }
12241 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #include <sys/types.h>
12247 #include <inttypes.h>
12249 main ()
12251 uintmax_t i = (uintmax_t) -1;
12253 return 0;
12255 _ACEOF
12256 if ac_fn_c_try_compile "$LINENO"; then :
12257 jm_ac_cv_header_inttypes_h=yes
12258 else
12259 jm_ac_cv_header_inttypes_h=no
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
12264 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12265 if test $jm_ac_cv_header_inttypes_h = yes; then
12267 cat >>confdefs.h <<_ACEOF
12268 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12269 _ACEOF
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12275 $as_echo_n "checking for stdint.h... " >&6; }
12276 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281 #include <sys/types.h>
12282 #include <stdint.h>
12284 main ()
12286 uintmax_t i = (uintmax_t) -1;
12288 return 0;
12290 _ACEOF
12291 if ac_fn_c_try_compile "$LINENO"; then :
12292 jm_ac_cv_header_stdint_h=yes
12293 else
12294 jm_ac_cv_header_stdint_h=no
12296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12299 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12300 if test $jm_ac_cv_header_stdint_h = yes; then
12302 cat >>confdefs.h <<_ACEOF
12303 #define HAVE_STDINT_H_WITH_UINTMAX 1
12304 _ACEOF
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12310 $as_echo_n "checking for unsigned long long... " >&6; }
12311 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12316 unsigned long long ull = 1; int i = 63;
12318 main ()
12320 unsigned long long ullmax = (unsigned long long) -1;
12321 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12323 return 0;
12325 _ACEOF
12326 if ac_fn_c_try_link "$LINENO"; then :
12327 ac_cv_type_unsigned_long_long=yes
12328 else
12329 ac_cv_type_unsigned_long_long=no
12331 rm -f core conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12335 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12336 if test $ac_cv_type_unsigned_long_long = yes; then
12338 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12345 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
12347 test $ac_cv_type_unsigned_long_long = yes \
12348 && ac_type='unsigned long long' \
12349 || ac_type='unsigned long'
12351 cat >>confdefs.h <<_ACEOF
12352 #define uintmax_t $ac_type
12353 _ACEOF
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12359 $as_echo_n "checking for inttypes.h... " >&6; }
12360 if test "${gt_cv_header_inttypes_h+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12366 #include <sys/types.h>
12367 #include <inttypes.h>
12369 main ()
12373 return 0;
12375 _ACEOF
12376 if ac_fn_c_try_compile "$LINENO"; then :
12377 gt_cv_header_inttypes_h=yes
12378 else
12379 gt_cv_header_inttypes_h=no
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12385 $as_echo "$gt_cv_header_inttypes_h" >&6; }
12386 if test $gt_cv_header_inttypes_h = yes; then
12388 cat >>confdefs.h <<_ACEOF
12389 #define HAVE_INTTYPES_H 1
12390 _ACEOF
12396 if test $gt_cv_header_inttypes_h = yes; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12398 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12399 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12401 else
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405 #include <inttypes.h>
12406 #ifdef PRId32
12407 char *p = PRId32;
12408 #endif
12411 main ()
12415 return 0;
12417 _ACEOF
12418 if ac_fn_c_try_compile "$LINENO"; then :
12419 gt_cv_inttypes_pri_broken=no
12420 else
12421 gt_cv_inttypes_pri_broken=yes
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12427 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12429 if test "$gt_cv_inttypes_pri_broken" = yes; then
12431 cat >>confdefs.h <<_ACEOF
12432 #define PRI_MACROS_BROKEN 1
12433 _ACEOF
12438 if test "X$prefix" = "XNONE"; then
12439 acl_final_prefix="$ac_default_prefix"
12440 else
12441 acl_final_prefix="$prefix"
12443 if test "X$exec_prefix" = "XNONE"; then
12444 acl_final_exec_prefix='${prefix}'
12445 else
12446 acl_final_exec_prefix="$exec_prefix"
12448 acl_save_prefix="$prefix"
12449 prefix="$acl_final_prefix"
12450 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12451 prefix="$acl_save_prefix"
12454 # Check whether --with-gnu-ld was given.
12455 if test "${with_gnu_ld+set}" = set; then :
12456 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12457 else
12458 with_gnu_ld=no
12461 ac_prog=ld
12462 if test "$GCC" = yes; then
12463 # Check if gcc -print-prog-name=ld gives a path.
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12465 $as_echo_n "checking for ld used by GCC... " >&6; }
12466 case $host in
12467 *-*-mingw*)
12468 # gcc leaves a trailing carriage return which upsets mingw
12469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12472 esac
12473 case $ac_prog in
12474 # Accept absolute paths.
12475 [\\/]* | [A-Za-z]:[\\/]*)
12476 re_direlt='/[^/][^/]*/\.\./'
12477 # Canonicalize the path of ld
12478 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12479 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12480 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12481 done
12482 test -z "$LD" && LD="$ac_prog"
12485 # If it fails, then pretend we aren't using GCC.
12486 ac_prog=ld
12489 # If it is relative, then search for the first ld in PATH.
12490 with_gnu_ld=unknown
12492 esac
12493 elif test "$with_gnu_ld" = yes; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12495 $as_echo_n "checking for GNU ld... " >&6; }
12496 else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12498 $as_echo_n "checking for non-GNU ld... " >&6; }
12500 if test "${acl_cv_path_LD+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 if test -z "$LD"; then
12504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12505 for ac_dir in $PATH; do
12506 test -z "$ac_dir" && ac_dir=.
12507 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12508 acl_cv_path_LD="$ac_dir/$ac_prog"
12509 # Check to see if the program is GNU ld. I'd rather use --version,
12510 # but apparently some GNU ld's only accept -v.
12511 # Break only if it was the GNU/non-GNU ld that we prefer.
12512 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12513 test "$with_gnu_ld" != no && break
12514 else
12515 test "$with_gnu_ld" != yes && break
12518 done
12519 IFS="$ac_save_ifs"
12520 else
12521 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12525 LD="$acl_cv_path_LD"
12526 if test -n "$LD"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12528 $as_echo "$LD" >&6; }
12529 else
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12533 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12535 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12536 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12537 $as_echo_n "(cached) " >&6
12538 else
12539 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12540 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12541 acl_cv_prog_gnu_ld=yes
12542 else
12543 acl_cv_prog_gnu_ld=no
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12547 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12548 with_gnu_ld=$acl_cv_prog_gnu_ld
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12553 $as_echo_n "checking for shared library run path origin... " >&6; }
12554 if test "${acl_cv_rpath+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12558 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12559 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12560 . ./conftest.sh
12561 rm -f ./conftest.sh
12562 acl_cv_rpath=done
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12566 $as_echo "$acl_cv_rpath" >&6; }
12567 wl="$acl_cv_wl"
12568 libext="$acl_cv_libext"
12569 shlibext="$acl_cv_shlibext"
12570 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12571 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12572 hardcode_direct="$acl_cv_hardcode_direct"
12573 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12574 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
12575 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
12576 # Check whether --enable-rpath was given.
12577 if test "${enable_rpath+set}" = set; then :
12578 enableval=$enable_rpath; :
12579 else
12580 enable_rpath=yes
12590 use_additional=yes
12592 acl_save_prefix="$prefix"
12593 prefix="$acl_final_prefix"
12594 acl_save_exec_prefix="$exec_prefix"
12595 exec_prefix="$acl_final_exec_prefix"
12597 eval additional_includedir=\"$includedir\"
12598 eval additional_libdir=\"$libdir\"
12600 exec_prefix="$acl_save_exec_prefix"
12601 prefix="$acl_save_prefix"
12604 # Check whether --with-libiconv-prefix was given.
12605 if test "${with_libiconv_prefix+set}" = set; then :
12606 withval=$with_libiconv_prefix;
12607 if test "X$withval" = "Xno"; then
12608 use_additional=no
12609 else
12610 if test "X$withval" = "X"; then
12612 acl_save_prefix="$prefix"
12613 prefix="$acl_final_prefix"
12614 acl_save_exec_prefix="$exec_prefix"
12615 exec_prefix="$acl_final_exec_prefix"
12617 eval additional_includedir=\"$includedir\"
12618 eval additional_libdir=\"$libdir\"
12620 exec_prefix="$acl_save_exec_prefix"
12621 prefix="$acl_save_prefix"
12623 else
12624 additional_includedir="$withval/include"
12625 additional_libdir="$withval/lib"
12631 LIBICONV=
12632 LTLIBICONV=
12633 INCICONV=
12634 rpathdirs=
12635 ltrpathdirs=
12636 names_already_handled=
12637 names_next_round='iconv '
12638 while test -n "$names_next_round"; do
12639 names_this_round="$names_next_round"
12640 names_next_round=
12641 for name in $names_this_round; do
12642 already_handled=
12643 for n in $names_already_handled; do
12644 if test "$n" = "$name"; then
12645 already_handled=yes
12646 break
12648 done
12649 if test -z "$already_handled"; then
12650 names_already_handled="$names_already_handled $name"
12651 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12652 eval value=\"\$HAVE_LIB$uppername\"
12653 if test -n "$value"; then
12654 if test "$value" = yes; then
12655 eval value=\"\$LIB$uppername\"
12656 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12657 eval value=\"\$LTLIB$uppername\"
12658 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12659 else
12662 else
12663 found_dir=
12664 found_la=
12665 found_so=
12666 found_a=
12667 if test $use_additional = yes; then
12668 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12669 found_dir="$additional_libdir"
12670 found_so="$additional_libdir/lib$name.$shlibext"
12671 if test -f "$additional_libdir/lib$name.la"; then
12672 found_la="$additional_libdir/lib$name.la"
12674 else
12675 if test -f "$additional_libdir/lib$name.$libext"; then
12676 found_dir="$additional_libdir"
12677 found_a="$additional_libdir/lib$name.$libext"
12678 if test -f "$additional_libdir/lib$name.la"; then
12679 found_la="$additional_libdir/lib$name.la"
12684 if test "X$found_dir" = "X"; then
12685 for x in $LDFLAGS $LTLIBICONV; do
12687 acl_save_prefix="$prefix"
12688 prefix="$acl_final_prefix"
12689 acl_save_exec_prefix="$exec_prefix"
12690 exec_prefix="$acl_final_exec_prefix"
12691 eval x=\"$x\"
12692 exec_prefix="$acl_save_exec_prefix"
12693 prefix="$acl_save_prefix"
12695 case "$x" in
12696 -L*)
12697 dir=`echo "X$x" | sed -e 's/^X-L//'`
12698 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12699 found_dir="$dir"
12700 found_so="$dir/lib$name.$shlibext"
12701 if test -f "$dir/lib$name.la"; then
12702 found_la="$dir/lib$name.la"
12704 else
12705 if test -f "$dir/lib$name.$libext"; then
12706 found_dir="$dir"
12707 found_a="$dir/lib$name.$libext"
12708 if test -f "$dir/lib$name.la"; then
12709 found_la="$dir/lib$name.la"
12714 esac
12715 if test "X$found_dir" != "X"; then
12716 break
12718 done
12720 if test "X$found_dir" != "X"; then
12721 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12722 if test "X$found_so" != "X"; then
12723 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12724 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12725 else
12726 haveit=
12727 for x in $ltrpathdirs; do
12728 if test "X$x" = "X$found_dir"; then
12729 haveit=yes
12730 break
12732 done
12733 if test -z "$haveit"; then
12734 ltrpathdirs="$ltrpathdirs $found_dir"
12736 if test "$hardcode_direct" = yes; then
12737 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12738 else
12739 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12740 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12741 haveit=
12742 for x in $rpathdirs; do
12743 if test "X$x" = "X$found_dir"; then
12744 haveit=yes
12745 break
12747 done
12748 if test -z "$haveit"; then
12749 rpathdirs="$rpathdirs $found_dir"
12751 else
12752 haveit=
12753 for x in $LDFLAGS $LIBICONV; do
12755 acl_save_prefix="$prefix"
12756 prefix="$acl_final_prefix"
12757 acl_save_exec_prefix="$exec_prefix"
12758 exec_prefix="$acl_final_exec_prefix"
12759 eval x=\"$x\"
12760 exec_prefix="$acl_save_exec_prefix"
12761 prefix="$acl_save_prefix"
12763 if test "X$x" = "X-L$found_dir"; then
12764 haveit=yes
12765 break
12767 done
12768 if test -z "$haveit"; then
12769 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12771 if test "$hardcode_minus_L" != no; then
12772 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12773 else
12774 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12779 else
12780 if test "X$found_a" != "X"; then
12781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12782 else
12783 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12786 additional_includedir=
12787 case "$found_dir" in
12788 */lib | */lib/)
12789 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12790 additional_includedir="$basedir/include"
12792 esac
12793 if test "X$additional_includedir" != "X"; then
12794 if test "X$additional_includedir" != "X/usr/include"; then
12795 haveit=
12796 if test "X$additional_includedir" = "X/usr/local/include"; then
12797 if test -n "$GCC"; then
12798 case $host_os in
12799 linux*) haveit=yes;;
12800 esac
12803 if test -z "$haveit"; then
12804 for x in $CPPFLAGS $INCICONV; do
12806 acl_save_prefix="$prefix"
12807 prefix="$acl_final_prefix"
12808 acl_save_exec_prefix="$exec_prefix"
12809 exec_prefix="$acl_final_exec_prefix"
12810 eval x=\"$x\"
12811 exec_prefix="$acl_save_exec_prefix"
12812 prefix="$acl_save_prefix"
12814 if test "X$x" = "X-I$additional_includedir"; then
12815 haveit=yes
12816 break
12818 done
12819 if test -z "$haveit"; then
12820 if test -d "$additional_includedir"; then
12821 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12827 if test -n "$found_la"; then
12828 save_libdir="$libdir"
12829 case "$found_la" in
12830 */* | *\\*) . "$found_la" ;;
12831 *) . "./$found_la" ;;
12832 esac
12833 libdir="$save_libdir"
12834 for dep in $dependency_libs; do
12835 case "$dep" in
12836 -L*)
12837 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12838 if test "X$additional_libdir" != "X/usr/lib"; then
12839 haveit=
12840 if test "X$additional_libdir" = "X/usr/local/lib"; then
12841 if test -n "$GCC"; then
12842 case $host_os in
12843 linux*) haveit=yes;;
12844 esac
12847 if test -z "$haveit"; then
12848 haveit=
12849 for x in $LDFLAGS $LIBICONV; do
12851 acl_save_prefix="$prefix"
12852 prefix="$acl_final_prefix"
12853 acl_save_exec_prefix="$exec_prefix"
12854 exec_prefix="$acl_final_exec_prefix"
12855 eval x=\"$x\"
12856 exec_prefix="$acl_save_exec_prefix"
12857 prefix="$acl_save_prefix"
12859 if test "X$x" = "X-L$additional_libdir"; then
12860 haveit=yes
12861 break
12863 done
12864 if test -z "$haveit"; then
12865 if test -d "$additional_libdir"; then
12866 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12869 haveit=
12870 for x in $LDFLAGS $LTLIBICONV; do
12872 acl_save_prefix="$prefix"
12873 prefix="$acl_final_prefix"
12874 acl_save_exec_prefix="$exec_prefix"
12875 exec_prefix="$acl_final_exec_prefix"
12876 eval x=\"$x\"
12877 exec_prefix="$acl_save_exec_prefix"
12878 prefix="$acl_save_prefix"
12880 if test "X$x" = "X-L$additional_libdir"; then
12881 haveit=yes
12882 break
12884 done
12885 if test -z "$haveit"; then
12886 if test -d "$additional_libdir"; then
12887 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12893 -R*)
12894 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12895 if test "$enable_rpath" != no; then
12896 haveit=
12897 for x in $rpathdirs; do
12898 if test "X$x" = "X$dir"; then
12899 haveit=yes
12900 break
12902 done
12903 if test -z "$haveit"; then
12904 rpathdirs="$rpathdirs $dir"
12906 haveit=
12907 for x in $ltrpathdirs; do
12908 if test "X$x" = "X$dir"; then
12909 haveit=yes
12910 break
12912 done
12913 if test -z "$haveit"; then
12914 ltrpathdirs="$ltrpathdirs $dir"
12918 -l*)
12919 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12921 *.la)
12922 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12925 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12926 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12928 esac
12929 done
12931 else
12932 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12933 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12937 done
12938 done
12939 if test "X$rpathdirs" != "X"; then
12940 if test -n "$hardcode_libdir_separator"; then
12941 alldirs=
12942 for found_dir in $rpathdirs; do
12943 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12944 done
12945 acl_save_libdir="$libdir"
12946 libdir="$alldirs"
12947 eval flag=\"$hardcode_libdir_flag_spec\"
12948 libdir="$acl_save_libdir"
12949 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12950 else
12951 for found_dir in $rpathdirs; do
12952 acl_save_libdir="$libdir"
12953 libdir="$found_dir"
12954 eval flag=\"$hardcode_libdir_flag_spec\"
12955 libdir="$acl_save_libdir"
12956 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12957 done
12960 if test "X$ltrpathdirs" != "X"; then
12961 for found_dir in $ltrpathdirs; do
12962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12963 done
12969 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12970 stdlib.h string.h unistd.h sys/param.h
12971 do :
12972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12973 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12974 eval as_val=\$$as_ac_Header
12975 if test "x$as_val" = x""yes; then :
12976 cat >>confdefs.h <<_ACEOF
12977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12978 _ACEOF
12982 done
12984 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12985 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12986 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12987 do :
12988 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12989 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12990 eval as_val=\$$as_ac_var
12991 if test "x$as_val" = x""yes; then :
12992 cat >>confdefs.h <<_ACEOF
12993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 _ACEOF
12997 done
13005 am_save_CPPFLAGS="$CPPFLAGS"
13007 for element in $INCICONV; do
13008 haveit=
13009 for x in $CPPFLAGS; do
13011 acl_save_prefix="$prefix"
13012 prefix="$acl_final_prefix"
13013 acl_save_exec_prefix="$exec_prefix"
13014 exec_prefix="$acl_final_exec_prefix"
13015 eval x=\"$x\"
13016 exec_prefix="$acl_save_exec_prefix"
13017 prefix="$acl_save_prefix"
13019 if test "X$x" = "X$element"; then
13020 haveit=yes
13021 break
13023 done
13024 if test -z "$haveit"; then
13025 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13027 done
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13031 $as_echo_n "checking for iconv... " >&6; }
13032 if test "${am_cv_func_iconv+set}" = set; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13036 am_cv_func_iconv="no, consider installing GNU libiconv"
13037 am_cv_lib_iconv=no
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13040 #include <stdlib.h>
13041 #include <iconv.h>
13043 main ()
13045 iconv_t cd = iconv_open("","");
13046 iconv(cd,NULL,NULL,NULL,NULL);
13047 iconv_close(cd);
13049 return 0;
13051 _ACEOF
13052 if ac_fn_c_try_link "$LINENO"; then :
13053 am_cv_func_iconv=yes
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 if test "$am_cv_func_iconv" != yes; then
13058 am_save_LIBS="$LIBS"
13059 LIBS="$LIBS $LIBICONV"
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062 #include <stdlib.h>
13063 #include <iconv.h>
13065 main ()
13067 iconv_t cd = iconv_open("","");
13068 iconv(cd,NULL,NULL,NULL,NULL);
13069 iconv_close(cd);
13071 return 0;
13073 _ACEOF
13074 if ac_fn_c_try_link "$LINENO"; then :
13075 am_cv_lib_iconv=yes
13076 am_cv_func_iconv=yes
13078 rm -f core conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13080 LIBS="$am_save_LIBS"
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13085 $as_echo "$am_cv_func_iconv" >&6; }
13086 if test "$am_cv_func_iconv" = yes; then
13088 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13091 if test "$am_cv_lib_iconv" = yes; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13093 $as_echo_n "checking how to link with libiconv... " >&6; }
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13095 $as_echo "$LIBICONV" >&6; }
13096 else
13097 CPPFLAGS="$am_save_CPPFLAGS"
13098 LIBICONV=
13099 LTLIBICONV=
13104 if test "$am_cv_func_iconv" = yes; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13106 $as_echo_n "checking for iconv declaration... " >&6; }
13107 if test "${am_cv_proto_iconv+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13114 #include <stdlib.h>
13115 #include <iconv.h>
13116 extern
13117 #ifdef __cplusplus
13119 #endif
13120 #if defined(__STDC__) || defined(__cplusplus)
13121 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13122 #else
13123 size_t iconv();
13124 #endif
13127 main ()
13131 return 0;
13133 _ACEOF
13134 if ac_fn_c_try_compile "$LINENO"; then :
13135 am_cv_proto_iconv_arg1=""
13136 else
13137 am_cv_proto_iconv_arg1="const"
13139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13140 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);"
13143 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
13145 }$am_cv_proto_iconv" >&5
13146 $as_echo "${ac_t:-
13147 }$am_cv_proto_iconv" >&6; }
13149 cat >>confdefs.h <<_ACEOF
13150 #define ICONV_CONST $am_cv_proto_iconv_arg1
13151 _ACEOF
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13157 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13158 if test "${am_cv_langinfo_codeset+set}" = set; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13163 #include <langinfo.h>
13165 main ()
13167 char* cs = nl_langinfo(CODESET);
13169 return 0;
13171 _ACEOF
13172 if ac_fn_c_try_link "$LINENO"; then :
13173 am_cv_langinfo_codeset=yes
13174 else
13175 am_cv_langinfo_codeset=no
13177 rm -f core conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext conftest.$ac_ext
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13182 $as_echo "$am_cv_langinfo_codeset" >&6; }
13183 if test $am_cv_langinfo_codeset = yes; then
13185 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13189 if test $ac_cv_header_locale_h = yes; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13192 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13193 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197 /* end confdefs.h. */
13198 #include <locale.h>
13200 main ()
13202 return LC_MESSAGES
13204 return 0;
13206 _ACEOF
13207 if ac_fn_c_try_link "$LINENO"; then :
13208 am_cv_val_LC_MESSAGES=yes
13209 else
13210 am_cv_val_LC_MESSAGES=no
13212 rm -f core conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13216 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13217 if test $am_cv_val_LC_MESSAGES = yes; then
13219 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13225 for ac_prog in bison
13227 # Extract the first word of "$ac_prog", so it can be a program name with args.
13228 set dummy $ac_prog; ac_word=$2
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13230 $as_echo_n "checking for $ac_word... " >&6; }
13231 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 if test -n "$INTLBISON"; then
13235 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13236 else
13237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13238 for as_dir in $PATH
13240 IFS=$as_save_IFS
13241 test -z "$as_dir" && as_dir=.
13242 for ac_exec_ext in '' $ac_executable_extensions; do
13243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13244 ac_cv_prog_INTLBISON="$ac_prog"
13245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13246 break 2
13248 done
13249 done
13250 IFS=$as_save_IFS
13254 INTLBISON=$ac_cv_prog_INTLBISON
13255 if test -n "$INTLBISON"; then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
13257 $as_echo "$INTLBISON" >&6; }
13258 else
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13264 test -n "$INTLBISON" && break
13265 done
13267 if test -z "$INTLBISON"; then
13268 ac_verc_fail=yes
13269 else
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13271 $as_echo_n "checking version of bison... " >&6; }
13272 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13273 case $ac_prog_version in
13274 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13275 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13276 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13277 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13278 esac
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13280 $as_echo "$ac_prog_version" >&6; }
13282 if test $ac_verc_fail = yes; then
13283 INTLBISON=:
13288 # Check whether --with-language was given.
13289 if test "${with_language+set}" = set; then :
13290 withval=$with_language; if test "$withval" != "all"; then :
13291 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13311 $as_echo_n "checking whether NLS is requested... " >&6; }
13312 # Check whether --enable-nls was given.
13313 if test "${enable_nls+set}" = set; then :
13314 enableval=$enable_nls; USE_NLS=$enableval
13315 else
13316 USE_NLS=yes
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13320 $as_echo "$USE_NLS" >&6; }
13324 BUILD_INCLUDED_LIBINTL=no
13325 USE_INCLUDED_LIBINTL=no
13327 LIBINTL=
13328 LTLIBINTL=
13329 POSUB=
13331 if test "$USE_NLS" = "yes"; then
13332 gt_use_preinstalled_gnugettext=no
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13335 $as_echo_n "checking whether included gettext is requested... " >&6; }
13337 # Check whether --with-included-gettext was given.
13338 if test "${with_included_gettext+set}" = set; then :
13339 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13340 else
13341 nls_cv_force_use_gnu_gettext=no
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13345 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13347 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13348 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13356 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13357 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13362 #include <libintl.h>
13363 extern int _nl_msg_cat_cntr;
13364 extern int *_nl_domain_bindings;
13366 main ()
13368 bindtextdomain ("", "");
13369 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13371 return 0;
13373 _ACEOF
13374 if ac_fn_c_try_link "$LINENO"; then :
13375 gt_cv_func_gnugettext2_libc=yes
13376 else
13377 gt_cv_func_gnugettext2_libc=no
13379 rm -f core conftest.err conftest.$ac_objext \
13380 conftest$ac_exeext conftest.$ac_ext
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
13383 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
13385 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13389 use_additional=yes
13391 acl_save_prefix="$prefix"
13392 prefix="$acl_final_prefix"
13393 acl_save_exec_prefix="$exec_prefix"
13394 exec_prefix="$acl_final_exec_prefix"
13396 eval additional_includedir=\"$includedir\"
13397 eval additional_libdir=\"$libdir\"
13399 exec_prefix="$acl_save_exec_prefix"
13400 prefix="$acl_save_prefix"
13403 # Check whether --with-libintl-prefix was given.
13404 if test "${with_libintl_prefix+set}" = set; then :
13405 withval=$with_libintl_prefix;
13406 if test "X$withval" = "Xno"; then
13407 use_additional=no
13408 else
13409 if test "X$withval" = "X"; then
13411 acl_save_prefix="$prefix"
13412 prefix="$acl_final_prefix"
13413 acl_save_exec_prefix="$exec_prefix"
13414 exec_prefix="$acl_final_exec_prefix"
13416 eval additional_includedir=\"$includedir\"
13417 eval additional_libdir=\"$libdir\"
13419 exec_prefix="$acl_save_exec_prefix"
13420 prefix="$acl_save_prefix"
13422 else
13423 additional_includedir="$withval/include"
13424 additional_libdir="$withval/lib"
13430 LIBINTL=
13431 LTLIBINTL=
13432 INCINTL=
13433 rpathdirs=
13434 ltrpathdirs=
13435 names_already_handled=
13436 names_next_round='intl '
13437 while test -n "$names_next_round"; do
13438 names_this_round="$names_next_round"
13439 names_next_round=
13440 for name in $names_this_round; do
13441 already_handled=
13442 for n in $names_already_handled; do
13443 if test "$n" = "$name"; then
13444 already_handled=yes
13445 break
13447 done
13448 if test -z "$already_handled"; then
13449 names_already_handled="$names_already_handled $name"
13450 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13451 eval value=\"\$HAVE_LIB$uppername\"
13452 if test -n "$value"; then
13453 if test "$value" = yes; then
13454 eval value=\"\$LIB$uppername\"
13455 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13456 eval value=\"\$LTLIB$uppername\"
13457 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13458 else
13461 else
13462 found_dir=
13463 found_la=
13464 found_so=
13465 found_a=
13466 if test $use_additional = yes; then
13467 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13468 found_dir="$additional_libdir"
13469 found_so="$additional_libdir/lib$name.$shlibext"
13470 if test -f "$additional_libdir/lib$name.la"; then
13471 found_la="$additional_libdir/lib$name.la"
13473 else
13474 if test -f "$additional_libdir/lib$name.$libext"; then
13475 found_dir="$additional_libdir"
13476 found_a="$additional_libdir/lib$name.$libext"
13477 if test -f "$additional_libdir/lib$name.la"; then
13478 found_la="$additional_libdir/lib$name.la"
13483 if test "X$found_dir" = "X"; then
13484 for x in $LDFLAGS $LTLIBINTL; do
13486 acl_save_prefix="$prefix"
13487 prefix="$acl_final_prefix"
13488 acl_save_exec_prefix="$exec_prefix"
13489 exec_prefix="$acl_final_exec_prefix"
13490 eval x=\"$x\"
13491 exec_prefix="$acl_save_exec_prefix"
13492 prefix="$acl_save_prefix"
13494 case "$x" in
13495 -L*)
13496 dir=`echo "X$x" | sed -e 's/^X-L//'`
13497 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13498 found_dir="$dir"
13499 found_so="$dir/lib$name.$shlibext"
13500 if test -f "$dir/lib$name.la"; then
13501 found_la="$dir/lib$name.la"
13503 else
13504 if test -f "$dir/lib$name.$libext"; then
13505 found_dir="$dir"
13506 found_a="$dir/lib$name.$libext"
13507 if test -f "$dir/lib$name.la"; then
13508 found_la="$dir/lib$name.la"
13513 esac
13514 if test "X$found_dir" != "X"; then
13515 break
13517 done
13519 if test "X$found_dir" != "X"; then
13520 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13521 if test "X$found_so" != "X"; then
13522 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13523 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13524 else
13525 haveit=
13526 for x in $ltrpathdirs; do
13527 if test "X$x" = "X$found_dir"; then
13528 haveit=yes
13529 break
13531 done
13532 if test -z "$haveit"; then
13533 ltrpathdirs="$ltrpathdirs $found_dir"
13535 if test "$hardcode_direct" = yes; then
13536 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13537 else
13538 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13539 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13540 haveit=
13541 for x in $rpathdirs; do
13542 if test "X$x" = "X$found_dir"; then
13543 haveit=yes
13544 break
13546 done
13547 if test -z "$haveit"; then
13548 rpathdirs="$rpathdirs $found_dir"
13550 else
13551 haveit=
13552 for x in $LDFLAGS $LIBINTL; do
13554 acl_save_prefix="$prefix"
13555 prefix="$acl_final_prefix"
13556 acl_save_exec_prefix="$exec_prefix"
13557 exec_prefix="$acl_final_exec_prefix"
13558 eval x=\"$x\"
13559 exec_prefix="$acl_save_exec_prefix"
13560 prefix="$acl_save_prefix"
13562 if test "X$x" = "X-L$found_dir"; then
13563 haveit=yes
13564 break
13566 done
13567 if test -z "$haveit"; then
13568 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13570 if test "$hardcode_minus_L" != no; then
13571 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13572 else
13573 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13578 else
13579 if test "X$found_a" != "X"; then
13580 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13581 else
13582 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13585 additional_includedir=
13586 case "$found_dir" in
13587 */lib | */lib/)
13588 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13589 additional_includedir="$basedir/include"
13591 esac
13592 if test "X$additional_includedir" != "X"; then
13593 if test "X$additional_includedir" != "X/usr/include"; then
13594 haveit=
13595 if test "X$additional_includedir" = "X/usr/local/include"; then
13596 if test -n "$GCC"; then
13597 case $host_os in
13598 linux*) haveit=yes;;
13599 esac
13602 if test -z "$haveit"; then
13603 for x in $CPPFLAGS $INCINTL; do
13605 acl_save_prefix="$prefix"
13606 prefix="$acl_final_prefix"
13607 acl_save_exec_prefix="$exec_prefix"
13608 exec_prefix="$acl_final_exec_prefix"
13609 eval x=\"$x\"
13610 exec_prefix="$acl_save_exec_prefix"
13611 prefix="$acl_save_prefix"
13613 if test "X$x" = "X-I$additional_includedir"; then
13614 haveit=yes
13615 break
13617 done
13618 if test -z "$haveit"; then
13619 if test -d "$additional_includedir"; then
13620 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13626 if test -n "$found_la"; then
13627 save_libdir="$libdir"
13628 case "$found_la" in
13629 */* | *\\*) . "$found_la" ;;
13630 *) . "./$found_la" ;;
13631 esac
13632 libdir="$save_libdir"
13633 for dep in $dependency_libs; do
13634 case "$dep" in
13635 -L*)
13636 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13637 if test "X$additional_libdir" != "X/usr/lib"; then
13638 haveit=
13639 if test "X$additional_libdir" = "X/usr/local/lib"; then
13640 if test -n "$GCC"; then
13641 case $host_os in
13642 linux*) haveit=yes;;
13643 esac
13646 if test -z "$haveit"; then
13647 haveit=
13648 for x in $LDFLAGS $LIBINTL; do
13650 acl_save_prefix="$prefix"
13651 prefix="$acl_final_prefix"
13652 acl_save_exec_prefix="$exec_prefix"
13653 exec_prefix="$acl_final_exec_prefix"
13654 eval x=\"$x\"
13655 exec_prefix="$acl_save_exec_prefix"
13656 prefix="$acl_save_prefix"
13658 if test "X$x" = "X-L$additional_libdir"; then
13659 haveit=yes
13660 break
13662 done
13663 if test -z "$haveit"; then
13664 if test -d "$additional_libdir"; then
13665 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13668 haveit=
13669 for x in $LDFLAGS $LTLIBINTL; do
13671 acl_save_prefix="$prefix"
13672 prefix="$acl_final_prefix"
13673 acl_save_exec_prefix="$exec_prefix"
13674 exec_prefix="$acl_final_exec_prefix"
13675 eval x=\"$x\"
13676 exec_prefix="$acl_save_exec_prefix"
13677 prefix="$acl_save_prefix"
13679 if test "X$x" = "X-L$additional_libdir"; then
13680 haveit=yes
13681 break
13683 done
13684 if test -z "$haveit"; then
13685 if test -d "$additional_libdir"; then
13686 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13692 -R*)
13693 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13694 if test "$enable_rpath" != no; then
13695 haveit=
13696 for x in $rpathdirs; do
13697 if test "X$x" = "X$dir"; then
13698 haveit=yes
13699 break
13701 done
13702 if test -z "$haveit"; then
13703 rpathdirs="$rpathdirs $dir"
13705 haveit=
13706 for x in $ltrpathdirs; do
13707 if test "X$x" = "X$dir"; then
13708 haveit=yes
13709 break
13711 done
13712 if test -z "$haveit"; then
13713 ltrpathdirs="$ltrpathdirs $dir"
13717 -l*)
13718 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13720 *.la)
13721 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13724 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13725 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13727 esac
13728 done
13730 else
13731 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13732 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13736 done
13737 done
13738 if test "X$rpathdirs" != "X"; then
13739 if test -n "$hardcode_libdir_separator"; then
13740 alldirs=
13741 for found_dir in $rpathdirs; do
13742 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13743 done
13744 acl_save_libdir="$libdir"
13745 libdir="$alldirs"
13746 eval flag=\"$hardcode_libdir_flag_spec\"
13747 libdir="$acl_save_libdir"
13748 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13749 else
13750 for found_dir in $rpathdirs; do
13751 acl_save_libdir="$libdir"
13752 libdir="$found_dir"
13753 eval flag=\"$hardcode_libdir_flag_spec\"
13754 libdir="$acl_save_libdir"
13755 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13756 done
13759 if test "X$ltrpathdirs" != "X"; then
13760 for found_dir in $ltrpathdirs; do
13761 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13762 done
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13766 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13767 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
13768 $as_echo_n "(cached) " >&6
13769 else
13770 gt_save_CPPFLAGS="$CPPFLAGS"
13771 CPPFLAGS="$CPPFLAGS $INCINTL"
13772 gt_save_LIBS="$LIBS"
13773 LIBS="$LIBS $LIBINTL"
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13776 #include <libintl.h>
13777 extern int _nl_msg_cat_cntr;
13778 extern
13779 #ifdef __cplusplus
13781 #endif
13782 const char *_nl_expand_alias ();
13784 main ()
13786 bindtextdomain ("", "");
13787 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13789 return 0;
13791 _ACEOF
13792 if ac_fn_c_try_link "$LINENO"; then :
13793 gt_cv_func_gnugettext2_libintl=yes
13794 else
13795 gt_cv_func_gnugettext2_libintl=no
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13799 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
13800 LIBS="$LIBS $LIBICONV"
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 #include <libintl.h>
13804 extern int _nl_msg_cat_cntr;
13805 extern
13806 #ifdef __cplusplus
13808 #endif
13809 const char *_nl_expand_alias ();
13811 main ()
13813 bindtextdomain ("", "");
13814 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13816 return 0;
13818 _ACEOF
13819 if ac_fn_c_try_link "$LINENO"; then :
13820 LIBINTL="$LIBINTL $LIBICONV"
13821 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13822 gt_cv_func_gnugettext2_libintl=yes
13825 rm -f core conftest.err conftest.$ac_objext \
13826 conftest$ac_exeext conftest.$ac_ext
13828 CPPFLAGS="$gt_save_CPPFLAGS"
13829 LIBS="$gt_save_LIBS"
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
13832 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
13835 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
13836 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
13837 && test "$PACKAGE" != gettext; }; then
13838 gt_use_preinstalled_gnugettext=yes
13839 else
13840 LIBINTL=
13841 LTLIBINTL=
13842 INCINTL=
13846 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13847 nls_cv_use_gnu_gettext=yes
13851 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13852 INTLOBJS="\$(GETTOBJS)"
13853 BUILD_INCLUDED_LIBINTL=yes
13854 USE_INCLUDED_LIBINTL=yes
13855 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13856 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13857 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13860 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13861 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13862 CATOBJEXT=.gmo
13866 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13867 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13869 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13871 else
13872 USE_NLS=no
13876 if test "$USE_NLS" = "yes"; then
13878 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13879 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13881 $as_echo_n "checking how to link with libintl... " >&6; }
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13883 $as_echo "$LIBINTL" >&6; }
13885 for element in $INCINTL; do
13886 haveit=
13887 for x in $CPPFLAGS; do
13889 acl_save_prefix="$prefix"
13890 prefix="$acl_final_prefix"
13891 acl_save_exec_prefix="$exec_prefix"
13892 exec_prefix="$acl_final_exec_prefix"
13893 eval x=\"$x\"
13894 exec_prefix="$acl_save_exec_prefix"
13895 prefix="$acl_save_prefix"
13897 if test "X$x" = "X$element"; then
13898 haveit=yes
13899 break
13901 done
13902 if test -z "$haveit"; then
13903 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13905 done
13910 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13913 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13917 POSUB=po
13921 if test "$PACKAGE" = gettext; then
13922 BUILD_INCLUDED_LIBINTL=yes
13930 nls_cv_header_intl=
13931 nls_cv_header_libgt=
13933 DATADIRNAME=share
13936 INSTOBJEXT=.mo
13939 GENCAT=gencat
13942 INTL_LIBTOOL_SUFFIX_PREFIX=
13946 INTLLIBS="$LIBINTL"
13953 if test $USE_INCLUDED_LIBINTL = yes; then :
13954 INCINTL=-I\${top_builddir}/intl
13957 if test x$USE_NLS = xyes; then :
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
13960 $as_echo_n "checking for autopoint... " >&6; }
13961 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
13962 if test -n "$autopoint_version"; then :
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
13965 $as_echo "yes ($autopoint_version)" >&6; }
13968 else
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13971 $as_echo "no" >&6; }
13972 USE_NLS=no
13977 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13979 You need to install GNU gettext/gettext-tools to compile aMule with
13980 i18n support." >&5
13981 $as_echo "$as_me: WARNING:
13982 You need to install GNU gettext/gettext-tools to compile aMule with
13983 i18n support." >&2;}
13984 _mule_warning_9=yes
13985 _mule_has_warnings=yes
13989 if test ${USE_NLS:-no} = yes; then :
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
13992 $as_echo_n "checking for requested languages... " >&6; }
13993 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
13995 if test ${enable_amule_daemon:-no} = yes; then :
13997 if test -z "$LINGUAS"; then :
13998 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
13999 else
14001 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14002 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
14005 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
14007 else
14008 AMULE_DAEMON_MANPAGES=
14013 if test ${enable_amulecmd:-no} = yes; then :
14015 if test -z "$LINGUAS"; then :
14016 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
14017 else
14019 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14020 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
14023 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
14025 else
14026 AMULECMD_MANPAGES=
14031 if test ${enable_webserver:-no} = yes; then :
14033 if test -z "$LINGUAS"; then :
14034 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
14035 else
14037 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14038 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
14041 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
14043 else
14044 WEBSERVER_MANPAGES=
14049 if test ${enable_amule_gui:-no} = yes; then :
14051 if test -z "$LINGUAS"; then :
14052 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
14053 else
14055 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14056 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
14059 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
14061 else
14062 AMULE_GUI_MANPAGES=
14067 if test ${enable_cas:-no} = yes; then :
14069 if test -z "$LINGUAS"; then :
14070 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
14071 else
14073 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14074 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
14077 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
14079 else
14080 CAS_MANPAGES=
14085 if test ${enable_wxcas:-no} = yes; then :
14087 if test -z "$LINGUAS"; then :
14088 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
14089 else
14091 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14092 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
14095 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
14097 else
14098 WXCAS_MANPAGES=
14103 if test ${enable_ed2k:-yes} = yes; then :
14105 if test -z "$LINGUAS"; then :
14106 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
14107 else
14109 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14110 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
14113 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
14115 else
14116 ED2K_MANPAGES=
14121 if test ${enable_alc:-no} = yes; then :
14123 if test -z "$LINGUAS"; then :
14124 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
14125 else
14127 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14128 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
14131 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
14133 else
14134 ALC_MANPAGES=
14139 if test ${enable_alcc:-no} = yes; then :
14141 if test -z "$LINGUAS"; then :
14142 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
14143 else
14145 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14146 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
14149 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
14151 else
14152 ALCC_MANPAGES=
14157 if test ${enable_monolithic:-yes} = yes; then :
14159 if test -z "$LINGUAS"; then :
14160 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
14161 else
14163 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
14164 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
14167 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
14169 else
14170 MONOLITHIC_MANPAGES=
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
14175 $as_echo "${LINGUAS:-all}" >&6; }
14181 # Check for bfd.h (to have proper backtraces without using wxExecute)
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
14184 $as_echo_n "checking for bfd... " >&6; }
14185 result=no
14186 for bfd_ldadd in "" "${LIBINTL}" "-ldl" "-ldl ${LIBINTL}"; do
14187 mule_backup_LIBS="$LIBS"
14188 mule_backup_LDFLAGS="$LDFLAGS"
14189 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
14190 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
14191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h. */
14195 #include <ansidecl.h>
14196 #include <bfd.h>
14199 main ()
14202 char *dummy = bfd_errmsg(bfd_get_error());
14205 return 0;
14208 _ACEOF
14209 if ac_fn_c_try_link "$LINENO"; then :
14211 result=yes
14212 BFD_CPPFLAGS="-DHAVE_BFD"
14213 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
14214 LIBS="$mule_backup_LIBS"
14215 LDFLAGS="$mule_backup_LDFLAGS"
14216 break
14219 rm -f core conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
14221 LIBS="$mule_backup_LIBS"
14222 LDFLAGS="$mule_backup_LDFLAGS"
14223 done
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14226 $as_echo "$result" >&6; }
14228 if test $result = no; then :
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14230 bfd.h not found or unusable, please install binutils development
14231 package if you are a developer or want to help testing aMule" >&5
14232 $as_echo "$as_me: WARNING:
14233 bfd.h not found or unusable, please install binutils development
14234 package if you are a developer or want to help testing aMule" >&2;}
14235 _mule_warning_10=yes
14236 _mule_has_warnings=yes
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
14243 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14248 #include <execinfo.h>
14251 main ()
14254 void *bt[1];
14255 int n = backtrace(&bt, 1);
14256 const char **bt_syms = backtrace_symbols(bt, n);
14259 return 0;
14262 _ACEOF
14263 if ac_fn_c_try_link "$LINENO"; then :
14266 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14269 $as_echo "yes" >&6; }
14271 else
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14274 $as_echo "no" >&6; }
14277 rm -f core conftest.err conftest.$ac_objext \
14278 conftest$ac_exeext conftest.$ac_ext
14281 # Flush standard test results for speeding cache
14282 cat >confcache <<\_ACEOF
14283 # This file is a shell script that caches the results of configure
14284 # tests run on this system so they can be shared between configure
14285 # scripts and configure runs, see configure's option --config-cache.
14286 # It is not useful on other systems. If it contains results you don't
14287 # want to keep, you may remove or edit it.
14289 # config.status only pays attention to the cache file if you give it
14290 # the --recheck option to rerun configure.
14292 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14293 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14294 # following values.
14296 _ACEOF
14298 # The following way of writing the cache mishandles newlines in values,
14299 # but we know of no workaround that is simple, portable, and efficient.
14300 # So, we kill variables containing newlines.
14301 # Ultrix sh set writes to stderr and can't be redirected directly,
14302 # and sets the high bit in the cache file unless we assign to the vars.
14304 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14305 eval ac_val=\$$ac_var
14306 case $ac_val in #(
14307 *${as_nl}*)
14308 case $ac_var in #(
14309 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14310 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14311 esac
14312 case $ac_var in #(
14313 _ | IFS | as_nl) ;; #(
14314 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14315 *) { eval $ac_var=; unset $ac_var;} ;;
14316 esac ;;
14317 esac
14318 done
14320 (set) 2>&1 |
14321 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14322 *${as_nl}ac_space=\ *)
14323 # `set' does not quote correctly, so add quotes: double-quote
14324 # substitution turns \\\\ into \\, and sed turns \\ into \.
14325 sed -n \
14326 "s/'/'\\\\''/g;
14327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14328 ;; #(
14330 # `set' quotes correctly as required by POSIX, so do not add quotes.
14331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14333 esac |
14334 sort
14336 sed '
14337 /^ac_cv_env_/b end
14338 t clear
14339 :clear
14340 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14341 t end
14342 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14343 :end' >>confcache
14344 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14345 if test -w "$cache_file"; then
14346 test "x$cache_file" != "x/dev/null" &&
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14348 $as_echo "$as_me: updating cache $cache_file" >&6;}
14349 cat confcache >$cache_file
14350 else
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14352 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14355 rm -f confcache
14357 # Other tests
14359 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
14361 $as_echo_n "checking for docdir... " >&6; }
14362 if test -z "$docdir"; then :
14363 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
14366 $as_echo "$docdir" >&6; }
14368 # Try to set the SVN checkout-date
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
14370 $as_echo_n "checking for SVNDATE... " >&6; }
14371 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
14372 then
14373 svndate="rev. `cat $srcdir/.svn-revision`"
14374 elif test -d $srcdir/.svn # SVNDATE for svn
14375 then
14376 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
14379 $as_echo "${svndate:-None required}" >&6; }
14380 if test -n "$svndate"; then :
14383 cat >>confdefs.h <<_ACEOF
14384 #define SVNDATE "$svndate"
14385 _ACEOF
14387 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
14390 SVNDATE=$svndate
14394 # Check whether --with-denoise-level was given.
14395 if test "${with_denoise_level+set}" = set; then :
14396 withval=$with_denoise_level;
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
14401 $as_echo_n "checking denoising level... " >&6; }
14402 if test ${with_denoise_level:-5} = yes; then :
14403 with_denoise_level=5
14405 if test ${with_denoise_level:-5} = no; then :
14406 with_denoise_level=0
14408 if test ${with_denoise_level:-5} -gt 4; then :
14409 if test "${svndate:+set}" = "set"; then :
14410 with_denoise_level=0
14411 else
14412 with_denoise_level=4
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
14416 $as_echo "$with_denoise_level" >&6; }
14418 ac_config_commands="$ac_config_commands denoiser"
14422 if test ${enable_plasmamule:-no} = yes; then :
14425 if test -z ${QT_MOC}; then :
14427 for ac_prog in moc-qt4 moc
14429 # Extract the first word of "$ac_prog", so it can be a program name with args.
14430 set dummy $ac_prog; ac_word=$2
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14432 $as_echo_n "checking for $ac_word... " >&6; }
14433 if test "${ac_cv_path_QT_MOC+set}" = set; then :
14434 $as_echo_n "(cached) " >&6
14435 else
14436 case $QT_MOC in
14437 [\\/]* | ?:[\\/]*)
14438 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14444 IFS=$as_save_IFS
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14448 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
14449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 break 2
14452 done
14453 done
14454 IFS=$as_save_IFS
14457 esac
14459 QT_MOC=$ac_cv_path_QT_MOC
14460 if test -n "$QT_MOC"; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
14462 $as_echo "$QT_MOC" >&6; }
14463 else
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 $as_echo "no" >&6; }
14469 test -n "$QT_MOC" && break
14470 done
14472 if test -z ${QT_MOC}; then :
14474 echo moc not found
14475 exit 1
14479 else
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
14482 $as_echo_n "checking for moc... " >&6; }
14483 if test -x ${QT_MOC}; then :
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
14486 $as_echo "${QT_MOC}" >&6; }
14489 else
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
14492 $as_echo "\"not found\"" >&6; }
14493 QT_MOC="not found"
14494 exit 1
14501 if test "${QT_MOC}" != "not found"; then :
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
14504 $as_echo_n "checking for moc version >= 4... " >&6; }
14505 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
14506 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
14509 $as_echo "found ${QT_MOC_VERSION}" >&6; }
14511 else
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
14514 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
14515 QT_MOC="not found"
14516 exit 1
14522 if test "${QT_MOC}" = "not found"; then :
14523 enable_plasmamule=disabled
14526 if test ${enable_plasmamule:-no} = yes; then :
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
14531 $as_echo_n "checking for qt... " >&6; }
14532 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14535 $as_echo "found" >&6; }
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
14537 $as_echo_n "checking for qt core cflags... " >&6; }
14538 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
14540 $as_echo "$QT_CORE_CFLAGS" >&6; }
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
14542 $as_echo_n "checking for qt core libs... " >&6; }
14543 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
14545 $as_echo "$QT_CORE_LIBS" >&6; }
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
14547 $as_echo_n "checking for qt gui cflags... " >&6; }
14548 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
14550 $as_echo "$QT_GUI_CFLAGS" >&6; }
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
14552 $as_echo_n "checking for qt gui libs... " >&6; }
14553 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
14555 $as_echo "$QT_GUI_LIBS" >&6; }
14557 else
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14559 $as_echo "not found" >&6; }
14560 exit 1
14564 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
14566 QT_DBUS_LDFLAGS="-lQtDBus"
14576 if test -z "${QT_CORE_CXXFLAGS}"; then :
14577 enable_plasmamule=disabled
14582 if test ${enable_plasmamule:-no} = yes; then :
14585 if test -z ${KDE4_CONFIG}; then :
14587 # Extract the first word of "kde4-config", so it can be a program name with args.
14588 set dummy kde4-config; ac_word=$2
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14590 $as_echo_n "checking for $ac_word... " >&6; }
14591 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
14592 $as_echo_n "(cached) " >&6
14593 else
14594 case $KDE4_CONFIG in
14595 [\\/]* | ?:[\\/]*)
14596 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
14599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14600 for as_dir in $PATH
14602 IFS=$as_save_IFS
14603 test -z "$as_dir" && as_dir=.
14604 for ac_exec_ext in '' $ac_executable_extensions; do
14605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14606 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14608 break 2
14610 done
14611 done
14612 IFS=$as_save_IFS
14615 esac
14617 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
14618 if test -n "$KDE4_CONFIG"; then
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
14620 $as_echo "$KDE4_CONFIG" >&6; }
14621 else
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14623 $as_echo "no" >&6; }
14628 else
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
14631 $as_echo_n "checking for kde4-config... " >&6; }
14632 if test ! -x KDE4_CONFIG; then :
14634 KDE4_CONFIG="not found"
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14636 $as_echo "not found" >&6; }
14637 exit 1
14643 if test "${KDE4_CONFIG}" != "not found"; then :
14645 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
14646 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
14649 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
14651 else
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
14654 $as_echo "at least version 4 required" >&6; }
14655 exit 1
14659 else
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14662 $as_echo "not found" >&6; }
14663 exit 1
14668 if test "${KDE4_CONFIG}" = "not found"; then :
14669 enable_plasmamule=disabled
14674 if test ${enable_plasmamule:-no} = yes; then :
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
14678 $as_echo_n "checking for kde4 headers... " >&6; }
14679 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
14681 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
14683 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
14686 $as_echo "${KDE_HEADER_DIR}" >&6; }
14688 else
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
14691 $as_echo "dataengine.h not found" >&6; }
14692 exit 1
14696 else
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
14699 $as_echo "kdirwatch.h not found" >&6; }
14700 exit 1
14705 if test -z ${KDE_HEADER_DIR}; then :
14706 enable_plasmamule=disabled
14711 if test ${enable_plasmamule:-no} = yes; then :
14713 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
14714 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
14719 $as_echo_n "checking for kde4 applinks Path... " >&6; }
14720 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14722 KDE_IN_HOME="yes"
14725 if test ${KDE_IN_HOME} = "yes"; then :
14727 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14729 else
14731 if test -n ${prefix}; then :
14733 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
14734 if test -n ${KDE_APPLNK_PATH}; then :
14736 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14740 else
14742 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
14748 $as_echo "${KDE_APPLNK_PATH}" >&6; }
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
14754 $as_echo_n "checking for kde4 services Path... " >&6; }
14755 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14757 KDE_IN_HOME="yes"
14760 if test ${KDE_IN_HOME} = "yes"; then :
14762 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14764 else
14766 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
14770 $as_echo "${KDE_SERVICE_PATH}" >&6; }
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
14776 $as_echo_n "checking for kde4 plugins Path... " >&6; }
14777 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14779 KDE_IN_HOME="yes"
14782 if test ${KDE_IN_HOME} = "yes"; then :
14784 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14786 else
14788 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
14792 $as_echo "${KDE_MODULE_PATH}" >&6; }
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
14798 $as_echo_n "checking for kde4 icons Path... " >&6; }
14799 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14801 KDE_IN_HOME="yes"
14804 if test ${KDE_IN_HOME} = "yes"; then :
14806 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14808 else
14810 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
14813 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
14815 $as_echo "${KDE_ICON_PATH}" >&6; }
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
14821 $as_echo_n "checking for location for mime-type installation... " >&6; }
14822 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14824 KDE_IN_HOME="yes"
14827 if test ${KDE_IN_HOME} = "yes"; then :
14829 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14831 else
14833 if test -n ${prefix}; then :
14835 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
14836 if test -n ${KDE_MIME_PATH}; then :
14838 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14842 else
14844 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
14850 $as_echo "${KDE_MIME_PATH}" >&6; }
14854 else
14855 enable_plasmamule=disabled
14860 if test ${enable_debug:-yes} = yes; then :
14862 DEBUGFLAG="-D__DEBUG__"
14869 if test x$SYS = xwin32; then
14870 SYS_WIN32_TRUE=
14871 SYS_WIN32_FALSE='#'
14872 else
14873 SYS_WIN32_TRUE='#'
14874 SYS_WIN32_FALSE=
14877 if test x$SYS = xwin32 -a "$RC" != ":"; then
14878 NEED_RC_TRUE=
14879 NEED_RC_FALSE='#'
14880 else
14881 NEED_RC_TRUE='#'
14882 NEED_RC_FALSE=
14885 if test x$SYS = xdarwin; then
14886 NEED_CORESERVICES_TRUE=
14887 NEED_CORESERVICES_FALSE='#'
14888 else
14889 NEED_CORESERVICES_TRUE='#'
14890 NEED_CORESERVICES_FALSE=
14893 if test x$USE_NLS = xyes; then
14894 COMPILE_NLS_TRUE=
14895 COMPILE_NLS_FALSE='#'
14896 else
14897 COMPILE_NLS_TRUE='#'
14898 COMPILE_NLS_FALSE=
14901 if test x$HAVE_FLEX_EXTENDED = xyes; then
14902 GENERATE_FLEX_HEADER_TRUE=
14903 GENERATE_FLEX_HEADER_FALSE='#'
14904 else
14905 GENERATE_FLEX_HEADER_TRUE='#'
14906 GENERATE_FLEX_HEADER_FALSE=
14909 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
14910 INSTALL_SKINS_TRUE=
14911 INSTALL_SKINS_FALSE='#'
14912 else
14913 INSTALL_SKINS_TRUE='#'
14914 INSTALL_SKINS_FALSE=
14917 if test ${enable_plasmamule:-no} = yes; then
14918 PLASMAMULE_TRUE=
14919 PLASMAMULE_FALSE='#'
14920 else
14921 PLASMAMULE_TRUE='#'
14922 PLASMAMULE_FALSE=
14926 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
14927 COMPILE_LIB_COMMON_TRUE=
14928 COMPILE_LIB_COMMON_FALSE='#'
14929 else
14930 COMPILE_LIB_COMMON_TRUE='#'
14931 COMPILE_LIB_COMMON_FALSE=
14934 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
14935 COMPILE_LIB_EC_TRUE=
14936 COMPILE_LIB_EC_FALSE='#'
14937 else
14938 COMPILE_LIB_EC_TRUE='#'
14939 COMPILE_LIB_EC_FALSE=
14943 # Check for readline library
14944 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14947 $as_echo_n "checking for a readline compatible library... " >&6; }
14948 if test "${vl_cv_lib_readline+set}" = set; then :
14949 $as_echo_n "(cached) " >&6
14950 else
14952 ORIG_LIBS="$LIBS"
14953 for readline_lib in readline edit editline; do
14954 for termcap_lib in "" termcap curses ncurses; do
14955 if test -z "$termcap_lib"; then
14956 TRY_LIB="-l$readline_lib"
14957 else
14958 TRY_LIB="-l$readline_lib -l$termcap_lib"
14960 LIBS="$ORIG_LIBS $TRY_LIB"
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14964 /* Override any GCC internal prototype to avoid an error.
14965 Use char because int might match the return type of a GCC
14966 builtin and then its argument prototype would still apply. */
14967 #ifdef __cplusplus
14968 extern "C"
14969 #endif
14970 char readline ();
14972 main ()
14974 return readline ();
14976 return 0;
14978 _ACEOF
14979 if ac_fn_c_try_link "$LINENO"; then :
14980 vl_cv_lib_readline="$TRY_LIB"
14982 rm -f core conftest.err conftest.$ac_objext \
14983 conftest$ac_exeext conftest.$ac_ext
14984 if test -n "$vl_cv_lib_readline"; then
14985 break
14987 done
14988 if test -n "$vl_cv_lib_readline"; then
14989 break
14991 done
14992 if test -z "$vl_cv_lib_readline"; then
14993 vl_cv_lib_readline="no"
14994 LIBS="$ORIG_LIBS"
14995 READLINE_LIBS=""
14996 else
14997 READLINE_LIBS="$vl_cv_lib_readline"
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
15002 $as_echo "$vl_cv_lib_readline" >&6; }
15004 if test "$vl_cv_lib_readline" != "no"; then
15006 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15008 for ac_header in readline.h readline/readline.h
15009 do :
15010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15011 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15012 eval as_val=\$$as_ac_Header
15013 if test "x$as_val" = x""yes; then :
15014 cat >>confdefs.h <<_ACEOF
15015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15016 _ACEOF
15020 done
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15023 $as_echo_n "checking whether readline supports history... " >&6; }
15024 if test "${vl_cv_lib_readline_history+set}" = set; then :
15025 $as_echo_n "(cached) " >&6
15026 else
15028 vl_cv_lib_readline_history="no"
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15032 /* Override any GCC internal prototype to avoid an error.
15033 Use char because int might match the return type of a GCC
15034 builtin and then its argument prototype would still apply. */
15035 #ifdef __cplusplus
15036 extern "C"
15037 #endif
15038 char add_history ();
15040 main ()
15042 return add_history ();
15044 return 0;
15046 _ACEOF
15047 if ac_fn_c_try_link "$LINENO"; then :
15048 vl_cv_lib_readline_history="yes"
15050 rm -f core conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
15055 $as_echo "$vl_cv_lib_readline_history" >&6; }
15056 if test "$vl_cv_lib_readline_history" = "yes"; then
15058 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15060 for ac_header in history.h readline/history.h
15061 do :
15062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15063 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15064 eval as_val=\$$as_ac_Header
15065 if test "x$as_val" = x""yes; then :
15066 cat >>confdefs.h <<_ACEOF
15067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15068 _ACEOF
15072 done
15077 LIBS="$ORIG_LIBS"
15081 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15084 # Check whether --enable-ccache was given.
15085 if test "${enable_ccache+set}" = set; then :
15086 enableval=$enable_ccache;
15092 # Check whether --with-ccache-prefix was given.
15093 if test "${with_ccache_prefix+set}" = set; then :
15094 withval=$with_ccache_prefix;
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
15099 $as_echo_n "checking whether ccache support should be added... " >&6; }
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15101 $as_echo "${enable_ccache:-no}" >&6; }
15103 if test ${enable_ccache:-no} = yes; then :
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
15106 $as_echo_n "checking for ccache presence... " >&6; }
15107 if test -z "$with_ccache_prefix"; then :
15109 ccache_full=`which ccache`
15110 with_ccache_prefix=`dirname ${ccache_full}`
15113 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
15115 CC="$with_ccache_prefix/ccache $CC"
15116 CXX="$with_ccache_prefix/ccache $CXX"
15117 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
15119 else
15120 enable_ccache=no
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15123 $as_echo "${enable_ccache:-no}" >&6; }
15128 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile 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"
15130 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
15132 if test x$SYS = xwin32; then :
15133 ac_config_files="$ac_config_files version.rc"
15136 cat >confcache <<\_ACEOF
15137 # This file is a shell script that caches the results of configure
15138 # tests run on this system so they can be shared between configure
15139 # scripts and configure runs, see configure's option --config-cache.
15140 # It is not useful on other systems. If it contains results you don't
15141 # want to keep, you may remove or edit it.
15143 # config.status only pays attention to the cache file if you give it
15144 # the --recheck option to rerun configure.
15146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15148 # following values.
15150 _ACEOF
15152 # The following way of writing the cache mishandles newlines in values,
15153 # but we know of no workaround that is simple, portable, and efficient.
15154 # So, we kill variables containing newlines.
15155 # Ultrix sh set writes to stderr and can't be redirected directly,
15156 # and sets the high bit in the cache file unless we assign to the vars.
15158 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15159 eval ac_val=\$$ac_var
15160 case $ac_val in #(
15161 *${as_nl}*)
15162 case $ac_var in #(
15163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15165 esac
15166 case $ac_var in #(
15167 _ | IFS | as_nl) ;; #(
15168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15169 *) { eval $ac_var=; unset $ac_var;} ;;
15170 esac ;;
15171 esac
15172 done
15174 (set) 2>&1 |
15175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15176 *${as_nl}ac_space=\ *)
15177 # `set' does not quote correctly, so add quotes: double-quote
15178 # substitution turns \\\\ into \\, and sed turns \\ into \.
15179 sed -n \
15180 "s/'/'\\\\''/g;
15181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15182 ;; #(
15184 # `set' quotes correctly as required by POSIX, so do not add quotes.
15185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15187 esac |
15188 sort
15190 sed '
15191 /^ac_cv_env_/b end
15192 t clear
15193 :clear
15194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15195 t end
15196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15197 :end' >>confcache
15198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15199 if test -w "$cache_file"; then
15200 test "x$cache_file" != "x/dev/null" &&
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15202 $as_echo "$as_me: updating cache $cache_file" >&6;}
15203 cat confcache >$cache_file
15204 else
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15206 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15209 rm -f confcache
15211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15212 # Let make expand exec_prefix.
15213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15215 DEFS=-DHAVE_CONFIG_H
15217 ac_libobjs=
15218 ac_ltlibobjs=
15219 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15220 # 1. Remove the extension, and $U if already installed.
15221 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15222 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15223 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15224 # will be set to the directory where LIBOBJS objects are built.
15225 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15226 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15227 done
15228 LIBOBJS=$ac_libobjs
15230 LTLIBOBJS=$ac_ltlibobjs
15233 if test -n "$EXEEXT"; then
15234 am__EXEEXT_TRUE=
15235 am__EXEEXT_FALSE='#'
15236 else
15237 am__EXEEXT_TRUE='#'
15238 am__EXEEXT_FALSE=
15241 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15242 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15245 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15246 as_fn_error "conditional \"AMDEP\" was never defined.
15247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15249 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15250 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15253 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15254 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15257 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
15258 as_fn_error "conditional \"MONOLITHIC\" was never defined.
15259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15261 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
15262 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
15263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15265 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
15266 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
15267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15269 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
15270 as_fn_error "conditional \"WEB\" was never defined.
15271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15273 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
15274 as_fn_error "conditional \"AMULE_GUI\" was never defined.
15275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15277 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
15278 as_fn_error "conditional \"CAS\" was never defined.
15279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15281 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
15282 as_fn_error "conditional \"WXCAS\" was never defined.
15283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15285 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
15286 as_fn_error "conditional \"ED2K\" was never defined.
15287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15289 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
15290 as_fn_error "conditional \"ALC\" was never defined.
15291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15293 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
15294 as_fn_error "conditional \"ALCC\" was never defined.
15295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15297 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
15298 as_fn_error "conditional \"XAS\" was never defined.
15299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15301 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
15302 as_fn_error "conditional \"FILEVIEW\" was never defined.
15303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15305 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
15306 as_fn_error "conditional \"SYS_WIN32\" was never defined.
15307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15309 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
15310 as_fn_error "conditional \"NEED_RC\" was never defined.
15311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15313 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
15314 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
15315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15317 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
15318 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
15319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15321 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
15322 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
15323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15325 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
15326 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
15327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15329 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
15330 as_fn_error "conditional \"PLASMAMULE\" was never defined.
15331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15333 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
15334 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
15335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15337 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
15338 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
15339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15342 : ${CONFIG_STATUS=./config.status}
15343 ac_write_fail=0
15344 ac_clean_files_save=$ac_clean_files
15345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15347 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15348 as_write_fail=0
15349 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15350 #! $SHELL
15351 # Generated by $as_me.
15352 # Run this file to recreate the current configuration.
15353 # Compiler output produced by configure, useful for debugging
15354 # configure, is in config.log if it exists.
15356 debug=false
15357 ac_cs_recheck=false
15358 ac_cs_silent=false
15360 SHELL=\${CONFIG_SHELL-$SHELL}
15361 export SHELL
15362 _ASEOF
15363 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15364 ## -------------------- ##
15365 ## M4sh Initialization. ##
15366 ## -------------------- ##
15368 # Be more Bourne compatible
15369 DUALCASE=1; export DUALCASE # for MKS sh
15370 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15371 emulate sh
15372 NULLCMD=:
15373 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15374 # is contrary to our usage. Disable this feature.
15375 alias -g '${1+"$@"}'='"$@"'
15376 setopt NO_GLOB_SUBST
15377 else
15378 case `(set -o) 2>/dev/null` in #(
15379 *posix*) :
15380 set -o posix ;; #(
15381 *) :
15383 esac
15387 as_nl='
15389 export as_nl
15390 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15391 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15392 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15394 # Prefer a ksh shell builtin over an external printf program on Solaris,
15395 # but without wasting forks for bash or zsh.
15396 if test -z "$BASH_VERSION$ZSH_VERSION" \
15397 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15398 as_echo='print -r --'
15399 as_echo_n='print -rn --'
15400 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15401 as_echo='printf %s\n'
15402 as_echo_n='printf %s'
15403 else
15404 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15405 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15406 as_echo_n='/usr/ucb/echo -n'
15407 else
15408 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15409 as_echo_n_body='eval
15410 arg=$1;
15411 case $arg in #(
15412 *"$as_nl"*)
15413 expr "X$arg" : "X\\(.*\\)$as_nl";
15414 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15415 esac;
15416 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15418 export as_echo_n_body
15419 as_echo_n='sh -c $as_echo_n_body as_echo'
15421 export as_echo_body
15422 as_echo='sh -c $as_echo_body as_echo'
15425 # The user is always right.
15426 if test "${PATH_SEPARATOR+set}" != set; then
15427 PATH_SEPARATOR=:
15428 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15429 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15430 PATH_SEPARATOR=';'
15435 # IFS
15436 # We need space, tab and new line, in precisely that order. Quoting is
15437 # there to prevent editors from complaining about space-tab.
15438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15439 # splitting by setting IFS to empty value.)
15440 IFS=" "" $as_nl"
15442 # Find who we are. Look in the path if we contain no directory separator.
15443 case $0 in #((
15444 *[\\/]* ) as_myself=$0 ;;
15445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15446 for as_dir in $PATH
15448 IFS=$as_save_IFS
15449 test -z "$as_dir" && as_dir=.
15450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15451 done
15452 IFS=$as_save_IFS
15455 esac
15456 # We did not find ourselves, most probably we were run as `sh COMMAND'
15457 # in which case we are not to be found in the path.
15458 if test "x$as_myself" = x; then
15459 as_myself=$0
15461 if test ! -f "$as_myself"; then
15462 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15463 exit 1
15466 # Unset variables that we do not need and which cause bugs (e.g. in
15467 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15468 # suppresses any "Segmentation fault" message there. '((' could
15469 # trigger a bug in pdksh 5.2.14.
15470 for as_var in BASH_ENV ENV MAIL MAILPATH
15471 do eval test x\${$as_var+set} = xset \
15472 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15473 done
15474 PS1='$ '
15475 PS2='> '
15476 PS4='+ '
15478 # NLS nuisances.
15479 LC_ALL=C
15480 export LC_ALL
15481 LANGUAGE=C
15482 export LANGUAGE
15484 # CDPATH.
15485 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15488 # as_fn_error ERROR [LINENO LOG_FD]
15489 # ---------------------------------
15490 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15491 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15492 # script with status $?, using 1 if that was 0.
15493 as_fn_error ()
15495 as_status=$?; test $as_status -eq 0 && as_status=1
15496 if test "$3"; then
15497 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15498 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15500 $as_echo "$as_me: error: $1" >&2
15501 as_fn_exit $as_status
15502 } # as_fn_error
15505 # as_fn_set_status STATUS
15506 # -----------------------
15507 # Set $? to STATUS, without forking.
15508 as_fn_set_status ()
15510 return $1
15511 } # as_fn_set_status
15513 # as_fn_exit STATUS
15514 # -----------------
15515 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15516 as_fn_exit ()
15518 set +e
15519 as_fn_set_status $1
15520 exit $1
15521 } # as_fn_exit
15523 # as_fn_unset VAR
15524 # ---------------
15525 # Portably unset VAR.
15526 as_fn_unset ()
15528 { eval $1=; unset $1;}
15530 as_unset=as_fn_unset
15531 # as_fn_append VAR VALUE
15532 # ----------------------
15533 # Append the text in VALUE to the end of the definition contained in VAR. Take
15534 # advantage of any shell optimizations that allow amortized linear growth over
15535 # repeated appends, instead of the typical quadratic growth present in naive
15536 # implementations.
15537 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15538 eval 'as_fn_append ()
15540 eval $1+=\$2
15542 else
15543 as_fn_append ()
15545 eval $1=\$$1\$2
15547 fi # as_fn_append
15549 # as_fn_arith ARG...
15550 # ------------------
15551 # Perform arithmetic evaluation on the ARGs, and store the result in the
15552 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15553 # must be portable across $(()) and expr.
15554 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15555 eval 'as_fn_arith ()
15557 as_val=$(( $* ))
15559 else
15560 as_fn_arith ()
15562 as_val=`expr "$@" || test $? -eq 1`
15564 fi # as_fn_arith
15567 if expr a : '\(a\)' >/dev/null 2>&1 &&
15568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15569 as_expr=expr
15570 else
15571 as_expr=false
15574 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15575 as_basename=basename
15576 else
15577 as_basename=false
15580 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15581 as_dirname=dirname
15582 else
15583 as_dirname=false
15586 as_me=`$as_basename -- "$0" ||
15587 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15588 X"$0" : 'X\(//\)$' \| \
15589 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15590 $as_echo X/"$0" |
15591 sed '/^.*\/\([^/][^/]*\)\/*$/{
15592 s//\1/
15595 /^X\/\(\/\/\)$/{
15596 s//\1/
15599 /^X\/\(\/\).*/{
15600 s//\1/
15603 s/.*/./; q'`
15605 # Avoid depending upon Character Ranges.
15606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15609 as_cr_digits='0123456789'
15610 as_cr_alnum=$as_cr_Letters$as_cr_digits
15612 ECHO_C= ECHO_N= ECHO_T=
15613 case `echo -n x` in #(((((
15614 -n*)
15615 case `echo 'xy\c'` in
15616 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15617 xy) ECHO_C='\c';;
15618 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15619 ECHO_T=' ';;
15620 esac;;
15622 ECHO_N='-n';;
15623 esac
15625 rm -f conf$$ conf$$.exe conf$$.file
15626 if test -d conf$$.dir; then
15627 rm -f conf$$.dir/conf$$.file
15628 else
15629 rm -f conf$$.dir
15630 mkdir conf$$.dir 2>/dev/null
15632 if (echo >conf$$.file) 2>/dev/null; then
15633 if ln -s conf$$.file conf$$ 2>/dev/null; then
15634 as_ln_s='ln -s'
15635 # ... but there are two gotchas:
15636 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15637 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15638 # In both cases, we have to default to `cp -p'.
15639 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15640 as_ln_s='cp -p'
15641 elif ln conf$$.file conf$$ 2>/dev/null; then
15642 as_ln_s=ln
15643 else
15644 as_ln_s='cp -p'
15646 else
15647 as_ln_s='cp -p'
15649 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15650 rmdir conf$$.dir 2>/dev/null
15653 # as_fn_mkdir_p
15654 # -------------
15655 # Create "$as_dir" as a directory, including parents if necessary.
15656 as_fn_mkdir_p ()
15659 case $as_dir in #(
15660 -*) as_dir=./$as_dir;;
15661 esac
15662 test -d "$as_dir" || eval $as_mkdir_p || {
15663 as_dirs=
15664 while :; do
15665 case $as_dir in #(
15666 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15667 *) as_qdir=$as_dir;;
15668 esac
15669 as_dirs="'$as_qdir' $as_dirs"
15670 as_dir=`$as_dirname -- "$as_dir" ||
15671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15672 X"$as_dir" : 'X\(//\)[^/]' \| \
15673 X"$as_dir" : 'X\(//\)$' \| \
15674 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15675 $as_echo X"$as_dir" |
15676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15677 s//\1/
15680 /^X\(\/\/\)[^/].*/{
15681 s//\1/
15684 /^X\(\/\/\)$/{
15685 s//\1/
15688 /^X\(\/\).*/{
15689 s//\1/
15692 s/.*/./; q'`
15693 test -d "$as_dir" && break
15694 done
15695 test -z "$as_dirs" || eval "mkdir $as_dirs"
15696 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15699 } # as_fn_mkdir_p
15700 if mkdir -p . 2>/dev/null; then
15701 as_mkdir_p='mkdir -p "$as_dir"'
15702 else
15703 test -d ./-p && rmdir ./-p
15704 as_mkdir_p=false
15707 if test -x / >/dev/null 2>&1; then
15708 as_test_x='test -x'
15709 else
15710 if ls -dL / >/dev/null 2>&1; then
15711 as_ls_L_option=L
15712 else
15713 as_ls_L_option=
15715 as_test_x='
15716 eval sh -c '\''
15717 if test -d "$1"; then
15718 test -d "$1/.";
15719 else
15720 case $1 in #(
15721 -*)set "./$1";;
15722 esac;
15723 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15724 ???[sx]*):;;*)false;;esac;fi
15725 '\'' sh
15728 as_executable_p=$as_test_x
15730 # Sed expression to map a string onto a valid CPP name.
15731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15733 # Sed expression to map a string onto a valid variable name.
15734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15737 exec 6>&1
15738 ## ----------------------------------- ##
15739 ## Main body of $CONFIG_STATUS script. ##
15740 ## ----------------------------------- ##
15741 _ASEOF
15742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15745 # Save the log message, to keep $0 and so on meaningful, and to
15746 # report actual input values of CONFIG_FILES etc. instead of their
15747 # values after options handling.
15748 ac_log="
15749 This file was extended by aMule $as_me SVN, which was
15750 generated by GNU Autoconf 2.65. Invocation command line was
15752 CONFIG_FILES = $CONFIG_FILES
15753 CONFIG_HEADERS = $CONFIG_HEADERS
15754 CONFIG_LINKS = $CONFIG_LINKS
15755 CONFIG_COMMANDS = $CONFIG_COMMANDS
15756 $ $0 $@
15758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15761 _ACEOF
15763 case $ac_config_files in *"
15764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15765 esac
15767 case $ac_config_headers in *"
15768 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15769 esac
15772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15773 # Files that config.status was made for.
15774 config_files="$ac_config_files"
15775 config_headers="$ac_config_headers"
15776 config_commands="$ac_config_commands"
15778 _ACEOF
15780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15781 ac_cs_usage="\
15782 \`$as_me' instantiates files and other configuration actions
15783 from templates according to the current configuration. Unless the files
15784 and actions are specified as TAGs, all are instantiated by default.
15786 Usage: $0 [OPTION]... [TAG]...
15788 -h, --help print this help, then exit
15789 -V, --version print version number and configuration settings, then exit
15790 --config print configuration, then exit
15791 -q, --quiet, --silent
15792 do not print progress messages
15793 -d, --debug don't remove temporary files
15794 --recheck update $as_me by reconfiguring in the same conditions
15795 --file=FILE[:TEMPLATE]
15796 instantiate the configuration file FILE
15797 --header=FILE[:TEMPLATE]
15798 instantiate the configuration header FILE
15800 Configuration files:
15801 $config_files
15803 Configuration headers:
15804 $config_headers
15806 Configuration commands:
15807 $config_commands
15809 Report bugs to <admin@amule.org>."
15811 _ACEOF
15812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15813 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15814 ac_cs_version="\\
15815 aMule config.status SVN
15816 configured by $0, generated by GNU Autoconf 2.65,
15817 with options \\"\$ac_cs_config\\"
15819 Copyright (C) 2009 Free Software Foundation, Inc.
15820 This config.status script is free software; the Free Software Foundation
15821 gives unlimited permission to copy, distribute and modify it."
15823 ac_pwd='$ac_pwd'
15824 srcdir='$srcdir'
15825 INSTALL='$INSTALL'
15826 MKDIR_P='$MKDIR_P'
15827 AWK='$AWK'
15828 test -n "\$AWK" || AWK=awk
15829 _ACEOF
15831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15832 # The default lists apply if the user does not specify any file.
15833 ac_need_defaults=:
15834 while test $# != 0
15836 case $1 in
15837 --*=*)
15838 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15839 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15840 ac_shift=:
15843 ac_option=$1
15844 ac_optarg=$2
15845 ac_shift=shift
15847 esac
15849 case $ac_option in
15850 # Handling of the options.
15851 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15852 ac_cs_recheck=: ;;
15853 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15854 $as_echo "$ac_cs_version"; exit ;;
15855 --config | --confi | --conf | --con | --co | --c )
15856 $as_echo "$ac_cs_config"; exit ;;
15857 --debug | --debu | --deb | --de | --d | -d )
15858 debug=: ;;
15859 --file | --fil | --fi | --f )
15860 $ac_shift
15861 case $ac_optarg in
15862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15863 esac
15864 as_fn_append CONFIG_FILES " '$ac_optarg'"
15865 ac_need_defaults=false;;
15866 --header | --heade | --head | --hea )
15867 $ac_shift
15868 case $ac_optarg in
15869 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15870 esac
15871 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15872 ac_need_defaults=false;;
15873 --he | --h)
15874 # Conflict between --help and --header
15875 as_fn_error "ambiguous option: \`$1'
15876 Try \`$0 --help' for more information.";;
15877 --help | --hel | -h )
15878 $as_echo "$ac_cs_usage"; exit ;;
15879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15880 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15881 ac_cs_silent=: ;;
15883 # This is an error.
15884 -*) as_fn_error "unrecognized option: \`$1'
15885 Try \`$0 --help' for more information." ;;
15887 *) as_fn_append ac_config_targets " $1"
15888 ac_need_defaults=false ;;
15890 esac
15891 shift
15892 done
15894 ac_configure_extra_args=
15896 if $ac_cs_silent; then
15897 exec 6>/dev/null
15898 ac_configure_extra_args="$ac_configure_extra_args --silent"
15901 _ACEOF
15902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15903 if \$ac_cs_recheck; then
15904 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15905 shift
15906 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15907 CONFIG_SHELL='$SHELL'
15908 export CONFIG_SHELL
15909 exec "\$@"
15912 _ACEOF
15913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15914 exec 5>>config.log
15916 echo
15917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15918 ## Running $as_me. ##
15919 _ASBOX
15920 $as_echo "$ac_log"
15921 } >&5
15923 _ACEOF
15924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15926 # INIT-COMMANDS
15928 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15929 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15930 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15931 # from automake.
15932 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
15933 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15934 LINGUAS="${LINGUAS-%UNSET%}"
15936 denoiserlevel=$with_denoise_level
15938 _ACEOF
15940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15942 # Handling of arguments.
15943 for ac_config_target in $ac_config_targets
15945 case $ac_config_target in
15946 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15947 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15948 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15949 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
15950 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15951 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15952 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
15953 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
15954 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15955 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
15956 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
15957 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
15958 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
15959 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
15960 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
15961 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
15962 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
15963 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
15964 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
15965 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
15966 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
15967 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
15968 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
15969 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
15970 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
15971 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
15972 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
15973 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
15974 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
15975 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
15976 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
15977 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
15978 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
15979 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
15980 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
15981 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
15982 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15983 "Compilation.flags") CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
15984 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
15986 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15987 esac
15988 done
15991 # If the user did not use the arguments to specify the items to instantiate,
15992 # then the envvar interface is used. Set only those that are not.
15993 # We use the long form for the default assignment because of an extremely
15994 # bizarre bug on SunOS 4.1.3.
15995 if $ac_need_defaults; then
15996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16001 # Have a temporary directory for convenience. Make it in the build tree
16002 # simply because there is no reason against having it here, and in addition,
16003 # creating and moving files from /tmp can sometimes cause problems.
16004 # Hook for its removal unless debugging.
16005 # Note that there is a small window in which the directory will not be cleaned:
16006 # after its creation but before its name has been assigned to `$tmp'.
16007 $debug ||
16009 tmp=
16010 trap 'exit_status=$?
16011 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16013 trap 'as_fn_exit 1' 1 2 13 15
16015 # Create a (secure) tmp directory for tmp files.
16018 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16019 test -n "$tmp" && test -d "$tmp"
16020 } ||
16022 tmp=./conf$$-$RANDOM
16023 (umask 077 && mkdir "$tmp")
16024 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16026 # Set up the scripts for CONFIG_FILES section.
16027 # No need to generate them if there are no CONFIG_FILES.
16028 # This happens for instance with `./config.status config.h'.
16029 if test -n "$CONFIG_FILES"; then
16032 ac_cr=`echo X | tr X '\015'`
16033 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16034 # But we know of no other shell where ac_cr would be empty at this
16035 # point, so we can use a bashism as a fallback.
16036 if test "x$ac_cr" = x; then
16037 eval ac_cr=\$\'\\r\'
16039 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16040 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16041 ac_cs_awk_cr='\r'
16042 else
16043 ac_cs_awk_cr=$ac_cr
16046 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16047 _ACEOF
16051 echo "cat >conf$$subs.awk <<_ACEOF" &&
16052 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16053 echo "_ACEOF"
16054 } >conf$$subs.sh ||
16055 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16056 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16057 ac_delim='%!_!# '
16058 for ac_last_try in false false false false false :; do
16059 . ./conf$$subs.sh ||
16060 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16062 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16063 if test $ac_delim_n = $ac_delim_num; then
16064 break
16065 elif $ac_last_try; then
16066 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16067 else
16068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16070 done
16071 rm -f conf$$subs.sh
16073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16074 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16075 _ACEOF
16076 sed -n '
16078 s/^/S["/; s/!.*/"]=/
16081 s/^[^!]*!//
16082 :repl
16083 t repl
16084 s/'"$ac_delim"'$//
16085 t delim
16088 s/\(.\{148\}\)..*/\1/
16089 t more1
16090 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16093 b repl
16094 :more1
16095 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16098 s/.\{148\}//
16099 t nl
16100 :delim
16102 s/\(.\{148\}\)..*/\1/
16103 t more2
16104 s/["\\]/\\&/g; s/^/"/; s/$/"/
16107 :more2
16108 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16111 s/.\{148\}//
16112 t delim
16113 ' <conf$$subs.awk | sed '
16114 /^[^""]/{
16116 s/\n//
16118 ' >>$CONFIG_STATUS || ac_write_fail=1
16119 rm -f conf$$subs.awk
16120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16121 _ACAWK
16122 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16123 for (key in S) S_is_set[key] = 1
16124 FS = "\a"
16128 line = $ 0
16129 nfields = split(line, field, "@")
16130 substed = 0
16131 len = length(field[1])
16132 for (i = 2; i < nfields; i++) {
16133 key = field[i]
16134 keylen = length(key)
16135 if (S_is_set[key]) {
16136 value = S[key]
16137 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16138 len += length(value) + length(field[++i])
16139 substed = 1
16140 } else
16141 len += 1 + keylen
16144 print line
16147 _ACAWK
16148 _ACEOF
16149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16150 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16151 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16152 else
16154 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16155 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16156 _ACEOF
16158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16160 # trailing colons and then remove the whole line if VPATH becomes empty
16161 # (actually we leave an empty line to preserve line numbers).
16162 if test "x$srcdir" = x.; then
16163 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16164 s/:*\$(srcdir):*/:/
16165 s/:*\${srcdir}:*/:/
16166 s/:*@srcdir@:*/:/
16167 s/^\([^=]*=[ ]*\):*/\1/
16168 s/:*$//
16169 s/^[^=]*=[ ]*$//
16173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16174 fi # test -n "$CONFIG_FILES"
16176 # Set up the scripts for CONFIG_HEADERS section.
16177 # No need to generate them if there are no CONFIG_HEADERS.
16178 # This happens for instance with `./config.status Makefile'.
16179 if test -n "$CONFIG_HEADERS"; then
16180 cat >"$tmp/defines.awk" <<\_ACAWK ||
16181 BEGIN {
16182 _ACEOF
16184 # Transform confdefs.h into an awk script `defines.awk', embedded as
16185 # here-document in config.status, that substitutes the proper values into
16186 # config.h.in to produce config.h.
16188 # Create a delimiter string that does not exist in confdefs.h, to ease
16189 # handling of long lines.
16190 ac_delim='%!_!# '
16191 for ac_last_try in false false :; do
16192 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16193 if test -z "$ac_t"; then
16194 break
16195 elif $ac_last_try; then
16196 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16197 else
16198 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16200 done
16202 # For the awk script, D is an array of macro values keyed by name,
16203 # likewise P contains macro parameters if any. Preserve backslash
16204 # newline sequences.
16206 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16207 sed -n '
16208 s/.\{148\}/&'"$ac_delim"'/g
16209 t rset
16210 :rset
16211 s/^[ ]*#[ ]*define[ ][ ]*/ /
16212 t def
16214 :def
16215 s/\\$//
16216 t bsnl
16217 s/["\\]/\\&/g
16218 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16219 D["\1"]=" \3"/p
16220 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16222 :bsnl
16223 s/["\\]/\\&/g
16224 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16225 D["\1"]=" \3\\\\\\n"\\/p
16226 t cont
16227 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16228 t cont
16230 :cont
16232 s/.\{148\}/&'"$ac_delim"'/g
16233 t clear
16234 :clear
16235 s/\\$//
16236 t bsnlc
16237 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16239 :bsnlc
16240 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16241 b cont
16242 ' <confdefs.h | sed '
16243 s/'"$ac_delim"'/"\\\
16244 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 for (key in D) D_is_set[key] = 1
16248 FS = "\a"
16250 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16251 line = \$ 0
16252 split(line, arg, " ")
16253 if (arg[1] == "#") {
16254 defundef = arg[2]
16255 mac1 = arg[3]
16256 } else {
16257 defundef = substr(arg[1], 2)
16258 mac1 = arg[2]
16260 split(mac1, mac2, "(") #)
16261 macro = mac2[1]
16262 prefix = substr(line, 1, index(line, defundef) - 1)
16263 if (D_is_set[macro]) {
16264 # Preserve the white space surrounding the "#".
16265 print prefix "define", macro P[macro] D[macro]
16266 next
16267 } else {
16268 # Replace #undef with comments. This is necessary, for example,
16269 # in the case of _POSIX_SOURCE, which is predefined and required
16270 # on some systems where configure will not decide to define it.
16271 if (defundef == "undef") {
16272 print "/*", prefix defundef, macro, "*/"
16273 next
16277 { print }
16278 _ACAWK
16279 _ACEOF
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16282 fi # test -n "$CONFIG_HEADERS"
16285 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16286 shift
16287 for ac_tag
16289 case $ac_tag in
16290 :[FHLC]) ac_mode=$ac_tag; continue;;
16291 esac
16292 case $ac_mode$ac_tag in
16293 :[FHL]*:*);;
16294 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16295 :[FH]-) ac_tag=-:-;;
16296 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16297 esac
16298 ac_save_IFS=$IFS
16299 IFS=:
16300 set x $ac_tag
16301 IFS=$ac_save_IFS
16302 shift
16303 ac_file=$1
16304 shift
16306 case $ac_mode in
16307 :L) ac_source=$1;;
16308 :[FH])
16309 ac_file_inputs=
16310 for ac_f
16312 case $ac_f in
16313 -) ac_f="$tmp/stdin";;
16314 *) # Look for the file first in the build tree, then in the source tree
16315 # (if the path is not absolute). The absolute path cannot be DOS-style,
16316 # because $ac_f cannot contain `:'.
16317 test -f "$ac_f" ||
16318 case $ac_f in
16319 [\\/$]*) false;;
16320 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16321 esac ||
16322 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16323 esac
16324 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16325 as_fn_append ac_file_inputs " '$ac_f'"
16326 done
16328 # Let's still pretend it is `configure' which instantiates (i.e., don't
16329 # use $as_me), people would be surprised to read:
16330 # /* config.h. Generated by config.status. */
16331 configure_input='Generated from '`
16332 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16333 `' by configure.'
16334 if test x"$ac_file" != x-; then
16335 configure_input="$ac_file. $configure_input"
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16337 $as_echo "$as_me: creating $ac_file" >&6;}
16339 # Neutralize special characters interpreted by sed in replacement strings.
16340 case $configure_input in #(
16341 *\&* | *\|* | *\\* )
16342 ac_sed_conf_input=`$as_echo "$configure_input" |
16343 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16344 *) ac_sed_conf_input=$configure_input;;
16345 esac
16347 case $ac_tag in
16348 *:-:* | *:-) cat >"$tmp/stdin" \
16349 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16350 esac
16352 esac
16354 ac_dir=`$as_dirname -- "$ac_file" ||
16355 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16356 X"$ac_file" : 'X\(//\)[^/]' \| \
16357 X"$ac_file" : 'X\(//\)$' \| \
16358 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16359 $as_echo X"$ac_file" |
16360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16361 s//\1/
16364 /^X\(\/\/\)[^/].*/{
16365 s//\1/
16368 /^X\(\/\/\)$/{
16369 s//\1/
16372 /^X\(\/\).*/{
16373 s//\1/
16376 s/.*/./; q'`
16377 as_dir="$ac_dir"; as_fn_mkdir_p
16378 ac_builddir=.
16380 case "$ac_dir" in
16381 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16383 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16384 # A ".." for each directory in $ac_dir_suffix.
16385 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16386 case $ac_top_builddir_sub in
16387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16389 esac ;;
16390 esac
16391 ac_abs_top_builddir=$ac_pwd
16392 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16393 # for backward compatibility:
16394 ac_top_builddir=$ac_top_build_prefix
16396 case $srcdir in
16397 .) # We are building in place.
16398 ac_srcdir=.
16399 ac_top_srcdir=$ac_top_builddir_sub
16400 ac_abs_top_srcdir=$ac_pwd ;;
16401 [\\/]* | ?:[\\/]* ) # Absolute name.
16402 ac_srcdir=$srcdir$ac_dir_suffix;
16403 ac_top_srcdir=$srcdir
16404 ac_abs_top_srcdir=$srcdir ;;
16405 *) # Relative name.
16406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16407 ac_top_srcdir=$ac_top_build_prefix$srcdir
16408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16409 esac
16410 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16413 case $ac_mode in
16416 # CONFIG_FILE
16419 case $INSTALL in
16420 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16421 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16422 esac
16423 ac_MKDIR_P=$MKDIR_P
16424 case $MKDIR_P in
16425 [\\/$]* | ?:[\\/]* ) ;;
16426 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16427 esac
16428 _ACEOF
16430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16431 # If the template does not know about datarootdir, expand it.
16432 # FIXME: This hack should be removed a few years after 2.60.
16433 ac_datarootdir_hack=; ac_datarootdir_seen=
16434 ac_sed_dataroot='
16435 /datarootdir/ {
16439 /@datadir@/p
16440 /@docdir@/p
16441 /@infodir@/p
16442 /@localedir@/p
16443 /@mandir@/p'
16444 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16445 *datarootdir*) ac_datarootdir_seen=yes;;
16446 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16448 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16449 _ACEOF
16450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16451 ac_datarootdir_hack='
16452 s&@datadir@&$datadir&g
16453 s&@docdir@&$docdir&g
16454 s&@infodir@&$infodir&g
16455 s&@localedir@&$localedir&g
16456 s&@mandir@&$mandir&g
16457 s&\\\${datarootdir}&$datarootdir&g' ;;
16458 esac
16459 _ACEOF
16461 # Neutralize VPATH when `$srcdir' = `.'.
16462 # Shell code in configure.ac might set extrasub.
16463 # FIXME: do we really want to maintain this feature?
16464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16465 ac_sed_extra="$ac_vpsub
16466 $extrasub
16467 _ACEOF
16468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16471 s|@configure_input@|$ac_sed_conf_input|;t t
16472 s&@top_builddir@&$ac_top_builddir_sub&;t t
16473 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16474 s&@srcdir@&$ac_srcdir&;t t
16475 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16476 s&@top_srcdir@&$ac_top_srcdir&;t t
16477 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16478 s&@builddir@&$ac_builddir&;t t
16479 s&@abs_builddir@&$ac_abs_builddir&;t t
16480 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16481 s&@INSTALL@&$ac_INSTALL&;t t
16482 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16483 $ac_datarootdir_hack
16485 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16486 || as_fn_error "could not create $ac_file" "$LINENO" 5
16488 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16489 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16490 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16492 which seems to be undefined. Please make sure it is defined." >&5
16493 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16494 which seems to be undefined. Please make sure it is defined." >&2;}
16496 rm -f "$tmp/stdin"
16497 case $ac_file in
16498 -) cat "$tmp/out" && rm -f "$tmp/out";;
16499 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16500 esac \
16501 || as_fn_error "could not create $ac_file" "$LINENO" 5
16505 # CONFIG_HEADER
16507 if test x"$ac_file" != x-; then
16509 $as_echo "/* $configure_input */" \
16510 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16511 } >"$tmp/config.h" \
16512 || as_fn_error "could not create $ac_file" "$LINENO" 5
16513 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16515 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16516 else
16517 rm -f "$ac_file"
16518 mv "$tmp/config.h" "$ac_file" \
16519 || as_fn_error "could not create $ac_file" "$LINENO" 5
16521 else
16522 $as_echo "/* $configure_input */" \
16523 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16524 || as_fn_error "could not create -" "$LINENO" 5
16526 # Compute "$ac_file"'s index in $config_headers.
16527 _am_arg="$ac_file"
16528 _am_stamp_count=1
16529 for _am_header in $config_headers :; do
16530 case $_am_header in
16531 $_am_arg | $_am_arg:* )
16532 break ;;
16534 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16535 esac
16536 done
16537 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16538 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16539 X"$_am_arg" : 'X\(//\)[^/]' \| \
16540 X"$_am_arg" : 'X\(//\)$' \| \
16541 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16542 $as_echo X"$_am_arg" |
16543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16544 s//\1/
16547 /^X\(\/\/\)[^/].*/{
16548 s//\1/
16551 /^X\(\/\/\)$/{
16552 s//\1/
16555 /^X\(\/\).*/{
16556 s//\1/
16559 s/.*/./; q'`/stamp-h$_am_stamp_count
16562 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16563 $as_echo "$as_me: executing $ac_file commands" >&6;}
16565 esac
16568 case $ac_file$ac_mode in
16569 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16570 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16571 # are listed without --file. Let's play safe and only enable the eval
16572 # if we detect the quoting.
16573 case $CONFIG_FILES in
16574 *\'*) eval set x "$CONFIG_FILES" ;;
16575 *) set x $CONFIG_FILES ;;
16576 esac
16577 shift
16578 for mf
16580 # Strip MF so we end up with the name of the file.
16581 mf=`echo "$mf" | sed -e 's/:.*$//'`
16582 # Check whether this is an Automake generated Makefile or not.
16583 # We used to match only the files named `Makefile.in', but
16584 # some people rename them; so instead we look at the file content.
16585 # Grep'ing the first line is not enough: some people post-process
16586 # each Makefile.in and add a new line on top of each file to say so.
16587 # Grep'ing the whole file is not good either: AIX grep has a line
16588 # limit of 2048, but all sed's we know have understand at least 4000.
16589 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16590 dirpart=`$as_dirname -- "$mf" ||
16591 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16592 X"$mf" : 'X\(//\)[^/]' \| \
16593 X"$mf" : 'X\(//\)$' \| \
16594 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16595 $as_echo X"$mf" |
16596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16597 s//\1/
16600 /^X\(\/\/\)[^/].*/{
16601 s//\1/
16604 /^X\(\/\/\)$/{
16605 s//\1/
16608 /^X\(\/\).*/{
16609 s//\1/
16612 s/.*/./; q'`
16613 else
16614 continue
16616 # Extract the definition of DEPDIR, am__include, and am__quote
16617 # from the Makefile without running `make'.
16618 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16619 test -z "$DEPDIR" && continue
16620 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16621 test -z "am__include" && continue
16622 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16623 # When using ansi2knr, U may be empty or an underscore; expand it
16624 U=`sed -n 's/^U = //p' < "$mf"`
16625 # Find all dependency output files, they are included files with
16626 # $(DEPDIR) in their names. We invoke sed twice because it is the
16627 # simplest approach to changing $(DEPDIR) to its actual value in the
16628 # expansion.
16629 for file in `sed -n "
16630 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16631 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16632 # Make sure the directory exists.
16633 test -f "$dirpart/$file" && continue
16634 fdir=`$as_dirname -- "$file" ||
16635 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16636 X"$file" : 'X\(//\)[^/]' \| \
16637 X"$file" : 'X\(//\)$' \| \
16638 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16639 $as_echo X"$file" |
16640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16641 s//\1/
16644 /^X\(\/\/\)[^/].*/{
16645 s//\1/
16648 /^X\(\/\/\)$/{
16649 s//\1/
16652 /^X\(\/\).*/{
16653 s//\1/
16656 s/.*/./; q'`
16657 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16658 # echo "creating $dirpart/$file"
16659 echo '# dummy' > "$dirpart/$file"
16660 done
16661 done
16664 "default-1":C)
16665 for ac_file in $CONFIG_FILES; do
16666 # Support "outfile[:infile[:infile...]]"
16667 case "$ac_file" in
16668 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16669 esac
16670 # PO directories have a Makefile.in generated from Makefile.in.in.
16671 case "$ac_file" in */Makefile.in)
16672 # Adjust a relative srcdir.
16673 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16674 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16675 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16676 # In autoconf-2.13 it is called $ac_given_srcdir.
16677 # In autoconf-2.50 it is called $srcdir.
16678 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16679 case "$ac_given_srcdir" in
16680 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16681 /*) top_srcdir="$ac_given_srcdir" ;;
16682 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16683 esac
16684 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16685 rm -f "$ac_dir/POTFILES"
16686 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16687 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16688 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16689 # on $ac_dir but don't depend on user-specified configuration
16690 # parameters.
16691 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16692 # The LINGUAS file contains the set of available languages.
16693 if test -n "$ALL_LINGUAS"; then
16694 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16696 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16697 # Hide the ALL_LINGUAS assigment from automake.
16698 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16700 case "$ac_given_srcdir" in
16701 .) srcdirpre= ;;
16702 *) srcdirpre='$(srcdir)/' ;;
16703 esac
16704 POFILES=
16705 GMOFILES=
16706 UPDATEPOFILES=
16707 DUMMYPOFILES=
16708 for lang in $ALL_LINGUAS; do
16709 POFILES="$POFILES $srcdirpre$lang.po"
16710 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16711 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16712 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16713 done
16714 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16715 # environment variable.
16716 INST_LINGUAS=
16717 if test -n "$ALL_LINGUAS"; then
16718 for presentlang in $ALL_LINGUAS; do
16719 useit=no
16720 if test "%UNSET%" != "$LINGUAS"; then
16721 desiredlanguages="$LINGUAS"
16722 else
16723 desiredlanguages="$ALL_LINGUAS"
16725 for desiredlang in $desiredlanguages; do
16726 # Use the presentlang catalog if desiredlang is
16727 # a. equal to presentlang, or
16728 # b. a variant of presentlang (because in this case,
16729 # presentlang can be used as a fallback for messages
16730 # which are not translated in the desiredlang catalog).
16731 case "$desiredlang" in
16732 "$presentlang"*) useit=yes;;
16733 esac
16734 done
16735 if test $useit = yes; then
16736 INST_LINGUAS="$INST_LINGUAS $presentlang"
16738 done
16740 CATALOGS=
16741 if test -n "$INST_LINGUAS"; then
16742 for lang in $INST_LINGUAS; do
16743 CATALOGS="$CATALOGS $lang.gmo"
16744 done
16746 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16747 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"
16748 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16749 if test -f "$f"; then
16750 case "$f" in
16751 *.orig | *.bak | *~) ;;
16752 *) cat "$f" >> "$ac_dir/Makefile" ;;
16753 esac
16755 done
16758 esac
16759 done ;;
16760 "denoiser":C) if test $denoiserlevel -gt 0; then
16761 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
16762 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" \
16763 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
16764 for i in `find . -name 'Makefile' -print`; do
16765 if test -n "`head -n 1 $i | grep '^#'`"; then
16766 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
16768 done
16769 fi ;;
16771 esac
16772 done # for ac_tag
16775 as_fn_exit 0
16776 _ACEOF
16777 ac_clean_files=$ac_clean_files_save
16779 test $ac_write_fail = 0 ||
16780 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16783 # configure is writing to config.log, and then calls config.status.
16784 # config.status does its own redirection, appending to config.log.
16785 # Unfortunately, on DOS this fails, as config.log is still kept open
16786 # by configure, so config.status won't be able to write to it; its
16787 # output is simply discarded. So we exec the FD to /dev/null,
16788 # effectively closing config.log, so it can be properly (re)opened and
16789 # appended to by config.status. When coming back to configure, we
16790 # need to make the FD available again.
16791 if test "$no_create" != yes; then
16792 ac_cs_success=:
16793 ac_config_status_args=
16794 test "$silent" = yes &&
16795 ac_config_status_args="$ac_config_status_args --quiet"
16796 exec 5>/dev/null
16797 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16798 exec 5>>config.log
16799 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16800 # would make configure fail if this is the last instruction.
16801 $ac_cs_success || as_fn_exit $?
16803 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16805 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16809 if test -n "$svndate"; then :
16810 SVN_REVISION=" ($svndate)"
16811 else
16812 SVN_REVISION=
16815 echo
16816 echo
16817 echo " Configure script has finished system check."
16818 echo
16819 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
16820 echo
16821 echo " aMule enabled options:"
16822 echo
16823 echo " **** aMule Core ****"
16824 echo " Prefix where aMule should be installed? ${prefix:-none}"
16825 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
16826 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
16827 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
16828 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
16829 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
16830 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
16831 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
16832 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
16833 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
16834 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
16836 echo
16837 echo " **** aMule TextClient ****"
16838 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
16839 echo
16840 echo " **** aMule WebServer ****"
16841 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
16842 echo
16843 echo " **** aMule ED2K Links Handler ****"
16844 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
16845 echo
16846 echo " **** aMuleLinkCreator ****"
16847 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
16848 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
16849 echo
16850 echo " **** aMule Statistics ****"
16851 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
16852 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
16853 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
16854 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
16856 echo
16857 echo " **** General Libraries and Tools ****"
16858 echo " Should ccache support be enabled? ${enable_ccache:-no}"
16859 echo " Libraries aMule will use to build:"
16860 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 :
16862 wxinfo="$WX_PORT"
16863 if test $WX_DEBUG -eq 1; then :
16864 wxinfo="$wxinfo,debug"
16866 if test $WX_SHARED -eq 1; then :
16867 wxinfo="$wxinfo,shared"
16868 else
16869 wxinfo="$wxinfo,static"
16871 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
16874 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
16875 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
16877 if test ${enable_upnp:-yes} = yes; then :
16879 if test -n "$with_libupnp_prefix"; then :
16880 libupnp_place=" (in $with_libupnp_prefix)"
16882 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
16885 if test ${enable_nls:-yes} = yes; then
16886 if test x$USE_NLS = xno; then :
16887 libintl_found="Not detected"
16888 else
16889 if test x$USE_INCLUDED_LIBINTL = xyes; then :
16890 libintl_found="included"
16891 else
16892 libintl_found="system"
16895 echo " libintl $libintl_found"
16897 if test ${enable_geoip:-no} = yes; then :
16898 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
16899 geoip_style=system
16900 else
16901 geoip_style=user
16903 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
16904 echo " libGeoIP ${geoip_style}"
16907 if test ${enable_webserver:-no} = yes; then :
16908 echo " libpng ${LIBPNG_VERSION:-Not detected}"
16910 if test ${enable_cas:-no} = yes; then :
16911 echo " libgd ${GDLIB_VERSION:-Not detected}"
16913 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 :
16914 echo " zlib ${ZLIB_VERSION:-Not detected}"
16916 if test ${enable_plasmamule:-no} = yes; then :
16917 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
16918 echo " qt-core-libs ${QT_CORE_LIBS}"
16919 echo " qt-gui-libs ${QT_GUI_LIBS}"
16920 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
16921 echo " kde-headers ${KDE_HEADER_DIR}"
16922 echo " kde-services-path ${KDE_SERVICE_PATH}"
16923 echo " kde-module-path ${KDE_MODULE_PATH}"
16924 echo " kde-icon-path ${KDE_ICON_PATH}"
16925 echo " kde-mime-path ${KDE_MIME_PATH}"
16926 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
16929 if test ${_mule_has_warnings:-no} = yes; then
16930 echo ""
16931 echo ""
16932 echo " *** Warnings during configuration ***"
16934 if test ${_mule_warning_0:-no} = yes; then
16935 cat <<_MULEEOT
16937 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
16938 Please check that gdlib-config is in your default path, check out
16939 LD_LIBRARY_PATH or equivalent variable.
16940 Or this might also be that your gdlib-config has other name.
16941 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
16942 /usr/bin/gdlib-config with a valid path to your gdlib-config).
16943 If you use compiled packages check if you have devel pack installed.
16944 To download the latest version check http://www.boutell.com/gd for sources.
16945 _MULEEOT
16947 if test ${_mule_warning_1:-no} = yes; then
16948 cat <<_MULEEOT
16950 * libpng >= 1.2.0 not found.
16951 amuleweb will be compiled but file download progress bar images will NOT be
16952 generated.
16953 _MULEEOT
16955 if test ${_mule_warning_2:-no} = yes; then
16956 cat <<_MULEEOT
16958 * File::Copy perl module is required by the mldonkey_importer script.
16959 If you want to use this script please install File::Copy from CPAN.
16960 _MULEEOT
16962 if test ${_mule_warning_3:-no} = yes; then
16963 cat <<_MULEEOT
16965 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
16966 _MULEEOT
16968 if test ${_mule_warning_4:-no} = yes; then
16969 cat <<_MULEEOT
16971 * GeoIP support has been disabled because the GeoIP libraries were not found
16972 _MULEEOT
16974 if test ${_mule_warning_5:-no} = yes; then
16975 cat <<_MULEEOT
16977 * GeoIP support has been disabled because the GeoIP header files were not
16978 found
16979 _MULEEOT
16981 if test ${_mule_warning_6:-no} = yes; then
16982 cat <<_MULEEOT
16984 * UPnP code has been disabled because ${libupnp_error}.
16985 _MULEEOT
16987 if test ${_mule_warning_7:-no} = yes; then
16988 cat <<_MULEEOT
16990 * Cross-compilation detected, so exception handling cannot be tested.
16991 Note that broken exception handling in your compiler may lead to unexpected
16992 crashes.
16993 _MULEEOT
16995 if test ${_mule_warning_8:-no} = yes; then
16996 cat <<_MULEEOT
16998 * configure cannot check whether malloc() and realloc() are GNU libc
16999 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17000 configure with the --without-gnu-malloc switch.
17001 _MULEEOT
17003 if test ${_mule_warning_9:-no} = yes; then
17004 cat <<_MULEEOT
17006 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17007 support.
17008 _MULEEOT
17010 if test ${_mule_warning_10:-no} = yes; then
17011 cat <<_MULEEOT
17013 * bfd.h not found or unusable, please install binutils development package if
17014 you are a developer or want to help testing aMule
17015 _MULEEOT