php_core_lib: avoid redundant condition
[amule.git] / configure
blob387e7f6e1d67db440dc25e786d0b3be707bb12ab
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='\'
3656 ac_config_headers="$ac_config_headers config.h"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3661 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3662 # Check whether --enable-maintainer-mode was given.
3663 if test "${enable_maintainer_mode+set}" = set; then :
3664 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3665 else
3666 USE_MAINTAINER_MODE=no
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3670 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3671 if test $USE_MAINTAINER_MODE = yes; then
3672 MAINTAINER_MODE_TRUE=
3673 MAINTAINER_MODE_FALSE='#'
3674 else
3675 MAINTAINER_MODE_TRUE='#'
3676 MAINTAINER_MODE_FALSE=
3679 MAINT=$MAINTAINER_MODE_TRUE
3683 # Make sure we can run config.sub.
3684 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3685 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3688 $as_echo_n "checking build system type... " >&6; }
3689 if ${ac_cv_build+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 ac_build_alias=$build_alias
3693 test "x$ac_build_alias" = x &&
3694 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3695 test "x$ac_build_alias" = x &&
3696 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3697 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3702 $as_echo "$ac_cv_build" >&6; }
3703 case $ac_cv_build in
3704 *-*-*) ;;
3705 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3706 esac
3707 build=$ac_cv_build
3708 ac_save_IFS=$IFS; IFS='-'
3709 set x $ac_cv_build
3710 shift
3711 build_cpu=$1
3712 build_vendor=$2
3713 shift; shift
3714 # Remember, the first character of IFS is used to create $*,
3715 # except with old shells:
3716 build_os=$*
3717 IFS=$ac_save_IFS
3718 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3722 $as_echo_n "checking host system type... " >&6; }
3723 if ${ac_cv_host+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if test "x$host_alias" = x; then
3727 ac_cv_host=$ac_cv_build
3728 else
3729 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3735 $as_echo "$ac_cv_host" >&6; }
3736 case $ac_cv_host in
3737 *-*-*) ;;
3738 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3739 esac
3740 host=$ac_cv_host
3741 ac_save_IFS=$IFS; IFS='-'
3742 set x $ac_cv_host
3743 shift
3744 host_cpu=$1
3745 host_vendor=$2
3746 shift; shift
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3749 host_os=$*
3750 IFS=$ac_save_IFS
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3755 case "${host_os}" in
3756 darwin*)
3757 SYS=darwin
3758 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3759 MULELDFLAGS="-bind_at_load"
3760 touch src/Scanner.cpp
3762 openbsd*)
3763 SYS=openbsd
3764 LIBS="$LIBS -L/usr/local/lib"
3765 MULECPPFLAGS="-D__OPENBSD__"
3767 *cygwin* | *mingw32*)
3768 SYS=win32
3769 MULECPPFLAGS="-DNOMINMAX"
3771 solaris*)
3772 SYS=solaris
3773 RESOLV_LIB="-lresolv -lnsl"
3774 LIBS="$LIBS -lrt"
3776 *netbsd*)
3777 SYS=netbsd
3778 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3779 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3780 # Still, we prepend them, instead of adding, so the user may override them.
3781 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3782 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3784 *irix*)
3785 SYS=irix
3786 MULECPPFLAGS="-D__IRIX__"
3789 SYS=unknown
3791 esac
3793 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3794 if test ${SYS:-unknown} != win32; then :
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3797 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3798 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3800 MULELDFLAGS="$MULELDFLAGS -pthread"
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3802 $as_echo "yes" >&6; }
3804 else
3806 MULELDFLAGS="$MULELDFLAGS -lpthread"
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808 $as_echo "no" >&6; }
3816 mule_backup_CFLAGS="$CFLAGS"
3817 mule_backup_CXXFLAGS="$CXXFLAGS"
3818 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3819 ac_ext=cpp
3820 ac_cpp='$CXXCPP $CPPFLAGS'
3821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3824 if test -z "$CXX"; then
3825 if test -n "$CCC"; then
3826 CXX=$CCC
3827 else
3828 if test -n "$ac_tool_prefix"; then
3829 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_prog_CXX+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 if test -n "$CXX"; then
3839 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3852 done
3853 done
3854 IFS=$as_save_IFS
3858 CXX=$ac_cv_prog_CXX
3859 if test -n "$CXX"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3861 $as_echo "$CXX" >&6; }
3862 else
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3868 test -n "$CXX" && break
3869 done
3871 if test -z "$CXX"; then
3872 ac_ct_CXX=$CXX
3873 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 if test -n "$ac_ct_CXX"; then
3883 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_ac_ct_CXX="$ac_prog"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3896 done
3897 done
3898 IFS=$as_save_IFS
3902 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3903 if test -n "$ac_ct_CXX"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3905 $as_echo "$ac_ct_CXX" >&6; }
3906 else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3912 test -n "$ac_ct_CXX" && break
3913 done
3915 if test "x$ac_ct_CXX" = x; then
3916 CXX="g++"
3917 else
3918 case $cross_compiling:$ac_tool_warned in
3919 yes:)
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922 ac_tool_warned=yes ;;
3923 esac
3924 CXX=$ac_ct_CXX
3930 # Provide some information about the compiler.
3931 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3932 set X $ac_compile
3933 ac_compiler=$2
3934 for ac_option in --version -v -V -qversion; do
3935 { { ac_try="$ac_compiler $ac_option >&5"
3936 case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3943 ac_status=$?
3944 if test -s conftest.err; then
3945 sed '10a\
3946 ... rest of stderr output deleted ...
3947 10q' conftest.err >conftest.er1
3948 cat conftest.er1 >&5
3950 rm -f conftest.er1 conftest.err
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }
3953 done
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3959 main ()
3963 return 0;
3965 _ACEOF
3966 ac_clean_files_save=$ac_clean_files
3967 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3968 # Try to create an executable without -o first, disregard a.out.
3969 # It will help us diagnose broken compilers, and finding out an intuition
3970 # of exeext.
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3972 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3973 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3975 # The possible output files:
3976 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3978 ac_rmfiles=
3979 for ac_file in $ac_files
3981 case $ac_file in
3982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3983 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3984 esac
3985 done
3986 rm -f $ac_rmfiles
3988 if { { ac_try="$ac_link_default"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 $as_echo "$ac_try_echo"; } >&5
3995 (eval "$ac_link_default") 2>&5
3996 ac_status=$?
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }; then :
3999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4001 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4002 # so that the user can short-circuit this test for compilers unknown to
4003 # Autoconf.
4004 for ac_file in $ac_files ''
4006 test -f "$ac_file" || continue
4007 case $ac_file in
4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4010 [ab].out )
4011 # We found the default executable, but exeext='' is most
4012 # certainly right.
4013 break;;
4014 *.* )
4015 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4016 then :; else
4017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 # We set ac_cv_exeext here because the later test for it is not
4020 # safe: cross compilers may not add the suffix if given an `-o'
4021 # argument, so we may need to know it at that point already.
4022 # Even if this section looks crufty: it has the advantage of
4023 # actually working.
4024 break;;
4026 break;;
4027 esac
4028 done
4029 test "$ac_cv_exeext" = no && ac_cv_exeext=
4031 else
4032 ac_file=''
4034 if test -z "$ac_file"; then :
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4037 $as_echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042 as_fn_error 77 "C++ compiler cannot create executables
4043 See \`config.log' for more details" "$LINENO" 5; }
4044 else
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4046 $as_echo "yes" >&6; }
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4049 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4051 $as_echo "$ac_file" >&6; }
4052 ac_exeext=$ac_cv_exeext
4054 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4055 ac_clean_files=$ac_clean_files_save
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4057 $as_echo_n "checking for suffix of executables... " >&6; }
4058 if { { ac_try="$ac_link"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064 $as_echo "$ac_try_echo"; } >&5
4065 (eval "$ac_link") 2>&5
4066 ac_status=$?
4067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068 test $ac_status = 0; }; then :
4069 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4070 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4071 # work properly (i.e., refer to `conftest.exe'), while it won't with
4072 # `rm'.
4073 for ac_file in conftest.exe conftest conftest.*; do
4074 test -f "$ac_file" || continue
4075 case $ac_file in
4076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4077 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4078 break;;
4079 * ) break;;
4080 esac
4081 done
4082 else
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4086 See \`config.log' for more details" "$LINENO" 5; }
4088 rm -f conftest conftest$ac_cv_exeext
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4090 $as_echo "$ac_cv_exeext" >&6; }
4092 rm -f conftest.$ac_ext
4093 EXEEXT=$ac_cv_exeext
4094 ac_exeext=$EXEEXT
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097 #include <stdio.h>
4099 main ()
4101 FILE *f = fopen ("conftest.out", "w");
4102 return ferror (f) || fclose (f) != 0;
4105 return 0;
4107 _ACEOF
4108 ac_clean_files="$ac_clean_files conftest.out"
4109 # Check that the compiler produces executables we can run. If not, either
4110 # the compiler is broken, or we cross compile.
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4112 $as_echo_n "checking whether we are cross compiling... " >&6; }
4113 if test "$cross_compiling" != yes; then
4114 { { ac_try="$ac_link"
4115 case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118 esac
4119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120 $as_echo "$ac_try_echo"; } >&5
4121 (eval "$ac_link") 2>&5
4122 ac_status=$?
4123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124 test $ac_status = 0; }
4125 if { ac_try='./conftest$ac_cv_exeext'
4126 { { case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129 esac
4130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4131 $as_echo "$ac_try_echo"; } >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4135 test $ac_status = 0; }; }; then
4136 cross_compiling=no
4137 else
4138 if test "$cross_compiling" = maybe; then
4139 cross_compiling=yes
4140 else
4141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4143 as_fn_error $? "cannot run C++ compiled programs.
4144 If you meant to cross compile, use \`--host'.
4145 See \`config.log' for more details" "$LINENO" 5; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4150 $as_echo "$cross_compiling" >&6; }
4152 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4153 ac_clean_files=$ac_clean_files_save
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4155 $as_echo_n "checking for suffix of object files... " >&6; }
4156 if ${ac_cv_objext+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4163 main ()
4167 return 0;
4169 _ACEOF
4170 rm -f conftest.o conftest.obj
4171 if { { ac_try="$ac_compile"
4172 case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 $as_echo "$ac_try_echo"; } >&5
4178 (eval "$ac_compile") 2>&5
4179 ac_status=$?
4180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4181 test $ac_status = 0; }; then :
4182 for ac_file in conftest.o conftest.obj conftest.*; do
4183 test -f "$ac_file" || continue;
4184 case $ac_file in
4185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4186 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4187 break;;
4188 esac
4189 done
4190 else
4191 $as_echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4196 as_fn_error $? "cannot compute suffix of object files: cannot compile
4197 See \`config.log' for more details" "$LINENO" 5; }
4199 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4202 $as_echo "$ac_cv_objext" >&6; }
4203 OBJEXT=$ac_cv_objext
4204 ac_objext=$OBJEXT
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4206 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4207 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4214 main ()
4216 #ifndef __GNUC__
4217 choke me
4218 #endif
4221 return 0;
4223 _ACEOF
4224 if ac_fn_cxx_try_compile "$LINENO"; then :
4225 ac_compiler_gnu=yes
4226 else
4227 ac_compiler_gnu=no
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4234 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4235 if test $ac_compiler_gnu = yes; then
4236 GXX=yes
4237 else
4238 GXX=
4240 ac_test_CXXFLAGS=${CXXFLAGS+set}
4241 ac_save_CXXFLAGS=$CXXFLAGS
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4243 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4244 if ${ac_cv_prog_cxx_g+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4248 ac_cxx_werror_flag=yes
4249 ac_cv_prog_cxx_g=no
4250 CXXFLAGS="-g"
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4255 main ()
4259 return 0;
4261 _ACEOF
4262 if ac_fn_cxx_try_compile "$LINENO"; then :
4263 ac_cv_prog_cxx_g=yes
4264 else
4265 CXXFLAGS=""
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4270 main ()
4274 return 0;
4276 _ACEOF
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4279 else
4280 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4281 CXXFLAGS="-g"
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4286 main ()
4290 return 0;
4292 _ACEOF
4293 if ac_fn_cxx_try_compile "$LINENO"; then :
4294 ac_cv_prog_cxx_g=yes
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4304 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4305 if test "$ac_test_CXXFLAGS" = set; then
4306 CXXFLAGS=$ac_save_CXXFLAGS
4307 elif test $ac_cv_prog_cxx_g = yes; then
4308 if test "$GXX" = yes; then
4309 CXXFLAGS="-g -O2"
4310 else
4311 CXXFLAGS="-g"
4313 else
4314 if test "$GXX" = yes; then
4315 CXXFLAGS="-O2"
4316 else
4317 CXXFLAGS=
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 DEPDIR="${am__leading_dot}deps"
4327 ac_config_commands="$ac_config_commands depfiles"
4330 am_make=${MAKE-make}
4331 cat > confinc << 'END'
4332 am__doit:
4333 @echo this is the am__doit target
4334 .PHONY: am__doit
4336 # If we don't find an include directive, just comment out the code.
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4338 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4339 am__include="#"
4340 am__quote=
4341 _am_result=none
4342 # First try GNU make style include.
4343 echo "include confinc" > confmf
4344 # Ignore all kinds of additional output from 'make'.
4345 case `$am_make -s -f confmf 2> /dev/null` in #(
4346 *the\ am__doit\ target*)
4347 am__include=include
4348 am__quote=
4349 _am_result=GNU
4351 esac
4352 # Now try BSD make style include.
4353 if test "$am__include" = "#"; then
4354 echo '.include "confinc"' > confmf
4355 case `$am_make -s -f confmf 2> /dev/null` in #(
4356 *the\ am__doit\ target*)
4357 am__include=.include
4358 am__quote="\""
4359 _am_result=BSD
4361 esac
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4366 $as_echo "$_am_result" >&6; }
4367 rm -f confinc confmf
4369 # Check whether --enable-dependency-tracking was given.
4370 if test "${enable_dependency_tracking+set}" = set; then :
4371 enableval=$enable_dependency_tracking;
4374 if test "x$enable_dependency_tracking" != xno; then
4375 am_depcomp="$ac_aux_dir/depcomp"
4376 AMDEPBACKSLASH='\'
4377 am__nodep='_no'
4379 if test "x$enable_dependency_tracking" != xno; then
4380 AMDEP_TRUE=
4381 AMDEP_FALSE='#'
4382 else
4383 AMDEP_TRUE='#'
4384 AMDEP_FALSE=
4389 depcc="$CXX" am_compiler_list=
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4392 $as_echo_n "checking dependency style of $depcc... " >&6; }
4393 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4397 # We make a subdir and do the tests there. Otherwise we can end up
4398 # making bogus files that we don't know about and never remove. For
4399 # instance it was reported that on HP-UX the gcc test will end up
4400 # making a dummy file named 'D' -- because '-MD' means "put the output
4401 # in D".
4402 rm -rf conftest.dir
4403 mkdir conftest.dir
4404 # Copy depcomp to subdir because otherwise we won't find it if we're
4405 # using a relative directory.
4406 cp "$am_depcomp" conftest.dir
4407 cd conftest.dir
4408 # We will build objects and dependencies in a subdirectory because
4409 # it helps to detect inapplicable dependency modes. For instance
4410 # both Tru64's cc and ICC support -MD to output dependencies as a
4411 # side effect of compilation, but ICC will put the dependencies in
4412 # the current directory while Tru64 will put them in the object
4413 # directory.
4414 mkdir sub
4416 am_cv_CXX_dependencies_compiler_type=none
4417 if test "$am_compiler_list" = ""; then
4418 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4420 am__universal=false
4421 case " $depcc " in #(
4422 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4423 esac
4425 for depmode in $am_compiler_list; do
4426 # Setup a source with many dependencies, because some compilers
4427 # like to wrap large dependency lists on column 80 (with \), and
4428 # we should not choose a depcomp mode which is confused by this.
4430 # We need to recreate these files for each test, as the compiler may
4431 # overwrite some of them when testing with obscure command lines.
4432 # This happens at least with the AIX C compiler.
4433 : > sub/conftest.c
4434 for i in 1 2 3 4 5 6; do
4435 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4436 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4437 # Solaris 10 /bin/sh.
4438 echo '/* dummy */' > sub/conftst$i.h
4439 done
4440 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4442 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4443 # mode. It turns out that the SunPro C++ compiler does not properly
4444 # handle '-M -o', and we need to detect this. Also, some Intel
4445 # versions had trouble with output in subdirs.
4446 am__obj=sub/conftest.${OBJEXT-o}
4447 am__minus_obj="-o $am__obj"
4448 case $depmode in
4449 gcc)
4450 # This depmode causes a compiler race in universal mode.
4451 test "$am__universal" = false || continue
4453 nosideeffect)
4454 # After this tag, mechanisms are not by side-effect, so they'll
4455 # only be used when explicitly requested.
4456 if test "x$enable_dependency_tracking" = xyes; then
4457 continue
4458 else
4459 break
4462 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4463 # This compiler won't grok '-c -o', but also, the minuso test has
4464 # not run yet. These depmodes are late enough in the game, and
4465 # so weak that their functioning should not be impacted.
4466 am__obj=conftest.${OBJEXT-o}
4467 am__minus_obj=
4469 none) break ;;
4470 esac
4471 if depmode=$depmode \
4472 source=sub/conftest.c object=$am__obj \
4473 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4474 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4475 >/dev/null 2>conftest.err &&
4476 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4477 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4478 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4479 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4480 # icc doesn't choke on unknown options, it will just issue warnings
4481 # or remarks (even with -Werror). So we grep stderr for any message
4482 # that says an option was ignored or not supported.
4483 # When given -MP, icc 7.0 and 7.1 complain thusly:
4484 # icc: Command line warning: ignoring option '-M'; no argument required
4485 # The diagnosis changed in icc 8.0:
4486 # icc: Command line remark: option '-MP' not supported
4487 if (grep 'ignoring option' conftest.err ||
4488 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4489 am_cv_CXX_dependencies_compiler_type=$depmode
4490 break
4493 done
4495 cd ..
4496 rm -rf conftest.dir
4497 else
4498 am_cv_CXX_dependencies_compiler_type=none
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4503 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4504 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4507 test "x$enable_dependency_tracking" != xno \
4508 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4509 am__fastdepCXX_TRUE=
4510 am__fastdepCXX_FALSE='#'
4511 else
4512 am__fastdepCXX_TRUE='#'
4513 am__fastdepCXX_FALSE=
4517 ac_ext=cpp
4518 ac_cpp='$CXXCPP $CPPFLAGS'
4519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4523 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4524 if test -z "$CXXCPP"; then
4525 if ${ac_cv_prog_CXXCPP+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 # Double quotes because CXXCPP needs to be expanded
4529 for CXXCPP in "$CXX -E" "/lib/cpp"
4531 ac_preproc_ok=false
4532 for ac_cxx_preproc_warn_flag in '' yes
4534 # Use a header file that comes with gcc, so configuring glibc
4535 # with a fresh cross-compiler works.
4536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4537 # <limits.h> exists even on freestanding compilers.
4538 # On the NeXT, cc -E runs the code through the compiler's parser,
4539 # not just through cpp. "Syntax error" is here to catch this case.
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 #ifdef __STDC__
4543 # include <limits.h>
4544 #else
4545 # include <assert.h>
4546 #endif
4547 Syntax error
4548 _ACEOF
4549 if ac_fn_cxx_try_cpp "$LINENO"; then :
4551 else
4552 # Broken: fails on valid input.
4553 continue
4555 rm -f conftest.err conftest.i conftest.$ac_ext
4557 # OK, works on sane cases. Now check whether nonexistent headers
4558 # can be detected and how.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561 #include <ac_nonexistent.h>
4562 _ACEOF
4563 if ac_fn_cxx_try_cpp "$LINENO"; then :
4564 # Broken: success on invalid input.
4565 continue
4566 else
4567 # Passes both tests.
4568 ac_preproc_ok=:
4569 break
4571 rm -f conftest.err conftest.i conftest.$ac_ext
4573 done
4574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4575 rm -f conftest.i conftest.err conftest.$ac_ext
4576 if $ac_preproc_ok; then :
4577 break
4580 done
4581 ac_cv_prog_CXXCPP=$CXXCPP
4584 CXXCPP=$ac_cv_prog_CXXCPP
4585 else
4586 ac_cv_prog_CXXCPP=$CXXCPP
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4589 $as_echo "$CXXCPP" >&6; }
4590 ac_preproc_ok=false
4591 for ac_cxx_preproc_warn_flag in '' yes
4593 # Use a header file that comes with gcc, so configuring glibc
4594 # with a fresh cross-compiler works.
4595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4596 # <limits.h> exists even on freestanding compilers.
4597 # On the NeXT, cc -E runs the code through the compiler's parser,
4598 # not just through cpp. "Syntax error" is here to catch this case.
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4601 #ifdef __STDC__
4602 # include <limits.h>
4603 #else
4604 # include <assert.h>
4605 #endif
4606 Syntax error
4607 _ACEOF
4608 if ac_fn_cxx_try_cpp "$LINENO"; then :
4610 else
4611 # Broken: fails on valid input.
4612 continue
4614 rm -f conftest.err conftest.i conftest.$ac_ext
4616 # OK, works on sane cases. Now check whether nonexistent headers
4617 # can be detected and how.
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4620 #include <ac_nonexistent.h>
4621 _ACEOF
4622 if ac_fn_cxx_try_cpp "$LINENO"; then :
4623 # Broken: success on invalid input.
4624 continue
4625 else
4626 # Passes both tests.
4627 ac_preproc_ok=:
4628 break
4630 rm -f conftest.err conftest.i conftest.$ac_ext
4632 done
4633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4634 rm -f conftest.i conftest.err conftest.$ac_ext
4635 if $ac_preproc_ok; then :
4637 else
4638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4640 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4641 See \`config.log' for more details" "$LINENO" 5; }
4644 ac_ext=c
4645 ac_cpp='$CPP $CPPFLAGS'
4646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650 ac_ext=c
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if ${ac_cv_prog_CC+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$CC"; then
4664 ac_cv_prog_CC="$CC" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4679 IFS=$as_save_IFS
4683 CC=$ac_cv_prog_CC
4684 if test -n "$CC"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4686 $as_echo "$CC" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4694 if test -z "$ac_cv_prog_CC"; then
4695 ac_ct_CC=$CC
4696 # Extract the first word of "gcc", so it can be a program name with args.
4697 set dummy gcc; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if test -n "$ac_ct_CC"; then
4704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_ac_ct_CC="gcc"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4717 done
4718 done
4719 IFS=$as_save_IFS
4723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4724 if test -n "$ac_ct_CC"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4726 $as_echo "$ac_ct_CC" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4732 if test "x$ac_ct_CC" = x; then
4733 CC=""
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741 CC=$ac_ct_CC
4743 else
4744 CC="$ac_cv_prog_CC"
4747 if test -z "$CC"; then
4748 if test -n "$ac_tool_prefix"; then
4749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4750 set dummy ${ac_tool_prefix}cc; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if ${ac_cv_prog_CC+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test -n "$CC"; then
4757 ac_cv_prog_CC="$CC" # Let the user override the test.
4758 else
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in $PATH
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766 ac_cv_prog_CC="${ac_tool_prefix}cc"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4770 done
4771 done
4772 IFS=$as_save_IFS
4776 CC=$ac_cv_prog_CC
4777 if test -n "$CC"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4779 $as_echo "$CC" >&6; }
4780 else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4788 if test -z "$CC"; then
4789 # Extract the first word of "cc", so it can be a program name with args.
4790 set dummy cc; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if ${ac_cv_prog_CC+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 if test -n "$CC"; then
4797 ac_cv_prog_CC="$CC" # Let the user override the test.
4798 else
4799 ac_prog_rejected=no
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4808 ac_prog_rejected=yes
4809 continue
4811 ac_cv_prog_CC="cc"
4812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4815 done
4816 done
4817 IFS=$as_save_IFS
4819 if test $ac_prog_rejected = yes; then
4820 # We found a bogon in the path, so make sure we never use it.
4821 set dummy $ac_cv_prog_CC
4822 shift
4823 if test $# != 0; then
4824 # We chose a different compiler from the bogus one.
4825 # However, it has the same basename, so the bogon will be chosen
4826 # first if we set CC to just the basename; use the full file name.
4827 shift
4828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4833 CC=$ac_cv_prog_CC
4834 if test -n "$CC"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4836 $as_echo "$CC" >&6; }
4837 else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4844 if test -z "$CC"; then
4845 if test -n "$ac_tool_prefix"; then
4846 for ac_prog in cl.exe
4848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_CC+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$CC"; then
4856 ac_cv_prog_CC="$CC" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4869 done
4870 done
4871 IFS=$as_save_IFS
4875 CC=$ac_cv_prog_CC
4876 if test -n "$CC"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4878 $as_echo "$CC" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4885 test -n "$CC" && break
4886 done
4888 if test -z "$CC"; then
4889 ac_ct_CC=$CC
4890 for ac_prog in cl.exe
4892 # Extract the first word of "$ac_prog", so it can be a program name with args.
4893 set dummy $ac_prog; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 if test -n "$ac_ct_CC"; then
4900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_CC="$ac_prog"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4915 IFS=$as_save_IFS
4919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4920 if test -n "$ac_ct_CC"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4922 $as_echo "$ac_ct_CC" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4929 test -n "$ac_ct_CC" && break
4930 done
4932 if test "x$ac_ct_CC" = x; then
4933 CC=""
4934 else
4935 case $cross_compiling:$ac_tool_warned in
4936 yes:)
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4939 ac_tool_warned=yes ;;
4940 esac
4941 CC=$ac_ct_CC
4948 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4950 as_fn_error $? "no acceptable C compiler found in \$PATH
4951 See \`config.log' for more details" "$LINENO" 5; }
4953 # Provide some information about the compiler.
4954 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4955 set X $ac_compile
4956 ac_compiler=$2
4957 for ac_option in --version -v -V -qversion; do
4958 { { ac_try="$ac_compiler $ac_option >&5"
4959 case "(($ac_try" in
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4962 esac
4963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4964 $as_echo "$ac_try_echo"; } >&5
4965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4966 ac_status=$?
4967 if test -s conftest.err; then
4968 sed '10a\
4969 ... rest of stderr output deleted ...
4970 10q' conftest.err >conftest.er1
4971 cat conftest.er1 >&5
4973 rm -f conftest.er1 conftest.err
4974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4975 test $ac_status = 0; }
4976 done
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4979 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4980 if ${ac_cv_c_compiler_gnu+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4987 main ()
4989 #ifndef __GNUC__
4990 choke me
4991 #endif
4994 return 0;
4996 _ACEOF
4997 if ac_fn_c_try_compile "$LINENO"; then :
4998 ac_compiler_gnu=yes
4999 else
5000 ac_compiler_gnu=no
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5007 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5008 if test $ac_compiler_gnu = yes; then
5009 GCC=yes
5010 else
5011 GCC=
5013 ac_test_CFLAGS=${CFLAGS+set}
5014 ac_save_CFLAGS=$CFLAGS
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5016 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5017 if ${ac_cv_prog_cc_g+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 ac_save_c_werror_flag=$ac_c_werror_flag
5021 ac_c_werror_flag=yes
5022 ac_cv_prog_cc_g=no
5023 CFLAGS="-g"
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5028 main ()
5032 return 0;
5034 _ACEOF
5035 if ac_fn_c_try_compile "$LINENO"; then :
5036 ac_cv_prog_cc_g=yes
5037 else
5038 CFLAGS=""
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5043 main ()
5047 return 0;
5049 _ACEOF
5050 if ac_fn_c_try_compile "$LINENO"; then :
5052 else
5053 ac_c_werror_flag=$ac_save_c_werror_flag
5054 CFLAGS="-g"
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5059 main ()
5063 return 0;
5065 _ACEOF
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 ac_cv_prog_cc_g=yes
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 ac_c_werror_flag=$ac_save_c_werror_flag
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5077 $as_echo "$ac_cv_prog_cc_g" >&6; }
5078 if test "$ac_test_CFLAGS" = set; then
5079 CFLAGS=$ac_save_CFLAGS
5080 elif test $ac_cv_prog_cc_g = yes; then
5081 if test "$GCC" = yes; then
5082 CFLAGS="-g -O2"
5083 else
5084 CFLAGS="-g"
5086 else
5087 if test "$GCC" = yes; then
5088 CFLAGS="-O2"
5089 else
5090 CFLAGS=
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5094 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5095 if ${ac_cv_prog_cc_c89+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 ac_cv_prog_cc_c89=no
5099 ac_save_CC=$CC
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 #include <stdarg.h>
5103 #include <stdio.h>
5104 struct stat;
5105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5106 struct buf { int x; };
5107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5108 static char *e (p, i)
5109 char **p;
5110 int i;
5112 return p[i];
5114 static char *f (char * (*g) (char **, int), char **p, ...)
5116 char *s;
5117 va_list v;
5118 va_start (v,p);
5119 s = g (p, va_arg (v,int));
5120 va_end (v);
5121 return s;
5124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5125 function prototypes and stuff, but not '\xHH' hex character constants.
5126 These don't provoke an error unfortunately, instead are silently treated
5127 as 'x'. The following induces an error, until -std is added to get
5128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5129 array size at least. It's necessary to write '\x00'==0 to get something
5130 that's true only with -std. */
5131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5133 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5134 inside strings and character constants. */
5135 #define FOO(x) 'x'
5136 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5138 int test (int i, double x);
5139 struct s1 {int (*f) (int a);};
5140 struct s2 {int (*f) (double a);};
5141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5142 int argc;
5143 char **argv;
5145 main ()
5147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5149 return 0;
5151 _ACEOF
5152 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5153 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5155 CC="$ac_save_CC $ac_arg"
5156 if ac_fn_c_try_compile "$LINENO"; then :
5157 ac_cv_prog_cc_c89=$ac_arg
5159 rm -f core conftest.err conftest.$ac_objext
5160 test "x$ac_cv_prog_cc_c89" != "xno" && break
5161 done
5162 rm -f conftest.$ac_ext
5163 CC=$ac_save_CC
5166 # AC_CACHE_VAL
5167 case "x$ac_cv_prog_cc_c89" in
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5170 $as_echo "none needed" >&6; } ;;
5171 xno)
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5173 $as_echo "unsupported" >&6; } ;;
5175 CC="$CC $ac_cv_prog_cc_c89"
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5177 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5178 esac
5179 if test "x$ac_cv_prog_cc_c89" != xno; then :
5183 ac_ext=c
5184 ac_cpp='$CPP $CPPFLAGS'
5185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189 ac_ext=c
5190 ac_cpp='$CPP $CPPFLAGS'
5191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5195 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5196 if ${am_cv_prog_cc_c_o+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5203 main ()
5207 return 0;
5209 _ACEOF
5210 # Make sure it works both with $CC and with simple cc.
5211 # Following AC_PROG_CC_C_O, we do the test twice because some
5212 # compilers refuse to overwrite an existing .o file with -o,
5213 # though they will create one.
5214 am_cv_prog_cc_c_o=yes
5215 for am_i in 1 2; do
5216 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5217 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } \
5221 && test -f conftest2.$ac_objext; then
5222 : OK
5223 else
5224 am_cv_prog_cc_c_o=no
5225 break
5227 done
5228 rm -f core conftest*
5229 unset am_i
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5232 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5233 if test "$am_cv_prog_cc_c_o" != yes; then
5234 # Losing compiler, so override with the script.
5235 # FIXME: It is wrong to rewrite CC.
5236 # But if we don't then we get into trouble of one sort or another.
5237 # A longer-term fix would be to have automake use am__CC in this case,
5238 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5239 CC="$am_aux_dir/compile $CC"
5241 ac_ext=c
5242 ac_cpp='$CPP $CPPFLAGS'
5243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5248 depcc="$CC" am_compiler_list=
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5251 $as_echo_n "checking dependency style of $depcc... " >&6; }
5252 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5256 # We make a subdir and do the tests there. Otherwise we can end up
5257 # making bogus files that we don't know about and never remove. For
5258 # instance it was reported that on HP-UX the gcc test will end up
5259 # making a dummy file named 'D' -- because '-MD' means "put the output
5260 # in D".
5261 rm -rf conftest.dir
5262 mkdir conftest.dir
5263 # Copy depcomp to subdir because otherwise we won't find it if we're
5264 # using a relative directory.
5265 cp "$am_depcomp" conftest.dir
5266 cd conftest.dir
5267 # We will build objects and dependencies in a subdirectory because
5268 # it helps to detect inapplicable dependency modes. For instance
5269 # both Tru64's cc and ICC support -MD to output dependencies as a
5270 # side effect of compilation, but ICC will put the dependencies in
5271 # the current directory while Tru64 will put them in the object
5272 # directory.
5273 mkdir sub
5275 am_cv_CC_dependencies_compiler_type=none
5276 if test "$am_compiler_list" = ""; then
5277 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5279 am__universal=false
5280 case " $depcc " in #(
5281 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5282 esac
5284 for depmode in $am_compiler_list; do
5285 # Setup a source with many dependencies, because some compilers
5286 # like to wrap large dependency lists on column 80 (with \), and
5287 # we should not choose a depcomp mode which is confused by this.
5289 # We need to recreate these files for each test, as the compiler may
5290 # overwrite some of them when testing with obscure command lines.
5291 # This happens at least with the AIX C compiler.
5292 : > sub/conftest.c
5293 for i in 1 2 3 4 5 6; do
5294 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5295 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5296 # Solaris 10 /bin/sh.
5297 echo '/* dummy */' > sub/conftst$i.h
5298 done
5299 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5301 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5302 # mode. It turns out that the SunPro C++ compiler does not properly
5303 # handle '-M -o', and we need to detect this. Also, some Intel
5304 # versions had trouble with output in subdirs.
5305 am__obj=sub/conftest.${OBJEXT-o}
5306 am__minus_obj="-o $am__obj"
5307 case $depmode in
5308 gcc)
5309 # This depmode causes a compiler race in universal mode.
5310 test "$am__universal" = false || continue
5312 nosideeffect)
5313 # After this tag, mechanisms are not by side-effect, so they'll
5314 # only be used when explicitly requested.
5315 if test "x$enable_dependency_tracking" = xyes; then
5316 continue
5317 else
5318 break
5321 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5322 # This compiler won't grok '-c -o', but also, the minuso test has
5323 # not run yet. These depmodes are late enough in the game, and
5324 # so weak that their functioning should not be impacted.
5325 am__obj=conftest.${OBJEXT-o}
5326 am__minus_obj=
5328 none) break ;;
5329 esac
5330 if depmode=$depmode \
5331 source=sub/conftest.c object=$am__obj \
5332 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5333 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5334 >/dev/null 2>conftest.err &&
5335 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5336 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5337 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5338 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5339 # icc doesn't choke on unknown options, it will just issue warnings
5340 # or remarks (even with -Werror). So we grep stderr for any message
5341 # that says an option was ignored or not supported.
5342 # When given -MP, icc 7.0 and 7.1 complain thusly:
5343 # icc: Command line warning: ignoring option '-M'; no argument required
5344 # The diagnosis changed in icc 8.0:
5345 # icc: Command line remark: option '-MP' not supported
5346 if (grep 'ignoring option' conftest.err ||
5347 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5348 am_cv_CC_dependencies_compiler_type=$depmode
5349 break
5352 done
5354 cd ..
5355 rm -rf conftest.dir
5356 else
5357 am_cv_CC_dependencies_compiler_type=none
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5362 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5363 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5366 test "x$enable_dependency_tracking" != xno \
5367 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5368 am__fastdepCC_TRUE=
5369 am__fastdepCC_FALSE='#'
5370 else
5371 am__fastdepCC_TRUE='#'
5372 am__fastdepCC_FALSE=
5376 ac_ext=c
5377 ac_cpp='$CPP $CPPFLAGS'
5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5382 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5383 # On Suns, sometimes $CPP names a directory.
5384 if test -n "$CPP" && test -d "$CPP"; then
5385 CPP=
5387 if test -z "$CPP"; then
5388 if ${ac_cv_prog_CPP+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 # Double quotes because CPP needs to be expanded
5392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5394 ac_preproc_ok=false
5395 for ac_c_preproc_warn_flag in '' yes
5397 # Use a header file that comes with gcc, so configuring glibc
5398 # with a fresh cross-compiler works.
5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 # <limits.h> exists even on freestanding compilers.
5401 # On the NeXT, cc -E runs the code through the compiler's parser,
5402 # not just through cpp. "Syntax error" is here to catch this case.
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #ifdef __STDC__
5406 # include <limits.h>
5407 #else
5408 # include <assert.h>
5409 #endif
5410 Syntax error
5411 _ACEOF
5412 if ac_fn_c_try_cpp "$LINENO"; then :
5414 else
5415 # Broken: fails on valid input.
5416 continue
5418 rm -f conftest.err conftest.i conftest.$ac_ext
5420 # OK, works on sane cases. Now check whether nonexistent headers
5421 # can be detected and how.
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5424 #include <ac_nonexistent.h>
5425 _ACEOF
5426 if ac_fn_c_try_cpp "$LINENO"; then :
5427 # Broken: success on invalid input.
5428 continue
5429 else
5430 # Passes both tests.
5431 ac_preproc_ok=:
5432 break
5434 rm -f conftest.err conftest.i conftest.$ac_ext
5436 done
5437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5438 rm -f conftest.i conftest.err conftest.$ac_ext
5439 if $ac_preproc_ok; then :
5440 break
5443 done
5444 ac_cv_prog_CPP=$CPP
5447 CPP=$ac_cv_prog_CPP
5448 else
5449 ac_cv_prog_CPP=$CPP
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5452 $as_echo "$CPP" >&6; }
5453 ac_preproc_ok=false
5454 for ac_c_preproc_warn_flag in '' yes
5456 # Use a header file that comes with gcc, so configuring glibc
5457 # with a fresh cross-compiler works.
5458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5459 # <limits.h> exists even on freestanding compilers.
5460 # On the NeXT, cc -E runs the code through the compiler's parser,
5461 # not just through cpp. "Syntax error" is here to catch this case.
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 #ifdef __STDC__
5465 # include <limits.h>
5466 #else
5467 # include <assert.h>
5468 #endif
5469 Syntax error
5470 _ACEOF
5471 if ac_fn_c_try_cpp "$LINENO"; then :
5473 else
5474 # Broken: fails on valid input.
5475 continue
5477 rm -f conftest.err conftest.i conftest.$ac_ext
5479 # OK, works on sane cases. Now check whether nonexistent headers
5480 # can be detected and how.
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 #include <ac_nonexistent.h>
5484 _ACEOF
5485 if ac_fn_c_try_cpp "$LINENO"; then :
5486 # Broken: success on invalid input.
5487 continue
5488 else
5489 # Passes both tests.
5490 ac_preproc_ok=:
5491 break
5493 rm -f conftest.err conftest.i conftest.$ac_ext
5495 done
5496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5497 rm -f conftest.i conftest.err conftest.$ac_ext
5498 if $ac_preproc_ok; then :
5500 else
5501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5503 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5504 See \`config.log' for more details" "$LINENO" 5; }
5507 ac_ext=c
5508 ac_cpp='$CPP $CPPFLAGS'
5509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513 ac_build_prefix=
5514 test -n "$build_alias" && ac_build_prefix=$build_alias-
5516 if test "$cross_compiling" = yes; then :
5518 # Even if we're cross-compiling, we want a compiler here
5519 # that is not a cross-compiler.
5520 saved_cross=$cross_compiling
5521 cross_compiling=no
5523 ac_ext=c
5524 ac_cpp='$CPP $BUILD_CPPFLAGS'
5525 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5526 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5528 if test -n "$ac_build_prefix"; then
5529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5530 set dummy ${ac_build_prefix}gcc; ac_word=$2
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; }
5533 if ${ac_cv_prog_BUILD_CC+:} false; then :
5534 $as_echo_n "(cached) " >&6
5535 else
5536 if test -n "$BUILD_CC"; then
5537 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5538 else
5539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 for as_dir in $PATH
5542 IFS=$as_save_IFS
5543 test -z "$as_dir" && as_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548 break 2
5550 done
5551 done
5552 IFS=$as_save_IFS
5556 BUILD_CC=$ac_cv_prog_BUILD_CC
5557 if test -n "$BUILD_CC"; then
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5559 $as_echo "$BUILD_CC" >&6; }
5560 else
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5567 if test -z "$ac_cv_prog_BUILD_CC"; then
5568 ac_ct_BUILD_CC=$BUILD_CC
5569 # Extract the first word of "gcc", so it can be a program name with args.
5570 set dummy gcc; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$ac_ct_BUILD_CC"; then
5577 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5590 done
5591 done
5592 IFS=$as_save_IFS
5596 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5597 if test -n "$ac_ct_BUILD_CC"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5599 $as_echo "$ac_ct_BUILD_CC" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5605 if test "x$ac_ct_BUILD_CC" = x; then
5606 BUILD_CC=""
5607 else
5608 case $cross_compiling:$ac_tool_warned in
5609 yes:)
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5612 ac_tool_warned=yes ;;
5613 esac
5614 BUILD_CC=$ac_ct_BUILD_CC
5616 else
5617 BUILD_CC="$ac_cv_prog_BUILD_CC"
5620 if test -z "$BUILD_CC"; then
5621 if test -n "$ac_build_prefix"; then
5622 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5623 set dummy ${ac_build_prefix}cc; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_BUILD_CC+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if test -n "$BUILD_CC"; then
5630 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5643 done
5644 done
5645 IFS=$as_save_IFS
5649 BUILD_CC=$ac_cv_prog_BUILD_CC
5650 if test -n "$BUILD_CC"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5652 $as_echo "$BUILD_CC" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5660 if test -z "$ac_cv_prog_BUILD_CC"; then
5661 ac_ct_BUILD_CC=$BUILD_CC
5662 # Extract the first word of "cc", so it can be a program name with args.
5663 set dummy cc; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$ac_ct_BUILD_CC"; then
5670 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_BUILD_CC="cc"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5683 done
5684 done
5685 IFS=$as_save_IFS
5689 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5690 if test -n "$ac_ct_BUILD_CC"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5692 $as_echo "$ac_ct_BUILD_CC" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5698 if test "x$ac_ct_BUILD_CC" = x; then
5699 BUILD_CC=""
5700 else
5701 case $cross_compiling:$ac_tool_warned in
5702 yes:)
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5706 esac
5707 BUILD_CC=$ac_ct_BUILD_CC
5709 else
5710 BUILD_CC="$ac_cv_prog_BUILD_CC"
5714 if test -z "$BUILD_CC"; then
5715 # Extract the first word of "cc", so it can be a program name with args.
5716 set dummy cc; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_BUILD_CC+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$BUILD_CC"; then
5723 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5724 else
5725 ac_prog_rejected=no
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5734 ac_prog_rejected=yes
5735 continue
5737 ac_cv_prog_BUILD_CC="cc"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5741 done
5742 done
5743 IFS=$as_save_IFS
5745 if test $ac_prog_rejected = yes; then
5746 # We found a bogon in the path, so make sure we never use it.
5747 set dummy $ac_cv_prog_BUILD_CC
5748 shift
5749 if test $# != 0; then
5750 # We chose a different compiler from the bogus one.
5751 # However, it has the same basename, so the bogon will be chosen
5752 # first if we set BUILD_CC to just the basename; use the full file name.
5753 shift
5754 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5759 BUILD_CC=$ac_cv_prog_BUILD_CC
5760 if test -n "$BUILD_CC"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5762 $as_echo "$BUILD_CC" >&6; }
5763 else
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5770 if test -z "$BUILD_CC"; then
5771 if test -n "$ac_build_prefix"; then
5772 for ac_prog in cl
5774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5775 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_prog_BUILD_CC+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 if test -n "$BUILD_CC"; then
5782 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5795 done
5796 done
5797 IFS=$as_save_IFS
5801 BUILD_CC=$ac_cv_prog_BUILD_CC
5802 if test -n "$BUILD_CC"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5804 $as_echo "$BUILD_CC" >&6; }
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5811 test -n "$BUILD_CC" && break
5812 done
5814 if test -z "$BUILD_CC"; then
5815 ac_ct_BUILD_CC=$BUILD_CC
5816 for ac_prog in cl
5818 # Extract the first word of "$ac_prog", so it can be a program name with args.
5819 set dummy $ac_prog; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_ac_ct_BUILD_CC+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$ac_ct_BUILD_CC"; then
5826 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5839 done
5840 done
5841 IFS=$as_save_IFS
5845 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5846 if test -n "$ac_ct_BUILD_CC"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5848 $as_echo "$ac_ct_BUILD_CC" >&6; }
5849 else
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5855 test -n "$ac_ct_BUILD_CC" && break
5856 done
5858 if test "x$ac_ct_BUILD_CC" = x; then
5859 BUILD_CC=""
5860 else
5861 case $cross_compiling:$ac_tool_warned in
5862 yes:)
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865 ac_tool_warned=yes ;;
5866 esac
5867 BUILD_CC=$ac_ct_BUILD_CC
5874 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5876 as_fn_error $? "no acceptable C compiler found in \$PATH
5877 See \`config.log' for more details" "$LINENO" 5; }
5879 # Provide some information about the compiler.
5880 echo "$as_me:$LINENO:" \
5881 "checking for C compiler version" >&5
5882 ac_compiler=`set X $ac_compile; echo $2`
5883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5884 (eval $ac_compiler --version </dev/null >&5) 2>&5
5885 ac_status=$?
5886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5887 test $ac_status = 0; }
5888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5889 (eval $ac_compiler -v </dev/null >&5) 2>&5
5890 ac_status=$?
5891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892 test $ac_status = 0; }
5893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5894 (eval $ac_compiler -V </dev/null >&5) 2>&5
5895 ac_status=$?
5896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897 test $ac_status = 0; }
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5903 main ()
5907 return 0;
5909 _ACEOF
5910 ac_clean_files_save=$ac_clean_files
5911 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5912 # Try to create an executable without -o first, disregard a.out.
5913 # It will help us diagnose broken compilers, and finding out an intuition
5914 # of exeext.
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5916 $as_echo_n "checking whether the C compiler works... " >&6; }
5917 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5919 # The possible output files:
5920 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5922 ac_rmfiles=
5923 for ac_file in $ac_files
5925 case $ac_file in
5926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5927 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5928 esac
5929 done
5930 rm -f $ac_rmfiles
5932 if { { ac_try="$ac_link_default"
5933 case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936 esac
5937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5938 $as_echo "$ac_try_echo"; } >&5
5939 (eval "$ac_link_default") 2>&5
5940 ac_status=$?
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942 test $ac_status = 0; }; then :
5943 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5944 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5945 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5946 # so that the user can short-circuit this test for compilers unknown to
5947 # Autoconf.
5948 for ac_file in $ac_files ''
5950 test -f "$ac_file" || continue
5951 case $ac_file in
5952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5954 [ab].out )
5955 # We found the default executable, but exeext='' is most
5956 # certainly right.
5957 break;;
5958 *.* )
5959 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5960 then :; else
5961 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5963 # We set ac_cv_exeext here because the later test for it is not
5964 # safe: cross compilers may not add the suffix if given an `-o'
5965 # argument, so we may need to know it at that point already.
5966 # Even if this section looks crufty: it has the advantage of
5967 # actually working.
5968 break;;
5970 break;;
5971 esac
5972 done
5973 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5975 else
5976 ac_file=''
5978 if test -z "$ac_file"; then :
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 $as_echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5986 as_fn_error 77 "C compiler cannot create executables
5987 See \`config.log' for more details" "$LINENO" 5; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5990 $as_echo "yes" >&6; }
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5993 $as_echo_n "checking for C compiler default output file name... " >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5995 $as_echo "$ac_file" >&6; }
5996 ac_build_exeext=$ac_cv_build_exeext
5998 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5999 ac_clean_files=$ac_clean_files_save
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6001 $as_echo_n "checking for suffix of executables... " >&6; }
6002 if { { ac_try="$ac_link"
6003 case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006 esac
6007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6008 $as_echo "$ac_try_echo"; } >&5
6009 (eval "$ac_link") 2>&5
6010 ac_status=$?
6011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6012 test $ac_status = 0; }; then :
6013 # If both `conftest.exe' and `conftest' are `present' (well, observable)
6014 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
6015 # work properly (i.e., refer to `conftest.exe'), while it won't with
6016 # `rm'.
6017 for ac_file in conftest.exe conftest conftest.*; do
6018 test -f "$ac_file" || continue
6019 case $ac_file in
6020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6021 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6022 break;;
6023 * ) break;;
6024 esac
6025 done
6026 else
6027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6029 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6030 See \`config.log' for more details" "$LINENO" 5; }
6032 rm -f conftest conftest$ac_cv_build_exeext
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
6034 $as_echo "$ac_cv_build_exeext" >&6; }
6036 rm -f conftest.$ac_ext
6037 BUILD_EXEEXT=$ac_cv_build_exeext
6038 ac_build_exeext=$BUILD_EXEEXT
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041 #include <stdio.h>
6043 main ()
6045 FILE *f = fopen ("conftest.out", "w");
6046 return ferror (f) || fclose (f) != 0;
6049 return 0;
6051 _ACEOF
6052 ac_clean_files="$ac_clean_files conftest.out"
6053 # Check that the compiler produces executables we can run. If not, either
6054 # the compiler is broken, or we cross compile.
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6056 $as_echo_n "checking whether we are cross compiling... " >&6; }
6057 if test "$cross_compiling" != yes; then
6058 { { ac_try="$ac_link"
6059 case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062 esac
6063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6064 $as_echo "$ac_try_echo"; } >&5
6065 (eval "$ac_link") 2>&5
6066 ac_status=$?
6067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6068 test $ac_status = 0; }
6069 if { ac_try='./conftest$ac_cv_build_exeext'
6070 { { case "(($ac_try" in
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6073 esac
6074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6075 $as_echo "$ac_try_echo"; } >&5
6076 (eval "$ac_try") 2>&5
6077 ac_status=$?
6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079 test $ac_status = 0; }; }; then
6080 cross_compiling=no
6081 else
6082 if test "$cross_compiling" = maybe; then
6083 cross_compiling=yes
6084 else
6085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6087 as_fn_error $? "cannot run C compiled programs.
6088 If you meant to cross compile, use \`--host'.
6089 See \`config.log' for more details" "$LINENO" 5; }
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6094 $as_echo "$cross_compiling" >&6; }
6096 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
6097 ac_clean_files=$ac_clean_files_save
6100 # Restore configuration environment
6101 cross_compiling=$saved_cross
6103 ac_ext=c
6104 ac_cpp='$CPP $CPPFLAGS'
6105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6109 else
6110 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
6112 CFLAGS="$mule_backup_CFLAGS"
6113 CXXFLAGS="$mule_backup_CXXFLAGS"
6114 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
6115 for ac_prog in gawk mawk nawk awk
6117 # Extract the first word of "$ac_prog", so it can be a program name with args.
6118 set dummy $ac_prog; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_AWK+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if test -n "$AWK"; then
6125 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_AWK="$ac_prog"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6138 done
6139 done
6140 IFS=$as_save_IFS
6144 AWK=$ac_cv_prog_AWK
6145 if test -n "$AWK"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6147 $as_echo "$AWK" >&6; }
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6154 test -n "$AWK" && break
6155 done
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6158 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6159 if ${ac_cv_path_GREP+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -z "$GREP"; then
6163 ac_path_GREP_found=false
6164 # Loop through the user's path and test for each of PROGNAME-LIST
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_prog in grep ggrep; do
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6173 as_fn_executable_p "$ac_path_GREP" || continue
6174 # Check for GNU ac_path_GREP and select it if it is found.
6175 # Check for GNU $ac_path_GREP
6176 case `"$ac_path_GREP" --version 2>&1` in
6177 *GNU*)
6178 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6180 ac_count=0
6181 $as_echo_n 0123456789 >"conftest.in"
6182 while :
6184 cat "conftest.in" "conftest.in" >"conftest.tmp"
6185 mv "conftest.tmp" "conftest.in"
6186 cp "conftest.in" "conftest.nl"
6187 $as_echo 'GREP' >> "conftest.nl"
6188 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6190 as_fn_arith $ac_count + 1 && ac_count=$as_val
6191 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6192 # Best one so far, save it but keep looking for a better one
6193 ac_cv_path_GREP="$ac_path_GREP"
6194 ac_path_GREP_max=$ac_count
6196 # 10*(2^10) chars as input seems more than enough
6197 test $ac_count -gt 10 && break
6198 done
6199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6200 esac
6202 $ac_path_GREP_found && break 3
6203 done
6204 done
6205 done
6206 IFS=$as_save_IFS
6207 if test -z "$ac_cv_path_GREP"; then
6208 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6210 else
6211 ac_cv_path_GREP=$GREP
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6216 $as_echo "$ac_cv_path_GREP" >&6; }
6217 GREP="$ac_cv_path_GREP"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6221 $as_echo_n "checking for egrep... " >&6; }
6222 if ${ac_cv_path_EGREP+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6226 then ac_cv_path_EGREP="$GREP -E"
6227 else
6228 if test -z "$EGREP"; then
6229 ac_path_EGREP_found=false
6230 # Loop through the user's path and test for each of PROGNAME-LIST
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_prog in egrep; do
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6239 as_fn_executable_p "$ac_path_EGREP" || continue
6240 # Check for GNU ac_path_EGREP and select it if it is found.
6241 # Check for GNU $ac_path_EGREP
6242 case `"$ac_path_EGREP" --version 2>&1` in
6243 *GNU*)
6244 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6246 ac_count=0
6247 $as_echo_n 0123456789 >"conftest.in"
6248 while :
6250 cat "conftest.in" "conftest.in" >"conftest.tmp"
6251 mv "conftest.tmp" "conftest.in"
6252 cp "conftest.in" "conftest.nl"
6253 $as_echo 'EGREP' >> "conftest.nl"
6254 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6256 as_fn_arith $ac_count + 1 && ac_count=$as_val
6257 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6258 # Best one so far, save it but keep looking for a better one
6259 ac_cv_path_EGREP="$ac_path_EGREP"
6260 ac_path_EGREP_max=$ac_count
6262 # 10*(2^10) chars as input seems more than enough
6263 test $ac_count -gt 10 && break
6264 done
6265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6266 esac
6268 $ac_path_EGREP_found && break 3
6269 done
6270 done
6271 done
6272 IFS=$as_save_IFS
6273 if test -z "$ac_cv_path_EGREP"; then
6274 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6276 else
6277 ac_cv_path_EGREP=$EGREP
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6283 $as_echo "$ac_cv_path_EGREP" >&6; }
6284 EGREP="$ac_cv_path_EGREP"
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6288 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6289 set x ${MAKE-make}
6290 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6291 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 cat >conftest.make <<\_ACEOF
6295 SHELL = /bin/sh
6296 all:
6297 @echo '@@@%%%=$(MAKE)=@@@%%%'
6298 _ACEOF
6299 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6300 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6301 *@@@%%%=?*=@@@%%%*)
6302 eval ac_cv_prog_make_${ac_make}_set=yes;;
6304 eval ac_cv_prog_make_${ac_make}_set=no;;
6305 esac
6306 rm -f conftest.make
6308 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6310 $as_echo "yes" >&6; }
6311 SET_MAKE=
6312 else
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 SET_MAKE="MAKE=${MAKE-make}"
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_RANLIB+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 if test -n "$RANLIB"; then
6328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6341 done
6342 done
6343 IFS=$as_save_IFS
6347 RANLIB=$ac_cv_prog_RANLIB
6348 if test -n "$RANLIB"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6350 $as_echo "$RANLIB" >&6; }
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6358 if test -z "$ac_cv_prog_RANLIB"; then
6359 ac_ct_RANLIB=$RANLIB
6360 # Extract the first word of "ranlib", so it can be a program name with args.
6361 set dummy ranlib; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 if test -n "$ac_ct_RANLIB"; then
6368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_ac_ct_RANLIB="ranlib"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6381 done
6382 done
6383 IFS=$as_save_IFS
6387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6388 if test -n "$ac_ct_RANLIB"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6390 $as_echo "$ac_ct_RANLIB" >&6; }
6391 else
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6396 if test "x$ac_ct_RANLIB" = x; then
6397 RANLIB=":"
6398 else
6399 case $cross_compiling:$ac_tool_warned in
6400 yes:)
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6404 esac
6405 RANLIB=$ac_ct_RANLIB
6407 else
6408 RANLIB="$ac_cv_prog_RANLIB"
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6412 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6413 if ${ac_cv_path_SED+:} false; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6417 for ac_i in 1 2 3 4 5 6 7; do
6418 ac_script="$ac_script$as_nl$ac_script"
6419 done
6420 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6421 { ac_script=; unset ac_script;}
6422 if test -z "$SED"; then
6423 ac_path_SED_found=false
6424 # Loop through the user's path and test for each of PROGNAME-LIST
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_prog in sed gsed; do
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6433 as_fn_executable_p "$ac_path_SED" || continue
6434 # Check for GNU ac_path_SED and select it if it is found.
6435 # Check for GNU $ac_path_SED
6436 case `"$ac_path_SED" --version 2>&1` in
6437 *GNU*)
6438 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6440 ac_count=0
6441 $as_echo_n 0123456789 >"conftest.in"
6442 while :
6444 cat "conftest.in" "conftest.in" >"conftest.tmp"
6445 mv "conftest.tmp" "conftest.in"
6446 cp "conftest.in" "conftest.nl"
6447 $as_echo '' >> "conftest.nl"
6448 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6450 as_fn_arith $ac_count + 1 && ac_count=$as_val
6451 if test $ac_count -gt ${ac_path_SED_max-0}; then
6452 # Best one so far, save it but keep looking for a better one
6453 ac_cv_path_SED="$ac_path_SED"
6454 ac_path_SED_max=$ac_count
6456 # 10*(2^10) chars as input seems more than enough
6457 test $ac_count -gt 10 && break
6458 done
6459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6460 esac
6462 $ac_path_SED_found && break 3
6463 done
6464 done
6465 done
6466 IFS=$as_save_IFS
6467 if test -z "$ac_cv_path_SED"; then
6468 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6470 else
6471 ac_cv_path_SED=$SED
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6476 $as_echo "$ac_cv_path_SED" >&6; }
6477 SED="$ac_cv_path_SED"
6478 rm -f conftest.sed
6481 if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_RANLIB+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 if test -n "$RANLIB"; then
6490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6503 done
6504 done
6505 IFS=$as_save_IFS
6509 RANLIB=$ac_cv_prog_RANLIB
6510 if test -n "$RANLIB"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6512 $as_echo "$RANLIB" >&6; }
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6520 if test -z "$ac_cv_prog_RANLIB"; then
6521 ac_ct_RANLIB=$RANLIB
6522 # Extract the first word of "ranlib", so it can be a program name with args.
6523 set dummy ranlib; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 if test -n "$ac_ct_RANLIB"; then
6530 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6535 IFS=$as_save_IFS
6536 test -z "$as_dir" && as_dir=.
6537 for ac_exec_ext in '' $ac_executable_extensions; do
6538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539 ac_cv_prog_ac_ct_RANLIB="ranlib"
6540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 break 2
6543 done
6544 done
6545 IFS=$as_save_IFS
6549 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6550 if test -n "$ac_ct_RANLIB"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6552 $as_echo "$ac_ct_RANLIB" >&6; }
6553 else
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6555 $as_echo "no" >&6; }
6558 if test "x$ac_ct_RANLIB" = x; then
6559 RANLIB=""
6560 else
6561 case $cross_compiling:$ac_tool_warned in
6562 yes:)
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6565 ac_tool_warned=yes ;;
6566 esac
6567 RANLIB=$ac_ct_RANLIB
6569 else
6570 RANLIB="$ac_cv_prog_RANLIB"
6573 if test -n "$ac_tool_prefix"; then
6574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}strip; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_STRIP+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 if test -n "$STRIP"; then
6582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6583 else
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6587 IFS=$as_save_IFS
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 break 2
6595 done
6596 done
6597 IFS=$as_save_IFS
6601 STRIP=$ac_cv_prog_STRIP
6602 if test -n "$STRIP"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6604 $as_echo "$STRIP" >&6; }
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6612 if test -z "$ac_cv_prog_STRIP"; then
6613 ac_ct_STRIP=$STRIP
6614 # Extract the first word of "strip", so it can be a program name with args.
6615 set dummy strip; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 if test -n "$ac_ct_STRIP"; then
6622 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_ac_ct_STRIP="strip"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6635 done
6636 done
6637 IFS=$as_save_IFS
6641 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6642 if test -n "$ac_ct_STRIP"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6644 $as_echo "$ac_ct_STRIP" >&6; }
6645 else
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6650 if test "x$ac_ct_STRIP" = x; then
6651 STRIP=""
6652 else
6653 case $cross_compiling:$ac_tool_warned in
6654 yes:)
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657 ac_tool_warned=yes ;;
6658 esac
6659 STRIP=$ac_ct_STRIP
6661 else
6662 STRIP="$ac_cv_prog_STRIP"
6665 if test -n "$ac_tool_prefix"; then
6666 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}ar; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_AR+:} false; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673 if test -n "$AR"; then
6674 ac_cv_prog_AR="$AR" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683 ac_cv_prog_AR="${ac_tool_prefix}ar"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6687 done
6688 done
6689 IFS=$as_save_IFS
6693 AR=$ac_cv_prog_AR
6694 if test -n "$AR"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6696 $as_echo "$AR" >&6; }
6697 else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6704 if test -z "$ac_cv_prog_AR"; then
6705 ac_ct_AR=$AR
6706 # Extract the first word of "ar", so it can be a program name with args.
6707 set dummy ar; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 if test -n "$ac_ct_AR"; then
6714 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723 ac_cv_prog_ac_ct_AR="ar"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6727 done
6728 done
6729 IFS=$as_save_IFS
6733 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6734 if test -n "$ac_ct_AR"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6736 $as_echo "$ac_ct_AR" >&6; }
6737 else
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6742 if test "x$ac_ct_AR" = x; then
6743 AR=""
6744 else
6745 case $cross_compiling:$ac_tool_warned in
6746 yes:)
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749 ac_tool_warned=yes ;;
6750 esac
6751 AR=$ac_ct_AR
6753 else
6754 AR="$ac_cv_prog_AR"
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}ld; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_LD+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 if test -n "$LD"; then
6766 ac_cv_prog_LD="$LD" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_LD="${ac_tool_prefix}ld"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6779 done
6780 done
6781 IFS=$as_save_IFS
6785 LD=$ac_cv_prog_LD
6786 if test -n "$LD"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6788 $as_echo "$LD" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6796 if test -z "$ac_cv_prog_LD"; then
6797 ac_ct_LD=$LD
6798 # Extract the first word of "ld", so it can be a program name with args.
6799 set dummy ld; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_LD+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$ac_ct_LD"; then
6806 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_ac_ct_LD="ld"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6819 done
6820 done
6821 IFS=$as_save_IFS
6825 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6826 if test -n "$ac_ct_LD"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6828 $as_echo "$ac_ct_LD" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6834 if test "x$ac_ct_LD" = x; then
6835 LD=""
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6842 esac
6843 LD=$ac_ct_LD
6845 else
6846 LD="$ac_cv_prog_LD"
6850 # Check whether --enable-monolithic was given.
6851 if test "${enable_monolithic+set}" = set; then :
6852 enableval=$enable_monolithic;
6855 if test ${enable_monolithic:-yes} = yes; then
6856 MONOLITHIC_TRUE=
6857 MONOLITHIC_FALSE='#'
6858 else
6859 MONOLITHIC_TRUE='#'
6860 MONOLITHIC_FALSE=
6864 # Check whether --enable-amule-daemon was given.
6865 if test "${enable_amule_daemon+set}" = set; then :
6866 enableval=$enable_amule_daemon;
6869 if test ${enable_amule_daemon:-no} = yes; then
6870 AMULE_DAEMON_TRUE=
6871 AMULE_DAEMON_FALSE='#'
6872 else
6873 AMULE_DAEMON_TRUE='#'
6874 AMULE_DAEMON_FALSE=
6878 # Check whether --enable-amulecmd was given.
6879 if test "${enable_amulecmd+set}" = set; then :
6880 enableval=$enable_amulecmd;
6883 if test ${enable_amulecmd:-no} = yes; then
6884 COMPILE_CMD_TRUE=
6885 COMPILE_CMD_FALSE='#'
6886 else
6887 COMPILE_CMD_TRUE='#'
6888 COMPILE_CMD_FALSE=
6892 # Check whether --enable-webserver was given.
6893 if test "${enable_webserver+set}" = set; then :
6894 enableval=$enable_webserver;
6897 if test ${enable_webserver:-no} = yes; then
6898 WEB_TRUE=
6899 WEB_FALSE='#'
6900 else
6901 WEB_TRUE='#'
6902 WEB_FALSE=
6906 # Check whether --enable-amule-gui was given.
6907 if test "${enable_amule_gui+set}" = set; then :
6908 enableval=$enable_amule_gui;
6911 if test ${enable_amule_gui:-no} = yes; then
6912 AMULE_GUI_TRUE=
6913 AMULE_GUI_FALSE='#'
6914 else
6915 AMULE_GUI_TRUE='#'
6916 AMULE_GUI_FALSE=
6920 # Check whether --enable-cas was given.
6921 if test "${enable_cas+set}" = set; then :
6922 enableval=$enable_cas;
6925 if test ${enable_cas:-no} = yes; then
6926 CAS_TRUE=
6927 CAS_FALSE='#'
6928 else
6929 CAS_TRUE='#'
6930 CAS_FALSE=
6934 # Check whether --enable-wxcas was given.
6935 if test "${enable_wxcas+set}" = set; then :
6936 enableval=$enable_wxcas;
6939 if test ${enable_wxcas:-no} = yes; then
6940 WXCAS_TRUE=
6941 WXCAS_FALSE='#'
6942 else
6943 WXCAS_TRUE='#'
6944 WXCAS_FALSE=
6948 # Check whether --enable-ed2k was given.
6949 if test "${enable_ed2k+set}" = set; then :
6950 enableval=$enable_ed2k;
6953 if test ${enable_ed2k:-yes} = yes; then
6954 ED2K_TRUE=
6955 ED2K_FALSE='#'
6956 else
6957 ED2K_TRUE='#'
6958 ED2K_FALSE=
6962 # Check whether --enable-alc was given.
6963 if test "${enable_alc+set}" = set; then :
6964 enableval=$enable_alc;
6967 if test ${enable_alc:-no} = yes; then
6968 ALC_TRUE=
6969 ALC_FALSE='#'
6970 else
6971 ALC_TRUE='#'
6972 ALC_FALSE=
6976 # Check whether --enable-alcc was given.
6977 if test "${enable_alcc+set}" = set; then :
6978 enableval=$enable_alcc;
6981 if test ${enable_alcc:-no} = yes; then
6982 ALCC_TRUE=
6983 ALCC_FALSE='#'
6984 else
6985 ALCC_TRUE='#'
6986 ALCC_FALSE=
6990 # Check whether --enable-xas was given.
6991 if test "${enable_xas+set}" = set; then :
6992 enableval=$enable_xas;
6995 if test ${enable_xas:-no} = yes; then
6996 XAS_TRUE=
6997 XAS_FALSE='#'
6998 else
6999 XAS_TRUE='#'
7000 XAS_FALSE=
7004 # Check whether --enable-fileview was given.
7005 if test "${enable_fileview+set}" = set; then :
7006 enableval=$enable_fileview;
7009 if test ${enable_fileview:-no} = yes; then
7010 FILEVIEW_TRUE=
7011 FILEVIEW_FALSE='#'
7012 else
7013 FILEVIEW_TRUE='#'
7014 FILEVIEW_FALSE=
7018 # Check whether --enable-plasmamule was given.
7019 if test "${enable_plasmamule+set}" = set; then :
7020 enableval=$enable_plasmamule;
7025 # Run all the tests with static linkage if we want a statically linked binary
7026 # Check whether --enable-static was given.
7027 if test "${enable_static+set}" = set; then :
7028 enableval=$enable_static;
7032 if test ${enable_static:-no} = yes; then :
7033 LDFLAGS="$LDFLAGS -static"
7038 # Check whether --with-kde4-config was given.
7039 if test "${with_kde4_config+set}" = set; then :
7040 withval=$with_kde4_config; KDE4_CONFIG=$withval
7041 else
7042 KDE4_CONFIG=""
7045 # Check whether --enable-kde-in-home was given.
7046 if test "${enable_kde_in_home+set}" = set; then :
7047 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
7048 else
7049 KDE_IN_HOME=no
7055 # Check whether --with-moc was given.
7056 if test "${with_moc+set}" = set; then :
7057 withval=$with_moc; QT_MOC=$withval
7058 else
7059 QT_MOC=""
7064 # Default is yes, because they're most likely compatible.
7065 # However, this is only used when cross-compiling.
7067 # Check whether --with-gnu-malloc was given.
7068 if test "${with_gnu_malloc+set}" = set; then :
7069 withval=$with_gnu_malloc; gnumalloc=$withval
7070 else
7071 gnumalloc=yes
7076 # Checking for libs before all other stuff to break
7077 # configure as soon as possible in case of a missing one
7078 # to avoid losing too much time
7080 # Check for gd
7083 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7084 if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 case $PKG_CONFIG in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7108 done
7109 done
7110 IFS=$as_save_IFS
7113 esac
7115 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7116 if test -n "$PKG_CONFIG"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7118 $as_echo "$PKG_CONFIG" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7126 if test -z "$ac_cv_path_PKG_CONFIG"; then
7127 ac_pt_PKG_CONFIG=$PKG_CONFIG
7128 # Extract the first word of "pkg-config", so it can be a program name with args.
7129 set dummy pkg-config; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 case $ac_pt_PKG_CONFIG in
7136 [\\/]* | ?:[\\/]*)
7137 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7147 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7151 done
7152 done
7153 IFS=$as_save_IFS
7156 esac
7158 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7159 if test -n "$ac_pt_PKG_CONFIG"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7161 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7167 if test "x$ac_pt_PKG_CONFIG" = x; then
7168 PKG_CONFIG=""
7169 else
7170 case $cross_compiling:$ac_tool_warned in
7171 yes:)
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7174 ac_tool_warned=yes ;;
7175 esac
7176 PKG_CONFIG=$ac_pt_PKG_CONFIG
7178 else
7179 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7183 if test -n "$PKG_CONFIG"; then
7184 _pkg_min_version=0.9.0
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7186 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7187 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7189 $as_echo "yes" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 PKG_CONFIG=""
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7200 $as_echo_n "checking for ANSI C header files... " >&6; }
7201 if ${ac_cv_header_stdc+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 #include <stdlib.h>
7207 #include <stdarg.h>
7208 #include <string.h>
7209 #include <float.h>
7212 main ()
7216 return 0;
7218 _ACEOF
7219 if ac_fn_c_try_compile "$LINENO"; then :
7220 ac_cv_header_stdc=yes
7221 else
7222 ac_cv_header_stdc=no
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 if test $ac_cv_header_stdc = yes; then
7227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <string.h>
7232 _ACEOF
7233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7234 $EGREP "memchr" >/dev/null 2>&1; then :
7236 else
7237 ac_cv_header_stdc=no
7239 rm -f conftest*
7243 if test $ac_cv_header_stdc = yes; then
7244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #include <stdlib.h>
7249 _ACEOF
7250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251 $EGREP "free" >/dev/null 2>&1; then :
7253 else
7254 ac_cv_header_stdc=no
7256 rm -f conftest*
7260 if test $ac_cv_header_stdc = yes; then
7261 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7262 if test "$cross_compiling" = yes; then :
7264 else
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #include <ctype.h>
7268 #include <stdlib.h>
7269 #if ((' ' & 0x0FF) == 0x020)
7270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7272 #else
7273 # define ISLOWER(c) \
7274 (('a' <= (c) && (c) <= 'i') \
7275 || ('j' <= (c) && (c) <= 'r') \
7276 || ('s' <= (c) && (c) <= 'z'))
7277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7278 #endif
7280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7282 main ()
7284 int i;
7285 for (i = 0; i < 256; i++)
7286 if (XOR (islower (i), ISLOWER (i))
7287 || toupper (i) != TOUPPER (i))
7288 return 2;
7289 return 0;
7291 _ACEOF
7292 if ac_fn_c_try_run "$LINENO"; then :
7294 else
7295 ac_cv_header_stdc=no
7297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7298 conftest.$ac_objext conftest.beam conftest.$ac_ext
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7304 $as_echo "$ac_cv_header_stdc" >&6; }
7305 if test $ac_cv_header_stdc = yes; then
7307 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7312 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7313 inttypes.h stdint.h unistd.h
7314 do :
7315 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7316 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7318 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7319 cat >>confdefs.h <<_ACEOF
7320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7321 _ACEOF
7325 done
7328 if test ${enable_cas:-no} = yes; then :
7333 # Check whether --with-gdlib-prefix was given.
7334 if test "${with_gdlib_prefix+set}" = set; then :
7335 withval=$with_gdlib_prefix;
7339 # Check whether --with-gdlib-config was given.
7340 if test "${with_gdlib_config+set}" = set; then :
7341 withval=$with_gdlib_config;
7345 GDLIB_VERSION=
7347 # Check gdlib in pkg-config first to avoid deprecation warnings
7348 # If --with-gdlib-config or --with-gdlib-prefix was given, then
7349 # skip the pkg-config check, the user probably wants to use
7350 # another gdlib instance.
7351 if test -z "${with_gdlib_config:-}${with_gdlib_prefix:-}"; then :
7353 if test -n "$PKG_CONFIG"; then :
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib" >&5
7356 $as_echo_n "checking for gdlib... " >&6; }
7358 if $PKG_CONFIG gdlib --exists; then :
7360 GDLIB_VERSION=`$PKG_CONFIG gdlib --modversion`
7362 if $PKG_CONFIG gdlib --atleast-version=2.0.0; then :
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7365 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7366 GDLIB_CFLAGS=`$PKG_CONFIG gdlib --cflags`
7367 GDLIB_LDFLAGS=`$PKG_CONFIG gdlib --libs-only-L`
7368 GDLIB_LIBS=`$PKG_CONFIG gdlib --libs-only-other`
7369 GDLIB_LIBS="$GDLIB_LIBS `$PKG_CONFIG gdlib --libs-only-l`"
7371 else
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7374 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7375 GDLIB_VERSION=
7379 else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7390 # Try gdlib-config if we did not find a sufficient gdlib version in pkg-config
7391 if test -z "$GDLIB_VERSION"; then :
7393 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7394 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7395 GDLIB_CONFIG_NAME=gdlib-config
7397 if test -n "$with_gdlib_config"; then :
7398 GDLIB_CONFIG_NAME="$with_gdlib_config"
7401 # deal with optional prefix
7402 if test -n "$with_gdlib_prefix"; then :
7403 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7406 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7407 if test -x "$GDLIB_CONFIG_NAME"; then :
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7410 $as_echo_n "checking for gdlib-config... " >&6; }
7411 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7413 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7415 else
7416 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7417 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_path_GDLIB_CONFIG_PATH+:} false; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 case $GDLIB_CONFIG_PATH in
7424 [\\/]* | ?:[\\/]*)
7425 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7430 for as_dir in $as_dummy
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7440 done
7441 done
7442 IFS=$as_save_IFS
7444 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7446 esac
7448 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7449 if test -n "$GDLIB_CONFIG_PATH"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7451 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7452 else
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7460 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7463 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7464 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7466 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7467 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7468 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7469 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7471 if test $gdlib_config_major_version -gt 2; then
7472 gdlib_ver_ok=yes
7473 elif test $gdlib_config_major_version -eq 2; then
7475 if test $gdlib_config_minor_version -gt 0; then
7476 gdlib_ver_ok=yes
7477 elif test $gdlib_config_minor_version -eq 0; then
7478 if test $gdlib_config_micro_version -ge 0; then
7479 gdlib_ver_ok=yes
7490 if test -z "${gdlib_ver_ok:-}"; then :
7492 if test -z "$GDLIB_VERSION"; then :
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7495 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7498 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7499 GDLIB_VERSION=
7503 else
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7506 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7507 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7508 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7509 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7515 if test -n "$GDLIB_VERSION"; then :
7517 mule_backup_CFLAGS="$CFLAGS"
7518 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7520 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7521 if test "x$ac_cv_header_gd_h" = xyes; then :
7523 else
7525 GDLIB_CFLAGS=
7526 GDLIB_LDFLAGS=
7527 GDLIB_LIBS=
7528 GDLIB_VERSION=
7534 CFLAGS="$mule_backup_CFLAGS"
7538 if test -n "$GDLIB_VERSION"; then :
7540 CAS_DEFS="-D__GD__"
7541 GDLIB_LIBS="-lgd"
7543 else
7544 CAS_DEFS=
7549 if test -z "$CAS_DEFS"; then :
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7551 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7552 Please check that gdlib-config is in your default path, check out
7553 LD_LIBRARY_PATH or equivalent variable.
7554 Or this might also be that your gdlib-config has other name.
7555 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7556 (replace /usr/bin/gdlib-config with a valid path to your
7557 gdlib-config).
7558 If you use compiled packages check if you have devel pack installed.
7559 To download the latest version check http://www.boutell.com/gd for
7560 sources." >&5
7561 $as_echo "$as_me: WARNING:
7562 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7563 Please check that gdlib-config is in your default path, check out
7564 LD_LIBRARY_PATH or equivalent variable.
7565 Or this might also be that your gdlib-config has other name.
7566 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7567 (replace /usr/bin/gdlib-config with a valid path to your
7568 gdlib-config).
7569 If you use compiled packages check if you have devel pack installed.
7570 To download the latest version check http://www.boutell.com/gd for
7571 sources." >&2;}
7572 _mule_warning_0=yes
7573 _mule_has_warnings=yes
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7580 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7581 if ${ac_cv_header_stdbool_h+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7587 #include <stdbool.h>
7588 #ifndef bool
7589 "error: bool is not defined"
7590 #endif
7591 #ifndef false
7592 "error: false is not defined"
7593 #endif
7594 #if false
7595 "error: false is not 0"
7596 #endif
7597 #ifndef true
7598 "error: true is not defined"
7599 #endif
7600 #if true != 1
7601 "error: true is not 1"
7602 #endif
7603 #ifndef __bool_true_false_are_defined
7604 "error: __bool_true_false_are_defined is not defined"
7605 #endif
7607 struct s { _Bool s: 1; _Bool t; } s;
7609 char a[true == 1 ? 1 : -1];
7610 char b[false == 0 ? 1 : -1];
7611 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7612 char d[(bool) 0.5 == true ? 1 : -1];
7613 /* See body of main program for 'e'. */
7614 char f[(_Bool) 0.0 == false ? 1 : -1];
7615 char g[true];
7616 char h[sizeof (_Bool)];
7617 char i[sizeof s.t];
7618 enum { j = false, k = true, l = false * true, m = true * 256 };
7619 /* The following fails for
7620 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7621 _Bool n[m];
7622 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7623 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7624 /* Catch a bug in an HP-UX C compiler. See
7625 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7626 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7628 _Bool q = true;
7629 _Bool *pq = &q;
7632 main ()
7635 bool e = &s;
7636 *pq |= q;
7637 *pq |= ! q;
7638 /* Refer to every declared value, to avoid compiler optimizations. */
7639 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7640 + !m + !n + !o + !p + !q + !pq);
7643 return 0;
7645 _ACEOF
7646 if ac_fn_c_try_compile "$LINENO"; then :
7647 ac_cv_header_stdbool_h=yes
7648 else
7649 ac_cv_header_stdbool_h=no
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7654 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7655 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7656 if test "x$ac_cv_type__Bool" = xyes; then :
7658 cat >>confdefs.h <<_ACEOF
7659 #define HAVE__BOOL 1
7660 _ACEOF
7666 if test $ac_cv_header_stdbool_h = yes; then
7668 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7673 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7674 if ${ac_cv_c_const+:} false; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7681 main ()
7684 #ifndef __cplusplus
7685 /* Ultrix mips cc rejects this sort of thing. */
7686 typedef int charset[2];
7687 const charset cs = { 0, 0 };
7688 /* SunOS 4.1.1 cc rejects this. */
7689 char const *const *pcpcc;
7690 char **ppc;
7691 /* NEC SVR4.0.2 mips cc rejects this. */
7692 struct point {int x, y;};
7693 static struct point const zero = {0,0};
7694 /* AIX XL C 1.02.0.0 rejects this.
7695 It does not let you subtract one const X* pointer from another in
7696 an arm of an if-expression whose if-part is not a constant
7697 expression */
7698 const char *g = "string";
7699 pcpcc = &g + (g ? g-g : 0);
7700 /* HPUX 7.0 cc rejects these. */
7701 ++pcpcc;
7702 ppc = (char**) pcpcc;
7703 pcpcc = (char const *const *) ppc;
7704 { /* SCO 3.2v4 cc rejects this sort of thing. */
7705 char tx;
7706 char *t = &tx;
7707 char const *s = 0 ? (char *) 0 : (char const *) 0;
7709 *t++ = 0;
7710 if (s) return 0;
7712 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7713 int x[] = {25, 17};
7714 const int *foo = &x[0];
7715 ++foo;
7717 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7718 typedef const int *iptr;
7719 iptr p = 0;
7720 ++p;
7722 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7723 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7724 struct s { int j; const int *ap[3]; } bx;
7725 struct s *b = &bx; b->j = 5;
7727 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7728 const int foo = 10;
7729 if (!foo) return 0;
7731 return !cs[0] && !zero.x;
7732 #endif
7735 return 0;
7737 _ACEOF
7738 if ac_fn_c_try_compile "$LINENO"; then :
7739 ac_cv_c_const=yes
7740 else
7741 ac_cv_c_const=no
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7746 $as_echo "$ac_cv_c_const" >&6; }
7747 if test $ac_cv_c_const = no; then
7749 $as_echo "#define const /**/" >>confdefs.h
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7754 $as_echo_n "checking for inline... " >&6; }
7755 if ${ac_cv_c_inline+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757 else
7758 ac_cv_c_inline=no
7759 for ac_kw in inline __inline__ __inline; do
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7762 #ifndef __cplusplus
7763 typedef int foo_t;
7764 static $ac_kw foo_t static_foo () {return 0; }
7765 $ac_kw foo_t foo () {return 0; }
7766 #endif
7768 _ACEOF
7769 if ac_fn_c_try_compile "$LINENO"; then :
7770 ac_cv_c_inline=$ac_kw
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 test "$ac_cv_c_inline" != no && break
7774 done
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7778 $as_echo "$ac_cv_c_inline" >&6; }
7780 case $ac_cv_c_inline in
7781 inline | yes) ;;
7783 case $ac_cv_c_inline in
7784 no) ac_val=;;
7785 *) ac_val=$ac_cv_c_inline;;
7786 esac
7787 cat >>confdefs.h <<_ACEOF
7788 #ifndef __cplusplus
7789 #define inline $ac_val
7790 #endif
7791 _ACEOF
7793 esac
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7796 $as_echo_n "checking for working volatile... " >&6; }
7797 if ${ac_cv_c_volatile+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7804 main ()
7807 volatile int x;
7808 int * volatile y = (int *) 0;
7809 return !x && !y;
7811 return 0;
7813 _ACEOF
7814 if ac_fn_c_try_compile "$LINENO"; then :
7815 ac_cv_c_volatile=yes
7816 else
7817 ac_cv_c_volatile=no
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7822 $as_echo "$ac_cv_c_volatile" >&6; }
7823 if test $ac_cv_c_volatile = no; then
7825 $as_echo "#define volatile /**/" >>confdefs.h
7830 ac_ext=cpp
7831 ac_cpp='$CXXCPP $CPPFLAGS'
7832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7838 # Check for zlib
7840 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 :
7843 # Check whether --with-zlib was given.
7844 if test "${with_zlib+set}" = set; then :
7845 withval=$with_zlib;
7849 case "${with_zlib:-yes}" in
7851 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
7853 yes | sys)
7856 zlib_prefix="$with_zlib"
7857 esac
7859 mule_backup_CPPFLAGS="$CPPFLAGS"
7860 mule_backup_LDFLAGS="$LDFLAGS"
7861 mule_backup_LIBS="$LIBS"
7862 if test -n "$zlib_prefix"; then :
7864 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
7865 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
7866 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
7867 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
7869 else
7871 ZLIB_CPPFLAGS=
7872 ZLIB_LDFLAGS=
7875 ZLIB_LIBS="-lz"
7876 LIBS="$ZLIB_LIBS $LIBS"
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
7879 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
7880 if test "$cross_compiling" = yes; then :
7882 result=no
7883 z_version=
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7888 #include <zlib.h>
7889 #include <stdio.h>
7892 main ()
7895 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
7896 zlibVersion();
7899 return 0;
7902 _ACEOF
7903 if ac_fn_cxx_try_link "$LINENO"; then :
7905 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
7906 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
7907 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
7908 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
7909 if test "$cross_zver_max" -gt "1"; then
7910 result=yes
7911 elif test "$cross_zver_max" -eq "1"; then
7913 if test "$cross_zver_mid" -gt "1"; then
7914 result=yes
7915 elif test "$cross_zver_mid" -eq "1"; then
7916 if test "$cross_zver_min" -ge "4"; then
7917 result=yes
7925 if test ${result:-no} = yes; then :
7926 z_version=" (version $ZLIB_VERSION)"
7930 rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7933 $as_echo "$result$z_version" >&6; }
7935 else
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7940 #include <zlib.h>
7941 #include <stdio.h>
7944 main ()
7946 const char *zver = zlibVersion();
7947 FILE *f=fopen("conftestval", "w");
7948 if (!f) return 1;
7949 fprintf(f, "%s",
7950 zver[0] > '1' ||
7951 (zver[0] == '1' &&
7952 (zver[2] > '1' ||
7953 (zver[2] == '1' &&
7954 zver[4] >= '4'))) ? "yes" : "no");
7955 fclose(f);
7956 f=fopen("conftestver", "w");
7957 if (f) {
7958 fprintf(f, "%s", ZLIB_VERSION);
7959 fclose(f);
7963 return 0;
7966 _ACEOF
7967 if ac_fn_cxx_try_run "$LINENO"; then :
7969 if test -f conftestval; then :
7970 result=`cat conftestval`
7971 else
7972 result=no
7974 if test ${result:-no} = yes; then :
7976 if test -f conftestver; then :
7978 ZLIB_VERSION=`cat conftestver`
7979 z_version=" (version $ZLIB_VERSION)"
7981 else
7982 z_version=
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
7987 $as_echo "$result$z_version" >&6; }
7989 else
7991 result=no
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7993 $as_echo "$result" >&6; }
7996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7997 conftest.$ac_objext conftest.beam conftest.$ac_ext
8001 CPPFLAGS="$mule_backup_CPPFLAGS"
8002 LDFLAGS="$mule_backup_LDFLAGS"
8003 LIBS="$mule_backup_LIBS"
8005 if test ${result:-no} = no; then :
8007 ZLIB_CPPFLAGS=
8008 ZLIB_LDFLAGS=
8009 ZLIB_LIBS=
8010 as_fn_error $? "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
8018 # Check for libpng
8019 if test ${enable_webserver:-no} = yes; then :
8022 # Check whether --with-libpng-prefix was given.
8023 if test "${with_libpng_prefix+set}" = set; then :
8024 withval=$with_libpng_prefix;
8028 # Check whether --with-libpng-config was given.
8029 if test "${with_libpng_config+set}" = set; then :
8030 withval=$with_libpng_config;
8034 LIBPNG_VERSION=
8036 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
8037 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
8038 LIBPNG_CONFIG_NAME=libpng-config
8040 if test -n "$with_libpng_config"; then :
8041 LIBPNG_CONFIG_NAME="$with_libpng_config"
8044 # deal with optional prefix
8045 if test -n "$with_libpng_prefix"; then :
8046 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
8049 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
8050 if test -x "$LIBPNG_CONFIG_NAME"; then :
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
8053 $as_echo_n "checking for libpng-config... " >&6; }
8054 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8056 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8058 else
8059 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
8060 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_path_LIBPNG_CONFIG_PATH+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 case $LIBPNG_CONFIG_PATH in
8067 [\\/]* | ?:[\\/]*)
8068 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
8073 for as_dir in $as_dummy
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8083 done
8084 done
8085 IFS=$as_save_IFS
8087 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
8089 esac
8091 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
8092 if test -n "$LIBPNG_CONFIG_PATH"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
8094 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8103 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
8106 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
8108 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
8110 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
8111 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8112 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8113 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8115 libpng_ver_ok=
8116 if test $libpng_config_major_version -gt 1; then
8117 libpng_ver_ok=yes
8118 elif test $libpng_config_major_version -eq 1; then
8120 if test $libpng_config_minor_version -gt 2; then
8121 libpng_ver_ok=yes
8122 elif test $libpng_config_minor_version -eq 2; then
8123 if test $libpng_config_micro_version -ge 0; then
8124 libpng_ver_ok=yes
8133 if test -z "$libpng_ver_ok"; then :
8135 if test -z "$LIBPNG_VERSION"; then :
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8138 else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
8141 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
8142 LIBPNG_VERSION=
8146 else
8148 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
8149 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
8150 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
8152 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
8155 $as_echo_n "checking if libpng is usable... " >&6; }
8157 SAVED_CFLAGS=$CFLAGS
8158 SAVED_LDFLAGS=$LDFLAGS
8159 SAVED_LIBS=$LIBS
8161 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
8162 LDFLAGS="$LDFLAGS $LIBPNG_LDFLAGS"
8163 LIBS="$LIBS $LIBPNG_LIBS"
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8169 #include <png.h>
8170 #include <stdio.h>
8173 main ()
8176 png_uint_32 libpng_vn = png_access_version_number();
8177 printf("\nlibpng version %i\n\n", libpng_vn);
8180 return 0;
8183 _ACEOF
8184 if ac_fn_cxx_try_link "$LINENO"; then :
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8187 $as_echo "yes" >&6; }
8189 else
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
8192 $as_echo "no (failed to compile and link test program)" >&6; }
8193 LIBPNG_LIBS=
8194 LIBPNG_LDFLAGS=
8195 LIBPNG_CFLAGS=
8196 LIBPNG_VERSION=
8199 rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8202 CFLAGS="$SAVED_CFLAGS"
8203 LDFLAGS="$SAVED_LDFLAGS"
8204 LIBS="$SAVED_LIBS"
8210 if test -n "$LIBPNG_VERSION"; then :
8211 AMULEWEB_DEFS="-DWITH_LIBPNG"
8212 else
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8215 libpng >= 1.2.0 not found.
8216 amuleweb will be compiled but file download progress bar images will
8217 NOT be generated." >&5
8218 $as_echo "$as_me: WARNING:
8219 libpng >= 1.2.0 not found.
8220 amuleweb will be compiled but file download progress bar images will
8221 NOT be generated." >&2;}
8222 _mule_warning_1=yes
8223 _mule_has_warnings=yes
8234 # Check for GeoIP (required for IP2Country capability)
8236 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
8238 # Check whether --enable-geoip was given.
8239 if test "${enable_geoip+set}" = set; then :
8240 enableval=$enable_geoip;
8245 if test ${enable_geoip:-no} = yes; then :
8248 # Check whether --with-geoip-headers was given.
8249 if test "${with_geoip_headers+set}" = set; then :
8250 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
8254 # Check whether --with-geoip-lib was given.
8255 if test "${with_geoip_lib+set}" = set; then :
8256 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
8260 mule_backup_CPPFLAGS="$CPPFLAGS"
8261 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
8262 mule_backup_LDFLAGS="$LDFLAGS"
8263 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
8265 ac_fn_cxx_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
8266 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
8268 if test x$SYS = xwin32; then :
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
8271 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
8272 # Actually, we might not need any if GeoIP is linked as a .dll
8273 # - but that's even harder to check for
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8278 #include <GeoIP.h>
8279 #if (defined _WINSOCK2API_ || defined _WINSOCK2_H)
8280 I do know it's not the best approach, but at least works with MinGW stock headers.
8281 (tested with w32api-3.12)
8282 #endif
8285 main ()
8289 return 0;
8292 _ACEOF
8293 if ac_fn_cxx_try_compile "$LINENO"; then :
8295 GEOIP_WINSOCK_LIB="-lwsock32"
8297 else
8299 GEOIP_WINSOCK_LIB="-lws2_32"
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
8304 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
8308 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
8309 if ${ac_cv_lib_GeoIP_GeoIP_open+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 ac_check_lib_save_LIBS=$LIBS
8313 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
8314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h. */
8317 /* Override any GCC internal prototype to avoid an error.
8318 Use char because int might match the return type of a GCC
8319 builtin and then its argument prototype would still apply. */
8320 #ifdef __cplusplus
8321 extern "C"
8322 #endif
8323 char GeoIP_open ();
8325 main ()
8327 return GeoIP_open ();
8329 return 0;
8331 _ACEOF
8332 if ac_fn_cxx_try_link "$LINENO"; then :
8333 ac_cv_lib_GeoIP_GeoIP_open=yes
8334 else
8335 ac_cv_lib_GeoIP_GeoIP_open=no
8337 rm -f core conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
8339 LIBS=$ac_check_lib_save_LIBS
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
8342 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
8343 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = xyes; then :
8346 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
8348 GEOIP_LIBS="-lGeoIP"
8349 if test x$SYS = xwin32; then :
8350 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
8352 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
8354 # Check whether --with-geoip-static was given.
8355 if test "${with_geoip_static+set}" = set; then :
8356 withval=$with_geoip_static;
8357 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
8359 mule_backup_LIBS="$LIBS"
8360 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8365 #include <GeoIP.h>
8368 main ()
8371 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
8374 return 0;
8377 _ACEOF
8378 if ac_fn_cxx_try_link "$LINENO"; then :
8380 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
8382 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8385 Cannot link GeoIP statically, because your linker ($LD) does not
8386 support it." >&5
8387 $as_echo "$as_me: WARNING:
8388 Cannot link GeoIP statically, because your linker ($LD) does not
8389 support it." >&2;}
8390 _mule_warning_2=yes
8391 _mule_has_warnings=yes
8395 rm -f core conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8397 LIBS="$mule_backup_LIBS"
8404 else
8406 enable_geoip=disabled
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8408 GeoIP support has been disabled because the GeoIP libraries were not
8409 found" >&5
8410 $as_echo "$as_me: WARNING:
8411 GeoIP support has been disabled because the GeoIP libraries were not
8412 found" >&2;}
8413 _mule_warning_3=yes
8414 _mule_has_warnings=yes
8420 else
8422 enable_geoip=disabled
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8424 GeoIP support has been disabled because the GeoIP header files were
8425 not found" >&5
8426 $as_echo "$as_me: WARNING:
8427 GeoIP support has been disabled because the GeoIP header files were
8428 not found" >&2;}
8429 _mule_warning_4=yes
8430 _mule_has_warnings=yes
8437 CPPFLAGS="$mule_backup_CPPFLAGS"
8438 LDFLAGS="$mule_backup_LDFLAGS"
8445 # Check for wx
8446 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 :
8449 # Check whether --with-wxdir was given.
8450 if test "${with_wxdir+set}" = set; then :
8451 withval=$with_wxdir; wx_config_name="$withval/wx-config"
8452 wx_config_args="--inplace"
8456 # Check whether --with-wx-config was given.
8457 if test "${with_wx_config+set}" = set; then :
8458 withval=$with_wx_config; wx_config_name="$withval"
8462 # Check whether --with-wx-prefix was given.
8463 if test "${with_wx_prefix+set}" = set; then :
8464 withval=$with_wx_prefix; wx_config_prefix="$withval"
8465 else
8466 wx_config_prefix=""
8470 # Check whether --with-wx-exec-prefix was given.
8471 if test "${with_wx_exec_prefix+set}" = set; then :
8472 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
8473 else
8474 wx_config_exec_prefix=""
8489 # Check whether --with-toolkit was given.
8490 if test "${with_toolkit+set}" = set; then :
8491 withval=$with_toolkit;
8492 else
8493 withval="auto"
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
8498 $as_echo_n "checking for the --with-toolkit option... " >&6; }
8499 if test "$withval" = "auto" ; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8501 $as_echo "will be automatically detected" >&6; }
8502 TOOLKIT=""
8503 else
8504 TOOLKIT="$withval"
8506 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a "$TOOLKIT" != "gtk3" -a \
8507 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
8508 "$TOOLKIT" != "osx_carbon" -a "$TOOLKIT" != "osx_cocoa" -a \
8509 "$TOOLKIT" != "dfb" -a "$TOOLKIT" != "x11" -a "$TOOLKIT" != "base"; then
8510 as_fn_error $? "
8511 Unrecognized option value (allowed values: auto, gtk1, gtk2, gtk3, msw, motif, osx_carbon, osx_cocoa, dfb, x11, base)
8512 " "$LINENO" 5
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
8516 $as_echo "$TOOLKIT" >&6; }
8523 # Check whether --with-wxshared was given.
8524 if test "${with_wxshared+set}" = set; then :
8525 withval=$with_wxshared;
8526 else
8527 withval="auto"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
8532 $as_echo_n "checking for the --with-wxshared option... " >&6; }
8533 if test "$withval" = "yes" ; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8535 $as_echo "yes" >&6; }
8536 WX_SHARED=1
8538 elif test "1" = "1" -a "$withval" = "no" ; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8541 WX_SHARED=0
8542 elif test "$withval" = "auto" ; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8544 $as_echo "will be automatically detected" >&6; }
8545 WX_SHARED=""
8546 else
8547 as_fn_error $? "
8548 Unrecognized option value (allowed values: yes, auto)
8549 " "$LINENO" 5
8556 # Check whether --with-wxdebug was given.
8557 if test "${with_wxdebug+set}" = set; then :
8558 withval=$with_wxdebug;
8559 else
8560 withval="auto"
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
8565 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
8566 if test "$withval" = "yes" ; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8568 $as_echo "yes" >&6; }
8569 WX_DEBUG=1
8571 elif test "1" = "1" -a "$withval" = "no" ; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8574 WX_DEBUG=0
8575 elif test "$withval" = "auto" ; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8577 $as_echo "will be automatically detected" >&6; }
8578 WX_DEBUG=""
8579 else
8580 as_fn_error $? "
8581 Unrecognized option value (allowed values: yes, auto)
8582 " "$LINENO" 5
8589 # Check whether --with-wxversion was given.
8590 if test "${with_wxversion+set}" = set; then :
8591 withval=$with_wxversion;
8592 else
8593 withval="auto"
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
8598 $as_echo_n "checking for the --with-wxversion option... " >&6; }
8599 if test "$withval" = "auto" ; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
8601 $as_echo "will be automatically detected" >&6; }
8602 WX_RELEASE=""
8603 else
8605 wx_requested_major_version=`echo $withval | \
8606 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
8607 wx_requested_minor_version=`echo $withval | \
8608 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
8610 if test "${#wx_requested_major_version}" != "1" -o \
8611 "${#wx_requested_minor_version}" != "1" ; then
8612 as_fn_error $? "
8613 Unrecognized option value (allowed values: auto, 2.6, 2.7, 2.8, 2.9, 3.0)
8614 " "$LINENO" 5
8617 WX_RELEASE="$wx_requested_major_version"".""$wx_requested_minor_version"
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_RELEASE" >&5
8619 $as_echo "$WX_RELEASE" >&6; }
8623 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8624 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
8625 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
8626 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
8627 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
8628 echo "[dbg] VERSION: $VERSION, WX_RELEASE: $WX_RELEASE"
8631 # Force using a static wxWidgets library if the executable is to be linked statically.
8632 if test ${enable_static:-no} = yes; then :
8633 WX_SHARED=0
8635 # Force using a unicode build of the library
8636 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 :
8637 WX_UNICODE=1
8639 DEBUG=$WX_DEBUG
8641 if test "$WX_SHARED" = "1" ; then
8642 WXCONFIG_FLAGS="--static=no "
8643 elif test "$WX_SHARED" = "0" ; then
8644 WXCONFIG_FLAGS="--static=yes "
8647 if test "$WX_DEBUG" = "1" ; then
8648 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
8649 elif test "$WX_DEBUG" = "0" ; then
8650 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
8653 if test "$WX_UNICODE" = "1" ; then
8654 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
8655 elif test "$WX_UNICODE" = "0" ; then
8656 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
8659 if test -n "$TOOLKIT" ; then
8660 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
8663 if test -n "$WX_RELEASE" ; then
8664 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_RELEASE "
8667 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
8669 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8670 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
8674 if test x${WX_CONFIG_NAME+set} != xset ; then
8675 WX_CONFIG_NAME=wx-config
8678 if test "x$wx_config_name" != x ; then
8679 WX_CONFIG_NAME="$wx_config_name"
8682 if test x$wx_config_exec_prefix != x ; then
8683 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
8684 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
8686 if test x$wx_config_prefix != x ; then
8687 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
8688 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
8690 if test "$cross_compiling" = "yes"; then
8691 wx_config_args="$wx_config_args --host=$host_alias"
8694 if test -x "$WX_CONFIG_NAME" ; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
8696 $as_echo_n "checking for wx-config... " >&6; }
8697 WX_CONFIG_PATH="$WX_CONFIG_NAME"
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8699 $as_echo "$WX_CONFIG_PATH" >&6; }
8700 else
8701 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
8702 set dummy $WX_CONFIG_NAME; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_path_WX_CONFIG_PATH+:} false; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 case $WX_CONFIG_PATH in
8709 [\\/]* | ?:[\\/]*)
8710 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
8713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 as_dummy=""$WX_LOOKUP_PATH:$PATH""
8715 for as_dir in $as_dummy
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8721 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8725 done
8726 done
8727 IFS=$as_save_IFS
8729 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
8731 esac
8733 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
8734 if test -n "$WX_CONFIG_PATH"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
8736 $as_echo "$WX_CONFIG_PATH" >&6; }
8737 else
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8745 if test "$WX_CONFIG_PATH" != "no" ; then
8746 WX_VERSION=""
8748 min_wx_version=2.8.12
8749 if test -z "$WXCONFIG_FLAGS" ; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
8751 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
8752 else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
8754 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
8757 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS"
8759 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
8760 wx_config_major_version=`echo $WX_VERSION | \
8761 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8762 wx_config_minor_version=`echo $WX_VERSION | \
8763 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8764 wx_config_micro_version=`echo $WX_VERSION | \
8765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8767 wx_requested_major_version=`echo $min_wx_version | \
8768 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8769 wx_requested_minor_version=`echo $min_wx_version | \
8770 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8771 wx_requested_micro_version=`echo $min_wx_version | \
8772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8775 wx_ver_ok=""
8776 if test "x$WX_VERSION" != x ; then
8777 if test $wx_config_major_version -gt $wx_requested_major_version; then
8778 wx_ver_ok=yes
8779 else
8780 if test $wx_config_major_version -eq $wx_requested_major_version; then
8781 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8782 wx_ver_ok=yes
8783 else
8784 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8785 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8786 wx_ver_ok=yes
8795 if test -n "$wx_ver_ok"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION)" >&5
8797 $as_echo "yes (version $WX_VERSION)" >&6; }
8798 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs `
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets static library" >&5
8801 $as_echo_n "checking for wxWidgets static library... " >&6; }
8802 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
8803 if test "x$WX_LIBS_STATIC" = "x"; then
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8808 $as_echo "yes" >&6; }
8811 wx_has_cppflags=""
8812 if test $wx_config_major_version -gt 2; then
8813 wx_has_cppflags=yes
8814 else
8815 if test $wx_config_major_version -eq 2; then
8816 if test $wx_config_minor_version -gt 2; then
8817 wx_has_cppflags=yes
8818 else
8819 if test $wx_config_minor_version -eq 2; then
8820 if test $wx_config_micro_version -ge 6; then
8821 wx_has_cppflags=yes
8828 wx_has_rescomp=""
8829 if test $wx_config_major_version -gt 2; then
8830 wx_has_rescomp=yes
8831 else
8832 if test $wx_config_major_version -eq 2; then
8833 if test $wx_config_minor_version -ge 7; then
8834 wx_has_rescomp=yes
8838 if test "x$wx_has_rescomp" = x ; then
8839 WX_RESCOMP=
8840 else
8841 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8844 if test "x$wx_has_cppflags" = x ; then
8845 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
8846 WX_CPPFLAGS=$WX_CFLAGS
8847 WX_CXXFLAGS=$WX_CFLAGS
8849 WX_CFLAGS_ONLY=$WX_CFLAGS
8850 WX_CXXFLAGS_ONLY=$WX_CFLAGS
8851 else
8852 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags `
8853 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags `
8854 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags `
8856 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8857 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8860 wxWin=1
8862 else
8864 if test "x$WX_VERSION" = x; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8867 else
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION is not new enough)" >&5
8869 $as_echo "no (version $WX_VERSION is not new enough)" >&6; }
8872 WX_CFLAGS=""
8873 WX_CPPFLAGS=""
8874 WX_CXXFLAGS=""
8875 WX_LIBS=""
8876 WX_LIBS_STATIC=""
8877 WX_RESCOMP=""
8879 if test ! -z "$WXCONFIG_FLAGS"; then
8881 wx_error_message="
8882 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8883 build with the following settings:
8884 $WXCONFIG_FLAGS
8885 but such build is not available.
8887 To see the wxWidgets builds available on this system, please use
8888 'wx-config --list' command. To use the default build, returned by
8889 'wx-config --selected-config', use the options with their 'auto'
8890 default values."
8894 wx_error_message="
8895 The requested wxWidgets build couldn't be found.
8896 $wx_error_message
8898 If you still get this error, then check that 'wx-config' is
8899 in path, the directory where wxWidgets libraries are installed
8900 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8901 or equivalent variable and wxWidgets version is 2.8.12 or above."
8903 as_fn_error $? "$wx_error_message" "$LINENO" 5
8906 else
8908 WX_CFLAGS=""
8909 WX_CPPFLAGS=""
8910 WX_CXXFLAGS=""
8911 WX_LIBS=""
8912 WX_LIBS_STATIC=""
8913 WX_RESCOMP=""
8929 WX_VERSION_MAJOR="$wx_config_major_version"
8930 WX_VERSION_MINOR="$wx_config_minor_version"
8931 WX_VERSION_MICRO="$wx_config_micro_version"
8936 if test "$wxWin" != 1; then :
8937 as_fn_error $? "
8938 wxWidgets must be installed on your system but wx-config
8939 script couldn't be found. Please check that wx-config is
8940 in path or specified by --with-wx-config=path flag, the
8941 directory where wxWidgets libraries are installed (returned
8942 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8943 equivalent variable and wxWidgets version is 2.8.12 or above.
8944 " "$LINENO" 5
8947 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8948 as_fn_error $? "
8949 This version of wxWidgets is known to not work with aMule.
8950 Please upgrade to a newer version.
8951 " "$LINENO" 5
8955 WX_RELEASE="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8956 if test $WX_RELEASE -lt 26 ; then
8958 as_fn_error $? "
8959 Cannot detect the wxWidgets configuration for the selected wxWidgets build
8960 since its version is $WX_VERSION < 2.6.0; please install a newer
8961 version of wxWidgets.
8962 " "$LINENO" 5
8965 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8967 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8968 echo "[dbg] Using wx-config --selected-config"
8969 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8972 if test "$WX_SHARED" = "1"; then
8973 STATIC=0
8974 elif test "$WX_SHARED" = "0"; then
8975 STATIC=1
8979 if test -z "$UNICODE" ; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8982 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8984 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8986 if test "$WX_UNICODE" != "0"; then
8987 WX_UNICODE=1
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8989 $as_echo "yes" >&6; }
8990 else
8991 WX_UNICODE=0
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8995 else
8997 WX_UNICODE=$UNICODE
9001 if test -z "$DEBUG" ; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
9004 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
9006 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
9008 if test "$WX_DEBUG" != "0"; then
9009 WX_DEBUG=1
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9011 $as_echo "yes" >&6; }
9012 else
9013 WX_DEBUG=0
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015 $as_echo "no" >&6; }
9017 else
9019 WX_DEBUG=$DEBUG
9023 if test -z "$STATIC" ; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
9026 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
9028 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
9030 if test "$WX_STATIC" != "0"; then
9031 WX_STATIC=1
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9033 $as_echo "yes" >&6; }
9034 else
9035 WX_STATIC=0
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9039 else
9041 WX_STATIC=$STATIC
9045 if test "$WX_STATIC" != "0"; then
9046 WX_SHARED=0
9047 else
9048 WX_SHARED=1
9055 if test -z "$TOOLKIT" ; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
9058 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
9060 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
9061 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
9062 WX_GTKPORT3=$(expr "$WX_SELECTEDCONFIG" : ".*gtk3.*")
9063 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
9064 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
9065 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
9066 WX_OSXCARBONPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_carbon.*")
9067 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
9068 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
9069 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
9071 WX_PORT="unknown"
9072 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
9073 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
9074 if test "$WX_GTKPORT3" != "0"; then WX_PORT="gtk3"; fi
9075 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
9076 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
9077 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
9078 if test "$WX_OSXCARBONPORT" != "0"; then WX_PORT="osx_carbon"; fi
9079 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
9080 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
9081 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
9083 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
9084 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
9087 if test "$WX_PORT" = "unknown" ; then
9088 as_fn_error $? "
9089 Cannot detect the currently installed wxWidgets port !
9090 Please check your 'wx-config --cxxflags'...
9091 " "$LINENO" 5
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
9095 $as_echo "$WX_PORT" >&6; }
9096 else
9097 WX_PORT=$TOOLKIT
9102 if test "$WX_DEBUG_CONFIGURE" = "1"; then
9103 echo "[dbg] Values of all WX_* options after final detection:"
9104 echo "[dbg] WX_DEBUG: $WX_DEBUG"
9105 echo "[dbg] WX_UNICODE: $WX_UNICODE"
9106 echo "[dbg] WX_SHARED: $WX_SHARED"
9107 echo "[dbg] WX_RELEASE: $WX_RELEASE"
9108 echo "[dbg] WX_PORT: $WX_PORT"
9111 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
9112 as_fn_error $? "
9113 Cannot build shared library against a static build of wxWidgets !
9114 This error happens because the wxWidgets build which was selected
9115 has been detected as static while you asked to build $PACKAGE_NAME
9116 as shared library and this is not possible.
9117 Use the '--disable-shared' option to build $PACKAGE_NAME
9118 as static library or '--with-wxshared' to use wxWidgets as shared library.
9119 " "$LINENO" 5
9122 if test -z "$UNICODE" ; then
9123 UNICODE=$WX_UNICODE
9125 if test -z "$SHARED" ; then
9126 SHARED=$WX_SHARED
9128 if test -z "$TOOLKIT" ; then
9129 TOOLKIT=$WX_PORT
9132 if test "$DEBUG" = "1"; then
9133 BUILD="debug"
9134 CXXFLAGS="$CXXFLAGS -g -O0"
9135 CFLAGS="$CFLAGS -g -O0"
9136 elif test "$DEBUG" = "0"; then
9137 BUILD="release"
9138 CXXFLAGS="$CXXFLAGS -O2"
9139 CFLAGS="$CFLAGS -O2"
9143 # We also need wxBase
9144 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
9145 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
9146 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
9148 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
9152 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
9153 if test "${WX_PORT}" = base; then :
9154 as_fn_error $? "
9155 The selected components need a wxWidgets library with GUI,
9156 but your installation is base-only. Please install a GUI
9157 enabled version of wxWidgets and then retry.
9158 " "$LINENO" 5
9164 if test ${SYS:-unknown} = win32; then :
9165 if test -n "$ac_tool_prefix"; then
9166 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9167 set dummy ${ac_tool_prefix}windres; ac_word=$2
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9169 $as_echo_n "checking for $ac_word... " >&6; }
9170 if ${ac_cv_prog_RC+:} false; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 if test -n "$RC"; then
9174 ac_cv_prog_RC="$RC" # Let the user override the test.
9175 else
9176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177 for as_dir in $PATH
9179 IFS=$as_save_IFS
9180 test -z "$as_dir" && as_dir=.
9181 for ac_exec_ext in '' $ac_executable_extensions; do
9182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9183 ac_cv_prog_RC="${ac_tool_prefix}windres"
9184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9185 break 2
9187 done
9188 done
9189 IFS=$as_save_IFS
9193 RC=$ac_cv_prog_RC
9194 if test -n "$RC"; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9196 $as_echo "$RC" >&6; }
9197 else
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9204 if test -z "$ac_cv_prog_RC"; then
9205 ac_ct_RC=$RC
9206 # Extract the first word of "windres", so it can be a program name with args.
9207 set dummy windres; ac_word=$2
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 $as_echo_n "checking for $ac_word... " >&6; }
9210 if ${ac_cv_prog_ac_ct_RC+:} false; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 if test -n "$ac_ct_RC"; then
9214 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
9215 else
9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9217 for as_dir in $PATH
9219 IFS=$as_save_IFS
9220 test -z "$as_dir" && as_dir=.
9221 for ac_exec_ext in '' $ac_executable_extensions; do
9222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9223 ac_cv_prog_ac_ct_RC="windres"
9224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9225 break 2
9227 done
9228 done
9229 IFS=$as_save_IFS
9233 ac_ct_RC=$ac_cv_prog_ac_ct_RC
9234 if test -n "$ac_ct_RC"; then
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
9236 $as_echo "$ac_ct_RC" >&6; }
9237 else
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9242 if test "x$ac_ct_RC" = x; then
9243 RC=":"
9244 else
9245 case $cross_compiling:$ac_tool_warned in
9246 yes:)
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9249 ac_tool_warned=yes ;;
9250 esac
9251 RC=$ac_ct_RC
9253 else
9254 RC="$ac_cv_prog_RC"
9260 # Check for libupnp
9261 # Check whether --enable-upnp was given.
9262 if test "${enable_upnp+set}" = set; then :
9263 enableval=$enable_upnp;
9267 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
9269 else
9270 enable_upnp=no
9272 if test ${enable_upnp:-yes} = yes; then :
9276 # Check whether --with-libupnp-prefix was given.
9277 if test "${with_libupnp_prefix+set}" = set; then :
9278 withval=$with_libupnp_prefix;
9279 if test -d "$withval/lib64/pkgconfig"; then :
9281 export PKG_CONFIG_PATH=$withval/lib64/pkgconfig
9283 else
9285 export PKG_CONFIG_PATH=$withval/lib/pkgconfig
9292 if test $cross_compiling = no; then :
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
9295 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
9296 if test -n "$PKG_CONFIG"; then :
9298 if $PKG_CONFIG libupnp --exists; then :
9300 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
9301 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
9303 result=yes
9304 resultstr=" (version $LIBUPNP_VERSION)"
9305 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
9306 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
9307 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
9308 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
9309 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
9311 else
9313 result=no
9314 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
9318 else
9320 result=no
9321 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
9325 else
9327 result=no
9328 resultstr=" (pkg-config not found)"
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9332 $as_echo "$result$resultstr" >&6; }
9333 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
9335 else
9337 result=no
9338 libupnp_error="cross compiling"
9342 if test ${result:-no} = yes; then :
9343 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
9344 else
9345 enable_upnp=disabled
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9347 UPnP code has been disabled because ${libupnp_error}." >&5
9348 $as_echo "$as_me: WARNING:
9349 UPnP code has been disabled because ${libupnp_error}." >&2;}
9350 _mule_warning_5=yes
9351 _mule_has_warnings=yes
9360 # Check for Crypto++ (requires C++)
9361 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
9364 # Check whether --with-crypto-prefix was given.
9365 if test "${with_crypto_prefix+set}" = set; then :
9366 withval=$with_crypto_prefix;
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
9371 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
9373 cryptopp_found=false
9375 if test -n "$with_crypto_prefix"; then :
9377 CRYPTOPP_PREFIX="$with_crypto_prefix"
9378 # Find the Cryptopp header in the user-provided location
9379 if test -f $CRYPTOPP_PREFIX/cryptlib.h; then
9381 cryptopp_found=true
9382 CRYPTOPP_LIB_NAME="cryptopp"
9383 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
9384 CRYPTOPP_CPPFLAGS=
9385 CRYPTOPP_LDFLAGS=
9386 CRYPTOPP_LIBS="${CRYPTOPP_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
9388 else
9390 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9391 if test -f $CRYPTOPP_PREFIX/include/$CRYPTOPP_LIB_NAME/cryptlib.h; then :
9393 cryptopp_found=true
9394 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9395 CRYPTOPP_CPPFLAGS="-I$CRYPTOPP_PREFIX/include"
9396 CRYPTOPP_LDFLAGS="-L$CRYPTOPP_PREFIX/lib"
9397 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9398 break
9401 done
9406 else
9408 # Check whether the compiler can find it
9409 for CRYPTOPP_LIB_NAME in "cryptopp" "crypto++"; do
9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9411 /* end confdefs.h. */
9413 #include <$CRYPTOPP_LIB_NAME/cryptlib.h>
9416 main ()
9420 return 0;
9423 _ACEOF
9424 if ac_fn_cxx_try_compile "$LINENO"; then :
9426 cryptopp_found=true
9427 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
9428 CRYPTOPP_CPPFLAGS=
9429 CRYPTOPP_LDFLAGS=
9430 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
9431 break
9434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9435 done
9439 if $cryptopp_found; then :
9441 # Find out the crypto++ version and check against the minimum required
9442 # Ask the compiler where are the crypto++ files
9443 mule_backup_CPPFLAGS="$CPPFLAGS"
9444 CPPFLAGS="$CPPFLAGS $CRYPTOPP_CPPFLAGS"
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9448 #include <$CRYPTOPP_INCLUDE_PREFIX/cryptlib.h>
9450 _ACEOF
9451 cryptopp_header_path=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -e '/^#.*cryptlib.h/{s/.*"\(.*\)".*/\1/;q;};d'`
9452 rm -f conftest*
9453 CPPFLAGS="$mule_backup_CPPFLAGS"
9454 # Set a prefix suitable for --with-crypto-prefix
9455 CRYPTOPP_PREFIX="${cryptopp_header_path%/*}"
9456 CRYPTOPP_PREFIX="${CRYPTOPP_PREFIX%/include/${CRYPTOPP_LIB_NAME}}"
9457 # Now check the version
9458 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
9459 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9460 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
9462 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
9464 result=yes
9465 resultstr=" (version $CRYPTOPP_VERSION_STRING)"
9467 cat >>confdefs.h <<_ACEOF
9468 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
9469 _ACEOF
9472 else
9474 result=no
9475 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
9476 CRYPTOPP_CPPFLAGS=
9477 CRYPTOPP_LDFLAGS=
9478 CRYPTOPP_LIBS=
9482 else
9483 result="no"; resultstr=
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
9487 $as_echo "$result$resultstr" >&6; }
9489 if test ${result:-no} = yes; then :
9491 # Check for CryptoPP >= 5.5
9492 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
9493 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
9496 else
9498 as_fn_error $? "
9499 Could not find crypto++ installation or sources.
9500 Please try again with --with-crypto-prefix=/my_crypto_prefix
9501 (replace /my_crypto_prefix with a valid path to your crypto++
9502 installation or source directory)." "$LINENO" 5
9511 # Check whether --enable-debug was given.
9512 if test "${enable_debug+set}" = set; then :
9513 enableval=$enable_debug;
9517 # Check whether --enable-profile was given.
9518 if test "${enable_profile+set}" = set; then :
9519 enableval=$enable_profile;
9523 # Check whether --enable-optimize was given.
9524 if test "${enable_optimize+set}" = set; then :
9525 enableval=$enable_optimize;
9530 if test ${enable_debug:-yes} = yes; then :
9532 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
9534 MULECFLAGS="$MULECFLAGS -g"
9535 MULECXXFLAGS="$MULECXXFLAGS -g"
9537 if test ${GCC:-no} = yes; then :
9539 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9540 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
9543 if test ${SYS:-unknown} = win32; then :
9544 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
9547 else
9549 if test ${GCC:-no} = yes; then :
9551 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
9552 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
9558 if test ${enable_profile:-no} = yes; then :
9561 MULECFLAGS="$MULECFLAGS -pg"
9562 MULECXXFLAGS="$MULECXXFLAGS -pg"
9564 MULELDFLAGS="$MULELDFLAGS -pg"
9568 if test ${enable_optimize:-no} = yes; then :
9570 MULECFLAGS="$MULECFLAGS -O2"
9571 MULECXXFLAGS="$MULECXXFLAGS -O2"
9575 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
9579 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 :
9584 if test ${GCC:-no} = yes; then :
9586 mule_backup_CXXFLAGS="$CXXFLAGS"
9587 CXXFLAGS="$CXXFLAGS $MULECPPFLAGS $MULECFLAGS $MULECXXFLAGS -Werror"
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX) uses strict aliasing" >&5
9590 $as_echo_n "checking whether the C++ compiler ($CXX) uses strict aliasing... " >&6; }
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9596 main ()
9599 int a;
9600 short *b = (short*)&a;
9601 short c = *b;
9603 return c;
9606 return 0;
9609 _ACEOF
9610 if ac_fn_cxx_try_compile "$LINENO"; then :
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9613 $as_echo "no" >&6; }
9615 else
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9618 $as_echo "yes" >&6; }
9619 $as_echo "#define GCC_USES_STRICT_ALIASING 1" >>confdefs.h
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625 CXXFLAGS="$mule_backup_CXXFLAGS"
9629 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
9631 mule_backup_CPPFLAGS="$CPPFLAGS"
9632 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
9635 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9640 #include <wx/wx.h>
9641 #include <wx/filefn.h>
9642 #ifndef wxHAS_LARGE_FILES
9643 #error No LargeFile support!
9644 #endif
9647 _ACEOF
9648 if ac_fn_cxx_try_cpp "$LINENO"; then :
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9651 $as_echo "yes" >&6; }
9653 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9657 as_fn_error $? "
9658 Support for large files in wxWidgets is required by aMule.
9659 To continue you must recompile wxWidgets with support for
9660 large files enabled." "$LINENO" 5
9663 rm -f conftest.err conftest.i conftest.$ac_ext
9665 CPPFLAGS="$mule_backup_CPPFLAGS"
9669 # Check if the compiler is broken, wrt. exceptions.
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
9672 $as_echo_n "checking for exception-handling... " >&6; }
9673 if test "$cross_compiling" = yes; then :
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
9676 $as_echo "undeterminable" >&6; }
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9678 Cross-compilation detected, so exception handling cannot be tested.
9679 Note that broken exception handling in your compiler may lead to
9680 unexpected crashes." >&5
9681 $as_echo "$as_me: WARNING:
9682 Cross-compilation detected, so exception handling cannot be tested.
9683 Note that broken exception handling in your compiler may lead to
9684 unexpected crashes." >&2;}
9685 _mule_warning_6=yes
9686 _mule_has_warnings=yes
9689 else
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9695 main ()
9698 try {
9699 throw 1;
9700 } catch (int) {
9701 return 0;
9703 return 1;
9706 return 0;
9709 _ACEOF
9710 if ac_fn_cxx_try_run "$LINENO"; then :
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9713 $as_echo "yes" >&6; }
9715 else
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9719 as_fn_error $? "Exception handling does not work. Broken compiler?" "$LINENO" 5
9722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9723 conftest.$ac_objext conftest.beam conftest.$ac_ext
9729 for ac_header in typeinfo
9730 do :
9731 ac_fn_cxx_check_header_mongrel "$LINENO" "typeinfo" "ac_cv_header_typeinfo" "$ac_includes_default"
9732 if test "x$ac_cv_header_typeinfo" = xyes; then :
9733 cat >>confdefs.h <<_ACEOF
9734 #define HAVE_TYPEINFO 1
9735 _ACEOF
9739 done
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
9742 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9747 #ifdef HAVE_TYPEINFO
9748 # include <typeinfo>
9749 #endif
9750 #include <cxxabi.h>
9753 main ()
9756 int status;
9757 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
9758 std::type_info *ti = abi::__cxa_current_exception_type();
9761 return 0;
9764 _ACEOF
9765 if ac_fn_cxx_try_link "$LINENO"; then :
9768 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9771 $as_echo "yes" >&6; }
9773 else
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9776 $as_echo "no" >&6; }
9779 rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9783 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 :
9786 # Check whether --with-boost was given.
9787 if test "${with_boost+set}" = set; then :
9788 withval=$with_boost;
9789 else
9790 with_boost=no
9794 if test ${with_boost:-no} != no; then :
9796 echo "$as_me: this is boost.m4 serial 25" >&5
9797 boost_save_IFS=$IFS
9798 boost_version_req=1.47
9799 IFS=.
9800 set x $boost_version_req 0 0 0
9801 IFS=$boost_save_IFS
9802 shift
9803 boost_version_req=`expr "$1" '*' 100000 + "$2" '*' 100 + "$3"`
9804 boost_version_req_string=$1.$2.$3
9805 # If BOOST_ROOT is set and the user has not provided a value to
9806 # --with-boost, then treat BOOST_ROOT as if it the user supplied it.
9807 if test x"$BOOST_ROOT" != x; then
9808 if test x"$with_boost" = x; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&5
9810 $as_echo "$as_me: Detected BOOST_ROOT; continuing with --with-boost=$BOOST_ROOT" >&6;}
9811 with_boost=$BOOST_ROOT
9812 else
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&5
9814 $as_echo "$as_me: Detected BOOST_ROOT=$BOOST_ROOT, but overridden by --with-boost=$with_boost" >&6;}
9817 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS '--with-boost=$with_boost'"
9818 boost_save_CPPFLAGS=$CPPFLAGS
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost headers version >= $boost_version_req_string" >&5
9820 $as_echo_n "checking for Boost headers version >= $boost_version_req_string... " >&6; }
9821 if ${boost_cv_inc_path+:} false; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 boost_cv_inc_path=no
9825 ac_ext=cpp
9826 ac_cpp='$CXXCPP $CPPFLAGS'
9827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 #include <boost/version.hpp>
9833 #if !defined BOOST_VERSION
9834 # error BOOST_VERSION is not defined
9835 #elif BOOST_VERSION < $boost_version_req
9836 # error Boost headers version < $boost_version_req
9837 #endif
9840 main ()
9844 return 0;
9846 _ACEOF
9847 # If the user provided a value to --with-boost, use it and only it.
9848 case $with_boost in #(
9849 ''|yes) set x '' /opt/local/include /usr/local/include /opt/include \
9850 /usr/include C:/Boost/include;; #(
9851 *) set x "$with_boost/include" "$with_boost";;
9852 esac
9853 shift
9854 for boost_dir
9856 # Without --layout=system, Boost (or at least some versions) installs
9857 # itself in <prefix>/include/boost-<version>. This inner loop helps to
9858 # find headers in such directories.
9860 # Any ${boost_dir}/boost-x_xx directories are searched in reverse version
9861 # order followed by ${boost_dir}. The final '.' is a sentinel for
9862 # searching $boost_dir" itself. Entries are whitespace separated.
9864 # I didn't indent this loop on purpose (to avoid over-indented code)
9865 boost_layout_system_search_list=`cd "$boost_dir" 2>/dev/null \
9866 && ls -1 | "${GREP}" '^boost-' | sort -rn -t- -k2 \
9867 && echo .`
9868 for boost_inc in $boost_layout_system_search_list
9870 if test x"$boost_inc" != x.; then
9871 boost_inc="$boost_dir/$boost_inc"
9872 else
9873 boost_inc="$boost_dir" # Uses sentinel in boost_layout_system_search_list
9875 if test x"$boost_inc" != x; then
9876 # We are going to check whether the version of Boost installed
9877 # in $boost_inc is usable by running a compilation that
9878 # #includes it. But if we pass a -I/some/path in which Boost
9879 # is not installed, the compiler will just skip this -I and
9880 # use other locations (either from CPPFLAGS, or from its list
9881 # of system include directories). As a result we would use
9882 # header installed on the machine instead of the /some/path
9883 # specified by the user. So in that precise case (trying
9884 # $boost_inc), make sure the version.hpp exists.
9886 # Use test -e as there can be symlinks.
9887 test -e "$boost_inc/boost/version.hpp" || continue
9888 CPPFLAGS="$CPPFLAGS -I$boost_inc"
9890 if ac_fn_cxx_try_compile "$LINENO"; then :
9891 boost_cv_inc_path=yes
9892 else
9893 boost_cv_version=no
9895 rm -f core conftest.err conftest.$ac_objext
9896 if test x"$boost_cv_inc_path" = xyes; then
9897 if test x"$boost_inc" != x; then
9898 boost_cv_inc_path=$boost_inc
9900 break 2
9902 done
9903 done
9904 ac_ext=cpp
9905 ac_cpp='$CXXCPP $CPPFLAGS'
9906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_inc_path" >&5
9912 $as_echo "$boost_cv_inc_path" >&6; }
9913 case $boost_cv_inc_path in #(
9915 boost_errmsg="cannot find Boost headers version >= $boost_version_req_string"
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: $boost_errmsg" >&5
9917 $as_echo "$as_me: $boost_errmsg" >&6;}
9918 with_boost=disabled
9919 ;;#(
9920 yes)
9921 BOOST_CPPFLAGS=
9922 ;;#(
9924 BOOST_CPPFLAGS="-I$boost_cv_inc_path"
9926 esac
9927 if test x"$boost_cv_inc_path" != xno; then
9929 $as_echo "#define HAVE_BOOST 1" >>confdefs.h
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost's header version" >&5
9932 $as_echo_n "checking for Boost's header version... " >&6; }
9933 if ${boost_cv_lib_version+:} false; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 ac_ext=cpp
9937 ac_cpp='$CXXCPP $CPPFLAGS'
9938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943 #include <boost/version.hpp>
9944 boost-lib-version = BOOST_LIB_VERSION
9945 _ACEOF
9946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9947 grep -v '#' |
9948 tr -d '\r' |
9949 tr -s '\n' ' ' |
9950 $SED -n -e "/^boost-lib-version = /{s///;s/[\" ]//g;p;q;}" >conftest.i 2>&1; then :
9951 boost_cv_lib_version=`cat conftest.i`
9953 rm -rf conftest*
9954 ac_ext=cpp
9955 ac_cpp='$CXXCPP $CPPFLAGS'
9956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_version" >&5
9962 $as_echo "$boost_cv_lib_version" >&6; }
9963 # e.g. "134" for 1_34_1 or "135" for 1_35
9964 boost_major_version=`echo "$boost_cv_lib_version" | sed 's/_//;s/_.*//'`
9965 case $boost_major_version in #(
9966 '' | *[!0-9]*)
9967 as_fn_error $? "invalid value: boost_major_version='$boost_major_version'" "$LINENO" 5
9969 esac
9971 CPPFLAGS=$boost_save_CPPFLAGS
9973 if test ${with_boost:-no} != disabled; then :
9975 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9976 for cc_temp in $compiler""; do
9977 case $cc_temp in
9978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9980 \-*) ;;
9981 *) break;;
9982 esac
9983 done
9984 cc_basename=`echo "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9985 # All known linkers require a `.a' archive for static linking (except MSVC,
9986 # which needs '.lib').
9987 libext=a
9988 case $cc_basename in
9989 cl*) libext=lib ;;
9990 esac
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the toolset name used by Boost for $CXX" >&5
9993 $as_echo_n "checking for the toolset name used by Boost for $CXX... " >&6; }
9994 if ${boost_cv_lib_tag+:} false; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 boost_cv_lib_tag=unknown
9998 if test x$boost_cv_inc_path != xno; then
9999 ac_ext=cpp
10000 ac_cpp='$CXXCPP $CPPFLAGS'
10001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10004 # The following tests are mostly inspired by boost/config/auto_link.hpp
10005 # The list is sorted to most recent/common to oldest compiler (in order
10006 # to increase the likelihood of finding the right compiler with the
10007 # least number of compilation attempt).
10008 # Beware that some tests are sensible to the order (for instance, we must
10009 # look for MinGW before looking for GCC3).
10010 # I used one compilation test per compiler with a #error to recognize
10011 # each compiler so that it works even when cross-compiling (let me know
10012 # if you know a better approach).
10013 # Known missing tags (known from Boost's tools/build/v2/tools/common.jam):
10014 # como, edg, kcc, bck, mp, sw, tru, xlc
10015 # I'm not sure about my test for `il' (be careful: Intel's ICC pre-defines
10016 # the same defines as GCC's).
10017 for i in \
10018 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10019 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10020 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw53" \
10021 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc53" \
10022 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10023 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10024 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw52" \
10025 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc52" \
10026 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10027 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10028 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw51" \
10029 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc51" \
10030 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10031 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10032 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw50" \
10033 "defined __GNUC__ && __GNUC__ == 5 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc50" \
10034 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC && \
10035 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10036 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw410" \
10037 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 10 && !defined __ICC @ gcc410" \
10038 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC && \
10039 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10040 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw49" \
10041 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 9 && !defined __ICC @ gcc49" \
10042 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC && \
10043 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10044 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw48" \
10045 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 8 && !defined __ICC @ gcc48" \
10046 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC && \
10047 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10048 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw47" \
10049 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 7 && !defined __ICC @ gcc47" \
10050 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC && \
10051 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10052 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw46" \
10053 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 6 && !defined __ICC @ gcc46" \
10054 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC && \
10055 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10056 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw45" \
10057 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 5 && !defined __ICC @ gcc45" \
10058 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC && \
10059 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10060 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw44" \
10061 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc44" \
10062 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC && \
10063 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10064 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw43" \
10065 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc43" \
10066 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC && \
10067 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10068 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw42" \
10069 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc42" \
10070 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC && \
10071 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10072 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw41" \
10073 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc41" \
10074 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC && \
10075 (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10076 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw40" \
10077 "defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc40" \
10078 "defined __GNUC__ && __GNUC__ == 3 && !defined __ICC \
10079 && (defined WIN32 || defined WINNT || defined _WIN32 || defined __WIN32 \
10080 || defined __WIN32__ || defined __WINNT || defined __WINNT__) @ mgw" \
10081 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 4 && !defined __ICC @ gcc34" \
10082 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 3 && !defined __ICC @ gcc33" \
10083 "defined _MSC_VER && _MSC_VER >= 1500 @ vc90" \
10084 "defined _MSC_VER && _MSC_VER == 1400 @ vc80" \
10085 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 2 && !defined __ICC @ gcc32" \
10086 "defined _MSC_VER && _MSC_VER == 1310 @ vc71" \
10087 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 1 && !defined __ICC @ gcc31" \
10088 "defined __GNUC__ && __GNUC__ == 3 && __GNUC_MINOR__ == 0 && !defined __ICC @ gcc30" \
10089 "defined __BORLANDC__ @ bcb" \
10090 "defined __ICC && (defined __unix || defined ) @ il" \
10091 "defined __ICL @ iw" \
10092 "defined _MSC_VER && _MSC_VER == 1300 @ vc7" \
10093 "defined __GNUC__ && __GNUC__ == 2 && __GNUC_MINOR__ == 95 && !defined __ICC @ gcc295" \
10094 "defined __MWERKS__ && __MWERKS__ <= 0x32FF @ cw9" \
10095 "defined _MSC_VER && _MSC_VER < 1300 && !defined UNDER_CE @ vc6" \
10096 "defined _MSC_VER && _MSC_VER < 1300 && defined UNDER_CE @ evc4" \
10097 "defined __MWERKS__ && __MWERKS__ <= 0x31FF @ cw8"
10099 boost_tag_test=`expr "X$i" : 'X\([^@]*\) @ '`
10100 boost_tag=`expr "X$i" : 'X[^@]* @ \(.*\)'`
10101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h. */
10104 #if $boost_tag_test
10105 /* OK */
10106 #else
10107 # error $boost_tag_test
10108 #endif
10111 main ()
10115 return 0;
10117 _ACEOF
10118 if ac_fn_cxx_try_compile "$LINENO"; then :
10119 boost_cv_lib_tag=$boost_tag; break
10121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10122 done
10123 ac_ext=cpp
10124 ac_cpp='$CXXCPP $CPPFLAGS'
10125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10128 case $boost_cv_lib_tag in #(
10129 # Some newer (>= 1.35?) versions of Boost seem to only use "gcc" as opposed
10130 # to "gcc41" for instance.
10131 *-gcc | *'-gcc ') :;; #( Don't re-add -gcc: it's already in there.
10132 gcc*)
10133 boost_tag_x=
10134 case $host_os in #(
10135 darwin*)
10136 if test $boost_major_version -ge 136; then
10137 # The `x' added in r46793 of Boost.
10138 boost_tag_x=x
10139 fi;;
10140 esac
10141 # We can specify multiple tags in this variable because it's used by
10142 # BOOST_FIND_LIB that does a `for tag in -$boost_cv_lib_tag' ...
10143 boost_cv_lib_tag="$boost_tag_x$boost_cv_lib_tag -${boost_tag_x}gcc"
10144 ;; #(
10145 unknown)
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not figure out which toolset name to use for $CXX" >&5
10147 $as_echo "$as_me: WARNING: could not figure out which toolset name to use for $CXX" >&2;}
10148 boost_cv_lib_tag=
10150 esac
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_tag" >&5
10154 $as_echo "$boost_cv_lib_tag" >&6; }
10155 # Check whether --enable-static-boost was given.
10156 if test "${enable_static_boost+set}" = set; then :
10157 enableval=$enable_static_boost; enable_static_boost=yes
10158 else
10159 enable_static_boost=no
10162 # Check whether we do better use `mt' even though we weren't ask to.
10163 ac_ext=cpp
10164 ac_cpp='$CXXCPP $CPPFLAGS'
10165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10171 #if defined _REENTRANT || defined _MT || defined __MT__
10172 /* use -mt */
10173 #else
10174 # error MT not needed
10175 #endif
10178 main ()
10182 return 0;
10184 _ACEOF
10185 if ac_fn_cxx_try_compile "$LINENO"; then :
10186 boost_guess_use_mt=:
10187 else
10188 boost_guess_use_mt=false
10190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10191 ac_ext=cpp
10192 ac_cpp='$CXXCPP $CPPFLAGS'
10193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boost sources" >&5
10198 $as_echo_n "checking for Boost sources... " >&6; }
10199 mule_backup_CPPFLAGS="$CPPFLAGS"
10200 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10204 #include <boost/../libs/system/src/error_code.cpp>
10206 main ()
10210 return 0;
10213 _ACEOF
10214 if ac_fn_cxx_try_compile "$LINENO"; then :
10217 $as_echo "#define HAVE_BOOST_SOURCES 1" >>confdefs.h
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10220 $as_echo "yes" >&6; }
10222 else
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10226 if test x"$boost_cv_inc_path" = xno; then
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for the Boost system library" >&5
10228 $as_echo "$as_me: Boost not available, not searching for the Boost system library" >&6;}
10229 else
10230 ac_ext=cpp
10231 ac_cpp='$CXXCPP $CPPFLAGS'
10232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10235 if test x"$boost_cv_inc_path" = xno; then
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: Boost not available, not searching for boost/system/error_code.hpp" >&5
10237 $as_echo "$as_me: Boost not available, not searching for boost/system/error_code.hpp" >&6;}
10238 else
10239 ac_ext=cpp
10240 ac_cpp='$CXXCPP $CPPFLAGS'
10241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10244 boost_save_CPPFLAGS=$CPPFLAGS
10245 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10246 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/system/error_code.hpp" "ac_cv_header_boost_system_error_code_hpp" "$ac_includes_default"
10247 if test "x$ac_cv_header_boost_system_error_code_hpp" = xyes; then :
10249 $as_echo "#define HAVE_BOOST_SYSTEM_ERROR_CODE_HPP 1" >>confdefs.h
10251 else
10252 as_fn_error $? "cannot find boost/system/error_code.hpp" "$LINENO" 5
10256 CPPFLAGS=$boost_save_CPPFLAGS
10257 ac_ext=cpp
10258 ac_cpp='$CXXCPP $CPPFLAGS'
10259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10264 boost_save_CPPFLAGS=$CPPFLAGS
10265 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Boost system library" >&5
10267 $as_echo_n "checking for the Boost system library... " >&6; }
10268 if ${boost_cv_lib_system+:} false; then :
10269 $as_echo_n "(cached) " >&6
10270 else
10271 boost_cv_lib_system=no
10272 case "mt" in #(
10273 (mt | mt-) boost_mt=-mt; boost_rtopt=;; #(
10274 (mt* | mt-*) boost_mt=-mt; boost_rtopt=`expr "Xmt" : 'Xmt-*\(.*\)'`;; #(
10275 (*) boost_mt=; boost_rtopt=mt;;
10276 esac
10277 if test $enable_static_boost = yes; then
10278 boost_rtopt="s$boost_rtopt"
10280 # Find the proper debug variant depending on what we've been asked to find.
10281 case $boost_rtopt in #(
10282 (*d*) boost_rt_d=$boost_rtopt;; #(
10283 (*[sgpn]*) # Insert the `d' at the right place (in between `sg' and `pn')
10284 boost_rt_d=`echo "$boost_rtopt" | sed 's/\(s*g*\)\(p*n*\)/\1\2/'`;; #(
10285 (*) boost_rt_d='-d';;
10286 esac
10287 # If the PREFERRED-RT-OPT are not empty, prepend a `-'.
10288 test -n "$boost_rtopt" && boost_rtopt="-$boost_rtopt"
10289 $boost_guess_use_mt && boost_mt=-mt
10290 # Look for the abs path the static archive.
10291 # $libext is computed by Libtool but let's make sure it's non empty.
10292 test -z "$libext" &&
10293 as_fn_error $? "the libext variable is empty, did you invoke Libtool?" "$LINENO" 5
10294 boost_save_ac_objext=$ac_objext
10295 # Generate the test file.
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 #include <boost/system/error_code.hpp>
10301 main ()
10303 boost::system::error_code e; e.clear();
10305 return 0;
10307 _ACEOF
10308 if ac_fn_cxx_try_compile "$LINENO"; then :
10309 ac_objext=do_not_rm_me_plz
10310 else
10311 as_fn_error $? "cannot compile a test that uses Boost system" "$LINENO" 5
10313 rm -f core conftest.err conftest.$ac_objext
10314 ac_objext=$boost_save_ac_objext
10315 boost_failed_libs=
10316 # Don't bother to ident the following nested for loops, only the 2
10317 # innermost ones matter.
10318 for boost_lib_ in system; do
10319 for boost_tag_ in -$boost_cv_lib_tag ''; do
10320 for boost_ver_ in -$boost_cv_lib_version ''; do
10321 for boost_mt_ in $boost_mt -mt ''; do
10322 for boost_rtopt_ in $boost_rtopt '' -d; do
10323 for boost_lib in \
10324 boost_$boost_lib_$boost_tag_$boost_mt_$boost_rtopt_$boost_ver_ \
10325 boost_$boost_lib_$boost_tag_$boost_rtopt_$boost_ver_ \
10326 boost_$boost_lib_$boost_tag_$boost_mt_$boost_ver_ \
10327 boost_$boost_lib_$boost_tag_$boost_ver_
10329 # Avoid testing twice the same lib
10330 case $boost_failed_libs in #(
10331 (*@$boost_lib@*) continue;;
10332 esac
10333 # If with_boost is empty, we'll search in /lib first, which is not quite
10334 # right so instead we'll try to a location based on where the headers are.
10335 boost_tmp_lib=$with_boost
10336 test x"$with_boost" = x && boost_tmp_lib=${boost_cv_inc_path%/include}
10337 for boost_ldpath in "$boost_tmp_lib/lib" '' \
10338 /opt/local/lib* /usr/local/lib* /opt/lib* /usr/lib* \
10339 "$with_boost" C:/Boost/lib /lib*
10341 # Don't waste time with directories that don't exist.
10342 if test x"$boost_ldpath" != x && test ! -e "$boost_ldpath"; then
10343 continue
10345 boost_save_LDFLAGS=$LDFLAGS
10346 # Are we looking for a static library?
10347 case $boost_ldpath:$boost_rtopt_ in #(
10348 (*?*:*s*) # Yes (Non empty boost_ldpath + s in rt opt)
10349 boost_cv_lib_system_LIBS="$boost_ldpath/lib$boost_lib.$libext"
10350 test -e "$boost_cv_lib_system_LIBS" || continue;; #(
10351 (*) # No: use -lboost_foo to find the shared library.
10352 boost_cv_lib_system_LIBS="-l$boost_lib";;
10353 esac
10354 boost_save_LIBS=$LIBS
10355 LIBS="$boost_cv_lib_system_LIBS $LIBS"
10356 test x"$boost_ldpath" != x && LDFLAGS="$LDFLAGS -L$boost_ldpath"
10357 rm -f conftest$ac_exeext
10358 boost_save_ac_ext=$ac_ext
10359 boost_use_source=:
10360 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10361 # tries to link the existing object file instead of compiling from source.
10362 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10363 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10364 if { { ac_try="$ac_link"
10365 case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368 esac
10369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10370 $as_echo "$ac_try_echo"; } >&5
10371 (eval "$ac_link") 2>conftest.err
10372 ac_status=$?
10373 if test -s conftest.err; then
10374 grep -v '^ *+' conftest.err >conftest.er1
10375 cat conftest.er1 >&5
10376 mv -f conftest.er1 conftest.err
10378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10379 test $ac_status = 0; } && {
10380 test -z "$ac_cxx_werror_flag" ||
10381 test ! -s conftest.err
10382 } && test -s conftest$ac_exeext && {
10383 test "$cross_compiling" = yes ||
10384 $as_executable_p conftest$ac_exeext
10385 }; then :
10386 boost_cv_lib_system=yes
10387 else
10388 if $boost_use_source; then
10389 $as_echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10393 boost_cv_lib_system=no
10395 ac_objext=$boost_save_ac_objext
10396 ac_ext=$boost_save_ac_ext
10397 rm -f core conftest.err conftest_ipa8_conftest.oo \
10398 conftest$ac_exeext
10399 ac_objext=$boost_save_ac_objext
10400 LDFLAGS=$boost_save_LDFLAGS
10401 LIBS=$boost_save_LIBS
10402 if test x"$boost_cv_lib_system" = xyes; then
10403 # Check or used cached result of whether or not using -R or
10404 # -rpath makes sense. Some implementations of ld, such as for
10405 # Mac OSX, require -rpath but -R is the flag known to work on
10406 # other systems. https://github.com/tsuna/boost.m4/issues/19
10407 if ${boost_cv_rpath_link_ldflag+:} false; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 case $boost_ldpath in
10411 '') # Nothing to do.
10412 boost_cv_rpath_link_ldflag=
10413 boost_rpath_link_ldflag_found=yes;;
10415 for boost_cv_rpath_link_ldflag in -Wl,-R, -Wl,-rpath,; do
10416 LDFLAGS="$boost_save_LDFLAGS -L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10417 LIBS="$boost_save_LIBS $boost_cv_lib_system_LIBS"
10418 rm -f conftest$ac_exeext
10419 boost_save_ac_ext=$ac_ext
10420 boost_use_source=:
10421 # If we already have a .o, re-use it. We change $ac_ext so that $ac_link
10422 # tries to link the existing object file instead of compiling from source.
10423 test -f conftest.$ac_objext && ac_ext=$ac_objext && boost_use_source=false &&
10424 $as_echo "$as_me:${as_lineno-$LINENO}: re-using the existing conftest.$ac_objext" >&5
10425 if { { ac_try="$ac_link"
10426 case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429 esac
10430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10431 $as_echo "$ac_try_echo"; } >&5
10432 (eval "$ac_link") 2>conftest.err
10433 ac_status=$?
10434 if test -s conftest.err; then
10435 grep -v '^ *+' conftest.err >conftest.er1
10436 cat conftest.er1 >&5
10437 mv -f conftest.er1 conftest.err
10439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10440 test $ac_status = 0; } && {
10441 test -z "$ac_cxx_werror_flag" ||
10442 test ! -s conftest.err
10443 } && test -s conftest$ac_exeext && {
10444 test "$cross_compiling" = yes ||
10445 $as_executable_p conftest$ac_exeext
10446 }; then :
10447 boost_rpath_link_ldflag_found=yes
10448 break
10449 else
10450 if $boost_use_source; then
10451 $as_echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10455 boost_rpath_link_ldflag_found=no
10457 ac_objext=$boost_save_ac_objext
10458 ac_ext=$boost_save_ac_ext
10459 rm -f core conftest.err conftest_ipa8_conftest.oo \
10460 conftest$ac_exeext
10461 done
10463 esac
10464 if test "x$boost_rpath_link_ldflag_found" != "xyes"; then :
10465 as_fn_error $? "Unable to determine whether to use -R or -rpath" "$LINENO" 5
10467 LDFLAGS=$boost_save_LDFLAGS
10468 LIBS=$boost_save_LIBS
10472 test x"$boost_ldpath" != x &&
10473 boost_cv_lib_system_LDFLAGS="-L$boost_ldpath $boost_cv_rpath_link_ldflag$boost_ldpath"
10474 boost_cv_lib_system_LDPATH="$boost_ldpath"
10475 break 7
10476 else
10477 boost_failed_libs="$boost_failed_libs@$boost_lib@"
10479 done
10480 done
10481 done
10482 done
10483 done
10484 done
10485 done # boost_lib_
10486 rm -f conftest.$ac_objext
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boost_cv_lib_system" >&5
10490 $as_echo "$boost_cv_lib_system" >&6; }
10491 case $boost_cv_lib_system in #(
10492 (no) $as_echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 as_fn_error $? "cannot find the flags to link with Boost system" "$LINENO" 5
10497 esac
10498 BOOST_SYSTEM_LDFLAGS=$boost_cv_lib_system_LDFLAGS
10499 BOOST_SYSTEM_LDPATH=$boost_cv_lib_system_LDPATH
10500 BOOST_LDPATH=$boost_cv_lib_system_LDPATH
10501 BOOST_SYSTEM_LIBS=$boost_cv_lib_system_LIBS
10502 CPPFLAGS=$boost_save_CPPFLAGS
10503 ac_ext=cpp
10504 ac_cpp='$CXXCPP $CPPFLAGS'
10505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10512 if test ${boost_cv_lib_system:-no} != yes; then :
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10515 Boost support has been disabled because Boost.System not found" >&5
10516 $as_echo "$as_me: WARNING:
10517 Boost support has been disabled because Boost.System not found" >&2;}
10518 _mule_warning_7=yes
10519 _mule_has_warnings=yes
10521 with_boost=disabled
10526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10527 CPPFLAGS="$mule_backup_CPPFLAGS"
10528 if test x"$boost_cv_inc_path" = xno; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10531 Boost support has been disabled because Boost.Asio not found" >&5
10532 $as_echo "$as_me: WARNING:
10533 Boost support has been disabled because Boost.Asio not found" >&2;}
10534 _mule_warning_8=yes
10535 _mule_has_warnings=yes
10537 with_boost=disabled
10539 else
10540 ac_ext=cpp
10541 ac_cpp='$CXXCPP $CPPFLAGS'
10542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10545 boost_save_CPPFLAGS=$CPPFLAGS
10546 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
10547 ac_fn_cxx_check_header_mongrel "$LINENO" "boost/asio.hpp" "ac_cv_header_boost_asio_hpp" "$ac_includes_default"
10548 if test "x$ac_cv_header_boost_asio_hpp" = xyes; then :
10550 $as_echo "#define ASIO_SOCKETS 1" >>confdefs.h
10552 else
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10555 Boost support has been disabled because Boost.Asio not found" >&5
10556 $as_echo "$as_me: WARNING:
10557 Boost support has been disabled because Boost.Asio not found" >&2;}
10558 _mule_warning_9=yes
10559 _mule_has_warnings=yes
10561 with_boost=disabled
10566 CPPFLAGS=$boost_save_CPPFLAGS
10567 ac_ext=cpp
10568 ac_cpp='$CXXCPP $CPPFLAGS'
10569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10575 else
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10577 Boost support has been disabled because of insufficient Boost version." >&5
10578 $as_echo "$as_me: WARNING:
10579 Boost support has been disabled because of insufficient Boost version." >&2;}
10580 _mule_warning_10=yes
10581 _mule_has_warnings=yes
10591 # Ok, we have all needed libs, now checking for other stuff
10594 # Checks for header files.
10595 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10596 if test "x$ac_cv_type_size_t" = xyes; then :
10598 else
10600 cat >>confdefs.h <<_ACEOF
10601 #define size_t unsigned int
10602 _ACEOF
10606 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10607 # for constant arguments. Useless!
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10609 $as_echo_n "checking for working alloca.h... " >&6; }
10610 if ${ac_cv_working_alloca_h+:} false; then :
10611 $as_echo_n "(cached) " >&6
10612 else
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 #include <alloca.h>
10617 main ()
10619 char *p = (char *) alloca (2 * sizeof (int));
10620 if (p) return 0;
10622 return 0;
10624 _ACEOF
10625 if ac_fn_cxx_try_link "$LINENO"; then :
10626 ac_cv_working_alloca_h=yes
10627 else
10628 ac_cv_working_alloca_h=no
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10634 $as_echo "$ac_cv_working_alloca_h" >&6; }
10635 if test $ac_cv_working_alloca_h = yes; then
10637 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10642 $as_echo_n "checking for alloca... " >&6; }
10643 if ${ac_cv_func_alloca_works+:} false; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 #ifdef __GNUC__
10649 # define alloca __builtin_alloca
10650 #else
10651 # ifdef _MSC_VER
10652 # include <malloc.h>
10653 # define alloca _alloca
10654 # else
10655 # ifdef HAVE_ALLOCA_H
10656 # include <alloca.h>
10657 # else
10658 # ifdef _AIX
10659 #pragma alloca
10660 # else
10661 # ifndef alloca /* predefined by HP cc +Olibcalls */
10662 void *alloca (size_t);
10663 # endif
10664 # endif
10665 # endif
10666 # endif
10667 #endif
10670 main ()
10672 char *p = (char *) alloca (1);
10673 if (p) return 0;
10675 return 0;
10677 _ACEOF
10678 if ac_fn_cxx_try_link "$LINENO"; then :
10679 ac_cv_func_alloca_works=yes
10680 else
10681 ac_cv_func_alloca_works=no
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10687 $as_echo "$ac_cv_func_alloca_works" >&6; }
10689 if test $ac_cv_func_alloca_works = yes; then
10691 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10693 else
10694 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10695 # that cause trouble. Some versions do not even contain alloca or
10696 # contain a buggy version. If you still want to use their alloca,
10697 # use ar to extract alloca.o from them instead of compiling alloca.c.
10699 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10701 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10705 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10706 if ${ac_cv_os_cray+:} false; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10711 #if defined CRAY && ! defined CRAY2
10712 webecray
10713 #else
10714 wenotbecray
10715 #endif
10717 _ACEOF
10718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10719 $EGREP "webecray" >/dev/null 2>&1; then :
10720 ac_cv_os_cray=yes
10721 else
10722 ac_cv_os_cray=no
10724 rm -f conftest*
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10728 $as_echo "$ac_cv_os_cray" >&6; }
10729 if test $ac_cv_os_cray = yes; then
10730 for ac_func in _getb67 GETB67 getb67; do
10731 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10732 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10733 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10735 cat >>confdefs.h <<_ACEOF
10736 #define CRAY_STACKSEG_END $ac_func
10737 _ACEOF
10739 break
10742 done
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10746 $as_echo_n "checking stack direction for C alloca... " >&6; }
10747 if ${ac_cv_c_stack_direction+:} false; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 if test "$cross_compiling" = yes; then :
10751 ac_cv_c_stack_direction=0
10752 else
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10755 $ac_includes_default
10757 find_stack_direction (int *addr, int depth)
10759 int dir, dummy = 0;
10760 if (! addr)
10761 addr = &dummy;
10762 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
10763 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
10764 return dir + dummy;
10768 main (int argc, char **argv)
10770 return find_stack_direction (0, argc + !argv + 20) < 0;
10772 _ACEOF
10773 if ac_fn_cxx_try_run "$LINENO"; then :
10774 ac_cv_c_stack_direction=1
10775 else
10776 ac_cv_c_stack_direction=-1
10778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10779 conftest.$ac_objext conftest.beam conftest.$ac_ext
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10784 $as_echo "$ac_cv_c_stack_direction" >&6; }
10785 cat >>confdefs.h <<_ACEOF
10786 #define STACK_DIRECTION $ac_cv_c_stack_direction
10787 _ACEOF
10792 ac_header_dirent=no
10793 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10794 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10796 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10797 if eval \${$as_ac_Header+:} false; then :
10798 $as_echo_n "(cached) " >&6
10799 else
10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h. */
10802 #include <sys/types.h>
10803 #include <$ac_hdr>
10806 main ()
10808 if ((DIR *) 0)
10809 return 0;
10811 return 0;
10813 _ACEOF
10814 if ac_fn_cxx_try_compile "$LINENO"; then :
10815 eval "$as_ac_Header=yes"
10816 else
10817 eval "$as_ac_Header=no"
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10821 eval ac_res=\$$as_ac_Header
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10823 $as_echo "$ac_res" >&6; }
10824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10825 cat >>confdefs.h <<_ACEOF
10826 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10827 _ACEOF
10829 ac_header_dirent=$ac_hdr; break
10832 done
10833 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10834 if test $ac_header_dirent = dirent.h; then
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10836 $as_echo_n "checking for library containing opendir... " >&6; }
10837 if ${ac_cv_search_opendir+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 ac_func_search_save_LIBS=$LIBS
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10844 /* Override any GCC internal prototype to avoid an error.
10845 Use char because int might match the return type of a GCC
10846 builtin and then its argument prototype would still apply. */
10847 #ifdef __cplusplus
10848 extern "C"
10849 #endif
10850 char opendir ();
10852 main ()
10854 return opendir ();
10856 return 0;
10858 _ACEOF
10859 for ac_lib in '' dir; do
10860 if test -z "$ac_lib"; then
10861 ac_res="none required"
10862 else
10863 ac_res=-l$ac_lib
10864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10866 if ac_fn_cxx_try_link "$LINENO"; then :
10867 ac_cv_search_opendir=$ac_res
10869 rm -f core conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext
10871 if ${ac_cv_search_opendir+:} false; then :
10872 break
10874 done
10875 if ${ac_cv_search_opendir+:} false; then :
10877 else
10878 ac_cv_search_opendir=no
10880 rm conftest.$ac_ext
10881 LIBS=$ac_func_search_save_LIBS
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10884 $as_echo "$ac_cv_search_opendir" >&6; }
10885 ac_res=$ac_cv_search_opendir
10886 if test "$ac_res" != no; then :
10887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10891 else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10893 $as_echo_n "checking for library containing opendir... " >&6; }
10894 if ${ac_cv_search_opendir+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 ac_func_search_save_LIBS=$LIBS
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10901 /* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 char opendir ();
10909 main ()
10911 return opendir ();
10913 return 0;
10915 _ACEOF
10916 for ac_lib in '' x; do
10917 if test -z "$ac_lib"; then
10918 ac_res="none required"
10919 else
10920 ac_res=-l$ac_lib
10921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10923 if ac_fn_cxx_try_link "$LINENO"; then :
10924 ac_cv_search_opendir=$ac_res
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext
10928 if ${ac_cv_search_opendir+:} false; then :
10929 break
10931 done
10932 if ${ac_cv_search_opendir+:} false; then :
10934 else
10935 ac_cv_search_opendir=no
10937 rm conftest.$ac_ext
10938 LIBS=$ac_func_search_save_LIBS
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10941 $as_echo "$ac_cv_search_opendir" >&6; }
10942 ac_res=$ac_cv_search_opendir
10943 if test "$ac_res" != no; then :
10944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10951 $as_echo_n "checking for ANSI C header files... " >&6; }
10952 if ${ac_cv_header_stdc+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957 #include <stdlib.h>
10958 #include <stdarg.h>
10959 #include <string.h>
10960 #include <float.h>
10963 main ()
10967 return 0;
10969 _ACEOF
10970 if ac_fn_cxx_try_compile "$LINENO"; then :
10971 ac_cv_header_stdc=yes
10972 else
10973 ac_cv_header_stdc=no
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 if test $ac_cv_header_stdc = yes; then
10978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h. */
10981 #include <string.h>
10983 _ACEOF
10984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10985 $EGREP "memchr" >/dev/null 2>&1; then :
10987 else
10988 ac_cv_header_stdc=no
10990 rm -f conftest*
10994 if test $ac_cv_header_stdc = yes; then
10995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998 #include <stdlib.h>
11000 _ACEOF
11001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11002 $EGREP "free" >/dev/null 2>&1; then :
11004 else
11005 ac_cv_header_stdc=no
11007 rm -f conftest*
11011 if test $ac_cv_header_stdc = yes; then
11012 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11013 if test "$cross_compiling" = yes; then :
11015 else
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11018 #include <ctype.h>
11019 #include <stdlib.h>
11020 #if ((' ' & 0x0FF) == 0x020)
11021 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11022 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11023 #else
11024 # define ISLOWER(c) \
11025 (('a' <= (c) && (c) <= 'i') \
11026 || ('j' <= (c) && (c) <= 'r') \
11027 || ('s' <= (c) && (c) <= 'z'))
11028 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11029 #endif
11031 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11033 main ()
11035 int i;
11036 for (i = 0; i < 256; i++)
11037 if (XOR (islower (i), ISLOWER (i))
11038 || toupper (i) != TOUPPER (i))
11039 return 2;
11040 return 0;
11042 _ACEOF
11043 if ac_fn_cxx_try_run "$LINENO"; then :
11045 else
11046 ac_cv_header_stdc=no
11048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11049 conftest.$ac_objext conftest.beam conftest.$ac_ext
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11055 $as_echo "$ac_cv_header_stdc" >&6; }
11056 if test $ac_cv_header_stdc = yes; then
11058 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11062 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
11063 do :
11064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11065 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11067 cat >>confdefs.h <<_ACEOF
11068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11069 _ACEOF
11073 done
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11076 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11077 if ${ac_cv_header_sys_wait_h+:} false; then :
11078 $as_echo_n "(cached) " >&6
11079 else
11080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11082 #include <sys/types.h>
11083 #include <sys/wait.h>
11084 #ifndef WEXITSTATUS
11085 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11086 #endif
11087 #ifndef WIFEXITED
11088 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11089 #endif
11092 main ()
11094 int s;
11095 wait (&s);
11096 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11098 return 0;
11100 _ACEOF
11101 if ac_fn_cxx_try_compile "$LINENO"; then :
11102 ac_cv_header_sys_wait_h=yes
11103 else
11104 ac_cv_header_sys_wait_h=no
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11109 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11110 if test $ac_cv_header_sys_wait_h = yes; then
11112 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11118 # Checks for typedefs, structures, and compiler characteristics.
11119 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11120 if test "x$ac_cv_type_mode_t" = xyes; then :
11122 else
11124 cat >>confdefs.h <<_ACEOF
11125 #define mode_t int
11126 _ACEOF
11130 ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11131 if test "x$ac_cv_type_off_t" = xyes; then :
11133 else
11135 cat >>confdefs.h <<_ACEOF
11136 #define off_t long int
11137 _ACEOF
11141 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11142 if test "x$ac_cv_type_size_t" = xyes; then :
11144 else
11146 cat >>confdefs.h <<_ACEOF
11147 #define size_t unsigned int
11148 _ACEOF
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11153 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11154 if ${ac_cv_header_time+:} false; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11159 #include <sys/types.h>
11160 #include <sys/time.h>
11161 #include <time.h>
11164 main ()
11166 if ((struct tm *) 0)
11167 return 0;
11169 return 0;
11171 _ACEOF
11172 if ac_fn_cxx_try_compile "$LINENO"; then :
11173 ac_cv_header_time=yes
11174 else
11175 ac_cv_header_time=no
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11180 $as_echo "$ac_cv_header_time" >&6; }
11181 if test $ac_cv_header_time = yes; then
11183 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11188 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11189 if ${ac_cv_struct_tm+:} false; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194 #include <sys/types.h>
11195 #include <time.h>
11198 main ()
11200 struct tm tm;
11201 int *p = &tm.tm_sec;
11202 return !p;
11204 return 0;
11206 _ACEOF
11207 if ac_fn_cxx_try_compile "$LINENO"; then :
11208 ac_cv_struct_tm=time.h
11209 else
11210 ac_cv_struct_tm=sys/time.h
11212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11215 $as_echo "$ac_cv_struct_tm" >&6; }
11216 if test $ac_cv_struct_tm = sys/time.h; then
11218 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11223 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11224 if ${ac_cv_type_uid_t+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11229 #include <sys/types.h>
11231 _ACEOF
11232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11233 $EGREP "uid_t" >/dev/null 2>&1; then :
11234 ac_cv_type_uid_t=yes
11235 else
11236 ac_cv_type_uid_t=no
11238 rm -f conftest*
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11242 $as_echo "$ac_cv_type_uid_t" >&6; }
11243 if test $ac_cv_type_uid_t = no; then
11245 $as_echo "#define uid_t int" >>confdefs.h
11248 $as_echo "#define gid_t int" >>confdefs.h
11252 ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11253 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
11255 cat >>confdefs.h <<_ACEOF
11256 #define HAVE_PTRDIFF_T 1
11257 _ACEOF
11264 # Checks for library functions.
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11266 $as_echo_n "checking whether closedir returns void... " >&6; }
11267 if ${ac_cv_func_closedir_void+:} false; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 if test "$cross_compiling" = yes; then :
11271 ac_cv_func_closedir_void=yes
11272 else
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11275 $ac_includes_default
11276 #include <$ac_header_dirent>
11277 #ifndef __cplusplus
11278 int closedir ();
11279 #endif
11282 main ()
11284 return closedir (opendir (".")) != 0;
11286 return 0;
11288 _ACEOF
11289 if ac_fn_cxx_try_run "$LINENO"; then :
11290 ac_cv_func_closedir_void=no
11291 else
11292 ac_cv_func_closedir_void=yes
11294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11295 conftest.$ac_objext conftest.beam conftest.$ac_ext
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11300 $as_echo "$ac_cv_func_closedir_void" >&6; }
11301 if test $ac_cv_func_closedir_void = yes; then
11303 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11307 if test $ac_cv_c_compiler_gnu = yes; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11309 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11310 if ${ac_cv_prog_gcc_traditional+:} false; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 ac_pattern="Autoconf.*'x'"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11316 #include <sgtty.h>
11317 Autoconf TIOCGETP
11318 _ACEOF
11319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11320 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11321 ac_cv_prog_gcc_traditional=yes
11322 else
11323 ac_cv_prog_gcc_traditional=no
11325 rm -f conftest*
11328 if test $ac_cv_prog_gcc_traditional = no; then
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11331 #include <termio.h>
11332 Autoconf TCGETA
11333 _ACEOF
11334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11335 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11336 ac_cv_prog_gcc_traditional=yes
11338 rm -f conftest*
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11343 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11344 if test $ac_cv_prog_gcc_traditional = yes; then
11345 CC="$CC -traditional"
11349 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11350 if test "x$ac_cv_type_pid_t" = xyes; then :
11352 else
11354 cat >>confdefs.h <<_ACEOF
11355 #define pid_t int
11356 _ACEOF
11360 for ac_header in vfork.h
11361 do :
11362 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11363 if test "x$ac_cv_header_vfork_h" = xyes; then :
11364 cat >>confdefs.h <<_ACEOF
11365 #define HAVE_VFORK_H 1
11366 _ACEOF
11370 done
11372 for ac_func in fork vfork
11373 do :
11374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11375 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11376 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11377 cat >>confdefs.h <<_ACEOF
11378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11379 _ACEOF
11382 done
11384 if test "x$ac_cv_func_fork" = xyes; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11386 $as_echo_n "checking for working fork... " >&6; }
11387 if ${ac_cv_func_fork_works+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 if test "$cross_compiling" = yes; then :
11391 ac_cv_func_fork_works=cross
11392 else
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11395 $ac_includes_default
11397 main ()
11400 /* By Ruediger Kuhlmann. */
11401 return fork () < 0;
11404 return 0;
11406 _ACEOF
11407 if ac_fn_cxx_try_run "$LINENO"; then :
11408 ac_cv_func_fork_works=yes
11409 else
11410 ac_cv_func_fork_works=no
11412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11413 conftest.$ac_objext conftest.beam conftest.$ac_ext
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11418 $as_echo "$ac_cv_func_fork_works" >&6; }
11420 else
11421 ac_cv_func_fork_works=$ac_cv_func_fork
11423 if test "x$ac_cv_func_fork_works" = xcross; then
11424 case $host in
11425 *-*-amigaos* | *-*-msdosdjgpp*)
11426 # Override, as these systems have only a dummy fork() stub
11427 ac_cv_func_fork_works=no
11430 ac_cv_func_fork_works=yes
11432 esac
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11434 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11436 ac_cv_func_vfork_works=$ac_cv_func_vfork
11437 if test "x$ac_cv_func_vfork" = xyes; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11439 $as_echo_n "checking for working vfork... " >&6; }
11440 if ${ac_cv_func_vfork_works+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 if test "$cross_compiling" = yes; then :
11444 ac_cv_func_vfork_works=cross
11445 else
11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11448 /* Thanks to Paul Eggert for this test. */
11449 $ac_includes_default
11450 #include <sys/wait.h>
11451 #ifdef HAVE_VFORK_H
11452 # include <vfork.h>
11453 #endif
11454 /* On some sparc systems, changes by the child to local and incoming
11455 argument registers are propagated back to the parent. The compiler
11456 is told about this with #include <vfork.h>, but some compilers
11457 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11458 static variable whose address is put into a register that is
11459 clobbered by the vfork. */
11460 static void
11461 #ifdef __cplusplus
11462 sparc_address_test (int arg)
11463 # else
11464 sparc_address_test (arg) int arg;
11465 #endif
11467 static pid_t child;
11468 if (!child) {
11469 child = vfork ();
11470 if (child < 0) {
11471 perror ("vfork");
11472 _exit(2);
11474 if (!child) {
11475 arg = getpid();
11476 write(-1, "", 0);
11477 _exit (arg);
11483 main ()
11485 pid_t parent = getpid ();
11486 pid_t child;
11488 sparc_address_test (0);
11490 child = vfork ();
11492 if (child == 0) {
11493 /* Here is another test for sparc vfork register problems. This
11494 test uses lots of local variables, at least as many local
11495 variables as main has allocated so far including compiler
11496 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11497 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11498 reuse the register of parent for one of the local variables,
11499 since it will think that parent can't possibly be used any more
11500 in this routine. Assigning to the local variable will thus
11501 munge parent in the parent process. */
11502 pid_t
11503 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11504 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11505 /* Convince the compiler that p..p7 are live; otherwise, it might
11506 use the same hardware register for all 8 local variables. */
11507 if (p != p1 || p != p2 || p != p3 || p != p4
11508 || p != p5 || p != p6 || p != p7)
11509 _exit(1);
11511 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11512 from child file descriptors. If the child closes a descriptor
11513 before it execs or exits, this munges the parent's descriptor
11514 as well. Test for this by closing stdout in the child. */
11515 _exit(close(fileno(stdout)) != 0);
11516 } else {
11517 int status;
11518 struct stat st;
11520 while (wait(&status) != child)
11522 return (
11523 /* Was there some problem with vforking? */
11524 child < 0
11526 /* Did the child fail? (This shouldn't happen.) */
11527 || status
11529 /* Did the vfork/compiler bug occur? */
11530 || parent != getpid()
11532 /* Did the file descriptor bug occur? */
11533 || fstat(fileno(stdout), &st) != 0
11537 _ACEOF
11538 if ac_fn_cxx_try_run "$LINENO"; then :
11539 ac_cv_func_vfork_works=yes
11540 else
11541 ac_cv_func_vfork_works=no
11543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11544 conftest.$ac_objext conftest.beam conftest.$ac_ext
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11549 $as_echo "$ac_cv_func_vfork_works" >&6; }
11552 if test "x$ac_cv_func_fork_works" = xcross; then
11553 ac_cv_func_vfork_works=$ac_cv_func_vfork
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11555 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11558 if test "x$ac_cv_func_vfork_works" = xyes; then
11560 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11562 else
11564 $as_echo "#define vfork fork" >>confdefs.h
11567 if test "x$ac_cv_func_fork_works" = xyes; then
11569 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11574 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11575 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
11576 $as_echo_n "(cached) " >&6
11577 else
11578 rm -f conftest.sym conftest.file
11579 echo >conftest.file
11580 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11581 if test "$cross_compiling" = yes; then :
11582 ac_cv_func_lstat_dereferences_slashed_symlink=no
11583 else
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11586 $ac_includes_default
11588 main ()
11590 struct stat sbuf;
11591 /* Linux will dereference the symlink and fail, as required by POSIX.
11592 That is better in the sense that it means we will not
11593 have to compile and use the lstat wrapper. */
11594 return lstat ("conftest.sym/", &sbuf) == 0;
11596 return 0;
11598 _ACEOF
11599 if ac_fn_cxx_try_run "$LINENO"; then :
11600 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11601 else
11602 ac_cv_func_lstat_dereferences_slashed_symlink=no
11604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11605 conftest.$ac_objext conftest.beam conftest.$ac_ext
11608 else
11609 # If the `ln -s' command failed, then we probably don't even
11610 # have an lstat function.
11611 ac_cv_func_lstat_dereferences_slashed_symlink=no
11613 rm -f conftest.sym conftest.file
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11617 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11619 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11621 cat >>confdefs.h <<_ACEOF
11622 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11623 _ACEOF
11626 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11627 case " $LIBOBJS " in
11628 *" lstat.$ac_objext "* ) ;;
11629 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11631 esac
11635 if test x$SYS != xwin32; then :
11637 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11638 # -lseq on Dynix/PTX, -lgen on Unixware.
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
11640 $as_echo_n "checking for library containing getmntent... " >&6; }
11641 if ${ac_cv_search_getmntent+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 ac_func_search_save_LIBS=$LIBS
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11648 /* Override any GCC internal prototype to avoid an error.
11649 Use char because int might match the return type of a GCC
11650 builtin and then its argument prototype would still apply. */
11651 #ifdef __cplusplus
11652 extern "C"
11653 #endif
11654 char getmntent ();
11656 main ()
11658 return getmntent ();
11660 return 0;
11662 _ACEOF
11663 for ac_lib in '' sun seq gen; do
11664 if test -z "$ac_lib"; then
11665 ac_res="none required"
11666 else
11667 ac_res=-l$ac_lib
11668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11670 if ac_fn_cxx_try_link "$LINENO"; then :
11671 ac_cv_search_getmntent=$ac_res
11673 rm -f core conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext
11675 if ${ac_cv_search_getmntent+:} false; then :
11676 break
11678 done
11679 if ${ac_cv_search_getmntent+:} false; then :
11681 else
11682 ac_cv_search_getmntent=no
11684 rm conftest.$ac_ext
11685 LIBS=$ac_func_search_save_LIBS
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
11688 $as_echo "$ac_cv_search_getmntent" >&6; }
11689 ac_res=$ac_cv_search_getmntent
11690 if test "$ac_res" != no; then :
11691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11692 ac_cv_func_getmntent=yes
11694 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
11696 else
11697 ac_cv_func_getmntent=no
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
11702 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
11703 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
11704 $as_echo_n "(cached) " >&6
11705 else
11706 if test "$cross_compiling" = yes; then :
11707 ac_cv_func_lstat_empty_string_bug=yes
11708 else
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 $ac_includes_default
11713 main ()
11715 struct stat sbuf;
11716 return lstat ("", &sbuf) == 0;
11718 return 0;
11720 _ACEOF
11721 if ac_fn_cxx_try_run "$LINENO"; then :
11722 ac_cv_func_lstat_empty_string_bug=no
11723 else
11724 ac_cv_func_lstat_empty_string_bug=yes
11726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11727 conftest.$ac_objext conftest.beam conftest.$ac_ext
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
11732 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
11733 if test $ac_cv_func_lstat_empty_string_bug = yes; then
11734 case " $LIBOBJS " in
11735 *" lstat.$ac_objext "* ) ;;
11736 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11738 esac
11741 cat >>confdefs.h <<_ACEOF
11742 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11743 _ACEOF
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11748 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11749 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 rm -f conftest.sym conftest.file
11753 echo >conftest.file
11754 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
11755 if test "$cross_compiling" = yes; then :
11756 ac_cv_func_lstat_dereferences_slashed_symlink=no
11757 else
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 $ac_includes_default
11762 main ()
11764 struct stat sbuf;
11765 /* Linux will dereference the symlink and fail, as required by POSIX.
11766 That is better in the sense that it means we will not
11767 have to compile and use the lstat wrapper. */
11768 return lstat ("conftest.sym/", &sbuf) == 0;
11770 return 0;
11772 _ACEOF
11773 if ac_fn_cxx_try_run "$LINENO"; then :
11774 ac_cv_func_lstat_dereferences_slashed_symlink=yes
11775 else
11776 ac_cv_func_lstat_dereferences_slashed_symlink=no
11778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11779 conftest.$ac_objext conftest.beam conftest.$ac_ext
11782 else
11783 # If the `ln -s' command failed, then we probably don't even
11784 # have an lstat function.
11785 ac_cv_func_lstat_dereferences_slashed_symlink=no
11787 rm -f conftest.sym conftest.file
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
11791 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
11793 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
11795 cat >>confdefs.h <<_ACEOF
11796 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
11797 _ACEOF
11800 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
11801 case " $LIBOBJS " in
11802 *" lstat.$ac_objext "* ) ;;
11803 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
11805 esac
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
11812 $as_echo_n "checking for working memcmp... " >&6; }
11813 if ${ac_cv_func_memcmp_working+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 if test "$cross_compiling" = yes; then :
11817 ac_cv_func_memcmp_working=no
11818 else
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11821 $ac_includes_default
11823 main ()
11826 /* Some versions of memcmp are not 8-bit clean. */
11827 char c0 = '\100', c1 = '\200', c2 = '\201';
11828 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11829 return 1;
11831 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11832 or more and with at least one buffer not starting on a 4-byte boundary.
11833 William Lewis provided this test program. */
11835 char foo[21];
11836 char bar[21];
11837 int i;
11838 for (i = 0; i < 4; i++)
11840 char *a = foo + i;
11841 char *b = bar + i;
11842 strcpy (a, "--------01111111");
11843 strcpy (b, "--------10000000");
11844 if (memcmp (a, b, 16) >= 0)
11845 return 1;
11847 return 0;
11851 return 0;
11853 _ACEOF
11854 if ac_fn_cxx_try_run "$LINENO"; then :
11855 ac_cv_func_memcmp_working=yes
11856 else
11857 ac_cv_func_memcmp_working=no
11859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11860 conftest.$ac_objext conftest.beam conftest.$ac_ext
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
11865 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11866 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11867 *" memcmp.$ac_objext "* ) ;;
11868 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11870 esac
11873 for ac_header in sys/select.h sys/socket.h
11874 do :
11875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11876 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11877 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11878 cat >>confdefs.h <<_ACEOF
11879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11880 _ACEOF
11884 done
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
11887 $as_echo_n "checking types of arguments for select... " >&6; }
11888 if ${ac_cv_func_select_args+:} false; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11892 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11893 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 $ac_includes_default
11897 #ifdef HAVE_SYS_SELECT_H
11898 # include <sys/select.h>
11899 #endif
11900 #ifdef HAVE_SYS_SOCKET_H
11901 # include <sys/socket.h>
11902 #endif
11905 main ()
11907 extern int select ($ac_arg1,
11908 $ac_arg234, $ac_arg234, $ac_arg234,
11909 $ac_arg5);
11911 return 0;
11913 _ACEOF
11914 if ac_fn_cxx_try_compile "$LINENO"; then :
11915 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918 done
11919 done
11920 done
11921 # Provide a safe default value.
11922 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
11926 $as_echo "$ac_cv_func_select_args" >&6; }
11927 ac_save_IFS=$IFS; IFS=','
11928 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11929 IFS=$ac_save_IFS
11930 shift
11932 cat >>confdefs.h <<_ACEOF
11933 #define SELECT_TYPE_ARG1 $1
11934 _ACEOF
11937 cat >>confdefs.h <<_ACEOF
11938 #define SELECT_TYPE_ARG234 ($2)
11939 _ACEOF
11942 cat >>confdefs.h <<_ACEOF
11943 #define SELECT_TYPE_ARG5 ($3)
11944 _ACEOF
11946 rm -f conftest*
11948 if ${ac_cv_func_setvbuf_reversed+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 ac_cv_func_setvbuf_reversed=no
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11956 $as_echo_n "checking return type of signal handlers... " >&6; }
11957 if ${ac_cv_type_signal+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 #include <sys/types.h>
11963 #include <signal.h>
11966 main ()
11968 return *(signal (0, 0)) (0) == 1;
11970 return 0;
11972 _ACEOF
11973 if ac_fn_cxx_try_compile "$LINENO"; then :
11974 ac_cv_type_signal=int
11975 else
11976 ac_cv_type_signal=void
11978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11981 $as_echo "$ac_cv_type_signal" >&6; }
11983 cat >>confdefs.h <<_ACEOF
11984 #define RETSIGTYPE $ac_cv_type_signal
11985 _ACEOF
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
11989 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
11990 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 if test "$cross_compiling" = yes; then :
11994 ac_cv_func_stat_empty_string_bug=yes
11995 else
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 $ac_includes_default
12000 main ()
12002 struct stat sbuf;
12003 return stat ("", &sbuf) == 0;
12005 return 0;
12007 _ACEOF
12008 if ac_fn_cxx_try_run "$LINENO"; then :
12009 ac_cv_func_stat_empty_string_bug=no
12010 else
12011 ac_cv_func_stat_empty_string_bug=yes
12013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12014 conftest.$ac_objext conftest.beam conftest.$ac_ext
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12019 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12020 if test $ac_cv_func_stat_empty_string_bug = yes; then
12021 case " $LIBOBJS " in
12022 *" stat.$ac_objext "* ) ;;
12023 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
12025 esac
12028 cat >>confdefs.h <<_ACEOF
12029 #define HAVE_STAT_EMPTY_STRING_BUG 1
12030 _ACEOF
12034 for ac_func in strftime
12035 do :
12036 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12037 if test "x$ac_cv_func_strftime" = xyes; then :
12038 cat >>confdefs.h <<_ACEOF
12039 #define HAVE_STRFTIME 1
12040 _ACEOF
12042 else
12043 # strftime is in -lintl on SCO UNIX.
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12045 $as_echo_n "checking for strftime in -lintl... " >&6; }
12046 if ${ac_cv_lib_intl_strftime+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 ac_check_lib_save_LIBS=$LIBS
12050 LIBS="-lintl $LIBS"
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12054 /* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 char strftime ();
12062 main ()
12064 return strftime ();
12066 return 0;
12068 _ACEOF
12069 if ac_fn_cxx_try_link "$LINENO"; then :
12070 ac_cv_lib_intl_strftime=yes
12071 else
12072 ac_cv_lib_intl_strftime=no
12074 rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12079 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12080 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
12081 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12083 LIBS="-lintl $LIBS"
12087 done
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
12090 $as_echo_n "checking for working strtod... " >&6; }
12091 if ${ac_cv_func_strtod+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 if test "$cross_compiling" = yes; then :
12095 ac_cv_func_strtod=no
12096 else
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12100 $ac_includes_default
12101 #ifndef strtod
12102 double strtod ();
12103 #endif
12105 main()
12108 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
12109 char *string = " +69";
12110 char *term;
12111 double value;
12112 value = strtod (string, &term);
12113 if (value != 69 || term != (string + 4))
12114 return 1;
12118 /* Under Solaris 2.4, strtod returns the wrong value for the
12119 terminating character under some conditions. */
12120 char *string = "NaN";
12121 char *term;
12122 strtod (string, &term);
12123 if (term != string && *(term - 1) == 0)
12124 return 1;
12126 return 0;
12129 _ACEOF
12130 if ac_fn_cxx_try_run "$LINENO"; then :
12131 ac_cv_func_strtod=yes
12132 else
12133 ac_cv_func_strtod=no
12135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12136 conftest.$ac_objext conftest.beam conftest.$ac_ext
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
12141 $as_echo "$ac_cv_func_strtod" >&6; }
12142 if test $ac_cv_func_strtod = no; then
12143 case " $LIBOBJS " in
12144 *" strtod.$ac_objext "* ) ;;
12145 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
12147 esac
12149 ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
12150 if test "x$ac_cv_func_pow" = xyes; then :
12154 if test $ac_cv_func_pow = no; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12156 $as_echo_n "checking for pow in -lm... " >&6; }
12157 if ${ac_cv_lib_m_pow+:} false; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 ac_check_lib_save_LIBS=$LIBS
12161 LIBS="-lm $LIBS"
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char pow ();
12173 main ()
12175 return pow ();
12177 return 0;
12179 _ACEOF
12180 if ac_fn_cxx_try_link "$LINENO"; then :
12181 ac_cv_lib_m_pow=yes
12182 else
12183 ac_cv_lib_m_pow=no
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12190 $as_echo "$ac_cv_lib_m_pow" >&6; }
12191 if test "x$ac_cv_lib_m_pow" = xyes; then :
12192 POW_LIB=-lm
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
12195 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
12202 for ac_func in vprintf
12203 do :
12204 ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12205 if test "x$ac_cv_func_vprintf" = xyes; then :
12206 cat >>confdefs.h <<_ACEOF
12207 #define HAVE_VPRINTF 1
12208 _ACEOF
12210 ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12211 if test "x$ac_cv_func__doprnt" = xyes; then :
12213 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12218 done
12221 if test $cross_compiling = yes -a $gnumalloc = yes; then :
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12224 configure cannot check whether malloc() and realloc() are GNU libc
12225 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12226 run configure with the --without-gnu-malloc switch." >&5
12227 $as_echo "$as_me: WARNING:
12228 configure cannot check whether malloc() and realloc() are GNU libc
12229 compatible. You have to be ABSOLUTELY sure that they are, otherwise
12230 run configure with the --without-gnu-malloc switch." >&2;}
12231 _mule_warning_11=yes
12232 _mule_has_warnings=yes
12234 ac_cv_func_malloc_0_nonnull=yes
12235 ac_cv_func_realloc_0_nonnull=yes
12238 for ac_header in stdlib.h
12239 do :
12240 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12241 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_STDLIB_H 1
12244 _ACEOF
12248 done
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12251 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12252 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 if test "$cross_compiling" = yes; then :
12256 ac_cv_func_malloc_0_nonnull=no
12257 else
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12260 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12261 # include <stdlib.h>
12262 #else
12263 char *malloc ();
12264 #endif
12267 main ()
12269 return ! malloc (0);
12271 return 0;
12273 _ACEOF
12274 if ac_fn_cxx_try_run "$LINENO"; then :
12275 ac_cv_func_malloc_0_nonnull=yes
12276 else
12277 ac_cv_func_malloc_0_nonnull=no
12279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12280 conftest.$ac_objext conftest.beam conftest.$ac_ext
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12285 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12286 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12288 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12290 else
12291 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12293 case " $LIBOBJS " in
12294 *" malloc.$ac_objext "* ) ;;
12295 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12297 esac
12300 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12305 for ac_header in stdlib.h
12306 do :
12307 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12308 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12309 cat >>confdefs.h <<_ACEOF
12310 #define HAVE_STDLIB_H 1
12311 _ACEOF
12315 done
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12318 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12319 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 if test "$cross_compiling" = yes; then :
12323 ac_cv_func_realloc_0_nonnull=no
12324 else
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12327 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12328 # include <stdlib.h>
12329 #else
12330 char *realloc ();
12331 #endif
12334 main ()
12336 return ! realloc (0, 0);
12338 return 0;
12340 _ACEOF
12341 if ac_fn_cxx_try_run "$LINENO"; then :
12342 ac_cv_func_realloc_0_nonnull=yes
12343 else
12344 ac_cv_func_realloc_0_nonnull=no
12346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12347 conftest.$ac_objext conftest.beam conftest.$ac_ext
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12352 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12353 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12355 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12357 else
12358 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12360 case " $LIBOBJS " in
12361 *" realloc.$ac_objext "* ) ;;
12362 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12364 esac
12367 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12372 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
12373 do :
12374 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12375 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12376 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12377 cat >>confdefs.h <<_ACEOF
12378 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12379 _ACEOF
12382 done
12389 for ac_header in $ac_header_list
12390 do :
12391 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12392 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12394 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12395 cat >>confdefs.h <<_ACEOF
12396 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12397 _ACEOF
12401 done
12409 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12411 # Check whether --enable-mmap was given.
12412 if test "${enable_mmap+set}" = set; then :
12413 enableval=$enable_mmap;
12420 if test ${enable_mmap:-no} = yes; then :
12422 $as_echo "#define ENABLE_MMAP 1" >>confdefs.h
12425 for ac_func in getpagesize
12426 do :
12427 ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12428 if test "x$ac_cv_func_getpagesize" = xyes; then :
12429 cat >>confdefs.h <<_ACEOF
12430 #define HAVE_GETPAGESIZE 1
12431 _ACEOF
12434 done
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12437 $as_echo_n "checking for working mmap... " >&6; }
12438 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 if test "$cross_compiling" = yes; then :
12442 ac_cv_func_mmap_fixed_mapped=no
12443 else
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12446 $ac_includes_default
12447 /* malloc might have been renamed as rpl_malloc. */
12448 #undef malloc
12450 /* Thanks to Mike Haertel and Jim Avera for this test.
12451 Here is a matrix of mmap possibilities:
12452 mmap private not fixed
12453 mmap private fixed at somewhere currently unmapped
12454 mmap private fixed at somewhere already mapped
12455 mmap shared not fixed
12456 mmap shared fixed at somewhere currently unmapped
12457 mmap shared fixed at somewhere already mapped
12458 For private mappings, we should verify that changes cannot be read()
12459 back from the file, nor mmap's back from the file at a different
12460 address. (There have been systems where private was not correctly
12461 implemented like the infamous i386 svr4.0, and systems where the
12462 VM page cache was not coherent with the file system buffer cache
12463 like early versions of FreeBSD and possibly contemporary NetBSD.)
12464 For shared mappings, we should conversely verify that changes get
12465 propagated back to all the places they're supposed to be.
12467 Grep wants private fixed already mapped.
12468 The main things grep needs to know about mmap are:
12469 * does it exist and is it safe to write into the mmap'd area
12470 * how to use it (BSD variants) */
12472 #include <fcntl.h>
12473 #include <sys/mman.h>
12475 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12476 char *malloc ();
12477 #endif
12479 /* This mess was copied from the GNU getpagesize.h. */
12480 #ifndef HAVE_GETPAGESIZE
12481 # ifdef _SC_PAGESIZE
12482 # define getpagesize() sysconf(_SC_PAGESIZE)
12483 # else /* no _SC_PAGESIZE */
12484 # ifdef HAVE_SYS_PARAM_H
12485 # include <sys/param.h>
12486 # ifdef EXEC_PAGESIZE
12487 # define getpagesize() EXEC_PAGESIZE
12488 # else /* no EXEC_PAGESIZE */
12489 # ifdef NBPG
12490 # define getpagesize() NBPG * CLSIZE
12491 # ifndef CLSIZE
12492 # define CLSIZE 1
12493 # endif /* no CLSIZE */
12494 # else /* no NBPG */
12495 # ifdef NBPC
12496 # define getpagesize() NBPC
12497 # else /* no NBPC */
12498 # ifdef PAGESIZE
12499 # define getpagesize() PAGESIZE
12500 # endif /* PAGESIZE */
12501 # endif /* no NBPC */
12502 # endif /* no NBPG */
12503 # endif /* no EXEC_PAGESIZE */
12504 # else /* no HAVE_SYS_PARAM_H */
12505 # define getpagesize() 8192 /* punt totally */
12506 # endif /* no HAVE_SYS_PARAM_H */
12507 # endif /* no _SC_PAGESIZE */
12509 #endif /* no HAVE_GETPAGESIZE */
12512 main ()
12514 char *data, *data2, *data3;
12515 int i, pagesize;
12516 int fd, fd2;
12518 pagesize = getpagesize ();
12520 /* First, make a file with some known garbage in it. */
12521 data = (char *) malloc (pagesize);
12522 if (!data)
12523 return 1;
12524 for (i = 0; i < pagesize; ++i)
12525 *(data + i) = rand ();
12526 umask (0);
12527 fd = creat ("conftest.mmap", 0600);
12528 if (fd < 0)
12529 return 2;
12530 if (write (fd, data, pagesize) != pagesize)
12531 return 3;
12532 close (fd);
12534 /* Next, check that the tail of a page is zero-filled. File must have
12535 non-zero length, otherwise we risk SIGBUS for entire page. */
12536 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12537 if (fd2 < 0)
12538 return 4;
12539 data2 = (char *) "";
12540 if (write (fd2, data2, 1) != 1)
12541 return 5;
12542 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12543 if (data2 == MAP_FAILED)
12544 return 6;
12545 for (i = 0; i < pagesize; ++i)
12546 if (*(data2 + i))
12547 return 7;
12548 close (fd2);
12549 if (munmap (data2, pagesize))
12550 return 8;
12552 /* Next, try to mmap the file at a fixed address which already has
12553 something else allocated at it. If we can, also make sure that
12554 we see the same garbage. */
12555 fd = open ("conftest.mmap", O_RDWR);
12556 if (fd < 0)
12557 return 9;
12558 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12559 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12560 return 10;
12561 for (i = 0; i < pagesize; ++i)
12562 if (*(data + i) != *(data2 + i))
12563 return 11;
12565 /* Finally, make sure that changes to the mapped area do not
12566 percolate back to the file as seen by read(). (This is a bug on
12567 some variants of i386 svr4.0.) */
12568 for (i = 0; i < pagesize; ++i)
12569 *(data2 + i) = *(data2 + i) + 1;
12570 data3 = (char *) malloc (pagesize);
12571 if (!data3)
12572 return 12;
12573 if (read (fd, data3, pagesize) != pagesize)
12574 return 13;
12575 for (i = 0; i < pagesize; ++i)
12576 if (*(data + i) != *(data3 + i))
12577 return 14;
12578 close (fd);
12579 return 0;
12581 _ACEOF
12582 if ac_fn_cxx_try_run "$LINENO"; then :
12583 ac_cv_func_mmap_fixed_mapped=yes
12584 else
12585 ac_cv_func_mmap_fixed_mapped=no
12587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12588 conftest.$ac_objext conftest.beam conftest.$ac_ext
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12593 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12594 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12596 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12599 rm -f conftest.mmap conftest.txt
12601 for ac_func in munmap sysconf
12602 do :
12603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12604 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12605 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12606 cat >>confdefs.h <<_ACEOF
12607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12608 _ACEOF
12611 done
12613 if test $ac_cv_func_sysconf = yes; then :
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
12616 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12621 #include <unistd.h>
12624 main ()
12627 return sysconf(_SC_PAGESIZE);
12630 return 0;
12633 _ACEOF
12634 if ac_fn_cxx_try_link "$LINENO"; then :
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
12637 $as_echo "_SC_PAGESIZE" >&6; }
12639 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
12642 else
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12648 #include <unistd.h>
12651 main ()
12654 return sysconf(_SC_PAGE_SIZE);
12657 return 0;
12660 _ACEOF
12661 if ac_fn_cxx_try_link "$LINENO"; then :
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
12664 $as_echo "_SC_PAGE_SIZE" >&6; }
12666 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
12669 else
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12672 $as_echo "none" >&6; }
12675 rm -f core conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
12679 rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12689 # Look for a way to preallocate disk space for files.
12690 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
12693 $as_echo_n "checking for fallocate... " >&6; }
12694 mule_backup_CPPFLAGS="$CPPFLAGS"
12695 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12700 #ifndef _GNU_SOURCE
12701 # define _GNU_SOURCE
12702 #endif
12703 #ifdef HAVE_FCNTL_H
12704 # include <fcntl.h>
12705 #endif
12706 #include <linux/falloc.h>
12709 main ()
12712 fallocate(0, 0, 0, 0);
12715 return 0;
12718 _ACEOF
12719 if ac_fn_cxx_try_link "$LINENO"; then :
12722 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12725 $as_echo "yes" >&6; }
12727 else
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12733 rm -f core conftest.err conftest.$ac_objext \
12734 conftest$ac_exeext conftest.$ac_ext
12735 CPPFLAGS="$mule_backup_CPPFLAGS"
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
12739 $as_echo_n "checking for SYS_fallocate... " >&6; }
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12744 #include <sys/syscall.h>
12745 #include <sys/types.h>
12746 #include <unistd.h>
12749 main ()
12752 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
12755 return 0;
12758 _ACEOF
12759 if ac_fn_cxx_try_link "$LINENO"; then :
12762 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12765 $as_echo "yes" >&6; }
12767 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12773 rm -f core conftest.err conftest.$ac_objext \
12774 conftest$ac_exeext conftest.$ac_ext
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
12777 $as_echo_n "checking for posix_fallocate... " >&6; }
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12782 #define _XOPEN_SOURCE 600
12783 #include <stdlib.h>
12784 #ifdef HAVE_FCNTL_H
12785 # include <fcntl.h>
12786 #endif
12789 main ()
12792 posix_fallocate(0, 0, 0);
12795 return 0;
12798 _ACEOF
12799 if ac_fn_cxx_try_link "$LINENO"; then :
12802 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12805 $as_echo "yes" >&6; }
12807 else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810 $as_echo "no" >&6; }
12813 rm -f core conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12819 ac_ext=c
12820 ac_cpp='$CPP $CPPFLAGS'
12821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12825 # Checking Native Language Support
12828 MKINSTALLDIRS=
12829 if test -n "$ac_aux_dir"; then
12830 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12832 if test -z "$MKINSTALLDIRS"; then
12833 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12840 # Extract the first word of "msgfmt", so it can be a program name with args.
12841 set dummy msgfmt; ac_word=$2
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12843 $as_echo_n "checking for $ac_word... " >&6; }
12844 if ${ac_cv_path_MSGFMT+:} false; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 case "$MSGFMT" in
12849 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12853 for ac_dir in $PATH; do
12854 test -z "$ac_dir" && ac_dir=.
12855 if test -f $ac_dir/$ac_word; then
12856 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12857 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12858 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12859 break
12862 done
12863 IFS="$ac_save_ifs"
12864 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12866 esac
12868 MSGFMT="$ac_cv_path_MSGFMT"
12869 if test "$MSGFMT" != ":"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12871 $as_echo "$MSGFMT" >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12877 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12878 set dummy gmsgfmt; ac_word=$2
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12880 $as_echo_n "checking for $ac_word... " >&6; }
12881 if ${ac_cv_path_GMSGFMT+:} false; then :
12882 $as_echo_n "(cached) " >&6
12883 else
12884 case $GMSGFMT in
12885 [\\/]* | ?:[\\/]*)
12886 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12892 IFS=$as_save_IFS
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12896 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12898 break 2
12900 done
12901 done
12902 IFS=$as_save_IFS
12904 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12906 esac
12908 GMSGFMT=$ac_cv_path_GMSGFMT
12909 if test -n "$GMSGFMT"; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12911 $as_echo "$GMSGFMT" >&6; }
12912 else
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914 $as_echo "no" >&6; }
12919 # Extract the first word of "xgettext", so it can be a program name with args.
12920 set dummy xgettext; ac_word=$2
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12922 $as_echo_n "checking for $ac_word... " >&6; }
12923 if ${ac_cv_path_XGETTEXT+:} false; then :
12924 $as_echo_n "(cached) " >&6
12925 else
12926 case "$XGETTEXT" in
12928 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12932 for ac_dir in $PATH; do
12933 test -z "$ac_dir" && ac_dir=.
12934 if test -f $ac_dir/$ac_word; then
12935 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
12936 (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
12937 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12938 break
12941 done
12942 IFS="$ac_save_ifs"
12943 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12945 esac
12947 XGETTEXT="$ac_cv_path_XGETTEXT"
12948 if test "$XGETTEXT" != ":"; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12950 $as_echo "$XGETTEXT" >&6; }
12951 else
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12956 rm -f messages.po
12958 # Extract the first word of "msgmerge", so it can be a program name with args.
12959 set dummy msgmerge; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if ${ac_cv_path_MSGMERGE+:} false; then :
12963 $as_echo_n "(cached) " >&6
12964 else
12965 case "$MSGMERGE" in
12967 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12971 for ac_dir in $PATH; do
12972 test -z "$ac_dir" && ac_dir=.
12973 if test -f $ac_dir/$ac_word; then
12974 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12975 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
12976 break
12979 done
12980 IFS="$ac_save_ifs"
12981 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12983 esac
12985 MSGMERGE="$ac_cv_path_MSGMERGE"
12986 if test "$MSGMERGE" != ":"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12988 $as_echo "$MSGMERGE" >&6; }
12989 else
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12995 if test "$GMSGFMT" != ":"; then
12996 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12997 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12999 else
13000 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13002 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13003 GMSGFMT=":"
13007 if test "$XGETTEXT" != ":"; then
13008 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
13009 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13011 else
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13013 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13014 XGETTEXT=":"
13016 rm -f messages.po
13019 ac_config_commands="$ac_config_commands default-1"
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
13024 $as_echo_n "checking for strerror in -lcposix... " >&6; }
13025 if ${ac_cv_lib_cposix_strerror+:} false; then :
13026 $as_echo_n "(cached) " >&6
13027 else
13028 ac_check_lib_save_LIBS=$LIBS
13029 LIBS="-lcposix $LIBS"
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13033 /* Override any GCC internal prototype to avoid an error.
13034 Use char because int might match the return type of a GCC
13035 builtin and then its argument prototype would still apply. */
13036 #ifdef __cplusplus
13037 extern "C"
13038 #endif
13039 char strerror ();
13041 main ()
13043 return strerror ();
13045 return 0;
13047 _ACEOF
13048 if ac_fn_c_try_link "$LINENO"; then :
13049 ac_cv_lib_cposix_strerror=yes
13050 else
13051 ac_cv_lib_cposix_strerror=no
13053 rm -f core conftest.err conftest.$ac_objext \
13054 conftest$ac_exeext conftest.$ac_ext
13055 LIBS=$ac_check_lib_save_LIBS
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
13058 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
13059 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
13060 LIBS="$LIBS -lcposix"
13066 for ac_func in getpagesize
13067 do :
13068 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13069 if test "x$ac_cv_func_getpagesize" = xyes; then :
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_GETPAGESIZE 1
13072 _ACEOF
13075 done
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13078 $as_echo_n "checking for working mmap... " >&6; }
13079 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 if test "$cross_compiling" = yes; then :
13083 ac_cv_func_mmap_fixed_mapped=no
13084 else
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087 $ac_includes_default
13088 /* malloc might have been renamed as rpl_malloc. */
13089 #undef malloc
13091 /* Thanks to Mike Haertel and Jim Avera for this test.
13092 Here is a matrix of mmap possibilities:
13093 mmap private not fixed
13094 mmap private fixed at somewhere currently unmapped
13095 mmap private fixed at somewhere already mapped
13096 mmap shared not fixed
13097 mmap shared fixed at somewhere currently unmapped
13098 mmap shared fixed at somewhere already mapped
13099 For private mappings, we should verify that changes cannot be read()
13100 back from the file, nor mmap's back from the file at a different
13101 address. (There have been systems where private was not correctly
13102 implemented like the infamous i386 svr4.0, and systems where the
13103 VM page cache was not coherent with the file system buffer cache
13104 like early versions of FreeBSD and possibly contemporary NetBSD.)
13105 For shared mappings, we should conversely verify that changes get
13106 propagated back to all the places they're supposed to be.
13108 Grep wants private fixed already mapped.
13109 The main things grep needs to know about mmap are:
13110 * does it exist and is it safe to write into the mmap'd area
13111 * how to use it (BSD variants) */
13113 #include <fcntl.h>
13114 #include <sys/mman.h>
13116 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13117 char *malloc ();
13118 #endif
13120 /* This mess was copied from the GNU getpagesize.h. */
13121 #ifndef HAVE_GETPAGESIZE
13122 # ifdef _SC_PAGESIZE
13123 # define getpagesize() sysconf(_SC_PAGESIZE)
13124 # else /* no _SC_PAGESIZE */
13125 # ifdef HAVE_SYS_PARAM_H
13126 # include <sys/param.h>
13127 # ifdef EXEC_PAGESIZE
13128 # define getpagesize() EXEC_PAGESIZE
13129 # else /* no EXEC_PAGESIZE */
13130 # ifdef NBPG
13131 # define getpagesize() NBPG * CLSIZE
13132 # ifndef CLSIZE
13133 # define CLSIZE 1
13134 # endif /* no CLSIZE */
13135 # else /* no NBPG */
13136 # ifdef NBPC
13137 # define getpagesize() NBPC
13138 # else /* no NBPC */
13139 # ifdef PAGESIZE
13140 # define getpagesize() PAGESIZE
13141 # endif /* PAGESIZE */
13142 # endif /* no NBPC */
13143 # endif /* no NBPG */
13144 # endif /* no EXEC_PAGESIZE */
13145 # else /* no HAVE_SYS_PARAM_H */
13146 # define getpagesize() 8192 /* punt totally */
13147 # endif /* no HAVE_SYS_PARAM_H */
13148 # endif /* no _SC_PAGESIZE */
13150 #endif /* no HAVE_GETPAGESIZE */
13153 main ()
13155 char *data, *data2, *data3;
13156 const char *cdata2;
13157 int i, pagesize;
13158 int fd, fd2;
13160 pagesize = getpagesize ();
13162 /* First, make a file with some known garbage in it. */
13163 data = (char *) malloc (pagesize);
13164 if (!data)
13165 return 1;
13166 for (i = 0; i < pagesize; ++i)
13167 *(data + i) = rand ();
13168 umask (0);
13169 fd = creat ("conftest.mmap", 0600);
13170 if (fd < 0)
13171 return 2;
13172 if (write (fd, data, pagesize) != pagesize)
13173 return 3;
13174 close (fd);
13176 /* Next, check that the tail of a page is zero-filled. File must have
13177 non-zero length, otherwise we risk SIGBUS for entire page. */
13178 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13179 if (fd2 < 0)
13180 return 4;
13181 cdata2 = "";
13182 if (write (fd2, cdata2, 1) != 1)
13183 return 5;
13184 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13185 if (data2 == MAP_FAILED)
13186 return 6;
13187 for (i = 0; i < pagesize; ++i)
13188 if (*(data2 + i))
13189 return 7;
13190 close (fd2);
13191 if (munmap (data2, pagesize))
13192 return 8;
13194 /* Next, try to mmap the file at a fixed address which already has
13195 something else allocated at it. If we can, also make sure that
13196 we see the same garbage. */
13197 fd = open ("conftest.mmap", O_RDWR);
13198 if (fd < 0)
13199 return 9;
13200 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13201 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13202 return 10;
13203 for (i = 0; i < pagesize; ++i)
13204 if (*(data + i) != *(data2 + i))
13205 return 11;
13207 /* Finally, make sure that changes to the mapped area do not
13208 percolate back to the file as seen by read(). (This is a bug on
13209 some variants of i386 svr4.0.) */
13210 for (i = 0; i < pagesize; ++i)
13211 *(data2 + i) = *(data2 + i) + 1;
13212 data3 = (char *) malloc (pagesize);
13213 if (!data3)
13214 return 12;
13215 if (read (fd, data3, pagesize) != pagesize)
13216 return 13;
13217 for (i = 0; i < pagesize; ++i)
13218 if (*(data + i) != *(data3 + i))
13219 return 14;
13220 close (fd);
13221 free (data);
13222 free (data3);
13223 return 0;
13225 _ACEOF
13226 if ac_fn_c_try_run "$LINENO"; then :
13227 ac_cv_func_mmap_fixed_mapped=yes
13228 else
13229 ac_cv_func_mmap_fixed_mapped=no
13231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13232 conftest.$ac_objext conftest.beam conftest.$ac_ext
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13237 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13240 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13243 rm -f conftest.mmap conftest.txt
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
13247 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
13248 if ${ac_cv_gnu_library_2_1+:} false; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13254 #include <features.h>
13255 #ifdef __GNU_LIBRARY__
13256 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13257 Lucky GNU user
13258 #endif
13259 #endif
13261 _ACEOF
13262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13263 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
13264 ac_cv_gnu_library_2_1=yes
13265 else
13266 ac_cv_gnu_library_2_1=no
13268 rm -f conftest*
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
13274 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13276 GLIBC21="$ac_cv_gnu_library_2_1"
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
13282 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
13283 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13287 if test "$cross_compiling" = yes; then :
13289 # Guess based on the CPU.
13290 case "$host_cpu" in
13291 alpha* | i3456786 | m68k | s390*)
13292 gt_cv_int_divbyzero_sigfpe="guessing yes";;
13294 gt_cv_int_divbyzero_sigfpe="guessing no";;
13295 esac
13297 else
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13301 #include <stdlib.h>
13302 #include <signal.h>
13304 static void
13305 #ifdef __cplusplus
13306 sigfpe_handler (int sig)
13307 #else
13308 sigfpe_handler (sig) int sig;
13309 #endif
13311 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
13312 exit (sig != SIGFPE);
13315 int x = 1;
13316 int y = 0;
13317 int z;
13318 int nan;
13320 int main ()
13322 signal (SIGFPE, sigfpe_handler);
13323 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
13324 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
13325 signal (SIGTRAP, sigfpe_handler);
13326 #endif
13327 /* Linux/SPARC yields signal SIGILL. */
13328 #if defined (__sparc__) && defined (__linux__)
13329 signal (SIGILL, sigfpe_handler);
13330 #endif
13332 z = x / y;
13333 nan = y / y;
13334 exit (1);
13337 _ACEOF
13338 if ac_fn_c_try_run "$LINENO"; then :
13339 gt_cv_int_divbyzero_sigfpe=yes
13340 else
13341 gt_cv_int_divbyzero_sigfpe=no
13343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13344 conftest.$ac_objext conftest.beam conftest.$ac_ext
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
13350 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
13351 case "$gt_cv_int_divbyzero_sigfpe" in
13352 *yes) value=1;;
13353 *) value=0;;
13354 esac
13356 cat >>confdefs.h <<_ACEOF
13357 #define INTDIV0_RAISES_SIGFPE $value
13358 _ACEOF
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13363 $as_echo_n "checking for inttypes.h... " >&6; }
13364 if ${jm_ac_cv_header_inttypes_h+:} false; then :
13365 $as_echo_n "(cached) " >&6
13366 else
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13369 #include <sys/types.h>
13370 #include <inttypes.h>
13372 main ()
13374 uintmax_t i = (uintmax_t) -1;
13376 return 0;
13378 _ACEOF
13379 if ac_fn_c_try_compile "$LINENO"; then :
13380 jm_ac_cv_header_inttypes_h=yes
13381 else
13382 jm_ac_cv_header_inttypes_h=no
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
13387 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
13388 if test $jm_ac_cv_header_inttypes_h = yes; then
13390 cat >>confdefs.h <<_ACEOF
13391 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
13392 _ACEOF
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
13398 $as_echo_n "checking for stdint.h... " >&6; }
13399 if ${jm_ac_cv_header_stdint_h+:} false; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404 #include <sys/types.h>
13405 #include <stdint.h>
13407 main ()
13409 uintmax_t i = (uintmax_t) -1;
13411 return 0;
13413 _ACEOF
13414 if ac_fn_c_try_compile "$LINENO"; then :
13415 jm_ac_cv_header_stdint_h=yes
13416 else
13417 jm_ac_cv_header_stdint_h=no
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
13422 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
13423 if test $jm_ac_cv_header_stdint_h = yes; then
13425 cat >>confdefs.h <<_ACEOF
13426 #define HAVE_STDINT_H_WITH_UINTMAX 1
13427 _ACEOF
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
13433 $as_echo_n "checking for unsigned long long... " >&6; }
13434 if ${ac_cv_type_unsigned_long_long+:} false; then :
13435 $as_echo_n "(cached) " >&6
13436 else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439 unsigned long long ull = 1; int i = 63;
13441 main ()
13443 unsigned long long ullmax = (unsigned long long) -1;
13444 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
13446 return 0;
13448 _ACEOF
13449 if ac_fn_c_try_link "$LINENO"; then :
13450 ac_cv_type_unsigned_long_long=yes
13451 else
13452 ac_cv_type_unsigned_long_long=no
13454 rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
13458 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
13459 if test $ac_cv_type_unsigned_long_long = yes; then
13461 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
13468 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
13470 test $ac_cv_type_unsigned_long_long = yes \
13471 && ac_type='unsigned long long' \
13472 || ac_type='unsigned long'
13474 cat >>confdefs.h <<_ACEOF
13475 #define uintmax_t $ac_type
13476 _ACEOF
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
13482 $as_echo_n "checking for inttypes.h... " >&6; }
13483 if ${gt_cv_header_inttypes_h+:} false; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 #include <sys/types.h>
13490 #include <inttypes.h>
13492 main ()
13496 return 0;
13498 _ACEOF
13499 if ac_fn_c_try_compile "$LINENO"; then :
13500 gt_cv_header_inttypes_h=yes
13501 else
13502 gt_cv_header_inttypes_h=no
13504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
13508 $as_echo "$gt_cv_header_inttypes_h" >&6; }
13509 if test $gt_cv_header_inttypes_h = yes; then
13511 cat >>confdefs.h <<_ACEOF
13512 #define HAVE_INTTYPES_H 1
13513 _ACEOF
13519 if test $gt_cv_header_inttypes_h = yes; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
13521 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
13522 if ${gt_cv_inttypes_pri_broken+:} false; then :
13523 $as_echo_n "(cached) " >&6
13524 else
13526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13527 /* end confdefs.h. */
13528 #include <inttypes.h>
13529 #ifdef PRId32
13530 char *p = PRId32;
13531 #endif
13534 main ()
13538 return 0;
13540 _ACEOF
13541 if ac_fn_c_try_compile "$LINENO"; then :
13542 gt_cv_inttypes_pri_broken=no
13543 else
13544 gt_cv_inttypes_pri_broken=yes
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
13550 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
13552 if test "$gt_cv_inttypes_pri_broken" = yes; then
13554 cat >>confdefs.h <<_ACEOF
13555 #define PRI_MACROS_BROKEN 1
13556 _ACEOF
13561 if test "X$prefix" = "XNONE"; then
13562 acl_final_prefix="$ac_default_prefix"
13563 else
13564 acl_final_prefix="$prefix"
13566 if test "X$exec_prefix" = "XNONE"; then
13567 acl_final_exec_prefix='${prefix}'
13568 else
13569 acl_final_exec_prefix="$exec_prefix"
13571 acl_save_prefix="$prefix"
13572 prefix="$acl_final_prefix"
13573 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13574 prefix="$acl_save_prefix"
13577 # Check whether --with-gnu-ld was given.
13578 if test "${with_gnu_ld+set}" = set; then :
13579 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13580 else
13581 with_gnu_ld=no
13584 ac_prog=ld
13585 if test "$GCC" = yes; then
13586 # Check if gcc -print-prog-name=ld gives a path.
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13588 $as_echo_n "checking for ld used by GCC... " >&6; }
13589 case $host in
13590 *-*-mingw*)
13591 # gcc leaves a trailing carriage return which upsets mingw
13592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13595 esac
13596 case $ac_prog in
13597 # Accept absolute paths.
13598 [\\/]* | [A-Za-z]:[\\/]*)
13599 re_direlt='/[^/][^/]*/\.\./'
13600 # Canonicalize the path of ld
13601 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13602 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13603 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13604 done
13605 test -z "$LD" && LD="$ac_prog"
13608 # If it fails, then pretend we aren't using GCC.
13609 ac_prog=ld
13612 # If it is relative, then search for the first ld in PATH.
13613 with_gnu_ld=unknown
13615 esac
13616 elif test "$with_gnu_ld" = yes; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13618 $as_echo_n "checking for GNU ld... " >&6; }
13619 else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13621 $as_echo_n "checking for non-GNU ld... " >&6; }
13623 if ${acl_cv_path_LD+:} false; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 if test -z "$LD"; then
13627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13628 for ac_dir in $PATH; do
13629 test -z "$ac_dir" && ac_dir=.
13630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13631 acl_cv_path_LD="$ac_dir/$ac_prog"
13632 # Check to see if the program is GNU ld. I'd rather use --version,
13633 # but apparently some GNU ld's only accept -v.
13634 # Break only if it was the GNU/non-GNU ld that we prefer.
13635 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13636 test "$with_gnu_ld" != no && break
13637 else
13638 test "$with_gnu_ld" != yes && break
13641 done
13642 IFS="$ac_save_ifs"
13643 else
13644 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13648 LD="$acl_cv_path_LD"
13649 if test -n "$LD"; then
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13651 $as_echo "$LD" >&6; }
13652 else
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13654 $as_echo "no" >&6; }
13656 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13658 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13659 if ${acl_cv_prog_gnu_ld+:} false; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13663 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13664 acl_cv_prog_gnu_ld=yes
13665 else
13666 acl_cv_prog_gnu_ld=no
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13670 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13671 with_gnu_ld=$acl_cv_prog_gnu_ld
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13676 $as_echo_n "checking for shared library run path origin... " >&6; }
13677 if ${acl_cv_rpath+:} false; then :
13678 $as_echo_n "(cached) " >&6
13679 else
13681 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13682 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13683 . ./conftest.sh
13684 rm -f ./conftest.sh
13685 acl_cv_rpath=done
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13689 $as_echo "$acl_cv_rpath" >&6; }
13690 wl="$acl_cv_wl"
13691 libext="$acl_cv_libext"
13692 shlibext="$acl_cv_shlibext"
13693 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13694 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13695 hardcode_direct="$acl_cv_hardcode_direct"
13696 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13697 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
13698 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
13699 # Check whether --enable-rpath was given.
13700 if test "${enable_rpath+set}" = set; then :
13701 enableval=$enable_rpath; :
13702 else
13703 enable_rpath=yes
13713 use_additional=yes
13715 acl_save_prefix="$prefix"
13716 prefix="$acl_final_prefix"
13717 acl_save_exec_prefix="$exec_prefix"
13718 exec_prefix="$acl_final_exec_prefix"
13720 eval additional_includedir=\"$includedir\"
13721 eval additional_libdir=\"$libdir\"
13723 exec_prefix="$acl_save_exec_prefix"
13724 prefix="$acl_save_prefix"
13727 # Check whether --with-libiconv-prefix was given.
13728 if test "${with_libiconv_prefix+set}" = set; then :
13729 withval=$with_libiconv_prefix;
13730 if test "X$withval" = "Xno"; then
13731 use_additional=no
13732 else
13733 if test "X$withval" = "X"; then
13735 acl_save_prefix="$prefix"
13736 prefix="$acl_final_prefix"
13737 acl_save_exec_prefix="$exec_prefix"
13738 exec_prefix="$acl_final_exec_prefix"
13740 eval additional_includedir=\"$includedir\"
13741 eval additional_libdir=\"$libdir\"
13743 exec_prefix="$acl_save_exec_prefix"
13744 prefix="$acl_save_prefix"
13746 else
13747 additional_includedir="$withval/include"
13748 additional_libdir="$withval/lib"
13754 LIBICONV=
13755 LTLIBICONV=
13756 INCICONV=
13757 rpathdirs=
13758 ltrpathdirs=
13759 names_already_handled=
13760 names_next_round='iconv '
13761 while test -n "$names_next_round"; do
13762 names_this_round="$names_next_round"
13763 names_next_round=
13764 for name in $names_this_round; do
13765 already_handled=
13766 for n in $names_already_handled; do
13767 if test "$n" = "$name"; then
13768 already_handled=yes
13769 break
13771 done
13772 if test -z "$already_handled"; then
13773 names_already_handled="$names_already_handled $name"
13774 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13775 eval value=\"\$HAVE_LIB$uppername\"
13776 if test -n "$value"; then
13777 if test "$value" = yes; then
13778 eval value=\"\$LIB$uppername\"
13779 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13780 eval value=\"\$LTLIB$uppername\"
13781 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13782 else
13785 else
13786 found_dir=
13787 found_la=
13788 found_so=
13789 found_a=
13790 if test $use_additional = yes; then
13791 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13792 found_dir="$additional_libdir"
13793 found_so="$additional_libdir/lib$name.$shlibext"
13794 if test -f "$additional_libdir/lib$name.la"; then
13795 found_la="$additional_libdir/lib$name.la"
13797 else
13798 if test -f "$additional_libdir/lib$name.$libext"; then
13799 found_dir="$additional_libdir"
13800 found_a="$additional_libdir/lib$name.$libext"
13801 if test -f "$additional_libdir/lib$name.la"; then
13802 found_la="$additional_libdir/lib$name.la"
13807 if test "X$found_dir" = "X"; then
13808 for x in $LDFLAGS $LTLIBICONV; do
13810 acl_save_prefix="$prefix"
13811 prefix="$acl_final_prefix"
13812 acl_save_exec_prefix="$exec_prefix"
13813 exec_prefix="$acl_final_exec_prefix"
13814 eval x=\"$x\"
13815 exec_prefix="$acl_save_exec_prefix"
13816 prefix="$acl_save_prefix"
13818 case "$x" in
13819 -L*)
13820 dir=`echo "X$x" | sed -e 's/^X-L//'`
13821 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13822 found_dir="$dir"
13823 found_so="$dir/lib$name.$shlibext"
13824 if test -f "$dir/lib$name.la"; then
13825 found_la="$dir/lib$name.la"
13827 else
13828 if test -f "$dir/lib$name.$libext"; then
13829 found_dir="$dir"
13830 found_a="$dir/lib$name.$libext"
13831 if test -f "$dir/lib$name.la"; then
13832 found_la="$dir/lib$name.la"
13837 esac
13838 if test "X$found_dir" != "X"; then
13839 break
13841 done
13843 if test "X$found_dir" != "X"; then
13844 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13845 if test "X$found_so" != "X"; then
13846 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13847 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13848 else
13849 haveit=
13850 for x in $ltrpathdirs; do
13851 if test "X$x" = "X$found_dir"; then
13852 haveit=yes
13853 break
13855 done
13856 if test -z "$haveit"; then
13857 ltrpathdirs="$ltrpathdirs $found_dir"
13859 if test "$hardcode_direct" = yes; then
13860 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13861 else
13862 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13863 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13864 haveit=
13865 for x in $rpathdirs; do
13866 if test "X$x" = "X$found_dir"; then
13867 haveit=yes
13868 break
13870 done
13871 if test -z "$haveit"; then
13872 rpathdirs="$rpathdirs $found_dir"
13874 else
13875 haveit=
13876 for x in $LDFLAGS $LIBICONV; do
13878 acl_save_prefix="$prefix"
13879 prefix="$acl_final_prefix"
13880 acl_save_exec_prefix="$exec_prefix"
13881 exec_prefix="$acl_final_exec_prefix"
13882 eval x=\"$x\"
13883 exec_prefix="$acl_save_exec_prefix"
13884 prefix="$acl_save_prefix"
13886 if test "X$x" = "X-L$found_dir"; then
13887 haveit=yes
13888 break
13890 done
13891 if test -z "$haveit"; then
13892 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13894 if test "$hardcode_minus_L" != no; then
13895 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13896 else
13897 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13902 else
13903 if test "X$found_a" != "X"; then
13904 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13905 else
13906 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13909 additional_includedir=
13910 case "$found_dir" in
13911 */lib | */lib/)
13912 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13913 additional_includedir="$basedir/include"
13915 esac
13916 if test "X$additional_includedir" != "X"; then
13917 if test "X$additional_includedir" != "X/usr/include"; then
13918 haveit=
13919 if test "X$additional_includedir" = "X/usr/local/include"; then
13920 if test -n "$GCC"; then
13921 case $host_os in
13922 linux*) haveit=yes;;
13923 esac
13926 if test -z "$haveit"; then
13927 for x in $CPPFLAGS $INCICONV; do
13929 acl_save_prefix="$prefix"
13930 prefix="$acl_final_prefix"
13931 acl_save_exec_prefix="$exec_prefix"
13932 exec_prefix="$acl_final_exec_prefix"
13933 eval x=\"$x\"
13934 exec_prefix="$acl_save_exec_prefix"
13935 prefix="$acl_save_prefix"
13937 if test "X$x" = "X-I$additional_includedir"; then
13938 haveit=yes
13939 break
13941 done
13942 if test -z "$haveit"; then
13943 if test -d "$additional_includedir"; then
13944 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13950 if test -n "$found_la"; then
13951 save_libdir="$libdir"
13952 case "$found_la" in
13953 */* | *\\*) . "$found_la" ;;
13954 *) . "./$found_la" ;;
13955 esac
13956 libdir="$save_libdir"
13957 for dep in $dependency_libs; do
13958 case "$dep" in
13959 -L*)
13960 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13961 if test "X$additional_libdir" != "X/usr/lib"; then
13962 haveit=
13963 if test "X$additional_libdir" = "X/usr/local/lib"; then
13964 if test -n "$GCC"; then
13965 case $host_os in
13966 linux*) haveit=yes;;
13967 esac
13970 if test -z "$haveit"; then
13971 haveit=
13972 for x in $LDFLAGS $LIBICONV; do
13974 acl_save_prefix="$prefix"
13975 prefix="$acl_final_prefix"
13976 acl_save_exec_prefix="$exec_prefix"
13977 exec_prefix="$acl_final_exec_prefix"
13978 eval x=\"$x\"
13979 exec_prefix="$acl_save_exec_prefix"
13980 prefix="$acl_save_prefix"
13982 if test "X$x" = "X-L$additional_libdir"; then
13983 haveit=yes
13984 break
13986 done
13987 if test -z "$haveit"; then
13988 if test -d "$additional_libdir"; then
13989 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13992 haveit=
13993 for x in $LDFLAGS $LTLIBICONV; do
13995 acl_save_prefix="$prefix"
13996 prefix="$acl_final_prefix"
13997 acl_save_exec_prefix="$exec_prefix"
13998 exec_prefix="$acl_final_exec_prefix"
13999 eval x=\"$x\"
14000 exec_prefix="$acl_save_exec_prefix"
14001 prefix="$acl_save_prefix"
14003 if test "X$x" = "X-L$additional_libdir"; then
14004 haveit=yes
14005 break
14007 done
14008 if test -z "$haveit"; then
14009 if test -d "$additional_libdir"; then
14010 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14016 -R*)
14017 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14018 if test "$enable_rpath" != no; then
14019 haveit=
14020 for x in $rpathdirs; do
14021 if test "X$x" = "X$dir"; then
14022 haveit=yes
14023 break
14025 done
14026 if test -z "$haveit"; then
14027 rpathdirs="$rpathdirs $dir"
14029 haveit=
14030 for x in $ltrpathdirs; do
14031 if test "X$x" = "X$dir"; then
14032 haveit=yes
14033 break
14035 done
14036 if test -z "$haveit"; then
14037 ltrpathdirs="$ltrpathdirs $dir"
14041 -l*)
14042 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14044 *.la)
14045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14048 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14049 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14051 esac
14052 done
14054 else
14055 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14056 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14060 done
14061 done
14062 if test "X$rpathdirs" != "X"; then
14063 if test -n "$hardcode_libdir_separator"; then
14064 alldirs=
14065 for found_dir in $rpathdirs; do
14066 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14067 done
14068 acl_save_libdir="$libdir"
14069 libdir="$alldirs"
14070 eval flag=\"$hardcode_libdir_flag_spec\"
14071 libdir="$acl_save_libdir"
14072 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14073 else
14074 for found_dir in $rpathdirs; do
14075 acl_save_libdir="$libdir"
14076 libdir="$found_dir"
14077 eval flag=\"$hardcode_libdir_flag_spec\"
14078 libdir="$acl_save_libdir"
14079 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14080 done
14083 if test "X$ltrpathdirs" != "X"; then
14084 for found_dir in $ltrpathdirs; do
14085 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14086 done
14092 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14093 stdlib.h string.h unistd.h sys/param.h
14094 do :
14095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14096 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14098 cat >>confdefs.h <<_ACEOF
14099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14100 _ACEOF
14104 done
14106 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
14107 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
14108 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14109 do :
14110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14111 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14112 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14113 cat >>confdefs.h <<_ACEOF
14114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14115 _ACEOF
14118 done
14126 am_save_CPPFLAGS="$CPPFLAGS"
14128 for element in $INCICONV; do
14129 haveit=
14130 for x in $CPPFLAGS; do
14132 acl_save_prefix="$prefix"
14133 prefix="$acl_final_prefix"
14134 acl_save_exec_prefix="$exec_prefix"
14135 exec_prefix="$acl_final_exec_prefix"
14136 eval x=\"$x\"
14137 exec_prefix="$acl_save_exec_prefix"
14138 prefix="$acl_save_prefix"
14140 if test "X$x" = "X$element"; then
14141 haveit=yes
14142 break
14144 done
14145 if test -z "$haveit"; then
14146 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14148 done
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14152 $as_echo_n "checking for iconv... " >&6; }
14153 if ${am_cv_func_iconv+:} false; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14157 am_cv_func_iconv="no, consider installing GNU libiconv"
14158 am_cv_lib_iconv=no
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 #include <stdlib.h>
14162 #include <iconv.h>
14164 main ()
14166 iconv_t cd = iconv_open("","");
14167 iconv(cd,NULL,NULL,NULL,NULL);
14168 iconv_close(cd);
14170 return 0;
14172 _ACEOF
14173 if ac_fn_c_try_link "$LINENO"; then :
14174 am_cv_func_iconv=yes
14176 rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
14178 if test "$am_cv_func_iconv" != yes; then
14179 am_save_LIBS="$LIBS"
14180 LIBS="$LIBS $LIBICONV"
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 #include <stdlib.h>
14184 #include <iconv.h>
14186 main ()
14188 iconv_t cd = iconv_open("","");
14189 iconv(cd,NULL,NULL,NULL,NULL);
14190 iconv_close(cd);
14192 return 0;
14194 _ACEOF
14195 if ac_fn_c_try_link "$LINENO"; then :
14196 am_cv_lib_iconv=yes
14197 am_cv_func_iconv=yes
14199 rm -f core conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
14201 LIBS="$am_save_LIBS"
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14206 $as_echo "$am_cv_func_iconv" >&6; }
14207 if test "$am_cv_func_iconv" = yes; then
14209 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14212 if test "$am_cv_lib_iconv" = yes; then
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14214 $as_echo_n "checking how to link with libiconv... " >&6; }
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14216 $as_echo "$LIBICONV" >&6; }
14217 else
14218 CPPFLAGS="$am_save_CPPFLAGS"
14219 LIBICONV=
14220 LTLIBICONV=
14225 if test "$am_cv_func_iconv" = yes; then
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14227 $as_echo_n "checking for iconv declaration... " >&6; }
14228 if ${am_cv_proto_iconv+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14235 #include <stdlib.h>
14236 #include <iconv.h>
14237 extern
14238 #ifdef __cplusplus
14240 #endif
14241 #if defined(__STDC__) || defined(__cplusplus)
14242 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14243 #else
14244 size_t iconv();
14245 #endif
14248 main ()
14252 return 0;
14254 _ACEOF
14255 if ac_fn_c_try_compile "$LINENO"; then :
14256 am_cv_proto_iconv_arg1=""
14257 else
14258 am_cv_proto_iconv_arg1="const"
14260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14261 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);"
14264 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14266 }$am_cv_proto_iconv" >&5
14267 $as_echo "${ac_t:-
14268 }$am_cv_proto_iconv" >&6; }
14270 cat >>confdefs.h <<_ACEOF
14271 #define ICONV_CONST $am_cv_proto_iconv_arg1
14272 _ACEOF
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
14278 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
14279 if ${am_cv_langinfo_codeset+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #include <langinfo.h>
14286 main ()
14288 char* cs = nl_langinfo(CODESET);
14290 return 0;
14292 _ACEOF
14293 if ac_fn_c_try_link "$LINENO"; then :
14294 am_cv_langinfo_codeset=yes
14295 else
14296 am_cv_langinfo_codeset=no
14298 rm -f core conftest.err conftest.$ac_objext \
14299 conftest$ac_exeext conftest.$ac_ext
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
14303 $as_echo "$am_cv_langinfo_codeset" >&6; }
14304 if test $am_cv_langinfo_codeset = yes; then
14306 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
14310 if test $ac_cv_header_locale_h = yes; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14313 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14314 if ${am_cv_val_LC_MESSAGES+:} false; then :
14315 $as_echo_n "(cached) " >&6
14316 else
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319 #include <locale.h>
14321 main ()
14323 return LC_MESSAGES
14325 return 0;
14327 _ACEOF
14328 if ac_fn_c_try_link "$LINENO"; then :
14329 am_cv_val_LC_MESSAGES=yes
14330 else
14331 am_cv_val_LC_MESSAGES=no
14333 rm -f core conftest.err conftest.$ac_objext \
14334 conftest$ac_exeext conftest.$ac_ext
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14337 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14338 if test $am_cv_val_LC_MESSAGES = yes; then
14340 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14346 for ac_prog in bison
14348 # Extract the first word of "$ac_prog", so it can be a program name with args.
14349 set dummy $ac_prog; ac_word=$2
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14351 $as_echo_n "checking for $ac_word... " >&6; }
14352 if ${ac_cv_prog_INTLBISON+:} false; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 if test -n "$INTLBISON"; then
14356 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
14357 else
14358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359 for as_dir in $PATH
14361 IFS=$as_save_IFS
14362 test -z "$as_dir" && as_dir=.
14363 for ac_exec_ext in '' $ac_executable_extensions; do
14364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14365 ac_cv_prog_INTLBISON="$ac_prog"
14366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14367 break 2
14369 done
14370 done
14371 IFS=$as_save_IFS
14375 INTLBISON=$ac_cv_prog_INTLBISON
14376 if test -n "$INTLBISON"; then
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
14378 $as_echo "$INTLBISON" >&6; }
14379 else
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381 $as_echo "no" >&6; }
14385 test -n "$INTLBISON" && break
14386 done
14388 if test -z "$INTLBISON"; then
14389 ac_verc_fail=yes
14390 else
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
14392 $as_echo_n "checking version of bison... " >&6; }
14393 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
14394 case $ac_prog_version in
14395 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
14396 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
14397 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
14398 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
14399 esac
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
14401 $as_echo "$ac_prog_version" >&6; }
14403 if test $ac_verc_fail = yes; then
14404 INTLBISON=:
14409 # Check whether --with-language was given.
14410 if test "${with_language+set}" = set; then :
14411 withval=$with_language; if test "$withval" != "all"; then :
14412 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14432 $as_echo_n "checking whether NLS is requested... " >&6; }
14433 # Check whether --enable-nls was given.
14434 if test "${enable_nls+set}" = set; then :
14435 enableval=$enable_nls; USE_NLS=$enableval
14436 else
14437 USE_NLS=yes
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14441 $as_echo "$USE_NLS" >&6; }
14445 BUILD_INCLUDED_LIBINTL=no
14446 USE_INCLUDED_LIBINTL=no
14448 LIBINTL=
14449 LTLIBINTL=
14450 POSUB=
14452 if test "$USE_NLS" = "yes"; then
14453 gt_use_preinstalled_gnugettext=no
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
14456 $as_echo_n "checking whether included gettext is requested... " >&6; }
14458 # Check whether --with-included-gettext was given.
14459 if test "${with_included_gettext+set}" = set; then :
14460 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
14461 else
14462 nls_cv_force_use_gnu_gettext=no
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
14466 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
14468 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14469 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14477 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14478 if ${gt_cv_func_gnugettext2_libc+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 #include <libintl.h>
14484 extern int _nl_msg_cat_cntr;
14485 extern int *_nl_domain_bindings;
14487 main ()
14489 bindtextdomain ("", "");
14490 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14492 return 0;
14494 _ACEOF
14495 if ac_fn_c_try_link "$LINENO"; then :
14496 gt_cv_func_gnugettext2_libc=yes
14497 else
14498 gt_cv_func_gnugettext2_libc=no
14500 rm -f core conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
14504 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
14506 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
14510 use_additional=yes
14512 acl_save_prefix="$prefix"
14513 prefix="$acl_final_prefix"
14514 acl_save_exec_prefix="$exec_prefix"
14515 exec_prefix="$acl_final_exec_prefix"
14517 eval additional_includedir=\"$includedir\"
14518 eval additional_libdir=\"$libdir\"
14520 exec_prefix="$acl_save_exec_prefix"
14521 prefix="$acl_save_prefix"
14524 # Check whether --with-libintl-prefix was given.
14525 if test "${with_libintl_prefix+set}" = set; then :
14526 withval=$with_libintl_prefix;
14527 if test "X$withval" = "Xno"; then
14528 use_additional=no
14529 else
14530 if test "X$withval" = "X"; then
14532 acl_save_prefix="$prefix"
14533 prefix="$acl_final_prefix"
14534 acl_save_exec_prefix="$exec_prefix"
14535 exec_prefix="$acl_final_exec_prefix"
14537 eval additional_includedir=\"$includedir\"
14538 eval additional_libdir=\"$libdir\"
14540 exec_prefix="$acl_save_exec_prefix"
14541 prefix="$acl_save_prefix"
14543 else
14544 additional_includedir="$withval/include"
14545 additional_libdir="$withval/lib"
14551 LIBINTL=
14552 LTLIBINTL=
14553 INCINTL=
14554 rpathdirs=
14555 ltrpathdirs=
14556 names_already_handled=
14557 names_next_round='intl '
14558 while test -n "$names_next_round"; do
14559 names_this_round="$names_next_round"
14560 names_next_round=
14561 for name in $names_this_round; do
14562 already_handled=
14563 for n in $names_already_handled; do
14564 if test "$n" = "$name"; then
14565 already_handled=yes
14566 break
14568 done
14569 if test -z "$already_handled"; then
14570 names_already_handled="$names_already_handled $name"
14571 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14572 eval value=\"\$HAVE_LIB$uppername\"
14573 if test -n "$value"; then
14574 if test "$value" = yes; then
14575 eval value=\"\$LIB$uppername\"
14576 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14577 eval value=\"\$LTLIB$uppername\"
14578 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14579 else
14582 else
14583 found_dir=
14584 found_la=
14585 found_so=
14586 found_a=
14587 if test $use_additional = yes; then
14588 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14589 found_dir="$additional_libdir"
14590 found_so="$additional_libdir/lib$name.$shlibext"
14591 if test -f "$additional_libdir/lib$name.la"; then
14592 found_la="$additional_libdir/lib$name.la"
14594 else
14595 if test -f "$additional_libdir/lib$name.$libext"; then
14596 found_dir="$additional_libdir"
14597 found_a="$additional_libdir/lib$name.$libext"
14598 if test -f "$additional_libdir/lib$name.la"; then
14599 found_la="$additional_libdir/lib$name.la"
14604 if test "X$found_dir" = "X"; then
14605 for x in $LDFLAGS $LTLIBINTL; do
14607 acl_save_prefix="$prefix"
14608 prefix="$acl_final_prefix"
14609 acl_save_exec_prefix="$exec_prefix"
14610 exec_prefix="$acl_final_exec_prefix"
14611 eval x=\"$x\"
14612 exec_prefix="$acl_save_exec_prefix"
14613 prefix="$acl_save_prefix"
14615 case "$x" in
14616 -L*)
14617 dir=`echo "X$x" | sed -e 's/^X-L//'`
14618 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14619 found_dir="$dir"
14620 found_so="$dir/lib$name.$shlibext"
14621 if test -f "$dir/lib$name.la"; then
14622 found_la="$dir/lib$name.la"
14624 else
14625 if test -f "$dir/lib$name.$libext"; then
14626 found_dir="$dir"
14627 found_a="$dir/lib$name.$libext"
14628 if test -f "$dir/lib$name.la"; then
14629 found_la="$dir/lib$name.la"
14634 esac
14635 if test "X$found_dir" != "X"; then
14636 break
14638 done
14640 if test "X$found_dir" != "X"; then
14641 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14642 if test "X$found_so" != "X"; then
14643 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14644 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14645 else
14646 haveit=
14647 for x in $ltrpathdirs; do
14648 if test "X$x" = "X$found_dir"; then
14649 haveit=yes
14650 break
14652 done
14653 if test -z "$haveit"; then
14654 ltrpathdirs="$ltrpathdirs $found_dir"
14656 if test "$hardcode_direct" = yes; then
14657 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14658 else
14659 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14660 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14661 haveit=
14662 for x in $rpathdirs; do
14663 if test "X$x" = "X$found_dir"; then
14664 haveit=yes
14665 break
14667 done
14668 if test -z "$haveit"; then
14669 rpathdirs="$rpathdirs $found_dir"
14671 else
14672 haveit=
14673 for x in $LDFLAGS $LIBINTL; do
14675 acl_save_prefix="$prefix"
14676 prefix="$acl_final_prefix"
14677 acl_save_exec_prefix="$exec_prefix"
14678 exec_prefix="$acl_final_exec_prefix"
14679 eval x=\"$x\"
14680 exec_prefix="$acl_save_exec_prefix"
14681 prefix="$acl_save_prefix"
14683 if test "X$x" = "X-L$found_dir"; then
14684 haveit=yes
14685 break
14687 done
14688 if test -z "$haveit"; then
14689 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14691 if test "$hardcode_minus_L" != no; then
14692 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14693 else
14694 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14699 else
14700 if test "X$found_a" != "X"; then
14701 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14702 else
14703 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14706 additional_includedir=
14707 case "$found_dir" in
14708 */lib | */lib/)
14709 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14710 additional_includedir="$basedir/include"
14712 esac
14713 if test "X$additional_includedir" != "X"; then
14714 if test "X$additional_includedir" != "X/usr/include"; then
14715 haveit=
14716 if test "X$additional_includedir" = "X/usr/local/include"; then
14717 if test -n "$GCC"; then
14718 case $host_os in
14719 linux*) haveit=yes;;
14720 esac
14723 if test -z "$haveit"; then
14724 for x in $CPPFLAGS $INCINTL; do
14726 acl_save_prefix="$prefix"
14727 prefix="$acl_final_prefix"
14728 acl_save_exec_prefix="$exec_prefix"
14729 exec_prefix="$acl_final_exec_prefix"
14730 eval x=\"$x\"
14731 exec_prefix="$acl_save_exec_prefix"
14732 prefix="$acl_save_prefix"
14734 if test "X$x" = "X-I$additional_includedir"; then
14735 haveit=yes
14736 break
14738 done
14739 if test -z "$haveit"; then
14740 if test -d "$additional_includedir"; then
14741 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14747 if test -n "$found_la"; then
14748 save_libdir="$libdir"
14749 case "$found_la" in
14750 */* | *\\*) . "$found_la" ;;
14751 *) . "./$found_la" ;;
14752 esac
14753 libdir="$save_libdir"
14754 for dep in $dependency_libs; do
14755 case "$dep" in
14756 -L*)
14757 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14758 if test "X$additional_libdir" != "X/usr/lib"; then
14759 haveit=
14760 if test "X$additional_libdir" = "X/usr/local/lib"; then
14761 if test -n "$GCC"; then
14762 case $host_os in
14763 linux*) haveit=yes;;
14764 esac
14767 if test -z "$haveit"; then
14768 haveit=
14769 for x in $LDFLAGS $LIBINTL; do
14771 acl_save_prefix="$prefix"
14772 prefix="$acl_final_prefix"
14773 acl_save_exec_prefix="$exec_prefix"
14774 exec_prefix="$acl_final_exec_prefix"
14775 eval x=\"$x\"
14776 exec_prefix="$acl_save_exec_prefix"
14777 prefix="$acl_save_prefix"
14779 if test "X$x" = "X-L$additional_libdir"; then
14780 haveit=yes
14781 break
14783 done
14784 if test -z "$haveit"; then
14785 if test -d "$additional_libdir"; then
14786 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14789 haveit=
14790 for x in $LDFLAGS $LTLIBINTL; do
14792 acl_save_prefix="$prefix"
14793 prefix="$acl_final_prefix"
14794 acl_save_exec_prefix="$exec_prefix"
14795 exec_prefix="$acl_final_exec_prefix"
14796 eval x=\"$x\"
14797 exec_prefix="$acl_save_exec_prefix"
14798 prefix="$acl_save_prefix"
14800 if test "X$x" = "X-L$additional_libdir"; then
14801 haveit=yes
14802 break
14804 done
14805 if test -z "$haveit"; then
14806 if test -d "$additional_libdir"; then
14807 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14813 -R*)
14814 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14815 if test "$enable_rpath" != no; then
14816 haveit=
14817 for x in $rpathdirs; do
14818 if test "X$x" = "X$dir"; then
14819 haveit=yes
14820 break
14822 done
14823 if test -z "$haveit"; then
14824 rpathdirs="$rpathdirs $dir"
14826 haveit=
14827 for x in $ltrpathdirs; do
14828 if test "X$x" = "X$dir"; then
14829 haveit=yes
14830 break
14832 done
14833 if test -z "$haveit"; then
14834 ltrpathdirs="$ltrpathdirs $dir"
14838 -l*)
14839 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14841 *.la)
14842 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14845 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14846 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14848 esac
14849 done
14851 else
14852 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14853 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14857 done
14858 done
14859 if test "X$rpathdirs" != "X"; then
14860 if test -n "$hardcode_libdir_separator"; then
14861 alldirs=
14862 for found_dir in $rpathdirs; do
14863 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14864 done
14865 acl_save_libdir="$libdir"
14866 libdir="$alldirs"
14867 eval flag=\"$hardcode_libdir_flag_spec\"
14868 libdir="$acl_save_libdir"
14869 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14870 else
14871 for found_dir in $rpathdirs; do
14872 acl_save_libdir="$libdir"
14873 libdir="$found_dir"
14874 eval flag=\"$hardcode_libdir_flag_spec\"
14875 libdir="$acl_save_libdir"
14876 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14877 done
14880 if test "X$ltrpathdirs" != "X"; then
14881 for found_dir in $ltrpathdirs; do
14882 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14883 done
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14887 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14888 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
14889 $as_echo_n "(cached) " >&6
14890 else
14891 gt_save_CPPFLAGS="$CPPFLAGS"
14892 CPPFLAGS="$CPPFLAGS $INCINTL"
14893 gt_save_LIBS="$LIBS"
14894 LIBS="$LIBS $LIBINTL"
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h. */
14897 #include <libintl.h>
14898 extern int _nl_msg_cat_cntr;
14899 extern
14900 #ifdef __cplusplus
14902 #endif
14903 const char *_nl_expand_alias ();
14905 main ()
14907 bindtextdomain ("", "");
14908 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14910 return 0;
14912 _ACEOF
14913 if ac_fn_c_try_link "$LINENO"; then :
14914 gt_cv_func_gnugettext2_libintl=yes
14915 else
14916 gt_cv_func_gnugettext2_libintl=no
14918 rm -f core conftest.err conftest.$ac_objext \
14919 conftest$ac_exeext conftest.$ac_ext
14920 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
14921 LIBS="$LIBS $LIBICONV"
14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923 /* end confdefs.h. */
14924 #include <libintl.h>
14925 extern int _nl_msg_cat_cntr;
14926 extern
14927 #ifdef __cplusplus
14929 #endif
14930 const char *_nl_expand_alias ();
14932 main ()
14934 bindtextdomain ("", "");
14935 return (long) gettext ("") + (long) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
14937 return 0;
14939 _ACEOF
14940 if ac_fn_c_try_link "$LINENO"; then :
14941 LIBINTL="$LIBINTL $LIBICONV"
14942 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14943 gt_cv_func_gnugettext2_libintl=yes
14946 rm -f core conftest.err conftest.$ac_objext \
14947 conftest$ac_exeext conftest.$ac_ext
14949 CPPFLAGS="$gt_save_CPPFLAGS"
14950 LIBS="$gt_save_LIBS"
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
14953 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
14956 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
14957 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
14958 && test "$PACKAGE" != gettext; }; then
14959 gt_use_preinstalled_gnugettext=yes
14960 else
14961 LIBINTL=
14962 LTLIBINTL=
14963 INCINTL=
14967 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14968 nls_cv_use_gnu_gettext=yes
14972 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14973 INTLOBJS="\$(GETTOBJS)"
14974 BUILD_INCLUDED_LIBINTL=yes
14975 USE_INCLUDED_LIBINTL=yes
14976 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14977 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14978 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14981 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14982 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14983 CATOBJEXT=.gmo
14987 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14988 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14990 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14992 else
14993 USE_NLS=no
14997 if test "$USE_NLS" = "yes"; then
14999 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15000 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15002 $as_echo_n "checking how to link with libintl... " >&6; }
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15004 $as_echo "$LIBINTL" >&6; }
15006 for element in $INCINTL; do
15007 haveit=
15008 for x in $CPPFLAGS; do
15010 acl_save_prefix="$prefix"
15011 prefix="$acl_final_prefix"
15012 acl_save_exec_prefix="$exec_prefix"
15013 exec_prefix="$acl_final_exec_prefix"
15014 eval x=\"$x\"
15015 exec_prefix="$acl_save_exec_prefix"
15016 prefix="$acl_save_prefix"
15018 if test "X$x" = "X$element"; then
15019 haveit=yes
15020 break
15022 done
15023 if test -z "$haveit"; then
15024 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15026 done
15031 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15034 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15038 POSUB=po
15042 if test "$PACKAGE" = gettext; then
15043 BUILD_INCLUDED_LIBINTL=yes
15051 nls_cv_header_intl=
15052 nls_cv_header_libgt=
15054 DATADIRNAME=share
15057 INSTOBJEXT=.mo
15060 GENCAT=gencat
15063 INTL_LIBTOOL_SUFFIX_PREFIX=
15067 INTLLIBS="$LIBINTL"
15074 if test $USE_INCLUDED_LIBINTL = yes; then :
15075 INCINTL=-I\${top_builddir}/intl
15078 if test x$USE_NLS = xyes; then :
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
15081 $as_echo_n "checking for autopoint... " >&6; }
15082 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
15083 if test -n "$autopoint_version"; then :
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
15086 $as_echo "yes ($autopoint_version)" >&6; }
15089 else
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15093 USE_NLS=no
15098 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15100 You need to install GNU gettext/gettext-tools to compile aMule with
15101 i18n support." >&5
15102 $as_echo "$as_me: WARNING:
15103 You need to install GNU gettext/gettext-tools to compile aMule with
15104 i18n support." >&2;}
15105 _mule_warning_12=yes
15106 _mule_has_warnings=yes
15110 if test ${USE_NLS:-no} = yes; then :
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
15113 $as_echo_n "checking for requested languages... " >&6; }
15114 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
15116 if test ${enable_amule_daemon:-no} = yes; then :
15118 if test -z "$LINGUAS"; then :
15119 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
15120 else
15122 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15123 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
15126 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
15128 else
15129 AMULE_DAEMON_MANPAGES=
15134 if test ${enable_amulecmd:-no} = yes; then :
15136 if test -z "$LINGUAS"; then :
15137 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
15138 else
15140 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15141 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
15144 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
15146 else
15147 AMULECMD_MANPAGES=
15152 if test ${enable_webserver:-no} = yes; then :
15154 if test -z "$LINGUAS"; then :
15155 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
15156 else
15158 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15159 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
15162 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
15164 else
15165 WEBSERVER_MANPAGES=
15170 if test ${enable_amule_gui:-no} = yes; then :
15172 if test -z "$LINGUAS"; then :
15173 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
15174 else
15176 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15177 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
15180 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
15182 else
15183 AMULE_GUI_MANPAGES=
15188 if test ${enable_cas:-no} = yes; then :
15190 if test -z "$LINGUAS"; then :
15191 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
15192 else
15194 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15195 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
15198 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
15200 else
15201 CAS_MANPAGES=
15206 if test ${enable_wxcas:-no} = yes; then :
15208 if test -z "$LINGUAS"; then :
15209 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
15210 else
15212 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15213 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
15216 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
15218 else
15219 WXCAS_MANPAGES=
15224 if test ${enable_ed2k:-yes} = yes; then :
15226 if test -z "$LINGUAS"; then :
15227 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
15228 else
15230 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15231 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
15234 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
15236 else
15237 ED2K_MANPAGES=
15242 if test ${enable_alc:-no} = yes; then :
15244 if test -z "$LINGUAS"; then :
15245 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
15246 else
15248 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15249 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
15252 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
15254 else
15255 ALC_MANPAGES=
15260 if test ${enable_alcc:-no} = yes; then :
15262 if test -z "$LINGUAS"; then :
15263 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
15264 else
15266 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15267 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
15270 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
15272 else
15273 ALCC_MANPAGES=
15278 if test ${enable_monolithic:-yes} = yes; then :
15280 if test -z "$LINGUAS"; then :
15281 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
15282 else
15284 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
15285 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
15288 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
15290 else
15291 MONOLITHIC_MANPAGES=
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
15296 $as_echo "${LINGUAS:-all}" >&6; }
15301 ac_ext=cpp
15302 ac_cpp='$CXXCPP $CPPFLAGS'
15303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15309 # Check for bfd.h (to have proper backtraces without using wxExecute)
15311 for ac_header in ansidecl.h bfd.h
15312 do :
15313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15314 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15316 cat >>confdefs.h <<_ACEOF
15317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15318 _ACEOF
15322 done
15324 if test $ac_cv_header_ansidecl_h = yes -a $ac_cv_header_bfd_h = yes; then :
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link with bfd" >&5
15327 $as_echo_n "checking for libraries required to link with bfd... " >&6; }
15328 if ${mule_cv_lib_bfd+:} false; then :
15329 $as_echo_n "(cached) " >&6
15330 else
15332 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
15333 # Doing some black magic to prevent multiple tests for the same set of
15334 # libraries when any of the shell variables above expand to nothing.
15335 echo $bfd_ldadd
15336 done | sed -e 's/^ *//;s/ *$//;s/ */ /g' | ${AWK} '!x[$0]++' >conftest.bfd_ldadd
15337 while read bfd_ldadd; do
15338 mule_backup_LIBS="$LIBS"
15339 mule_backup_LDFLAGS="$LDFLAGS"
15340 LIBS="${bfd_ldadd} $LIBS"
15341 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15346 #include <ansidecl.h>
15347 #include <bfd.h>
15350 main ()
15352 const char *dummy = bfd_errmsg(bfd_get_error());
15354 return 0;
15357 _ACEOF
15358 if ac_fn_cxx_try_link "$LINENO"; then :
15360 LIBS="$mule_backup_LIBS"
15361 LDFLAGS="$mule_backup_LDFLAGS"
15362 mule_cv_lib_bfd="${bfd_ldadd}"
15365 rm -f core conftest.err conftest.$ac_objext \
15366 conftest$ac_exeext conftest.$ac_ext
15367 LIBS="$mule_backup_LIBS"
15368 LDFLAGS="$mule_backup_LDFLAGS"
15369 if ${mule_cv_lib_bfd+:} false; then :
15370 break
15372 done <conftest.bfd_ldadd
15373 rm -f conftest.bfd_ldadd
15378 if ${mule_cv_lib_bfd+:} false; then :
15380 BFD_CPPFLAGS="-DHAVE_BFD"
15381 BFD_LIBS="${mule_cv_lib_bfd}"
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${BFD_LIBS:-none required}" >&5
15383 $as_echo "${BFD_LIBS:-none required}" >&6; }
15385 else
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15388 $as_echo "not found" >&6; }
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15390 Cannot link to the library containing the bfd functions." >&5
15391 $as_echo "$as_me: WARNING:
15392 Cannot link to the library containing the bfd functions." >&2;}
15393 _mule_warning_13=yes
15394 _mule_has_warnings=yes
15399 else
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15402 bfd.h not found or unusable, please install binutils development
15403 package if you are a developer or want to help testing aMule" >&5
15404 $as_echo "$as_me: WARNING:
15405 bfd.h not found or unusable, please install binutils development
15406 package if you are a developer or want to help testing aMule" >&2;}
15407 _mule_warning_14=yes
15408 _mule_has_warnings=yes
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
15416 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15421 #include <execinfo.h>
15424 main ()
15427 void *bt[1];
15428 int n = backtrace((void **)&bt, 1);
15429 char **bt_syms = backtrace_symbols(bt, n);
15432 return 0;
15435 _ACEOF
15436 if ac_fn_cxx_try_link "$LINENO"; then :
15439 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15442 $as_echo "yes" >&6; }
15444 else
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15447 $as_echo "no" >&6; }
15450 rm -f core conftest.err conftest.$ac_objext \
15451 conftest$ac_exeext conftest.$ac_ext
15455 # aMule plasma widget
15456 if test ${enable_plasmamule:-no} = yes; then :
15459 if test -z ${QT_MOC}; then :
15461 for ac_prog in moc-qt4 moc
15463 # Extract the first word of "$ac_prog", so it can be a program name with args.
15464 set dummy $ac_prog; ac_word=$2
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15466 $as_echo_n "checking for $ac_word... " >&6; }
15467 if ${ac_cv_path_QT_MOC+:} false; then :
15468 $as_echo_n "(cached) " >&6
15469 else
15470 case $QT_MOC in
15471 [\\/]* | ?:[\\/]*)
15472 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15476 for as_dir in $PATH
15478 IFS=$as_save_IFS
15479 test -z "$as_dir" && as_dir=.
15480 for ac_exec_ext in '' $ac_executable_extensions; do
15481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15482 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15484 break 2
15486 done
15487 done
15488 IFS=$as_save_IFS
15491 esac
15493 QT_MOC=$ac_cv_path_QT_MOC
15494 if test -n "$QT_MOC"; then
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15496 $as_echo "$QT_MOC" >&6; }
15497 else
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15499 $as_echo "no" >&6; }
15503 test -n "$QT_MOC" && break
15504 done
15506 if test -z ${QT_MOC}; then :
15508 echo moc not found
15509 exit 1
15513 else
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15516 $as_echo_n "checking for moc... " >&6; }
15517 if test -x ${QT_MOC}; then :
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15520 $as_echo "${QT_MOC}" >&6; }
15523 else
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15526 $as_echo "\"not found\"" >&6; }
15527 QT_MOC="not found"
15528 exit 1
15535 if test "${QT_MOC}" != "not found"; then :
15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15538 $as_echo_n "checking for moc version >= 4... " >&6; }
15539 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15540 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15543 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15545 else
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15548 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15549 QT_MOC="not found"
15550 exit 1
15556 if test "${QT_MOC}" = "not found"; then :
15557 enable_plasmamule=disabled
15560 if test ${enable_plasmamule:-no} = yes; then :
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15565 $as_echo_n "checking for qt... " >&6; }
15566 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15569 $as_echo "found" >&6; }
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15571 $as_echo_n "checking for qt core cflags... " >&6; }
15572 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15574 $as_echo "$QT_CORE_CFLAGS" >&6; }
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15576 $as_echo_n "checking for qt core libs... " >&6; }
15577 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15579 $as_echo "$QT_CORE_LIBS" >&6; }
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15581 $as_echo_n "checking for qt gui cflags... " >&6; }
15582 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15584 $as_echo "$QT_GUI_CFLAGS" >&6; }
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15586 $as_echo_n "checking for qt gui libs... " >&6; }
15587 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15589 $as_echo "$QT_GUI_LIBS" >&6; }
15591 else
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15593 $as_echo "not found" >&6; }
15594 exit 1
15598 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15600 QT_DBUS_LDFLAGS="-lQtDBus"
15610 if test -z "${QT_CORE_CXXFLAGS}"; then :
15611 enable_plasmamule=disabled
15616 if test ${enable_plasmamule:-no} = yes; then :
15619 if test -z ${KDE4_CONFIG}; then :
15621 # Extract the first word of "kde4-config", so it can be a program name with args.
15622 set dummy kde4-config; ac_word=$2
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15624 $as_echo_n "checking for $ac_word... " >&6; }
15625 if ${ac_cv_path_KDE4_CONFIG+:} false; then :
15626 $as_echo_n "(cached) " >&6
15627 else
15628 case $KDE4_CONFIG in
15629 [\\/]* | ?:[\\/]*)
15630 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15634 for as_dir in $PATH
15636 IFS=$as_save_IFS
15637 test -z "$as_dir" && as_dir=.
15638 for ac_exec_ext in '' $ac_executable_extensions; do
15639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15640 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15642 break 2
15644 done
15645 done
15646 IFS=$as_save_IFS
15649 esac
15651 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15652 if test -n "$KDE4_CONFIG"; then
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15654 $as_echo "$KDE4_CONFIG" >&6; }
15655 else
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15657 $as_echo "no" >&6; }
15662 else
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15665 $as_echo_n "checking for kde4-config... " >&6; }
15666 if test ! -x KDE4_CONFIG; then :
15668 KDE4_CONFIG="not found"
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15670 $as_echo "not found" >&6; }
15671 exit 1
15677 if test "${KDE4_CONFIG}" != "not found"; then :
15679 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15680 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15683 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15685 else
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15688 $as_echo "at least version 4 required" >&6; }
15689 exit 1
15693 else
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15696 $as_echo "not found" >&6; }
15697 exit 1
15702 if test "${KDE4_CONFIG}" = "not found"; then :
15703 enable_plasmamule=disabled
15708 if test ${enable_plasmamule:-no} = yes; then :
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15712 $as_echo_n "checking for kde4 headers... " >&6; }
15713 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15715 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15717 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15720 $as_echo "${KDE_HEADER_DIR}" >&6; }
15722 else
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15725 $as_echo "dataengine.h not found" >&6; }
15726 exit 1
15730 else
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15733 $as_echo "kdirwatch.h not found" >&6; }
15734 exit 1
15739 if test -z ${KDE_HEADER_DIR}; then :
15740 enable_plasmamule=disabled
15745 if test ${enable_plasmamule:-no} = yes; then :
15747 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15748 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15753 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15754 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15756 KDE_IN_HOME="yes"
15759 if test ${KDE_IN_HOME} = "yes"; then :
15761 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15763 else
15765 if test -n ${prefix}; then :
15767 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15768 if test -n ${KDE_APPLNK_PATH}; then :
15770 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15774 else
15776 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15782 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15788 $as_echo_n "checking for kde4 services Path... " >&6; }
15789 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15791 KDE_IN_HOME="yes"
15794 if test ${KDE_IN_HOME} = "yes"; then :
15796 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15798 else
15800 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15804 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15810 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15811 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15813 KDE_IN_HOME="yes"
15816 if test ${KDE_IN_HOME} = "yes"; then :
15818 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15820 else
15822 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15826 $as_echo "${KDE_MODULE_PATH}" >&6; }
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15832 $as_echo_n "checking for kde4 icons Path... " >&6; }
15833 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15835 KDE_IN_HOME="yes"
15838 if test ${KDE_IN_HOME} = "yes"; then :
15840 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15842 else
15844 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15847 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15849 $as_echo "${KDE_ICON_PATH}" >&6; }
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15855 $as_echo_n "checking for location for mime-type installation... " >&6; }
15856 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15858 KDE_IN_HOME="yes"
15861 if test ${KDE_IN_HOME} = "yes"; then :
15863 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15865 else
15867 if test -n ${prefix}; then :
15869 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15870 if test -n ${KDE_MIME_PATH}; then :
15872 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15876 else
15878 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15884 $as_echo "${KDE_MIME_PATH}" >&6; }
15888 else
15889 enable_plasmamule=disabled
15894 if test ${enable_debug:-yes} = yes; then :
15896 DEBUGFLAG="-D__DEBUG__"
15904 # Check for readline library
15905 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
15908 $as_echo_n "checking for a readline compatible library... " >&6; }
15909 if ${vl_cv_lib_readline+:} false; then :
15910 $as_echo_n "(cached) " >&6
15911 else
15913 ORIG_LIBS="$LIBS"
15914 for readline_lib in readline edit editline; do
15915 for termcap_lib in "" termcap curses ncurses; do
15916 if test -z "$termcap_lib"; then
15917 TRY_LIB="-l$readline_lib"
15918 else
15919 TRY_LIB="-l$readline_lib -l$termcap_lib"
15921 LIBS="$ORIG_LIBS $TRY_LIB"
15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15925 /* Override any GCC internal prototype to avoid an error.
15926 Use char because int might match the return type of a GCC
15927 builtin and then its argument prototype would still apply. */
15928 #ifdef __cplusplus
15929 extern "C"
15930 #endif
15931 char readline ();
15933 main ()
15935 return readline ();
15937 return 0;
15939 _ACEOF
15940 if ac_fn_cxx_try_link "$LINENO"; then :
15941 vl_cv_lib_readline="$TRY_LIB"
15943 rm -f core conftest.err conftest.$ac_objext \
15944 conftest$ac_exeext conftest.$ac_ext
15945 if test -n "$vl_cv_lib_readline"; then
15946 break
15948 done
15949 if test -n "$vl_cv_lib_readline"; then
15950 break
15952 done
15953 if test -z "$vl_cv_lib_readline"; then
15954 vl_cv_lib_readline="no"
15955 LIBS="$ORIG_LIBS"
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
15960 $as_echo "$vl_cv_lib_readline" >&6; }
15962 if test "$vl_cv_lib_readline" != "no"; then
15963 have_readline_headers=no
15964 for ac_header in readline/readline.h readline.h
15965 do :
15966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15967 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15969 cat >>confdefs.h <<_ACEOF
15970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15971 _ACEOF
15972 have_readline_headers=yes ; break
15975 done
15977 if test "$have_readline_headers" = "yes"; then
15978 READLINE_LIBS="$vl_cv_lib_readline"
15980 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15982 else
15983 READLINE_LIBS=
15984 vl_cv_lib_readline=no
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15987 $as_echo_n "checking whether readline supports history... " >&6; }
15988 if ${vl_cv_lib_readline_history+:} false; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15992 vl_cv_lib_readline_history="no"
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15996 /* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
15999 #ifdef __cplusplus
16000 extern "C"
16001 #endif
16002 char add_history ();
16004 main ()
16006 return add_history ();
16008 return 0;
16010 _ACEOF
16011 if ac_fn_cxx_try_link "$LINENO"; then :
16012 vl_cv_lib_readline_history="yes"
16014 rm -f core conftest.err conftest.$ac_objext \
16015 conftest$ac_exeext conftest.$ac_ext
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
16019 $as_echo "$vl_cv_lib_readline_history" >&6; }
16020 if test "$vl_cv_lib_readline_history" = "yes"; then
16021 have_readline_history_headers=no
16022 for ac_header in readline/history.h history.h
16023 do :
16024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16025 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16027 cat >>confdefs.h <<_ACEOF
16028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16029 _ACEOF
16030 have_readline_history_headers=yes ; break
16033 done
16035 if test "$have_readline_history_headers" = "yes"; then
16037 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
16039 else
16040 vl_cv_lib_readline_history=no
16043 else
16044 READLINE_LIBS=""
16051 ac_ext=c
16052 ac_cpp='$CPP $CPPFLAGS'
16053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16058 # Check for strerror_r
16059 mule_backup_CPPFLAGS="$CPPFLAGS"
16060 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
16061 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16062 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16063 ac_have_decl=1
16064 else
16065 ac_have_decl=0
16068 cat >>confdefs.h <<_ACEOF
16069 #define HAVE_DECL_STRERROR_R $ac_have_decl
16070 _ACEOF
16072 for ac_func in strerror_r
16073 do :
16074 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16075 if test "x$ac_cv_func_strerror_r" = xyes; then :
16076 cat >>confdefs.h <<_ACEOF
16077 #define HAVE_STRERROR_R 1
16078 _ACEOF
16081 done
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16084 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16085 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16086 $as_echo_n "(cached) " >&6
16087 else
16089 ac_cv_func_strerror_r_char_p=no
16090 if test $ac_cv_have_decl_strerror_r = yes; then
16091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16092 /* end confdefs.h. */
16093 $ac_includes_default
16095 main ()
16098 char buf[100];
16099 char x = *strerror_r (0, buf, sizeof buf);
16100 char *p = strerror_r (0, buf, sizeof buf);
16101 return !p || x;
16104 return 0;
16106 _ACEOF
16107 if ac_fn_c_try_compile "$LINENO"; then :
16108 ac_cv_func_strerror_r_char_p=yes
16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16111 else
16112 # strerror_r is not declared. Choose between
16113 # systems that have relatively inaccessible declarations for the
16114 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16115 # former has a strerror_r that returns char*, while the latter
16116 # has a strerror_r that returns `int'.
16117 # This test should segfault on the DEC system.
16118 if test "$cross_compiling" = yes; then :
16120 else
16121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16122 /* end confdefs.h. */
16123 $ac_includes_default
16124 extern char *strerror_r ();
16126 main ()
16128 char buf[100];
16129 char x = *strerror_r (0, buf, sizeof buf);
16130 return ! isalpha (x);
16132 return 0;
16134 _ACEOF
16135 if ac_fn_c_try_run "$LINENO"; then :
16136 ac_cv_func_strerror_r_char_p=yes
16138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16139 conftest.$ac_objext conftest.beam conftest.$ac_ext
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16146 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16147 if test $ac_cv_func_strerror_r_char_p = yes; then
16149 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16153 CPPFLAGS="$mule_backup_CPPFLAGS"
16156 # Other tests
16158 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
16160 $as_echo_n "checking for docdir... " >&6; }
16161 if test -z "$docdir"; then :
16162 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
16165 $as_echo "$docdir" >&6; }
16168 # Try to set the SVN checkout-date
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
16170 $as_echo_n "checking for SVNDATE... " >&6; }
16171 modified=
16172 if test -f "$srcdir/.svn-revision"; then
16173 svndate="rev. `cat $srcdir/.svn-revision`"
16174 elif test -d "$srcdir"/.svn; then
16175 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'`"
16176 elif test -d "$srcdir"/.git; then
16178 git_revision=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%h'`
16179 if test -n "`git --git-dir="$srcdir"/.git --work-tree="$srcdir" status --porcelain --untracked-files=no`" ; then
16180 modified="+"
16182 if test -f $srcdir/.git/svn/.metadata ; then
16183 git_sha=`git --git-dir="$srcdir"/.git log --max-count=1 --pretty='tformat:%H'`
16184 svndate=`git --git-dir="$srcdir"/.git rev-list ${git_sha} | while read sha; do
16185 svn_revision=\`git --git-dir="$srcdir"/.git svn find-rev \${sha}\`
16186 if test -n "\${svn_revision}" ; then
16187 if test \${sha} = ${git_sha} ; then
16188 echo "rev. \${svn_revision}${modified}"
16189 else
16190 echo "rev. \${svn_revision}+g${git_revision}${modified}"
16192 break
16194 done`
16195 else
16196 svndate="rev. g${git_revision}${modified}"
16199 elif test -d "$srcdir"/.hg; then
16201 hg_revision=`hg --cwd "$srcdir" identify --id`
16202 hg_revid=${hg_revision%+}
16203 if test ${hg_revision} != ${hg_revid} ; then
16204 modified="+"
16206 if test -f "$srcdir"/.hg/svn/uuid ; then
16207 svndate=`hg --cwd "$srcdir" log --follow --template='r{svnrev} {node|short}\n' | while read svn_revision hg_sha; do
16208 if test \${svn_revision} != r ; then
16209 if test \${hg_sha} = ${hg_revid} ; then
16210 echo "rev. \${svn_revision#r}${modified}"
16211 else
16212 echo "rev. \${svn_revision#r}+h${hg_revision}"
16214 break
16216 done`
16217 else
16218 svndate="rev. h${hg_revision}"
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
16225 $as_echo "${svndate:-None required}" >&6; }
16226 if test -n "$svndate"; then :
16229 cat >>confdefs.h <<_ACEOF
16230 #define SVNDATE "$svndate"
16231 _ACEOF
16233 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
16236 SVNDATE=$svndate
16241 # Check whether --with-denoise-level was given.
16242 if test "${with_denoise_level+set}" = set; then :
16243 withval=$with_denoise_level;
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
16248 $as_echo_n "checking denoising level... " >&6; }
16249 if test ${with_denoise_level:-5} = yes; then :
16250 with_denoise_level=5
16252 if test ${with_denoise_level:-5} = no; then :
16253 with_denoise_level=0
16255 if test ${with_denoise_level:-5} -gt 4; then :
16256 if test "${svndate:+set}" = "set"; then :
16257 with_denoise_level=0
16258 else
16259 with_denoise_level=4
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
16263 $as_echo "$with_denoise_level" >&6; }
16265 ac_config_commands="$ac_config_commands denoiser"
16270 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
16272 # Check whether --enable-ccache was given.
16273 if test "${enable_ccache+set}" = set; then :
16274 enableval=$enable_ccache;
16280 # Check whether --with-ccache-prefix was given.
16281 if test "${with_ccache_prefix+set}" = set; then :
16282 withval=$with_ccache_prefix;
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
16287 $as_echo_n "checking whether ccache support should be added... " >&6; }
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16289 $as_echo "${enable_ccache:-no}" >&6; }
16291 if test ${enable_ccache:-no} = yes; then :
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
16294 $as_echo_n "checking for ccache presence... " >&6; }
16295 if test -z "$with_ccache_prefix"; then :
16297 ccache_full=`which ccache`
16298 with_ccache_prefix=`dirname ${ccache_full}`
16301 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
16303 CC="$with_ccache_prefix/ccache $CC"
16304 CXX="$with_ccache_prefix/ccache $CXX"
16305 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
16307 else
16308 enable_ccache=no
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
16311 $as_echo "${enable_ccache:-no}" >&6; }
16318 if test x$SYS = xwin32; then
16319 SYS_WIN32_TRUE=
16320 SYS_WIN32_FALSE='#'
16321 else
16322 SYS_WIN32_TRUE='#'
16323 SYS_WIN32_FALSE=
16326 if test x$SYS = xwin32 -a "$RC" != ":" -a x$WX_PORT = xmsw; then
16327 NEED_RC_TRUE=
16328 NEED_RC_FALSE='#'
16329 else
16330 NEED_RC_TRUE='#'
16331 NEED_RC_FALSE=
16334 if test x$SYS = xdarwin; then
16335 NEED_CORESERVICES_TRUE=
16336 NEED_CORESERVICES_FALSE='#'
16337 else
16338 NEED_CORESERVICES_TRUE='#'
16339 NEED_CORESERVICES_FALSE=
16342 if test x$USE_NLS = xyes; then
16343 COMPILE_NLS_TRUE=
16344 COMPILE_NLS_FALSE='#'
16345 else
16346 COMPILE_NLS_TRUE='#'
16347 COMPILE_NLS_FALSE=
16350 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then
16351 INSTALL_SKINS_TRUE=
16352 INSTALL_SKINS_FALSE='#'
16353 else
16354 INSTALL_SKINS_TRUE='#'
16355 INSTALL_SKINS_FALSE=
16358 if test ${enable_plasmamule:-no} = yes; then
16359 PLASMAMULE_TRUE=
16360 PLASMAMULE_FALSE='#'
16361 else
16362 PLASMAMULE_TRUE='#'
16363 PLASMAMULE_FALSE=
16367 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
16368 COMPILE_LIB_COMMON_TRUE=
16369 COMPILE_LIB_COMMON_FALSE='#'
16370 else
16371 COMPILE_LIB_COMMON_TRUE='#'
16372 COMPILE_LIB_COMMON_FALSE=
16375 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
16376 COMPILE_LIB_EC_TRUE=
16377 COMPILE_LIB_EC_FALSE='#'
16378 else
16379 COMPILE_LIB_EC_TRUE='#'
16380 COMPILE_LIB_EC_FALSE=
16384 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"
16387 if test x$SYS = xwin32; then :
16388 ac_config_files="$ac_config_files version.rc"
16391 cat >confcache <<\_ACEOF
16392 # This file is a shell script that caches the results of configure
16393 # tests run on this system so they can be shared between configure
16394 # scripts and configure runs, see configure's option --config-cache.
16395 # It is not useful on other systems. If it contains results you don't
16396 # want to keep, you may remove or edit it.
16398 # config.status only pays attention to the cache file if you give it
16399 # the --recheck option to rerun configure.
16401 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16402 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16403 # following values.
16405 _ACEOF
16407 # The following way of writing the cache mishandles newlines in values,
16408 # but we know of no workaround that is simple, portable, and efficient.
16409 # So, we kill variables containing newlines.
16410 # Ultrix sh set writes to stderr and can't be redirected directly,
16411 # and sets the high bit in the cache file unless we assign to the vars.
16413 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16414 eval ac_val=\$$ac_var
16415 case $ac_val in #(
16416 *${as_nl}*)
16417 case $ac_var in #(
16418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16419 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16420 esac
16421 case $ac_var in #(
16422 _ | IFS | as_nl) ;; #(
16423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16424 *) { eval $ac_var=; unset $ac_var;} ;;
16425 esac ;;
16426 esac
16427 done
16429 (set) 2>&1 |
16430 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16431 *${as_nl}ac_space=\ *)
16432 # `set' does not quote correctly, so add quotes: double-quote
16433 # substitution turns \\\\ into \\, and sed turns \\ into \.
16434 sed -n \
16435 "s/'/'\\\\''/g;
16436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16437 ;; #(
16439 # `set' quotes correctly as required by POSIX, so do not add quotes.
16440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16442 esac |
16443 sort
16445 sed '
16446 /^ac_cv_env_/b end
16447 t clear
16448 :clear
16449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16450 t end
16451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16452 :end' >>confcache
16453 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16454 if test -w "$cache_file"; then
16455 if test "x$cache_file" != "x/dev/null"; then
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16457 $as_echo "$as_me: updating cache $cache_file" >&6;}
16458 if test ! -f "$cache_file" || test -h "$cache_file"; then
16459 cat confcache >"$cache_file"
16460 else
16461 case $cache_file in #(
16462 */* | ?:*)
16463 mv -f confcache "$cache_file"$$ &&
16464 mv -f "$cache_file"$$ "$cache_file" ;; #(
16466 mv -f confcache "$cache_file" ;;
16467 esac
16470 else
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16472 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16475 rm -f confcache
16477 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16478 # Let make expand exec_prefix.
16479 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16481 DEFS=-DHAVE_CONFIG_H
16483 ac_libobjs=
16484 ac_ltlibobjs=
16486 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16487 # 1. Remove the extension, and $U if already installed.
16488 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16489 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16490 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16491 # will be set to the directory where LIBOBJS objects are built.
16492 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16493 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16494 done
16495 LIBOBJS=$ac_libobjs
16497 LTLIBOBJS=$ac_ltlibobjs
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16501 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16502 if test -n "$am_sleep_pid"; then
16503 # Hide warnings about reused PIDs.
16504 wait $am_sleep_pid 2>/dev/null
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16507 $as_echo "done" >&6; }
16508 if test -n "$EXEEXT"; then
16509 am__EXEEXT_TRUE=
16510 am__EXEEXT_FALSE='#'
16511 else
16512 am__EXEEXT_TRUE='#'
16513 am__EXEEXT_FALSE=
16516 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16517 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16520 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16521 as_fn_error $? "conditional \"AMDEP\" was never defined.
16522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16524 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16525 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16528 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16529 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16532 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
16533 as_fn_error $? "conditional \"MONOLITHIC\" was never defined.
16534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16536 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
16537 as_fn_error $? "conditional \"AMULE_DAEMON\" was never defined.
16538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16540 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
16541 as_fn_error $? "conditional \"COMPILE_CMD\" was never defined.
16542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16544 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
16545 as_fn_error $? "conditional \"WEB\" was never defined.
16546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16548 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
16549 as_fn_error $? "conditional \"AMULE_GUI\" was never defined.
16550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16552 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
16553 as_fn_error $? "conditional \"CAS\" was never defined.
16554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16556 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
16557 as_fn_error $? "conditional \"WXCAS\" was never defined.
16558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16560 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
16561 as_fn_error $? "conditional \"ED2K\" was never defined.
16562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16564 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
16565 as_fn_error $? "conditional \"ALC\" was never defined.
16566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16568 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
16569 as_fn_error $? "conditional \"ALCC\" was never defined.
16570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16572 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
16573 as_fn_error $? "conditional \"XAS\" was never defined.
16574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16576 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
16577 as_fn_error $? "conditional \"FILEVIEW\" was never defined.
16578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16580 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
16581 as_fn_error $? "conditional \"SYS_WIN32\" was never defined.
16582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16584 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
16585 as_fn_error $? "conditional \"NEED_RC\" was never defined.
16586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16588 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
16589 as_fn_error $? "conditional \"NEED_CORESERVICES\" was never defined.
16590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16592 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
16593 as_fn_error $? "conditional \"COMPILE_NLS\" was never defined.
16594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16596 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
16597 as_fn_error $? "conditional \"INSTALL_SKINS\" was never defined.
16598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16600 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
16601 as_fn_error $? "conditional \"PLASMAMULE\" was never defined.
16602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16604 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
16605 as_fn_error $? "conditional \"COMPILE_LIB_COMMON\" was never defined.
16606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16608 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
16609 as_fn_error $? "conditional \"COMPILE_LIB_EC\" was never defined.
16610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16613 : "${CONFIG_STATUS=./config.status}"
16614 ac_write_fail=0
16615 ac_clean_files_save=$ac_clean_files
16616 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16618 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16619 as_write_fail=0
16620 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16621 #! $SHELL
16622 # Generated by $as_me.
16623 # Run this file to recreate the current configuration.
16624 # Compiler output produced by configure, useful for debugging
16625 # configure, is in config.log if it exists.
16627 debug=false
16628 ac_cs_recheck=false
16629 ac_cs_silent=false
16631 SHELL=\${CONFIG_SHELL-$SHELL}
16632 export SHELL
16633 _ASEOF
16634 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16635 ## -------------------- ##
16636 ## M4sh Initialization. ##
16637 ## -------------------- ##
16639 # Be more Bourne compatible
16640 DUALCASE=1; export DUALCASE # for MKS sh
16641 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16642 emulate sh
16643 NULLCMD=:
16644 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16645 # is contrary to our usage. Disable this feature.
16646 alias -g '${1+"$@"}'='"$@"'
16647 setopt NO_GLOB_SUBST
16648 else
16649 case `(set -o) 2>/dev/null` in #(
16650 *posix*) :
16651 set -o posix ;; #(
16652 *) :
16654 esac
16658 as_nl='
16660 export as_nl
16661 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16662 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16663 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16664 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16665 # Prefer a ksh shell builtin over an external printf program on Solaris,
16666 # but without wasting forks for bash or zsh.
16667 if test -z "$BASH_VERSION$ZSH_VERSION" \
16668 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16669 as_echo='print -r --'
16670 as_echo_n='print -rn --'
16671 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16672 as_echo='printf %s\n'
16673 as_echo_n='printf %s'
16674 else
16675 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16676 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16677 as_echo_n='/usr/ucb/echo -n'
16678 else
16679 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16680 as_echo_n_body='eval
16681 arg=$1;
16682 case $arg in #(
16683 *"$as_nl"*)
16684 expr "X$arg" : "X\\(.*\\)$as_nl";
16685 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16686 esac;
16687 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16689 export as_echo_n_body
16690 as_echo_n='sh -c $as_echo_n_body as_echo'
16692 export as_echo_body
16693 as_echo='sh -c $as_echo_body as_echo'
16696 # The user is always right.
16697 if test "${PATH_SEPARATOR+set}" != set; then
16698 PATH_SEPARATOR=:
16699 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16700 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16701 PATH_SEPARATOR=';'
16706 # IFS
16707 # We need space, tab and new line, in precisely that order. Quoting is
16708 # there to prevent editors from complaining about space-tab.
16709 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16710 # splitting by setting IFS to empty value.)
16711 IFS=" "" $as_nl"
16713 # Find who we are. Look in the path if we contain no directory separator.
16714 as_myself=
16715 case $0 in #((
16716 *[\\/]* ) as_myself=$0 ;;
16717 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16718 for as_dir in $PATH
16720 IFS=$as_save_IFS
16721 test -z "$as_dir" && as_dir=.
16722 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16723 done
16724 IFS=$as_save_IFS
16727 esac
16728 # We did not find ourselves, most probably we were run as `sh COMMAND'
16729 # in which case we are not to be found in the path.
16730 if test "x$as_myself" = x; then
16731 as_myself=$0
16733 if test ! -f "$as_myself"; then
16734 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16735 exit 1
16738 # Unset variables that we do not need and which cause bugs (e.g. in
16739 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16740 # suppresses any "Segmentation fault" message there. '((' could
16741 # trigger a bug in pdksh 5.2.14.
16742 for as_var in BASH_ENV ENV MAIL MAILPATH
16743 do eval test x\${$as_var+set} = xset \
16744 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16745 done
16746 PS1='$ '
16747 PS2='> '
16748 PS4='+ '
16750 # NLS nuisances.
16751 LC_ALL=C
16752 export LC_ALL
16753 LANGUAGE=C
16754 export LANGUAGE
16756 # CDPATH.
16757 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16760 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16761 # ----------------------------------------
16762 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16763 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16764 # script with STATUS, using 1 if that was 0.
16765 as_fn_error ()
16767 as_status=$1; test $as_status -eq 0 && as_status=1
16768 if test "$4"; then
16769 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16770 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16772 $as_echo "$as_me: error: $2" >&2
16773 as_fn_exit $as_status
16774 } # as_fn_error
16777 # as_fn_set_status STATUS
16778 # -----------------------
16779 # Set $? to STATUS, without forking.
16780 as_fn_set_status ()
16782 return $1
16783 } # as_fn_set_status
16785 # as_fn_exit STATUS
16786 # -----------------
16787 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16788 as_fn_exit ()
16790 set +e
16791 as_fn_set_status $1
16792 exit $1
16793 } # as_fn_exit
16795 # as_fn_unset VAR
16796 # ---------------
16797 # Portably unset VAR.
16798 as_fn_unset ()
16800 { eval $1=; unset $1;}
16802 as_unset=as_fn_unset
16803 # as_fn_append VAR VALUE
16804 # ----------------------
16805 # Append the text in VALUE to the end of the definition contained in VAR. Take
16806 # advantage of any shell optimizations that allow amortized linear growth over
16807 # repeated appends, instead of the typical quadratic growth present in naive
16808 # implementations.
16809 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16810 eval 'as_fn_append ()
16812 eval $1+=\$2
16814 else
16815 as_fn_append ()
16817 eval $1=\$$1\$2
16819 fi # as_fn_append
16821 # as_fn_arith ARG...
16822 # ------------------
16823 # Perform arithmetic evaluation on the ARGs, and store the result in the
16824 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16825 # must be portable across $(()) and expr.
16826 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16827 eval 'as_fn_arith ()
16829 as_val=$(( $* ))
16831 else
16832 as_fn_arith ()
16834 as_val=`expr "$@" || test $? -eq 1`
16836 fi # as_fn_arith
16839 if expr a : '\(a\)' >/dev/null 2>&1 &&
16840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16841 as_expr=expr
16842 else
16843 as_expr=false
16846 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16847 as_basename=basename
16848 else
16849 as_basename=false
16852 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16853 as_dirname=dirname
16854 else
16855 as_dirname=false
16858 as_me=`$as_basename -- "$0" ||
16859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16860 X"$0" : 'X\(//\)$' \| \
16861 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16862 $as_echo X/"$0" |
16863 sed '/^.*\/\([^/][^/]*\)\/*$/{
16864 s//\1/
16867 /^X\/\(\/\/\)$/{
16868 s//\1/
16871 /^X\/\(\/\).*/{
16872 s//\1/
16875 s/.*/./; q'`
16877 # Avoid depending upon Character Ranges.
16878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16881 as_cr_digits='0123456789'
16882 as_cr_alnum=$as_cr_Letters$as_cr_digits
16884 ECHO_C= ECHO_N= ECHO_T=
16885 case `echo -n x` in #(((((
16886 -n*)
16887 case `echo 'xy\c'` in
16888 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16889 xy) ECHO_C='\c';;
16890 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16891 ECHO_T=' ';;
16892 esac;;
16894 ECHO_N='-n';;
16895 esac
16897 rm -f conf$$ conf$$.exe conf$$.file
16898 if test -d conf$$.dir; then
16899 rm -f conf$$.dir/conf$$.file
16900 else
16901 rm -f conf$$.dir
16902 mkdir conf$$.dir 2>/dev/null
16904 if (echo >conf$$.file) 2>/dev/null; then
16905 if ln -s conf$$.file conf$$ 2>/dev/null; then
16906 as_ln_s='ln -s'
16907 # ... but there are two gotchas:
16908 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16909 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16910 # In both cases, we have to default to `cp -pR'.
16911 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16912 as_ln_s='cp -pR'
16913 elif ln conf$$.file conf$$ 2>/dev/null; then
16914 as_ln_s=ln
16915 else
16916 as_ln_s='cp -pR'
16918 else
16919 as_ln_s='cp -pR'
16921 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16922 rmdir conf$$.dir 2>/dev/null
16925 # as_fn_mkdir_p
16926 # -------------
16927 # Create "$as_dir" as a directory, including parents if necessary.
16928 as_fn_mkdir_p ()
16931 case $as_dir in #(
16932 -*) as_dir=./$as_dir;;
16933 esac
16934 test -d "$as_dir" || eval $as_mkdir_p || {
16935 as_dirs=
16936 while :; do
16937 case $as_dir in #(
16938 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16939 *) as_qdir=$as_dir;;
16940 esac
16941 as_dirs="'$as_qdir' $as_dirs"
16942 as_dir=`$as_dirname -- "$as_dir" ||
16943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16944 X"$as_dir" : 'X\(//\)[^/]' \| \
16945 X"$as_dir" : 'X\(//\)$' \| \
16946 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16947 $as_echo X"$as_dir" |
16948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16949 s//\1/
16952 /^X\(\/\/\)[^/].*/{
16953 s//\1/
16956 /^X\(\/\/\)$/{
16957 s//\1/
16960 /^X\(\/\).*/{
16961 s//\1/
16964 s/.*/./; q'`
16965 test -d "$as_dir" && break
16966 done
16967 test -z "$as_dirs" || eval "mkdir $as_dirs"
16968 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16971 } # as_fn_mkdir_p
16972 if mkdir -p . 2>/dev/null; then
16973 as_mkdir_p='mkdir -p "$as_dir"'
16974 else
16975 test -d ./-p && rmdir ./-p
16976 as_mkdir_p=false
16980 # as_fn_executable_p FILE
16981 # -----------------------
16982 # Test if FILE is an executable regular file.
16983 as_fn_executable_p ()
16985 test -f "$1" && test -x "$1"
16986 } # as_fn_executable_p
16987 as_test_x='test -x'
16988 as_executable_p=as_fn_executable_p
16990 # Sed expression to map a string onto a valid CPP name.
16991 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16993 # Sed expression to map a string onto a valid variable name.
16994 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16997 exec 6>&1
16998 ## ----------------------------------- ##
16999 ## Main body of $CONFIG_STATUS script. ##
17000 ## ----------------------------------- ##
17001 _ASEOF
17002 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17005 # Save the log message, to keep $0 and so on meaningful, and to
17006 # report actual input values of CONFIG_FILES etc. instead of their
17007 # values after options handling.
17008 ac_log="
17009 This file was extended by aMule $as_me SVN, which was
17010 generated by GNU Autoconf 2.69. Invocation command line was
17012 CONFIG_FILES = $CONFIG_FILES
17013 CONFIG_HEADERS = $CONFIG_HEADERS
17014 CONFIG_LINKS = $CONFIG_LINKS
17015 CONFIG_COMMANDS = $CONFIG_COMMANDS
17016 $ $0 $@
17018 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17021 _ACEOF
17023 case $ac_config_files in *"
17024 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17025 esac
17027 case $ac_config_headers in *"
17028 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17029 esac
17032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17033 # Files that config.status was made for.
17034 config_files="$ac_config_files"
17035 config_headers="$ac_config_headers"
17036 config_commands="$ac_config_commands"
17038 _ACEOF
17040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17041 ac_cs_usage="\
17042 \`$as_me' instantiates files and other configuration actions
17043 from templates according to the current configuration. Unless the files
17044 and actions are specified as TAGs, all are instantiated by default.
17046 Usage: $0 [OPTION]... [TAG]...
17048 -h, --help print this help, then exit
17049 -V, --version print version number and configuration settings, then exit
17050 --config print configuration, then exit
17051 -q, --quiet, --silent
17052 do not print progress messages
17053 -d, --debug don't remove temporary files
17054 --recheck update $as_me by reconfiguring in the same conditions
17055 --file=FILE[:TEMPLATE]
17056 instantiate the configuration file FILE
17057 --header=FILE[:TEMPLATE]
17058 instantiate the configuration header FILE
17060 Configuration files:
17061 $config_files
17063 Configuration headers:
17064 $config_headers
17066 Configuration commands:
17067 $config_commands
17069 Report bugs to <admin@amule.org>."
17071 _ACEOF
17072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17073 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17074 ac_cs_version="\\
17075 aMule config.status SVN
17076 configured by $0, generated by GNU Autoconf 2.69,
17077 with options \\"\$ac_cs_config\\"
17079 Copyright (C) 2012 Free Software Foundation, Inc.
17080 This config.status script is free software; the Free Software Foundation
17081 gives unlimited permission to copy, distribute and modify it."
17083 ac_pwd='$ac_pwd'
17084 srcdir='$srcdir'
17085 INSTALL='$INSTALL'
17086 MKDIR_P='$MKDIR_P'
17087 AWK='$AWK'
17088 test -n "\$AWK" || AWK=awk
17089 _ACEOF
17091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17092 # The default lists apply if the user does not specify any file.
17093 ac_need_defaults=:
17094 while test $# != 0
17096 case $1 in
17097 --*=?*)
17098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17100 ac_shift=:
17102 --*=)
17103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17104 ac_optarg=
17105 ac_shift=:
17108 ac_option=$1
17109 ac_optarg=$2
17110 ac_shift=shift
17112 esac
17114 case $ac_option in
17115 # Handling of the options.
17116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17117 ac_cs_recheck=: ;;
17118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17119 $as_echo "$ac_cs_version"; exit ;;
17120 --config | --confi | --conf | --con | --co | --c )
17121 $as_echo "$ac_cs_config"; exit ;;
17122 --debug | --debu | --deb | --de | --d | -d )
17123 debug=: ;;
17124 --file | --fil | --fi | --f )
17125 $ac_shift
17126 case $ac_optarg in
17127 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17128 '') as_fn_error $? "missing file argument" ;;
17129 esac
17130 as_fn_append CONFIG_FILES " '$ac_optarg'"
17131 ac_need_defaults=false;;
17132 --header | --heade | --head | --hea )
17133 $ac_shift
17134 case $ac_optarg in
17135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17136 esac
17137 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17138 ac_need_defaults=false;;
17139 --he | --h)
17140 # Conflict between --help and --header
17141 as_fn_error $? "ambiguous option: \`$1'
17142 Try \`$0 --help' for more information.";;
17143 --help | --hel | -h )
17144 $as_echo "$ac_cs_usage"; exit ;;
17145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17146 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17147 ac_cs_silent=: ;;
17149 # This is an error.
17150 -*) as_fn_error $? "unrecognized option: \`$1'
17151 Try \`$0 --help' for more information." ;;
17153 *) as_fn_append ac_config_targets " $1"
17154 ac_need_defaults=false ;;
17156 esac
17157 shift
17158 done
17160 ac_configure_extra_args=
17162 if $ac_cs_silent; then
17163 exec 6>/dev/null
17164 ac_configure_extra_args="$ac_configure_extra_args --silent"
17167 _ACEOF
17168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17169 if \$ac_cs_recheck; then
17170 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17171 shift
17172 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17173 CONFIG_SHELL='$SHELL'
17174 export CONFIG_SHELL
17175 exec "\$@"
17178 _ACEOF
17179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17180 exec 5>>config.log
17182 echo
17183 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17184 ## Running $as_me. ##
17185 _ASBOX
17186 $as_echo "$ac_log"
17187 } >&5
17189 _ACEOF
17190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17192 # INIT-COMMANDS
17194 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17195 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17196 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17197 # from automake.
17198 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
17199 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17200 LINGUAS="${LINGUAS-%UNSET%}"
17202 denoiserlevel=$with_denoise_level
17204 _ACEOF
17206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17208 # Handling of arguments.
17209 for ac_config_target in $ac_config_targets
17211 case $ac_config_target in
17212 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17213 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17214 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17215 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
17216 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17217 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
17218 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
17219 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17220 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17221 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17222 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
17223 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
17224 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
17225 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
17226 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
17227 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
17228 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
17229 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
17230 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
17231 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
17232 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
17233 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
17234 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
17235 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
17236 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
17237 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
17238 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
17239 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
17240 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
17241 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
17242 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
17243 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
17244 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
17245 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
17246 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
17247 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
17248 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
17249 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
17251 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17252 esac
17253 done
17256 # If the user did not use the arguments to specify the items to instantiate,
17257 # then the envvar interface is used. Set only those that are not.
17258 # We use the long form for the default assignment because of an extremely
17259 # bizarre bug on SunOS 4.1.3.
17260 if $ac_need_defaults; then
17261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17263 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17266 # Have a temporary directory for convenience. Make it in the build tree
17267 # simply because there is no reason against having it here, and in addition,
17268 # creating and moving files from /tmp can sometimes cause problems.
17269 # Hook for its removal unless debugging.
17270 # Note that there is a small window in which the directory will not be cleaned:
17271 # after its creation but before its name has been assigned to `$tmp'.
17272 $debug ||
17274 tmp= ac_tmp=
17275 trap 'exit_status=$?
17276 : "${ac_tmp:=$tmp}"
17277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17279 trap 'as_fn_exit 1' 1 2 13 15
17281 # Create a (secure) tmp directory for tmp files.
17284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17285 test -d "$tmp"
17286 } ||
17288 tmp=./conf$$-$RANDOM
17289 (umask 077 && mkdir "$tmp")
17290 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17291 ac_tmp=$tmp
17293 # Set up the scripts for CONFIG_FILES section.
17294 # No need to generate them if there are no CONFIG_FILES.
17295 # This happens for instance with `./config.status config.h'.
17296 if test -n "$CONFIG_FILES"; then
17299 ac_cr=`echo X | tr X '\015'`
17300 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17301 # But we know of no other shell where ac_cr would be empty at this
17302 # point, so we can use a bashism as a fallback.
17303 if test "x$ac_cr" = x; then
17304 eval ac_cr=\$\'\\r\'
17306 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17307 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17308 ac_cs_awk_cr='\\r'
17309 else
17310 ac_cs_awk_cr=$ac_cr
17313 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17314 _ACEOF
17318 echo "cat >conf$$subs.awk <<_ACEOF" &&
17319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17320 echo "_ACEOF"
17321 } >conf$$subs.sh ||
17322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17323 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17324 ac_delim='%!_!# '
17325 for ac_last_try in false false false false false :; do
17326 . ./conf$$subs.sh ||
17327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17330 if test $ac_delim_n = $ac_delim_num; then
17331 break
17332 elif $ac_last_try; then
17333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17334 else
17335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17337 done
17338 rm -f conf$$subs.sh
17340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17341 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17342 _ACEOF
17343 sed -n '
17345 s/^/S["/; s/!.*/"]=/
17348 s/^[^!]*!//
17349 :repl
17350 t repl
17351 s/'"$ac_delim"'$//
17352 t delim
17355 s/\(.\{148\}\)..*/\1/
17356 t more1
17357 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17360 b repl
17361 :more1
17362 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17365 s/.\{148\}//
17366 t nl
17367 :delim
17369 s/\(.\{148\}\)..*/\1/
17370 t more2
17371 s/["\\]/\\&/g; s/^/"/; s/$/"/
17374 :more2
17375 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17378 s/.\{148\}//
17379 t delim
17380 ' <conf$$subs.awk | sed '
17381 /^[^""]/{
17383 s/\n//
17385 ' >>$CONFIG_STATUS || ac_write_fail=1
17386 rm -f conf$$subs.awk
17387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17388 _ACAWK
17389 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17390 for (key in S) S_is_set[key] = 1
17391 FS = "\a"
17395 line = $ 0
17396 nfields = split(line, field, "@")
17397 substed = 0
17398 len = length(field[1])
17399 for (i = 2; i < nfields; i++) {
17400 key = field[i]
17401 keylen = length(key)
17402 if (S_is_set[key]) {
17403 value = S[key]
17404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17405 len += length(value) + length(field[++i])
17406 substed = 1
17407 } else
17408 len += 1 + keylen
17411 print line
17414 _ACAWK
17415 _ACEOF
17416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17417 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17419 else
17421 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17423 _ACEOF
17425 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17426 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17427 # trailing colons and then remove the whole line if VPATH becomes empty
17428 # (actually we leave an empty line to preserve line numbers).
17429 if test "x$srcdir" = x.; then
17430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17432 s///
17433 s/^/:/
17434 s/[ ]*$/:/
17435 s/:\$(srcdir):/:/g
17436 s/:\${srcdir}:/:/g
17437 s/:@srcdir@:/:/g
17438 s/^:*//
17439 s/:*$//
17441 s/\(=[ ]*\).*/\1/
17443 s/\n//
17444 s/^[^=]*=[ ]*$//
17448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17449 fi # test -n "$CONFIG_FILES"
17451 # Set up the scripts for CONFIG_HEADERS section.
17452 # No need to generate them if there are no CONFIG_HEADERS.
17453 # This happens for instance with `./config.status Makefile'.
17454 if test -n "$CONFIG_HEADERS"; then
17455 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17456 BEGIN {
17457 _ACEOF
17459 # Transform confdefs.h into an awk script `defines.awk', embedded as
17460 # here-document in config.status, that substitutes the proper values into
17461 # config.h.in to produce config.h.
17463 # Create a delimiter string that does not exist in confdefs.h, to ease
17464 # handling of long lines.
17465 ac_delim='%!_!# '
17466 for ac_last_try in false false :; do
17467 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17468 if test -z "$ac_tt"; then
17469 break
17470 elif $ac_last_try; then
17471 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17472 else
17473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17475 done
17477 # For the awk script, D is an array of macro values keyed by name,
17478 # likewise P contains macro parameters if any. Preserve backslash
17479 # newline sequences.
17481 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17482 sed -n '
17483 s/.\{148\}/&'"$ac_delim"'/g
17484 t rset
17485 :rset
17486 s/^[ ]*#[ ]*define[ ][ ]*/ /
17487 t def
17489 :def
17490 s/\\$//
17491 t bsnl
17492 s/["\\]/\\&/g
17493 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17494 D["\1"]=" \3"/p
17495 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17497 :bsnl
17498 s/["\\]/\\&/g
17499 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17500 D["\1"]=" \3\\\\\\n"\\/p
17501 t cont
17502 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17503 t cont
17505 :cont
17507 s/.\{148\}/&'"$ac_delim"'/g
17508 t clear
17509 :clear
17510 s/\\$//
17511 t bsnlc
17512 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17514 :bsnlc
17515 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17516 b cont
17517 ' <confdefs.h | sed '
17518 s/'"$ac_delim"'/"\\\
17519 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17522 for (key in D) D_is_set[key] = 1
17523 FS = "\a"
17525 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17526 line = \$ 0
17527 split(line, arg, " ")
17528 if (arg[1] == "#") {
17529 defundef = arg[2]
17530 mac1 = arg[3]
17531 } else {
17532 defundef = substr(arg[1], 2)
17533 mac1 = arg[2]
17535 split(mac1, mac2, "(") #)
17536 macro = mac2[1]
17537 prefix = substr(line, 1, index(line, defundef) - 1)
17538 if (D_is_set[macro]) {
17539 # Preserve the white space surrounding the "#".
17540 print prefix "define", macro P[macro] D[macro]
17541 next
17542 } else {
17543 # Replace #undef with comments. This is necessary, for example,
17544 # in the case of _POSIX_SOURCE, which is predefined and required
17545 # on some systems where configure will not decide to define it.
17546 if (defundef == "undef") {
17547 print "/*", prefix defundef, macro, "*/"
17548 next
17552 { print }
17553 _ACAWK
17554 _ACEOF
17555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17556 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17557 fi # test -n "$CONFIG_HEADERS"
17560 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17561 shift
17562 for ac_tag
17564 case $ac_tag in
17565 :[FHLC]) ac_mode=$ac_tag; continue;;
17566 esac
17567 case $ac_mode$ac_tag in
17568 :[FHL]*:*);;
17569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17570 :[FH]-) ac_tag=-:-;;
17571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17572 esac
17573 ac_save_IFS=$IFS
17574 IFS=:
17575 set x $ac_tag
17576 IFS=$ac_save_IFS
17577 shift
17578 ac_file=$1
17579 shift
17581 case $ac_mode in
17582 :L) ac_source=$1;;
17583 :[FH])
17584 ac_file_inputs=
17585 for ac_f
17587 case $ac_f in
17588 -) ac_f="$ac_tmp/stdin";;
17589 *) # Look for the file first in the build tree, then in the source tree
17590 # (if the path is not absolute). The absolute path cannot be DOS-style,
17591 # because $ac_f cannot contain `:'.
17592 test -f "$ac_f" ||
17593 case $ac_f in
17594 [\\/$]*) false;;
17595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17596 esac ||
17597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17598 esac
17599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17600 as_fn_append ac_file_inputs " '$ac_f'"
17601 done
17603 # Let's still pretend it is `configure' which instantiates (i.e., don't
17604 # use $as_me), people would be surprised to read:
17605 # /* config.h. Generated by config.status. */
17606 configure_input='Generated from '`
17607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17608 `' by configure.'
17609 if test x"$ac_file" != x-; then
17610 configure_input="$ac_file. $configure_input"
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17612 $as_echo "$as_me: creating $ac_file" >&6;}
17614 # Neutralize special characters interpreted by sed in replacement strings.
17615 case $configure_input in #(
17616 *\&* | *\|* | *\\* )
17617 ac_sed_conf_input=`$as_echo "$configure_input" |
17618 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17619 *) ac_sed_conf_input=$configure_input;;
17620 esac
17622 case $ac_tag in
17623 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17625 esac
17627 esac
17629 ac_dir=`$as_dirname -- "$ac_file" ||
17630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17631 X"$ac_file" : 'X\(//\)[^/]' \| \
17632 X"$ac_file" : 'X\(//\)$' \| \
17633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17634 $as_echo X"$ac_file" |
17635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17636 s//\1/
17639 /^X\(\/\/\)[^/].*/{
17640 s//\1/
17643 /^X\(\/\/\)$/{
17644 s//\1/
17647 /^X\(\/\).*/{
17648 s//\1/
17651 s/.*/./; q'`
17652 as_dir="$ac_dir"; as_fn_mkdir_p
17653 ac_builddir=.
17655 case "$ac_dir" in
17656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17659 # A ".." for each directory in $ac_dir_suffix.
17660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17661 case $ac_top_builddir_sub in
17662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17664 esac ;;
17665 esac
17666 ac_abs_top_builddir=$ac_pwd
17667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17668 # for backward compatibility:
17669 ac_top_builddir=$ac_top_build_prefix
17671 case $srcdir in
17672 .) # We are building in place.
17673 ac_srcdir=.
17674 ac_top_srcdir=$ac_top_builddir_sub
17675 ac_abs_top_srcdir=$ac_pwd ;;
17676 [\\/]* | ?:[\\/]* ) # Absolute name.
17677 ac_srcdir=$srcdir$ac_dir_suffix;
17678 ac_top_srcdir=$srcdir
17679 ac_abs_top_srcdir=$srcdir ;;
17680 *) # Relative name.
17681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17682 ac_top_srcdir=$ac_top_build_prefix$srcdir
17683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17684 esac
17685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17688 case $ac_mode in
17691 # CONFIG_FILE
17694 case $INSTALL in
17695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17696 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17697 esac
17698 ac_MKDIR_P=$MKDIR_P
17699 case $MKDIR_P in
17700 [\\/$]* | ?:[\\/]* ) ;;
17701 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17702 esac
17703 _ACEOF
17705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17706 # If the template does not know about datarootdir, expand it.
17707 # FIXME: This hack should be removed a few years after 2.60.
17708 ac_datarootdir_hack=; ac_datarootdir_seen=
17709 ac_sed_dataroot='
17710 /datarootdir/ {
17714 /@datadir@/p
17715 /@docdir@/p
17716 /@infodir@/p
17717 /@localedir@/p
17718 /@mandir@/p'
17719 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17720 *datarootdir*) ac_datarootdir_seen=yes;;
17721 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17723 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17724 _ACEOF
17725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17726 ac_datarootdir_hack='
17727 s&@datadir@&$datadir&g
17728 s&@docdir@&$docdir&g
17729 s&@infodir@&$infodir&g
17730 s&@localedir@&$localedir&g
17731 s&@mandir@&$mandir&g
17732 s&\\\${datarootdir}&$datarootdir&g' ;;
17733 esac
17734 _ACEOF
17736 # Neutralize VPATH when `$srcdir' = `.'.
17737 # Shell code in configure.ac might set extrasub.
17738 # FIXME: do we really want to maintain this feature?
17739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17740 ac_sed_extra="$ac_vpsub
17741 $extrasub
17742 _ACEOF
17743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17745 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17746 s|@configure_input@|$ac_sed_conf_input|;t t
17747 s&@top_builddir@&$ac_top_builddir_sub&;t t
17748 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17749 s&@srcdir@&$ac_srcdir&;t t
17750 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17751 s&@top_srcdir@&$ac_top_srcdir&;t t
17752 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17753 s&@builddir@&$ac_builddir&;t t
17754 s&@abs_builddir@&$ac_abs_builddir&;t t
17755 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17756 s&@INSTALL@&$ac_INSTALL&;t t
17757 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17758 $ac_datarootdir_hack
17760 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17761 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17763 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17764 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17765 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17766 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17768 which seems to be undefined. Please make sure it is defined" >&5
17769 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17770 which seems to be undefined. Please make sure it is defined" >&2;}
17772 rm -f "$ac_tmp/stdin"
17773 case $ac_file in
17774 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17775 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17776 esac \
17777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17781 # CONFIG_HEADER
17783 if test x"$ac_file" != x-; then
17785 $as_echo "/* $configure_input */" \
17786 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17787 } >"$ac_tmp/config.h" \
17788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17789 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17791 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17792 else
17793 rm -f "$ac_file"
17794 mv "$ac_tmp/config.h" "$ac_file" \
17795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17797 else
17798 $as_echo "/* $configure_input */" \
17799 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17800 || as_fn_error $? "could not create -" "$LINENO" 5
17802 # Compute "$ac_file"'s index in $config_headers.
17803 _am_arg="$ac_file"
17804 _am_stamp_count=1
17805 for _am_header in $config_headers :; do
17806 case $_am_header in
17807 $_am_arg | $_am_arg:* )
17808 break ;;
17810 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17811 esac
17812 done
17813 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17814 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17815 X"$_am_arg" : 'X\(//\)[^/]' \| \
17816 X"$_am_arg" : 'X\(//\)$' \| \
17817 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17818 $as_echo X"$_am_arg" |
17819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17820 s//\1/
17823 /^X\(\/\/\)[^/].*/{
17824 s//\1/
17827 /^X\(\/\/\)$/{
17828 s//\1/
17831 /^X\(\/\).*/{
17832 s//\1/
17835 s/.*/./; q'`/stamp-h$_am_stamp_count
17838 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17839 $as_echo "$as_me: executing $ac_file commands" >&6;}
17841 esac
17844 case $ac_file$ac_mode in
17845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17846 # Older Autoconf quotes --file arguments for eval, but not when files
17847 # are listed without --file. Let's play safe and only enable the eval
17848 # if we detect the quoting.
17849 case $CONFIG_FILES in
17850 *\'*) eval set x "$CONFIG_FILES" ;;
17851 *) set x $CONFIG_FILES ;;
17852 esac
17853 shift
17854 for mf
17856 # Strip MF so we end up with the name of the file.
17857 mf=`echo "$mf" | sed -e 's/:.*$//'`
17858 # Check whether this is an Automake generated Makefile or not.
17859 # We used to match only the files named 'Makefile.in', but
17860 # some people rename them; so instead we look at the file content.
17861 # Grep'ing the first line is not enough: some people post-process
17862 # each Makefile.in and add a new line on top of each file to say so.
17863 # Grep'ing the whole file is not good either: AIX grep has a line
17864 # limit of 2048, but all sed's we know have understand at least 4000.
17865 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17866 dirpart=`$as_dirname -- "$mf" ||
17867 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17868 X"$mf" : 'X\(//\)[^/]' \| \
17869 X"$mf" : 'X\(//\)$' \| \
17870 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17871 $as_echo X"$mf" |
17872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17873 s//\1/
17876 /^X\(\/\/\)[^/].*/{
17877 s//\1/
17880 /^X\(\/\/\)$/{
17881 s//\1/
17884 /^X\(\/\).*/{
17885 s//\1/
17888 s/.*/./; q'`
17889 else
17890 continue
17892 # Extract the definition of DEPDIR, am__include, and am__quote
17893 # from the Makefile without running 'make'.
17894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17895 test -z "$DEPDIR" && continue
17896 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17897 test -z "$am__include" && continue
17898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17899 # Find all dependency output files, they are included files with
17900 # $(DEPDIR) in their names. We invoke sed twice because it is the
17901 # simplest approach to changing $(DEPDIR) to its actual value in the
17902 # expansion.
17903 for file in `sed -n "
17904 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17905 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17906 # Make sure the directory exists.
17907 test -f "$dirpart/$file" && continue
17908 fdir=`$as_dirname -- "$file" ||
17909 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17910 X"$file" : 'X\(//\)[^/]' \| \
17911 X"$file" : 'X\(//\)$' \| \
17912 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17913 $as_echo X"$file" |
17914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17915 s//\1/
17918 /^X\(\/\/\)[^/].*/{
17919 s//\1/
17922 /^X\(\/\/\)$/{
17923 s//\1/
17926 /^X\(\/\).*/{
17927 s//\1/
17930 s/.*/./; q'`
17931 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17932 # echo "creating $dirpart/$file"
17933 echo '# dummy' > "$dirpart/$file"
17934 done
17935 done
17938 "default-1":C)
17939 for ac_file in $CONFIG_FILES; do
17940 # Support "outfile[:infile[:infile...]]"
17941 case "$ac_file" in
17942 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17943 esac
17944 # PO directories have a Makefile.in generated from Makefile.in.in.
17945 case "$ac_file" in */Makefile.in)
17946 # Adjust a relative srcdir.
17947 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17948 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17949 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17950 # In autoconf-2.13 it is called $ac_given_srcdir.
17951 # In autoconf-2.50 it is called $srcdir.
17952 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17953 case "$ac_given_srcdir" in
17954 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17955 /*) top_srcdir="$ac_given_srcdir" ;;
17956 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17957 esac
17958 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17959 rm -f "$ac_dir/POTFILES"
17960 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17961 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17962 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17963 # on $ac_dir but don't depend on user-specified configuration
17964 # parameters.
17965 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17966 # The LINGUAS file contains the set of available languages.
17967 if test -n "$ALL_LINGUAS"; then
17968 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17970 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17971 # Hide the ALL_LINGUAS assigment from automake.
17972 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17974 case "$ac_given_srcdir" in
17975 .) srcdirpre= ;;
17976 *) srcdirpre='$(srcdir)/' ;;
17977 esac
17978 POFILES=
17979 GMOFILES=
17980 UPDATEPOFILES=
17981 DUMMYPOFILES=
17982 for lang in $ALL_LINGUAS; do
17983 POFILES="$POFILES $srcdirpre$lang.po"
17984 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17985 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17986 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17987 done
17988 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17989 # environment variable.
17990 INST_LINGUAS=
17991 if test -n "$ALL_LINGUAS"; then
17992 for presentlang in $ALL_LINGUAS; do
17993 useit=no
17994 if test "%UNSET%" != "$LINGUAS"; then
17995 desiredlanguages="$LINGUAS"
17996 else
17997 desiredlanguages="$ALL_LINGUAS"
17999 for desiredlang in $desiredlanguages; do
18000 # Use the presentlang catalog if desiredlang is
18001 # a. equal to presentlang, or
18002 # b. a variant of presentlang (because in this case,
18003 # presentlang can be used as a fallback for messages
18004 # which are not translated in the desiredlang catalog).
18005 case "$desiredlang" in
18006 "$presentlang"*) useit=yes;;
18007 esac
18008 done
18009 if test $useit = yes; then
18010 INST_LINGUAS="$INST_LINGUAS $presentlang"
18012 done
18014 CATALOGS=
18015 if test -n "$INST_LINGUAS"; then
18016 for lang in $INST_LINGUAS; do
18017 CATALOGS="$CATALOGS $lang.gmo"
18018 done
18020 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18021 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"
18022 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18023 if test -f "$f"; then
18024 case "$f" in
18025 *.orig | *.bak | *~) ;;
18026 *) cat "$f" >> "$ac_dir/Makefile" ;;
18027 esac
18029 done
18032 esac
18033 done ;;
18034 "denoiser":C) if test $denoiserlevel -gt 0; then
18035 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
18036 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" \
18037 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
18038 for i in `find . -name 'Makefile' -print`; do
18039 if test -n "`head -n 1 $i | grep '^#'`"; then
18040 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
18042 done
18043 fi ;;
18045 esac
18046 done # for ac_tag
18049 as_fn_exit 0
18050 _ACEOF
18051 ac_clean_files=$ac_clean_files_save
18053 test $ac_write_fail = 0 ||
18054 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18057 # configure is writing to config.log, and then calls config.status.
18058 # config.status does its own redirection, appending to config.log.
18059 # Unfortunately, on DOS this fails, as config.log is still kept open
18060 # by configure, so config.status won't be able to write to it; its
18061 # output is simply discarded. So we exec the FD to /dev/null,
18062 # effectively closing config.log, so it can be properly (re)opened and
18063 # appended to by config.status. When coming back to configure, we
18064 # need to make the FD available again.
18065 if test "$no_create" != yes; then
18066 ac_cs_success=:
18067 ac_config_status_args=
18068 test "$silent" = yes &&
18069 ac_config_status_args="$ac_config_status_args --quiet"
18070 exec 5>/dev/null
18071 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18072 exec 5>>config.log
18073 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18074 # would make configure fail if this is the last instruction.
18075 $ac_cs_success || as_fn_exit 1
18077 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18079 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18083 if test -n "$svndate"; then :
18084 SVN_REVISION=" ($svndate)"
18085 else
18086 SVN_REVISION=
18089 echo
18090 echo
18091 echo " Configure script has finished system check."
18092 echo
18093 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
18094 echo
18095 echo " aMule enabled options:"
18096 echo
18097 echo " **** aMule Core ****"
18098 echo " Prefix where aMule should be installed? ${prefix:-none}"
18099 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
18100 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
18101 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
18102 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
18103 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
18104 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
18105 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
18106 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
18107 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
18109 echo
18110 echo " **** aMule TextClient ****"
18111 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
18112 echo
18113 echo " **** aMule WebServer ****"
18114 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
18115 echo
18116 echo " **** aMule ED2K Links Handler ****"
18117 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
18118 echo
18119 echo " **** aMuleLinkCreator ****"
18120 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
18121 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
18122 echo
18123 echo " **** aMule Statistics ****"
18124 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
18125 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
18126 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
18127 echo " Should plasmaMule plasma-applet be built? ${enable_plasmamule:-no}"
18129 echo
18130 echo " **** General Libraries and Tools ****"
18131 echo " Should ccache support be enabled? ${enable_ccache:-no}"
18132 echo " Should aMule file viewer for console be built? ${enable_fileview:-no}"
18133 echo " Libraries aMule will use to build:"
18134 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 :
18136 wxinfo="$WX_PORT"
18137 if test $WX_DEBUG -eq 1; then :
18138 wxinfo="$wxinfo,debug"
18140 if test $WX_SHARED -eq 1; then :
18141 wxinfo="$wxinfo,shared"
18142 else
18143 wxinfo="$wxinfo,static"
18145 echo " wxWidgets ${WX_VERSION} ($wxinfo)"
18148 if test ${with_boost:-no} != no; then :
18149 if test ${with_boost:-no} = disabled; then
18150 echo " boost Not detected"
18151 elif test ${boost_cv_inc_path:-yes} != yes; then
18152 echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'` (in ${boost_cv_inc_path})"
18153 elif echo " boost `echo ${boost_cv_lib_version} | sed -e 's/_/./g'`"; then
18158 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
18159 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (in ${CRYPTOPP_PREFIX})"
18161 if test ${enable_upnp:-yes} = yes; then :
18163 if test -n "$with_libupnp_prefix"; then :
18164 libupnp_place=" (in $with_libupnp_prefix)"
18166 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
18169 if test ${enable_nls:-yes} = yes; then
18170 if test x$USE_NLS = xno; then :
18171 libintl_found="Not detected"
18172 else
18173 if test x$USE_INCLUDED_LIBINTL = xyes; then :
18174 libintl_found="included"
18175 else
18176 libintl_found="system"
18179 echo " libintl $libintl_found"
18181 if test ${enable_geoip:-no} = yes; then :
18182 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
18183 geoip_style=system
18184 else
18185 geoip_style=user
18187 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
18188 echo " libGeoIP ${geoip_style}"
18191 if test ${enable_webserver:-no} = yes; then :
18192 echo " libpng ${LIBPNG_VERSION:-Not detected}"
18194 if test ${enable_cas:-no} = yes; then :
18195 echo " libgd ${GDLIB_VERSION:-Not detected}"
18197 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 :
18198 echo " zlib ${ZLIB_VERSION:-Not detected}"
18200 if test ${enable_plasmamule:-no} = yes; then :
18201 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
18202 echo " qt-core-libs ${QT_CORE_LIBS}"
18203 echo " qt-gui-libs ${QT_GUI_LIBS}"
18204 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
18205 echo " kde-headers ${KDE_HEADER_DIR}"
18206 echo " kde-services-path ${KDE_SERVICE_PATH}"
18207 echo " kde-module-path ${KDE_MODULE_PATH}"
18208 echo " kde-icon-path ${KDE_ICON_PATH}"
18209 echo " kde-mime-path ${KDE_MIME_PATH}"
18210 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
18213 if test ${_mule_has_warnings:-no} = yes; then
18214 echo ""
18215 echo ""
18216 echo " *** Warnings during configuration ***"
18218 if test ${_mule_warning_0:-no} = yes; then
18219 cat <<_MULEEOT
18221 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
18222 Please check that gdlib-config is in your default path, check out
18223 LD_LIBRARY_PATH or equivalent variable.
18224 Or this might also be that your gdlib-config has other name.
18225 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
18226 /usr/bin/gdlib-config with a valid path to your gdlib-config).
18227 If you use compiled packages check if you have devel pack installed.
18228 To download the latest version check http://www.boutell.com/gd for sources.
18229 _MULEEOT
18231 if test ${_mule_warning_1:-no} = yes; then
18232 cat <<_MULEEOT
18234 * libpng >= 1.2.0 not found.
18235 amuleweb will be compiled but file download progress bar images will NOT be
18236 generated.
18237 _MULEEOT
18239 if test ${_mule_warning_2:-no} = yes; then
18240 cat <<_MULEEOT
18242 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
18243 _MULEEOT
18245 if test ${_mule_warning_3:-no} = yes; then
18246 cat <<_MULEEOT
18248 * GeoIP support has been disabled because the GeoIP libraries were not found
18249 _MULEEOT
18251 if test ${_mule_warning_4:-no} = yes; then
18252 cat <<_MULEEOT
18254 * GeoIP support has been disabled because the GeoIP header files were not
18255 found
18256 _MULEEOT
18258 if test ${_mule_warning_5:-no} = yes; then
18259 cat <<_MULEEOT
18261 * UPnP code has been disabled because ${libupnp_error}.
18262 _MULEEOT
18264 if test ${_mule_warning_6:-no} = yes; then
18265 cat <<_MULEEOT
18267 * Cross-compilation detected, so exception handling cannot be tested.
18268 Note that broken exception handling in your compiler may lead to unexpected
18269 crashes.
18270 _MULEEOT
18272 if test ${_mule_warning_7:-no} = yes; then
18273 cat <<_MULEEOT
18275 * Boost support has been disabled because Boost.System not found
18276 _MULEEOT
18278 if test ${_mule_warning_8:-no} = yes; then
18279 cat <<_MULEEOT
18281 * Boost support has been disabled because Boost.Asio not found
18282 _MULEEOT
18284 if test ${_mule_warning_9:-no} = yes; then
18285 cat <<_MULEEOT
18287 * Boost support has been disabled because Boost.Asio not found
18288 _MULEEOT
18290 if test ${_mule_warning_10:-no} = yes; then
18291 cat <<_MULEEOT
18293 * Boost support has been disabled because of insufficient Boost version.
18294 _MULEEOT
18296 if test ${_mule_warning_11:-no} = yes; then
18297 cat <<_MULEEOT
18299 * configure cannot check whether malloc() and realloc() are GNU libc
18300 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
18301 configure with the --without-gnu-malloc switch.
18302 _MULEEOT
18304 if test ${_mule_warning_12:-no} = yes; then
18305 cat <<_MULEEOT
18307 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
18308 support.
18309 _MULEEOT
18311 if test ${_mule_warning_13:-no} = yes; then
18312 cat <<_MULEEOT
18314 * Cannot link to the library containing the bfd functions.
18315 _MULEEOT
18317 if test ${_mule_warning_14:-no} = yes; then
18318 cat <<_MULEEOT
18320 * bfd.h not found or unusable, please install binutils development package if
18321 you are a developer or want to help testing aMule
18322 _MULEEOT