Fix compilation using C++17
[amule.git] / configure
blob6a55d0f62505aa3e3d3ce36c6c2396fd1e7840a3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='aMule'
582 PACKAGE_TARNAME='amule'
583 PACKAGE_VERSION='SVN'
584 PACKAGE_STRING='aMule SVN'
585 PACKAGE_BUGREPORT='admin@amule.org'
586 PACKAGE_URL=''
588 ac_unique_file="src/amule.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_header_list=
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 COMPILE_LIB_EC_FALSE
630 COMPILE_LIB_EC_TRUE
631 COMPILE_LIB_COMMON_FALSE
632 COMPILE_LIB_COMMON_TRUE
633 PLASMAMULE_FALSE
634 PLASMAMULE_TRUE
635 INSTALL_SKINS_FALSE
636 INSTALL_SKINS_TRUE
637 COMPILE_NLS_FALSE
638 COMPILE_NLS_TRUE
639 NEED_CORESERVICES_FALSE
640 NEED_CORESERVICES_TRUE
641 NEED_RC_FALSE
642 NEED_RC_TRUE
643 SYS_WIN32_FALSE
644 SYS_WIN32_TRUE
645 SVNDATE
646 READLINE_LIBS
647 DEBUGFLAG
648 KDE_MIME_PATH
649 KDE_ICON_PATH
650 KDE_MODULE_PATH
651 KDE_SERVICE_PATH
652 KDE_APPLNK_PATH
653 KDE_HEADER_DIR
654 KDE4_CONFIG
655 QT_GUI_LIBS
656 QT_GUI_CXXFLAGS
657 QT_CORE_LIBS
658 QT_CORE_CXXFLAGS
659 QT_DBUS_LDFLAGS
660 QT_MOC
661 BFD_LIBS
662 BFD_CPPFLAGS
663 INCINTL
664 MONOLITHIC_MANPAGES
665 ALCC_MANPAGES
666 ALC_MANPAGES
667 ED2K_MANPAGES
668 WXCAS_MANPAGES
669 CAS_MANPAGES
670 AMULE_GUI_MANPAGES
671 WEBSERVER_MANPAGES
672 AMULECMD_MANPAGES
673 AMULE_DAEMON_MANPAGES
674 POSUB
675 LTLIBINTL
676 LIBINTL
677 INTLLIBS
678 INTL_LIBTOOL_SUFFIX_PREFIX
679 GENCAT
680 INSTOBJEXT
681 DATADIRNAME
682 INTLOBJS
683 CATOBJEXT
684 USE_INCLUDED_LIBINTL
685 BUILD_INCLUDED_LIBINTL
686 USE_NLS
687 INTLBISON
688 LTLIBICONV
689 LIBICONV
690 GLIBC21
691 MSGMERGE
692 XGETTEXT
693 GMSGFMT
694 MSGFMT
695 MKINSTALLDIRS
696 POW_LIB
697 LIBOBJS
698 ALLOCA
699 BOOST_SYSTEM_LIBS
700 BOOST_LDPATH
701 BOOST_SYSTEM_LDPATH
702 BOOST_SYSTEM_LDFLAGS
703 BOOST_CPPFLAGS
704 DISTCHECK_CONFIGURE_FLAGS
705 BOOST_ROOT
706 CRYPTOPP_LIBS
707 CRYPTOPP_LDFLAGS
708 CRYPTOPP_CPPFLAGS
709 LIBUPNP_LIBS
710 LIBUPNP_LDFLAGS
711 LIBUPNP_CFLAGS
712 LIBUPNP_CPPFLAGS
713 RCFLAGS
715 WXBASE_CPPFLAGS
716 WXBASE_LIBS
717 WX_PORT
718 WX_SHARED
719 WX_DEBUG
720 WX_UNICODE
721 WX_VERSION_MICRO
722 WX_VERSION_MINOR
723 WX_VERSION_MAJOR
724 WX_RESCOMP
725 WX_VERSION
726 WX_LIBS_STATIC
727 WX_LIBS
728 WX_CXXFLAGS_ONLY
729 WX_CFLAGS_ONLY
730 WX_CXXFLAGS
731 WX_CFLAGS
732 WX_CPPFLAGS
733 WX_CONFIG_PATH
734 AMULEWEB_DEFS
735 LIBPNG_LIBS
736 LIBPNG_LDFLAGS
737 LIBPNG_CFLAGS
738 LIBPNG_CONFIG_PATH
739 ZLIB_LIBS
740 ZLIB_LDFLAGS
741 ZLIB_CPPFLAGS
742 CAS_DEFS
743 GDLIB_LIBS
744 GDLIB_LDFLAGS
745 GDLIB_CFLAGS
746 GDLIB_CONFIG_PATH
747 PKG_CONFIG
748 FILEVIEW_FALSE
749 FILEVIEW_TRUE
750 XAS_FALSE
751 XAS_TRUE
752 ALCC_FALSE
753 ALCC_TRUE
754 ALC_FALSE
755 ALC_TRUE
756 ED2K_FALSE
757 ED2K_TRUE
758 WXCAS_FALSE
759 WXCAS_TRUE
760 CAS_FALSE
761 CAS_TRUE
762 AMULE_GUI_FALSE
763 AMULE_GUI_TRUE
764 WEB_FALSE
765 WEB_TRUE
766 COMPILE_CMD_FALSE
767 COMPILE_CMD_TRUE
768 AMULE_DAEMON_FALSE
769 AMULE_DAEMON_TRUE
770 MONOLITHIC_FALSE
771 MONOLITHIC_TRUE
775 RANLIB
776 EGREP
777 GREP
778 BUILD_LDFLAGS
779 BUILD_CFLAGS
780 BUILD_CPPFLAGS
781 BUILD_EXEEXT
782 ac_ct_BUILD_CC
783 BUILD_CC
785 am__fastdepCC_FALSE
786 am__fastdepCC_TRUE
787 CCDEPMODE
788 ac_ct_CC
789 CFLAGS
791 CXXCPP
792 am__fastdepCXX_FALSE
793 am__fastdepCXX_TRUE
794 CXXDEPMODE
795 am__nodep
796 AMDEPBACKSLASH
797 AMDEP_FALSE
798 AMDEP_TRUE
799 am__quote
800 am__include
801 DEPDIR
802 OBJEXT
803 EXEEXT
804 ac_ct_CXX
805 CPPFLAGS
806 LDFLAGS
807 CXXFLAGS
809 MULERCFLAGS
810 MULELDFLAGS
811 MULECXXFLAGS
812 MULECFLAGS
813 MULECPPFLAGS
814 RESOLV_LIB
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 MAINT
824 MAINTAINER_MODE_FALSE
825 MAINTAINER_MODE_TRUE
826 AM_BACKSLASH
827 AM_DEFAULT_VERBOSITY
828 AM_DEFAULT_V
829 AM_V
830 am__untar
831 am__tar
832 AMTAR
833 am__leading_dot
834 SET_MAKE
836 mkdir_p
837 MKDIR_P
838 INSTALL_STRIP_PROGRAM
839 STRIP
840 install_sh
841 MAKEINFO
842 AUTOHEADER
843 AUTOMAKE
844 AUTOCONF
845 ACLOCAL
846 VERSION
847 PACKAGE
848 CYGPATH_W
849 am__isrc
850 INSTALL_DATA
851 INSTALL_SCRIPT
852 INSTALL_PROGRAM
853 target_alias
854 host_alias
855 build_alias
856 LIBS
857 ECHO_T
858 ECHO_N
859 ECHO_C
860 DEFS
861 mandir
862 localedir
863 libdir
864 psdir
865 pdfdir
866 dvidir
867 htmldir
868 infodir
869 docdir
870 oldincludedir
871 includedir
872 runstatedir
873 localstatedir
874 sharedstatedir
875 sysconfdir
876 datadir
877 datarootdir
878 libexecdir
879 sbindir
880 bindir
881 program_transform_name
882 prefix
883 exec_prefix
884 PACKAGE_URL
885 PACKAGE_BUGREPORT
886 PACKAGE_STRING
887 PACKAGE_VERSION
888 PACKAGE_TARNAME
889 PACKAGE_NAME
890 PATH_SEPARATOR
891 SHELL
892 GEOIP_LIBS
893 GEOIP_LDFLAGS
894 GEOIP_CPPFLAGS'
895 ac_subst_files=''
896 ac_user_opts='
897 enable_option_checking
898 enable_silent_rules
899 enable_maintainer_mode
900 enable_dependency_tracking
901 enable_monolithic
902 enable_amule_daemon
903 enable_amulecmd
904 enable_webserver
905 enable_amule_gui
906 enable_cas
907 enable_wxcas
908 enable_ed2k
909 enable_alc
910 enable_alcc
911 enable_xas
912 enable_fileview
913 enable_plasmamule
914 enable_static
915 with_kde4_config
916 enable_kde_in_home
917 with_moc
918 with_gnu_malloc
919 with_gdlib_prefix
920 with_gdlib_config
921 with_zlib
922 with_libpng_prefix
923 with_libpng_config
924 enable_geoip
925 with_geoip_headers
926 with_geoip_lib
927 with_geoip_static
928 with_wxdir
929 with_wx_config
930 with_wx_prefix
931 with_wx_exec_prefix
932 with_toolkit
933 with_wxshared
934 with_wxdebug
935 with_wxversion
936 enable_upnp
937 with_libupnp_prefix
938 with_crypto_prefix
939 enable_debug
940 enable_profile
941 enable_optimize
942 with_boost
943 enable_static_boost
944 enable_mmap
945 with_language
946 with_gnu_ld
947 enable_rpath
948 with_libiconv_prefix
949 enable_nls
950 with_included_gettext
951 with_libintl_prefix
952 with_denoise_level
953 enable_ccache
954 with_ccache_prefix
956 ac_precious_vars='build_alias
957 host_alias
958 target_alias
960 CXXFLAGS
961 LDFLAGS
962 LIBS
963 CPPFLAGS
965 CXXCPP
967 CFLAGS
969 PKG_CONFIG
971 RCFLAGS
972 BOOST_ROOT'
975 # Initialize some variables set by options.
976 ac_init_help=
977 ac_init_version=false
978 ac_unrecognized_opts=
979 ac_unrecognized_sep=
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
982 cache_file=/dev/null
983 exec_prefix=NONE
984 no_create=
985 no_recursion=
986 prefix=NONE
987 program_prefix=NONE
988 program_suffix=NONE
989 program_transform_name=s,x,x,
990 silent=
991 site=
992 srcdir=
993 verbose=
994 x_includes=NONE
995 x_libraries=NONE
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 runstatedir='${localstatedir}/run'
1012 includedir='${prefix}/include'
1013 oldincludedir='/usr/include'
1014 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1015 infodir='${datarootdir}/info'
1016 htmldir='${docdir}'
1017 dvidir='${docdir}'
1018 pdfdir='${docdir}'
1019 psdir='${docdir}'
1020 libdir='${exec_prefix}/lib'
1021 localedir='${datarootdir}/locale'
1022 mandir='${datarootdir}/man'
1024 ac_prev=
1025 ac_dashdash=
1026 for ac_option
1028 # If the previous option needs an argument, assign it.
1029 if test -n "$ac_prev"; then
1030 eval $ac_prev=\$ac_option
1031 ac_prev=
1032 continue
1035 case $ac_option in
1036 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1037 *=) ac_optarg= ;;
1038 *) ac_optarg=yes ;;
1039 esac
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1045 ac_dashdash=yes ;;
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048 ac_prev=bindir ;;
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1068 ac_prev=datadir ;;
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=no ;;
1095 -docdir | --docdir | --docdi | --doc | --do)
1096 ac_prev=docdir ;;
1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098 docdir=$ac_optarg ;;
1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101 ac_prev=dvidir ;;
1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103 dvidir=$ac_optarg ;;
1105 -enable-* | --enable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval enable_$ac_useropt=\$ac_optarg ;;
1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123 | --exec | --exe | --ex)
1124 ac_prev=exec_prefix ;;
1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127 | --exec=* | --exe=* | --ex=*)
1128 exec_prefix=$ac_optarg ;;
1130 -gas | --gas | --ga | --g)
1131 # Obsolete; use --with-gas.
1132 with_gas=yes ;;
1134 -help | --help | --hel | --he | -h)
1135 ac_init_help=long ;;
1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137 ac_init_help=recursive ;;
1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139 ac_init_help=short ;;
1141 -host | --host | --hos | --ho)
1142 ac_prev=host_alias ;;
1143 -host=* | --host=* | --hos=* | --ho=*)
1144 host_alias=$ac_optarg ;;
1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147 ac_prev=htmldir ;;
1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149 | --ht=*)
1150 htmldir=$ac_optarg ;;
1152 -includedir | --includedir | --includedi | --included | --include \
1153 | --includ | --inclu | --incl | --inc)
1154 ac_prev=includedir ;;
1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156 | --includ=* | --inclu=* | --incl=* | --inc=*)
1157 includedir=$ac_optarg ;;
1159 -infodir | --infodir | --infodi | --infod | --info | --inf)
1160 ac_prev=infodir ;;
1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162 infodir=$ac_optarg ;;
1164 -libdir | --libdir | --libdi | --libd)
1165 ac_prev=libdir ;;
1166 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167 libdir=$ac_optarg ;;
1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170 | --libexe | --libex | --libe)
1171 ac_prev=libexecdir ;;
1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173 | --libexe=* | --libex=* | --libe=*)
1174 libexecdir=$ac_optarg ;;
1176 -localedir | --localedir | --localedi | --localed | --locale)
1177 ac_prev=localedir ;;
1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179 localedir=$ac_optarg ;;
1181 -localstatedir | --localstatedir | --localstatedi | --localstated \
1182 | --localstate | --localstat | --localsta | --localst | --locals)
1183 ac_prev=localstatedir ;;
1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186 localstatedir=$ac_optarg ;;
1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189 ac_prev=mandir ;;
1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191 mandir=$ac_optarg ;;
1193 -nfp | --nfp | --nf)
1194 # Obsolete; use --without-fp.
1195 with_fp=no ;;
1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198 | --no-cr | --no-c | -n)
1199 no_create=yes ;;
1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203 no_recursion=yes ;;
1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207 | --oldin | --oldi | --old | --ol | --o)
1208 ac_prev=oldincludedir ;;
1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212 oldincludedir=$ac_optarg ;;
1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215 ac_prev=prefix ;;
1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217 prefix=$ac_optarg ;;
1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220 | --program-pre | --program-pr | --program-p)
1221 ac_prev=program_prefix ;;
1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224 program_prefix=$ac_optarg ;;
1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227 | --program-suf | --program-su | --program-s)
1228 ac_prev=program_suffix ;;
1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231 program_suffix=$ac_optarg ;;
1233 -program-transform-name | --program-transform-name \
1234 | --program-transform-nam | --program-transform-na \
1235 | --program-transform-n | --program-transform- \
1236 | --program-transform | --program-transfor \
1237 | --program-transfo | --program-transf \
1238 | --program-trans | --program-tran \
1239 | --progr-tra | --program-tr | --program-t)
1240 ac_prev=program_transform_name ;;
1241 -program-transform-name=* | --program-transform-name=* \
1242 | --program-transform-nam=* | --program-transform-na=* \
1243 | --program-transform-n=* | --program-transform-=* \
1244 | --program-transform=* | --program-transfor=* \
1245 | --program-transfo=* | --program-transf=* \
1246 | --program-trans=* | --program-tran=* \
1247 | --progr-tra=* | --program-tr=* | --program-t=*)
1248 program_transform_name=$ac_optarg ;;
1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251 ac_prev=pdfdir ;;
1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253 pdfdir=$ac_optarg ;;
1255 -psdir | --psdir | --psdi | --psd | --ps)
1256 ac_prev=psdir ;;
1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258 psdir=$ac_optarg ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1262 silent=yes ;;
1264 -runstatedir | --runstatedir | --runstatedi | --runstated \
1265 | --runstate | --runstat | --runsta | --runst | --runs \
1266 | --run | --ru | --r)
1267 ac_prev=runstatedir ;;
1268 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1269 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1270 | --run=* | --ru=* | --r=*)
1271 runstatedir=$ac_optarg ;;
1273 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274 ac_prev=sbindir ;;
1275 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276 | --sbi=* | --sb=*)
1277 sbindir=$ac_optarg ;;
1279 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281 | --sharedst | --shareds | --shared | --share | --shar \
1282 | --sha | --sh)
1283 ac_prev=sharedstatedir ;;
1284 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287 | --sha=* | --sh=*)
1288 sharedstatedir=$ac_optarg ;;
1290 -site | --site | --sit)
1291 ac_prev=site ;;
1292 -site=* | --site=* | --sit=*)
1293 site=$ac_optarg ;;
1295 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296 ac_prev=srcdir ;;
1297 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298 srcdir=$ac_optarg ;;
1300 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301 | --syscon | --sysco | --sysc | --sys | --sy)
1302 ac_prev=sysconfdir ;;
1303 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305 sysconfdir=$ac_optarg ;;
1307 -target | --target | --targe | --targ | --tar | --ta | --t)
1308 ac_prev=target_alias ;;
1309 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310 target_alias=$ac_optarg ;;
1312 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313 verbose=yes ;;
1315 -version | --version | --versio | --versi | --vers | -V)
1316 ac_init_version=: ;;
1318 -with-* | --with-*)
1319 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322 as_fn_error $? "invalid package name: $ac_useropt"
1323 ac_useropt_orig=$ac_useropt
1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1325 case $ac_user_opts in
1327 "with_$ac_useropt"
1328 "*) ;;
1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1330 ac_unrecognized_sep=', ';;
1331 esac
1332 eval with_$ac_useropt=\$ac_optarg ;;
1334 -without-* | --without-*)
1335 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338 as_fn_error $? "invalid package name: $ac_useropt"
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1343 "with_$ac_useropt"
1344 "*) ;;
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1347 esac
1348 eval with_$ac_useropt=no ;;
1350 --x)
1351 # Obsolete; use --with-x.
1352 with_x=yes ;;
1354 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355 | --x-incl | --x-inc | --x-in | --x-i)
1356 ac_prev=x_includes ;;
1357 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359 x_includes=$ac_optarg ;;
1361 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363 ac_prev=x_libraries ;;
1364 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366 x_libraries=$ac_optarg ;;
1368 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1369 Try \`$0 --help' for more information"
1372 *=*)
1373 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1374 # Reject names that are not valid shell variable names.
1375 case $ac_envvar in #(
1376 '' | [0-9]* | *[!_$as_cr_alnum]* )
1377 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1378 esac
1379 eval $ac_envvar=\$ac_optarg
1380 export $ac_envvar ;;
1383 # FIXME: should be removed in autoconf 3.0.
1384 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1390 esac
1391 done
1393 if test -n "$ac_prev"; then
1394 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395 as_fn_error $? "missing argument to $ac_option"
1398 if test -n "$ac_unrecognized_opts"; then
1399 case $enable_option_checking in
1400 no) ;;
1401 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1402 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1403 esac
1406 # Check all directory arguments for consistency.
1407 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408 datadir sysconfdir sharedstatedir localstatedir includedir \
1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410 libdir localedir mandir runstatedir
1412 eval ac_val=\$$ac_var
1413 # Remove trailing slashes.
1414 case $ac_val in
1415 */ )
1416 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417 eval $ac_var=\$ac_val;;
1418 esac
1419 # Be sure to have absolute directory names.
1420 case $ac_val in
1421 [\\/$]* | ?:[\\/]* ) continue;;
1422 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423 esac
1424 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1425 done
1427 # There might be people who depend on the old broken behavior: `$host'
1428 # used to hold the argument of --host etc.
1429 # FIXME: To remove some day.
1430 build=$build_alias
1431 host=$host_alias
1432 target=$target_alias
1434 # FIXME: To remove some day.
1435 if test "x$host_alias" != x; then
1436 if test "x$build_alias" = x; then
1437 cross_compiling=maybe
1438 elif test "x$build_alias" != "x$host_alias"; then
1439 cross_compiling=yes
1443 ac_tool_prefix=
1444 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1446 test "$silent" = yes && exec 6>/dev/null
1449 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1450 ac_ls_di=`ls -di .` &&
1451 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1452 as_fn_error $? "working directory cannot be determined"
1453 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454 as_fn_error $? "pwd does not report name of working directory"
1457 # Find the source files, if location was not specified.
1458 if test -z "$srcdir"; then
1459 ac_srcdir_defaulted=yes
1460 # Try the directory containing this script, then the parent directory.
1461 ac_confdir=`$as_dirname -- "$as_myself" ||
1462 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463 X"$as_myself" : 'X\(//\)[^/]' \| \
1464 X"$as_myself" : 'X\(//\)$' \| \
1465 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1466 $as_echo X"$as_myself" |
1467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 s//\1/
1471 /^X\(\/\/\)[^/].*/{
1472 s//\1/
1475 /^X\(\/\/\)$/{
1476 s//\1/
1479 /^X\(\/\).*/{
1480 s//\1/
1483 s/.*/./; q'`
1484 srcdir=$ac_confdir
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486 srcdir=..
1488 else
1489 ac_srcdir_defaulted=no
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1493 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1495 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1496 ac_abs_confdir=`(
1497 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1498 pwd)`
1499 # When building in place, set srcdir=.
1500 if test "$ac_abs_confdir" = "$ac_pwd"; then
1501 srcdir=.
1503 # Remove unnecessary trailing slashes from srcdir.
1504 # Double slashes in file names in object file debugging info
1505 # mess up M-x gdb in Emacs.
1506 case $srcdir in
1507 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508 esac
1509 for ac_var in $ac_precious_vars; do
1510 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_env_${ac_var}_value=\$${ac_var}
1512 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1513 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514 done
1517 # Report the --help message.
1519 if test "$ac_init_help" = "long"; then
1520 # Omit some internal or obsolete options to make the list less imposing.
1521 # This message is too long to be a string in the A/UX 3.1 sh.
1522 cat <<_ACEOF
1523 \`configure' configures aMule SVN to adapt to many kinds of systems.
1525 Usage: $0 [OPTION]... [VAR=VALUE]...
1527 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528 VAR=VALUE. See below for descriptions of some of the useful variables.
1530 Defaults for the options are specified in brackets.
1532 Configuration:
1533 -h, --help display this help and exit
1534 --help=short display options specific to this package
1535 --help=recursive display the short help of all the included packages
1536 -V, --version display version information and exit
1537 -q, --quiet, --silent do not print \`checking ...' messages
1538 --cache-file=FILE cache test results in FILE [disabled]
1539 -C, --config-cache alias for \`--cache-file=config.cache'
1540 -n, --no-create do not create output files
1541 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1543 Installation directories:
1544 --prefix=PREFIX install architecture-independent files in PREFIX
1545 [$ac_default_prefix]
1546 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1547 [PREFIX]
1549 By default, \`make install' will install all the files in
1550 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1551 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552 for instance \`--prefix=\$HOME'.
1554 For better control, use the options below.
1556 Fine tuning of the installation directories:
1557 --bindir=DIR user executables [EPREFIX/bin]
1558 --sbindir=DIR system admin executables [EPREFIX/sbin]
1559 --libexecdir=DIR program executables [EPREFIX/libexec]
1560 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1561 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1562 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1563 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1564 --libdir=DIR object code libraries [EPREFIX/lib]
1565 --includedir=DIR C header files [PREFIX/include]
1566 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1567 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1568 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1569 --infodir=DIR info documentation [DATAROOTDIR/info]
1570 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1571 --mandir=DIR man documentation [DATAROOTDIR/man]
1572 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1573 --htmldir=DIR html documentation [DOCDIR]
1574 --dvidir=DIR dvi documentation [DOCDIR]
1575 --pdfdir=DIR pdf documentation [DOCDIR]
1576 --psdir=DIR ps documentation [DOCDIR]
1577 _ACEOF
1579 cat <<\_ACEOF
1581 Program names:
1582 --program-prefix=PREFIX prepend PREFIX to installed program names
1583 --program-suffix=SUFFIX append SUFFIX to installed program names
1584 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1586 System types:
1587 --build=BUILD configure for building on BUILD [guessed]
1588 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1589 _ACEOF
1592 if test -n "$ac_init_help"; then
1593 case $ac_init_help in
1594 short | recursive ) echo "Configuration of aMule SVN:";;
1595 esac
1596 cat <<\_ACEOF
1598 Optional Features:
1599 --disable-option-checking ignore unrecognized --enable/--with options
1600 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1601 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1602 --enable-silent-rules less verbose build output (undo: "make V=1")
1603 --disable-silent-rules verbose build output (undo: "make V=0")
1604 --enable-maintainer-mode
1605 enable make rules and dependencies not useful (and
1606 sometimes confusing) to the casual installer
1607 --enable-dependency-tracking
1608 do not reject slow dependency extractors
1609 --disable-dependency-tracking
1610 speeds up one-time build
1611 --disable-monolithic disable building of the monolithic aMule app
1612 --enable-amule-daemon compile aMule daemon version
1613 --enable-amulecmd compile aMule command line client
1614 --enable-webserver compile aMule WebServer
1615 --enable-amule-gui compile aMule remote GUI
1616 --enable-cas compile C aMule Statistics
1617 --enable-wxcas compile aMule GUI Statistics
1618 --disable-ed2k don't compile aMule ed2k links handler
1619 --enable-alc compile aMuleLinkCreator GUI version
1620 --enable-alcc compile aMuleLinkCreator for console
1621 --enable-xas install xas XChat2 plugin
1622 --enable-fileview compile aMule file viewer for console
1623 --enable-plasmamule compile aMule plasma applet and engine
1624 --enable-static produce a statically linked executable
1625 --enable-kde-in-home install KDE related stuff in your home dir
1626 --enable-geoip compile with GeoIP IP2Country library
1627 --disable-upnp do not compile UPnP code
1628 --disable-debug disable additional debugging output
1629 --enable-profile enable code profiling
1630 --enable-optimize enable code optimization
1631 --enable-static-boost Prefer the static boost libraries over the shared
1632 ones [no]
1633 --enable-mmap enable using mapped memory if supported
1634 --disable-rpath do not hardcode runtime library paths
1635 --disable-nls do not use Native Language Support
1636 --enable-ccache enable ccache support for fast recompilation
1638 Optional Packages:
1639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1641 --with-kde4-config=PATH kde4-config script to use
1642 --with-moc=PATH Search in PATH for Qt's meta object compiler
1643 --without-gnu-malloc Don't assume that we use GNU libc compatible
1644 malloc/realloc when cross-compiling
1645 --with-gdlib-prefix=PREFIX
1646 prefix where gdlib is installed (optional)
1647 --with-gdlib-config=CONFIG
1648 gdlib-config script to use (optional)
1649 --with-zlib=PREFIX use zlib in PREFIX
1650 --with-libpng-prefix=PREFIX
1651 prefix where libpng is installed (optional)
1652 --with-libpng-config=CONFIG
1653 libpng-config script to use (optional)
1654 --with-geoip-headers=DIR
1655 GeoIP include files location
1656 --with-geoip-lib=DIR GeoIP library location
1657 --with-geoip-static Explicitly link GeoIP statically (default=no)
1658 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1659 --with-wx-config=CONFIG wx-config script to use (optional)
1660 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1661 --with-wx-exec-prefix=PREFIX
1662 Exec prefix where wxWidgets is installed (optional)
1663 --with-toolkit Build against a specific wxWidgets toolkit (default
1664 is auto)
1665 --with-wxshared Force building against a shared build of wxWidgets,
1666 even if --disable-shared is given (default is auto)
1667 --with-wxdebug Force building against a debug build of wxWidgets,
1668 even if --disable-debug is given (default is auto)
1669 --with-wxversion Build against a specific version of wxWidgets
1670 (default is auto)
1672 --with-libupnp-prefix=PREFIX
1673 UPnP library location
1674 --with-crypto-prefix=PREFIX
1675 prefix where crypto++ is installed
1676 --with-boost[=DIR] use Boost.Asio for networking
1677 --with-language=<langs> Specify a comma-separated list of languages you want
1678 to have installed. See po/LINGUAS for available
1679 languages
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1683 --with-included-gettext use the GNU gettext library included here
1684 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1685 --without-libintl-prefix don't search for libintl in includedir and libdir
1686 --with-denoise-level=<level>
1687 Specifies denoising level (0-4):
1688 0 - Do nothing
1689 4 - Suppress all normal output
1690 (for more information see
1691 src/utils/scripts/denoiser.rules)
1693 --with-ccache-prefix=PREFIX
1694 prefix where ccache is installed
1696 Some influential environment variables:
1697 CXX C++ compiler command
1698 CXXFLAGS C++ compiler flags
1699 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1700 nonstandard directory <lib dir>
1701 LIBS libraries to pass to the linker, e.g. -l<library>
1702 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1703 you have headers in a nonstandard directory <include dir>
1704 CXXCPP C++ preprocessor
1705 CC C compiler command
1706 CFLAGS C compiler flags
1707 CPP C preprocessor
1708 PKG_CONFIG path to pkg-config utility
1709 RC Resource Compiler
1710 RCFLAGS Resource Compiler Flags
1711 BOOST_ROOT Location of Boost installation
1713 Use these variables to override the choices made by `configure' or to help
1714 it to find libraries and programs with nonstandard names/locations.
1716 Report bugs to <admin@amule.org>.
1717 _ACEOF
1718 ac_status=$?
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726 continue
1727 ac_builddir=.
1729 case "$ac_dir" in
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738 esac ;;
1739 esac
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1745 case $srcdir in
1746 .) # We are building in place.
1747 ac_srcdir=.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1754 *) # Relative name.
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 esac
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1769 else
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 fi || ac_status=$?
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1773 done
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1778 cat <<\_ACEOF
1779 aMule configure SVN
1780 generated by GNU Autoconf 2.69
1782 Copyright (C) 2012 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1785 _ACEOF
1786 exit
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1793 # ac_fn_cxx_try_compile LINENO
1794 # ----------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_cxx_try_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_cxx_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=1
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_cxx_try_compile
1831 # ac_fn_cxx_try_cpp LINENO
1832 # ------------------------
1833 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_cpp ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 if { { ac_try="$ac_cpp conftest.$ac_ext"
1838 case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1845 ac_status=$?
1846 if test -s conftest.err; then
1847 grep -v '^ *+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } > conftest.i && {
1853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1854 test ! -s conftest.err
1855 }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1861 ac_retval=1
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1866 } # ac_fn_cxx_try_cpp
1868 # ac_fn_c_try_compile LINENO
1869 # --------------------------
1870 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_c_try_compile ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 rm -f conftest.$ac_objext
1875 if { { ac_try="$ac_compile"
1876 case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_compile") 2>conftest.err
1883 ac_status=$?
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && {
1891 test -z "$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 } && test -s conftest.$ac_objext; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=1
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_compile
1906 # ac_fn_c_try_cpp LINENO
1907 # ----------------------
1908 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_cpp ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if { { ac_try="$ac_cpp conftest.$ac_ext"
1913 case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1920 ac_status=$?
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } > conftest.i && {
1928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1929 test ! -s conftest.err
1930 }; then :
1931 ac_retval=0
1932 else
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1936 ac_retval=1
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1941 } # ac_fn_c_try_cpp
1943 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1946 # the include files in INCLUDES and setting the cache variable VAR
1947 # accordingly.
1948 ac_fn_c_check_header_mongrel ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if eval \${$3+:} false; then :
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 else
1961 # Is the header compilable?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1963 $as_echo_n "checking $2 usability... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1967 #include <$2>
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 ac_header_compiler=yes
1971 else
1972 ac_header_compiler=no
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1976 $as_echo "$ac_header_compiler" >&6; }
1978 # Is the header present?
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1980 $as_echo_n "checking $2 presence... " >&6; }
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 #include <$2>
1984 _ACEOF
1985 if ac_fn_c_try_cpp "$LINENO"; then :
1986 ac_header_preproc=yes
1987 else
1988 ac_header_preproc=no
1990 rm -f conftest.err conftest.i conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1992 $as_echo "$ac_header_preproc" >&6; }
1994 # So? What about this header?
1995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1996 yes:no: )
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1998 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 no:yes:* )
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2004 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2006 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2008 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2010 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ( $as_echo "## ------------------------------ ##
2014 ## Report this to admin@amule.org ##
2015 ## ------------------------------ ##"
2016 ) | sed "s/^/$as_me: WARNING: /" >&2
2018 esac
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 eval "$3=\$ac_header_compiler"
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 } # ac_fn_c_check_header_mongrel
2034 # ac_fn_c_try_run LINENO
2035 # ----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2037 # that executables *can* be run.
2038 ac_fn_c_try_run ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { { ac_try="$ac_link"
2042 case "(($ac_try" in
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_link") 2>&5
2049 ac_status=$?
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2052 { { case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_try") 2>&5
2059 ac_status=$?
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; }; }; then :
2062 ac_retval=0
2063 else
2064 $as_echo "$as_me: program exited with status $ac_status" >&5
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2068 ac_retval=$ac_status
2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2074 } # ac_fn_c_try_run
2076 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2077 # -------------------------------------------------------
2078 # Tests whether HEADER exists and can be compiled using the include files in
2079 # INCLUDES, setting the cache variable VAR accordingly.
2080 ac_fn_c_check_header_compile ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2091 #include <$2>
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 eval "$3=yes"
2095 else
2096 eval "$3=no"
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_header_compile
2107 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2108 # -------------------------------------------
2109 # Tests whether TYPE exists after having included INCLUDES, setting cache
2110 # variable VAR accordingly.
2111 ac_fn_c_check_type ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2115 $as_echo_n "checking for $2... " >&6; }
2116 if eval \${$3+:} false; then :
2117 $as_echo_n "(cached) " >&6
2118 else
2119 eval "$3=no"
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2124 main ()
2126 if (sizeof ($2))
2127 return 0;
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2137 main ()
2139 if (sizeof (($2)))
2140 return 0;
2142 return 0;
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2147 else
2148 eval "$3=yes"
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 eval ac_res=\$$3
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 } # ac_fn_c_check_type
2161 # ac_fn_cxx_try_link LINENO
2162 # -------------------------
2163 # Try to link conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_cxx_try_link ()
2166 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167 rm -f conftest.$ac_objext conftest$ac_exeext
2168 if { { ac_try="$ac_link"
2169 case "(($ac_try" in
2170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171 *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175 (eval "$ac_link") 2>conftest.err
2176 ac_status=$?
2177 if test -s conftest.err; then
2178 grep -v '^ *+' conftest.err >conftest.er1
2179 cat conftest.er1 >&5
2180 mv -f conftest.er1 conftest.err
2182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183 test $ac_status = 0; } && {
2184 test -z "$ac_cxx_werror_flag" ||
2185 test ! -s conftest.err
2186 } && test -s conftest$ac_exeext && {
2187 test "$cross_compiling" = yes ||
2188 test -x conftest$ac_exeext
2189 }; then :
2190 ac_retval=0
2191 else
2192 $as_echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2195 ac_retval=1
2197 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2198 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2199 # interfere with the next link command; also delete a directory that is
2200 # left behind by Apple's compiler. We do this before executing the actions.
2201 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 as_fn_set_status $ac_retval
2205 } # ac_fn_cxx_try_link
2207 # ac_fn_cxx_try_run LINENO
2208 # ------------------------
2209 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2210 # that executables *can* be run.
2211 ac_fn_cxx_try_run ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 if { { ac_try="$ac_link"
2215 case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_link") 2>&5
2222 ac_status=$?
2223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2224 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2225 { { case "(($ac_try" in
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2228 esac
2229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2230 $as_echo "$ac_try_echo"; } >&5
2231 (eval "$ac_try") 2>&5
2232 ac_status=$?
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; }; }; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: program exited with status $ac_status" >&5
2238 $as_echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 ac_retval=$ac_status
2243 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2244 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 as_fn_set_status $ac_retval
2247 } # ac_fn_cxx_try_run
2249 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2250 # ---------------------------------------------------------
2251 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2252 # the include files in INCLUDES and setting the cache variable VAR
2253 # accordingly.
2254 ac_fn_cxx_check_header_mongrel ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 if eval \${$3+:} false; then :
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2263 eval ac_res=\$$3
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 else
2267 # Is the header compilable?
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2269 $as_echo_n "checking $2 usability... " >&6; }
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2273 #include <$2>
2274 _ACEOF
2275 if ac_fn_cxx_try_compile "$LINENO"; then :
2276 ac_header_compiler=yes
2277 else
2278 ac_header_compiler=no
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2282 $as_echo "$ac_header_compiler" >&6; }
2284 # Is the header present?
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2286 $as_echo_n "checking $2 presence... " >&6; }
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2289 #include <$2>
2290 _ACEOF
2291 if ac_fn_cxx_try_cpp "$LINENO"; then :
2292 ac_header_preproc=yes
2293 else
2294 ac_header_preproc=no
2296 rm -f conftest.err conftest.i conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2298 $as_echo "$ac_header_preproc" >&6; }
2300 # So? What about this header?
2301 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2302 yes:no: )
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2304 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2308 no:yes:* )
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2310 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2312 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2314 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2316 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2318 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2319 ( $as_echo "## ------------------------------ ##
2320 ## Report this to admin@amule.org ##
2321 ## ------------------------------ ##"
2322 ) | sed "s/^/$as_me: WARNING: /" >&2
2324 esac
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326 $as_echo_n "checking for $2... " >&6; }
2327 if eval \${$3+:} false; then :
2328 $as_echo_n "(cached) " >&6
2329 else
2330 eval "$3=\$ac_header_compiler"
2332 eval ac_res=\$$3
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 } # ac_fn_cxx_check_header_mongrel
2340 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2341 # ---------------------------------------------
2342 # Tests whether TYPE exists after having included INCLUDES, setting cache
2343 # variable VAR accordingly.
2344 ac_fn_cxx_check_type ()
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if eval \${$3+:} false; then :
2350 $as_echo_n "(cached) " >&6
2351 else
2352 eval "$3=no"
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2357 main ()
2359 if (sizeof ($2))
2360 return 0;
2362 return 0;
2364 _ACEOF
2365 if ac_fn_cxx_try_compile "$LINENO"; then :
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2370 main ()
2372 if (sizeof (($2)))
2373 return 0;
2375 return 0;
2377 _ACEOF
2378 if ac_fn_cxx_try_compile "$LINENO"; then :
2380 else
2381 eval "$3=yes"
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 eval ac_res=\$$3
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392 } # ac_fn_cxx_check_type
2394 # ac_fn_cxx_check_func LINENO FUNC VAR
2395 # ------------------------------------
2396 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2397 ac_fn_cxx_check_func ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2401 $as_echo_n "checking for $2... " >&6; }
2402 if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2404 else
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2409 #define $2 innocuous_$2
2411 /* System header to define __stub macros and hopefully few prototypes,
2412 which can conflict with char $2 (); below.
2413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2414 <limits.h> exists even on freestanding compilers. */
2416 #ifdef __STDC__
2417 # include <limits.h>
2418 #else
2419 # include <assert.h>
2420 #endif
2422 #undef $2
2424 /* Override any GCC internal prototype to avoid an error.
2425 Use char because int might match the return type of a GCC
2426 builtin and then its argument prototype would still apply. */
2427 #ifdef __cplusplus
2428 extern "C"
2429 #endif
2430 char $2 ();
2431 /* The GNU C library defines this for functions which it implements
2432 to always fail with ENOSYS. Some functions are actually named
2433 something starting with __ and the normal name is an alias. */
2434 #if defined __stub_$2 || defined __stub___$2
2435 choke me
2436 #endif
2439 main ()
2441 return $2 ();
2443 return 0;
2445 _ACEOF
2446 if ac_fn_cxx_try_link "$LINENO"; then :
2447 eval "$3=yes"
2448 else
2449 eval "$3=no"
2451 rm -f core conftest.err conftest.$ac_objext \
2452 conftest$ac_exeext conftest.$ac_ext
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 } # ac_fn_cxx_check_func
2461 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2462 # ---------------------------------------------------------
2463 # Tests whether HEADER exists and can be compiled using the include files in
2464 # INCLUDES, setting the cache variable VAR accordingly.
2465 ac_fn_cxx_check_header_compile ()
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2469 $as_echo_n "checking for $2... " >&6; }
2470 if eval \${$3+:} false; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2476 #include <$2>
2477 _ACEOF
2478 if ac_fn_cxx_try_compile "$LINENO"; then :
2479 eval "$3=yes"
2480 else
2481 eval "$3=no"
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 eval ac_res=\$$3
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2490 } # ac_fn_cxx_check_header_compile
2492 # ac_fn_c_try_link LINENO
2493 # -----------------------
2494 # Try to link conftest.$ac_ext, and return whether this succeeded.
2495 ac_fn_c_try_link ()
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 rm -f conftest.$ac_objext conftest$ac_exeext
2499 if { { ac_try="$ac_link"
2500 case "(($ac_try" in
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2503 esac
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_link") 2>conftest.err
2507 ac_status=$?
2508 if test -s conftest.err; then
2509 grep -v '^ *+' conftest.err >conftest.er1
2510 cat conftest.er1 >&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } && {
2515 test -z "$ac_c_werror_flag" ||
2516 test ! -s conftest.err
2517 } && test -s conftest$ac_exeext && {
2518 test "$cross_compiling" = yes ||
2519 test -x conftest$ac_exeext
2520 }; then :
2521 ac_retval=0
2522 else
2523 $as_echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2526 ac_retval=1
2528 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2529 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2530 # interfere with the next link command; also delete a directory that is
2531 # left behind by Apple's compiler. We do this before executing the actions.
2532 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2534 as_fn_set_status $ac_retval
2536 } # ac_fn_c_try_link
2538 # ac_fn_c_check_func LINENO FUNC VAR
2539 # ----------------------------------
2540 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2541 ac_fn_c_check_func ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if eval \${$3+:} false; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2551 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2553 #define $2 innocuous_$2
2555 /* System header to define __stub macros and hopefully few prototypes,
2556 which can conflict with char $2 (); below.
2557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2558 <limits.h> exists even on freestanding compilers. */
2560 #ifdef __STDC__
2561 # include <limits.h>
2562 #else
2563 # include <assert.h>
2564 #endif
2566 #undef $2
2568 /* Override any GCC internal prototype to avoid an error.
2569 Use char because int might match the return type of a GCC
2570 builtin and then its argument prototype would still apply. */
2571 #ifdef __cplusplus
2572 extern "C"
2573 #endif
2574 char $2 ();
2575 /* The GNU C library defines this for functions which it implements
2576 to always fail with ENOSYS. Some functions are actually named
2577 something starting with __ and the normal name is an alias. */
2578 #if defined __stub_$2 || defined __stub___$2
2579 choke me
2580 #endif
2583 main ()
2585 return $2 ();
2587 return 0;
2589 _ACEOF
2590 if ac_fn_c_try_link "$LINENO"; then :
2591 eval "$3=yes"
2592 else
2593 eval "$3=no"
2595 rm -f core conftest.err conftest.$ac_objext \
2596 conftest$ac_exeext conftest.$ac_ext
2598 eval ac_res=\$$3
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2600 $as_echo "$ac_res" >&6; }
2601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2603 } # ac_fn_c_check_func
2605 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2606 # ---------------------------------------------
2607 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2608 # accordingly.
2609 ac_fn_c_check_decl ()
2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612 as_decl_name=`echo $2|sed 's/ *(.*//'`
2613 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2615 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2616 if eval \${$3+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2623 main ()
2625 #ifndef $as_decl_name
2626 #ifdef __cplusplus
2627 (void) $as_decl_use;
2628 #else
2629 (void) $as_decl_name;
2630 #endif
2631 #endif
2634 return 0;
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 eval "$3=yes"
2639 else
2640 eval "$3=no"
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2649 } # ac_fn_c_check_decl
2650 cat >config.log <<_ACEOF
2651 This file contains any messages produced by compilers while
2652 running configure, to aid debugging if configure makes a mistake.
2654 It was created by aMule $as_me SVN, which was
2655 generated by GNU Autoconf 2.69. Invocation command line was
2657 $ $0 $@
2659 _ACEOF
2660 exec 5>>config.log
2662 cat <<_ASUNAME
2663 ## --------- ##
2664 ## Platform. ##
2665 ## --------- ##
2667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2674 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2676 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2677 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2679 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2680 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2681 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2682 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2684 _ASUNAME
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 $as_echo "PATH: $as_dir"
2692 done
2693 IFS=$as_save_IFS
2695 } >&5
2697 cat >&5 <<_ACEOF
2700 ## ----------- ##
2701 ## Core tests. ##
2702 ## ----------- ##
2704 _ACEOF
2707 # Keep a trace of the command line.
2708 # Strip out --no-create and --no-recursion so they do not pile up.
2709 # Strip out --silent because we don't want to record it for future runs.
2710 # Also quote any args containing shell meta-characters.
2711 # Make two passes to allow for proper duplicate-argument suppression.
2712 ac_configure_args=
2713 ac_configure_args0=
2714 ac_configure_args1=
2715 ac_must_keep_next=false
2716 for ac_pass in 1 2
2718 for ac_arg
2720 case $ac_arg in
2721 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2723 | -silent | --silent | --silen | --sile | --sil)
2724 continue ;;
2725 *\'*)
2726 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2727 esac
2728 case $ac_pass in
2729 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2731 as_fn_append ac_configure_args1 " '$ac_arg'"
2732 if test $ac_must_keep_next = true; then
2733 ac_must_keep_next=false # Got value, back to normal.
2734 else
2735 case $ac_arg in
2736 *=* | --config-cache | -C | -disable-* | --disable-* \
2737 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2738 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2739 | -with-* | --with-* | -without-* | --without-* | --x)
2740 case "$ac_configure_args0 " in
2741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2742 esac
2744 -* ) ac_must_keep_next=true ;;
2745 esac
2747 as_fn_append ac_configure_args " '$ac_arg'"
2749 esac
2750 done
2751 done
2752 { ac_configure_args0=; unset ac_configure_args0;}
2753 { ac_configure_args1=; unset ac_configure_args1;}
2755 # When interrupted or exit'd, cleanup temporary files, and complete
2756 # config.log. We remove comments because anyway the quotes in there
2757 # would cause problems or look ugly.
2758 # WARNING: Use '\'' to represent an apostrophe within the trap.
2759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2760 trap 'exit_status=$?
2761 # Save into config.log some information that might help in debugging.
2763 echo
2765 $as_echo "## ---------------- ##
2766 ## Cache variables. ##
2767 ## ---------------- ##"
2768 echo
2769 # The following way of writing the cache mishandles newlines in values,
2771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2772 eval ac_val=\$$ac_var
2773 case $ac_val in #(
2774 *${as_nl}*)
2775 case $ac_var in #(
2776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2777 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2778 esac
2779 case $ac_var in #(
2780 _ | IFS | as_nl) ;; #(
2781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2782 *) { eval $ac_var=; unset $ac_var;} ;;
2783 esac ;;
2784 esac
2785 done
2786 (set) 2>&1 |
2787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2788 *${as_nl}ac_space=\ *)
2789 sed -n \
2790 "s/'\''/'\''\\\\'\'''\''/g;
2791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2792 ;; #(
2794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2796 esac |
2797 sort
2799 echo
2801 $as_echo "## ----------------- ##
2802 ## Output variables. ##
2803 ## ----------------- ##"
2804 echo
2805 for ac_var in $ac_subst_vars
2807 eval ac_val=\$$ac_var
2808 case $ac_val in
2809 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2810 esac
2811 $as_echo "$ac_var='\''$ac_val'\''"
2812 done | sort
2813 echo
2815 if test -n "$ac_subst_files"; then
2816 $as_echo "## ------------------- ##
2817 ## File substitutions. ##
2818 ## ------------------- ##"
2819 echo
2820 for ac_var in $ac_subst_files
2822 eval ac_val=\$$ac_var
2823 case $ac_val in
2824 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2825 esac
2826 $as_echo "$ac_var='\''$ac_val'\''"
2827 done | sort
2828 echo
2831 if test -s confdefs.h; then
2832 $as_echo "## ----------- ##
2833 ## confdefs.h. ##
2834 ## ----------- ##"
2835 echo
2836 cat confdefs.h
2837 echo
2839 test "$ac_signal" != 0 &&
2840 $as_echo "$as_me: caught signal $ac_signal"
2841 $as_echo "$as_me: exit $exit_status"
2842 } >&5
2843 rm -f core *.core core.conftest.* &&
2844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2845 exit $exit_status
2847 for ac_signal in 1 2 13 15; do
2848 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2849 done
2850 ac_signal=0
2852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2853 rm -f -r conftest* confdefs.h
2855 $as_echo "/* confdefs.h */" > confdefs.h
2857 # Predefined preprocessor variables.
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_NAME "$PACKAGE_NAME"
2861 _ACEOF
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2865 _ACEOF
2867 cat >>confdefs.h <<_ACEOF
2868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2869 _ACEOF
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_STRING "$PACKAGE_STRING"
2873 _ACEOF
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2877 _ACEOF
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_URL "$PACKAGE_URL"
2881 _ACEOF
2884 # Let the site file select an alternate cache file if it wants to.
2885 # Prefer an explicitly selected file to automatically selected ones.
2886 ac_site_file1=NONE
2887 ac_site_file2=NONE
2888 if test -n "$CONFIG_SITE"; then
2889 # We do not want a PATH search for config.site.
2890 case $CONFIG_SITE in #((
2891 -*) ac_site_file1=./$CONFIG_SITE;;
2892 */*) ac_site_file1=$CONFIG_SITE;;
2893 *) ac_site_file1=./$CONFIG_SITE;;
2894 esac
2895 elif test "x$prefix" != xNONE; then
2896 ac_site_file1=$prefix/share/config.site
2897 ac_site_file2=$prefix/etc/config.site
2898 else
2899 ac_site_file1=$ac_default_prefix/share/config.site
2900 ac_site_file2=$ac_default_prefix/etc/config.site
2902 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2904 test "x$ac_site_file" = xNONE && continue
2905 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2907 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2908 sed 's/^/| /' "$ac_site_file" >&5
2909 . "$ac_site_file" \
2910 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2912 as_fn_error $? "failed to load site script $ac_site_file
2913 See \`config.log' for more details" "$LINENO" 5; }
2915 done
2917 if test -r "$cache_file"; then
2918 # Some versions of bash will fail to source /dev/null (special files
2919 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2920 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2922 $as_echo "$as_me: loading cache $cache_file" >&6;}
2923 case $cache_file in
2924 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2925 *) . "./$cache_file";;
2926 esac
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2930 $as_echo "$as_me: creating cache $cache_file" >&6;}
2931 >$cache_file
2934 as_fn_append ac_header_list " stdlib.h"
2935 as_fn_append ac_header_list " unistd.h"
2936 as_fn_append ac_header_list " sys/param.h"
2937 # Check that the precious variables saved in the cache have kept the same
2938 # value.
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942 eval ac_new_set=\$ac_env_${ac_var}_set
2943 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944 eval ac_new_val=\$ac_env_${ac_var}_value
2945 case $ac_old_set,$ac_new_set in
2946 set,)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2950 ,set)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2953 ac_cache_corrupted=: ;;
2954 ,);;
2956 if test "x$ac_old_val" != "x$ac_new_val"; then
2957 # differences in whitespace do not lead to failure.
2958 ac_old_val_w=`echo x $ac_old_val`
2959 ac_new_val_w=`echo x $ac_new_val`
2960 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2963 ac_cache_corrupted=:
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967 eval $ac_var=\$ac_old_val
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2970 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2973 fi;;
2974 esac
2975 # Pass precious variables to config.status.
2976 if test "$ac_new_set" = set; then
2977 case $ac_new_val in
2978 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979 *) ac_arg=$ac_var=$ac_new_val ;;
2980 esac
2981 case " $ac_configure_args " in
2982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2983 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2984 esac
2986 done
2987 if $ac_cache_corrupted; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005 am__api_version='1.15'
3007 ac_aux_dir=
3008 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3009 if test -f "$ac_dir/install-sh"; then
3010 ac_aux_dir=$ac_dir
3011 ac_install_sh="$ac_aux_dir/install-sh -c"
3012 break
3013 elif test -f "$ac_dir/install.sh"; then
3014 ac_aux_dir=$ac_dir
3015 ac_install_sh="$ac_aux_dir/install.sh -c"
3016 break
3017 elif test -f "$ac_dir/shtool"; then
3018 ac_aux_dir=$ac_dir
3019 ac_install_sh="$ac_aux_dir/shtool install -c"
3020 break
3022 done
3023 if test -z "$ac_aux_dir"; then
3024 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 # These three variables are undocumented and unsupported,
3028 # and are intended to be withdrawn in a future Autoconf release.
3029 # They can cause serious problems if a builder's source tree is in a directory
3030 # whose full name contains unusual characters.
3031 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3032 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3033 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3036 # Find a good install program. We prefer a C program (faster),
3037 # so one script is as good as another. But avoid the broken or
3038 # incompatible versions:
3039 # SysV /etc/install, /usr/sbin/install
3040 # SunOS /usr/etc/install
3041 # IRIX /sbin/install
3042 # AIX /bin/install
3043 # AmigaOS /C/install, which installs bootblocks on floppy discs
3044 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3045 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3046 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3047 # OS/2's system install, which has a completely different semantic
3048 # ./install, which can be erroneously created by make from ./install.sh.
3049 # Reject install programs that cannot install multiple files.
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3051 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3052 if test -z "$INSTALL"; then
3053 if ${ac_cv_path_install+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 # Account for people who put trailing slashes in PATH elements.
3062 case $as_dir/ in #((
3063 ./ | .// | /[cC]/* | \
3064 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3065 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3066 /usr/ucb/* ) ;;
3068 # OSF1 and SCO ODT 3.0 have their own names for install.
3069 # Don't use installbsd from OSF since it installs stuff as root
3070 # by default.
3071 for ac_prog in ginstall scoinst install; do
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3074 if test $ac_prog = install &&
3075 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3076 # AIX install. It has an incompatible calling convention.
3078 elif test $ac_prog = install &&
3079 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3080 # program-specific install script used by HP pwplus--don't use.
3082 else
3083 rm -rf conftest.one conftest.two conftest.dir
3084 echo one > conftest.one
3085 echo two > conftest.two
3086 mkdir conftest.dir
3087 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3088 test -s conftest.one && test -s conftest.two &&
3089 test -s conftest.dir/conftest.one &&
3090 test -s conftest.dir/conftest.two
3091 then
3092 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3093 break 3
3097 done
3098 done
3100 esac
3102 done
3103 IFS=$as_save_IFS
3105 rm -rf conftest.one conftest.two conftest.dir
3108 if test "${ac_cv_path_install+set}" = set; then
3109 INSTALL=$ac_cv_path_install
3110 else
3111 # As a last resort, use the slow shell script. Don't cache a
3112 # value for INSTALL within a source directory, because that will
3113 # break other packages using the cache if that directory is
3114 # removed, or if the value is a relative name.
3115 INSTALL=$ac_install_sh
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3119 $as_echo "$INSTALL" >&6; }
3121 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3122 # It thinks the first close brace ends the variable substitution.
3123 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3125 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3127 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3130 $as_echo_n "checking whether build environment is sane... " >&6; }
3131 # Reject unsafe characters in $srcdir or the absolute working directory
3132 # name. Accept space and tab only in the latter.
3133 am_lf='
3135 case `pwd` in
3136 *[\\\"\#\$\&\'\`$am_lf]*)
3137 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3138 esac
3139 case $srcdir in
3140 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3141 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3142 esac
3144 # Do 'set' in a subshell so we don't clobber the current shell's
3145 # arguments. Must try -L first in case configure is actually a
3146 # symlink; some systems play weird games with the mod time of symlinks
3147 # (eg FreeBSD returns the mod time of the symlink's containing
3148 # directory).
3149 if (
3150 am_has_slept=no
3151 for am_try in 1 2; do
3152 echo "timestamp, slept: $am_has_slept" > conftest.file
3153 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3154 if test "$*" = "X"; then
3155 # -L didn't work.
3156 set X `ls -t "$srcdir/configure" conftest.file`
3158 if test "$*" != "X $srcdir/configure conftest.file" \
3159 && test "$*" != "X conftest.file $srcdir/configure"; then
3161 # If neither matched, then we have a broken ls. This can happen
3162 # if, for instance, CONFIG_SHELL is bash and it inherits a
3163 # broken ls alias from the environment. This has actually
3164 # happened. Such a system could not be considered "sane".
3165 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3166 alias in your environment" "$LINENO" 5
3168 if test "$2" = conftest.file || test $am_try -eq 2; then
3169 break
3171 # Just in case.
3172 sleep 1
3173 am_has_slept=yes
3174 done
3175 test "$2" = conftest.file
3177 then
3178 # Ok.
3180 else
3181 as_fn_error $? "newly created file is older than distributed files!
3182 Check your system clock" "$LINENO" 5
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 $as_echo "yes" >&6; }
3186 # If we didn't sleep, we still need to ensure time stamps of config.status and
3187 # generated files are strictly newer.
3188 am_sleep_pid=
3189 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3190 ( sleep 1 ) &
3191 am_sleep_pid=$!
3194 rm -f conftest.file
3196 test "$program_prefix" != NONE &&
3197 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3198 # Use a double $ so make ignores it.
3199 test "$program_suffix" != NONE &&
3200 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3201 # Double any \ or $.
3202 # By default was `s,x,x', remove it if useless.
3203 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3204 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3206 # Expand $ac_aux_dir to an absolute path.
3207 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3209 if test x"${MISSING+set}" != xset; then
3210 case $am_aux_dir in
3211 *\ * | *\ *)
3212 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3214 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3215 esac
3217 # Use eval to expand $SHELL
3218 if eval "$MISSING --is-lightweight"; then
3219 am_missing_run="$MISSING "
3220 else
3221 am_missing_run=
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3223 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3226 if test x"${install_sh+set}" != xset; then
3227 case $am_aux_dir in
3228 *\ * | *\ *)
3229 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3231 install_sh="\${SHELL} $am_aux_dir/install-sh"
3232 esac
3235 # Installed binaries are usually stripped using 'strip' when the user
3236 # run "make install-strip". However 'strip' might not be the right
3237 # tool to use in cross-compilation environments, therefore Automake
3238 # will honor the 'STRIP' environment variable to overrule this program.
3239 if test "$cross_compiling" != no; then
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}strip; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_STRIP+:} false; then :
3246 $as_echo_n "(cached) " >&6
3247 else
3248 if test -n "$STRIP"; then
3249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3262 done
3263 done
3264 IFS=$as_save_IFS
3268 STRIP=$ac_cv_prog_STRIP
3269 if test -n "$STRIP"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3271 $as_echo "$STRIP" >&6; }
3272 else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3279 if test -z "$ac_cv_prog_STRIP"; then
3280 ac_ct_STRIP=$STRIP
3281 # Extract the first word of "strip", so it can be a program name with args.
3282 set dummy strip; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$ac_ct_STRIP"; then
3289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_STRIP="strip"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3309 if test -n "$ac_ct_STRIP"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3311 $as_echo "$ac_ct_STRIP" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3317 if test "x$ac_ct_STRIP" = x; then
3318 STRIP=":"
3319 else
3320 case $cross_compiling:$ac_tool_warned in
3321 yes:)
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned=yes ;;
3325 esac
3326 STRIP=$ac_ct_STRIP
3328 else
3329 STRIP="$ac_cv_prog_STRIP"
3333 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3336 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3337 if test -z "$MKDIR_P"; then
3338 if ${ac_cv_path_mkdir+:} false; then :
3339 $as_echo_n "(cached) " >&6
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_prog in mkdir gmkdir; do
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3349 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3350 'mkdir (GNU coreutils) '* | \
3351 'mkdir (coreutils) '* | \
3352 'mkdir (fileutils) '4.1*)
3353 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3354 break 3;;
3355 esac
3356 done
3357 done
3358 done
3359 IFS=$as_save_IFS
3363 test -d ./--version && rmdir ./--version
3364 if test "${ac_cv_path_mkdir+set}" = set; then
3365 MKDIR_P="$ac_cv_path_mkdir -p"
3366 else
3367 # As a last resort, use the slow shell script. Don't cache a
3368 # value for MKDIR_P within a source directory, because that will
3369 # break other packages using the cache if that directory is
3370 # removed, or if the value is a relative name.
3371 MKDIR_P="$ac_install_sh -d"
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3375 $as_echo "$MKDIR_P" >&6; }
3377 for ac_prog in gawk mawk nawk awk
3379 # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy $ac_prog; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if ${ac_cv_prog_AWK+:} false; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if test -n "$AWK"; then
3387 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_AWK="$ac_prog"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3400 done
3401 done
3402 IFS=$as_save_IFS
3406 AWK=$ac_cv_prog_AWK
3407 if test -n "$AWK"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3409 $as_echo "$AWK" >&6; }
3410 else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3416 test -n "$AWK" && break
3417 done
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3420 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3421 set x ${MAKE-make}
3422 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3423 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 cat >conftest.make <<\_ACEOF
3427 SHELL = /bin/sh
3428 all:
3429 @echo '@@@%%%=$(MAKE)=@@@%%%'
3430 _ACEOF
3431 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3432 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3433 *@@@%%%=?*=@@@%%%*)
3434 eval ac_cv_prog_make_${ac_make}_set=yes;;
3436 eval ac_cv_prog_make_${ac_make}_set=no;;
3437 esac
3438 rm -f conftest.make
3440 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442 $as_echo "yes" >&6; }
3443 SET_MAKE=
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 SET_MAKE="MAKE=${MAKE-make}"
3450 rm -rf .tst 2>/dev/null
3451 mkdir .tst 2>/dev/null
3452 if test -d .tst; then
3453 am__leading_dot=.
3454 else
3455 am__leading_dot=_
3457 rmdir .tst 2>/dev/null
3459 # Check whether --enable-silent-rules was given.
3460 if test "${enable_silent_rules+set}" = set; then :
3461 enableval=$enable_silent_rules;
3464 case $enable_silent_rules in # (((
3465 yes) AM_DEFAULT_VERBOSITY=0;;
3466 no) AM_DEFAULT_VERBOSITY=1;;
3467 *) AM_DEFAULT_VERBOSITY=1;;
3468 esac
3469 am_make=${MAKE-make}
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3471 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3472 if ${am_cv_make_support_nested_variables+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if $as_echo 'TRUE=$(BAR$(V))
3476 BAR0=false
3477 BAR1=true
3479 am__doit:
3480 @$(TRUE)
3481 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3482 am_cv_make_support_nested_variables=yes
3483 else
3484 am_cv_make_support_nested_variables=no
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3488 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3489 if test $am_cv_make_support_nested_variables = yes; then
3490 AM_V='$(V)'
3491 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3492 else
3493 AM_V=$AM_DEFAULT_VERBOSITY
3494 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3496 AM_BACKSLASH='\'
3498 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3499 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3500 # is not polluted with repeated "-I."
3501 am__isrc=' -I$(srcdir)'
3502 # test to see if srcdir already configured
3503 if test -f $srcdir/config.status; then
3504 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3508 # test whether we have cygpath
3509 if test -z "$CYGPATH_W"; then
3510 if (cygpath --version) >/dev/null 2>/dev/null; then
3511 CYGPATH_W='cygpath -w'
3512 else
3513 CYGPATH_W=echo
3518 # Define the identity of the package.
3519 PACKAGE='amule'
3520 VERSION='SVN'
3523 cat >>confdefs.h <<_ACEOF
3524 #define PACKAGE "$PACKAGE"
3525 _ACEOF
3528 cat >>confdefs.h <<_ACEOF
3529 #define VERSION "$VERSION"
3530 _ACEOF
3532 # Some tools Automake needs.
3534 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3537 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3540 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3543 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3546 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3548 # For better backward compatibility. To be removed once Automake 1.9.x
3549 # dies out for good. For more background, see:
3550 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3551 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3552 mkdir_p='$(MKDIR_P)'
3554 # We need awk for the "check" target (and possibly the TAP driver). The
3555 # system "awk" is bad on some platforms.
3556 # Always define AMTAR for backward compatibility. Yes, it's still used
3557 # in the wild :-( We should find a proper way to deprecate it ...
3558 AMTAR='$${TAR-tar}'
3561 # We'll loop over all known methods to create a tar archive until one works.
3562 _am_tools='gnutar pax cpio none'
3564 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3571 # POSIX will say in a future version that running "rm -f" with no argument
3572 # is OK; and we want to be able to make that assumption in our Makefile
3573 # recipes. So use an aggressive probe to check that the usage we want is
3574 # actually supported "in the wild" to an acceptable degree.
3575 # See automake bug#10828.
3576 # To make any issue more visible, cause the running configure to be aborted
3577 # by default if the 'rm' program in use doesn't match our expectations; the
3578 # user can still override this though.
3579 if rm -f && rm -fr && rm -rf; then : OK; else
3580 cat >&2 <<'END'
3581 Oops!
3583 Your 'rm' program seems unable to run without file operands specified
3584 on the command line, even when the '-f' option is present. This is contrary
3585 to the behaviour of most rm programs out there, and not conforming with
3586 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3588 Please tell bug-automake@gnu.org about your system, including the value
3589 of your $PATH and any error possibly output before this message. This
3590 can help us improve future automake versions.
3593 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3594 echo 'Configuration will proceed anyway, since you have set the' >&2
3595 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3596 echo >&2
3597 else
3598 cat >&2 <<'END'
3599 Aborting the configuration process, to ensure you take notice of the issue.
3601 You can download and install GNU coreutils to get an 'rm' implementation
3602 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3604 If you want to complete the configuration process using your problematic
3605 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3606 to "yes", and re-run configure.
3609 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3613 # Check whether --enable-silent-rules was given.
3614 if test "${enable_silent_rules+set}" = set; then :
3615 enableval=$enable_silent_rules;
3618 case $enable_silent_rules in # (((
3619 yes) AM_DEFAULT_VERBOSITY=0;;
3620 no) AM_DEFAULT_VERBOSITY=1;;
3621 *) AM_DEFAULT_VERBOSITY=1;;
3622 esac
3623 am_make=${MAKE-make}
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3625 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3626 if ${am_cv_make_support_nested_variables+:} false; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 if $as_echo 'TRUE=$(BAR$(V))
3630 BAR0=false
3631 BAR1=true
3633 am__doit:
3634 @$(TRUE)
3635 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3636 am_cv_make_support_nested_variables=yes
3637 else
3638 am_cv_make_support_nested_variables=no
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3642 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3643 if test $am_cv_make_support_nested_variables = yes; then
3644 AM_V='$(V)'
3645 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3646 else
3647 AM_V=$AM_DEFAULT_VERBOSITY
3648 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3650 AM_BACKSLASH='\'
3655 # autoconf 2.70 introduced some incompatibilities that will make the build fail
3656 # As a "workaround" reject 2.70 and above for now.
3660 ac_config_headers="$ac_config_headers config.h"
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3665 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3666 # Check whether --enable-maintainer-mode was given.
3667 if test "${enable_maintainer_mode+set}" = set; then :
3668 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3669 else
3670 USE_MAINTAINER_MODE=no
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3674 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3675 if test $USE_MAINTAINER_MODE = yes; then
3676 MAINTAINER_MODE_TRUE=
3677 MAINTAINER_MODE_FALSE='#'
3678 else
3679 MAINTAINER_MODE_TRUE='#'
3680 MAINTAINER_MODE_FALSE=
3683 MAINT=$MAINTAINER_MODE_TRUE
3687 # Make sure we can run config.sub.
3688 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3689 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3692 $as_echo_n "checking build system type... " >&6; }
3693 if ${ac_cv_build+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 ac_build_alias=$build_alias
3697 test "x$ac_build_alias" = x &&
3698 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3699 test "x$ac_build_alias" = x &&
3700 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3701 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3706 $as_echo "$ac_cv_build" >&6; }
3707 case $ac_cv_build in
3708 *-*-*) ;;
3709 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3710 esac
3711 build=$ac_cv_build
3712 ac_save_IFS=$IFS; IFS='-'
3713 set x $ac_cv_build
3714 shift
3715 build_cpu=$1
3716 build_vendor=$2
3717 shift; shift
3718 # Remember, the first character of IFS is used to create $*,
3719 # except with old shells:
3720 build_os=$*
3721 IFS=$ac_save_IFS
3722 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3726 $as_echo_n "checking host system type... " >&6; }
3727 if ${ac_cv_host+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test "x$host_alias" = x; then
3731 ac_cv_host=$ac_cv_build
3732 else
3733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3739 $as_echo "$ac_cv_host" >&6; }
3740 case $ac_cv_host in
3741 *-*-*) ;;
3742 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3743 esac
3744 host=$ac_cv_host
3745 ac_save_IFS=$IFS; IFS='-'
3746 set x $ac_cv_host
3747 shift
3748 host_cpu=$1
3749 host_vendor=$2
3750 shift; shift
3751 # Remember, the first character of IFS is used to create $*,
3752 # except with old shells:
3753 host_os=$*
3754 IFS=$ac_save_IFS
3755 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3759 case "${host_os}" in
3760 darwin*)
3761 SYS=darwin
3762 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3763 MULELDFLAGS="-bind_at_load"
3764 touch src/Scanner.cpp
3766 openbsd*)
3767 SYS=openbsd
3768 LIBS="$LIBS -L/usr/local/lib"
3769 MULECPPFLAGS="-D__OPENBSD__"
3771 *cygwin* | *mingw32*)
3772 SYS=win32
3773 MULECPPFLAGS="-DNOMINMAX"
3775 solaris*)
3776 SYS=solaris
3777 RESOLV_LIB="-lresolv -lnsl"
3778 LIBS="$LIBS -lrt"
3780 *netbsd*)
3781 SYS=netbsd
3782 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3783 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3784 # Still, we prepend them, instead of adding, so the user may override them.
3785 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3786 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3788 *irix*)
3789 SYS=irix
3790 MULECPPFLAGS="-D__IRIX__"
3793 SYS=unknown
3795 esac
3797 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3798 if test ${SYS:-unknown} != win32; then :
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3801 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3802 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3804 MULELDFLAGS="$MULELDFLAGS -pthread"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 $as_echo "yes" >&6; }
3808 else
3810 MULELDFLAGS="$MULELDFLAGS -lpthread"
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3820 mule_backup_CFLAGS="$CFLAGS"
3821 mule_backup_CXXFLAGS="$CXXFLAGS"
3822 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3823 ac_ext=cpp
3824 ac_cpp='$CXXCPP $CPPFLAGS'
3825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3828 if test -z "$CXX"; then
3829 if test -n "$CCC"; then
3830 CXX=$CCC
3831 else
3832 if test -n "$ac_tool_prefix"; then
3833 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838 $as_echo_n "checking for $ac_word... " >&6; }
3839 if ${ac_cv_prog_CXX+:} false; then :
3840 $as_echo_n "(cached) " >&6
3841 else
3842 if test -n "$CXX"; then
3843 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3844 else
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH
3848 IFS=$as_save_IFS
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 break 2
3856 done
3857 done
3858 IFS=$as_save_IFS
3862 CXX=$ac_cv_prog_CXX
3863 if test -n "$CXX"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3865 $as_echo "$CXX" >&6; }
3866 else
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3872 test -n "$CXX" && break
3873 done
3875 if test -z "$CXX"; then
3876 ac_ct_CXX=$CXX
3877 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3879 # Extract the first word of "$ac_prog", so it can be a program name with args.
3880 set dummy $ac_prog; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -n "$ac_ct_CXX"; then
3887 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_ac_ct_CXX="$ac_prog"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3900 done
3901 done
3902 IFS=$as_save_IFS
3906 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3907 if test -n "$ac_ct_CXX"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3909 $as_echo "$ac_ct_CXX" >&6; }
3910 else
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3916 test -n "$ac_ct_CXX" && break
3917 done
3919 if test "x$ac_ct_CXX" = x; then
3920 CXX="g++"
3921 else
3922 case $cross_compiling:$ac_tool_warned in
3923 yes:)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3926 ac_tool_warned=yes ;;
3927 esac
3928 CXX=$ac_ct_CXX
3934 # Provide some information about the compiler.
3935 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3936 set X $ac_compile
3937 ac_compiler=$2
3938 for ac_option in --version -v -V -qversion; do
3939 { { ac_try="$ac_compiler $ac_option >&5"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3947 ac_status=$?
3948 if test -s conftest.err; then
3949 sed '10a\
3950 ... rest of stderr output deleted ...
3951 10q' conftest.err >conftest.er1
3952 cat conftest.er1 >&5
3954 rm -f conftest.er1 conftest.err
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3957 done
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3963 main ()
3967 return 0;
3969 _ACEOF
3970 ac_clean_files_save=$ac_clean_files
3971 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3972 # Try to create an executable without -o first, disregard a.out.
3973 # It will help us diagnose broken compilers, and finding out an intuition
3974 # of exeext.
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3976 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3977 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3979 # The possible output files:
3980 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3982 ac_rmfiles=
3983 for ac_file in $ac_files
3985 case $ac_file in
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3987 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3988 esac
3989 done
3990 rm -f $ac_rmfiles
3992 if { { ac_try="$ac_link_default"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link_default") 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
4003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4004 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4005 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4006 # so that the user can short-circuit this test for compilers unknown to
4007 # Autoconf.
4008 for ac_file in $ac_files ''
4010 test -f "$ac_file" || continue
4011 case $ac_file in
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4014 [ab].out )
4015 # We found the default executable, but exeext='' is most
4016 # certainly right.
4017 break;;
4018 *.* )
4019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4020 then :; else
4021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4023 # We set ac_cv_exeext here because the later test for it is not
4024 # safe: cross compilers may not add the suffix if given an `-o'
4025 # argument, so we may need to know it at that point already.
4026 # Even if this section looks crufty: it has the advantage of
4027 # actually working.
4028 break;;
4030 break;;
4031 esac
4032 done
4033 test "$ac_cv_exeext" = no && ac_cv_exeext=
4035 else
4036 ac_file=''
4038 if test -z "$ac_file"; then :
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error 77 "C++ compiler cannot create executables
4047 See \`config.log' for more details" "$LINENO" 5; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050 $as_echo "yes" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4053 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4055 $as_echo "$ac_file" >&6; }
4056 ac_exeext=$ac_cv_exeext
4058 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4059 ac_clean_files=$ac_clean_files_save
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4061 $as_echo_n "checking for suffix of executables... " >&6; }
4062 if { { ac_try="$ac_link"
4063 case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_link") 2>&5
4070 ac_status=$?
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }; then :
4073 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4074 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4075 # work properly (i.e., refer to `conftest.exe'), while it won't with
4076 # `rm'.
4077 for ac_file in conftest.exe conftest conftest.*; do
4078 test -f "$ac_file" || continue
4079 case $ac_file in
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4081 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4082 break;;
4083 * ) break;;
4084 esac
4085 done
4086 else
4087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4090 See \`config.log' for more details" "$LINENO" 5; }
4092 rm -f conftest conftest$ac_cv_exeext
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4094 $as_echo "$ac_cv_exeext" >&6; }
4096 rm -f conftest.$ac_ext
4097 EXEEXT=$ac_cv_exeext
4098 ac_exeext=$EXEEXT
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <stdio.h>
4103 main ()
4105 FILE *f = fopen ("conftest.out", "w");
4106 return ferror (f) || fclose (f) != 0;
4109 return 0;
4111 _ACEOF
4112 ac_clean_files="$ac_clean_files conftest.out"
4113 # Check that the compiler produces executables we can run. If not, either
4114 # the compiler is broken, or we cross compile.
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4116 $as_echo_n "checking whether we are cross compiling... " >&6; }
4117 if test "$cross_compiling" != yes; then
4118 { { ac_try="$ac_link"
4119 case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122 esac
4123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124 $as_echo "$ac_try_echo"; } >&5
4125 (eval "$ac_link") 2>&5
4126 ac_status=$?
4127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128 test $ac_status = 0; }
4129 if { ac_try='./conftest$ac_cv_exeext'
4130 { { case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_try") 2>&5
4137 ac_status=$?
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; }; then
4140 cross_compiling=no
4141 else
4142 if test "$cross_compiling" = maybe; then
4143 cross_compiling=yes
4144 else
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $? "cannot run C++ compiled programs.
4148 If you meant to cross compile, use \`--host'.
4149 See \`config.log' for more details" "$LINENO" 5; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4154 $as_echo "$cross_compiling" >&6; }
4156 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4157 ac_clean_files=$ac_clean_files_save
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4159 $as_echo_n "checking for suffix of object files... " >&6; }
4160 if ${ac_cv_objext+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4167 main ()
4171 return 0;
4173 _ACEOF
4174 rm -f conftest.o conftest.obj
4175 if { { ac_try="$ac_compile"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_compile") 2>&5
4183 ac_status=$?
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; then :
4186 for ac_file in conftest.o conftest.obj conftest.*; do
4187 test -f "$ac_file" || continue;
4188 case $ac_file in
4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4191 break;;
4192 esac
4193 done
4194 else
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "cannot compute suffix of object files: cannot compile
4201 See \`config.log' for more details" "$LINENO" 5; }
4203 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4206 $as_echo "$ac_cv_objext" >&6; }
4207 OBJEXT=$ac_cv_objext
4208 ac_objext=$OBJEXT
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4210 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4211 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4218 main ()
4220 #ifndef __GNUC__
4221 choke me
4222 #endif
4225 return 0;
4227 _ACEOF
4228 if ac_fn_cxx_try_compile "$LINENO"; then :
4229 ac_compiler_gnu=yes
4230 else
4231 ac_compiler_gnu=no
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4238 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4239 if test $ac_compiler_gnu = yes; then
4240 GXX=yes
4241 else
4242 GXX=
4244 ac_test_CXXFLAGS=${CXXFLAGS+set}
4245 ac_save_CXXFLAGS=$CXXFLAGS
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4247 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4248 if ${ac_cv_prog_cxx_g+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4252 ac_cxx_werror_flag=yes
4253 ac_cv_prog_cxx_g=no
4254 CXXFLAGS="-g"
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4259 main ()
4263 return 0;
4265 _ACEOF
4266 if ac_fn_cxx_try_compile "$LINENO"; then :
4267 ac_cv_prog_cxx_g=yes
4268 else
4269 CXXFLAGS=""
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4274 main ()
4278 return 0;
4280 _ACEOF
4281 if ac_fn_cxx_try_compile "$LINENO"; then :
4283 else
4284 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4285 CXXFLAGS="-g"
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4290 main ()
4294 return 0;
4296 _ACEOF
4297 if ac_fn_cxx_try_compile "$LINENO"; then :
4298 ac_cv_prog_cxx_g=yes
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4308 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4309 if test "$ac_test_CXXFLAGS" = set; then
4310 CXXFLAGS=$ac_save_CXXFLAGS
4311 elif test $ac_cv_prog_cxx_g = yes; then
4312 if test "$GXX" = yes; then
4313 CXXFLAGS="-g -O2"
4314 else
4315 CXXFLAGS="-g"
4317 else
4318 if test "$GXX" = yes; then
4319 CXXFLAGS="-O2"
4320 else
4321 CXXFLAGS=
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 DEPDIR="${am__leading_dot}deps"
4331 ac_config_commands="$ac_config_commands depfiles"
4334 am_make=${MAKE-make}
4335 cat > confinc << 'END'
4336 am__doit:
4337 @echo this is the am__doit target
4338 .PHONY: am__doit
4340 # If we don't find an include directive, just comment out the code.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4342 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4343 am__include="#"
4344 am__quote=
4345 _am_result=none
4346 # First try GNU make style include.
4347 echo "include confinc" > confmf
4348 # Ignore all kinds of additional output from 'make'.
4349 case `$am_make -s -f confmf 2> /dev/null` in #(
4350 *the\ am__doit\ target*)
4351 am__include=include
4352 am__quote=
4353 _am_result=GNU
4355 esac
4356 # Now try BSD make style include.
4357 if test "$am__include" = "#"; then
4358 echo '.include "confinc"' > confmf
4359 case `$am_make -s -f confmf 2> /dev/null` in #(
4360 *the\ am__doit\ target*)
4361 am__include=.include
4362 am__quote="\""
4363 _am_result=BSD
4365 esac
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4370 $as_echo "$_am_result" >&6; }
4371 rm -f confinc confmf
4373 # Check whether --enable-dependency-tracking was given.
4374 if test "${enable_dependency_tracking+set}" = set; then :
4375 enableval=$enable_dependency_tracking;
4378 if test "x$enable_dependency_tracking" != xno; then
4379 am_depcomp="$ac_aux_dir/depcomp"
4380 AMDEPBACKSLASH='\'
4381 am__nodep='_no'
4383 if test "x$enable_dependency_tracking" != xno; then
4384 AMDEP_TRUE=
4385 AMDEP_FALSE='#'
4386 else
4387 AMDEP_TRUE='#'
4388 AMDEP_FALSE=
4393 depcc="$CXX" am_compiler_list=
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4396 $as_echo_n "checking dependency style of $depcc... " >&6; }
4397 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4401 # We make a subdir and do the tests there. Otherwise we can end up
4402 # making bogus files that we don't know about and never remove. For
4403 # instance it was reported that on HP-UX the gcc test will end up
4404 # making a dummy file named 'D' -- because '-MD' means "put the output
4405 # in D".
4406 rm -rf conftest.dir
4407 mkdir conftest.dir
4408 # Copy depcomp to subdir because otherwise we won't find it if we're
4409 # using a relative directory.
4410 cp "$am_depcomp" conftest.dir
4411 cd conftest.dir
4412 # We will build objects and dependencies in a subdirectory because
4413 # it helps to detect inapplicable dependency modes. For instance
4414 # both Tru64's cc and ICC support -MD to output dependencies as a
4415 # side effect of compilation, but ICC will put the dependencies in
4416 # the current directory while Tru64 will put them in the object
4417 # directory.
4418 mkdir sub
4420 am_cv_CXX_dependencies_compiler_type=none
4421 if test "$am_compiler_list" = ""; then
4422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4424 am__universal=false
4425 case " $depcc " in #(
4426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4427 esac
4429 for depmode in $am_compiler_list; do
4430 # Setup a source with many dependencies, because some compilers
4431 # like to wrap large dependency lists on column 80 (with \), and
4432 # we should not choose a depcomp mode which is confused by this.
4434 # We need to recreate these files for each test, as the compiler may
4435 # overwrite some of them when testing with obscure command lines.
4436 # This happens at least with the AIX C compiler.
4437 : > sub/conftest.c
4438 for i in 1 2 3 4 5 6; do
4439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4440 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4441 # Solaris 10 /bin/sh.
4442 echo '/* dummy */' > sub/conftst$i.h
4443 done
4444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4446 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4447 # mode. It turns out that the SunPro C++ compiler does not properly
4448 # handle '-M -o', and we need to detect this. Also, some Intel
4449 # versions had trouble with output in subdirs.
4450 am__obj=sub/conftest.${OBJEXT-o}
4451 am__minus_obj="-o $am__obj"
4452 case $depmode in
4453 gcc)
4454 # This depmode causes a compiler race in universal mode.
4455 test "$am__universal" = false || continue
4457 nosideeffect)
4458 # After this tag, mechanisms are not by side-effect, so they'll
4459 # only be used when explicitly requested.
4460 if test "x$enable_dependency_tracking" = xyes; then
4461 continue
4462 else
4463 break
4466 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4467 # This compiler won't grok '-c -o', but also, the minuso test has
4468 # not run yet. These depmodes are late enough in the game, and
4469 # so weak that their functioning should not be impacted.
4470 am__obj=conftest.${OBJEXT-o}
4471 am__minus_obj=
4473 none) break ;;
4474 esac
4475 if depmode=$depmode \
4476 source=sub/conftest.c object=$am__obj \
4477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4479 >/dev/null 2>conftest.err &&
4480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4484 # icc doesn't choke on unknown options, it will just issue warnings
4485 # or remarks (even with -Werror). So we grep stderr for any message
4486 # that says an option was ignored or not supported.
4487 # When given -MP, icc 7.0 and 7.1 complain thusly:
4488 # icc: Command line warning: ignoring option '-M'; no argument required
4489 # The diagnosis changed in icc 8.0:
4490 # icc: Command line remark: option '-MP' not supported
4491 if (grep 'ignoring option' conftest.err ||
4492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4493 am_cv_CXX_dependencies_compiler_type=$depmode
4494 break
4497 done
4499 cd ..
4500 rm -rf conftest.dir
4501 else
4502 am_cv_CXX_dependencies_compiler_type=none
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4507 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4508 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4511 test "x$enable_dependency_tracking" != xno \
4512 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4513 am__fastdepCXX_TRUE=
4514 am__fastdepCXX_FALSE='#'
4515 else
4516 am__fastdepCXX_TRUE='#'
4517 am__fastdepCXX_FALSE=
4521 ac_ext=cpp
4522 ac_cpp='$CXXCPP $CPPFLAGS'
4523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4527 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4528 if test -z "$CXXCPP"; then
4529 if ${ac_cv_prog_CXXCPP+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 # Double quotes because CXXCPP needs to be expanded
4533 for CXXCPP in "$CXX -E" "/lib/cpp"
4535 ac_preproc_ok=false
4536 for ac_cxx_preproc_warn_flag in '' yes
4538 # Use a header file that comes with gcc, so configuring glibc
4539 # with a fresh cross-compiler works.
4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 # <limits.h> exists even on freestanding compilers.
4542 # On the NeXT, cc -E runs the code through the compiler's parser,
4543 # not just through cpp. "Syntax error" is here to catch this case.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #ifdef __STDC__
4547 # include <limits.h>
4548 #else
4549 # include <assert.h>
4550 #endif
4551 Syntax error
4552 _ACEOF
4553 if ac_fn_cxx_try_cpp "$LINENO"; then :
4555 else
4556 # Broken: fails on valid input.
4557 continue
4559 rm -f conftest.err conftest.i conftest.$ac_ext
4561 # OK, works on sane cases. Now check whether nonexistent headers
4562 # can be detected and how.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <ac_nonexistent.h>
4566 _ACEOF
4567 if ac_fn_cxx_try_cpp "$LINENO"; then :
4568 # Broken: success on invalid input.
4569 continue
4570 else
4571 # Passes both tests.
4572 ac_preproc_ok=:
4573 break
4575 rm -f conftest.err conftest.i conftest.$ac_ext
4577 done
4578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4579 rm -f conftest.i conftest.err conftest.$ac_ext
4580 if $ac_preproc_ok; then :
4581 break
4584 done
4585 ac_cv_prog_CXXCPP=$CXXCPP
4588 CXXCPP=$ac_cv_prog_CXXCPP
4589 else
4590 ac_cv_prog_CXXCPP=$CXXCPP
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4593 $as_echo "$CXXCPP" >&6; }
4594 ac_preproc_ok=false
4595 for ac_cxx_preproc_warn_flag in '' yes
4597 # Use a header file that comes with gcc, so configuring glibc
4598 # with a fresh cross-compiler works.
4599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4600 # <limits.h> exists even on freestanding compilers.
4601 # On the NeXT, cc -E runs the code through the compiler's parser,
4602 # not just through cpp. "Syntax error" is here to catch this case.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #ifdef __STDC__
4606 # include <limits.h>
4607 #else
4608 # include <assert.h>
4609 #endif
4610 Syntax error
4611 _ACEOF
4612 if ac_fn_cxx_try_cpp "$LINENO"; then :
4614 else
4615 # Broken: fails on valid input.
4616 continue
4618 rm -f conftest.err conftest.i conftest.$ac_ext
4620 # OK, works on sane cases. Now check whether nonexistent headers
4621 # can be detected and how.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <ac_nonexistent.h>
4625 _ACEOF
4626 if ac_fn_cxx_try_cpp "$LINENO"; then :
4627 # Broken: success on invalid input.
4628 continue
4629 else
4630 # Passes both tests.
4631 ac_preproc_ok=:
4632 break
4634 rm -f conftest.err conftest.i conftest.$ac_ext
4636 done
4637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4638 rm -f conftest.i conftest.err conftest.$ac_ext
4639 if $ac_preproc_ok; then :
4641 else
4642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4644 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4645 See \`config.log' for more details" "$LINENO" 5; }
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_prog_CC+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 CC=$ac_cv_prog_CC
4688 if test -n "$CC"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4690 $as_echo "$CC" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4698 if test -z "$ac_cv_prog_CC"; then
4699 ac_ct_CC=$CC
4700 # Extract the first word of "gcc", so it can be a program name with args.
4701 set dummy gcc; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$ac_ct_CC"; then
4708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_prog_ac_ct_CC="gcc"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4721 done
4722 done
4723 IFS=$as_save_IFS
4727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4728 if test -n "$ac_ct_CC"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4730 $as_echo "$ac_ct_CC" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4736 if test "x$ac_ct_CC" = x; then
4737 CC=""
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740 yes:)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4744 esac
4745 CC=$ac_ct_CC
4747 else
4748 CC="$ac_cv_prog_CC"
4751 if test -z "$CC"; then
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4754 set dummy ${ac_tool_prefix}cc; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_prog_CC+:} false; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 if test -n "$CC"; then
4761 ac_cv_prog_CC="$CC" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_CC="${ac_tool_prefix}cc"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4774 done
4775 done
4776 IFS=$as_save_IFS
4780 CC=$ac_cv_prog_CC
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4792 if test -z "$CC"; then
4793 # Extract the first word of "cc", so it can be a program name with args.
4794 set dummy cc; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if ${ac_cv_prog_CC+:} false; then :
4798 $as_echo_n "(cached) " >&6
4799 else
4800 if test -n "$CC"; then
4801 ac_cv_prog_CC="$CC" # Let the user override the test.
4802 else
4803 ac_prog_rejected=no
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4812 ac_prog_rejected=yes
4813 continue
4815 ac_cv_prog_CC="cc"
4816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 break 2
4819 done
4820 done
4821 IFS=$as_save_IFS
4823 if test $ac_prog_rejected = yes; then
4824 # We found a bogon in the path, so make sure we never use it.
4825 set dummy $ac_cv_prog_CC
4826 shift
4827 if test $# != 0; then
4828 # We chose a different compiler from the bogus one.
4829 # However, it has the same basename, so the bogon will be chosen
4830 # first if we set CC to just the basename; use the full file name.
4831 shift
4832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4837 CC=$ac_cv_prog_CC
4838 if test -n "$CC"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4840 $as_echo "$CC" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4848 if test -z "$CC"; then
4849 if test -n "$ac_tool_prefix"; then
4850 for ac_prog in cl.exe
4852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_CC+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$CC"; then
4860 ac_cv_prog_CC="$CC" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 CC=$ac_cv_prog_CC
4880 if test -n "$CC"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4882 $as_echo "$CC" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4889 test -n "$CC" && break
4890 done
4892 if test -z "$CC"; then
4893 ac_ct_CC=$CC
4894 for ac_prog in cl.exe
4896 # Extract the first word of "$ac_prog", so it can be a program name with args.
4897 set dummy $ac_prog; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$ac_ct_CC"; then
4904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_ac_ct_CC="$ac_prog"
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4924 if test -n "$ac_ct_CC"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4926 $as_echo "$ac_ct_CC" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 test -n "$ac_ct_CC" && break
4934 done
4936 if test "x$ac_ct_CC" = x; then
4937 CC=""
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943 ac_tool_warned=yes ;;
4944 esac
4945 CC=$ac_ct_CC
4952 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4954 as_fn_error $? "no acceptable C compiler found in \$PATH
4955 See \`config.log' for more details" "$LINENO" 5; }
4957 # Provide some information about the compiler.
4958 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4959 set X $ac_compile
4960 ac_compiler=$2
4961 for ac_option in --version -v -V -qversion; do
4962 { { ac_try="$ac_compiler $ac_option >&5"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4968 $as_echo "$ac_try_echo"; } >&5
4969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4970 ac_status=$?
4971 if test -s conftest.err; then
4972 sed '10a\
4973 ... rest of stderr output deleted ...
4974 10q' conftest.err >conftest.er1
4975 cat conftest.er1 >&5
4977 rm -f conftest.er1 conftest.err
4978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4979 test $ac_status = 0; }
4980 done
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4983 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4984 if ${ac_cv_c_compiler_gnu+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4991 main ()
4993 #ifndef __GNUC__
4994 choke me
4995 #endif
4998 return 0;
5000 _ACEOF
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 ac_compiler_gnu=yes
5003 else
5004 ac_compiler_gnu=no
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5011 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5012 if test $ac_compiler_gnu = yes; then
5013 GCC=yes
5014 else
5015 GCC=
5017 ac_test_CFLAGS=${CFLAGS+set}
5018 ac_save_CFLAGS=$CFLAGS
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5020 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5021 if ${ac_cv_prog_cc_g+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 ac_save_c_werror_flag=$ac_c_werror_flag
5025 ac_c_werror_flag=yes
5026 ac_cv_prog_cc_g=no
5027 CFLAGS="-g"
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5032 main ()
5036 return 0;
5038 _ACEOF
5039 if ac_fn_c_try_compile "$LINENO"; then :
5040 ac_cv_prog_cc_g=yes
5041 else
5042 CFLAGS=""
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5047 main ()
5051 return 0;
5053 _ACEOF
5054 if ac_fn_c_try_compile "$LINENO"; then :
5056 else
5057 ac_c_werror_flag=$ac_save_c_werror_flag
5058 CFLAGS="-g"
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5063 main ()
5067 return 0;
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_prog_cc_g=yes
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 ac_c_werror_flag=$ac_save_c_werror_flag
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5081 $as_echo "$ac_cv_prog_cc_g" >&6; }
5082 if test "$ac_test_CFLAGS" = set; then
5083 CFLAGS=$ac_save_CFLAGS
5084 elif test $ac_cv_prog_cc_g = yes; then
5085 if test "$GCC" = yes; then
5086 CFLAGS="-g -O2"
5087 else
5088 CFLAGS="-g"
5090 else
5091 if test "$GCC" = yes; then
5092 CFLAGS="-O2"
5093 else
5094 CFLAGS=
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5098 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5099 if ${ac_cv_prog_cc_c89+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 ac_cv_prog_cc_c89=no
5103 ac_save_CC=$CC
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106 #include <stdarg.h>
5107 #include <stdio.h>
5108 struct stat;
5109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5110 struct buf { int x; };
5111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5112 static char *e (p, i)
5113 char **p;
5114 int i;
5116 return p[i];
5118 static char *f (char * (*g) (char **, int), char **p, ...)
5120 char *s;
5121 va_list v;
5122 va_start (v,p);
5123 s = g (p, va_arg (v,int));
5124 va_end (v);
5125 return s;
5128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5129 function prototypes and stuff, but not '\xHH' hex character constants.
5130 These don't provoke an error unfortunately, instead are silently treated
5131 as 'x'. The following induces an error, until -std is added to get
5132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5133 array size at least. It's necessary to write '\x00'==0 to get something
5134 that's true only with -std. */
5135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5138 inside strings and character constants. */
5139 #define FOO(x) 'x'
5140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5142 int test (int i, double x);
5143 struct s1 {int (*f) (int a);};
5144 struct s2 {int (*f) (double a);};
5145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5146 int argc;
5147 char **argv;
5149 main ()
5151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5153 return 0;
5155 _ACEOF
5156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5159 CC="$ac_save_CC $ac_arg"
5160 if ac_fn_c_try_compile "$LINENO"; then :
5161 ac_cv_prog_cc_c89=$ac_arg
5163 rm -f core conftest.err conftest.$ac_objext
5164 test "x$ac_cv_prog_cc_c89" != "xno" && break
5165 done
5166 rm -f conftest.$ac_ext
5167 CC=$ac_save_CC
5170 # AC_CACHE_VAL
5171 case "x$ac_cv_prog_cc_c89" in
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5174 $as_echo "none needed" >&6; } ;;
5175 xno)
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5177 $as_echo "unsupported" >&6; } ;;
5179 CC="$CC $ac_cv_prog_cc_c89"
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5182 esac
5183 if test "x$ac_cv_prog_cc_c89" != xno; then :
5187 ac_ext=c
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5193 ac_ext=c
5194 ac_cpp='$CPP $CPPFLAGS'
5195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5199 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5200 if ${am_cv_prog_cc_c_o+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5207 main ()
5211 return 0;
5213 _ACEOF
5214 # Make sure it works both with $CC and with simple cc.
5215 # Following AC_PROG_CC_C_O, we do the test twice because some
5216 # compilers refuse to overwrite an existing .o file with -o,
5217 # though they will create one.
5218 am_cv_prog_cc_c_o=yes
5219 for am_i in 1 2; do
5220 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5221 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } \
5225 && test -f conftest2.$ac_objext; then
5226 : OK
5227 else
5228 am_cv_prog_cc_c_o=no
5229 break
5231 done
5232 rm -f core conftest*
5233 unset am_i
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5236 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5237 if test "$am_cv_prog_cc_c_o" != yes; then
5238 # Losing compiler, so override with the script.
5239 # FIXME: It is wrong to rewrite CC.
5240 # But if we don't then we get into trouble of one sort or another.
5241 # A longer-term fix would be to have automake use am__CC in this case,
5242 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5243 CC="$am_aux_dir/compile $CC"
5245 ac_ext=c
5246 ac_cpp='$CPP $CPPFLAGS'
5247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252 depcc="$CC" am_compiler_list=
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5255 $as_echo_n "checking dependency style of $depcc... " >&6; }
5256 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5260 # We make a subdir and do the tests there. Otherwise we can end up
5261 # making bogus files that we don't know about and never remove. For
5262 # instance it was reported that on HP-UX the gcc test will end up
5263 # making a dummy file named 'D' -- because '-MD' means "put the output
5264 # in D".
5265 rm -rf conftest.dir
5266 mkdir conftest.dir
5267 # Copy depcomp to subdir because otherwise we won't find it if we're
5268 # using a relative directory.
5269 cp "$am_depcomp" conftest.dir
5270 cd conftest.dir
5271 # We will build objects and dependencies in a subdirectory because
5272 # it helps to detect inapplicable dependency modes. For instance
5273 # both Tru64's cc and ICC support -MD to output dependencies as a
5274 # side effect of compilation, but ICC will put the dependencies in
5275 # the current directory while Tru64 will put them in the object
5276 # directory.
5277 mkdir sub
5279 am_cv_CC_dependencies_compiler_type=none
5280 if test "$am_compiler_list" = ""; then
5281 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5283 am__universal=false
5284 case " $depcc " in #(
5285 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5286 esac
5288 for depmode in $am_compiler_list; do
5289 # Setup a source with many dependencies, because some compilers
5290 # like to wrap large dependency lists on column 80 (with \), and
5291 # we should not choose a depcomp mode which is confused by this.
5293 # We need to recreate these files for each test, as the compiler may
5294 # overwrite some of them when testing with obscure command lines.
5295 # This happens at least with the AIX C compiler.
5296 : > sub/conftest.c
5297 for i in 1 2 3 4 5 6; do
5298 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5299 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5300 # Solaris 10 /bin/sh.
5301 echo '/* dummy */' > sub/conftst$i.h
5302 done
5303 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5305 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5306 # mode. It turns out that the SunPro C++ compiler does not properly
5307 # handle '-M -o', and we need to detect this. Also, some Intel
5308 # versions had trouble with output in subdirs.
5309 am__obj=sub/conftest.${OBJEXT-o}
5310 am__minus_obj="-o $am__obj"
5311 case $depmode in
5312 gcc)
5313 # This depmode causes a compiler race in universal mode.
5314 test "$am__universal" = false || continue
5316 nosideeffect)
5317 # After this tag, mechanisms are not by side-effect, so they'll
5318 # only be used when explicitly requested.
5319 if test "x$enable_dependency_tracking" = xyes; then
5320 continue
5321 else
5322 break
5325 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5326 # This compiler won't grok '-c -o', but also, the minuso test has
5327 # not run yet. These depmodes are late enough in the game, and
5328 # so weak that their functioning should not be impacted.
5329 am__obj=conftest.${OBJEXT-o}
5330 am__minus_obj=
5332 none) break ;;
5333 esac
5334 if depmode=$depmode \
5335 source=sub/conftest.c object=$am__obj \
5336 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5337 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5338 >/dev/null 2>conftest.err &&
5339 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5340 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5341 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5342 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5343 # icc doesn't choke on unknown options, it will just issue warnings
5344 # or remarks (even with -Werror). So we grep stderr for any message
5345 # that says an option was ignored or not supported.
5346 # When given -MP, icc 7.0 and 7.1 complain thusly:
5347 # icc: Command line warning: ignoring option '-M'; no argument required
5348 # The diagnosis changed in icc 8.0:
5349 # icc: Command line remark: option '-MP' not supported
5350 if (grep 'ignoring option' conftest.err ||
5351 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5352 am_cv_CC_dependencies_compiler_type=$depmode
5353 break
5356 done
5358 cd ..
5359 rm -rf conftest.dir
5360 else
5361 am_cv_CC_dependencies_compiler_type=none
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5366 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5367 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5370 test "x$enable_dependency_tracking" != xno \
5371 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5372 am__fastdepCC_TRUE=
5373 am__fastdepCC_FALSE='#'
5374 else
5375 am__fastdepCC_TRUE='#'
5376 am__fastdepCC_FALSE=
5380 ac_ext=c
5381 ac_cpp='$CPP $CPPFLAGS'
5382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5386 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5387 # On Suns, sometimes $CPP names a directory.
5388 if test -n "$CPP" && test -d "$CPP"; then
5389 CPP=
5391 if test -z "$CPP"; then
5392 if ${ac_cv_prog_CPP+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 # Double quotes because CPP needs to be expanded
5396 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5398 ac_preproc_ok=false
5399 for ac_c_preproc_warn_flag in '' yes
5401 # Use a header file that comes with gcc, so configuring glibc
5402 # with a fresh cross-compiler works.
5403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5404 # <limits.h> exists even on freestanding compilers.
5405 # On the NeXT, cc -E runs the code through the compiler's parser,
5406 # not just through cpp. "Syntax error" is here to catch this case.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #ifdef __STDC__
5410 # include <limits.h>
5411 #else
5412 # include <assert.h>
5413 #endif
5414 Syntax error
5415 _ACEOF
5416 if ac_fn_c_try_cpp "$LINENO"; then :
5418 else
5419 # Broken: fails on valid input.
5420 continue
5422 rm -f conftest.err conftest.i conftest.$ac_ext
5424 # OK, works on sane cases. Now check whether nonexistent headers
5425 # can be detected and how.
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <ac_nonexistent.h>
5429 _ACEOF
5430 if ac_fn_c_try_cpp "$LINENO"; then :
5431 # Broken: success on invalid input.
5432 continue
5433 else
5434 # Passes both tests.
5435 ac_preproc_ok=:
5436 break
5438 rm -f conftest.err conftest.i conftest.$ac_ext
5440 done
5441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5442 rm -f conftest.i conftest.err conftest.$ac_ext
5443 if $ac_preproc_ok; then :
5444 break
5447 done
5448 ac_cv_prog_CPP=$CPP
5451 CPP=$ac_cv_prog_CPP
5452 else
5453 ac_cv_prog_CPP=$CPP
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5456 $as_echo "$CPP" >&6; }
5457 ac_preproc_ok=false
5458 for ac_c_preproc_warn_flag in '' yes
5460 # Use a header file that comes with gcc, so configuring glibc
5461 # with a fresh cross-compiler works.
5462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5463 # <limits.h> exists even on freestanding compilers.
5464 # On the NeXT, cc -E runs the code through the compiler's parser,
5465 # not just through cpp. "Syntax error" is here to catch this case.
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #ifdef __STDC__
5469 # include <limits.h>
5470 #else
5471 # include <assert.h>
5472 #endif
5473 Syntax error
5474 _ACEOF
5475 if ac_fn_c_try_cpp "$LINENO"; then :
5477 else
5478 # Broken: fails on valid input.
5479 continue
5481 rm -f conftest.err conftest.i conftest.$ac_ext
5483 # OK, works on sane cases. Now check whether nonexistent headers
5484 # can be detected and how.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #include <ac_nonexistent.h>
5488 _ACEOF
5489 if ac_fn_c_try_cpp "$LINENO"; then :
5490 # Broken: success on invalid input.
5491 continue
5492 else
5493 # Passes both tests.
5494 ac_preproc_ok=:
5495 break
5497 rm -f conftest.err conftest.i conftest.$ac_ext
5499 done
5500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5501 rm -f conftest.i conftest.err conftest.$ac_ext
5502 if $ac_preproc_ok; then :
5504 else
5505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5507 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5508 See \`config.log' for more details" "$LINENO" 5; }
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517 ac_build_prefix=
5518 test -n "$build_alias" && ac_build_prefix=$build_alias-
5520 if test "$cross_compiling" = yes; then :
5522 # Even if we're cross-compiling, we want a compiler here
5523 # that is not a cross-compiler.
5524 saved_cross=$cross_compiling
5525 cross_compiling=no
5527 ac_ext=c
5528 ac_cpp='$CPP $BUILD_CPPFLAGS'
5529 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5530 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5532 if test -n "$ac_build_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5534 set dummy ${ac_build_prefix}gcc; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_BUILD_CC+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$BUILD_CC"; then
5541 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5554 done
5555 done
5556 IFS=$as_save_IFS
5560 BUILD_CC=$ac_cv_prog_BUILD_CC
5561 if test -n "$BUILD_CC"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5563 $as_echo "$BUILD_CC" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5571 if test -z "$ac_cv_prog_BUILD_CC"; then
5572 ac_ct_BUILD_CC=$BUILD_CC
5573 # Extract the first word of "gcc", so it can be a program name with args.
5574 set dummy gcc; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -n "$ac_ct_BUILD_CC"; then
5581 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5594 done
5595 done
5596 IFS=$as_save_IFS
5600 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5601 if test -n "$ac_ct_BUILD_CC"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5603 $as_echo "$ac_ct_BUILD_CC" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5609 if test "x$ac_ct_BUILD_CC" = x; then
5610 BUILD_CC=""
5611 else
5612 case $cross_compiling:$ac_tool_warned in
5613 yes:)
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5616 ac_tool_warned=yes ;;
5617 esac
5618 BUILD_CC=$ac_ct_BUILD_CC
5620 else
5621 BUILD_CC="$ac_cv_prog_BUILD_CC"
5624 if test -z "$BUILD_CC"; then
5625 if test -n "$ac_build_prefix"; then
5626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5627 set dummy ${ac_build_prefix}cc; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_prog_BUILD_CC+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test -n "$BUILD_CC"; then
5634 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 break 2
5647 done
5648 done
5649 IFS=$as_save_IFS
5653 BUILD_CC=$ac_cv_prog_BUILD_CC
5654 if test -n "$BUILD_CC"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5656 $as_echo "$BUILD_CC" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5664 if test -z "$ac_cv_prog_BUILD_CC"; then
5665 ac_ct_BUILD_CC=$BUILD_CC
5666 # Extract the first word of "cc", so it can be a program name with args.
5667 set dummy cc; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$ac_ct_BUILD_CC"; then
5674 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_ac_ct_BUILD_CC="cc"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5689 IFS=$as_save_IFS
5693 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5694 if test -n "$ac_ct_BUILD_CC"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5696 $as_echo "$ac_ct_BUILD_CC" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5702 if test "x$ac_ct_BUILD_CC" = x; then
5703 BUILD_CC=""
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706 yes:)
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709 ac_tool_warned=yes ;;
5710 esac
5711 BUILD_CC=$ac_ct_BUILD_CC
5713 else
5714 BUILD_CC="$ac_cv_prog_BUILD_CC"
5718 if test -z "$BUILD_CC"; then
5719 # Extract the first word of "cc", so it can be a program name with args.
5720 set dummy cc; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_prog_BUILD_CC+:} false; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$BUILD_CC"; then
5727 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5728 else
5729 ac_prog_rejected=no
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5738 ac_prog_rejected=yes
5739 continue
5741 ac_cv_prog_BUILD_CC="cc"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5747 IFS=$as_save_IFS
5749 if test $ac_prog_rejected = yes; then
5750 # We found a bogon in the path, so make sure we never use it.
5751 set dummy $ac_cv_prog_BUILD_CC
5752 shift
5753 if test $# != 0; then
5754 # We chose a different compiler from the bogus one.
5755 # However, it has the same basename, so the bogon will be chosen
5756 # first if we set BUILD_CC to just the basename; use the full file name.
5757 shift
5758 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5763 BUILD_CC=$ac_cv_prog_BUILD_CC
5764 if test -n "$BUILD_CC"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5766 $as_echo "$BUILD_CC" >&6; }
5767 else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5774 if test -z "$BUILD_CC"; then
5775 if test -n "$ac_build_prefix"; then
5776 for ac_prog in cl
5778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5779 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_BUILD_CC+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if test -n "$BUILD_CC"; then
5786 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5799 done
5800 done
5801 IFS=$as_save_IFS
5805 BUILD_CC=$ac_cv_prog_BUILD_CC
5806 if test -n "$BUILD_CC"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5808 $as_echo "$BUILD_CC" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5815 test -n "$BUILD_CC" && break
5816 done
5818 if test -z "$BUILD_CC"; then
5819 ac_ct_BUILD_CC=$BUILD_CC
5820 for ac_prog in cl
5822 # Extract the first word of "$ac_prog", so it can be a program name with args.
5823 set dummy $ac_prog; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if test -n "$ac_ct_BUILD_CC"; then
5830 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5843 done
5844 done
5845 IFS=$as_save_IFS
5849 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5850 if test -n "$ac_ct_BUILD_CC"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5852 $as_echo "$ac_ct_BUILD_CC" >&6; }
5853 else
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5859 test -n "$ac_ct_BUILD_CC" && break
5860 done
5862 if test "x$ac_ct_BUILD_CC" = x; then
5863 BUILD_CC=""
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871 BUILD_CC=$ac_ct_BUILD_CC
5878 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5880 as_fn_error $? "no acceptable C compiler found in \$PATH
5881 See \`config.log' for more details" "$LINENO" 5; }
5883 # Provide some information about the compiler.
5884 echo "$as_me:$LINENO:" \
5885 "checking for C compiler version" >&5
5886 ac_compiler=`set X $ac_compile; echo $2`
5887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5888 (eval $ac_compiler --version </dev/null >&5) 2>&5
5889 ac_status=$?
5890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5891 test $ac_status = 0; }
5892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5893 (eval $ac_compiler -v </dev/null >&5) 2>&5
5894 ac_status=$?
5895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5896 test $ac_status = 0; }
5897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5898 (eval $ac_compiler -V </dev/null >&5) 2>&5
5899 ac_status=$?
5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5907 main ()
5911 return 0;
5913 _ACEOF
5914 ac_clean_files_save=$ac_clean_files
5915 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5916 # Try to create an executable without -o first, disregard a.out.
5917 # It will help us diagnose broken compilers, and finding out an intuition
5918 # of exeext.
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5920 $as_echo_n "checking whether the C compiler works... " >&6; }
5921 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5923 # The possible output files:
5924 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5926 ac_rmfiles=
5927 for ac_file in $ac_files
5929 case $ac_file in
5930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5932 esac
5933 done
5934 rm -f $ac_rmfiles
5936 if { { ac_try="$ac_link_default"
5937 case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940 esac
5941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5942 $as_echo "$ac_try_echo"; } >&5
5943 (eval "$ac_link_default") 2>&5
5944 ac_status=$?
5945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946 test $ac_status = 0; }; then :
5947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5948 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5950 # so that the user can short-circuit this test for compilers unknown to
5951 # Autoconf.
5952 for ac_file in $ac_files ''
5954 test -f "$ac_file" || continue
5955 case $ac_file in
5956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5958 [ab].out )
5959 # We found the default executable, but exeext='' is most
5960 # certainly right.
5961 break;;
5962 *.* )
5963 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5964 then :; else
5965 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5967 # We set ac_cv_exeext here because the later test for it is not
5968 # safe: cross compilers may not add the suffix if given an `-o'
5969 # argument, so we may need to know it at that point already.
5970 # Even if this section looks crufty: it has the advantage of
5971 # actually working.
5972 break;;
5974 break;;
5975 esac
5976 done
5977 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5979 else
5980 ac_file=''
5982 if test -z "$ac_file"; then :
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5985 $as_echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5990 as_fn_error 77 "C compiler cannot create executables
5991 See \`config.log' for more details" "$LINENO" 5; }
5992 else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5994 $as_echo "yes" >&6; }
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5997 $as_echo_n "checking for C compiler default output file name... " >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5999 $as_echo "$ac_file" >&6; }
6000 ac_build_exeext=$ac_cv_build_exeext
6002 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
6003 ac_clean_files=$ac_clean_files_save
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6005 $as_echo_n "checking for suffix of executables... " >&6; }
6006 if { { ac_try="$ac_link"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6012 $as_echo "$ac_try_echo"; } >&5
6013 (eval "$ac_link") 2>&5
6014 ac_status=$?
6015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6016 test $ac_status = 0; }; then :
6017 # If both `conftest.exe' and `conftest' are `present' (well, observable)
6018 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
6019 # work properly (i.e., refer to `conftest.exe'), while it won't with
6020 # `rm'.
6021 for ac_file in conftest.exe conftest conftest.*; do
6022 test -f "$ac_file" || continue
6023 case $ac_file in
6024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6025 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6026 break;;
6027 * ) break;;
6028 esac
6029 done
6030 else
6031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6033 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6034 See \`config.log' for more details" "$LINENO" 5; }
6036 rm -f conftest conftest$ac_cv_build_exeext
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
6038 $as_echo "$ac_cv_build_exeext" >&6; }
6040 rm -f conftest.$ac_ext
6041 BUILD_EXEEXT=$ac_cv_build_exeext
6042 ac_build_exeext=$BUILD_EXEEXT
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045 #include <stdio.h>
6047 main ()
6049 FILE *f = fopen ("conftest.out", "w");
6050 return ferror (f) || fclose (f) != 0;
6053 return 0;
6055 _ACEOF
6056 ac_clean_files="$ac_clean_files conftest.out"
6057 # Check that the compiler produces executables we can run. If not, either
6058 # the compiler is broken, or we cross compile.
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6060 $as_echo_n "checking whether we are cross compiling... " >&6; }
6061 if test "$cross_compiling" != yes; then
6062 { { ac_try="$ac_link"
6063 case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066 esac
6067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6068 $as_echo "$ac_try_echo"; } >&5
6069 (eval "$ac_link") 2>&5
6070 ac_status=$?
6071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6072 test $ac_status = 0; }
6073 if { ac_try='./conftest$ac_cv_build_exeext'
6074 { { case "(($ac_try" in
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6077 esac
6078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6079 $as_echo "$ac_try_echo"; } >&5
6080 (eval "$ac_try") 2>&5
6081 ac_status=$?
6082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083 test $ac_status = 0; }; }; then
6084 cross_compiling=no
6085 else
6086 if test "$cross_compiling" = maybe; then
6087 cross_compiling=yes
6088 else
6089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6091 as_fn_error $? "cannot run C compiled programs.
6092 If you meant to cross compile, use \`--host'.
6093 See \`config.log' for more details" "$LINENO" 5; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6098 $as_echo "$cross_compiling" >&6; }
6100 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
6101 ac_clean_files=$ac_clean_files_save
6104 # Restore configuration environment
6105 cross_compiling=$saved_cross
6107 ac_ext=c
6108 ac_cpp='$CPP $CPPFLAGS'
6109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6113 else
6114 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
6116 CFLAGS="$mule_backup_CFLAGS"
6117 CXXFLAGS="$mule_backup_CXXFLAGS"
6118 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
6119 for ac_prog in gawk mawk nawk awk
6121 # Extract the first word of "$ac_prog", so it can be a program name with args.
6122 set dummy $ac_prog; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_AWK+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if test -n "$AWK"; then
6129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6138 ac_cv_prog_AWK="$ac_prog"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6142 done
6143 done
6144 IFS=$as_save_IFS
6148 AWK=$ac_cv_prog_AWK
6149 if test -n "$AWK"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6151 $as_echo "$AWK" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6158 test -n "$AWK" && break
6159 done
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6162 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6163 if ${ac_cv_path_GREP+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6166 if test -z "$GREP"; then
6167 ac_path_GREP_found=false
6168 # Loop through the user's path and test for each of PROGNAME-LIST
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6172 IFS=$as_save_IFS
6173 test -z "$as_dir" && as_dir=.
6174 for ac_prog in grep ggrep; do
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6177 as_fn_executable_p "$ac_path_GREP" || continue
6178 # Check for GNU ac_path_GREP and select it if it is found.
6179 # Check for GNU $ac_path_GREP
6180 case `"$ac_path_GREP" --version 2>&1` in
6181 *GNU*)
6182 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6184 ac_count=0
6185 $as_echo_n 0123456789 >"conftest.in"
6186 while :
6188 cat "conftest.in" "conftest.in" >"conftest.tmp"
6189 mv "conftest.tmp" "conftest.in"
6190 cp "conftest.in" "conftest.nl"
6191 $as_echo 'GREP' >> "conftest.nl"
6192 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6194 as_fn_arith $ac_count + 1 && ac_count=$as_val
6195 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6196 # Best one so far, save it but keep looking for a better one
6197 ac_cv_path_GREP="$ac_path_GREP"
6198 ac_path_GREP_max=$ac_count
6200 # 10*(2^10) chars as input seems more than enough
6201 test $ac_count -gt 10 && break
6202 done
6203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6204 esac
6206 $ac_path_GREP_found && break 3
6207 done
6208 done
6209 done
6210 IFS=$as_save_IFS
6211 if test -z "$ac_cv_path_GREP"; then
6212 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6214 else
6215 ac_cv_path_GREP=$GREP
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6220 $as_echo "$ac_cv_path_GREP" >&6; }
6221 GREP="$ac_cv_path_GREP"
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6225 $as_echo_n "checking for egrep... " >&6; }
6226 if ${ac_cv_path_EGREP+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6230 then ac_cv_path_EGREP="$GREP -E"
6231 else
6232 if test -z "$EGREP"; then
6233 ac_path_EGREP_found=false
6234 # Loop through the user's path and test for each of PROGNAME-LIST
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_prog in egrep; do
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6243 as_fn_executable_p "$ac_path_EGREP" || continue
6244 # Check for GNU ac_path_EGREP and select it if it is found.
6245 # Check for GNU $ac_path_EGREP
6246 case `"$ac_path_EGREP" --version 2>&1` in
6247 *GNU*)
6248 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6250 ac_count=0
6251 $as_echo_n 0123456789 >"conftest.in"
6252 while :
6254 cat "conftest.in" "conftest.in" >"conftest.tmp"
6255 mv "conftest.tmp" "conftest.in"
6256 cp "conftest.in" "conftest.nl"
6257 $as_echo 'EGREP' >> "conftest.nl"
6258 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6260 as_fn_arith $ac_count + 1 && ac_count=$as_val
6261 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6262 # Best one so far, save it but keep looking for a better one
6263 ac_cv_path_EGREP="$ac_path_EGREP"
6264 ac_path_EGREP_max=$ac_count
6266 # 10*(2^10) chars as input seems more than enough
6267 test $ac_count -gt 10 && break
6268 done
6269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6270 esac
6272 $ac_path_EGREP_found && break 3
6273 done
6274 done
6275 done
6276 IFS=$as_save_IFS
6277 if test -z "$ac_cv_path_EGREP"; then
6278 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6280 else
6281 ac_cv_path_EGREP=$EGREP
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6287 $as_echo "$ac_cv_path_EGREP" >&6; }
6288 EGREP="$ac_cv_path_EGREP"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6292 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6293 set x ${MAKE-make}
6294 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6295 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 cat >conftest.make <<\_ACEOF
6299 SHELL = /bin/sh
6300 all:
6301 @echo '@@@%%%=$(MAKE)=@@@%%%'
6302 _ACEOF
6303 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6304 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6305 *@@@%%%=?*=@@@%%%*)
6306 eval ac_cv_prog_make_${ac_make}_set=yes;;
6308 eval ac_cv_prog_make_${ac_make}_set=no;;
6309 esac
6310 rm -f conftest.make
6312 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6314 $as_echo "yes" >&6; }
6315 SET_MAKE=
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 SET_MAKE="MAKE=${MAKE-make}"
6323 if test -n "$ac_tool_prefix"; then
6324 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6325 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_RANLIB+:} false; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 if test -n "$RANLIB"; then
6332 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6345 done
6346 done
6347 IFS=$as_save_IFS
6351 RANLIB=$ac_cv_prog_RANLIB
6352 if test -n "$RANLIB"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6354 $as_echo "$RANLIB" >&6; }
6355 else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6362 if test -z "$ac_cv_prog_RANLIB"; then
6363 ac_ct_RANLIB=$RANLIB
6364 # Extract the first word of "ranlib", so it can be a program name with args.
6365 set dummy ranlib; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$ac_ct_RANLIB"; then
6372 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381 ac_cv_prog_ac_ct_RANLIB="ranlib"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6385 done
6386 done
6387 IFS=$as_save_IFS
6391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6392 if test -n "$ac_ct_RANLIB"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6394 $as_echo "$ac_ct_RANLIB" >&6; }
6395 else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6400 if test "x$ac_ct_RANLIB" = x; then
6401 RANLIB=":"
6402 else
6403 case $cross_compiling:$ac_tool_warned in
6404 yes:)
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 ac_tool_warned=yes ;;
6408 esac
6409 RANLIB=$ac_ct_RANLIB
6411 else
6412 RANLIB="$ac_cv_prog_RANLIB"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6416 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6417 if ${ac_cv_path_SED+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6421 for ac_i in 1 2 3 4 5 6 7; do
6422 ac_script="$ac_script$as_nl$ac_script"
6423 done
6424 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6425 { ac_script=; unset ac_script;}
6426 if test -z "$SED"; then
6427 ac_path_SED_found=false
6428 # Loop through the user's path and test for each of PROGNAME-LIST
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_prog in sed gsed; do
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6437 as_fn_executable_p "$ac_path_SED" || continue
6438 # Check for GNU ac_path_SED and select it if it is found.
6439 # Check for GNU $ac_path_SED
6440 case `"$ac_path_SED" --version 2>&1` in
6441 *GNU*)
6442 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6444 ac_count=0
6445 $as_echo_n 0123456789 >"conftest.in"
6446 while :
6448 cat "conftest.in" "conftest.in" >"conftest.tmp"
6449 mv "conftest.tmp" "conftest.in"
6450 cp "conftest.in" "conftest.nl"
6451 $as_echo '' >> "conftest.nl"
6452 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6453 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6454 as_fn_arith $ac_count + 1 && ac_count=$as_val
6455 if test $ac_count -gt ${ac_path_SED_max-0}; then
6456 # Best one so far, save it but keep looking for a better one
6457 ac_cv_path_SED="$ac_path_SED"
6458 ac_path_SED_max=$ac_count
6460 # 10*(2^10) chars as input seems more than enough
6461 test $ac_count -gt 10 && break
6462 done
6463 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6464 esac
6466 $ac_path_SED_found && break 3
6467 done
6468 done
6469 done
6470 IFS=$as_save_IFS
6471 if test -z "$ac_cv_path_SED"; then
6472 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6474 else
6475 ac_cv_path_SED=$SED
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6480 $as_echo "$ac_cv_path_SED" >&6; }
6481 SED="$ac_cv_path_SED"
6482 rm -f conftest.sed
6485 if test -n "$ac_tool_prefix"; then
6486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_RANLIB+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -n "$RANLIB"; then
6494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6507 done
6508 done
6509 IFS=$as_save_IFS
6513 RANLIB=$ac_cv_prog_RANLIB
6514 if test -n "$RANLIB"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6516 $as_echo "$RANLIB" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6524 if test -z "$ac_cv_prog_RANLIB"; then
6525 ac_ct_RANLIB=$RANLIB
6526 # Extract the first word of "ranlib", so it can be a program name with args.
6527 set dummy ranlib; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 if test -n "$ac_ct_RANLIB"; then
6534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543 ac_cv_prog_ac_ct_RANLIB="ranlib"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6547 done
6548 done
6549 IFS=$as_save_IFS
6553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6554 if test -n "$ac_ct_RANLIB"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6556 $as_echo "$ac_ct_RANLIB" >&6; }
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6562 if test "x$ac_ct_RANLIB" = x; then
6563 RANLIB=""
6564 else
6565 case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6570 esac
6571 RANLIB=$ac_ct_RANLIB
6573 else
6574 RANLIB="$ac_cv_prog_RANLIB"
6577 if test -n "$ac_tool_prefix"; then
6578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6579 set dummy ${ac_tool_prefix}strip; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_prog_STRIP+:} false; then :
6583 $as_echo_n "(cached) " >&6
6584 else
6585 if test -n "$STRIP"; then
6586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6595 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6599 done
6600 done
6601 IFS=$as_save_IFS
6605 STRIP=$ac_cv_prog_STRIP
6606 if test -n "$STRIP"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6608 $as_echo "$STRIP" >&6; }
6609 else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611 $as_echo "no" >&6; }
6616 if test -z "$ac_cv_prog_STRIP"; then
6617 ac_ct_STRIP=$STRIP
6618 # Extract the first word of "strip", so it can be a program name with args.
6619 set dummy strip; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 if test -n "$ac_ct_STRIP"; then
6626 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6627 else
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_prog_ac_ct_STRIP="strip"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6639 done
6640 done
6641 IFS=$as_save_IFS
6645 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6646 if test -n "$ac_ct_STRIP"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6648 $as_echo "$ac_ct_STRIP" >&6; }
6649 else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6654 if test "x$ac_ct_STRIP" = x; then
6655 STRIP=""
6656 else
6657 case $cross_compiling:$ac_tool_warned in
6658 yes:)
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661 ac_tool_warned=yes ;;
6662 esac
6663 STRIP=$ac_ct_STRIP
6665 else
6666 STRIP="$ac_cv_prog_STRIP"
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}ar; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_AR+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$AR"; then
6678 ac_cv_prog_AR="$AR" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_AR="${ac_tool_prefix}ar"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6691 done
6692 done
6693 IFS=$as_save_IFS
6697 AR=$ac_cv_prog_AR
6698 if test -n "$AR"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6700 $as_echo "$AR" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6708 if test -z "$ac_cv_prog_AR"; then
6709 ac_ct_AR=$AR
6710 # Extract the first word of "ar", so it can be a program name with args.
6711 set dummy ar; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 if test -n "$ac_ct_AR"; then
6718 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_ac_ct_AR="ar"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6731 done
6732 done
6733 IFS=$as_save_IFS
6737 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6738 if test -n "$ac_ct_AR"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6740 $as_echo "$ac_ct_AR" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6746 if test "x$ac_ct_AR" = x; then
6747 AR=""
6748 else
6749 case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755 AR=$ac_ct_AR
6757 else
6758 AR="$ac_cv_prog_AR"
6761 if test -n "$ac_tool_prefix"; then
6762 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6763 set dummy ${ac_tool_prefix}ld; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_LD+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$LD"; then
6770 ac_cv_prog_LD="$LD" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_LD="${ac_tool_prefix}ld"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6783 done
6784 done
6785 IFS=$as_save_IFS
6789 LD=$ac_cv_prog_LD
6790 if test -n "$LD"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6792 $as_echo "$LD" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6800 if test -z "$ac_cv_prog_LD"; then
6801 ac_ct_LD=$LD
6802 # Extract the first word of "ld", so it can be a program name with args.
6803 set dummy ld; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_prog_ac_ct_LD+:} false; then :
6807 $as_echo_n "(cached) " >&6
6808 else
6809 if test -n "$ac_ct_LD"; then
6810 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6815 IFS=$as_save_IFS
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6819 ac_cv_prog_ac_ct_LD="ld"
6820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 break 2
6823 done
6824 done
6825 IFS=$as_save_IFS
6829 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6830 if test -n "$ac_ct_LD"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6832 $as_echo "$ac_ct_LD" >&6; }
6833 else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6835 $as_echo "no" >&6; }
6838 if test "x$ac_ct_LD" = x; then
6839 LD=""
6840 else
6841 case $cross_compiling:$ac_tool_warned in
6842 yes:)
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847 LD=$ac_ct_LD
6849 else
6850 LD="$ac_cv_prog_LD"
6854 # Check whether --enable-monolithic was given.
6855 if test "${enable_monolithic+set}" = set; then :
6856 enableval=$enable_monolithic;
6859 if test ${enable_monolithic:-yes} = yes; then
6860 MONOLITHIC_TRUE=
6861 MONOLITHIC_FALSE='#'
6862 else
6863 MONOLITHIC_TRUE='#'
6864 MONOLITHIC_FALSE=
6868 # Check whether --enable-amule-daemon was given.
6869 if test "${enable_amule_daemon+set}" = set; then :
6870 enableval=$enable_amule_daemon;
6873 if test ${enable_amule_daemon:-no} = yes; then
6874 AMULE_DAEMON_TRUE=
6875 AMULE_DAEMON_FALSE='#'
6876 else
6877 AMULE_DAEMON_TRUE='#'
6878 AMULE_DAEMON_FALSE=
6882 # Check whether --enable-amulecmd was given.
6883 if test "${enable_amulecmd+set}" = set; then :
6884 enableval=$enable_amulecmd;
6887 if test ${enable_amulecmd:-no} = yes; then
6888 COMPILE_CMD_TRUE=
6889 COMPILE_CMD_FALSE='#'
6890 else
6891 COMPILE_CMD_TRUE='#'
6892 COMPILE_CMD_FALSE=
6896 # Check whether --enable-webserver was given.
6897 if test "${enable_webserver+set}" = set; then :
6898 enableval=$enable_webserver;
6901 if test ${enable_webserver:-no} = yes; then
6902 WEB_TRUE=
6903 WEB_FALSE='#'
6904 else
6905 WEB_TRUE='#'
6906 WEB_FALSE=
6910 # Check whether --enable-amule-gui was given.
6911 if test "${enable_amule_gui+set}" = set; then :
6912 enableval=$enable_amule_gui;
6915 if test ${enable_amule_gui:-no} = yes; then
6916 AMULE_GUI_TRUE=
6917 AMULE_GUI_FALSE='#'
6918 else
6919 AMULE_GUI_TRUE='#'
6920 AMULE_GUI_FALSE=
6924 # Check whether --enable-cas was given.
6925 if test "${enable_cas+set}" = set; then :
6926 enableval=$enable_cas;
6929 if test ${enable_cas:-no} = yes; then
6930 CAS_TRUE=
6931 CAS_FALSE='#'
6932 else
6933 CAS_TRUE='#'
6934 CAS_FALSE=
6938 # Check whether --enable-wxcas was given.
6939 if test "${enable_wxcas+set}" = set; then :
6940 enableval=$enable_wxcas;
6943 if test ${enable_wxcas:-no} = yes; then
6944 WXCAS_TRUE=
6945 WXCAS_FALSE='#'
6946 else
6947 WXCAS_TRUE='#'
6948 WXCAS_FALSE=
6952 # Check whether --enable-ed2k was given.
6953 if test "${enable_ed2k+set}" = set; then :
6954 enableval=$enable_ed2k;
6957 if test ${enable_ed2k:-yes} = yes; then
6958 ED2K_TRUE=
6959 ED2K_FALSE='#'
6960 else
6961 ED2K_TRUE='#'
6962 ED2K_FALSE=
6966 # Check whether --enable-alc was given.
6967 if test "${enable_alc+set}" = set; then :
6968 enableval=$enable_alc;
6971 if test ${enable_alc:-no} = yes; then
6972 ALC_TRUE=
6973 ALC_FALSE='#'
6974 else
6975 ALC_TRUE='#'
6976 ALC_FALSE=
6980 # Check whether --enable-alcc was given.
6981 if test "${enable_alcc+set}" = set; then :
6982 enableval=$enable_alcc;
6985 if test ${enable_alcc:-no} = yes; then
6986 ALCC_TRUE=
6987 ALCC_FALSE='#'
6988 else
6989 ALCC_TRUE='#'
6990 ALCC_FALSE=
6994 # Check whether --enable-xas was given.
6995 if test "${enable_xas+set}" = set; then :
6996 enableval=$enable_xas;
6999 if test ${enable_xas:-no} = yes; then
7000 XAS_TRUE=
7001 XAS_FALSE='#'
7002 else
7003 XAS_TRUE='#'
7004 XAS_FALSE=
7008 # Check whether --enable-fileview was given.
7009 if test "${enable_fileview+set}" = set; then :
7010 enableval=$enable_fileview;
7013 if test ${enable_fileview:-no} = yes; then
7014 FILEVIEW_TRUE=
7015 FILEVIEW_FALSE='#'
7016 else
7017 FILEVIEW_TRUE='#'
7018 FILEVIEW_FALSE=
7022 # Check whether --enable-plasmamule was given.
7023 if test "${enable_plasmamule+set}" = set; then :
7024 enableval=$enable_plasmamule;
7029 # Run all the tests with static linkage if we want a statically linked binary
7030 # Check whether --enable-static was given.
7031 if test "${enable_static+set}" = set; then :
7032 enableval=$enable_static;
7036 if test ${enable_static:-no} = yes; then :
7037 LDFLAGS="$LDFLAGS -static"
7042 # Check whether --with-kde4-config was given.
7043 if test "${with_kde4_config+set}" = set; then :
7044 withval=$with_kde4_config; KDE4_CONFIG=$withval
7045 else
7046 KDE4_CONFIG=""
7049 # Check whether --enable-kde-in-home was given.
7050 if test "${enable_kde_in_home+set}" = set; then :
7051 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7052 else
7053 KDE_IN_HOME=no
7059 # Check whether --with-moc was given.
7060 if test "${with_moc+set}" = set; then :
7061 withval=$with_moc; QT_MOC=$withval
7062 else
7063 QT_MOC=""
7068 # Default is yes, because they're most likely compatible.
7069 # However, this is only used when cross-compiling.
7071 # Check whether --with-gnu-malloc was given.
7072 if test "${with_gnu_malloc+set}" = set; then :
7073 withval=$with_gnu_malloc; gnumalloc=$withval
7074 else
7075 gnumalloc=yes
7080 # Checking for libs before all other stuff to break
7081 # configure as soon as possible in case of a missing one
7082 # to avoid losing too much time
7084 # Check for gd
7087 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7088 if test -n "$ac_tool_prefix"; then
7089 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7090 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 case $PKG_CONFIG in
7097 [\\/]* | ?:[\\/]*)
7098 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7112 done
7113 done
7114 IFS=$as_save_IFS
7117 esac
7119 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7120 if test -n "$PKG_CONFIG"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7122 $as_echo "$PKG_CONFIG" >&6; }
7123 else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7130 if test -z "$ac_cv_path_PKG_CONFIG"; then
7131 ac_pt_PKG_CONFIG=$PKG_CONFIG
7132 # Extract the first word of "pkg-config", so it can be a program name with args.
7133 set dummy pkg-config; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 case $ac_pt_PKG_CONFIG in
7140 [\\/]* | ?:[\\/]*)
7141 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7155 done
7156 done
7157 IFS=$as_save_IFS
7160 esac
7162 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7163 if test -n "$ac_pt_PKG_CONFIG"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7165 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7171 if test "x$ac_pt_PKG_CONFIG" = x; then
7172 PKG_CONFIG=""
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180 PKG_CONFIG=$ac_pt_PKG_CONFIG
7182 else
7183 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7187 if test -n "$PKG_CONFIG"; then
7188 _pkg_min_version=0.9.0
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7190 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7191 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7193 $as_echo "yes" >&6; }
7194 else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 PKG_CONFIG=""
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7204 $as_echo_n "checking for ANSI C header files... " >&6; }
7205 if ${ac_cv_header_stdc+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 #include <stdlib.h>
7211 #include <stdarg.h>
7212 #include <string.h>
7213 #include <float.h>
7216 main ()
7220 return 0;
7222 _ACEOF
7223 if ac_fn_c_try_compile "$LINENO"; then :
7224 ac_cv_header_stdc=yes
7225 else
7226 ac_cv_header_stdc=no
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 if test $ac_cv_header_stdc = yes; then
7231 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234 #include <string.h>
7236 _ACEOF
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238 $EGREP "memchr" >/dev/null 2>&1; then :
7240 else
7241 ac_cv_header_stdc=no
7243 rm -f conftest*
7247 if test $ac_cv_header_stdc = yes; then
7248 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <stdlib.h>
7253 _ACEOF
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 $EGREP "free" >/dev/null 2>&1; then :
7257 else
7258 ac_cv_header_stdc=no
7260 rm -f conftest*
7264 if test $ac_cv_header_stdc = yes; then
7265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7266 if test "$cross_compiling" = yes; then :
7268 else
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 #include <ctype.h>
7272 #include <stdlib.h>
7273 #if ((' ' & 0x0FF) == 0x020)
7274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7276 #else
7277 # define ISLOWER(c) \
7278 (('a' <= (c) && (c) <= 'i') \
7279 || ('j' <= (c) && (c) <= 'r') \
7280 || ('s' <= (c) && (c) <= 'z'))
7281 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7282 #endif
7284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7286 main ()
7288 int i;
7289 for (i = 0; i < 256; i++)
7290 if (XOR (islower (i), ISLOWER (i))
7291 || toupper (i) != TOUPPER (i))
7292 return 2;
7293 return 0;
7295 _ACEOF
7296 if ac_fn_c_try_run "$LINENO"; then :
7298 else
7299 ac_cv_header_stdc=no
7301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7302 conftest.$ac_objext conftest.beam conftest.$ac_ext
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7308 $as_echo "$ac_cv_header_stdc" >&6; }
7309 if test $ac_cv_header_stdc = yes; then
7311 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7317 inttypes.h stdint.h unistd.h
7318 do :
7319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7320 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7322 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7323 cat >>confdefs.h <<_ACEOF
7324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7325 _ACEOF
7329 done
7332 if test ${enable_cas:-no} = yes; then :
7337 # Check whether --with-gdlib-prefix was given.
7338 if test "${with_gdlib_prefix+set}" = set; then :
7339 withval=$with_gdlib_prefix;
7343 # Check whether --with-gdlib-config was given.
7344 if test "${with_gdlib_config+set}" = set; then :
7345 withval=$with_gdlib_config;
7349 GDLIB_VERSION=
7351 # Check gdlib in pkg-config first to avoid deprecation warnings
7352 # If --with-gdlib-config or --with-gdlib-prefix was given, then
7353 # skip the pkg-config check, the user probably wants to use
7354 # another gdlib instance.
7355 if test -z "${with_gdlib_config:-}${with_gdlib_prefix:-}"; then :
7357 if test -n "$PKG_CONFIG"; then :
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib" >&5
7360 $as_echo_n "checking for gdlib... " >&6; }
7362 if $PKG_CONFIG gdlib --exists; then :
7364 GDLIB_VERSION=`$PKG_CONFIG gdlib --modversion`
7366 if $PKG_CONFIG gdlib --atleast-version=2.0.0; then :
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7369 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7370 GDLIB_CFLAGS=`$PKG_CONFIG gdlib --cflags`
7371 GDLIB_LDFLAGS=`$PKG_CONFIG gdlib --libs-only-L`
7372 GDLIB_LIBS=`$PKG_CONFIG gdlib --libs-only-other`
7373 GDLIB_LIBS="$GDLIB_LIBS `$PKG_CONFIG gdlib --libs-only-l`"
7375 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7378 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7379 GDLIB_VERSION=
7383 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7394 # Try gdlib-config if we did not find a sufficient gdlib version in pkg-config
7395 if test -z "$GDLIB_VERSION"; then :
7397 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7398 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7399 GDLIB_CONFIG_NAME=gdlib-config
7401 if test -n "$with_gdlib_config"; then :
7402 GDLIB_CONFIG_NAME="$with_gdlib_config"
7405 # deal with optional prefix
7406 if test -n "$with_gdlib_prefix"; then :
7407 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7410 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7411 if test -x "$GDLIB_CONFIG_NAME"; then :
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7414 $as_echo_n "checking for gdlib-config... " >&6; }
7415 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7417 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7419 else
7420 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7421 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_path_GDLIB_CONFIG_PATH+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 case $GDLIB_CONFIG_PATH in
7428 [\\/]* | ?:[\\/]*)
7429 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7434 for as_dir in $as_dummy
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7440 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7444 done
7445 done
7446 IFS=$as_save_IFS
7448 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7450 esac
7452 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7453 if test -n "$GDLIB_CONFIG_PATH"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7455 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7456 else
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7464 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7467 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7468 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7470 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7471 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7472 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7473 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7475 if test $gdlib_config_major_version -gt 2; then
7476 gdlib_ver_ok=yes
7477 elif test $gdlib_config_major_version -eq 2; then
7479 if test $gdlib_config_minor_version -gt 0; then
7480 gdlib_ver_ok=yes
7481 elif test $gdlib_config_minor_version -eq 0; then
7482 if test $gdlib_config_micro_version -ge 0; then
7483 gdlib_ver_ok=yes
7494 if test -z "${gdlib_ver_ok:-}"; then :
7496 if test -z "$GDLIB_VERSION"; then :
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7502 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7503 GDLIB_VERSION=
7507 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7510 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7511 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7512 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7513 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7519 if test -n "$GDLIB_VERSION"; then :
7521 mule_backup_CFLAGS="$CFLAGS"
7522 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7524 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7525 if test "x$ac_cv_header_gd_h" = xyes; then :
7527 else
7529 GDLIB_CFLAGS=
7530 GDLIB_LDFLAGS=
7531 GDLIB_LIBS=
7532 GDLIB_VERSION=
7538 CFLAGS="$mule_backup_CFLAGS"
7542 if test -n "$GDLIB_VERSION"; then :
7544 CAS_DEFS="-D__GD__"
7545 GDLIB_LIBS="-lgd"
7547 else
7548 CAS_DEFS=
7553 if test -z "$CAS_DEFS"; then :
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7555 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7556 Please check that gdlib-config is in your default path, check out
7557 LD_LIBRARY_PATH or equivalent variable.
7558 Or this might also be that your gdlib-config has other name.
7559 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7560 (replace /usr/bin/gdlib-config with a valid path to your
7561 gdlib-config).
7562 If you use compiled packages check if you have devel pack installed.
7563 To download the latest version check http://www.boutell.com/gd for
7564 sources." >&5
7565 $as_echo "$as_me: WARNING:
7566 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7567 Please check that gdlib-config is in your default path, check out
7568 LD_LIBRARY_PATH or equivalent variable.
7569 Or this might also be that your gdlib-config has other name.
7570 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7571 (replace /usr/bin/gdlib-config with a valid path to your
7572 gdlib-config).
7573 If you use compiled packages check if you have devel pack installed.
7574 To download the latest version check http://www.boutell.com/gd for
7575 sources." >&2;}
7576 _mule_warning_0=yes
7577 _mule_has_warnings=yes
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7584 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7585 if ${ac_cv_header_stdbool_h+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7591 #include <stdbool.h>
7592 #ifndef bool
7593 "error: bool is not defined"
7594 #endif
7595 #ifndef false
7596 "error: false is not defined"
7597 #endif
7598 #if false
7599 "error: false is not 0"
7600 #endif
7601 #ifndef true
7602 "error: true is not defined"
7603 #endif
7604 #if true != 1
7605 "error: true is not 1"
7606 #endif
7607 #ifndef __bool_true_false_are_defined
7608 "error: __bool_true_false_are_defined is not defined"
7609 #endif
7611 struct s { _Bool s: 1; _Bool t; } s;
7613 char a[true == 1 ? 1 : -1];
7614 char b[false == 0 ? 1 : -1];
7615 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7616 char d[(bool) 0.5 == true ? 1 : -1];
7617 /* See body of main program for 'e'. */
7618 char f[(_Bool) 0.0 == false ? 1 : -1];
7619 char g[true];
7620 char h[sizeof (_Bool)];
7621 char i[sizeof s.t];
7622 enum { j = false, k = true, l = false * true, m = true * 256 };
7623 /* The following fails for
7624 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7625 _Bool n[m];
7626 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7627 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7628 /* Catch a bug in an HP-UX C compiler. See
7629 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7630 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7632 _Bool q = true;
7633 _Bool *pq = &q;
7636 main ()
7639 bool e = &s;
7640 *pq |= q;
7641 *pq |= ! q;
7642 /* Refer to every declared value, to avoid compiler optimizations. */
7643 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7644 + !m + !n + !o + !p + !q + !pq);
7647 return 0;
7649 _ACEOF
7650 if ac_fn_c_try_compile "$LINENO"; then :
7651 ac_cv_header_stdbool_h=yes
7652 else
7653 ac_cv_header_stdbool_h=no
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7658 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7659 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7660 if test "x$ac_cv_type__Bool" = xyes; then :
7662 cat >>confdefs.h <<_ACEOF
7663 #define HAVE__BOOL 1
7664 _ACEOF
7670 if test $ac_cv_header_stdbool_h = yes; then
7672 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7677 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7678 if ${ac_cv_c_const+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7685 main ()
7688 #ifndef __cplusplus
7689 /* Ultrix mips cc rejects this sort of thing. */
7690 typedef int charset[2];
7691 const charset cs = { 0, 0 };
7692 /* SunOS 4.1.1 cc rejects this. */
7693 char const *const *pcpcc;
7694 char **ppc;
7695 /* NEC SVR4.0.2 mips cc rejects this. */
7696 struct point {int x, y;};
7697 static struct point const zero = {0,0};
7698 /* AIX XL C 1.02.0.0 rejects this.
7699 It does not let you subtract one const X* pointer from another in
7700 an arm of an if-expression whose if-part is not a constant
7701 expression */
7702 const char *g = "string";
7703 pcpcc = &g + (g ? g-g : 0);
7704 /* HPUX 7.0 cc rejects these. */
7705 ++pcpcc;
7706 ppc = (char**) pcpcc;
7707 pcpcc = (char const *const *) ppc;
7708 { /* SCO 3.2v4 cc rejects this sort of thing. */
7709 char tx;
7710 char *t = &tx;
7711 char const *s = 0 ? (char *) 0 : (char const *) 0;
7713 *t++ = 0;
7714 if (s) return 0;
7716 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7717 int x[] = {25, 17};
7718 const int *foo = &x[0];
7719 ++foo;
7721 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7722 typedef const int *iptr;
7723 iptr p = 0;
7724 ++p;
7726 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7727 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7728 struct s { int j; const int *ap[3]; } bx;
7729 struct s *b = &bx; b->j = 5;
7731 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7732 const int foo = 10;
7733 if (!foo) return 0;
7735 return !cs[0] && !zero.x;
7736 #endif
7739 return 0;
7741 _ACEOF
7742 if ac_fn_c_try_compile "$LINENO"; then :
7743 ac_cv_c_const=yes
7744 else
7745 ac_cv_c_const=no
7747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7750 $as_echo "$ac_cv_c_const" >&6; }
7751 if test $ac_cv_c_const = no; then
7753 $as_echo "#define const /**/" >>confdefs.h
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7758 $as_echo_n "checking for inline... " >&6; }
7759 if ${ac_cv_c_inline+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 ac_cv_c_inline=no
7763 for ac_kw in inline __inline__ __inline; do
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7766 #ifndef __cplusplus
7767 typedef int foo_t;
7768 static $ac_kw foo_t static_foo () {return 0; }
7769 $ac_kw foo_t foo () {return 0; }
7770 #endif
7772 _ACEOF
7773 if ac_fn_c_try_compile "$LINENO"; then :
7774 ac_cv_c_inline=$ac_kw
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777 test "$ac_cv_c_inline" != no && break
7778 done
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7782 $as_echo "$ac_cv_c_inline" >&6; }
7784 case $ac_cv_c_inline in
7785 inline | yes) ;;
7787 case $ac_cv_c_inline in
7788 no) ac_val=;;
7789 *) ac_val=$ac_cv_c_inline;;
7790 esac
7791 cat >>confdefs.h <<_ACEOF
7792 #ifndef __cplusplus
7793 #define inline $ac_val
7794 #endif
7795 _ACEOF
7797 esac
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7800 $as_echo_n "checking for working volatile... " >&6; }
7801 if ${ac_cv_c_volatile+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7808 main ()
7811 volatile int x;
7812 int * volatile y = (int *) 0;
7813 return !x && !y;
7815 return 0;
7817 _ACEOF
7818 if ac_fn_c_try_compile "$LINENO"; then :
7819 ac_cv_c_volatile=yes
7820 else
7821 ac_cv_c_volatile=no
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7826 $as_echo "$ac_cv_c_volatile" >&6; }
7827 if test $ac_cv_c_volatile = no; then
7829 $as_echo "#define volatile /**/" >>confdefs.h
7834 ac_ext=cpp
7835 ac_cpp='$CXXCPP $CPPFLAGS'
7836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7842 # Check for zlib
7844 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 :
7847 # Check whether --with-zlib was given.
7848 if test "${with_zlib+set}" = set; then :
7849 withval=$with_zlib;
7853 case "${with_zlib:-yes}" in
7855 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7857 yes | sys)
7860 zlib_prefix="$with_zlib"
7861 esac
7863 mule_backup_CPPFLAGS="$CPPFLAGS"
7864 mule_backup_LDFLAGS="$LDFLAGS"
7865 mule_backup_LIBS="$LIBS"
7866 if test -n "$zlib_prefix"; then :
7868 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
7869 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
7870 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
7871 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
7873 else
7875 ZLIB_CPPFLAGS=
7876 ZLIB_LDFLAGS=
7879 ZLIB_LIBS="-lz"
7880 LIBS="$ZLIB_LIBS $LIBS"
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
7883 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
7884 if test "$cross_compiling" = yes; then :
7886 result=no
7887 z_version=
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7892 #include <zlib.h>
7893 #include <stdio.h>
7896 main ()
7899 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
7900 zlibVersion();
7903 return 0;
7906 _ACEOF
7907 if ac_fn_cxx_try_link "$LINENO"; then :
7909 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
7910 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
7911 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
7912 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
7913 if test "$cross_zver_max" -gt "1"; then
7914 result=yes
7915 elif test "$cross_zver_max" -eq "1"; then
7917 if test "$cross_zver_mid" -gt "1"; then
7918 result=yes
7919 elif test "$cross_zver_mid" -eq "1"; then
7920 if test "$cross_zver_min" -ge "4"; then
7921 result=yes
7929 if test ${result:-no} = yes; then :
7930 z_version=" (version $ZLIB_VERSION)"
7934 rm -f core conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7937 $as_echo "$result$z_version" >&6; }
7939 else
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7944 #include <zlib.h>
7945 #include <stdio.h>
7948 main ()
7950 const char *zver = zlibVersion();
7951 FILE *f=fopen("conftestval", "w");
7952 if (!f) return 1;
7953 fprintf(f, "%s",
7954 zver[0] > '1' ||
7955 (zver[0] == '1' &&
7956 (zver[2] > '1' ||
7957 (zver[2] == '1' &&
7958 zver[4] >= '4'))) ? "yes" : "no");
7959 fclose(f);
7960 f=fopen("conftestver", "w");
7961 if (f) {
7962 fprintf(f, "%s", ZLIB_VERSION);
7963 fclose(f);
7967 return 0;
7970 _ACEOF
7971 if ac_fn_cxx_try_run "$LINENO"; then :
7973 if test -f conftestval; then :
7974 result=`cat conftestval`
7975 else
7976 result=no
7978 if test ${result:-no} = yes; then :
7980 if test -f conftestver; then :
7982 ZLIB_VERSION=`cat conftestver`
7983 z_version=" (version $ZLIB_VERSION)"
7985 else
7986 z_version=
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7991 $as_echo "$result$z_version" >&6; }
7993 else
7995 result=no
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7997 $as_echo "$result" >&6; }
8000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8001 conftest.$ac_objext conftest.beam conftest.$ac_ext
8005 CPPFLAGS="$mule_backup_CPPFLAGS"
8006 LDFLAGS="$mule_backup_LDFLAGS"
8007 LIBS="$mule_backup_LIBS"
8009 if test ${result:-no} = no; then :
8011 ZLIB_CPPFLAGS=
8012 ZLIB_LDFLAGS=
8013 ZLIB_LIBS=
8014 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8022 # Check for libpng
8023 if test ${enable_webserver:-no} = yes; then :
8026 # Check whether --with-libpng-prefix was given.
8027 if test "${with_libpng_prefix+set}" = set; then :
8028 withval=$with_libpng_prefix;
8032 # Check whether --with-libpng-config was given.
8033 if test "${with_libpng_config+set}" = set; then :
8034 withval=$with_libpng_config;
8038 LIBPNG_VERSION=
8040 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
8041 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
8042 LIBPNG_CONFIG_NAME=libpng-config
8044 if test -n "$with_libpng_config"; then :
8045 LIBPNG_CONFIG_NAME="$with_libpng_config"
8048 # deal with optional prefix
8049 if test -n "$with_libpng_prefix"; then :
8050 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
8053 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
8054 if test -x "$LIBPNG_CONFIG_NAME"; then :
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
8057 $as_echo_n "checking for libpng-config... " >&6; }
8058 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8060 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8062 else
8063 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
8064 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_path_LIBPNG_CONFIG_PATH+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 case $LIBPNG_CONFIG_PATH in
8071 [\\/]* | ?:[\\/]*)
8072 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
8077 for as_dir in $as_dummy
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8085 break 2
8087 done
8088 done
8089 IFS=$as_save_IFS
8091 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
8093 esac
8095 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
8096 if test -n "$LIBPNG_CONFIG_PATH"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8098 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8099 else
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8107 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
8110 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
8112 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
8114 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
8115 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8116 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8117 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8119 libpng_ver_ok=
8120 if test $libpng_config_major_version -gt 1; then
8121 libpng_ver_ok=yes
8122 elif test $libpng_config_major_version -eq 1; then
8124 if test $libpng_config_minor_version -gt 2; then
8125 libpng_ver_ok=yes
8126 elif test $libpng_config_minor_version -eq 2; then
8127 if test $libpng_config_micro_version -ge 0; then
8128 libpng_ver_ok=yes
8137 if test -z "$libpng_ver_ok"; then :
8139 if test -z "$LIBPNG_VERSION"; then :
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8142 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
8145 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
8146 LIBPNG_VERSION=
8150 else
8152 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
8153 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
8154 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
8156 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
8159 $as_echo_n "checking if libpng is usable... " >&6; }
8161 SAVED_CFLAGS=$CFLAGS
8162 SAVED_LDFLAGS=$LDFLAGS
8163 SAVED_LIBS=$LIBS
8165 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
8166 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
8167 LIBS="$LIBS $LIBPNG_LIBS"
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8173 #include <png.h>
8174 #include <stdio.h>
8177 main ()
8180 png_uint_32 libpng_vn = png_access_version_number();
8181 printf("\nlibpng version %i\n\n", libpng_vn);
8184 return 0;
8187 _ACEOF
8188 if ac_fn_cxx_try_link "$LINENO"; then :
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191 $as_echo "yes" >&6; }
8193 else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8196 $as_echo "no (failed to compile and link test program)" >&6; }
8197 LIBPNG_LIBS=
8198 LIBPNG_LDFLAGS=
8199 LIBPNG_CFLAGS=
8200 LIBPNG_VERSION=
8203 rm -f core conftest.err conftest.$ac_objext \
8204 conftest$ac_exeext conftest.$ac_ext
8206 CFLAGS="$SAVED_CFLAGS"
8207 LDFLAGS="$SAVED_LDFLAGS"
8208 LIBS="$SAVED_LIBS"
8214 if test -n "$LIBPNG_VERSION"; then :
8215 AMULEWEB_DEFS="-DWITH_LIBPNG"
8216 else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8219 libpng >= 1.2.0 not found.
8220 amuleweb will be compiled but file download progress bar images will
8221 NOT be generated." >&5
8222 $as_echo "$as_me: WARNING:
8223 libpng >= 1.2.0 not found.
8224 amuleweb will be compiled but file download progress bar images will
8225 NOT be generated." >&2;}
8226 _mule_warning_1=yes
8227 _mule_has_warnings=yes
8238 # Check for GeoIP (required for IP2Country capability)
8240 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8242 # Check whether --enable-geoip was given.
8243 if test "${enable_geoip+set}" = set; then :
8244 enableval=$enable_geoip;
8249 if test ${enable_geoip:-no} = yes; then :
8252 # Check whether --with-geoip-headers was given.
8253 if test "${with_geoip_headers+set}" = set; then :
8254 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8258 # Check whether --with-geoip-lib was given.
8259 if test "${with_geoip_lib+set}" = set; then :
8260 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8264 mule_backup_CPPFLAGS="$CPPFLAGS"
8265 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8266 mule_backup_LDFLAGS="$LDFLAGS"
8267 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8269 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8270 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
8272 if test x$SYS = xwin32; then :
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8275 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8276 # Actually, we might not need any if GeoIP is linked as a .dll
8277 # - but that's even harder to check for
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8282 #include <GeoIP.h>
8283 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8284 I do know it's not the best approach, but at least works with MinGW stock headers.
8285 (tested with w32api-3.12)
8286 #endif
8289 main ()
8293 return 0;
8296 _ACEOF
8297 if ac_fn_cxx_try_compile "$LINENO"; then :
8299 GEOIP_WINSOCK_LIB="-lwsock32"
8301 else
8303 GEOIP_WINSOCK_LIB="-lws2_32"
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8308 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8312 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8313 if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 ac_check_lib_save_LIBS=$LIBS
8317 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8324 #ifdef __cplusplus
8325 extern "C"
8326 #endif
8327 char GeoIP_open ();
8329 main ()
8331 return GeoIP_open ();
8333 return 0;
8335 _ACEOF
8336 if ac_fn_cxx_try_link "$LINENO"; then :
8337 ac_cv_lib_GeoIP_GeoIP_open=yes
8338 else
8339 ac_cv_lib_GeoIP_GeoIP_open=no
8341 rm -f core conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8343 LIBS=$ac_check_lib_save_LIBS
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8346 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8347 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then :
8350 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8352 GEOIP_LIBS="-lGeoIP"
8353 if test x$SYS = xwin32; then :
8354 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8356 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8358 # Check whether --with-geoip-static was given.
8359 if test "${with_geoip_static+set}" = set; then :
8360 withval=$with_geoip_static;
8361 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8363 mule_backup_LIBS="$LIBS"
8364 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8369 #include <GeoIP.h>
8372 main ()
8375 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8378 return 0;
8381 _ACEOF
8382 if ac_fn_cxx_try_link "$LINENO"; then :
8384 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8386 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8389 Cannot link GeoIP statically, because your linker ($LD) does not
8390 support it." >&5
8391 $as_echo "$as_me: WARNING:
8392 Cannot link GeoIP statically, because your linker ($LD) does not
8393 support it." >&2;}
8394 _mule_warning_2=yes
8395 _mule_has_warnings=yes
8399 rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 LIBS="$mule_backup_LIBS"
8408 else
8410 enable_geoip=disabled
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8412 GeoIP support has been disabled because the GeoIP libraries were not
8413 found" >&5
8414 $as_echo "$as_me: WARNING:
8415 GeoIP support has been disabled because the GeoIP libraries were not
8416 found" >&2;}
8417 _mule_warning_3=yes
8418 _mule_has_warnings=yes
8424 else
8426 enable_geoip=disabled
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8428 GeoIP support has been disabled because the GeoIP header files were
8429 not found" >&5
8430 $as_echo "$as_me: WARNING:
8431 GeoIP support has been disabled because the GeoIP header files were
8432 not found" >&2;}
8433 _mule_warning_4=yes
8434 _mule_has_warnings=yes
8441 CPPFLAGS="$mule_backup_CPPFLAGS"
8442 LDFLAGS="$mule_backup_LDFLAGS"
8449 # Check for wx
8450 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 :
8453 # Check whether --with-wxdir was given.
8454 if test "${with_wxdir+set}" = set; then :
8455 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8456 wx_config_args="--inplace"
8460 # Check whether --with-wx-config was given.
8461 if test "${with_wx_config+set}" = set; then :
8462 withval=$with_wx_config; wx_config_name="$withval"
8466 # Check whether --with-wx-prefix was given.
8467 if test "${with_wx_prefix+set}" = set; then :
8468 withval=$with_wx_prefix; wx_config_prefix="$withval"
8469 else
8470 wx_config_prefix=""
8474 # Check whether --with-wx-exec-prefix was given.
8475 if test "${with_wx_exec_prefix+set}" = set; then :
8476 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8477 else
8478 wx_config_exec_prefix=""
8493 # Check whether --with-toolkit was given.
8494 if test "${with_toolkit+set}" = set; then :
8495 withval=$with_toolkit;
8496 else
8497 withval="auto"
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8502 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8503 if test "$withval" = "auto" ; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8505 $as_echo "will be automatically detected" >&6; }
8506 TOOLKIT=""
8507 else
8508 TOOLKIT="$withval"
8510 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \
8511 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8512 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \
8513 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then
8514 as_fn_error $? "
8515 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base)
8516 " "$LINENO" 5
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8520 $as_echo "$TOOLKIT" >&6; }
8527 # Check whether --with-wxshared was given.
8528 if test "${with_wxshared+set}" = set; then :
8529 withval=$with_wxshared;
8530 else
8531 withval="auto"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8536 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8537 if test "$withval" = "yes" ; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8539 $as_echo "yes" >&6; }
8540 WX_SHARED=1
8542 elif test "1" = "1" -a "$withval" = "no" ; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 WX_SHARED=0
8546 elif test "$withval" = "auto" ; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8548 $as_echo "will be automatically detected" >&6; }
8549 WX_SHARED=""
8550 else
8551 as_fn_error $? "
8552 Unrecognized option value (allowed values: yes, auto)
8553 " "$LINENO" 5
8560 # Check whether --with-wxdebug was given.
8561 if test "${with_wxdebug+set}" = set; then :
8562 withval=$with_wxdebug;
8563 else
8564 withval="auto"
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8569 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8570 if test "$withval" = "yes" ; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8572 $as_echo "yes" >&6; }
8573 WX_DEBUG=1
8575 elif test "1" = "1" -a "$withval" = "no" ; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8578 WX_DEBUG=0
8579 elif test "$withval" = "auto" ; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8581 $as_echo "will be automatically detected" >&6; }
8582 WX_DEBUG=""
8583 else
8584 as_fn_error $? "
8585 Unrecognized option value (allowed values: yes, auto)
8586 " "$LINENO" 5
8593 # Check whether --with-wxversion was given.
8594 if test "${with_wxversion+set}" = set; then :
8595 withval=$with_wxversion;
8596 else
8597 withval="auto"
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8602 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8603 if test "$withval" = "auto" ; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8605 $as_echo "will be automatically detected" >&6; }
8606 WX_RELEASE=""
8607 else
8609 wx_requested_major_version=`echo $withval | \
8610 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8611 wx_requested_minor_version=`echo $withval | \
8612 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8614 if test "${#wx_requested_major_version}" != "1" -o \
8615 "${#wx_requested_minor_version}" != "1" ; then
8616 as_fn_error $? "
8617 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0)
8618 " "$LINENO" 5
8621 WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5
8623 $as_echo "$WX_RELEASE" >&6; }
8627 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8628 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8629 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8630 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8631 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8632 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
8635 # Force using a static wxWidgets library if the executable is to be linked statically.
8636 if test ${enable_static:-no} = yes; then :
8637 WX_SHARED=0
8639 # Force using a unicode build of the library
8640 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 :
8641 WX_UNICODE=1
8643 DEBUG=$WX_DEBUG
8645 if test "$WX_SHARED" = "1" ; then
8646 WXCONFIG_FLAGS="--static=no "
8647 elif test "$WX_SHARED" = "0" ; then
8648 WXCONFIG_FLAGS="--static=yes "
8651 if test "$WX_DEBUG" = "1" ; then
8652 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8653 elif test "$WX_DEBUG" = "0" ; then
8654 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8657 if test "$WX_UNICODE" = "1" ; then
8658 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8659 elif test "$WX_UNICODE" = "0" ; then
8660 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8663 if test -n "$TOOLKIT" ; then
8664 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8667 if test -n "$WX_RELEASE" ; then
8668 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE "
8671 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8673 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8674 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8678 if test x${WX_CONFIG_NAME+set} != xset ; then
8679 WX_CONFIG_NAME=wx-config
8682 if test "x$wx_config_name" != x ; then
8683 WX_CONFIG_NAME="$wx_config_name"
8686 if test x$wx_config_exec_prefix != x ; then
8687 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8688 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8690 if test x$wx_config_prefix != x ; then
8691 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8692 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8694 if test "$cross_compiling" = "yes"; then
8695 wx_config_args="$wx_config_args --host=$host_alias"
8698 if test -x "$WX_CONFIG_NAME" ; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8700 $as_echo_n "checking for wx-config... " >&6; }
8701 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8703 $as_echo "$WX_CONFIG_PATH" >&6; }
8704 else
8705 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8706 set dummy $WX_CONFIG_NAME; ac_word=$2
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8708 $as_echo_n "checking for $ac_word... " >&6; }
8709 if ${ac_cv_path_WX_CONFIG_PATH+:} false; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 case $WX_CONFIG_PATH in
8713 [\\/]* | ?:[\\/]*)
8714 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8719 for as_dir in $as_dummy
8721 IFS=$as_save_IFS
8722 test -z "$as_dir" && as_dir=.
8723 for ac_exec_ext in '' $ac_executable_extensions; do
8724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8725 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8727 break 2
8729 done
8730 done
8731 IFS=$as_save_IFS
8733 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8735 esac
8737 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8738 if test -n "$WX_CONFIG_PATH"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8740 $as_echo "$WX_CONFIG_PATH" >&6; }
8741 else
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8749 if test "$WX_CONFIG_PATH" != "no" ; then
8750 WX_VERSION=""
8752 min_wx_version=2.8.12
8753 if test -z "$WXCONFIG_FLAGS" ; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8755 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8758 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8761 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS"
8763 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8764 wx_config_major_version=`echo $WX_VERSION | \
8765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8766 wx_config_minor_version=`echo $WX_VERSION | \
8767 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8768 wx_config_micro_version=`echo $WX_VERSION | \
8769 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8771 wx_requested_major_version=`echo $min_wx_version | \
8772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8773 wx_requested_minor_version=`echo $min_wx_version | \
8774 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8775 wx_requested_micro_version=`echo $min_wx_version | \
8776 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8779 wx_ver_ok=""
8780 if test "x$WX_VERSION" != x ; then
8781 if test $wx_config_major_version -gt $wx_requested_major_version; then
8782 wx_ver_ok=yes
8783 else
8784 if test $wx_config_major_version -eq $wx_requested_major_version; then
8785 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8786 wx_ver_ok=yes
8787 else
8788 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8789 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8790 wx_ver_ok=yes
8799 if test -n "$wx_ver_ok"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
8801 $as_echo "yes (version $WX_VERSION)" >&6; }
8802 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs `
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
8805 $as_echo_n "checking for wxWidgets static library... " >&6; }
8806 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
8807 if test "x$WX_LIBS_STATIC" = "x"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8810 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8812 $as_echo "yes" >&6; }
8815 wx_has_cppflags=""
8816 if test $wx_config_major_version -gt 2; then
8817 wx_has_cppflags=yes
8818 else
8819 if test $wx_config_major_version -eq 2; then
8820 if test $wx_config_minor_version -gt 2; then
8821 wx_has_cppflags=yes
8822 else
8823 if test $wx_config_minor_version -eq 2; then
8824 if test $wx_config_micro_version -ge 6; then
8825 wx_has_cppflags=yes
8832 wx_has_rescomp=""
8833 if test $wx_config_major_version -gt 2; then
8834 wx_has_rescomp=yes
8835 else
8836 if test $wx_config_major_version -eq 2; then
8837 if test $wx_config_minor_version -ge 7; then
8838 wx_has_rescomp=yes
8842 if test "x$wx_has_rescomp" = x ; then
8843 WX_RESCOMP=
8844 else
8845 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8848 if test "x$wx_has_cppflags" = x ; then
8849 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
8850 WX_CPPFLAGS=$WX_CFLAGS
8851 WX_CXXFLAGS=$WX_CFLAGS
8853 WX_CFLAGS_ONLY=$WX_CFLAGS
8854 WX_CXXFLAGS_ONLY=$WX_CFLAGS
8855 else
8856 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags `
8857 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags `
8858 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
8860 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8861 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8864 wxWin=1
8866 else
8868 if test "x$WX_VERSION" = x; then
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8871 else
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
8873 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
8876 WX_CFLAGS=""
8877 WX_CPPFLAGS=""
8878 WX_CXXFLAGS=""
8879 WX_LIBS=""
8880 WX_LIBS_STATIC=""
8881 WX_RESCOMP=""
8883 if test ! -z "$WXCONFIG_FLAGS"; then
8885 wx_error_message="
8886 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8887 build with the following settings:
8888 $WXCONFIG_FLAGS
8889 but such build is not available.
8891 To see the wxWidgets builds available on this system, please use
8892 'wx-config --list' command. To use the default build, returned by
8893 'wx-config --selected-config', use the options with their 'auto'
8894 default values."
8898 wx_error_message="
8899 The requested wxWidgets build couldn't be found.
8900 $wx_error_message
8902 If you still get this error, then check that 'wx-config' is
8903 in path, the directory where wxWidgets libraries are installed
8904 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8905 or equivalent variable and wxWidgets version is 2.8.12 or above."
8907 as_fn_error $? "$wx_error_message" "$LINENO" 5
8910 else
8912 WX_CFLAGS=""
8913 WX_CPPFLAGS=""
8914 WX_CXXFLAGS=""
8915 WX_LIBS=""
8916 WX_LIBS_STATIC=""
8917 WX_RESCOMP=""
8933 WX_VERSION_MAJOR="$wx_config_major_version"
8934 WX_VERSION_MINOR="$wx_config_minor_version"
8935 WX_VERSION_MICRO="$wx_config_micro_version"
8940 if test "$wxWin" != 1; then :
8941 as_fn_error $? "
8942 wxWidgets must be installed on your system but wx-config
8943 script couldn't be found. Please check that wx-config is
8944 in path or specified by --with-wx-config=path flag, the
8945 directory where wxWidgets libraries are installed (returned
8946 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8947 equivalent variable and wxWidgets version is 2.8.12 or above.
8948 " "$LINENO" 5
8951 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8952 as_fn_error $? "
8953 This version of wxWidgets is known to not work with aMule.
8954 Please upgrade to a newer version.
8955 " "$LINENO" 5
8959 WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8960 if test $WX_RELEASE -lt 26 ; then
8962 as_fn_error $? "
8963 Cannot detect the wxWidgets configuration for the selected wxWidgets build
8964 since its version is $WX_VERSION < 2.6.0; please install a newer
8965 version of wxWidgets.
8966 " "$LINENO" 5
8969 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8971 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8972 echo "[dbg] Using wx-config --selected-config"
8973 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8976 if test "$WX_SHARED" = "1"; then
8977 STATIC=0
8978 elif test "$WX_SHARED" = "0"; then
8979 STATIC=1
8983 if test -z "$UNICODE" ; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8986 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8988 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8990 if test "$WX_UNICODE" != "0"; then
8991 WX_UNICODE=1
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8993 $as_echo "yes" >&6; }
8994 else
8995 WX_UNICODE=0
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
8999 else
9001 WX_UNICODE=$UNICODE
9005 if test -z "$DEBUG" ; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
9008 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
9010 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
9012 if test "$WX_DEBUG" != "0"; then
9013 WX_DEBUG=1
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9015 $as_echo "yes" >&6; }
9016 else
9017 WX_DEBUG=0
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9021 else
9023 WX_DEBUG=$DEBUG
9027 if test -z "$STATIC" ; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
9030 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
9032 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
9034 if test "$WX_STATIC" != "0"; then
9035 WX_STATIC=1
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9037 $as_echo "yes" >&6; }
9038 else
9039 WX_STATIC=0
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9043 else
9045 WX_STATIC=$STATIC
9049 if test "$WX_STATIC" != "0"; then
9050 WX_SHARED=0
9051 else
9052 WX_SHARED=1
9059 if test -z "$TOOLKIT" ; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
9062 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
9064 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
9065 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
9066 WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*")
9067 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
9068 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
9069 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
9070 WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*")
9071 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
9072 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
9073 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
9075 WX_PORT="unknown"
9076 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
9077 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
9078 if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi
9079 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
9080 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
9081 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
9082 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi
9083 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
9084 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
9085 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
9087 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
9088 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
9091 if test "$WX_PORT" = "unknown" ; then
9092 as_fn_error $? "
9093 Cannot detect the currently installed wxWidgets port !
9094 Please check your 'wx-config --cxxflags'...
9095 " "$LINENO" 5
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
9099 $as_echo "$WX_PORT" >&6; }
9100 else
9101 WX_PORT=$TOOLKIT
9106 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9107 echo "[dbg] Values of all WX_* options after final detection:"
9108 echo "[dbg] WX_DEBUG: $WX_DEBUG"
9109 echo "[dbg] WX_UNICODE: $WX_UNICODE"
9110 echo "[dbg] WX_SHARED: $WX_SHARED"
9111 echo "[dbg] WX_RELEASE: $WX_RELEASE"
9112 echo "[dbg] WX_PORT: $WX_PORT"
9115 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
9116 as_fn_error $? "
9117 Cannot build shared library against a static build of wxWidgets !
9118 This error happens because the wxWidgets build which was selected
9119 has been detected as static while you asked to build $PACKAGE_NAME
9120 as shared library and this is not possible.
9121 Use the '--disable-shared' option to build $PACKAGE_NAME
9122 as static library or '--with-wxshared' to use wxWidgets as shared library.
9123 " "$LINENO" 5
9126 if test -z "$UNICODE" ; then
9127 UNICODE=$WX_UNICODE
9129 if test -z "$SHARED" ; then
9130 SHARED=$WX_SHARED
9132 if test -z "$TOOLKIT" ; then
9133 TOOLKIT=$WX_PORT
9136 if test "$DEBUG" = "1"; then
9137 BUILD="debug"
9138 CXXFLAGS="$CXXFLAGS -g -O0"
9139 CFLAGS="$CFLAGS -g -O0"
9140 elif test "$DEBUG" = "0"; then
9141 BUILD="release"
9142 CXXFLAGS="$CXXFLAGS -O2"
9143 CFLAGS="$CFLAGS -O2"
9147 # We also need wxBase
9148 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
9149 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
9150 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
9152 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
9156 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
9157 if test "${WX_PORT}" = base; then :
9158 as_fn_error $? "
9159 The selected components need a wxWidgets library with GUI,
9160 but your installation is base-only. Please install a GUI
9161 enabled version of wxWidgets and then retry.
9162 " "$LINENO" 5
9168 if test ${SYS:-unknown} = win32; then :
9169 if test -n "$ac_tool_prefix"; then
9170 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9171 set dummy ${ac_tool_prefix}windres; ac_word=$2
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if ${ac_cv_prog_RC+:} false; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 if test -n "$RC"; then
9178 ac_cv_prog_RC="$RC" # Let the user override the test.
9179 else
9180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181 for as_dir in $PATH
9183 IFS=$as_save_IFS
9184 test -z "$as_dir" && as_dir=.
9185 for ac_exec_ext in '' $ac_executable_extensions; do
9186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9187 ac_cv_prog_RC="${ac_tool_prefix}windres"
9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189 break 2
9191 done
9192 done
9193 IFS=$as_save_IFS
9197 RC=$ac_cv_prog_RC
9198 if test -n "$RC"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9200 $as_echo "$RC" >&6; }
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9208 if test -z "$ac_cv_prog_RC"; then
9209 ac_ct_RC=$RC
9210 # Extract the first word of "windres", so it can be a program name with args.
9211 set dummy windres; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if ${ac_cv_prog_ac_ct_RC+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 if test -n "$ac_ct_RC"; then
9218 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
9219 else
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9227 ac_cv_prog_ac_ct_RC="windres"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9231 done
9232 done
9233 IFS=$as_save_IFS
9237 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9238 if test -n "$ac_ct_RC"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9240 $as_echo "$ac_ct_RC" >&6; }
9241 else
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9246 if test "x$ac_ct_RC" = x; then
9247 RC=":"
9248 else
9249 case $cross_compiling:$ac_tool_warned in
9250 yes:)
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9253 ac_tool_warned=yes ;;
9254 esac
9255 RC=$ac_ct_RC
9257 else
9258 RC="$ac_cv_prog_RC"
9264 # Check for libupnp
9265 # Check whether --enable-upnp was given.
9266 if test "${enable_upnp+set}" = set; then :
9267 enableval=$enable_upnp;
9271 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9273 else
9274 enable_upnp=no
9276 if test ${enable_upnp:-yes} = yes; then :
9280 # Check whether --with-libupnp-prefix was given.
9281 if test "${with_libupnp_prefix+set}" = set; then :
9282 withval=$with_libupnp_prefix;
9283 if test -d "$withval/lib64/pkgconfig"; then :
9285 export PKG_CONFIG_PATH=$withval/lib64/pkgconfig
9287 else
9289 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9296 if test $cross_compiling = no; then :
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9299 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9300 if test -n "$PKG_CONFIG"; then :
9302 if $PKG_CONFIG libupnp --exists; then :
9304 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
9305 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9307 result=yes
9308 resultstr=" (version $LIBUPNP_VERSION)"
9309 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
9310 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
9311 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
9312 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
9313 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
9315 else
9317 result=no
9318 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9322 else
9324 result=no
9325 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9329 else
9331 result=no
9332 resultstr=" (pkg-config not found)"
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9336 $as_echo "$result$resultstr" >&6; }
9337 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9339 else
9341 result=no
9342 libupnp_error="cross compiling"
9346 if test ${result:-no} = yes; then :
9347 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9348 else
9349 enable_upnp=disabled
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9351 UPnP code has been disabled because ${libupnp_error}." >&5
9352 $as_echo "$as_me: WARNING:
9353 UPnP code has been disabled because ${libupnp_error}." >&2;}
9354 _mule_warning_5=yes
9355 _mule_has_warnings=yes
9364 # Check for Crypto++ (requires C++)
9365 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9366 # Check for CryptoPP >= 5.5
9369 # Check whether --with-crypto-prefix was given.
9370 if test "${with_crypto_prefix+set}" = set; then :
9371 withval=$with_crypto_prefix;
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.5" >&5
9376 $as_echo_n "checking for crypto++ version >= 5.5... " >&6; }
9378 cryptopp_found=false
9380 if test -n "$with_crypto_prefix"; then :
9382 CRYPTOPP_PREFIX="$with_crypto_prefix"
9383 # Find the Cryptopp header in the user-provided location
9384 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then
9386 cryptopp_found=true
9387 CRYPTOPP_LIB_NAME="cryptopp"
9388 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9389 CRYPTOPP_CPPFLAGS=
9390 CRYPTOPP_LDFLAGS=
9391 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9393 else
9395 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9396 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then :
9398 cryptopp_found=true
9399 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9400 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include"
9401 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib"
9402 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9403 break
9406 done
9411 else
9413 # Check whether the compiler can find it
9414 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9418 #include <$CRYPTOPP_LIB_NAME/cryptlib.h>
9421 main ()
9425 return 0;
9428 _ACEOF
9429 if ac_fn_cxx_try_compile "$LINENO"; then :
9431 cryptopp_found=true
9432 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9433 CRYPTOPP_CPPFLAGS=
9434 CRYPTOPP_LDFLAGS=
9435 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9436 break
9439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440 done
9444 if $cryptopp_found; then :
9446 # Find out the crypto++ version and check against the minimum required
9447 # Ask the compiler where are the crypto++ files
9448 mule_backup_CPPFLAGS="$CPPFLAGS"
9449 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS"
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9453 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h>
9455 _ACEOF
9456 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'`
9457 rm -f conftest*
9458 CPPFLAGS="$mule_backup_CPPFLAGS"
9459 # Set a prefix suitable for --with-crypto-prefix
9460 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}"
9461 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}"
9462 # Now check the version
9463 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9464 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9465 minvers=`echo 5.5 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9467 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9469 result=yes
9470 resultstr=" (version $CRYPTOPP_VERSION_STRING)"
9472 cat >>confdefs.h <<_ACEOF
9473 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9474 _ACEOF
9477 else
9479 result=no
9480 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9481 CRYPTOPP_CPPFLAGS=
9482 CRYPTOPP_LDFLAGS=
9483 CRYPTOPP_LIBS=
9487 else
9488 result="no"; resultstr=
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9492 $as_echo "$result$resultstr" >&6; }
9494 if test ${result:-no} = yes; then :
9496 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS "
9498 else
9500 as_fn_error $? "
9501 Could not find crypto++ installation or sources.
9502 Please try again with --with-crypto-prefix=/my_crypto_prefix
9503 (replace /my_crypto_prefix with a valid path to your crypto++
9504 installation or source directory)." "$LINENO" 5
9513 # Check whether --enable-debug was given.
9514 if test "${enable_debug+set}" = set; then :
9515 enableval=$enable_debug;
9519 # Check whether --enable-profile was given.
9520 if test "${enable_profile+set}" = set; then :
9521 enableval=$enable_profile;
9525 # Check whether --enable-optimize was given.
9526 if test "${enable_optimize+set}" = set; then :
9527 enableval=$enable_optimize;
9532 if test ${enable_debug:-yes} = yes; then :
9534 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9536 MULECFLAGS="$MULECFLAGS -g"
9537 MULECXXFLAGS="$MULECXXFLAGS -g"
9539 if test ${GCC:-no} = yes; then :
9541 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9542 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9545 if test ${SYS:-unknown} = win32; then :
9546 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9549 else
9551 if test ${GCC:-no} = yes; then :
9553 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9554 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9560 if test ${enable_profile:-no} = yes; then :
9563 MULECFLAGS="$MULECFLAGS -pg"
9564 MULECXXFLAGS="$MULECXXFLAGS -pg"
9566 MULELDFLAGS="$MULELDFLAGS -pg"
9570 if test ${enable_optimize:-no} = yes; then :
9572 MULECFLAGS="$MULECFLAGS -O2"
9573 MULECXXFLAGS="$MULECXXFLAGS -O2"
9577 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9581 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 :
9586 if test ${GCC:-no} = yes; then :
9588 mule_backup_CXXFLAGS="$CXXFLAGS"
9589 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9592 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h. */
9598 main ()
9601 int a;
9602 short *b = (short*)&a;
9603 short c = *b;
9605 return c;
9608 return 0;
9611 _ACEOF
9612 if ac_fn_cxx_try_compile "$LINENO"; then :
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9617 else
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9620 $as_echo "yes" >&6; }
9621 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627 CXXFLAGS="$mule_backup_CXXFLAGS"
9631 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9633 mule_backup_CPPFLAGS="$CPPFLAGS"
9634 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9637 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9642 #include <wx/wx.h>
9643 #include <wx/filefn.h>
9644 #ifndef wxHAS_LARGE_FILES
9645 #error No LargeFile support!
9646 #endif
9649 _ACEOF
9650 if ac_fn_cxx_try_cpp "$LINENO"; then :
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9653 $as_echo "yes" >&6; }
9655 else
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658 $as_echo "no" >&6; }
9659 as_fn_error $? "
9660 Support for large files in wxWidgets is required by aMule.
9661 To continue you must recompile wxWidgets with support for
9662 large files enabled." "$LINENO" 5
9665 rm -f conftest.err conftest.i conftest.$ac_ext
9667 CPPFLAGS="$mule_backup_CPPFLAGS"
9671 # Check if the compiler is broken, wrt. exceptions.
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9674 $as_echo_n "checking for exception-handling... " >&6; }
9675 if test "$cross_compiling" = yes; then :
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9678 $as_echo "undeterminable" >&6; }
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9680 Cross-compilation detected, so exception handling cannot be tested.
9681 Note that broken exception handling in your compiler may lead to
9682 unexpected crashes." >&5
9683 $as_echo "$as_me: WARNING:
9684 Cross-compilation detected, so exception handling cannot be tested.
9685 Note that broken exception handling in your compiler may lead to
9686 unexpected crashes." >&2;}
9687 _mule_warning_6=yes
9688 _mule_has_warnings=yes
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9697 main ()
9700 try {
9701 throw 1;
9702 } catch (int) {
9703 return 0;
9705 return 1;
9708 return 0;
9711 _ACEOF
9712 if ac_fn_cxx_try_run "$LINENO"; then :
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9715 $as_echo "yes" >&6; }
9717 else
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720 $as_echo "no" >&6; }
9721 as_fn_error $? "Exception handling does not work. Broken compiler?" "$LINENO" 5
9724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9725 conftest.$ac_objext conftest.beam conftest.$ac_ext
9731 for ac_header in typeinfo
9732 do :
9733 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9734 if test "x$ac_cv_header_typeinfo" = xyes; then :
9735 cat >>confdefs.h <<_ACEOF
9736 #define HAVE_TYPEINFO 1
9737 _ACEOF
9741 done
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9744 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9749 #ifdef HAVE_TYPEINFO
9750 # include <typeinfo>
9751 #endif
9752 #include <cxxabi.h>
9755 main ()
9758 int status;
9759 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9760 std::type_info *ti = abi::__cxa_current_exception_type();
9763 return 0;
9766 _ACEOF
9767 if ac_fn_cxx_try_link "$LINENO"; then :
9770 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9773 $as_echo "yes" >&6; }
9775 else
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778 $as_echo "no" >&6; }
9781 rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9785 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
9788 # Check whether --with-boost was given.
9789 if test "${with_boost+set}" = set; then :
9790 withval=$with_boost;
9791 else
9792 with_boost=no
9796 if test ${with_boost:-no} != no; then :
9798 echo "$as_me: this is boost.m4 serial 25" >&5
9799 boost_save_IFS=$IFS
9800 boost_version_req=1.47
9801 IFS=.
9802 set x $boost_version_req 0 0 0
9803 IFS=$boost_save_IFS
9804 shift
9805 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9806 boost_version_req_string=$1.$2.$3
9807 # If BOOST_ROOT is set and the user has not provided a value to
9808 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9809 if test x"$BOOST_ROOT" != x; then
9810 if test x"$with_boost" = x; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9812 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9813 with_boost=$BOOST_ROOT
9814 else
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9816 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9819 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9820 boost_save_CPPFLAGS=$CPPFLAGS
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9822 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9823 if ${boost_cv_inc_path+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 boost_cv_inc_path=no
9827 ac_ext=cpp
9828 ac_cpp='$CXXCPP $CPPFLAGS'
9829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9834 #include <boost/version.hpp>
9835 #if !defined BOOST_VERSION
9836 # error BOOST_VERSION is not defined
9837 #elif BOOST_VERSION < $boost_version_req
9838 # error Boost headers version < $boost_version_req
9839 #endif
9842 main ()
9846 return 0;
9848 _ACEOF
9849 # If the user provided a value to --with-boost, use it and only it.
9850 case $with_boost in #(
9851 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9852 /usr/include C:/Boost/include;; #(
9853 *) set x "$with_boost/include" "$with_boost";;
9854 esac
9855 shift
9856 for boost_dir
9858 # Without --layout=system, Boost (or at least some versions) installs
9859 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9860 # find headers in such directories.
9862 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9863 # order followed by ${boost_dir}. The final '.' is a sentinel for
9864 # searching $boost_dir" itself. Entries are whitespace separated.
9866 # I didn't indent this loop on purpose (to avoid over-indented code)
9867 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
9868 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
9869 && echo .`
9870 for boost_inc in $boost_layout_system_search_list
9872 if test x"$boost_inc" != x.; then
9873 boost_inc="$boost_dir/$boost_inc"
9874 else
9875 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9877 if test x"$boost_inc" != x; then
9878 # We are going to check whether the version of Boost installed
9879 # in $boost_inc is usable by running a compilation that
9880 # #includes it. But if we pass a -I/some/path in which Boost
9881 # is not installed, the compiler will just skip this -I and
9882 # use other locations (either from CPPFLAGS, or from its list
9883 # of system include directories). As a result we would use
9884 # header installed on the machine instead of the /some/path
9885 # specified by the user. So in that precise case (trying
9886 # $boost_inc), make sure the version.hpp exists.
9888 # Use test -e as there can be symlinks.
9889 test -e "$boost_inc/boost/version.hpp" || continue
9890 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9892 if ac_fn_cxx_try_compile "$LINENO"; then :
9893 boost_cv_inc_path=yes
9894 else
9895 boost_cv_version=no
9897 rm -f core conftest.err conftest.$ac_objext
9898 if test x"$boost_cv_inc_path" = xyes; then
9899 if test x"$boost_inc" != x; then
9900 boost_cv_inc_path=$boost_inc
9902 break 2
9904 done
9905 done
9906 ac_ext=cpp
9907 ac_cpp='$CXXCPP $CPPFLAGS'
9908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9914 $as_echo "$boost_cv_inc_path" >&6; }
9915 case $boost_cv_inc_path in #(
9917 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9919 $as_echo "$as_me: $boost_errmsg" >&6;}
9920 with_boost=disabled
9921 ;;#(
9922 yes)
9923 BOOST_CPPFLAGS=
9924 ;;#(
9926 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9928 esac
9929 if test x"$boost_cv_inc_path" != xno; then
9931 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9934 $as_echo_n "checking for Boost's header version... " >&6; }
9935 if ${boost_cv_lib_version+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 ac_ext=cpp
9939 ac_cpp='$CXXCPP $CPPFLAGS'
9940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 #include <boost/version.hpp>
9946 boost-lib-version = BOOST_LIB_VERSION
9947 _ACEOF
9948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9949 grep -v '#' |
9950 tr -d '\r' |
9951 tr -s '\n' ' ' |
9952 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
9953 boost_cv_lib_version=`cat conftest.i`
9955 rm -rf conftest*
9956 ac_ext=cpp
9957 ac_cpp='$CXXCPP $CPPFLAGS'
9958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9964 $as_echo "$boost_cv_lib_version" >&6; }
9965 # e.g. "134" for 1_34_1 or "135" for 1_35
9966 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
9967 case $boost_major_version in #(
9968 '' | *[!0-9]*)
9969 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
9971 esac
9973 CPPFLAGS=$boost_save_CPPFLAGS
9975 if test ${with_boost:-no} != disabled; then :
9977 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9978 for cc_temp in $compiler""; do
9979 case $cc_temp in
9980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9982 \-*) ;;
9983 *) break;;
9984 esac
9985 done
9986 cc_basename=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9987 # All known linkers require a `.a' archive for static linking (except MSVC,
9988 # which needs '.lib').
9989 libext=a
9990 case $cc_basename in
9991 cl*) libext=lib ;;
9992 esac
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9995 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9996 if ${boost_cv_lib_tag+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 boost_cv_lib_tag=unknown
10000 if test x$boost_cv_inc_path != xno; then
10001 ac_ext=cpp
10002 ac_cpp='$CXXCPP $CPPFLAGS'
10003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10006 # The following tests are mostly inspired by boost/config/auto_link.hpp
10007 # The list is sorted to most recent/common to oldest compiler (in order
10008 # to increase the likelihood of finding the right compiler with the
10009 # least number of compilation attempt).
10010 # Beware that some tests are sensible to the order (for instance, we must
10011 # look for MinGW before looking for GCC3).
10012 # I used one compilation test per compiler with a #error to recognize
10013 # each compiler so that it works even when cross-compiling (let me know
10014 # if you know a better approach).
10015 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
10016 # como, edg, kcc, bck, mp, sw, tru, xlc
10017 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
10018 # the same defines as GCC's).
10019 for i in \
10020 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10021 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10022 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
10023 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
10024 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10025 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10026 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
10027 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
10028 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10029 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10030 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
10031 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
10032 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10033 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10034 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
10035 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
10036 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
10037 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10038 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
10039 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
10040 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
10041 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10042 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
10043 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
10044 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
10045 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10046 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
10047 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
10048 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
10049 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10050 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
10051 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
10052 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
10053 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10054 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
10055 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
10056 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
10057 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10058 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
10059 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
10060 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
10061 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10062 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
10063 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
10064 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10065 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10066 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
10067 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
10068 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10069 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10070 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
10071 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
10072 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10073 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10074 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
10075 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
10076 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10077 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10078 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
10079 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
10080 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
10081 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10082 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
10083 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
10084 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
10085 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
10086 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
10087 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
10088 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
10089 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
10090 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
10091 "defined __BORLANDC__ @ bcb" \
10092 "defined __ICC && (defined __unix || defined ) @ il" \
10093 "defined __ICL @ iw" \
10094 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
10095 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
10096 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
10097 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
10098 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
10099 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
10101 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
10102 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10106 #if $boost_tag_test
10107 /* OK */
10108 #else
10109 # error $boost_tag_test
10110 #endif
10113 main ()
10117 return 0;
10119 _ACEOF
10120 if ac_fn_cxx_try_compile "$LINENO"; then :
10121 boost_cv_lib_tag=$boost_tag; break
10123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10124 done
10125 ac_ext=cpp
10126 ac_cpp='$CXXCPP $CPPFLAGS'
10127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10130 case $boost_cv_lib_tag in #(
10131 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10132 # to "gcc41" for instance.
10133 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10134 gcc*)
10135 boost_tag_x=
10136 case $host_os in #(
10137 darwin*)
10138 if test $boost_major_version -ge 136; then
10139 # The `x' added in r46793 of Boost.
10140 boost_tag_x=x
10141 fi;;
10142 esac
10143 # We can specify multiple tags in this variable because it's used by
10144 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10145 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10146 ;; #(
10147 unknown)
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10149 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10150 boost_cv_lib_tag=
10152 esac
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10156 $as_echo "$boost_cv_lib_tag" >&6; }
10157 # Check whether --enable-static-boost was given.
10158 if test "${enable_static_boost+set}" = set; then :
10159 enableval=$enable_static_boost; enable_static_boost=yes
10160 else
10161 enable_static_boost=no
10164 # Check whether we do better use `mt' even though we weren't ask to.
10165 ac_ext=cpp
10166 ac_cpp='$CXXCPP $CPPFLAGS'
10167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10173 #if defined _REENTRANT || defined _MT || defined __MT__
10174 /* use -mt */
10175 #else
10176 # error MT not needed
10177 #endif
10180 main ()
10184 return 0;
10186 _ACEOF
10187 if ac_fn_cxx_try_compile "$LINENO"; then :
10188 boost_guess_use_mt=:
10189 else
10190 boost_guess_use_mt=false
10192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10193 ac_ext=cpp
10194 ac_cpp='$CXXCPP $CPPFLAGS'
10195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10200 $as_echo_n "checking for Boost sources... " >&6; }
10201 mule_backup_CPPFLAGS="$CPPFLAGS"
10202 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10206 #include <boost/../libs/system/src/error_code.cpp>
10208 main ()
10212 return 0;
10215 _ACEOF
10216 if ac_fn_cxx_try_compile "$LINENO"; then :
10219 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10222 $as_echo "yes" >&6; }
10224 else
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10228 if test x"$boost_cv_inc_path" = xno; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10230 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10231 else
10232 ac_ext=cpp
10233 ac_cpp='$CXXCPP $CPPFLAGS'
10234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10237 if test x"$boost_cv_inc_path" = xno; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10239 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10240 else
10241 ac_ext=cpp
10242 ac_cpp='$CXXCPP $CPPFLAGS'
10243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10246 boost_save_CPPFLAGS=$CPPFLAGS
10247 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10248 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10249 if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then :
10251 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10253 else
10254 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
10258 CPPFLAGS=$boost_save_CPPFLAGS
10259 ac_ext=cpp
10260 ac_cpp='$CXXCPP $CPPFLAGS'
10261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10266 boost_save_CPPFLAGS=$CPPFLAGS
10267 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10269 $as_echo_n "checking for the Boost system library... " >&6; }
10270 if ${boost_cv_lib_system+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 boost_cv_lib_system=no
10274 case "mt" in #(
10275 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
10276 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10277 (*) boost_mt=; boost_rtopt=mt;;
10278 esac
10279 if test $enable_static_boost = yes; then
10280 boost_rtopt="s$boost_rtopt"
10282 # Find the proper debug variant depending on what we've been asked to find.
10283 case $boost_rtopt in #(
10284 (*d*) boost_rt_d=$boost_rtopt;; #(
10285 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
10286 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10287 (*) boost_rt_d='-d';;
10288 esac
10289 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10290 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
10291 $boost_guess_use_mt && boost_mt=-mt
10292 # Look for the abs path the static archive.
10293 # $libext is computed by Libtool but let's make sure it's non empty.
10294 test -z "$libext" &&
10295 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10296 boost_save_ac_objext=$ac_objext
10297 # Generate the test file.
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10300 #include <boost/system/error_code.hpp>
10303 main ()
10305 boost::system::error_code e; e.clear();
10307 return 0;
10309 _ACEOF
10310 if ac_fn_cxx_try_compile "$LINENO"; then :
10311 ac_objext=do_not_rm_me_plz
10312 else
10313 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
10315 rm -f core conftest.err conftest.$ac_objext
10316 ac_objext=$boost_save_ac_objext
10317 boost_failed_libs=
10318 # Don't bother to ident the following nested for loops, only the 2
10319 # innermost ones matter.
10320 for boost_lib_ in system; do
10321 for boost_tag_ in -$boost_cv_lib_tag ''; do
10322 for boost_ver_ in -$boost_cv_lib_version ''; do
10323 for boost_mt_ in $boost_mt -mt ''; do
10324 for boost_rtopt_ in $boost_rtopt '' -d; do
10325 for boost_lib in \
10326 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10327 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10328 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10329 boost_$boost_lib_$boost_tag_$boost_ver_
10331 # Avoid testing twice the same lib
10332 case $boost_failed_libs in #(
10333 (*@$boost_lib@*) continue;;
10334 esac
10335 # If with_boost is empty, we'll search in /lib first, which is not quite
10336 # right so instead we'll try to a location based on where the headers are.
10337 boost_tmp_lib=$with_boost
10338 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
10339 for boost_ldpath in "$boost_tmp_lib/lib" '' \
10340 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
10341 "$with_boost" C:/Boost/lib /lib*
10343 # Don't waste time with directories that don't exist.
10344 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
10345 continue
10347 boost_save_LDFLAGS=$LDFLAGS
10348 # Are we looking for a static library?
10349 case $boost_ldpath:$boost_rtopt_ in #(
10350 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
10351 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
10352 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
10353 (*) # No: use -lboost_foo to find the shared library.
10354 boost_cv_lib_system_LIBS="-l$boost_lib";;
10355 esac
10356 boost_save_LIBS=$LIBS
10357 LIBS="$boost_cv_lib_system_LIBS $LIBS"
10358 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
10359 rm -f conftest$ac_exeext
10360 boost_save_ac_ext=$ac_ext
10361 boost_use_source=:
10362 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10363 # tries to link the existing object file instead of compiling from source.
10364 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10365 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10366 if { { ac_try="$ac_link"
10367 case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10370 esac
10371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10372 $as_echo "$ac_try_echo"; } >&5
10373 (eval "$ac_link") 2>conftest.err
10374 ac_status=$?
10375 if test -s conftest.err; then
10376 grep -v '^ *+' conftest.err >conftest.er1
10377 cat conftest.er1 >&5
10378 mv -f conftest.er1 conftest.err
10380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10381 test $ac_status = 0; } && {
10382 test -z "$ac_cxx_werror_flag" ||
10383 test ! -s conftest.err
10384 } && test -s conftest$ac_exeext && {
10385 test "$cross_compiling" = yes ||
10386 $as_executable_p conftest$ac_exeext
10387 }; then :
10388 boost_cv_lib_system=yes
10389 else
10390 if $boost_use_source; then
10391 $as_echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10395 boost_cv_lib_system=no
10397 ac_objext=$boost_save_ac_objext
10398 ac_ext=$boost_save_ac_ext
10399 rm -f core conftest.err conftest_ipa8_conftest.oo \
10400 conftest$ac_exeext
10401 ac_objext=$boost_save_ac_objext
10402 LDFLAGS=$boost_save_LDFLAGS
10403 LIBS=$boost_save_LIBS
10404 if test x"$boost_cv_lib_system" = xyes; then
10405 # Check or used cached result of whether or not using -R or
10406 # -rpath makes sense. Some implementations of ld, such as for
10407 # Mac OSX, require -rpath but -R is the flag known to work on
10408 # other systems. https://github.com/tsuna/boost.m4/issues/19
10409 if ${boost_cv_rpath_link_ldflag+:} false; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 case $boost_ldpath in
10413 '') # Nothing to do.
10414 boost_cv_rpath_link_ldflag=
10415 boost_rpath_link_ldflag_found=yes;;
10417 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10418 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10419 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10420 rm -f conftest$ac_exeext
10421 boost_save_ac_ext=$ac_ext
10422 boost_use_source=:
10423 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10424 # tries to link the existing object file instead of compiling from source.
10425 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10426 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10427 if { { ac_try="$ac_link"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431 esac
10432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10433 $as_echo "$ac_try_echo"; } >&5
10434 (eval "$ac_link") 2>conftest.err
10435 ac_status=$?
10436 if test -s conftest.err; then
10437 grep -v '^ *+' conftest.err >conftest.er1
10438 cat conftest.er1 >&5
10439 mv -f conftest.er1 conftest.err
10441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10442 test $ac_status = 0; } && {
10443 test -z "$ac_cxx_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest$ac_exeext && {
10446 test "$cross_compiling" = yes ||
10447 $as_executable_p conftest$ac_exeext
10448 }; then :
10449 boost_rpath_link_ldflag_found=yes
10450 break
10451 else
10452 if $boost_use_source; then
10453 $as_echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10457 boost_rpath_link_ldflag_found=no
10459 ac_objext=$boost_save_ac_objext
10460 ac_ext=$boost_save_ac_ext
10461 rm -f core conftest.err conftest_ipa8_conftest.oo \
10462 conftest$ac_exeext
10463 done
10465 esac
10466 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10467 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
10469 LDFLAGS=$boost_save_LDFLAGS
10470 LIBS=$boost_save_LIBS
10474 test x"$boost_ldpath" != x &&
10475 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10476 boost_cv_lib_system_LDPATH="$boost_ldpath"
10477 break 7
10478 else
10479 boost_failed_libs="$boost_failed_libs@$boost_lib@"
10481 done
10482 done
10483 done
10484 done
10485 done
10486 done
10487 done # boost_lib_
10488 rm -f conftest.$ac_objext
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10492 $as_echo "$boost_cv_lib_system" >&6; }
10493 case $boost_cv_lib_system in #(
10494 (no) $as_echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
10499 esac
10500 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
10501 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
10502 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
10503 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
10504 CPPFLAGS=$boost_save_CPPFLAGS
10505 ac_ext=cpp
10506 ac_cpp='$CXXCPP $CPPFLAGS'
10507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10514 if test ${boost_cv_lib_system:-no} != yes; then :
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10517 Boost support has been disabled because Boost.System not found" >&5
10518 $as_echo "$as_me: WARNING:
10519 Boost support has been disabled because Boost.System not found" >&2;}
10520 _mule_warning_7=yes
10521 _mule_has_warnings=yes
10523 with_boost=disabled
10528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529 CPPFLAGS="$mule_backup_CPPFLAGS"
10530 if test x"$boost_cv_inc_path" = xno; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10533 Boost support has been disabled because Boost.Asio not found" >&5
10534 $as_echo "$as_me: WARNING:
10535 Boost support has been disabled because Boost.Asio not found" >&2;}
10536 _mule_warning_8=yes
10537 _mule_has_warnings=yes
10539 with_boost=disabled
10541 else
10542 ac_ext=cpp
10543 ac_cpp='$CXXCPP $CPPFLAGS'
10544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10547 boost_save_CPPFLAGS=$CPPFLAGS
10548 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10549 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10550 if test "x$ac_cv_header_boost_asio_hpp" = xyes; then :
10552 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10554 else
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10557 Boost support has been disabled because Boost.Asio not found" >&5
10558 $as_echo "$as_me: WARNING:
10559 Boost support has been disabled because Boost.Asio not found" >&2;}
10560 _mule_warning_9=yes
10561 _mule_has_warnings=yes
10563 with_boost=disabled
10568 CPPFLAGS=$boost_save_CPPFLAGS
10569 ac_ext=cpp
10570 ac_cpp='$CXXCPP $CPPFLAGS'
10571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10577 else
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10579 Boost support has been disabled because of insufficient Boost version." >&5
10580 $as_echo "$as_me: WARNING:
10581 Boost support has been disabled because of insufficient Boost version." >&2;}
10582 _mule_warning_10=yes
10583 _mule_has_warnings=yes
10593 # Ok, we have all needed libs, now checking for other stuff
10596 # Checks for header files.
10597 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10598 if test "x$ac_cv_type_size_t" = xyes; then :
10600 else
10602 cat >>confdefs.h <<_ACEOF
10603 #define size_t unsigned int
10604 _ACEOF
10608 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10609 # for constant arguments. Useless!
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10611 $as_echo_n "checking for working alloca.h... " >&6; }
10612 if ${ac_cv_working_alloca_h+:} false; then :
10613 $as_echo_n "(cached) " >&6
10614 else
10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10617 #include <alloca.h>
10619 main ()
10621 char *p = (char *) alloca (2 * sizeof (int));
10622 if (p) return 0;
10624 return 0;
10626 _ACEOF
10627 if ac_fn_cxx_try_link "$LINENO"; then :
10628 ac_cv_working_alloca_h=yes
10629 else
10630 ac_cv_working_alloca_h=no
10632 rm -f core conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext conftest.$ac_ext
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10636 $as_echo "$ac_cv_working_alloca_h" >&6; }
10637 if test $ac_cv_working_alloca_h = yes; then
10639 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10644 $as_echo_n "checking for alloca... " >&6; }
10645 if ${ac_cv_func_alloca_works+:} false; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650 #ifdef __GNUC__
10651 # define alloca __builtin_alloca
10652 #else
10653 # ifdef _MSC_VER
10654 # include <malloc.h>
10655 # define alloca _alloca
10656 # else
10657 # ifdef HAVE_ALLOCA_H
10658 # include <alloca.h>
10659 # else
10660 # ifdef _AIX
10661 #pragma alloca
10662 # else
10663 # ifndef alloca /* predefined by HP cc +Olibcalls */
10664 void *alloca (size_t);
10665 # endif
10666 # endif
10667 # endif
10668 # endif
10669 #endif
10672 main ()
10674 char *p = (char *) alloca (1);
10675 if (p) return 0;
10677 return 0;
10679 _ACEOF
10680 if ac_fn_cxx_try_link "$LINENO"; then :
10681 ac_cv_func_alloca_works=yes
10682 else
10683 ac_cv_func_alloca_works=no
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10689 $as_echo "$ac_cv_func_alloca_works" >&6; }
10691 if test $ac_cv_func_alloca_works = yes; then
10693 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10695 else
10696 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10697 # that cause trouble. Some versions do not even contain alloca or
10698 # contain a buggy version. If you still want to use their alloca,
10699 # use ar to extract alloca.o from them instead of compiling alloca.c.
10701 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10703 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10707 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10708 if ${ac_cv_os_cray+:} false; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 #if defined CRAY && ! defined CRAY2
10714 webecray
10715 #else
10716 wenotbecray
10717 #endif
10719 _ACEOF
10720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10721 $EGREP "webecray" >/dev/null 2>&1; then :
10722 ac_cv_os_cray=yes
10723 else
10724 ac_cv_os_cray=no
10726 rm -f conftest*
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10730 $as_echo "$ac_cv_os_cray" >&6; }
10731 if test $ac_cv_os_cray = yes; then
10732 for ac_func in _getb67 GETB67 getb67; do
10733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10734 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10735 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10737 cat >>confdefs.h <<_ACEOF
10738 #define CRAY_STACKSEG_END $ac_func
10739 _ACEOF
10741 break
10744 done
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10748 $as_echo_n "checking stack direction for C alloca... " >&6; }
10749 if ${ac_cv_c_stack_direction+:} false; then :
10750 $as_echo_n "(cached) " >&6
10751 else
10752 if test "$cross_compiling" = yes; then :
10753 ac_cv_c_stack_direction=0
10754 else
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757 $ac_includes_default
10759 find_stack_direction (int *addr, int depth)
10761 int dir, dummy = 0;
10762 if (! addr)
10763 addr = &dummy;
10764 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
10765 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
10766 return dir + dummy;
10770 main (int argc, char **argv)
10772 return find_stack_direction (0, argc + !argv + 20) < 0;
10774 _ACEOF
10775 if ac_fn_cxx_try_run "$LINENO"; then :
10776 ac_cv_c_stack_direction=1
10777 else
10778 ac_cv_c_stack_direction=-1
10780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10781 conftest.$ac_objext conftest.beam conftest.$ac_ext
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10786 $as_echo "$ac_cv_c_stack_direction" >&6; }
10787 cat >>confdefs.h <<_ACEOF
10788 #define STACK_DIRECTION $ac_cv_c_stack_direction
10789 _ACEOF
10794 ac_header_dirent=no
10795 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10796 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10798 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10799 if eval \${$as_ac_Header+:} false; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 #include <sys/types.h>
10805 #include <$ac_hdr>
10808 main ()
10810 if ((DIR *) 0)
10811 return 0;
10813 return 0;
10815 _ACEOF
10816 if ac_fn_cxx_try_compile "$LINENO"; then :
10817 eval "$as_ac_Header=yes"
10818 else
10819 eval "$as_ac_Header=no"
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 eval ac_res=\$$as_ac_Header
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10825 $as_echo "$ac_res" >&6; }
10826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10827 cat >>confdefs.h <<_ACEOF
10828 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10829 _ACEOF
10831 ac_header_dirent=$ac_hdr; break
10834 done
10835 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10836 if test $ac_header_dirent = dirent.h; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10838 $as_echo_n "checking for library containing opendir... " >&6; }
10839 if ${ac_cv_search_opendir+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 ac_func_search_save_LIBS=$LIBS
10843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char opendir ();
10854 main ()
10856 return opendir ();
10858 return 0;
10860 _ACEOF
10861 for ac_lib in '' dir; do
10862 if test -z "$ac_lib"; then
10863 ac_res="none required"
10864 else
10865 ac_res=-l$ac_lib
10866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10868 if ac_fn_cxx_try_link "$LINENO"; then :
10869 ac_cv_search_opendir=$ac_res
10871 rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext
10873 if ${ac_cv_search_opendir+:} false; then :
10874 break
10876 done
10877 if ${ac_cv_search_opendir+:} false; then :
10879 else
10880 ac_cv_search_opendir=no
10882 rm conftest.$ac_ext
10883 LIBS=$ac_func_search_save_LIBS
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10886 $as_echo "$ac_cv_search_opendir" >&6; }
10887 ac_res=$ac_cv_search_opendir
10888 if test "$ac_res" != no; then :
10889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10893 else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10895 $as_echo_n "checking for library containing opendir... " >&6; }
10896 if ${ac_cv_search_opendir+:} false; then :
10897 $as_echo_n "(cached) " >&6
10898 else
10899 ac_func_search_save_LIBS=$LIBS
10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10906 #ifdef __cplusplus
10907 extern "C"
10908 #endif
10909 char opendir ();
10911 main ()
10913 return opendir ();
10915 return 0;
10917 _ACEOF
10918 for ac_lib in '' x; do
10919 if test -z "$ac_lib"; then
10920 ac_res="none required"
10921 else
10922 ac_res=-l$ac_lib
10923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10925 if ac_fn_cxx_try_link "$LINENO"; then :
10926 ac_cv_search_opendir=$ac_res
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext
10930 if ${ac_cv_search_opendir+:} false; then :
10931 break
10933 done
10934 if ${ac_cv_search_opendir+:} false; then :
10936 else
10937 ac_cv_search_opendir=no
10939 rm conftest.$ac_ext
10940 LIBS=$ac_func_search_save_LIBS
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10943 $as_echo "$ac_cv_search_opendir" >&6; }
10944 ac_res=$ac_cv_search_opendir
10945 if test "$ac_res" != no; then :
10946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10953 $as_echo_n "checking for ANSI C header files... " >&6; }
10954 if ${ac_cv_header_stdc+:} false; then :
10955 $as_echo_n "(cached) " >&6
10956 else
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10959 #include <stdlib.h>
10960 #include <stdarg.h>
10961 #include <string.h>
10962 #include <float.h>
10965 main ()
10969 return 0;
10971 _ACEOF
10972 if ac_fn_cxx_try_compile "$LINENO"; then :
10973 ac_cv_header_stdc=yes
10974 else
10975 ac_cv_header_stdc=no
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 if test $ac_cv_header_stdc = yes; then
10980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10983 #include <string.h>
10985 _ACEOF
10986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10987 $EGREP "memchr" >/dev/null 2>&1; then :
10989 else
10990 ac_cv_header_stdc=no
10992 rm -f conftest*
10996 if test $ac_cv_header_stdc = yes; then
10997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000 #include <stdlib.h>
11002 _ACEOF
11003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11004 $EGREP "free" >/dev/null 2>&1; then :
11006 else
11007 ac_cv_header_stdc=no
11009 rm -f conftest*
11013 if test $ac_cv_header_stdc = yes; then
11014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11015 if test "$cross_compiling" = yes; then :
11017 else
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020 #include <ctype.h>
11021 #include <stdlib.h>
11022 #if ((' ' & 0x0FF) == 0x020)
11023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11025 #else
11026 # define ISLOWER(c) \
11027 (('a' <= (c) && (c) <= 'i') \
11028 || ('j' <= (c) && (c) <= 'r') \
11029 || ('s' <= (c) && (c) <= 'z'))
11030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11031 #endif
11033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11035 main ()
11037 int i;
11038 for (i = 0; i < 256; i++)
11039 if (XOR (islower (i), ISLOWER (i))
11040 || toupper (i) != TOUPPER (i))
11041 return 2;
11042 return 0;
11044 _ACEOF
11045 if ac_fn_cxx_try_run "$LINENO"; then :
11047 else
11048 ac_cv_header_stdc=no
11050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11051 conftest.$ac_objext conftest.beam conftest.$ac_ext
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11057 $as_echo "$ac_cv_header_stdc" >&6; }
11058 if test $ac_cv_header_stdc = yes; then
11060 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11064 for ac_header in argz.h arpa/inet.h errno.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h signal.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h
11065 do :
11066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11067 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11068 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11069 cat >>confdefs.h <<_ACEOF
11070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11071 _ACEOF
11075 done
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11078 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11079 if ${ac_cv_header_sys_wait_h+:} false; then :
11080 $as_echo_n "(cached) " >&6
11081 else
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11084 #include <sys/types.h>
11085 #include <sys/wait.h>
11086 #ifndef WEXITSTATUS
11087 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11088 #endif
11089 #ifndef WIFEXITED
11090 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11091 #endif
11094 main ()
11096 int s;
11097 wait (&s);
11098 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11100 return 0;
11102 _ACEOF
11103 if ac_fn_cxx_try_compile "$LINENO"; then :
11104 ac_cv_header_sys_wait_h=yes
11105 else
11106 ac_cv_header_sys_wait_h=no
11108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11111 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11112 if test $ac_cv_header_sys_wait_h = yes; then
11114 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11120 # Checks for typedefs, structures, and compiler characteristics.
11121 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11122 if test "x$ac_cv_type_mode_t" = xyes; then :
11124 else
11126 cat >>confdefs.h <<_ACEOF
11127 #define mode_t int
11128 _ACEOF
11132 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11133 if test "x$ac_cv_type_off_t" = xyes; then :
11135 else
11137 cat >>confdefs.h <<_ACEOF
11138 #define off_t long int
11139 _ACEOF
11143 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11144 if test "x$ac_cv_type_size_t" = xyes; then :
11146 else
11148 cat >>confdefs.h <<_ACEOF
11149 #define size_t unsigned int
11150 _ACEOF
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11155 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11156 if ${ac_cv_header_time+:} false; then :
11157 $as_echo_n "(cached) " >&6
11158 else
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11161 #include <sys/types.h>
11162 #include <sys/time.h>
11163 #include <time.h>
11166 main ()
11168 if ((struct tm *) 0)
11169 return 0;
11171 return 0;
11173 _ACEOF
11174 if ac_fn_cxx_try_compile "$LINENO"; then :
11175 ac_cv_header_time=yes
11176 else
11177 ac_cv_header_time=no
11179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11182 $as_echo "$ac_cv_header_time" >&6; }
11183 if test $ac_cv_header_time = yes; then
11185 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11190 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11191 if ${ac_cv_struct_tm+:} false; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11196 #include <sys/types.h>
11197 #include <time.h>
11200 main ()
11202 struct tm tm;
11203 int *p = &tm.tm_sec;
11204 return !p;
11206 return 0;
11208 _ACEOF
11209 if ac_fn_cxx_try_compile "$LINENO"; then :
11210 ac_cv_struct_tm=time.h
11211 else
11212 ac_cv_struct_tm=sys/time.h
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11217 $as_echo "$ac_cv_struct_tm" >&6; }
11218 if test $ac_cv_struct_tm = sys/time.h; then
11220 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11225 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11226 if ${ac_cv_type_uid_t+:} false; then :
11227 $as_echo_n "(cached) " >&6
11228 else
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11231 #include <sys/types.h>
11233 _ACEOF
11234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11235 $EGREP "uid_t" >/dev/null 2>&1; then :
11236 ac_cv_type_uid_t=yes
11237 else
11238 ac_cv_type_uid_t=no
11240 rm -f conftest*
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11244 $as_echo "$ac_cv_type_uid_t" >&6; }
11245 if test $ac_cv_type_uid_t = no; then
11247 $as_echo "#define uid_t int" >>confdefs.h
11250 $as_echo "#define gid_t int" >>confdefs.h
11254 ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11255 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
11257 cat >>confdefs.h <<_ACEOF
11258 #define HAVE_PTRDIFF_T 1
11259 _ACEOF
11266 # Checks for library functions.
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11268 $as_echo_n "checking whether closedir returns void... " >&6; }
11269 if ${ac_cv_func_closedir_void+:} false; then :
11270 $as_echo_n "(cached) " >&6
11271 else
11272 if test "$cross_compiling" = yes; then :
11273 ac_cv_func_closedir_void=yes
11274 else
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277 $ac_includes_default
11278 #include <$ac_header_dirent>
11279 #ifndef __cplusplus
11280 int closedir ();
11281 #endif
11284 main ()
11286 return closedir (opendir (".")) != 0;
11288 return 0;
11290 _ACEOF
11291 if ac_fn_cxx_try_run "$LINENO"; then :
11292 ac_cv_func_closedir_void=no
11293 else
11294 ac_cv_func_closedir_void=yes
11296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11297 conftest.$ac_objext conftest.beam conftest.$ac_ext
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11302 $as_echo "$ac_cv_func_closedir_void" >&6; }
11303 if test $ac_cv_func_closedir_void = yes; then
11305 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11309 if test $ac_cv_c_compiler_gnu = yes; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11311 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11312 if ${ac_cv_prog_gcc_traditional+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 ac_pattern="Autoconf.*'x'"
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11318 #include <sgtty.h>
11319 Autoconf TIOCGETP
11320 _ACEOF
11321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11322 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11323 ac_cv_prog_gcc_traditional=yes
11324 else
11325 ac_cv_prog_gcc_traditional=no
11327 rm -f conftest*
11330 if test $ac_cv_prog_gcc_traditional = no; then
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11333 #include <termio.h>
11334 Autoconf TCGETA
11335 _ACEOF
11336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11337 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11338 ac_cv_prog_gcc_traditional=yes
11340 rm -f conftest*
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11345 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11346 if test $ac_cv_prog_gcc_traditional = yes; then
11347 CC="$CC -traditional"
11351 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11352 if test "x$ac_cv_type_pid_t" = xyes; then :
11354 else
11356 cat >>confdefs.h <<_ACEOF
11357 #define pid_t int
11358 _ACEOF
11362 for ac_header in vfork.h
11363 do :
11364 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11365 if test "x$ac_cv_header_vfork_h" = xyes; then :
11366 cat >>confdefs.h <<_ACEOF
11367 #define HAVE_VFORK_H 1
11368 _ACEOF
11372 done
11374 for ac_func in fork vfork
11375 do :
11376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11377 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11379 cat >>confdefs.h <<_ACEOF
11380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11381 _ACEOF
11384 done
11386 if test "x$ac_cv_func_fork" = xyes; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11388 $as_echo_n "checking for working fork... " >&6; }
11389 if ${ac_cv_func_fork_works+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391 else
11392 if test "$cross_compiling" = yes; then :
11393 ac_cv_func_fork_works=cross
11394 else
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h. */
11397 $ac_includes_default
11399 main ()
11402 /* By Ruediger Kuhlmann. */
11403 return fork () < 0;
11406 return 0;
11408 _ACEOF
11409 if ac_fn_cxx_try_run "$LINENO"; then :
11410 ac_cv_func_fork_works=yes
11411 else
11412 ac_cv_func_fork_works=no
11414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11415 conftest.$ac_objext conftest.beam conftest.$ac_ext
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11420 $as_echo "$ac_cv_func_fork_works" >&6; }
11422 else
11423 ac_cv_func_fork_works=$ac_cv_func_fork
11425 if test "x$ac_cv_func_fork_works" = xcross; then
11426 case $host in
11427 *-*-amigaos* | *-*-msdosdjgpp*)
11428 # Override, as these systems have only a dummy fork() stub
11429 ac_cv_func_fork_works=no
11432 ac_cv_func_fork_works=yes
11434 esac
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11436 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11438 ac_cv_func_vfork_works=$ac_cv_func_vfork
11439 if test "x$ac_cv_func_vfork" = xyes; then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11441 $as_echo_n "checking for working vfork... " >&6; }
11442 if ${ac_cv_func_vfork_works+:} false; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 if test "$cross_compiling" = yes; then :
11446 ac_cv_func_vfork_works=cross
11447 else
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11450 /* Thanks to Paul Eggert for this test. */
11451 $ac_includes_default
11452 #include <sys/wait.h>
11453 #ifdef HAVE_VFORK_H
11454 # include <vfork.h>
11455 #endif
11456 /* On some sparc systems, changes by the child to local and incoming
11457 argument registers are propagated back to the parent. The compiler
11458 is told about this with #include <vfork.h>, but some compilers
11459 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11460 static variable whose address is put into a register that is
11461 clobbered by the vfork. */
11462 static void
11463 #ifdef __cplusplus
11464 sparc_address_test (int arg)
11465 # else
11466 sparc_address_test (arg) int arg;
11467 #endif
11469 static pid_t child;
11470 if (!child) {
11471 child = vfork ();
11472 if (child < 0) {
11473 perror ("vfork");
11474 _exit(2);
11476 if (!child) {
11477 arg = getpid();
11478 write(-1, "", 0);
11479 _exit (arg);
11485 main ()
11487 pid_t parent = getpid ();
11488 pid_t child;
11490 sparc_address_test (0);
11492 child = vfork ();
11494 if (child == 0) {
11495 /* Here is another test for sparc vfork register problems. This
11496 test uses lots of local variables, at least as many local
11497 variables as main has allocated so far including compiler
11498 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11499 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11500 reuse the register of parent for one of the local variables,
11501 since it will think that parent can't possibly be used any more
11502 in this routine. Assigning to the local variable will thus
11503 munge parent in the parent process. */
11504 pid_t
11505 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11506 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11507 /* Convince the compiler that p..p7 are live; otherwise, it might
11508 use the same hardware register for all 8 local variables. */
11509 if (p != p1 || p != p2 || p != p3 || p != p4
11510 || p != p5 || p != p6 || p != p7)
11511 _exit(1);
11513 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11514 from child file descriptors. If the child closes a descriptor
11515 before it execs or exits, this munges the parent's descriptor
11516 as well. Test for this by closing stdout in the child. */
11517 _exit(close(fileno(stdout)) != 0);
11518 } else {
11519 int status;
11520 struct stat st;
11522 while (wait(&status) != child)
11524 return (
11525 /* Was there some problem with vforking? */
11526 child < 0
11528 /* Did the child fail? (This shouldn't happen.) */
11529 || status
11531 /* Did the vfork/compiler bug occur? */
11532 || parent != getpid()
11534 /* Did the file descriptor bug occur? */
11535 || fstat(fileno(stdout), &st) != 0
11539 _ACEOF
11540 if ac_fn_cxx_try_run "$LINENO"; then :
11541 ac_cv_func_vfork_works=yes
11542 else
11543 ac_cv_func_vfork_works=no
11545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11546 conftest.$ac_objext conftest.beam conftest.$ac_ext
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11551 $as_echo "$ac_cv_func_vfork_works" >&6; }
11554 if test "x$ac_cv_func_fork_works" = xcross; then
11555 ac_cv_func_vfork_works=$ac_cv_func_vfork
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11557 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11560 if test "x$ac_cv_func_vfork_works" = xyes; then
11562 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11564 else
11566 $as_echo "#define vfork fork" >>confdefs.h
11569 if test "x$ac_cv_func_fork_works" = xyes; then
11571 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11576 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11577 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
11578 $as_echo_n "(cached) " >&6
11579 else
11580 rm -f conftest.sym conftest.file
11581 echo >conftest.file
11582 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11583 if test "$cross_compiling" = yes; then :
11584 ac_cv_func_lstat_dereferences_slashed_symlink=no
11585 else
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588 $ac_includes_default
11590 main ()
11592 struct stat sbuf;
11593 /* Linux will dereference the symlink and fail, as required by POSIX.
11594 That is better in the sense that it means we will not
11595 have to compile and use the lstat wrapper. */
11596 return lstat ("conftest.sym/", &sbuf) == 0;
11598 return 0;
11600 _ACEOF
11601 if ac_fn_cxx_try_run "$LINENO"; then :
11602 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11603 else
11604 ac_cv_func_lstat_dereferences_slashed_symlink=no
11606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11607 conftest.$ac_objext conftest.beam conftest.$ac_ext
11610 else
11611 # If the `ln -s' command failed, then we probably don't even
11612 # have an lstat function.
11613 ac_cv_func_lstat_dereferences_slashed_symlink=no
11615 rm -f conftest.sym conftest.file
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11619 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11621 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11623 cat >>confdefs.h <<_ACEOF
11624 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11625 _ACEOF
11628 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11629 case " $LIBOBJS " in
11630 *" lstat.$ac_objext "* ) ;;
11631 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11633 esac
11637 if test x$SYS != xwin32; then :
11639 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11640 # -lseq on Dynix/PTX, -lgen on Unixware.
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11642 $as_echo_n "checking for library containing getmntent... " >&6; }
11643 if ${ac_cv_search_getmntent+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 ac_func_search_save_LIBS=$LIBS
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11650 /* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 char getmntent ();
11658 main ()
11660 return getmntent ();
11662 return 0;
11664 _ACEOF
11665 for ac_lib in '' sun seq gen; do
11666 if test -z "$ac_lib"; then
11667 ac_res="none required"
11668 else
11669 ac_res=-l$ac_lib
11670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11672 if ac_fn_cxx_try_link "$LINENO"; then :
11673 ac_cv_search_getmntent=$ac_res
11675 rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext
11677 if ${ac_cv_search_getmntent+:} false; then :
11678 break
11680 done
11681 if ${ac_cv_search_getmntent+:} false; then :
11683 else
11684 ac_cv_search_getmntent=no
11686 rm conftest.$ac_ext
11687 LIBS=$ac_func_search_save_LIBS
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11690 $as_echo "$ac_cv_search_getmntent" >&6; }
11691 ac_res=$ac_cv_search_getmntent
11692 if test "$ac_res" != no; then :
11693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11694 ac_cv_func_getmntent=yes
11696 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11698 else
11699 ac_cv_func_getmntent=no
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11704 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11705 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 if test "$cross_compiling" = yes; then :
11709 ac_cv_func_lstat_empty_string_bug=yes
11710 else
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11713 $ac_includes_default
11715 main ()
11717 struct stat sbuf;
11718 return lstat ("", &sbuf) == 0;
11720 return 0;
11722 _ACEOF
11723 if ac_fn_cxx_try_run "$LINENO"; then :
11724 ac_cv_func_lstat_empty_string_bug=no
11725 else
11726 ac_cv_func_lstat_empty_string_bug=yes
11728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11729 conftest.$ac_objext conftest.beam conftest.$ac_ext
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11734 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11735 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11736 case " $LIBOBJS " in
11737 *" lstat.$ac_objext "* ) ;;
11738 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11740 esac
11743 cat >>confdefs.h <<_ACEOF
11744 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11745 _ACEOF
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11750 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11751 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
11752 $as_echo_n "(cached) " >&6
11753 else
11754 rm -f conftest.sym conftest.file
11755 echo >conftest.file
11756 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11757 if test "$cross_compiling" = yes; then :
11758 ac_cv_func_lstat_dereferences_slashed_symlink=no
11759 else
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762 $ac_includes_default
11764 main ()
11766 struct stat sbuf;
11767 /* Linux will dereference the symlink and fail, as required by POSIX.
11768 That is better in the sense that it means we will not
11769 have to compile and use the lstat wrapper. */
11770 return lstat ("conftest.sym/", &sbuf) == 0;
11772 return 0;
11774 _ACEOF
11775 if ac_fn_cxx_try_run "$LINENO"; then :
11776 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11777 else
11778 ac_cv_func_lstat_dereferences_slashed_symlink=no
11780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11781 conftest.$ac_objext conftest.beam conftest.$ac_ext
11784 else
11785 # If the `ln -s' command failed, then we probably don't even
11786 # have an lstat function.
11787 ac_cv_func_lstat_dereferences_slashed_symlink=no
11789 rm -f conftest.sym conftest.file
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11793 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11795 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11797 cat >>confdefs.h <<_ACEOF
11798 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11799 _ACEOF
11802 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11803 case " $LIBOBJS " in
11804 *" lstat.$ac_objext "* ) ;;
11805 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11807 esac
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11814 $as_echo_n "checking for working memcmp... " >&6; }
11815 if ${ac_cv_func_memcmp_working+:} false; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 if test "$cross_compiling" = yes; then :
11819 ac_cv_func_memcmp_working=no
11820 else
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11823 $ac_includes_default
11825 main ()
11828 /* Some versions of memcmp are not 8-bit clean. */
11829 char c0 = '\100', c1 = '\200', c2 = '\201';
11830 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11831 return 1;
11833 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11834 or more and with at least one buffer not starting on a 4-byte boundary.
11835 William Lewis provided this test program. */
11837 char foo[21];
11838 char bar[21];
11839 int i;
11840 for (i = 0; i < 4; i++)
11842 char *a = foo + i;
11843 char *b = bar + i;
11844 strcpy (a, "--------01111111");
11845 strcpy (b, "--------10000000");
11846 if (memcmp (a, b, 16) >= 0)
11847 return 1;
11849 return 0;
11853 return 0;
11855 _ACEOF
11856 if ac_fn_cxx_try_run "$LINENO"; then :
11857 ac_cv_func_memcmp_working=yes
11858 else
11859 ac_cv_func_memcmp_working=no
11861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11862 conftest.$ac_objext conftest.beam conftest.$ac_ext
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11867 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11868 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11869 *" memcmp.$ac_objext "* ) ;;
11870 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11872 esac
11875 for ac_header in sys/select.h sys/socket.h
11876 do :
11877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11878 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11880 cat >>confdefs.h <<_ACEOF
11881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11882 _ACEOF
11886 done
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11889 $as_echo_n "checking types of arguments for select... " >&6; }
11890 if ${ac_cv_func_select_args+:} false; then :
11891 $as_echo_n "(cached) " >&6
11892 else
11893 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11894 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11895 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11898 $ac_includes_default
11899 #ifdef HAVE_SYS_SELECT_H
11900 # include <sys/select.h>
11901 #endif
11902 #ifdef HAVE_SYS_SOCKET_H
11903 # include <sys/socket.h>
11904 #endif
11907 main ()
11909 extern int select ($ac_arg1,
11910 $ac_arg234, $ac_arg234, $ac_arg234,
11911 $ac_arg5);
11913 return 0;
11915 _ACEOF
11916 if ac_fn_cxx_try_compile "$LINENO"; then :
11917 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11920 done
11921 done
11922 done
11923 # Provide a safe default value.
11924 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11928 $as_echo "$ac_cv_func_select_args" >&6; }
11929 ac_save_IFS=$IFS; IFS=','
11930 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11931 IFS=$ac_save_IFS
11932 shift
11934 cat >>confdefs.h <<_ACEOF
11935 #define SELECT_TYPE_ARG1 $1
11936 _ACEOF
11939 cat >>confdefs.h <<_ACEOF
11940 #define SELECT_TYPE_ARG234 ($2)
11941 _ACEOF
11944 cat >>confdefs.h <<_ACEOF
11945 #define SELECT_TYPE_ARG5 ($3)
11946 _ACEOF
11948 rm -f conftest*
11950 if ${ac_cv_func_setvbuf_reversed+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11953 ac_cv_func_setvbuf_reversed=no
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11958 $as_echo_n "checking return type of signal handlers... " >&6; }
11959 if ${ac_cv_type_signal+:} false; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964 #include <sys/types.h>
11965 #include <signal.h>
11968 main ()
11970 return *(signal (0, 0)) (0) == 1;
11972 return 0;
11974 _ACEOF
11975 if ac_fn_cxx_try_compile "$LINENO"; then :
11976 ac_cv_type_signal=int
11977 else
11978 ac_cv_type_signal=void
11980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11983 $as_echo "$ac_cv_type_signal" >&6; }
11985 cat >>confdefs.h <<_ACEOF
11986 #define RETSIGTYPE $ac_cv_type_signal
11987 _ACEOF
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11991 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11992 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
11993 $as_echo_n "(cached) " >&6
11994 else
11995 if test "$cross_compiling" = yes; then :
11996 ac_cv_func_stat_empty_string_bug=yes
11997 else
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000 $ac_includes_default
12002 main ()
12004 struct stat sbuf;
12005 return stat ("", &sbuf) == 0;
12007 return 0;
12009 _ACEOF
12010 if ac_fn_cxx_try_run "$LINENO"; then :
12011 ac_cv_func_stat_empty_string_bug=no
12012 else
12013 ac_cv_func_stat_empty_string_bug=yes
12015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12016 conftest.$ac_objext conftest.beam conftest.$ac_ext
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12021 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12022 if test $ac_cv_func_stat_empty_string_bug = yes; then
12023 case " $LIBOBJS " in
12024 *" stat.$ac_objext "* ) ;;
12025 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
12027 esac
12030 cat >>confdefs.h <<_ACEOF
12031 #define HAVE_STAT_EMPTY_STRING_BUG 1
12032 _ACEOF
12036 for ac_func in strftime
12037 do :
12038 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12039 if test "x$ac_cv_func_strftime" = xyes; then :
12040 cat >>confdefs.h <<_ACEOF
12041 #define HAVE_STRFTIME 1
12042 _ACEOF
12044 else
12045 # strftime is in -lintl on SCO UNIX.
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12047 $as_echo_n "checking for strftime in -lintl... " >&6; }
12048 if ${ac_cv_lib_intl_strftime+:} false; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 ac_check_lib_save_LIBS=$LIBS
12052 LIBS="-lintl $LIBS"
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12056 /* Override any GCC internal prototype to avoid an error.
12057 Use char because int might match the return type of a GCC
12058 builtin and then its argument prototype would still apply. */
12059 #ifdef __cplusplus
12060 extern "C"
12061 #endif
12062 char strftime ();
12064 main ()
12066 return strftime ();
12068 return 0;
12070 _ACEOF
12071 if ac_fn_cxx_try_link "$LINENO"; then :
12072 ac_cv_lib_intl_strftime=yes
12073 else
12074 ac_cv_lib_intl_strftime=no
12076 rm -f core conftest.err conftest.$ac_objext \
12077 conftest$ac_exeext conftest.$ac_ext
12078 LIBS=$ac_check_lib_save_LIBS
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12081 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12082 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12083 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12085 LIBS="-lintl $LIBS"
12089 done
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12092 $as_echo_n "checking for working strtod... " >&6; }
12093 if ${ac_cv_func_strtod+:} false; then :
12094 $as_echo_n "(cached) " >&6
12095 else
12096 if test "$cross_compiling" = yes; then :
12097 ac_cv_func_strtod=no
12098 else
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12102 $ac_includes_default
12103 #ifndef strtod
12104 double strtod ();
12105 #endif
12107 main()
12110 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12111 char *string = " +69";
12112 char *term;
12113 double value;
12114 value = strtod (string, &term);
12115 if (value != 69 || term != (string + 4))
12116 return 1;
12120 /* Under Solaris 2.4, strtod returns the wrong value for the
12121 terminating character under some conditions. */
12122 char *string = "NaN";
12123 char *term;
12124 strtod (string, &term);
12125 if (term != string && *(term - 1) == 0)
12126 return 1;
12128 return 0;
12131 _ACEOF
12132 if ac_fn_cxx_try_run "$LINENO"; then :
12133 ac_cv_func_strtod=yes
12134 else
12135 ac_cv_func_strtod=no
12137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12138 conftest.$ac_objext conftest.beam conftest.$ac_ext
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12143 $as_echo "$ac_cv_func_strtod" >&6; }
12144 if test $ac_cv_func_strtod = no; then
12145 case " $LIBOBJS " in
12146 *" strtod.$ac_objext "* ) ;;
12147 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12149 esac
12151 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
12152 if test "x$ac_cv_func_pow" = xyes; then :
12156 if test $ac_cv_func_pow = no; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12158 $as_echo_n "checking for pow in -lm... " >&6; }
12159 if ${ac_cv_lib_m_pow+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-lm $LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12167 /* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char pow ();
12175 main ()
12177 return pow ();
12179 return 0;
12181 _ACEOF
12182 if ac_fn_cxx_try_link "$LINENO"; then :
12183 ac_cv_lib_m_pow=yes
12184 else
12185 ac_cv_lib_m_pow=no
12187 rm -f core conftest.err conftest.$ac_objext \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12192 $as_echo "$ac_cv_lib_m_pow" >&6; }
12193 if test "x$ac_cv_lib_m_pow" = xyes; then :
12194 POW_LIB=-lm
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12197 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12204 for ac_func in vprintf
12205 do :
12206 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12207 if test "x$ac_cv_func_vprintf" = xyes; then :
12208 cat >>confdefs.h <<_ACEOF
12209 #define HAVE_VPRINTF 1
12210 _ACEOF
12212 ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12213 if test "x$ac_cv_func__doprnt" = xyes; then :
12215 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12220 done
12223 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12226 configure cannot check whether malloc() and realloc() are GNU libc
12227 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12228 run configure with the --without-gnu-malloc switch." >&5
12229 $as_echo "$as_me: WARNING:
12230 configure cannot check whether malloc() and realloc() are GNU libc
12231 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12232 run configure with the --without-gnu-malloc switch." >&2;}
12233 _mule_warning_11=yes
12234 _mule_has_warnings=yes
12236 ac_cv_func_malloc_0_nonnull=yes
12237 ac_cv_func_realloc_0_nonnull=yes
12240 for ac_header in stdlib.h
12241 do :
12242 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12243 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12244 cat >>confdefs.h <<_ACEOF
12245 #define HAVE_STDLIB_H 1
12246 _ACEOF
12250 done
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12253 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12254 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 if test "$cross_compiling" = yes; then :
12258 ac_cv_func_malloc_0_nonnull=no
12259 else
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12262 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12263 # include <stdlib.h>
12264 #else
12265 char *malloc ();
12266 #endif
12269 main ()
12271 return ! malloc (0);
12273 return 0;
12275 _ACEOF
12276 if ac_fn_cxx_try_run "$LINENO"; then :
12277 ac_cv_func_malloc_0_nonnull=yes
12278 else
12279 ac_cv_func_malloc_0_nonnull=no
12281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12282 conftest.$ac_objext conftest.beam conftest.$ac_ext
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12287 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12288 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12290 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12292 else
12293 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12295 case " $LIBOBJS " in
12296 *" malloc.$ac_objext "* ) ;;
12297 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12299 esac
12302 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12307 for ac_header in stdlib.h
12308 do :
12309 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12310 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_STDLIB_H 1
12313 _ACEOF
12317 done
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12320 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12321 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 if test "$cross_compiling" = yes; then :
12325 ac_cv_func_realloc_0_nonnull=no
12326 else
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12330 # include <stdlib.h>
12331 #else
12332 char *realloc ();
12333 #endif
12336 main ()
12338 return ! realloc (0, 0);
12340 return 0;
12342 _ACEOF
12343 if ac_fn_cxx_try_run "$LINENO"; then :
12344 ac_cv_func_realloc_0_nonnull=yes
12345 else
12346 ac_cv_func_realloc_0_nonnull=no
12348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12349 conftest.$ac_objext conftest.beam conftest.$ac_ext
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12354 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12355 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12357 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12359 else
12360 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12362 case " $LIBOBJS " in
12363 *" realloc.$ac_objext "* ) ;;
12364 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12366 esac
12369 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12374 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getopt_long getpass getrlimit gettimeofday inet_ntoa localeconv memmove mempcpy memset mkdir nl_langinfo pow select setlocale setrlimit sigaction socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul
12375 do :
12376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12377 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12379 cat >>confdefs.h <<_ACEOF
12380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12381 _ACEOF
12384 done
12391 for ac_header in $ac_header_list
12392 do :
12393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12394 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12397 cat >>confdefs.h <<_ACEOF
12398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12399 _ACEOF
12403 done
12411 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12413 # Check whether --enable-mmap was given.
12414 if test "${enable_mmap+set}" = set; then :
12415 enableval=$enable_mmap;
12422 if test ${enable_mmap:-no} = yes; then :
12424 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12427 for ac_func in getpagesize
12428 do :
12429 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12430 if test "x$ac_cv_func_getpagesize" = xyes; then :
12431 cat >>confdefs.h <<_ACEOF
12432 #define HAVE_GETPAGESIZE 1
12433 _ACEOF
12436 done
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12439 $as_echo_n "checking for working mmap... " >&6; }
12440 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 if test "$cross_compiling" = yes; then :
12444 ac_cv_func_mmap_fixed_mapped=no
12445 else
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12448 $ac_includes_default
12449 /* malloc might have been renamed as rpl_malloc. */
12450 #undef malloc
12452 /* Thanks to Mike Haertel and Jim Avera for this test.
12453 Here is a matrix of mmap possibilities:
12454 mmap private not fixed
12455 mmap private fixed at somewhere currently unmapped
12456 mmap private fixed at somewhere already mapped
12457 mmap shared not fixed
12458 mmap shared fixed at somewhere currently unmapped
12459 mmap shared fixed at somewhere already mapped
12460 For private mappings, we should verify that changes cannot be read()
12461 back from the file, nor mmap's back from the file at a different
12462 address. (There have been systems where private was not correctly
12463 implemented like the infamous i386 svr4.0, and systems where the
12464 VM page cache was not coherent with the file system buffer cache
12465 like early versions of FreeBSD and possibly contemporary NetBSD.)
12466 For shared mappings, we should conversely verify that changes get
12467 propagated back to all the places they're supposed to be.
12469 Grep wants private fixed already mapped.
12470 The main things grep needs to know about mmap are:
12471 * does it exist and is it safe to write into the mmap'd area
12472 * how to use it (BSD variants) */
12474 #include <fcntl.h>
12475 #include <sys/mman.h>
12477 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12478 char *malloc ();
12479 #endif
12481 /* This mess was copied from the GNU getpagesize.h. */
12482 #ifndef HAVE_GETPAGESIZE
12483 # ifdef _SC_PAGESIZE
12484 # define getpagesize() sysconf(_SC_PAGESIZE)
12485 # else /* no _SC_PAGESIZE */
12486 # ifdef HAVE_SYS_PARAM_H
12487 # include <sys/param.h>
12488 # ifdef EXEC_PAGESIZE
12489 # define getpagesize() EXEC_PAGESIZE
12490 # else /* no EXEC_PAGESIZE */
12491 # ifdef NBPG
12492 # define getpagesize() NBPG * CLSIZE
12493 # ifndef CLSIZE
12494 # define CLSIZE 1
12495 # endif /* no CLSIZE */
12496 # else /* no NBPG */
12497 # ifdef NBPC
12498 # define getpagesize() NBPC
12499 # else /* no NBPC */
12500 # ifdef PAGESIZE
12501 # define getpagesize() PAGESIZE
12502 # endif /* PAGESIZE */
12503 # endif /* no NBPC */
12504 # endif /* no NBPG */
12505 # endif /* no EXEC_PAGESIZE */
12506 # else /* no HAVE_SYS_PARAM_H */
12507 # define getpagesize() 8192 /* punt totally */
12508 # endif /* no HAVE_SYS_PARAM_H */
12509 # endif /* no _SC_PAGESIZE */
12511 #endif /* no HAVE_GETPAGESIZE */
12514 main ()
12516 char *data, *data2, *data3;
12517 int i, pagesize;
12518 int fd, fd2;
12520 pagesize = getpagesize ();
12522 /* First, make a file with some known garbage in it. */
12523 data = (char *) malloc (pagesize);
12524 if (!data)
12525 return 1;
12526 for (i = 0; i < pagesize; ++i)
12527 *(data + i) = rand ();
12528 umask (0);
12529 fd = creat ("conftest.mmap", 0600);
12530 if (fd < 0)
12531 return 2;
12532 if (write (fd, data, pagesize) != pagesize)
12533 return 3;
12534 close (fd);
12536 /* Next, check that the tail of a page is zero-filled. File must have
12537 non-zero length, otherwise we risk SIGBUS for entire page. */
12538 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12539 if (fd2 < 0)
12540 return 4;
12541 data2 = (char *) "";
12542 if (write (fd2, data2, 1) != 1)
12543 return 5;
12544 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12545 if (data2 == MAP_FAILED)
12546 return 6;
12547 for (i = 0; i < pagesize; ++i)
12548 if (*(data2 + i))
12549 return 7;
12550 close (fd2);
12551 if (munmap (data2, pagesize))
12552 return 8;
12554 /* Next, try to mmap the file at a fixed address which already has
12555 something else allocated at it. If we can, also make sure that
12556 we see the same garbage. */
12557 fd = open ("conftest.mmap", O_RDWR);
12558 if (fd < 0)
12559 return 9;
12560 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12561 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12562 return 10;
12563 for (i = 0; i < pagesize; ++i)
12564 if (*(data + i) != *(data2 + i))
12565 return 11;
12567 /* Finally, make sure that changes to the mapped area do not
12568 percolate back to the file as seen by read(). (This is a bug on
12569 some variants of i386 svr4.0.) */
12570 for (i = 0; i < pagesize; ++i)
12571 *(data2 + i) = *(data2 + i) + 1;
12572 data3 = (char *) malloc (pagesize);
12573 if (!data3)
12574 return 12;
12575 if (read (fd, data3, pagesize) != pagesize)
12576 return 13;
12577 for (i = 0; i < pagesize; ++i)
12578 if (*(data + i) != *(data3 + i))
12579 return 14;
12580 close (fd);
12581 return 0;
12583 _ACEOF
12584 if ac_fn_cxx_try_run "$LINENO"; then :
12585 ac_cv_func_mmap_fixed_mapped=yes
12586 else
12587 ac_cv_func_mmap_fixed_mapped=no
12589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12590 conftest.$ac_objext conftest.beam conftest.$ac_ext
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12595 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12596 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12598 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12601 rm -f conftest.mmap conftest.txt
12603 for ac_func in munmap sysconf
12604 do :
12605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12606 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12607 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12608 cat >>confdefs.h <<_ACEOF
12609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12610 _ACEOF
12613 done
12615 if test $ac_cv_func_sysconf = yes; then :
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12618 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12623 #include <unistd.h>
12626 main ()
12629 return sysconf(_SC_PAGESIZE);
12632 return 0;
12635 _ACEOF
12636 if ac_fn_cxx_try_link "$LINENO"; then :
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12639 $as_echo "_SC_PAGESIZE" >&6; }
12641 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12644 else
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12650 #include <unistd.h>
12653 main ()
12656 return sysconf(_SC_PAGE_SIZE);
12659 return 0;
12662 _ACEOF
12663 if ac_fn_cxx_try_link "$LINENO"; then :
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12666 $as_echo "_SC_PAGE_SIZE" >&6; }
12668 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12671 else
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12674 $as_echo "none" >&6; }
12677 rm -f core conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12681 rm -f core conftest.err conftest.$ac_objext \
12682 conftest$ac_exeext conftest.$ac_ext
12691 # Look for a way to preallocate disk space for files.
12692 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12695 $as_echo_n "checking for fallocate... " >&6; }
12696 mule_backup_CPPFLAGS="$CPPFLAGS"
12697 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12702 #ifndef _GNU_SOURCE
12703 # define _GNU_SOURCE
12704 #endif
12705 #ifdef HAVE_FCNTL_H
12706 # include <fcntl.h>
12707 #endif
12708 #include <linux/falloc.h>
12711 main ()
12714 fallocate(0, 0, 0, 0);
12717 return 0;
12720 _ACEOF
12721 if ac_fn_cxx_try_link "$LINENO"; then :
12724 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12727 $as_echo "yes" >&6; }
12729 else
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12735 rm -f core conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
12737 CPPFLAGS="$mule_backup_CPPFLAGS"
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12741 $as_echo_n "checking for SYS_fallocate... " >&6; }
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12746 #include <sys/syscall.h>
12747 #include <sys/types.h>
12748 #include <unistd.h>
12751 main ()
12754 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12757 return 0;
12760 _ACEOF
12761 if ac_fn_cxx_try_link "$LINENO"; then :
12764 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12767 $as_echo "yes" >&6; }
12769 else
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12775 rm -f core conftest.err conftest.$ac_objext \
12776 conftest$ac_exeext conftest.$ac_ext
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12779 $as_echo_n "checking for posix_fallocate... " >&6; }
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12784 #define _XOPEN_SOURCE 600
12785 #include <stdlib.h>
12786 #ifdef HAVE_FCNTL_H
12787 # include <fcntl.h>
12788 #endif
12791 main ()
12794 posix_fallocate(0, 0, 0);
12797 return 0;
12800 _ACEOF
12801 if ac_fn_cxx_try_link "$LINENO"; then :
12804 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12807 $as_echo "yes" >&6; }
12809 else
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 $as_echo "no" >&6; }
12815 rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext conftest.$ac_ext
12821 ac_ext=c
12822 ac_cpp='$CPP $CPPFLAGS'
12823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12827 # Checking Native Language Support
12830 MKINSTALLDIRS=
12831 if test -n "$ac_aux_dir"; then
12832 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12834 if test -z "$MKINSTALLDIRS"; then
12835 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12842 # Extract the first word of "msgfmt", so it can be a program name with args.
12843 set dummy msgfmt; ac_word=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845 $as_echo_n "checking for $ac_word... " >&6; }
12846 if ${ac_cv_path_MSGFMT+:} false; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 case "$MSGFMT" in
12851 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12855 for ac_dir in $PATH; do
12856 test -z "$ac_dir" && ac_dir=.
12857 if test -f $ac_dir/$ac_word; then
12858 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12859 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12860 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12861 break
12864 done
12865 IFS="$ac_save_ifs"
12866 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12868 esac
12870 MSGFMT="$ac_cv_path_MSGFMT"
12871 if test "$MSGFMT" != ":"; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12873 $as_echo "$MSGFMT" >&6; }
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876 $as_echo "no" >&6; }
12879 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12880 set dummy gmsgfmt; ac_word=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882 $as_echo_n "checking for $ac_word... " >&6; }
12883 if ${ac_cv_path_GMSGFMT+:} false; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 case $GMSGFMT in
12887 [\\/]* | ?:[\\/]*)
12888 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12894 IFS=$as_save_IFS
12895 test -z "$as_dir" && as_dir=.
12896 for ac_exec_ext in '' $ac_executable_extensions; do
12897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12898 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900 break 2
12902 done
12903 done
12904 IFS=$as_save_IFS
12906 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12908 esac
12910 GMSGFMT=$ac_cv_path_GMSGFMT
12911 if test -n "$GMSGFMT"; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12913 $as_echo "$GMSGFMT" >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12916 $as_echo "no" >&6; }
12921 # Extract the first word of "xgettext", so it can be a program name with args.
12922 set dummy xgettext; ac_word=$2
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924 $as_echo_n "checking for $ac_word... " >&6; }
12925 if ${ac_cv_path_XGETTEXT+:} false; then :
12926 $as_echo_n "(cached) " >&6
12927 else
12928 case "$XGETTEXT" in
12930 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12934 for ac_dir in $PATH; do
12935 test -z "$ac_dir" && ac_dir=.
12936 if test -f $ac_dir/$ac_word; then
12937 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12938 (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
12939 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12940 break
12943 done
12944 IFS="$ac_save_ifs"
12945 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12947 esac
12949 XGETTEXT="$ac_cv_path_XGETTEXT"
12950 if test "$XGETTEXT" != ":"; then
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12952 $as_echo "$XGETTEXT" >&6; }
12953 else
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955 $as_echo "no" >&6; }
12958 rm -f messages.po
12960 # Extract the first word of "msgmerge", so it can be a program name with args.
12961 set dummy msgmerge; ac_word=$2
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12963 $as_echo_n "checking for $ac_word... " >&6; }
12964 if ${ac_cv_path_MSGMERGE+:} false; then :
12965 $as_echo_n "(cached) " >&6
12966 else
12967 case "$MSGMERGE" in
12969 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12973 for ac_dir in $PATH; do
12974 test -z "$ac_dir" && ac_dir=.
12975 if test -f $ac_dir/$ac_word; then
12976 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12977 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
12978 break
12981 done
12982 IFS="$ac_save_ifs"
12983 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12985 esac
12987 MSGMERGE="$ac_cv_path_MSGMERGE"
12988 if test "$MSGMERGE" != ":"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12990 $as_echo "$MSGMERGE" >&6; }
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993 $as_echo "no" >&6; }
12997 if test "$GMSGFMT" != ":"; then
12998 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12999 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13001 else
13002 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13004 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13005 GMSGFMT=":"
13009 if test "$XGETTEXT" != ":"; then
13010 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
13011 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13013 else
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13015 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13016 XGETTEXT=":"
13018 rm -f messages.po
13021 ac_config_commands="$ac_config_commands default-1"
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
13026 $as_echo_n "checking for strerror in -lcposix... " >&6; }
13027 if ${ac_cv_lib_cposix_strerror+:} false; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 ac_check_lib_save_LIBS=$LIBS
13031 LIBS="-lcposix $LIBS"
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 char strerror ();
13043 main ()
13045 return strerror ();
13047 return 0;
13049 _ACEOF
13050 if ac_fn_c_try_link "$LINENO"; then :
13051 ac_cv_lib_cposix_strerror=yes
13052 else
13053 ac_cv_lib_cposix_strerror=no
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
13060 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
13061 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
13062 LIBS="$LIBS -lcposix"
13068 for ac_func in getpagesize
13069 do :
13070 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13071 if test "x$ac_cv_func_getpagesize" = xyes; then :
13072 cat >>confdefs.h <<_ACEOF
13073 #define HAVE_GETPAGESIZE 1
13074 _ACEOF
13077 done
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13080 $as_echo_n "checking for working mmap... " >&6; }
13081 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 if test "$cross_compiling" = yes; then :
13085 ac_cv_func_mmap_fixed_mapped=no
13086 else
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089 $ac_includes_default
13090 /* malloc might have been renamed as rpl_malloc. */
13091 #undef malloc
13093 /* Thanks to Mike Haertel and Jim Avera for this test.
13094 Here is a matrix of mmap possibilities:
13095 mmap private not fixed
13096 mmap private fixed at somewhere currently unmapped
13097 mmap private fixed at somewhere already mapped
13098 mmap shared not fixed
13099 mmap shared fixed at somewhere currently unmapped
13100 mmap shared fixed at somewhere already mapped
13101 For private mappings, we should verify that changes cannot be read()
13102 back from the file, nor mmap's back from the file at a different
13103 address. (There have been systems where private was not correctly
13104 implemented like the infamous i386 svr4.0, and systems where the
13105 VM page cache was not coherent with the file system buffer cache
13106 like early versions of FreeBSD and possibly contemporary NetBSD.)
13107 For shared mappings, we should conversely verify that changes get
13108 propagated back to all the places they're supposed to be.
13110 Grep wants private fixed already mapped.
13111 The main things grep needs to know about mmap are:
13112 * does it exist and is it safe to write into the mmap'd area
13113 * how to use it (BSD variants) */
13115 #include <fcntl.h>
13116 #include <sys/mman.h>
13118 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13119 char *malloc ();
13120 #endif
13122 /* This mess was copied from the GNU getpagesize.h. */
13123 #ifndef HAVE_GETPAGESIZE
13124 # ifdef _SC_PAGESIZE
13125 # define getpagesize() sysconf(_SC_PAGESIZE)
13126 # else /* no _SC_PAGESIZE */
13127 # ifdef HAVE_SYS_PARAM_H
13128 # include <sys/param.h>
13129 # ifdef EXEC_PAGESIZE
13130 # define getpagesize() EXEC_PAGESIZE
13131 # else /* no EXEC_PAGESIZE */
13132 # ifdef NBPG
13133 # define getpagesize() NBPG * CLSIZE
13134 # ifndef CLSIZE
13135 # define CLSIZE 1
13136 # endif /* no CLSIZE */
13137 # else /* no NBPG */
13138 # ifdef NBPC
13139 # define getpagesize() NBPC
13140 # else /* no NBPC */
13141 # ifdef PAGESIZE
13142 # define getpagesize() PAGESIZE
13143 # endif /* PAGESIZE */
13144 # endif /* no NBPC */
13145 # endif /* no NBPG */
13146 # endif /* no EXEC_PAGESIZE */
13147 # else /* no HAVE_SYS_PARAM_H */
13148 # define getpagesize() 8192 /* punt totally */
13149 # endif /* no HAVE_SYS_PARAM_H */
13150 # endif /* no _SC_PAGESIZE */
13152 #endif /* no HAVE_GETPAGESIZE */
13155 main ()
13157 char *data, *data2, *data3;
13158 const char *cdata2;
13159 int i, pagesize;
13160 int fd, fd2;
13162 pagesize = getpagesize ();
13164 /* First, make a file with some known garbage in it. */
13165 data = (char *) malloc (pagesize);
13166 if (!data)
13167 return 1;
13168 for (i = 0; i < pagesize; ++i)
13169 *(data + i) = rand ();
13170 umask (0);
13171 fd = creat ("conftest.mmap", 0600);
13172 if (fd < 0)
13173 return 2;
13174 if (write (fd, data, pagesize) != pagesize)
13175 return 3;
13176 close (fd);
13178 /* Next, check that the tail of a page is zero-filled. File must have
13179 non-zero length, otherwise we risk SIGBUS for entire page. */
13180 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13181 if (fd2 < 0)
13182 return 4;
13183 cdata2 = "";
13184 if (write (fd2, cdata2, 1) != 1)
13185 return 5;
13186 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13187 if (data2 == MAP_FAILED)
13188 return 6;
13189 for (i = 0; i < pagesize; ++i)
13190 if (*(data2 + i))
13191 return 7;
13192 close (fd2);
13193 if (munmap (data2, pagesize))
13194 return 8;
13196 /* Next, try to mmap the file at a fixed address which already has
13197 something else allocated at it. If we can, also make sure that
13198 we see the same garbage. */
13199 fd = open ("conftest.mmap", O_RDWR);
13200 if (fd < 0)
13201 return 9;
13202 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13203 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13204 return 10;
13205 for (i = 0; i < pagesize; ++i)
13206 if (*(data + i) != *(data2 + i))
13207 return 11;
13209 /* Finally, make sure that changes to the mapped area do not
13210 percolate back to the file as seen by read(). (This is a bug on
13211 some variants of i386 svr4.0.) */
13212 for (i = 0; i < pagesize; ++i)
13213 *(data2 + i) = *(data2 + i) + 1;
13214 data3 = (char *) malloc (pagesize);
13215 if (!data3)
13216 return 12;
13217 if (read (fd, data3, pagesize) != pagesize)
13218 return 13;
13219 for (i = 0; i < pagesize; ++i)
13220 if (*(data + i) != *(data3 + i))
13221 return 14;
13222 close (fd);
13223 free (data);
13224 free (data3);
13225 return 0;
13227 _ACEOF
13228 if ac_fn_c_try_run "$LINENO"; then :
13229 ac_cv_func_mmap_fixed_mapped=yes
13230 else
13231 ac_cv_func_mmap_fixed_mapped=no
13233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13234 conftest.$ac_objext conftest.beam conftest.$ac_ext
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13239 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13240 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13242 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13245 rm -f conftest.mmap conftest.txt
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13249 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13250 if ${ac_cv_gnu_library_2_1+:} false; then :
13251 $as_echo_n "(cached) " >&6
13252 else
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 #include <features.h>
13257 #ifdef __GNU_LIBRARY__
13258 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13259 Lucky GNU user
13260 #endif
13261 #endif
13263 _ACEOF
13264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13265 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
13266 ac_cv_gnu_library_2_1=yes
13267 else
13268 ac_cv_gnu_library_2_1=no
13270 rm -f conftest*
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13276 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13278 GLIBC21="$ac_cv_gnu_library_2_1"
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13284 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13285 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
13286 $as_echo_n "(cached) " >&6
13287 else
13289 if test "$cross_compiling" = yes; then :
13291 # Guess based on the CPU.
13292 case "$host_cpu" in
13293 alpha* | i3456786 | m68k | s390*)
13294 gt_cv_int_divbyzero_sigfpe="guessing yes";;
13296 gt_cv_int_divbyzero_sigfpe="guessing no";;
13297 esac
13299 else
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13303 #include <stdlib.h>
13304 #include <signal.h>
13306 static void
13307 #ifdef __cplusplus
13308 sigfpe_handler (int sig)
13309 #else
13310 sigfpe_handler (sig) int sig;
13311 #endif
13313 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13314 exit (sig != SIGFPE);
13317 int x = 1;
13318 int y = 0;
13319 int z;
13320 int nan;
13322 int main ()
13324 signal (SIGFPE, sigfpe_handler);
13325 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13326 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13327 signal (SIGTRAP, sigfpe_handler);
13328 #endif
13329 /* Linux/SPARC yields signal SIGILL. */
13330 #if defined (__sparc__) && defined (__linux__)
13331 signal (SIGILL, sigfpe_handler);
13332 #endif
13334 z = x / y;
13335 nan = y / y;
13336 exit (1);
13339 _ACEOF
13340 if ac_fn_c_try_run "$LINENO"; then :
13341 gt_cv_int_divbyzero_sigfpe=yes
13342 else
13343 gt_cv_int_divbyzero_sigfpe=no
13345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13346 conftest.$ac_objext conftest.beam conftest.$ac_ext
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13352 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13353 case "$gt_cv_int_divbyzero_sigfpe" in
13354 *yes) value=1;;
13355 *) value=0;;
13356 esac
13358 cat >>confdefs.h <<_ACEOF
13359 #define INTDIV0_RAISES_SIGFPE $value
13360 _ACEOF
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13365 $as_echo_n "checking for inttypes.h... " >&6; }
13366 if ${jm_ac_cv_header_inttypes_h+:} false; then :
13367 $as_echo_n "(cached) " >&6
13368 else
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13371 #include <sys/types.h>
13372 #include <inttypes.h>
13374 main ()
13376 uintmax_t i = (uintmax_t) -1;
13378 return 0;
13380 _ACEOF
13381 if ac_fn_c_try_compile "$LINENO"; then :
13382 jm_ac_cv_header_inttypes_h=yes
13383 else
13384 jm_ac_cv_header_inttypes_h=no
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13389 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13390 if test $jm_ac_cv_header_inttypes_h = yes; then
13392 cat >>confdefs.h <<_ACEOF
13393 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13394 _ACEOF
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13400 $as_echo_n "checking for stdint.h... " >&6; }
13401 if ${jm_ac_cv_header_stdint_h+:} false; then :
13402 $as_echo_n "(cached) " >&6
13403 else
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13406 #include <sys/types.h>
13407 #include <stdint.h>
13409 main ()
13411 uintmax_t i = (uintmax_t) -1;
13413 return 0;
13415 _ACEOF
13416 if ac_fn_c_try_compile "$LINENO"; then :
13417 jm_ac_cv_header_stdint_h=yes
13418 else
13419 jm_ac_cv_header_stdint_h=no
13421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13424 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13425 if test $jm_ac_cv_header_stdint_h = yes; then
13427 cat >>confdefs.h <<_ACEOF
13428 #define HAVE_STDINT_H_WITH_UINTMAX 1
13429 _ACEOF
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13435 $as_echo_n "checking for unsigned long long... " >&6; }
13436 if ${ac_cv_type_unsigned_long_long+:} false; then :
13437 $as_echo_n "(cached) " >&6
13438 else
13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13440 /* end confdefs.h. */
13441 unsigned long long ull = 1; int i = 63;
13443 main ()
13445 unsigned long long ullmax = (unsigned long long) -1;
13446 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13448 return 0;
13450 _ACEOF
13451 if ac_fn_c_try_link "$LINENO"; then :
13452 ac_cv_type_unsigned_long_long=yes
13453 else
13454 ac_cv_type_unsigned_long_long=no
13456 rm -f core conftest.err conftest.$ac_objext \
13457 conftest$ac_exeext conftest.$ac_ext
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13460 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13461 if test $ac_cv_type_unsigned_long_long = yes; then
13463 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13470 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
13472 test $ac_cv_type_unsigned_long_long = yes \
13473 && ac_type='unsigned long long' \
13474 || ac_type='unsigned long'
13476 cat >>confdefs.h <<_ACEOF
13477 #define uintmax_t $ac_type
13478 _ACEOF
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13484 $as_echo_n "checking for inttypes.h... " >&6; }
13485 if ${gt_cv_header_inttypes_h+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487 else
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13491 #include <sys/types.h>
13492 #include <inttypes.h>
13494 main ()
13498 return 0;
13500 _ACEOF
13501 if ac_fn_c_try_compile "$LINENO"; then :
13502 gt_cv_header_inttypes_h=yes
13503 else
13504 gt_cv_header_inttypes_h=no
13506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13510 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13511 if test $gt_cv_header_inttypes_h = yes; then
13513 cat >>confdefs.h <<_ACEOF
13514 #define HAVE_INTTYPES_H 1
13515 _ACEOF
13521 if test $gt_cv_header_inttypes_h = yes; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13523 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13524 if ${gt_cv_inttypes_pri_broken+:} false; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 #include <inttypes.h>
13531 #ifdef PRId32
13532 char *p = PRId32;
13533 #endif
13536 main ()
13540 return 0;
13542 _ACEOF
13543 if ac_fn_c_try_compile "$LINENO"; then :
13544 gt_cv_inttypes_pri_broken=no
13545 else
13546 gt_cv_inttypes_pri_broken=yes
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13552 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13554 if test "$gt_cv_inttypes_pri_broken" = yes; then
13556 cat >>confdefs.h <<_ACEOF
13557 #define PRI_MACROS_BROKEN 1
13558 _ACEOF
13563 if test "X$prefix" = "XNONE"; then
13564 acl_final_prefix="$ac_default_prefix"
13565 else
13566 acl_final_prefix="$prefix"
13568 if test "X$exec_prefix" = "XNONE"; then
13569 acl_final_exec_prefix='${prefix}'
13570 else
13571 acl_final_exec_prefix="$exec_prefix"
13573 acl_save_prefix="$prefix"
13574 prefix="$acl_final_prefix"
13575 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13576 prefix="$acl_save_prefix"
13579 # Check whether --with-gnu-ld was given.
13580 if test "${with_gnu_ld+set}" = set; then :
13581 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13582 else
13583 with_gnu_ld=no
13586 ac_prog=ld
13587 if test "$GCC" = yes; then
13588 # Check if gcc -print-prog-name=ld gives a path.
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13590 $as_echo_n "checking for ld used by GCC... " >&6; }
13591 case $host in
13592 *-*-mingw*)
13593 # gcc leaves a trailing carriage return which upsets mingw
13594 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13596 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13597 esac
13598 case $ac_prog in
13599 # Accept absolute paths.
13600 [\\/]* | [A-Za-z]:[\\/]*)
13601 re_direlt='/[^/][^/]*/\.\./'
13602 # Canonicalize the path of ld
13603 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13604 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13605 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13606 done
13607 test -z "$LD" && LD="$ac_prog"
13610 # If it fails, then pretend we aren't using GCC.
13611 ac_prog=ld
13614 # If it is relative, then search for the first ld in PATH.
13615 with_gnu_ld=unknown
13617 esac
13618 elif test "$with_gnu_ld" = yes; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13620 $as_echo_n "checking for GNU ld... " >&6; }
13621 else
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13623 $as_echo_n "checking for non-GNU ld... " >&6; }
13625 if ${acl_cv_path_LD+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 if test -z "$LD"; then
13629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13630 for ac_dir in $PATH; do
13631 test -z "$ac_dir" && ac_dir=.
13632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13633 acl_cv_path_LD="$ac_dir/$ac_prog"
13634 # Check to see if the program is GNU ld. I'd rather use --version,
13635 # but apparently some GNU ld's only accept -v.
13636 # Break only if it was the GNU/non-GNU ld that we prefer.
13637 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13638 test "$with_gnu_ld" != no && break
13639 else
13640 test "$with_gnu_ld" != yes && break
13643 done
13644 IFS="$ac_save_ifs"
13645 else
13646 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13650 LD="$acl_cv_path_LD"
13651 if test -n "$LD"; then
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13653 $as_echo "$LD" >&6; }
13654 else
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13658 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13660 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13661 if ${acl_cv_prog_gnu_ld+:} false; then :
13662 $as_echo_n "(cached) " >&6
13663 else
13664 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13665 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13666 acl_cv_prog_gnu_ld=yes
13667 else
13668 acl_cv_prog_gnu_ld=no
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13672 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13673 with_gnu_ld=$acl_cv_prog_gnu_ld
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13678 $as_echo_n "checking for shared library run path origin... " >&6; }
13679 if ${acl_cv_rpath+:} false; then :
13680 $as_echo_n "(cached) " >&6
13681 else
13683 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13684 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13685 . ./conftest.sh
13686 rm -f ./conftest.sh
13687 acl_cv_rpath=done
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13691 $as_echo "$acl_cv_rpath" >&6; }
13692 wl="$acl_cv_wl"
13693 libext="$acl_cv_libext"
13694 shlibext="$acl_cv_shlibext"
13695 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13696 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13697 hardcode_direct="$acl_cv_hardcode_direct"
13698 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13699 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
13700 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
13701 # Check whether --enable-rpath was given.
13702 if test "${enable_rpath+set}" = set; then :
13703 enableval=$enable_rpath; :
13704 else
13705 enable_rpath=yes
13715 use_additional=yes
13717 acl_save_prefix="$prefix"
13718 prefix="$acl_final_prefix"
13719 acl_save_exec_prefix="$exec_prefix"
13720 exec_prefix="$acl_final_exec_prefix"
13722 eval additional_includedir=\"$includedir\"
13723 eval additional_libdir=\"$libdir\"
13725 exec_prefix="$acl_save_exec_prefix"
13726 prefix="$acl_save_prefix"
13729 # Check whether --with-libiconv-prefix was given.
13730 if test "${with_libiconv_prefix+set}" = set; then :
13731 withval=$with_libiconv_prefix;
13732 if test "X$withval" = "Xno"; then
13733 use_additional=no
13734 else
13735 if test "X$withval" = "X"; then
13737 acl_save_prefix="$prefix"
13738 prefix="$acl_final_prefix"
13739 acl_save_exec_prefix="$exec_prefix"
13740 exec_prefix="$acl_final_exec_prefix"
13742 eval additional_includedir=\"$includedir\"
13743 eval additional_libdir=\"$libdir\"
13745 exec_prefix="$acl_save_exec_prefix"
13746 prefix="$acl_save_prefix"
13748 else
13749 additional_includedir="$withval/include"
13750 additional_libdir="$withval/lib"
13756 LIBICONV=
13757 LTLIBICONV=
13758 INCICONV=
13759 rpathdirs=
13760 ltrpathdirs=
13761 names_already_handled=
13762 names_next_round='iconv '
13763 while test -n "$names_next_round"; do
13764 names_this_round="$names_next_round"
13765 names_next_round=
13766 for name in $names_this_round; do
13767 already_handled=
13768 for n in $names_already_handled; do
13769 if test "$n" = "$name"; then
13770 already_handled=yes
13771 break
13773 done
13774 if test -z "$already_handled"; then
13775 names_already_handled="$names_already_handled $name"
13776 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13777 eval value=\"\$HAVE_LIB$uppername\"
13778 if test -n "$value"; then
13779 if test "$value" = yes; then
13780 eval value=\"\$LIB$uppername\"
13781 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13782 eval value=\"\$LTLIB$uppername\"
13783 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13784 else
13787 else
13788 found_dir=
13789 found_la=
13790 found_so=
13791 found_a=
13792 if test $use_additional = yes; then
13793 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13794 found_dir="$additional_libdir"
13795 found_so="$additional_libdir/lib$name.$shlibext"
13796 if test -f "$additional_libdir/lib$name.la"; then
13797 found_la="$additional_libdir/lib$name.la"
13799 else
13800 if test -f "$additional_libdir/lib$name.$libext"; then
13801 found_dir="$additional_libdir"
13802 found_a="$additional_libdir/lib$name.$libext"
13803 if test -f "$additional_libdir/lib$name.la"; then
13804 found_la="$additional_libdir/lib$name.la"
13809 if test "X$found_dir" = "X"; then
13810 for x in $LDFLAGS $LTLIBICONV; do
13812 acl_save_prefix="$prefix"
13813 prefix="$acl_final_prefix"
13814 acl_save_exec_prefix="$exec_prefix"
13815 exec_prefix="$acl_final_exec_prefix"
13816 eval x=\"$x\"
13817 exec_prefix="$acl_save_exec_prefix"
13818 prefix="$acl_save_prefix"
13820 case "$x" in
13821 -L*)
13822 dir=`echo "X$x" | sed -e 's/^X-L//'`
13823 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13824 found_dir="$dir"
13825 found_so="$dir/lib$name.$shlibext"
13826 if test -f "$dir/lib$name.la"; then
13827 found_la="$dir/lib$name.la"
13829 else
13830 if test -f "$dir/lib$name.$libext"; then
13831 found_dir="$dir"
13832 found_a="$dir/lib$name.$libext"
13833 if test -f "$dir/lib$name.la"; then
13834 found_la="$dir/lib$name.la"
13839 esac
13840 if test "X$found_dir" != "X"; then
13841 break
13843 done
13845 if test "X$found_dir" != "X"; then
13846 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13847 if test "X$found_so" != "X"; then
13848 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13849 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13850 else
13851 haveit=
13852 for x in $ltrpathdirs; do
13853 if test "X$x" = "X$found_dir"; then
13854 haveit=yes
13855 break
13857 done
13858 if test -z "$haveit"; then
13859 ltrpathdirs="$ltrpathdirs $found_dir"
13861 if test "$hardcode_direct" = yes; then
13862 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13863 else
13864 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13865 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13866 haveit=
13867 for x in $rpathdirs; do
13868 if test "X$x" = "X$found_dir"; then
13869 haveit=yes
13870 break
13872 done
13873 if test -z "$haveit"; then
13874 rpathdirs="$rpathdirs $found_dir"
13876 else
13877 haveit=
13878 for x in $LDFLAGS $LIBICONV; do
13880 acl_save_prefix="$prefix"
13881 prefix="$acl_final_prefix"
13882 acl_save_exec_prefix="$exec_prefix"
13883 exec_prefix="$acl_final_exec_prefix"
13884 eval x=\"$x\"
13885 exec_prefix="$acl_save_exec_prefix"
13886 prefix="$acl_save_prefix"
13888 if test "X$x" = "X-L$found_dir"; then
13889 haveit=yes
13890 break
13892 done
13893 if test -z "$haveit"; then
13894 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13896 if test "$hardcode_minus_L" != no; then
13897 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13898 else
13899 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13904 else
13905 if test "X$found_a" != "X"; then
13906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13907 else
13908 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13911 additional_includedir=
13912 case "$found_dir" in
13913 */lib | */lib/)
13914 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13915 additional_includedir="$basedir/include"
13917 esac
13918 if test "X$additional_includedir" != "X"; then
13919 if test "X$additional_includedir" != "X/usr/include"; then
13920 haveit=
13921 if test "X$additional_includedir" = "X/usr/local/include"; then
13922 if test -n "$GCC"; then
13923 case $host_os in
13924 linux*) haveit=yes;;
13925 esac
13928 if test -z "$haveit"; then
13929 for x in $CPPFLAGS $INCICONV; do
13931 acl_save_prefix="$prefix"
13932 prefix="$acl_final_prefix"
13933 acl_save_exec_prefix="$exec_prefix"
13934 exec_prefix="$acl_final_exec_prefix"
13935 eval x=\"$x\"
13936 exec_prefix="$acl_save_exec_prefix"
13937 prefix="$acl_save_prefix"
13939 if test "X$x" = "X-I$additional_includedir"; then
13940 haveit=yes
13941 break
13943 done
13944 if test -z "$haveit"; then
13945 if test -d "$additional_includedir"; then
13946 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13952 if test -n "$found_la"; then
13953 save_libdir="$libdir"
13954 case "$found_la" in
13955 */* | *\\*) . "$found_la" ;;
13956 *) . "./$found_la" ;;
13957 esac
13958 libdir="$save_libdir"
13959 for dep in $dependency_libs; do
13960 case "$dep" in
13961 -L*)
13962 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13963 if test "X$additional_libdir" != "X/usr/lib"; then
13964 haveit=
13965 if test "X$additional_libdir" = "X/usr/local/lib"; then
13966 if test -n "$GCC"; then
13967 case $host_os in
13968 linux*) haveit=yes;;
13969 esac
13972 if test -z "$haveit"; then
13973 haveit=
13974 for x in $LDFLAGS $LIBICONV; do
13976 acl_save_prefix="$prefix"
13977 prefix="$acl_final_prefix"
13978 acl_save_exec_prefix="$exec_prefix"
13979 exec_prefix="$acl_final_exec_prefix"
13980 eval x=\"$x\"
13981 exec_prefix="$acl_save_exec_prefix"
13982 prefix="$acl_save_prefix"
13984 if test "X$x" = "X-L$additional_libdir"; then
13985 haveit=yes
13986 break
13988 done
13989 if test -z "$haveit"; then
13990 if test -d "$additional_libdir"; then
13991 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13994 haveit=
13995 for x in $LDFLAGS $LTLIBICONV; do
13997 acl_save_prefix="$prefix"
13998 prefix="$acl_final_prefix"
13999 acl_save_exec_prefix="$exec_prefix"
14000 exec_prefix="$acl_final_exec_prefix"
14001 eval x=\"$x\"
14002 exec_prefix="$acl_save_exec_prefix"
14003 prefix="$acl_save_prefix"
14005 if test "X$x" = "X-L$additional_libdir"; then
14006 haveit=yes
14007 break
14009 done
14010 if test -z "$haveit"; then
14011 if test -d "$additional_libdir"; then
14012 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14018 -R*)
14019 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14020 if test "$enable_rpath" != no; then
14021 haveit=
14022 for x in $rpathdirs; do
14023 if test "X$x" = "X$dir"; then
14024 haveit=yes
14025 break
14027 done
14028 if test -z "$haveit"; then
14029 rpathdirs="$rpathdirs $dir"
14031 haveit=
14032 for x in $ltrpathdirs; do
14033 if test "X$x" = "X$dir"; then
14034 haveit=yes
14035 break
14037 done
14038 if test -z "$haveit"; then
14039 ltrpathdirs="$ltrpathdirs $dir"
14043 -l*)
14044 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14046 *.la)
14047 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14050 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14051 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14053 esac
14054 done
14056 else
14057 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14058 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14062 done
14063 done
14064 if test "X$rpathdirs" != "X"; then
14065 if test -n "$hardcode_libdir_separator"; then
14066 alldirs=
14067 for found_dir in $rpathdirs; do
14068 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14069 done
14070 acl_save_libdir="$libdir"
14071 libdir="$alldirs"
14072 eval flag=\"$hardcode_libdir_flag_spec\"
14073 libdir="$acl_save_libdir"
14074 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14075 else
14076 for found_dir in $rpathdirs; do
14077 acl_save_libdir="$libdir"
14078 libdir="$found_dir"
14079 eval flag=\"$hardcode_libdir_flag_spec\"
14080 libdir="$acl_save_libdir"
14081 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14082 done
14085 if test "X$ltrpathdirs" != "X"; then
14086 for found_dir in $ltrpathdirs; do
14087 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14088 done
14094 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14095 stdlib.h string.h unistd.h sys/param.h
14096 do :
14097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14098 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14100 cat >>confdefs.h <<_ACEOF
14101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14102 _ACEOF
14106 done
14108 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14109 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14110 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14111 do :
14112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14114 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14115 cat >>confdefs.h <<_ACEOF
14116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14117 _ACEOF
14120 done
14128 am_save_CPPFLAGS="$CPPFLAGS"
14130 for element in $INCICONV; do
14131 haveit=
14132 for x in $CPPFLAGS; do
14134 acl_save_prefix="$prefix"
14135 prefix="$acl_final_prefix"
14136 acl_save_exec_prefix="$exec_prefix"
14137 exec_prefix="$acl_final_exec_prefix"
14138 eval x=\"$x\"
14139 exec_prefix="$acl_save_exec_prefix"
14140 prefix="$acl_save_prefix"
14142 if test "X$x" = "X$element"; then
14143 haveit=yes
14144 break
14146 done
14147 if test -z "$haveit"; then
14148 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14150 done
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14154 $as_echo_n "checking for iconv... " >&6; }
14155 if ${am_cv_func_iconv+:} false; then :
14156 $as_echo_n "(cached) " >&6
14157 else
14159 am_cv_func_iconv="no, consider installing GNU libiconv"
14160 am_cv_lib_iconv=no
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14163 #include <stdlib.h>
14164 #include <iconv.h>
14166 main ()
14168 iconv_t cd = iconv_open("","");
14169 iconv(cd,NULL,NULL,NULL,NULL);
14170 iconv_close(cd);
14172 return 0;
14174 _ACEOF
14175 if ac_fn_c_try_link "$LINENO"; then :
14176 am_cv_func_iconv=yes
14178 rm -f core conftest.err conftest.$ac_objext \
14179 conftest$ac_exeext conftest.$ac_ext
14180 if test "$am_cv_func_iconv" != yes; then
14181 am_save_LIBS="$LIBS"
14182 LIBS="$LIBS $LIBICONV"
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185 #include <stdlib.h>
14186 #include <iconv.h>
14188 main ()
14190 iconv_t cd = iconv_open("","");
14191 iconv(cd,NULL,NULL,NULL,NULL);
14192 iconv_close(cd);
14194 return 0;
14196 _ACEOF
14197 if ac_fn_c_try_link "$LINENO"; then :
14198 am_cv_lib_iconv=yes
14199 am_cv_func_iconv=yes
14201 rm -f core conftest.err conftest.$ac_objext \
14202 conftest$ac_exeext conftest.$ac_ext
14203 LIBS="$am_save_LIBS"
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14208 $as_echo "$am_cv_func_iconv" >&6; }
14209 if test "$am_cv_func_iconv" = yes; then
14211 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14214 if test "$am_cv_lib_iconv" = yes; then
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14216 $as_echo_n "checking how to link with libiconv... " >&6; }
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14218 $as_echo "$LIBICONV" >&6; }
14219 else
14220 CPPFLAGS="$am_save_CPPFLAGS"
14221 LIBICONV=
14222 LTLIBICONV=
14227 if test "$am_cv_func_iconv" = yes; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14229 $as_echo_n "checking for iconv declaration... " >&6; }
14230 if ${am_cv_proto_iconv+:} false; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14237 #include <stdlib.h>
14238 #include <iconv.h>
14239 extern
14240 #ifdef __cplusplus
14242 #endif
14243 #if defined(__STDC__) || defined(__cplusplus)
14244 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14245 #else
14246 size_t iconv();
14247 #endif
14250 main ()
14254 return 0;
14256 _ACEOF
14257 if ac_fn_c_try_compile "$LINENO"; then :
14258 am_cv_proto_iconv_arg1=""
14259 else
14260 am_cv_proto_iconv_arg1="const"
14262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263 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);"
14266 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14268 }$am_cv_proto_iconv" >&5
14269 $as_echo "${ac_t:-
14270 }$am_cv_proto_iconv" >&6; }
14272 cat >>confdefs.h <<_ACEOF
14273 #define ICONV_CONST $am_cv_proto_iconv_arg1
14274 _ACEOF
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14280 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14281 if ${am_cv_langinfo_codeset+:} false; then :
14282 $as_echo_n "(cached) " >&6
14283 else
14284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286 #include <langinfo.h>
14288 main ()
14290 char* cs = nl_langinfo(CODESET);
14292 return 0;
14294 _ACEOF
14295 if ac_fn_c_try_link "$LINENO"; then :
14296 am_cv_langinfo_codeset=yes
14297 else
14298 am_cv_langinfo_codeset=no
14300 rm -f core conftest.err conftest.$ac_objext \
14301 conftest$ac_exeext conftest.$ac_ext
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14305 $as_echo "$am_cv_langinfo_codeset" >&6; }
14306 if test $am_cv_langinfo_codeset = yes; then
14308 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14312 if test $ac_cv_header_locale_h = yes; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14315 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14316 if ${am_cv_val_LC_MESSAGES+:} false; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14321 #include <locale.h>
14323 main ()
14325 return LC_MESSAGES
14327 return 0;
14329 _ACEOF
14330 if ac_fn_c_try_link "$LINENO"; then :
14331 am_cv_val_LC_MESSAGES=yes
14332 else
14333 am_cv_val_LC_MESSAGES=no
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14339 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14340 if test $am_cv_val_LC_MESSAGES = yes; then
14342 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14348 for ac_prog in bison
14350 # Extract the first word of "$ac_prog", so it can be a program name with args.
14351 set dummy $ac_prog; ac_word=$2
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14353 $as_echo_n "checking for $ac_word... " >&6; }
14354 if ${ac_cv_prog_INTLBISON+:} false; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 if test -n "$INTLBISON"; then
14358 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14359 else
14360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14361 for as_dir in $PATH
14363 IFS=$as_save_IFS
14364 test -z "$as_dir" && as_dir=.
14365 for ac_exec_ext in '' $ac_executable_extensions; do
14366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14367 ac_cv_prog_INTLBISON="$ac_prog"
14368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14369 break 2
14371 done
14372 done
14373 IFS=$as_save_IFS
14377 INTLBISON=$ac_cv_prog_INTLBISON
14378 if test -n "$INTLBISON"; then
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14380 $as_echo "$INTLBISON" >&6; }
14381 else
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14383 $as_echo "no" >&6; }
14387 test -n "$INTLBISON" && break
14388 done
14390 if test -z "$INTLBISON"; then
14391 ac_verc_fail=yes
14392 else
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14394 $as_echo_n "checking version of bison... " >&6; }
14395 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14396 case $ac_prog_version in
14397 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14398 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14399 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14400 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14401 esac
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14403 $as_echo "$ac_prog_version" >&6; }
14405 if test $ac_verc_fail = yes; then
14406 INTLBISON=:
14411 # Check whether --with-language was given.
14412 if test "${with_language+set}" = set; then :
14413 withval=$with_language; if test "$withval" != "all"; then :
14414 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14434 $as_echo_n "checking whether NLS is requested... " >&6; }
14435 # Check whether --enable-nls was given.
14436 if test "${enable_nls+set}" = set; then :
14437 enableval=$enable_nls; USE_NLS=$enableval
14438 else
14439 USE_NLS=yes
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14443 $as_echo "$USE_NLS" >&6; }
14447 BUILD_INCLUDED_LIBINTL=no
14448 USE_INCLUDED_LIBINTL=no
14450 LIBINTL=
14451 LTLIBINTL=
14452 POSUB=
14454 if test "$USE_NLS" = "yes"; then
14455 gt_use_preinstalled_gnugettext=no
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14458 $as_echo_n "checking whether included gettext is requested... " >&6; }
14460 # Check whether --with-included-gettext was given.
14461 if test "${with_included_gettext+set}" = set; then :
14462 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14463 else
14464 nls_cv_force_use_gnu_gettext=no
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14468 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14470 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14471 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14479 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14480 if ${gt_cv_func_gnugettext2_libc+:} false; then :
14481 $as_echo_n "(cached) " >&6
14482 else
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 #include <libintl.h>
14486 extern int _nl_msg_cat_cntr;
14487 extern int *_nl_domain_bindings;
14489 main ()
14491 bindtextdomain ("", "");
14492 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14494 return 0;
14496 _ACEOF
14497 if ac_fn_c_try_link "$LINENO"; then :
14498 gt_cv_func_gnugettext2_libc=yes
14499 else
14500 gt_cv_func_gnugettext2_libc=no
14502 rm -f core conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14506 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14508 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14512 use_additional=yes
14514 acl_save_prefix="$prefix"
14515 prefix="$acl_final_prefix"
14516 acl_save_exec_prefix="$exec_prefix"
14517 exec_prefix="$acl_final_exec_prefix"
14519 eval additional_includedir=\"$includedir\"
14520 eval additional_libdir=\"$libdir\"
14522 exec_prefix="$acl_save_exec_prefix"
14523 prefix="$acl_save_prefix"
14526 # Check whether --with-libintl-prefix was given.
14527 if test "${with_libintl_prefix+set}" = set; then :
14528 withval=$with_libintl_prefix;
14529 if test "X$withval" = "Xno"; then
14530 use_additional=no
14531 else
14532 if test "X$withval" = "X"; then
14534 acl_save_prefix="$prefix"
14535 prefix="$acl_final_prefix"
14536 acl_save_exec_prefix="$exec_prefix"
14537 exec_prefix="$acl_final_exec_prefix"
14539 eval additional_includedir=\"$includedir\"
14540 eval additional_libdir=\"$libdir\"
14542 exec_prefix="$acl_save_exec_prefix"
14543 prefix="$acl_save_prefix"
14545 else
14546 additional_includedir="$withval/include"
14547 additional_libdir="$withval/lib"
14553 LIBINTL=
14554 LTLIBINTL=
14555 INCINTL=
14556 rpathdirs=
14557 ltrpathdirs=
14558 names_already_handled=
14559 names_next_round='intl '
14560 while test -n "$names_next_round"; do
14561 names_this_round="$names_next_round"
14562 names_next_round=
14563 for name in $names_this_round; do
14564 already_handled=
14565 for n in $names_already_handled; do
14566 if test "$n" = "$name"; then
14567 already_handled=yes
14568 break
14570 done
14571 if test -z "$already_handled"; then
14572 names_already_handled="$names_already_handled $name"
14573 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14574 eval value=\"\$HAVE_LIB$uppername\"
14575 if test -n "$value"; then
14576 if test "$value" = yes; then
14577 eval value=\"\$LIB$uppername\"
14578 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14579 eval value=\"\$LTLIB$uppername\"
14580 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14581 else
14584 else
14585 found_dir=
14586 found_la=
14587 found_so=
14588 found_a=
14589 if test $use_additional = yes; then
14590 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14591 found_dir="$additional_libdir"
14592 found_so="$additional_libdir/lib$name.$shlibext"
14593 if test -f "$additional_libdir/lib$name.la"; then
14594 found_la="$additional_libdir/lib$name.la"
14596 else
14597 if test -f "$additional_libdir/lib$name.$libext"; then
14598 found_dir="$additional_libdir"
14599 found_a="$additional_libdir/lib$name.$libext"
14600 if test -f "$additional_libdir/lib$name.la"; then
14601 found_la="$additional_libdir/lib$name.la"
14606 if test "X$found_dir" = "X"; then
14607 for x in $LDFLAGS $LTLIBINTL; do
14609 acl_save_prefix="$prefix"
14610 prefix="$acl_final_prefix"
14611 acl_save_exec_prefix="$exec_prefix"
14612 exec_prefix="$acl_final_exec_prefix"
14613 eval x=\"$x\"
14614 exec_prefix="$acl_save_exec_prefix"
14615 prefix="$acl_save_prefix"
14617 case "$x" in
14618 -L*)
14619 dir=`echo "X$x" | sed -e 's/^X-L//'`
14620 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14621 found_dir="$dir"
14622 found_so="$dir/lib$name.$shlibext"
14623 if test -f "$dir/lib$name.la"; then
14624 found_la="$dir/lib$name.la"
14626 else
14627 if test -f "$dir/lib$name.$libext"; then
14628 found_dir="$dir"
14629 found_a="$dir/lib$name.$libext"
14630 if test -f "$dir/lib$name.la"; then
14631 found_la="$dir/lib$name.la"
14636 esac
14637 if test "X$found_dir" != "X"; then
14638 break
14640 done
14642 if test "X$found_dir" != "X"; then
14643 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14644 if test "X$found_so" != "X"; then
14645 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14646 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14647 else
14648 haveit=
14649 for x in $ltrpathdirs; do
14650 if test "X$x" = "X$found_dir"; then
14651 haveit=yes
14652 break
14654 done
14655 if test -z "$haveit"; then
14656 ltrpathdirs="$ltrpathdirs $found_dir"
14658 if test "$hardcode_direct" = yes; then
14659 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14660 else
14661 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14662 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14663 haveit=
14664 for x in $rpathdirs; do
14665 if test "X$x" = "X$found_dir"; then
14666 haveit=yes
14667 break
14669 done
14670 if test -z "$haveit"; then
14671 rpathdirs="$rpathdirs $found_dir"
14673 else
14674 haveit=
14675 for x in $LDFLAGS $LIBINTL; do
14677 acl_save_prefix="$prefix"
14678 prefix="$acl_final_prefix"
14679 acl_save_exec_prefix="$exec_prefix"
14680 exec_prefix="$acl_final_exec_prefix"
14681 eval x=\"$x\"
14682 exec_prefix="$acl_save_exec_prefix"
14683 prefix="$acl_save_prefix"
14685 if test "X$x" = "X-L$found_dir"; then
14686 haveit=yes
14687 break
14689 done
14690 if test -z "$haveit"; then
14691 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14693 if test "$hardcode_minus_L" != no; then
14694 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14695 else
14696 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14701 else
14702 if test "X$found_a" != "X"; then
14703 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14704 else
14705 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14708 additional_includedir=
14709 case "$found_dir" in
14710 */lib | */lib/)
14711 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14712 additional_includedir="$basedir/include"
14714 esac
14715 if test "X$additional_includedir" != "X"; then
14716 if test "X$additional_includedir" != "X/usr/include"; then
14717 haveit=
14718 if test "X$additional_includedir" = "X/usr/local/include"; then
14719 if test -n "$GCC"; then
14720 case $host_os in
14721 linux*) haveit=yes;;
14722 esac
14725 if test -z "$haveit"; then
14726 for x in $CPPFLAGS $INCINTL; do
14728 acl_save_prefix="$prefix"
14729 prefix="$acl_final_prefix"
14730 acl_save_exec_prefix="$exec_prefix"
14731 exec_prefix="$acl_final_exec_prefix"
14732 eval x=\"$x\"
14733 exec_prefix="$acl_save_exec_prefix"
14734 prefix="$acl_save_prefix"
14736 if test "X$x" = "X-I$additional_includedir"; then
14737 haveit=yes
14738 break
14740 done
14741 if test -z "$haveit"; then
14742 if test -d "$additional_includedir"; then
14743 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14749 if test -n "$found_la"; then
14750 save_libdir="$libdir"
14751 case "$found_la" in
14752 */* | *\\*) . "$found_la" ;;
14753 *) . "./$found_la" ;;
14754 esac
14755 libdir="$save_libdir"
14756 for dep in $dependency_libs; do
14757 case "$dep" in
14758 -L*)
14759 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14760 if test "X$additional_libdir" != "X/usr/lib"; then
14761 haveit=
14762 if test "X$additional_libdir" = "X/usr/local/lib"; then
14763 if test -n "$GCC"; then
14764 case $host_os in
14765 linux*) haveit=yes;;
14766 esac
14769 if test -z "$haveit"; then
14770 haveit=
14771 for x in $LDFLAGS $LIBINTL; do
14773 acl_save_prefix="$prefix"
14774 prefix="$acl_final_prefix"
14775 acl_save_exec_prefix="$exec_prefix"
14776 exec_prefix="$acl_final_exec_prefix"
14777 eval x=\"$x\"
14778 exec_prefix="$acl_save_exec_prefix"
14779 prefix="$acl_save_prefix"
14781 if test "X$x" = "X-L$additional_libdir"; then
14782 haveit=yes
14783 break
14785 done
14786 if test -z "$haveit"; then
14787 if test -d "$additional_libdir"; then
14788 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14791 haveit=
14792 for x in $LDFLAGS $LTLIBINTL; do
14794 acl_save_prefix="$prefix"
14795 prefix="$acl_final_prefix"
14796 acl_save_exec_prefix="$exec_prefix"
14797 exec_prefix="$acl_final_exec_prefix"
14798 eval x=\"$x\"
14799 exec_prefix="$acl_save_exec_prefix"
14800 prefix="$acl_save_prefix"
14802 if test "X$x" = "X-L$additional_libdir"; then
14803 haveit=yes
14804 break
14806 done
14807 if test -z "$haveit"; then
14808 if test -d "$additional_libdir"; then
14809 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14815 -R*)
14816 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14817 if test "$enable_rpath" != no; then
14818 haveit=
14819 for x in $rpathdirs; do
14820 if test "X$x" = "X$dir"; then
14821 haveit=yes
14822 break
14824 done
14825 if test -z "$haveit"; then
14826 rpathdirs="$rpathdirs $dir"
14828 haveit=
14829 for x in $ltrpathdirs; do
14830 if test "X$x" = "X$dir"; then
14831 haveit=yes
14832 break
14834 done
14835 if test -z "$haveit"; then
14836 ltrpathdirs="$ltrpathdirs $dir"
14840 -l*)
14841 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14843 *.la)
14844 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14847 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14848 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14850 esac
14851 done
14853 else
14854 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14855 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14859 done
14860 done
14861 if test "X$rpathdirs" != "X"; then
14862 if test -n "$hardcode_libdir_separator"; then
14863 alldirs=
14864 for found_dir in $rpathdirs; do
14865 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14866 done
14867 acl_save_libdir="$libdir"
14868 libdir="$alldirs"
14869 eval flag=\"$hardcode_libdir_flag_spec\"
14870 libdir="$acl_save_libdir"
14871 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14872 else
14873 for found_dir in $rpathdirs; do
14874 acl_save_libdir="$libdir"
14875 libdir="$found_dir"
14876 eval flag=\"$hardcode_libdir_flag_spec\"
14877 libdir="$acl_save_libdir"
14878 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14879 done
14882 if test "X$ltrpathdirs" != "X"; then
14883 for found_dir in $ltrpathdirs; do
14884 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14885 done
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14889 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14890 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
14891 $as_echo_n "(cached) " >&6
14892 else
14893 gt_save_CPPFLAGS="$CPPFLAGS"
14894 CPPFLAGS="$CPPFLAGS $INCINTL"
14895 gt_save_LIBS="$LIBS"
14896 LIBS="$LIBS $LIBINTL"
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 #include <libintl.h>
14900 extern int _nl_msg_cat_cntr;
14901 extern
14902 #ifdef __cplusplus
14904 #endif
14905 const char *_nl_expand_alias ();
14907 main ()
14909 bindtextdomain ("", "");
14910 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14912 return 0;
14914 _ACEOF
14915 if ac_fn_c_try_link "$LINENO"; then :
14916 gt_cv_func_gnugettext2_libintl=yes
14917 else
14918 gt_cv_func_gnugettext2_libintl=no
14920 rm -f core conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext conftest.$ac_ext
14922 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14923 LIBS="$LIBS $LIBICONV"
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14926 #include <libintl.h>
14927 extern int _nl_msg_cat_cntr;
14928 extern
14929 #ifdef __cplusplus
14931 #endif
14932 const char *_nl_expand_alias ();
14934 main ()
14936 bindtextdomain ("", "");
14937 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14939 return 0;
14941 _ACEOF
14942 if ac_fn_c_try_link "$LINENO"; then :
14943 LIBINTL="$LIBINTL $LIBICONV"
14944 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14945 gt_cv_func_gnugettext2_libintl=yes
14948 rm -f core conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14951 CPPFLAGS="$gt_save_CPPFLAGS"
14952 LIBS="$gt_save_LIBS"
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14955 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14958 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14959 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14960 && test "$PACKAGE" != gettext; }; then
14961 gt_use_preinstalled_gnugettext=yes
14962 else
14963 LIBINTL=
14964 LTLIBINTL=
14965 INCINTL=
14969 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14970 nls_cv_use_gnu_gettext=yes
14974 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14975 INTLOBJS="\$(GETTOBJS)"
14976 BUILD_INCLUDED_LIBINTL=yes
14977 USE_INCLUDED_LIBINTL=yes
14978 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14979 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14980 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14983 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14984 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14985 CATOBJEXT=.gmo
14989 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14990 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14992 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14994 else
14995 USE_NLS=no
14999 if test "$USE_NLS" = "yes"; then
15001 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15002 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15004 $as_echo_n "checking how to link with libintl... " >&6; }
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15006 $as_echo "$LIBINTL" >&6; }
15008 for element in $INCINTL; do
15009 haveit=
15010 for x in $CPPFLAGS; do
15012 acl_save_prefix="$prefix"
15013 prefix="$acl_final_prefix"
15014 acl_save_exec_prefix="$exec_prefix"
15015 exec_prefix="$acl_final_exec_prefix"
15016 eval x=\"$x\"
15017 exec_prefix="$acl_save_exec_prefix"
15018 prefix="$acl_save_prefix"
15020 if test "X$x" = "X$element"; then
15021 haveit=yes
15022 break
15024 done
15025 if test -z "$haveit"; then
15026 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15028 done
15033 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15036 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15040 POSUB=po
15044 if test "$PACKAGE" = gettext; then
15045 BUILD_INCLUDED_LIBINTL=yes
15053 nls_cv_header_intl=
15054 nls_cv_header_libgt=
15056 DATADIRNAME=share
15059 INSTOBJEXT=.mo
15062 GENCAT=gencat
15065 INTL_LIBTOOL_SUFFIX_PREFIX=
15069 INTLLIBS="$LIBINTL"
15076 if test $USE_INCLUDED_LIBINTL = yes; then :
15077 INCINTL=-I\${top_builddir}/intl
15080 if test x$USE_NLS = xyes; then :
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
15083 $as_echo_n "checking for autopoint... " >&6; }
15084 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
15085 if test -n "$autopoint_version"; then :
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
15088 $as_echo "yes ($autopoint_version)" >&6; }
15091 else
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094 $as_echo "no" >&6; }
15095 USE_NLS=no
15100 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15102 You need to install GNU gettext/gettext-tools to compile aMule with
15103 i18n support." >&5
15104 $as_echo "$as_me: WARNING:
15105 You need to install GNU gettext/gettext-tools to compile aMule with
15106 i18n support." >&2;}
15107 _mule_warning_12=yes
15108 _mule_has_warnings=yes
15112 if test ${USE_NLS:-no} = yes; then :
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15115 $as_echo_n "checking for requested languages... " >&6; }
15116 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15118 if test ${enable_amule_daemon:-no} = yes; then :
15120 if test -z "$LINGUAS"; then :
15121 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15122 else
15124 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15125 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15128 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15130 else
15131 AMULE_DAEMON_MANPAGES=
15136 if test ${enable_amulecmd:-no} = yes; then :
15138 if test -z "$LINGUAS"; then :
15139 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15140 else
15142 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15143 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15146 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15148 else
15149 AMULECMD_MANPAGES=
15154 if test ${enable_webserver:-no} = yes; then :
15156 if test -z "$LINGUAS"; then :
15157 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15158 else
15160 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15161 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15164 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15166 else
15167 WEBSERVER_MANPAGES=
15172 if test ${enable_amule_gui:-no} = yes; then :
15174 if test -z "$LINGUAS"; then :
15175 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15176 else
15178 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15179 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15182 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15184 else
15185 AMULE_GUI_MANPAGES=
15190 if test ${enable_cas:-no} = yes; then :
15192 if test -z "$LINGUAS"; then :
15193 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15194 else
15196 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15197 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15200 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
15202 else
15203 CAS_MANPAGES=
15208 if test ${enable_wxcas:-no} = yes; then :
15210 if test -z "$LINGUAS"; then :
15211 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15212 else
15214 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15215 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15218 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
15220 else
15221 WXCAS_MANPAGES=
15226 if test ${enable_ed2k:-yes} = yes; then :
15228 if test -z "$LINGUAS"; then :
15229 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15230 else
15232 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15233 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15236 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
15238 else
15239 ED2K_MANPAGES=
15244 if test ${enable_alc:-no} = yes; then :
15246 if test -z "$LINGUAS"; then :
15247 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15248 else
15250 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15251 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15254 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
15256 else
15257 ALC_MANPAGES=
15262 if test ${enable_alcc:-no} = yes; then :
15264 if test -z "$LINGUAS"; then :
15265 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15266 else
15268 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15269 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15272 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
15274 else
15275 ALCC_MANPAGES=
15280 if test ${enable_monolithic:-yes} = yes; then :
15282 if test -z "$LINGUAS"; then :
15283 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15284 else
15286 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15287 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15290 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15292 else
15293 MONOLITHIC_MANPAGES=
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15298 $as_echo "${LINGUAS:-all}" >&6; }
15303 if test x$USE_INCLUDED_LIBINTL = xyes; then :
15304 ac_config_commands="$ac_config_commands intl"
15307 ac_ext=cpp
15308 ac_cpp='$CXXCPP $CPPFLAGS'
15309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15315 # Check for bfd.h (to have proper backtraces without using wxExecute)
15317 for ac_header in ansidecl.h bfd.h
15318 do :
15319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15320 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15321 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15322 cat >>confdefs.h <<_ACEOF
15323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15324 _ACEOF
15328 done
15330 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15333 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15334 if ${mule_cv_lib_bfd+:} false; then :
15335 $as_echo_n "(cached) " >&6
15336 else
15338 for bfd_ldadd in "" "-lbfd" "-liberty" "-ldl" "${LIBINTL}" "${ZLIB_LIBS}" "-lbfd -liberty" "-lbfd -ldl" "-lbfd ${LIBINTL}" "-lbfd ${ZLIB_LIBS}" "-liberty -ldl" "-liberty ${LIBINTL}" "-liberty ${ZLIB_LIBS}" "-ldl ${LIBINTL}" "-ldl ${ZLIB_LIBS}" "${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl" "-lbfd -liberty ${LIBINTL}" "-lbfd -liberty ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL}" "-lbfd -ldl ${ZLIB_LIBS}" "-lbfd ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL}" "-liberty -ldl ${ZLIB_LIBS}" "-liberty ${LIBINTL} ${ZLIB_LIBS}" "-ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL}" "-lbfd -liberty -ldl ${ZLIB_LIBS}" "-lbfd -liberty ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -ldl ${LIBINTL} ${ZLIB_LIBS}" "-liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" "-lbfd -liberty -ldl ${LIBINTL} ${ZLIB_LIBS}" ; do
15339 # Doing some black magic to prevent multiple tests for the same set of
15340 # libraries when any of the shell variables above expand to nothing.
15341 echo $bfd_ldadd
15342 done | sed -e 's/^ *//;s/ *$//;s/ */ /g' | ${AWK} '!x[$0]++' >conftest.bfd_ldadd
15343 while read bfd_ldadd; do
15344 mule_backup_LIBS="$LIBS"
15345 mule_backup_LDFLAGS="$LDFLAGS"
15346 LIBS="${bfd_ldadd} $LIBS"
15347 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15352 #include <ansidecl.h>
15353 #include <bfd.h>
15356 main ()
15358 const char *dummy = bfd_errmsg(bfd_get_error());
15360 return 0;
15363 _ACEOF
15364 if ac_fn_cxx_try_link "$LINENO"; then :
15366 LIBS="$mule_backup_LIBS"
15367 LDFLAGS="$mule_backup_LDFLAGS"
15368 mule_cv_lib_bfd="${bfd_ldadd}"
15371 rm -f core conftest.err conftest.$ac_objext \
15372 conftest$ac_exeext conftest.$ac_ext
15373 LIBS="$mule_backup_LIBS"
15374 LDFLAGS="$mule_backup_LDFLAGS"
15375 if ${mule_cv_lib_bfd+:} false; then :
15376 break
15378 done <conftest.bfd_ldadd
15379 rm -f conftest.bfd_ldadd
15384 if ${mule_cv_lib_bfd+:} false; then :
15386 BFD_CPPFLAGS="-DHAVE_BFD"
15387 BFD_LIBS="${mule_cv_lib_bfd}"
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15389 $as_echo "${BFD_LIBS:-none required}" >&6; }
15391 else
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15394 $as_echo "not found" >&6; }
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15396 Cannot link to the library containing the bfd functions." >&5
15397 $as_echo "$as_me: WARNING:
15398 Cannot link to the library containing the bfd functions." >&2;}
15399 _mule_warning_13=yes
15400 _mule_has_warnings=yes
15405 else
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15408 bfd.h not found or unusable, please install binutils development
15409 package if you are a developer or want to help testing aMule" >&5
15410 $as_echo "$as_me: WARNING:
15411 bfd.h not found or unusable, please install binutils development
15412 package if you are a developer or want to help testing aMule" >&2;}
15413 _mule_warning_14=yes
15414 _mule_has_warnings=yes
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15422 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h. */
15427 #include <execinfo.h>
15430 main ()
15433 void *bt[1];
15434 int n = backtrace((void **)&bt, 1);
15435 char **bt_syms = backtrace_symbols(bt, n);
15438 return 0;
15441 _ACEOF
15442 if ac_fn_cxx_try_link "$LINENO"; then :
15445 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15448 $as_echo "yes" >&6; }
15450 else
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15453 $as_echo "no" >&6; }
15456 rm -f core conftest.err conftest.$ac_objext \
15457 conftest$ac_exeext conftest.$ac_ext
15461 # aMule plasma widget
15462 if test ${enable_plasmamule:-no} = yes; then :
15465 if test -z ${QT_MOC}; then :
15467 for ac_prog in moc-qt4 moc
15469 # Extract the first word of "$ac_prog", so it can be a program name with args.
15470 set dummy $ac_prog; ac_word=$2
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15472 $as_echo_n "checking for $ac_word... " >&6; }
15473 if ${ac_cv_path_QT_MOC+:} false; then :
15474 $as_echo_n "(cached) " >&6
15475 else
15476 case $QT_MOC in
15477 [\\/]* | ?:[\\/]*)
15478 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15482 for as_dir in $PATH
15484 IFS=$as_save_IFS
15485 test -z "$as_dir" && as_dir=.
15486 for ac_exec_ext in '' $ac_executable_extensions; do
15487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15488 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15490 break 2
15492 done
15493 done
15494 IFS=$as_save_IFS
15497 esac
15499 QT_MOC=$ac_cv_path_QT_MOC
15500 if test -n "$QT_MOC"; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15502 $as_echo "$QT_MOC" >&6; }
15503 else
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15505 $as_echo "no" >&6; }
15509 test -n "$QT_MOC" && break
15510 done
15512 if test -z ${QT_MOC}; then :
15514 echo moc not found
15515 exit 1
15519 else
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15522 $as_echo_n "checking for moc... " >&6; }
15523 if test -x ${QT_MOC}; then :
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15526 $as_echo "${QT_MOC}" >&6; }
15529 else
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15532 $as_echo "\"not found\"" >&6; }
15533 QT_MOC="not found"
15534 exit 1
15541 if test "${QT_MOC}" != "not found"; then :
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15544 $as_echo_n "checking for moc version >= 4... " >&6; }
15545 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15546 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15549 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15551 else
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15554 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15555 QT_MOC="not found"
15556 exit 1
15562 if test "${QT_MOC}" = "not found"; then :
15563 enable_plasmamule=disabled
15566 if test ${enable_plasmamule:-no} = yes; then :
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15571 $as_echo_n "checking for qt... " >&6; }
15572 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15575 $as_echo "found" >&6; }
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15577 $as_echo_n "checking for qt core cflags... " >&6; }
15578 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15580 $as_echo "$QT_CORE_CFLAGS" >&6; }
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15582 $as_echo_n "checking for qt core libs... " >&6; }
15583 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15585 $as_echo "$QT_CORE_LIBS" >&6; }
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15587 $as_echo_n "checking for qt gui cflags... " >&6; }
15588 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15590 $as_echo "$QT_GUI_CFLAGS" >&6; }
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15592 $as_echo_n "checking for qt gui libs... " >&6; }
15593 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15595 $as_echo "$QT_GUI_LIBS" >&6; }
15597 else
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15599 $as_echo "not found" >&6; }
15600 exit 1
15604 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15606 QT_DBUS_LDFLAGS="-lQtDBus"
15616 if test -z "${QT_CORE_CXXFLAGS}"; then :
15617 enable_plasmamule=disabled
15622 if test ${enable_plasmamule:-no} = yes; then :
15625 if test -z ${KDE4_CONFIG}; then :
15627 # Extract the first word of "kde4-config", so it can be a program name with args.
15628 set dummy kde4-config; ac_word=$2
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15630 $as_echo_n "checking for $ac_word... " >&6; }
15631 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
15632 $as_echo_n "(cached) " >&6
15633 else
15634 case $KDE4_CONFIG in
15635 [\\/]* | ?:[\\/]*)
15636 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15640 for as_dir in $PATH
15642 IFS=$as_save_IFS
15643 test -z "$as_dir" && as_dir=.
15644 for ac_exec_ext in '' $ac_executable_extensions; do
15645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15646 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15648 break 2
15650 done
15651 done
15652 IFS=$as_save_IFS
15655 esac
15657 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15658 if test -n "$KDE4_CONFIG"; then
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15660 $as_echo "$KDE4_CONFIG" >&6; }
15661 else
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15663 $as_echo "no" >&6; }
15668 else
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15671 $as_echo_n "checking for kde4-config... " >&6; }
15672 if test ! -x KDE4_CONFIG; then :
15674 KDE4_CONFIG="not found"
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15676 $as_echo "not found" >&6; }
15677 exit 1
15683 if test "${KDE4_CONFIG}" != "not found"; then :
15685 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15686 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15689 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15691 else
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15694 $as_echo "at least version 4 required" >&6; }
15695 exit 1
15699 else
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15702 $as_echo "not found" >&6; }
15703 exit 1
15708 if test "${KDE4_CONFIG}" = "not found"; then :
15709 enable_plasmamule=disabled
15714 if test ${enable_plasmamule:-no} = yes; then :
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15718 $as_echo_n "checking for kde4 headers... " >&6; }
15719 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15721 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15723 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15726 $as_echo "${KDE_HEADER_DIR}" >&6; }
15728 else
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15731 $as_echo "dataengine.h not found" >&6; }
15732 exit 1
15736 else
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15739 $as_echo "kdirwatch.h not found" >&6; }
15740 exit 1
15745 if test -z ${KDE_HEADER_DIR}; then :
15746 enable_plasmamule=disabled
15751 if test ${enable_plasmamule:-no} = yes; then :
15753 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15754 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15759 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15760 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15762 KDE_IN_HOME="yes"
15765 if test ${KDE_IN_HOME} = "yes"; then :
15767 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15769 else
15771 if test -n ${prefix}; then :
15773 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15774 if test -n ${KDE_APPLNK_PATH}; then :
15776 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15780 else
15782 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15788 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15794 $as_echo_n "checking for kde4 services Path... " >&6; }
15795 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15797 KDE_IN_HOME="yes"
15800 if test ${KDE_IN_HOME} = "yes"; then :
15802 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15804 else
15806 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15810 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15816 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15817 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15819 KDE_IN_HOME="yes"
15822 if test ${KDE_IN_HOME} = "yes"; then :
15824 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15826 else
15828 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15832 $as_echo "${KDE_MODULE_PATH}" >&6; }
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15838 $as_echo_n "checking for kde4 icons Path... " >&6; }
15839 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15841 KDE_IN_HOME="yes"
15844 if test ${KDE_IN_HOME} = "yes"; then :
15846 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15848 else
15850 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15853 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15855 $as_echo "${KDE_ICON_PATH}" >&6; }
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15861 $as_echo_n "checking for location for mime-type installation... " >&6; }
15862 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15864 KDE_IN_HOME="yes"
15867 if test ${KDE_IN_HOME} = "yes"; then :
15869 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15871 else
15873 if test -n ${prefix}; then :
15875 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15876 if test -n ${KDE_MIME_PATH}; then :
15878 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15882 else
15884 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15890 $as_echo "${KDE_MIME_PATH}" >&6; }
15894 else
15895 enable_plasmamule=disabled
15900 if test ${enable_debug:-yes} = yes; then :
15902 DEBUGFLAG="-D__DEBUG__"
15910 # Check for readline library
15911 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
15914 $as_echo_n "checking for a readline compatible library... " >&6; }
15915 if ${vl_cv_lib_readline+:} false; then :
15916 $as_echo_n "(cached) " >&6
15917 else
15919 ORIG_LIBS="$LIBS"
15920 for readline_lib in readline edit editline; do
15921 for termcap_lib in "" termcap curses ncurses; do
15922 if test -z "$termcap_lib"; then
15923 TRY_LIB="-l$readline_lib"
15924 else
15925 TRY_LIB="-l$readline_lib -l$termcap_lib"
15927 LIBS="$ORIG_LIBS $TRY_LIB"
15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15931 /* Override any GCC internal prototype to avoid an error.
15932 Use char because int might match the return type of a GCC
15933 builtin and then its argument prototype would still apply. */
15934 #ifdef __cplusplus
15935 extern "C"
15936 #endif
15937 char readline ();
15939 main ()
15941 return readline ();
15943 return 0;
15945 _ACEOF
15946 if ac_fn_cxx_try_link "$LINENO"; then :
15947 vl_cv_lib_readline="$TRY_LIB"
15949 rm -f core conftest.err conftest.$ac_objext \
15950 conftest$ac_exeext conftest.$ac_ext
15951 if test -n "$vl_cv_lib_readline"; then
15952 break
15954 done
15955 if test -n "$vl_cv_lib_readline"; then
15956 break
15958 done
15959 if test -z "$vl_cv_lib_readline"; then
15960 vl_cv_lib_readline="no"
15961 LIBS="$ORIG_LIBS"
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
15966 $as_echo "$vl_cv_lib_readline" >&6; }
15968 if test "$vl_cv_lib_readline" != "no"; then
15969 have_readline_headers=no
15970 for ac_header in readline/readline.h readline.h
15971 do :
15972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15973 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15975 cat >>confdefs.h <<_ACEOF
15976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15977 _ACEOF
15978 have_readline_headers=yes ; break
15981 done
15983 if test "$have_readline_headers" = "yes"; then
15984 READLINE_LIBS="$vl_cv_lib_readline"
15986 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15988 else
15989 READLINE_LIBS=
15990 vl_cv_lib_readline=no
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15993 $as_echo_n "checking whether readline supports history... " >&6; }
15994 if ${vl_cv_lib_readline_history+:} false; then :
15995 $as_echo_n "(cached) " >&6
15996 else
15998 vl_cv_lib_readline_history="no"
15999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h. */
16002 /* Override any GCC internal prototype to avoid an error.
16003 Use char because int might match the return type of a GCC
16004 builtin and then its argument prototype would still apply. */
16005 #ifdef __cplusplus
16006 extern "C"
16007 #endif
16008 char add_history ();
16010 main ()
16012 return add_history ();
16014 return 0;
16016 _ACEOF
16017 if ac_fn_cxx_try_link "$LINENO"; then :
16018 vl_cv_lib_readline_history="yes"
16020 rm -f core conftest.err conftest.$ac_objext \
16021 conftest$ac_exeext conftest.$ac_ext
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16025 $as_echo "$vl_cv_lib_readline_history" >&6; }
16026 if test "$vl_cv_lib_readline_history" = "yes"; then
16027 have_readline_history_headers=no
16028 for ac_header in readline/history.h history.h
16029 do :
16030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16031 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16033 cat >>confdefs.h <<_ACEOF
16034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16035 _ACEOF
16036 have_readline_history_headers=yes ; break
16039 done
16041 if test "$have_readline_history_headers" = "yes"; then
16043 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16045 else
16046 vl_cv_lib_readline_history=no
16049 else
16050 READLINE_LIBS=""
16057 ac_ext=c
16058 ac_cpp='$CPP $CPPFLAGS'
16059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16064 # Check for strerror_r
16065 mule_backup_CPPFLAGS="$CPPFLAGS"
16066 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
16067 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16068 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16069 ac_have_decl=1
16070 else
16071 ac_have_decl=0
16074 cat >>confdefs.h <<_ACEOF
16075 #define HAVE_DECL_STRERROR_R $ac_have_decl
16076 _ACEOF
16078 for ac_func in strerror_r
16079 do :
16080 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16081 if test "x$ac_cv_func_strerror_r" = xyes; then :
16082 cat >>confdefs.h <<_ACEOF
16083 #define HAVE_STRERROR_R 1
16084 _ACEOF
16087 done
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16090 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16091 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16092 $as_echo_n "(cached) " >&6
16093 else
16095 ac_cv_func_strerror_r_char_p=no
16096 if test $ac_cv_have_decl_strerror_r = yes; then
16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098 /* end confdefs.h. */
16099 $ac_includes_default
16101 main ()
16104 char buf[100];
16105 char x = *strerror_r (0, buf, sizeof buf);
16106 char *p = strerror_r (0, buf, sizeof buf);
16107 return !p || x;
16110 return 0;
16112 _ACEOF
16113 if ac_fn_c_try_compile "$LINENO"; then :
16114 ac_cv_func_strerror_r_char_p=yes
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 else
16118 # strerror_r is not declared. Choose between
16119 # systems that have relatively inaccessible declarations for the
16120 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16121 # former has a strerror_r that returns char*, while the latter
16122 # has a strerror_r that returns `int'.
16123 # This test should segfault on the DEC system.
16124 if test "$cross_compiling" = yes; then :
16126 else
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 $ac_includes_default
16130 extern char *strerror_r ();
16132 main ()
16134 char buf[100];
16135 char x = *strerror_r (0, buf, sizeof buf);
16136 return ! isalpha (x);
16138 return 0;
16140 _ACEOF
16141 if ac_fn_c_try_run "$LINENO"; then :
16142 ac_cv_func_strerror_r_char_p=yes
16144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16145 conftest.$ac_objext conftest.beam conftest.$ac_ext
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16152 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16153 if test $ac_cv_func_strerror_r_char_p = yes; then
16155 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16159 CPPFLAGS="$mule_backup_CPPFLAGS"
16162 # Other tests
16164 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16166 $as_echo_n "checking for docdir... " >&6; }
16167 if test -z "$docdir"; then :
16168 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16171 $as_echo "$docdir" >&6; }
16174 # Try to set the SVN checkout-date
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16176 $as_echo_n "checking for SVNDATE... " >&6; }
16177 modified=
16178 if test -f "$srcdir/.svn-revision"; then
16179 svndate="rev. `cat $srcdir/.svn-revision`"
16180 elif test -d "$srcdir"/.svn; then
16181 svndate="rev. `svnversion "$srcdir" | ${SED} -e 'h;s/[0-9][0-9]*:\(.*\)/\1/;s/\([0-9][0-9]*\).*/\1/;x;/.*M.*/{x;s/$/+/;b;};x'`"
16182 elif test -d "$srcdir"/.git; then
16184 git_revision=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16185 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16186 modified="+"
16188 if test -f $srcdir/.git/svn/.metadata ; then
16189 git_sha=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16190 svndate=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16191 svn_revision=\`git --git-dir="$srcdir"/.git svn find-rev \${sha}\`
16192 if test -n "\${svn_revision}" ; then
16193 if test \${sha} = ${git_sha} ; then
16194 echo "rev. \${svn_revision}${modified}"
16195 else
16196 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16198 break
16200 done`
16201 else
16202 svndate="rev. g${git_revision}${modified}"
16205 elif test -d "$srcdir"/.hg; then
16207 hg_revision=`hg --cwd "$srcdir" identify --id`
16208 hg_revid=${hg_revision%+}
16209 if test ${hg_revision} != ${hg_revid} ; then
16210 modified="+"
16212 if test -f "$srcdir"/.hg/svn/uuid ; then
16213 svndate=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16214 if test \${svn_revision} != r ; then
16215 if test \${hg_sha} = ${hg_revid} ; then
16216 echo "rev. \${svn_revision#r}${modified}"
16217 else
16218 echo "rev. \${svn_revision#r}+h${hg_revision}"
16220 break
16222 done`
16223 else
16224 svndate="rev. h${hg_revision}"
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16231 $as_echo "${svndate:-None required}" >&6; }
16232 if test -n "$svndate"; then :
16235 cat >>confdefs.h <<_ACEOF
16236 #define SVNDATE "$svndate"
16237 _ACEOF
16239 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
16242 SVNDATE=$svndate
16247 # Check whether --with-denoise-level was given.
16248 if test "${with_denoise_level+set}" = set; then :
16249 withval=$with_denoise_level;
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16254 $as_echo_n "checking denoising level... " >&6; }
16255 if test ${with_denoise_level:-5} = yes; then :
16256 with_denoise_level=5
16258 if test ${with_denoise_level:-5} = no; then :
16259 with_denoise_level=0
16261 if test ${with_denoise_level:-5} -gt 4; then :
16262 if test "${svndate:+set}" = "set"; then :
16263 with_denoise_level=1
16264 else
16265 with_denoise_level=4
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16269 $as_echo "$with_denoise_level" >&6; }
16271 ac_config_commands="$ac_config_commands denoiser"
16276 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16278 # Check whether --enable-ccache was given.
16279 if test "${enable_ccache+set}" = set; then :
16280 enableval=$enable_ccache;
16286 # Check whether --with-ccache-prefix was given.
16287 if test "${with_ccache_prefix+set}" = set; then :
16288 withval=$with_ccache_prefix;
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16293 $as_echo_n "checking whether ccache support should be added... " >&6; }
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16295 $as_echo "${enable_ccache:-no}" >&6; }
16297 if test ${enable_ccache:-no} = yes; then :
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16300 $as_echo_n "checking for ccache presence... " >&6; }
16301 if test -z "$with_ccache_prefix"; then :
16303 ccache_full=`which ccache`
16304 with_ccache_prefix=`dirname ${ccache_full}`
16307 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
16309 CC="$with_ccache_prefix/ccache $CC"
16310 CXX="$with_ccache_prefix/ccache $CXX"
16311 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
16313 else
16314 enable_ccache=no
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16317 $as_echo "${enable_ccache:-no}" >&6; }
16324 if test x$SYS = xwin32; then
16325 SYS_WIN32_TRUE=
16326 SYS_WIN32_FALSE='#'
16327 else
16328 SYS_WIN32_TRUE='#'
16329 SYS_WIN32_FALSE=
16332 if test x$SYS = xwin32 -a "$RC" != ":" -a x$WX_PORT = xmsw; then
16333 NEED_RC_TRUE=
16334 NEED_RC_FALSE='#'
16335 else
16336 NEED_RC_TRUE='#'
16337 NEED_RC_FALSE=
16340 if test x$SYS = xdarwin; then
16341 NEED_CORESERVICES_TRUE=
16342 NEED_CORESERVICES_FALSE='#'
16343 else
16344 NEED_CORESERVICES_TRUE='#'
16345 NEED_CORESERVICES_FALSE=
16348 if test x$USE_NLS = xyes; then
16349 COMPILE_NLS_TRUE=
16350 COMPILE_NLS_FALSE='#'
16351 else
16352 COMPILE_NLS_TRUE='#'
16353 COMPILE_NLS_FALSE=
16356 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16357 INSTALL_SKINS_TRUE=
16358 INSTALL_SKINS_FALSE='#'
16359 else
16360 INSTALL_SKINS_TRUE='#'
16361 INSTALL_SKINS_FALSE=
16364 if test ${enable_plasmamule:-no} = yes; then
16365 PLASMAMULE_TRUE=
16366 PLASMAMULE_FALSE='#'
16367 else
16368 PLASMAMULE_TRUE='#'
16369 PLASMAMULE_FALSE=
16373 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
16374 COMPILE_LIB_COMMON_TRUE=
16375 COMPILE_LIB_COMMON_FALSE='#'
16376 else
16377 COMPILE_LIB_COMMON_TRUE='#'
16378 COMPILE_LIB_COMMON_FALSE=
16381 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
16382 COMPILE_LIB_EC_TRUE=
16383 COMPILE_LIB_EC_FALSE='#'
16384 else
16385 COMPILE_LIB_EC_TRUE='#'
16386 COMPILE_LIB_EC_FALSE=
16390 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile po/Makefile.in src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
16393 if test x$SYS = xwin32; then :
16394 ac_config_files="$ac_config_files version.rc"
16397 cat >confcache <<\_ACEOF
16398 # This file is a shell script that caches the results of configure
16399 # tests run on this system so they can be shared between configure
16400 # scripts and configure runs, see configure's option --config-cache.
16401 # It is not useful on other systems. If it contains results you don't
16402 # want to keep, you may remove or edit it.
16404 # config.status only pays attention to the cache file if you give it
16405 # the --recheck option to rerun configure.
16407 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16408 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16409 # following values.
16411 _ACEOF
16413 # The following way of writing the cache mishandles newlines in values,
16414 # but we know of no workaround that is simple, portable, and efficient.
16415 # So, we kill variables containing newlines.
16416 # Ultrix sh set writes to stderr and can't be redirected directly,
16417 # and sets the high bit in the cache file unless we assign to the vars.
16419 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16420 eval ac_val=\$$ac_var
16421 case $ac_val in #(
16422 *${as_nl}*)
16423 case $ac_var in #(
16424 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16425 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16426 esac
16427 case $ac_var in #(
16428 _ | IFS | as_nl) ;; #(
16429 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16430 *) { eval $ac_var=; unset $ac_var;} ;;
16431 esac ;;
16432 esac
16433 done
16435 (set) 2>&1 |
16436 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16437 *${as_nl}ac_space=\ *)
16438 # `set' does not quote correctly, so add quotes: double-quote
16439 # substitution turns \\\\ into \\, and sed turns \\ into \.
16440 sed -n \
16441 "s/'/'\\\\''/g;
16442 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16443 ;; #(
16445 # `set' quotes correctly as required by POSIX, so do not add quotes.
16446 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16448 esac |
16449 sort
16451 sed '
16452 /^ac_cv_env_/b end
16453 t clear
16454 :clear
16455 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16456 t end
16457 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16458 :end' >>confcache
16459 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16460 if test -w "$cache_file"; then
16461 if test "x$cache_file" != "x/dev/null"; then
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16463 $as_echo "$as_me: updating cache $cache_file" >&6;}
16464 if test ! -f "$cache_file" || test -h "$cache_file"; then
16465 cat confcache >"$cache_file"
16466 else
16467 case $cache_file in #(
16468 */* | ?:*)
16469 mv -f confcache "$cache_file"$$ &&
16470 mv -f "$cache_file"$$ "$cache_file" ;; #(
16472 mv -f confcache "$cache_file" ;;
16473 esac
16476 else
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16478 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16481 rm -f confcache
16483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16484 # Let make expand exec_prefix.
16485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16487 DEFS=-DHAVE_CONFIG_H
16489 ac_libobjs=
16490 ac_ltlibobjs=
16492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16493 # 1. Remove the extension, and $U if already installed.
16494 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16495 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16496 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16497 # will be set to the directory where LIBOBJS objects are built.
16498 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16499 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16500 done
16501 LIBOBJS=$ac_libobjs
16503 LTLIBOBJS=$ac_ltlibobjs
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16507 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16508 if test -n "$am_sleep_pid"; then
16509 # Hide warnings about reused PIDs.
16510 wait $am_sleep_pid 2>/dev/null
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16513 $as_echo "done" >&6; }
16514 if test -n "$EXEEXT"; then
16515 am__EXEEXT_TRUE=
16516 am__EXEEXT_FALSE='#'
16517 else
16518 am__EXEEXT_TRUE='#'
16519 am__EXEEXT_FALSE=
16522 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16523 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16526 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16527 as_fn_error $? "conditional \"AMDEP\" was never defined.
16528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16530 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16531 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16534 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16535 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16538 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16539 as_fn_error $? "conditional \"MONOLITHIC\" was never defined.
16540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16542 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16543 as_fn_error $? "conditional \"AMULE_DAEMON\" was never defined.
16544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16546 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16547 as_fn_error $? "conditional \"COMPILE_CMD\" was never defined.
16548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16550 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16551 as_fn_error $? "conditional \"WEB\" was never defined.
16552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16554 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16555 as_fn_error $? "conditional \"AMULE_GUI\" was never defined.
16556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16558 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16559 as_fn_error $? "conditional \"CAS\" was never defined.
16560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16562 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16563 as_fn_error $? "conditional \"WXCAS\" was never defined.
16564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16566 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16567 as_fn_error $? "conditional \"ED2K\" was never defined.
16568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16570 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16571 as_fn_error $? "conditional \"ALC\" was never defined.
16572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16574 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16575 as_fn_error $? "conditional \"ALCC\" was never defined.
16576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16578 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16579 as_fn_error $? "conditional \"XAS\" was never defined.
16580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16582 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16583 as_fn_error $? "conditional \"FILEVIEW\" was never defined.
16584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16586 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16587 as_fn_error $? "conditional \"SYS_WIN32\" was never defined.
16588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16590 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16591 as_fn_error $? "conditional \"NEED_RC\" was never defined.
16592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16594 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16595 as_fn_error $? "conditional \"NEED_CORESERVICES\" was never defined.
16596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16598 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16599 as_fn_error $? "conditional \"COMPILE_NLS\" was never defined.
16600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16602 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16603 as_fn_error $? "conditional \"INSTALL_SKINS\" was never defined.
16604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16606 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16607 as_fn_error $? "conditional \"PLASMAMULE\" was never defined.
16608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16610 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16611 as_fn_error $? "conditional \"COMPILE_LIB_COMMON\" was never defined.
16612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16614 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16615 as_fn_error $? "conditional \"COMPILE_LIB_EC\" was never defined.
16616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16619 : "${CONFIG_STATUS=./config.status}"
16620 ac_write_fail=0
16621 ac_clean_files_save=$ac_clean_files
16622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16625 as_write_fail=0
16626 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16627 #! $SHELL
16628 # Generated by $as_me.
16629 # Run this file to recreate the current configuration.
16630 # Compiler output produced by configure, useful for debugging
16631 # configure, is in config.log if it exists.
16633 debug=false
16634 ac_cs_recheck=false
16635 ac_cs_silent=false
16637 SHELL=\${CONFIG_SHELL-$SHELL}
16638 export SHELL
16639 _ASEOF
16640 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16641 ## -------------------- ##
16642 ## M4sh Initialization. ##
16643 ## -------------------- ##
16645 # Be more Bourne compatible
16646 DUALCASE=1; export DUALCASE # for MKS sh
16647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16648 emulate sh
16649 NULLCMD=:
16650 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16651 # is contrary to our usage. Disable this feature.
16652 alias -g '${1+"$@"}'='"$@"'
16653 setopt NO_GLOB_SUBST
16654 else
16655 case `(set -o) 2>/dev/null` in #(
16656 *posix*) :
16657 set -o posix ;; #(
16658 *) :
16660 esac
16664 as_nl='
16666 export as_nl
16667 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16668 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16669 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16670 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16671 # Prefer a ksh shell builtin over an external printf program on Solaris,
16672 # but without wasting forks for bash or zsh.
16673 if test -z "$BASH_VERSION$ZSH_VERSION" \
16674 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16675 as_echo='print -r --'
16676 as_echo_n='print -rn --'
16677 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16678 as_echo='printf %s\n'
16679 as_echo_n='printf %s'
16680 else
16681 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16682 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16683 as_echo_n='/usr/ucb/echo -n'
16684 else
16685 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16686 as_echo_n_body='eval
16687 arg=$1;
16688 case $arg in #(
16689 *"$as_nl"*)
16690 expr "X$arg" : "X\\(.*\\)$as_nl";
16691 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16692 esac;
16693 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16695 export as_echo_n_body
16696 as_echo_n='sh -c $as_echo_n_body as_echo'
16698 export as_echo_body
16699 as_echo='sh -c $as_echo_body as_echo'
16702 # The user is always right.
16703 if test "${PATH_SEPARATOR+set}" != set; then
16704 PATH_SEPARATOR=:
16705 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16706 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16707 PATH_SEPARATOR=';'
16712 # IFS
16713 # We need space, tab and new line, in precisely that order. Quoting is
16714 # there to prevent editors from complaining about space-tab.
16715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16716 # splitting by setting IFS to empty value.)
16717 IFS=" "" $as_nl"
16719 # Find who we are. Look in the path if we contain no directory separator.
16720 as_myself=
16721 case $0 in #((
16722 *[\\/]* ) as_myself=$0 ;;
16723 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16724 for as_dir in $PATH
16726 IFS=$as_save_IFS
16727 test -z "$as_dir" && as_dir=.
16728 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16729 done
16730 IFS=$as_save_IFS
16733 esac
16734 # We did not find ourselves, most probably we were run as `sh COMMAND'
16735 # in which case we are not to be found in the path.
16736 if test "x$as_myself" = x; then
16737 as_myself=$0
16739 if test ! -f "$as_myself"; then
16740 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16741 exit 1
16744 # Unset variables that we do not need and which cause bugs (e.g. in
16745 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16746 # suppresses any "Segmentation fault" message there. '((' could
16747 # trigger a bug in pdksh 5.2.14.
16748 for as_var in BASH_ENV ENV MAIL MAILPATH
16749 do eval test x\${$as_var+set} = xset \
16750 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16751 done
16752 PS1='$ '
16753 PS2='> '
16754 PS4='+ '
16756 # NLS nuisances.
16757 LC_ALL=C
16758 export LC_ALL
16759 LANGUAGE=C
16760 export LANGUAGE
16762 # CDPATH.
16763 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16766 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16767 # ----------------------------------------
16768 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16769 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16770 # script with STATUS, using 1 if that was 0.
16771 as_fn_error ()
16773 as_status=$1; test $as_status -eq 0 && as_status=1
16774 if test "$4"; then
16775 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16776 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16778 $as_echo "$as_me: error: $2" >&2
16779 as_fn_exit $as_status
16780 } # as_fn_error
16783 # as_fn_set_status STATUS
16784 # -----------------------
16785 # Set $? to STATUS, without forking.
16786 as_fn_set_status ()
16788 return $1
16789 } # as_fn_set_status
16791 # as_fn_exit STATUS
16792 # -----------------
16793 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16794 as_fn_exit ()
16796 set +e
16797 as_fn_set_status $1
16798 exit $1
16799 } # as_fn_exit
16801 # as_fn_unset VAR
16802 # ---------------
16803 # Portably unset VAR.
16804 as_fn_unset ()
16806 { eval $1=; unset $1;}
16808 as_unset=as_fn_unset
16809 # as_fn_append VAR VALUE
16810 # ----------------------
16811 # Append the text in VALUE to the end of the definition contained in VAR. Take
16812 # advantage of any shell optimizations that allow amortized linear growth over
16813 # repeated appends, instead of the typical quadratic growth present in naive
16814 # implementations.
16815 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16816 eval 'as_fn_append ()
16818 eval $1+=\$2
16820 else
16821 as_fn_append ()
16823 eval $1=\$$1\$2
16825 fi # as_fn_append
16827 # as_fn_arith ARG...
16828 # ------------------
16829 # Perform arithmetic evaluation on the ARGs, and store the result in the
16830 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16831 # must be portable across $(()) and expr.
16832 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16833 eval 'as_fn_arith ()
16835 as_val=$(( $* ))
16837 else
16838 as_fn_arith ()
16840 as_val=`expr "$@" || test $? -eq 1`
16842 fi # as_fn_arith
16845 if expr a : '\(a\)' >/dev/null 2>&1 &&
16846 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16847 as_expr=expr
16848 else
16849 as_expr=false
16852 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16853 as_basename=basename
16854 else
16855 as_basename=false
16858 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16859 as_dirname=dirname
16860 else
16861 as_dirname=false
16864 as_me=`$as_basename -- "$0" ||
16865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16866 X"$0" : 'X\(//\)$' \| \
16867 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16868 $as_echo X/"$0" |
16869 sed '/^.*\/\([^/][^/]*\)\/*$/{
16870 s//\1/
16873 /^X\/\(\/\/\)$/{
16874 s//\1/
16877 /^X\/\(\/\).*/{
16878 s//\1/
16881 s/.*/./; q'`
16883 # Avoid depending upon Character Ranges.
16884 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16885 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16886 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16887 as_cr_digits='0123456789'
16888 as_cr_alnum=$as_cr_Letters$as_cr_digits
16890 ECHO_C= ECHO_N= ECHO_T=
16891 case `echo -n x` in #(((((
16892 -n*)
16893 case `echo 'xy\c'` in
16894 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16895 xy) ECHO_C='\c';;
16896 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16897 ECHO_T=' ';;
16898 esac;;
16900 ECHO_N='-n';;
16901 esac
16903 rm -f conf$$ conf$$.exe conf$$.file
16904 if test -d conf$$.dir; then
16905 rm -f conf$$.dir/conf$$.file
16906 else
16907 rm -f conf$$.dir
16908 mkdir conf$$.dir 2>/dev/null
16910 if (echo >conf$$.file) 2>/dev/null; then
16911 if ln -s conf$$.file conf$$ 2>/dev/null; then
16912 as_ln_s='ln -s'
16913 # ... but there are two gotchas:
16914 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16915 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16916 # In both cases, we have to default to `cp -pR'.
16917 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16918 as_ln_s='cp -pR'
16919 elif ln conf$$.file conf$$ 2>/dev/null; then
16920 as_ln_s=ln
16921 else
16922 as_ln_s='cp -pR'
16924 else
16925 as_ln_s='cp -pR'
16927 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16928 rmdir conf$$.dir 2>/dev/null
16931 # as_fn_mkdir_p
16932 # -------------
16933 # Create "$as_dir" as a directory, including parents if necessary.
16934 as_fn_mkdir_p ()
16937 case $as_dir in #(
16938 -*) as_dir=./$as_dir;;
16939 esac
16940 test -d "$as_dir" || eval $as_mkdir_p || {
16941 as_dirs=
16942 while :; do
16943 case $as_dir in #(
16944 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16945 *) as_qdir=$as_dir;;
16946 esac
16947 as_dirs="'$as_qdir' $as_dirs"
16948 as_dir=`$as_dirname -- "$as_dir" ||
16949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16950 X"$as_dir" : 'X\(//\)[^/]' \| \
16951 X"$as_dir" : 'X\(//\)$' \| \
16952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16953 $as_echo X"$as_dir" |
16954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16955 s//\1/
16958 /^X\(\/\/\)[^/].*/{
16959 s//\1/
16962 /^X\(\/\/\)$/{
16963 s//\1/
16966 /^X\(\/\).*/{
16967 s//\1/
16970 s/.*/./; q'`
16971 test -d "$as_dir" && break
16972 done
16973 test -z "$as_dirs" || eval "mkdir $as_dirs"
16974 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16977 } # as_fn_mkdir_p
16978 if mkdir -p . 2>/dev/null; then
16979 as_mkdir_p='mkdir -p "$as_dir"'
16980 else
16981 test -d ./-p && rmdir ./-p
16982 as_mkdir_p=false
16986 # as_fn_executable_p FILE
16987 # -----------------------
16988 # Test if FILE is an executable regular file.
16989 as_fn_executable_p ()
16991 test -f "$1" && test -x "$1"
16992 } # as_fn_executable_p
16993 as_test_x='test -x'
16994 as_executable_p=as_fn_executable_p
16996 # Sed expression to map a string onto a valid CPP name.
16997 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16999 # Sed expression to map a string onto a valid variable name.
17000 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17003 exec 6>&1
17004 ## ----------------------------------- ##
17005 ## Main body of $CONFIG_STATUS script. ##
17006 ## ----------------------------------- ##
17007 _ASEOF
17008 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17011 # Save the log message, to keep $0 and so on meaningful, and to
17012 # report actual input values of CONFIG_FILES etc. instead of their
17013 # values after options handling.
17014 ac_log="
17015 This file was extended by aMule $as_me SVN, which was
17016 generated by GNU Autoconf 2.69. Invocation command line was
17018 CONFIG_FILES = $CONFIG_FILES
17019 CONFIG_HEADERS = $CONFIG_HEADERS
17020 CONFIG_LINKS = $CONFIG_LINKS
17021 CONFIG_COMMANDS = $CONFIG_COMMANDS
17022 $ $0 $@
17024 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17027 _ACEOF
17029 case $ac_config_files in *"
17030 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17031 esac
17033 case $ac_config_headers in *"
17034 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17035 esac
17038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17039 # Files that config.status was made for.
17040 config_files="$ac_config_files"
17041 config_headers="$ac_config_headers"
17042 config_commands="$ac_config_commands"
17044 _ACEOF
17046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17047 ac_cs_usage="\
17048 \`$as_me' instantiates files and other configuration actions
17049 from templates according to the current configuration. Unless the files
17050 and actions are specified as TAGs, all are instantiated by default.
17052 Usage: $0 [OPTION]... [TAG]...
17054 -h, --help print this help, then exit
17055 -V, --version print version number and configuration settings, then exit
17056 --config print configuration, then exit
17057 -q, --quiet, --silent
17058 do not print progress messages
17059 -d, --debug don't remove temporary files
17060 --recheck update $as_me by reconfiguring in the same conditions
17061 --file=FILE[:TEMPLATE]
17062 instantiate the configuration file FILE
17063 --header=FILE[:TEMPLATE]
17064 instantiate the configuration header FILE
17066 Configuration files:
17067 $config_files
17069 Configuration headers:
17070 $config_headers
17072 Configuration commands:
17073 $config_commands
17075 Report bugs to <admin@amule.org>."
17077 _ACEOF
17078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17079 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17080 ac_cs_version="\\
17081 aMule config.status SVN
17082 configured by $0, generated by GNU Autoconf 2.69,
17083 with options \\"\$ac_cs_config\\"
17085 Copyright (C) 2012 Free Software Foundation, Inc.
17086 This config.status script is free software; the Free Software Foundation
17087 gives unlimited permission to copy, distribute and modify it."
17089 ac_pwd='$ac_pwd'
17090 srcdir='$srcdir'
17091 INSTALL='$INSTALL'
17092 MKDIR_P='$MKDIR_P'
17093 AWK='$AWK'
17094 test -n "\$AWK" || AWK=awk
17095 _ACEOF
17097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17098 # The default lists apply if the user does not specify any file.
17099 ac_need_defaults=:
17100 while test $# != 0
17102 case $1 in
17103 --*=?*)
17104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17106 ac_shift=:
17108 --*=)
17109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17110 ac_optarg=
17111 ac_shift=:
17114 ac_option=$1
17115 ac_optarg=$2
17116 ac_shift=shift
17118 esac
17120 case $ac_option in
17121 # Handling of the options.
17122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17123 ac_cs_recheck=: ;;
17124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17125 $as_echo "$ac_cs_version"; exit ;;
17126 --config | --confi | --conf | --con | --co | --c )
17127 $as_echo "$ac_cs_config"; exit ;;
17128 --debug | --debu | --deb | --de | --d | -d )
17129 debug=: ;;
17130 --file | --fil | --fi | --f )
17131 $ac_shift
17132 case $ac_optarg in
17133 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17134 '') as_fn_error $? "missing file argument" ;;
17135 esac
17136 as_fn_append CONFIG_FILES " '$ac_optarg'"
17137 ac_need_defaults=false;;
17138 --header | --heade | --head | --hea )
17139 $ac_shift
17140 case $ac_optarg in
17141 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17142 esac
17143 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17144 ac_need_defaults=false;;
17145 --he | --h)
17146 # Conflict between --help and --header
17147 as_fn_error $? "ambiguous option: \`$1'
17148 Try \`$0 --help' for more information.";;
17149 --help | --hel | -h )
17150 $as_echo "$ac_cs_usage"; exit ;;
17151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17152 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17153 ac_cs_silent=: ;;
17155 # This is an error.
17156 -*) as_fn_error $? "unrecognized option: \`$1'
17157 Try \`$0 --help' for more information." ;;
17159 *) as_fn_append ac_config_targets " $1"
17160 ac_need_defaults=false ;;
17162 esac
17163 shift
17164 done
17166 ac_configure_extra_args=
17168 if $ac_cs_silent; then
17169 exec 6>/dev/null
17170 ac_configure_extra_args="$ac_configure_extra_args --silent"
17173 _ACEOF
17174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17175 if \$ac_cs_recheck; then
17176 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17177 shift
17178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17179 CONFIG_SHELL='$SHELL'
17180 export CONFIG_SHELL
17181 exec "\$@"
17184 _ACEOF
17185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17186 exec 5>>config.log
17188 echo
17189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17190 ## Running $as_me. ##
17191 _ASBOX
17192 $as_echo "$ac_log"
17193 } >&5
17195 _ACEOF
17196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17198 # INIT-COMMANDS
17200 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17201 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17202 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17203 # from automake.
17204 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17205 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17206 LINGUAS="${LINGUAS-%UNSET%}"
17208 denoiserlevel=$with_denoise_level
17210 _ACEOF
17212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17214 # Handling of arguments.
17215 for ac_config_target in $ac_config_targets
17217 case $ac_config_target in
17218 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17219 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17220 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17221 "intl") CONFIG_COMMANDS="$CONFIG_COMMANDS intl" ;;
17222 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
17223 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17224 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17225 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
17226 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17227 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17228 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17229 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
17230 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17231 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
17232 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
17233 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17234 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
17235 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17236 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17237 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17238 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17239 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
17240 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17241 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17242 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17243 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17244 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17245 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17246 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
17247 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17248 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17249 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
17250 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
17251 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
17252 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
17253 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
17254 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17255 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
17256 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
17258 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17259 esac
17260 done
17263 # If the user did not use the arguments to specify the items to instantiate,
17264 # then the envvar interface is used. Set only those that are not.
17265 # We use the long form for the default assignment because of an extremely
17266 # bizarre bug on SunOS 4.1.3.
17267 if $ac_need_defaults; then
17268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17270 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17273 # Have a temporary directory for convenience. Make it in the build tree
17274 # simply because there is no reason against having it here, and in addition,
17275 # creating and moving files from /tmp can sometimes cause problems.
17276 # Hook for its removal unless debugging.
17277 # Note that there is a small window in which the directory will not be cleaned:
17278 # after its creation but before its name has been assigned to `$tmp'.
17279 $debug ||
17281 tmp= ac_tmp=
17282 trap 'exit_status=$?
17283 : "${ac_tmp:=$tmp}"
17284 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17286 trap 'as_fn_exit 1' 1 2 13 15
17288 # Create a (secure) tmp directory for tmp files.
17291 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17292 test -d "$tmp"
17293 } ||
17295 tmp=./conf$$-$RANDOM
17296 (umask 077 && mkdir "$tmp")
17297 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17298 ac_tmp=$tmp
17300 # Set up the scripts for CONFIG_FILES section.
17301 # No need to generate them if there are no CONFIG_FILES.
17302 # This happens for instance with `./config.status config.h'.
17303 if test -n "$CONFIG_FILES"; then
17306 ac_cr=`echo X | tr X '\015'`
17307 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17308 # But we know of no other shell where ac_cr would be empty at this
17309 # point, so we can use a bashism as a fallback.
17310 if test "x$ac_cr" = x; then
17311 eval ac_cr=\$\'\\r\'
17313 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17314 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17315 ac_cs_awk_cr='\\r'
17316 else
17317 ac_cs_awk_cr=$ac_cr
17320 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17321 _ACEOF
17325 echo "cat >conf$$subs.awk <<_ACEOF" &&
17326 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17327 echo "_ACEOF"
17328 } >conf$$subs.sh ||
17329 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17330 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17331 ac_delim='%!_!# '
17332 for ac_last_try in false false false false false :; do
17333 . ./conf$$subs.sh ||
17334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17336 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17337 if test $ac_delim_n = $ac_delim_num; then
17338 break
17339 elif $ac_last_try; then
17340 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17341 else
17342 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17344 done
17345 rm -f conf$$subs.sh
17347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17348 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17349 _ACEOF
17350 sed -n '
17352 s/^/S["/; s/!.*/"]=/
17355 s/^[^!]*!//
17356 :repl
17357 t repl
17358 s/'"$ac_delim"'$//
17359 t delim
17362 s/\(.\{148\}\)..*/\1/
17363 t more1
17364 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17367 b repl
17368 :more1
17369 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17372 s/.\{148\}//
17373 t nl
17374 :delim
17376 s/\(.\{148\}\)..*/\1/
17377 t more2
17378 s/["\\]/\\&/g; s/^/"/; s/$/"/
17381 :more2
17382 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17385 s/.\{148\}//
17386 t delim
17387 ' <conf$$subs.awk | sed '
17388 /^[^""]/{
17390 s/\n//
17392 ' >>$CONFIG_STATUS || ac_write_fail=1
17393 rm -f conf$$subs.awk
17394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17395 _ACAWK
17396 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17397 for (key in S) S_is_set[key] = 1
17398 FS = "\a"
17402 line = $ 0
17403 nfields = split(line, field, "@")
17404 substed = 0
17405 len = length(field[1])
17406 for (i = 2; i < nfields; i++) {
17407 key = field[i]
17408 keylen = length(key)
17409 if (S_is_set[key]) {
17410 value = S[key]
17411 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17412 len += length(value) + length(field[++i])
17413 substed = 1
17414 } else
17415 len += 1 + keylen
17418 print line
17421 _ACAWK
17422 _ACEOF
17423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17424 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17425 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17426 else
17428 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17429 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17430 _ACEOF
17432 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17433 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17434 # trailing colons and then remove the whole line if VPATH becomes empty
17435 # (actually we leave an empty line to preserve line numbers).
17436 if test "x$srcdir" = x.; then
17437 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17439 s///
17440 s/^/:/
17441 s/[ ]*$/:/
17442 s/:\$(srcdir):/:/g
17443 s/:\${srcdir}:/:/g
17444 s/:@srcdir@:/:/g
17445 s/^:*//
17446 s/:*$//
17448 s/\(=[ ]*\).*/\1/
17450 s/\n//
17451 s/^[^=]*=[ ]*$//
17455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17456 fi # test -n "$CONFIG_FILES"
17458 # Set up the scripts for CONFIG_HEADERS section.
17459 # No need to generate them if there are no CONFIG_HEADERS.
17460 # This happens for instance with `./config.status Makefile'.
17461 if test -n "$CONFIG_HEADERS"; then
17462 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17463 BEGIN {
17464 _ACEOF
17466 # Transform confdefs.h into an awk script `defines.awk', embedded as
17467 # here-document in config.status, that substitutes the proper values into
17468 # config.h.in to produce config.h.
17470 # Create a delimiter string that does not exist in confdefs.h, to ease
17471 # handling of long lines.
17472 ac_delim='%!_!# '
17473 for ac_last_try in false false :; do
17474 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17475 if test -z "$ac_tt"; then
17476 break
17477 elif $ac_last_try; then
17478 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17479 else
17480 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17482 done
17484 # For the awk script, D is an array of macro values keyed by name,
17485 # likewise P contains macro parameters if any. Preserve backslash
17486 # newline sequences.
17488 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17489 sed -n '
17490 s/.\{148\}/&'"$ac_delim"'/g
17491 t rset
17492 :rset
17493 s/^[ ]*#[ ]*define[ ][ ]*/ /
17494 t def
17496 :def
17497 s/\\$//
17498 t bsnl
17499 s/["\\]/\\&/g
17500 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17501 D["\1"]=" \3"/p
17502 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17504 :bsnl
17505 s/["\\]/\\&/g
17506 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17507 D["\1"]=" \3\\\\\\n"\\/p
17508 t cont
17509 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17510 t cont
17512 :cont
17514 s/.\{148\}/&'"$ac_delim"'/g
17515 t clear
17516 :clear
17517 s/\\$//
17518 t bsnlc
17519 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17521 :bsnlc
17522 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17523 b cont
17524 ' <confdefs.h | sed '
17525 s/'"$ac_delim"'/"\\\
17526 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17529 for (key in D) D_is_set[key] = 1
17530 FS = "\a"
17532 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17533 line = \$ 0
17534 split(line, arg, " ")
17535 if (arg[1] == "#") {
17536 defundef = arg[2]
17537 mac1 = arg[3]
17538 } else {
17539 defundef = substr(arg[1], 2)
17540 mac1 = arg[2]
17542 split(mac1, mac2, "(") #)
17543 macro = mac2[1]
17544 prefix = substr(line, 1, index(line, defundef) - 1)
17545 if (D_is_set[macro]) {
17546 # Preserve the white space surrounding the "#".
17547 print prefix "define", macro P[macro] D[macro]
17548 next
17549 } else {
17550 # Replace #undef with comments. This is necessary, for example,
17551 # in the case of _POSIX_SOURCE, which is predefined and required
17552 # on some systems where configure will not decide to define it.
17553 if (defundef == "undef") {
17554 print "/*", prefix defundef, macro, "*/"
17555 next
17559 { print }
17560 _ACAWK
17561 _ACEOF
17562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17563 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17564 fi # test -n "$CONFIG_HEADERS"
17567 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17568 shift
17569 for ac_tag
17571 case $ac_tag in
17572 :[FHLC]) ac_mode=$ac_tag; continue;;
17573 esac
17574 case $ac_mode$ac_tag in
17575 :[FHL]*:*);;
17576 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17577 :[FH]-) ac_tag=-:-;;
17578 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17579 esac
17580 ac_save_IFS=$IFS
17581 IFS=:
17582 set x $ac_tag
17583 IFS=$ac_save_IFS
17584 shift
17585 ac_file=$1
17586 shift
17588 case $ac_mode in
17589 :L) ac_source=$1;;
17590 :[FH])
17591 ac_file_inputs=
17592 for ac_f
17594 case $ac_f in
17595 -) ac_f="$ac_tmp/stdin";;
17596 *) # Look for the file first in the build tree, then in the source tree
17597 # (if the path is not absolute). The absolute path cannot be DOS-style,
17598 # because $ac_f cannot contain `:'.
17599 test -f "$ac_f" ||
17600 case $ac_f in
17601 [\\/$]*) false;;
17602 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17603 esac ||
17604 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17605 esac
17606 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17607 as_fn_append ac_file_inputs " '$ac_f'"
17608 done
17610 # Let's still pretend it is `configure' which instantiates (i.e., don't
17611 # use $as_me), people would be surprised to read:
17612 # /* config.h. Generated by config.status. */
17613 configure_input='Generated from '`
17614 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17615 `' by configure.'
17616 if test x"$ac_file" != x-; then
17617 configure_input="$ac_file. $configure_input"
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17619 $as_echo "$as_me: creating $ac_file" >&6;}
17621 # Neutralize special characters interpreted by sed in replacement strings.
17622 case $configure_input in #(
17623 *\&* | *\|* | *\\* )
17624 ac_sed_conf_input=`$as_echo "$configure_input" |
17625 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17626 *) ac_sed_conf_input=$configure_input;;
17627 esac
17629 case $ac_tag in
17630 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17632 esac
17634 esac
17636 ac_dir=`$as_dirname -- "$ac_file" ||
17637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17638 X"$ac_file" : 'X\(//\)[^/]' \| \
17639 X"$ac_file" : 'X\(//\)$' \| \
17640 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17641 $as_echo X"$ac_file" |
17642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17643 s//\1/
17646 /^X\(\/\/\)[^/].*/{
17647 s//\1/
17650 /^X\(\/\/\)$/{
17651 s//\1/
17654 /^X\(\/\).*/{
17655 s//\1/
17658 s/.*/./; q'`
17659 as_dir="$ac_dir"; as_fn_mkdir_p
17660 ac_builddir=.
17662 case "$ac_dir" in
17663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17666 # A ".." for each directory in $ac_dir_suffix.
17667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17668 case $ac_top_builddir_sub in
17669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17671 esac ;;
17672 esac
17673 ac_abs_top_builddir=$ac_pwd
17674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17675 # for backward compatibility:
17676 ac_top_builddir=$ac_top_build_prefix
17678 case $srcdir in
17679 .) # We are building in place.
17680 ac_srcdir=.
17681 ac_top_srcdir=$ac_top_builddir_sub
17682 ac_abs_top_srcdir=$ac_pwd ;;
17683 [\\/]* | ?:[\\/]* ) # Absolute name.
17684 ac_srcdir=$srcdir$ac_dir_suffix;
17685 ac_top_srcdir=$srcdir
17686 ac_abs_top_srcdir=$srcdir ;;
17687 *) # Relative name.
17688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17689 ac_top_srcdir=$ac_top_build_prefix$srcdir
17690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17691 esac
17692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17695 case $ac_mode in
17698 # CONFIG_FILE
17701 case $INSTALL in
17702 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17703 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17704 esac
17705 ac_MKDIR_P=$MKDIR_P
17706 case $MKDIR_P in
17707 [\\/$]* | ?:[\\/]* ) ;;
17708 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17709 esac
17710 _ACEOF
17712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17713 # If the template does not know about datarootdir, expand it.
17714 # FIXME: This hack should be removed a few years after 2.60.
17715 ac_datarootdir_hack=; ac_datarootdir_seen=
17716 ac_sed_dataroot='
17717 /datarootdir/ {
17721 /@datadir@/p
17722 /@docdir@/p
17723 /@infodir@/p
17724 /@localedir@/p
17725 /@mandir@/p'
17726 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17727 *datarootdir*) ac_datarootdir_seen=yes;;
17728 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17730 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17731 _ACEOF
17732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17733 ac_datarootdir_hack='
17734 s&@datadir@&$datadir&g
17735 s&@docdir@&$docdir&g
17736 s&@infodir@&$infodir&g
17737 s&@localedir@&$localedir&g
17738 s&@mandir@&$mandir&g
17739 s&\\\${datarootdir}&$datarootdir&g' ;;
17740 esac
17741 _ACEOF
17743 # Neutralize VPATH when `$srcdir' = `.'.
17744 # Shell code in configure.ac might set extrasub.
17745 # FIXME: do we really want to maintain this feature?
17746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17747 ac_sed_extra="$ac_vpsub
17748 $extrasub
17749 _ACEOF
17750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17752 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17753 s|@configure_input@|$ac_sed_conf_input|;t t
17754 s&@top_builddir@&$ac_top_builddir_sub&;t t
17755 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17756 s&@srcdir@&$ac_srcdir&;t t
17757 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17758 s&@top_srcdir@&$ac_top_srcdir&;t t
17759 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17760 s&@builddir@&$ac_builddir&;t t
17761 s&@abs_builddir@&$ac_abs_builddir&;t t
17762 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17763 s&@INSTALL@&$ac_INSTALL&;t t
17764 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17765 $ac_datarootdir_hack
17767 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17768 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17771 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17773 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17775 which seems to be undefined. Please make sure it is defined" >&5
17776 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17777 which seems to be undefined. Please make sure it is defined" >&2;}
17779 rm -f "$ac_tmp/stdin"
17780 case $ac_file in
17781 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17782 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17783 esac \
17784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17788 # CONFIG_HEADER
17790 if test x"$ac_file" != x-; then
17792 $as_echo "/* $configure_input */" \
17793 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17794 } >"$ac_tmp/config.h" \
17795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17796 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17798 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17799 else
17800 rm -f "$ac_file"
17801 mv "$ac_tmp/config.h" "$ac_file" \
17802 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17804 else
17805 $as_echo "/* $configure_input */" \
17806 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17807 || as_fn_error $? "could not create -" "$LINENO" 5
17809 # Compute "$ac_file"'s index in $config_headers.
17810 _am_arg="$ac_file"
17811 _am_stamp_count=1
17812 for _am_header in $config_headers :; do
17813 case $_am_header in
17814 $_am_arg | $_am_arg:* )
17815 break ;;
17817 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17818 esac
17819 done
17820 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17821 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17822 X"$_am_arg" : 'X\(//\)[^/]' \| \
17823 X"$_am_arg" : 'X\(//\)$' \| \
17824 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17825 $as_echo X"$_am_arg" |
17826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17827 s//\1/
17830 /^X\(\/\/\)[^/].*/{
17831 s//\1/
17834 /^X\(\/\/\)$/{
17835 s//\1/
17838 /^X\(\/\).*/{
17839 s//\1/
17842 s/.*/./; q'`/stamp-h$_am_stamp_count
17845 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17846 $as_echo "$as_me: executing $ac_file commands" >&6;}
17848 esac
17851 case $ac_file$ac_mode in
17852 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17853 # Older Autoconf quotes --file arguments for eval, but not when files
17854 # are listed without --file. Let's play safe and only enable the eval
17855 # if we detect the quoting.
17856 case $CONFIG_FILES in
17857 *\'*) eval set x "$CONFIG_FILES" ;;
17858 *) set x $CONFIG_FILES ;;
17859 esac
17860 shift
17861 for mf
17863 # Strip MF so we end up with the name of the file.
17864 mf=`echo "$mf" | sed -e 's/:.*$//'`
17865 # Check whether this is an Automake generated Makefile or not.
17866 # We used to match only the files named 'Makefile.in', but
17867 # some people rename them; so instead we look at the file content.
17868 # Grep'ing the first line is not enough: some people post-process
17869 # each Makefile.in and add a new line on top of each file to say so.
17870 # Grep'ing the whole file is not good either: AIX grep has a line
17871 # limit of 2048, but all sed's we know have understand at least 4000.
17872 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17873 dirpart=`$as_dirname -- "$mf" ||
17874 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17875 X"$mf" : 'X\(//\)[^/]' \| \
17876 X"$mf" : 'X\(//\)$' \| \
17877 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17878 $as_echo X"$mf" |
17879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17880 s//\1/
17883 /^X\(\/\/\)[^/].*/{
17884 s//\1/
17887 /^X\(\/\/\)$/{
17888 s//\1/
17891 /^X\(\/\).*/{
17892 s//\1/
17895 s/.*/./; q'`
17896 else
17897 continue
17899 # Extract the definition of DEPDIR, am__include, and am__quote
17900 # from the Makefile without running 'make'.
17901 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17902 test -z "$DEPDIR" && continue
17903 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17904 test -z "$am__include" && continue
17905 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17906 # Find all dependency output files, they are included files with
17907 # $(DEPDIR) in their names. We invoke sed twice because it is the
17908 # simplest approach to changing $(DEPDIR) to its actual value in the
17909 # expansion.
17910 for file in `sed -n "
17911 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17912 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17913 # Make sure the directory exists.
17914 test -f "$dirpart/$file" && continue
17915 fdir=`$as_dirname -- "$file" ||
17916 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17917 X"$file" : 'X\(//\)[^/]' \| \
17918 X"$file" : 'X\(//\)$' \| \
17919 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17920 $as_echo X"$file" |
17921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17922 s//\1/
17925 /^X\(\/\/\)[^/].*/{
17926 s//\1/
17929 /^X\(\/\/\)$/{
17930 s//\1/
17933 /^X\(\/\).*/{
17934 s//\1/
17937 s/.*/./; q'`
17938 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17939 # echo "creating $dirpart/$file"
17940 echo '# dummy' > "$dirpart/$file"
17941 done
17942 done
17945 "default-1":C)
17946 for ac_file in $CONFIG_FILES; do
17947 # Support "outfile[:infile[:infile...]]"
17948 case "$ac_file" in
17949 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17950 esac
17951 # PO directories have a Makefile.in generated from Makefile.in.in.
17952 case "$ac_file" in */Makefile.in)
17953 # Adjust a relative srcdir.
17954 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17955 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17956 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17957 # In autoconf-2.13 it is called $ac_given_srcdir.
17958 # In autoconf-2.50 it is called $srcdir.
17959 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17960 case "$ac_given_srcdir" in
17961 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17962 /*) top_srcdir="$ac_given_srcdir" ;;
17963 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17964 esac
17965 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17966 rm -f "$ac_dir/POTFILES"
17967 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17968 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17969 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17970 # on $ac_dir but don't depend on user-specified configuration
17971 # parameters.
17972 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17973 # The LINGUAS file contains the set of available languages.
17974 if test -n "$ALL_LINGUAS"; then
17975 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17977 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17978 # Hide the ALL_LINGUAS assigment from automake.
17979 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17981 case "$ac_given_srcdir" in
17982 .) srcdirpre= ;;
17983 *) srcdirpre='$(srcdir)/' ;;
17984 esac
17985 POFILES=
17986 GMOFILES=
17987 UPDATEPOFILES=
17988 DUMMYPOFILES=
17989 for lang in $ALL_LINGUAS; do
17990 POFILES="$POFILES $srcdirpre$lang.po"
17991 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17992 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17993 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17994 done
17995 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17996 # environment variable.
17997 INST_LINGUAS=
17998 if test -n "$ALL_LINGUAS"; then
17999 for presentlang in $ALL_LINGUAS; do
18000 useit=no
18001 if test "%UNSET%" != "$LINGUAS"; then
18002 desiredlanguages="$LINGUAS"
18003 else
18004 desiredlanguages="$ALL_LINGUAS"
18006 for desiredlang in $desiredlanguages; do
18007 # Use the presentlang catalog if desiredlang is
18008 # a. equal to presentlang, or
18009 # b. a variant of presentlang (because in this case,
18010 # presentlang can be used as a fallback for messages
18011 # which are not translated in the desiredlang catalog).
18012 case "$desiredlang" in
18013 "$presentlang"*) useit=yes;;
18014 esac
18015 done
18016 if test $useit = yes; then
18017 INST_LINGUAS="$INST_LINGUAS $presentlang"
18019 done
18021 CATALOGS=
18022 if test -n "$INST_LINGUAS"; then
18023 for lang in $INST_LINGUAS; do
18024 CATALOGS="$CATALOGS $lang.gmo"
18025 done
18027 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18028 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"
18029 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18030 if test -f "$f"; then
18031 case "$f" in
18032 *.orig | *.bak | *~) ;;
18033 *) cat "$f" >> "$ac_dir/Makefile" ;;
18034 esac
18036 done
18039 esac
18040 done ;;
18041 "intl":C)
18042 test -d intl || mkdir intl
18043 test -f intl/plural.c || cp "$srcdir"/intl/plural.c intl/
18044 touch intl/plural.c
18046 "denoiser":C) if test $denoiserlevel -gt 0; then
18047 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
18048 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" \
18049 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
18050 for i in `find . -name 'Makefile' -print`; do
18051 if test -n "`head -n 1 $i | grep '^#'`"; then
18052 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
18054 done
18055 fi ;;
18057 esac
18058 done # for ac_tag
18061 as_fn_exit 0
18062 _ACEOF
18063 ac_clean_files=$ac_clean_files_save
18065 test $ac_write_fail = 0 ||
18066 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18069 # configure is writing to config.log, and then calls config.status.
18070 # config.status does its own redirection, appending to config.log.
18071 # Unfortunately, on DOS this fails, as config.log is still kept open
18072 # by configure, so config.status won't be able to write to it; its
18073 # output is simply discarded. So we exec the FD to /dev/null,
18074 # effectively closing config.log, so it can be properly (re)opened and
18075 # appended to by config.status. When coming back to configure, we
18076 # need to make the FD available again.
18077 if test "$no_create" != yes; then
18078 ac_cs_success=:
18079 ac_config_status_args=
18080 test "$silent" = yes &&
18081 ac_config_status_args="$ac_config_status_args --quiet"
18082 exec 5>/dev/null
18083 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18084 exec 5>>config.log
18085 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18086 # would make configure fail if this is the last instruction.
18087 $ac_cs_success || as_fn_exit 1
18089 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18091 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18095 if test -n "$svndate"; then :
18096 SVN_REVISION=" ($svndate)"
18097 else
18098 SVN_REVISION=
18101 echo
18102 echo
18103 echo " Configure script has finished system check."
18104 echo
18105 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
18106 echo
18107 echo " aMule enabled options:"
18108 echo
18109 echo " **** aMule Core ****"
18110 echo " Prefix where aMule should be installed? ${prefix:-none}"
18111 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
18112 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
18113 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
18114 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
18115 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
18116 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
18117 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
18118 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18119 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18121 echo
18122 echo " **** aMule TextClient ****"
18123 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18124 echo
18125 echo " **** aMule WebServer ****"
18126 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18127 echo
18128 echo " **** aMule ED2K Links Handler ****"
18129 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18130 echo
18131 echo " **** aMuleLinkCreator ****"
18132 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18133 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18134 echo
18135 echo " **** aMule Statistics ****"
18136 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18137 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18138 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18139 echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}"
18141 echo
18142 echo " **** General Libraries and Tools ****"
18143 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18144 echo " Should aMule file viewer for console be built? ${enable_fileview:-no}"
18145 echo " Libraries aMule will use to build:"
18146 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 :
18148 wxinfo="$WX_PORT"
18149 if test $WX_DEBUG -eq 1; then :
18150 wxinfo="$wxinfo,debug"
18152 if test $WX_SHARED -eq 1; then :
18153 wxinfo="$wxinfo,shared"
18154 else
18155 wxinfo="$wxinfo,static"
18157 echo " wxWidgets ${WX_VERSION} ($wxinfo)"
18160 if test ${with_boost:-no} != no; then :
18161 if test ${with_boost:-no} = disabled; then
18162 echo " boost Not detected"
18163 elif test ${boost_cv_inc_path:-yes} != yes; then
18164 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18165 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18170 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18171 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})"
18173 if test ${enable_upnp:-yes} = yes; then :
18175 if test -n "$with_libupnp_prefix"; then :
18176 libupnp_place=" (in $with_libupnp_prefix)"
18178 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18181 if test ${enable_nls:-yes} = yes; then
18182 if test x$USE_NLS = xno; then :
18183 libintl_found="Not detected"
18184 else
18185 if test x$USE_INCLUDED_LIBINTL = xyes; then :
18186 libintl_found="included"
18187 else
18188 libintl_found="system"
18191 echo " libintl $libintl_found"
18193 if test ${enable_geoip:-no} = yes; then :
18194 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18195 geoip_style=system
18196 else
18197 geoip_style=user
18199 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18200 echo " libGeoIP ${geoip_style}"
18203 if test ${enable_webserver:-no} = yes; then :
18204 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18206 if test ${enable_cas:-no} = yes; then :
18207 echo " libgd ${GDLIB_VERSION:-Not detected}"
18209 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 :
18210 echo " zlib ${ZLIB_VERSION:-Not detected}"
18212 if test ${enable_plasmamule:-no} = yes; then :
18213 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18214 echo " qt-core-libs ${QT_CORE_LIBS}"
18215 echo " qt-gui-libs ${QT_GUI_LIBS}"
18216 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18217 echo " kde-headers ${KDE_HEADER_DIR}"
18218 echo " kde-services-path ${KDE_SERVICE_PATH}"
18219 echo " kde-module-path ${KDE_MODULE_PATH}"
18220 echo " kde-icon-path ${KDE_ICON_PATH}"
18221 echo " kde-mime-path ${KDE_MIME_PATH}"
18222 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18225 if test ${_mule_has_warnings:-no} = yes; then
18226 echo ""
18227 echo ""
18228 echo " *** Warnings during configuration ***"
18230 if test ${_mule_warning_0:-no} = yes; then
18231 cat <<_MULEEOT
18233 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18234 Please check that gdlib-config is in your default path, check out
18235 LD_LIBRARY_PATH or equivalent variable.
18236 Or this might also be that your gdlib-config has other name.
18237 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18238 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18239 If you use compiled packages check if you have devel pack installed.
18240 To download the latest version check http://www.boutell.com/gd for sources.
18241 _MULEEOT
18243 if test ${_mule_warning_1:-no} = yes; then
18244 cat <<_MULEEOT
18246 * libpng >= 1.2.0 not found.
18247 amuleweb will be compiled but file download progress bar images will NOT be
18248 generated.
18249 _MULEEOT
18251 if test ${_mule_warning_2:-no} = yes; then
18252 cat <<_MULEEOT
18254 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18255 _MULEEOT
18257 if test ${_mule_warning_3:-no} = yes; then
18258 cat <<_MULEEOT
18260 * GeoIP support has been disabled because the GeoIP libraries were not found
18261 _MULEEOT
18263 if test ${_mule_warning_4:-no} = yes; then
18264 cat <<_MULEEOT
18266 * GeoIP support has been disabled because the GeoIP header files were not
18267 found
18268 _MULEEOT
18270 if test ${_mule_warning_5:-no} = yes; then
18271 cat <<_MULEEOT
18273 * UPnP code has been disabled because ${libupnp_error}.
18274 _MULEEOT
18276 if test ${_mule_warning_6:-no} = yes; then
18277 cat <<_MULEEOT
18279 * Cross-compilation detected, so exception handling cannot be tested.
18280 Note that broken exception handling in your compiler may lead to unexpected
18281 crashes.
18282 _MULEEOT
18284 if test ${_mule_warning_7:-no} = yes; then
18285 cat <<_MULEEOT
18287 * Boost support has been disabled because Boost.System not found
18288 _MULEEOT
18290 if test ${_mule_warning_8:-no} = yes; then
18291 cat <<_MULEEOT
18293 * Boost support has been disabled because Boost.Asio not found
18294 _MULEEOT
18296 if test ${_mule_warning_9:-no} = yes; then
18297 cat <<_MULEEOT
18299 * Boost support has been disabled because Boost.Asio not found
18300 _MULEEOT
18302 if test ${_mule_warning_10:-no} = yes; then
18303 cat <<_MULEEOT
18305 * Boost support has been disabled because of insufficient Boost version.
18306 _MULEEOT
18308 if test ${_mule_warning_11:-no} = yes; then
18309 cat <<_MULEEOT
18311 * configure cannot check whether malloc() and realloc() are GNU libc
18312 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18313 configure with the --without-gnu-malloc switch.
18314 _MULEEOT
18316 if test ${_mule_warning_12:-no} = yes; then
18317 cat <<_MULEEOT
18319 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18320 support.
18321 _MULEEOT
18323 if test ${_mule_warning_13:-no} = yes; then
18324 cat <<_MULEEOT
18326 * Cannot link to the library containing the bfd functions.
18327 _MULEEOT
18329 if test ${_mule_warning_14:-no} = yes; then
18330 cat <<_MULEEOT
18332 * bfd.h not found or unusable, please install binutils development package if
18333 you are a developer or want to help testing aMule
18334 _MULEEOT