Dynamic adjustment of threshold for rarity of download files
[amule.git] / configure
blob52d1e20cb2ff063b7ed485d793f95e7ba7df26f0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='aMule'
554 PACKAGE_TARNAME='amule'
555 PACKAGE_VERSION='SVN'
556 PACKAGE_STRING='aMule SVN'
557 PACKAGE_BUGREPORT='admin@amule.org'
558 PACKAGE_URL=''
560 ac_unique_file="src/amule.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_header_list=
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 READLINE_LIBS
602 COMPILE_LIB_EC_FALSE
603 COMPILE_LIB_EC_TRUE
604 COMPILE_LIB_COMMON_FALSE
605 COMPILE_LIB_COMMON_TRUE
606 PLASMAMULE_FALSE
607 PLASMAMULE_TRUE
608 INSTALL_SKINS_FALSE
609 INSTALL_SKINS_TRUE
610 GENERATE_FLEX_HEADER_FALSE
611 GENERATE_FLEX_HEADER_TRUE
612 COMPILE_NLS_FALSE
613 COMPILE_NLS_TRUE
614 NEED_CORESERVICES_FALSE
615 NEED_CORESERVICES_TRUE
616 NEED_RC_FALSE
617 NEED_RC_TRUE
618 SYS_WIN32_FALSE
619 SYS_WIN32_TRUE
620 KDE_MIME_PATH
621 KDE_ICON_PATH
622 KDE_MODULE_PATH
623 KDE_SERVICE_PATH
624 KDE_APPLNK_PATH
625 KDE_HEADER_DIR
626 KDE4_CONFIG
627 QT_GUI_LIBS
628 QT_GUI_CXXFLAGS
629 QT_CORE_LIBS
630 QT_CORE_CXXFLAGS
631 QT_MOC
632 SVNDATE
633 BFD_LIBS
634 BFD_CPPFLAGS
635 INCINTL
636 MONOLITHIC_MANPAGES
637 ALCC_MANPAGES
638 ALC_MANPAGES
639 ED2K_MANPAGES
640 WXCAS_MANPAGES
641 CAS_MANPAGES
642 AMULE_GUI_MANPAGES
643 WEBSERVER_MANPAGES
644 AMULECMD_MANPAGES
645 AMULE_DAEMON_MANPAGES
646 POSUB
647 LTLIBINTL
648 LIBINTL
649 INTLLIBS
650 INTL_LIBTOOL_SUFFIX_PREFIX
651 GENCAT
652 INSTOBJEXT
653 DATADIRNAME
654 INTLOBJS
655 CATOBJEXT
656 USE_INCLUDED_LIBINTL
657 BUILD_INCLUDED_LIBINTL
658 USE_NLS
659 INTLBISON
660 LTLIBICONV
661 LIBICONV
662 GLIBC21
663 MSGMERGE
664 XGETTEXT
665 GMSGFMT
666 MSGFMT
667 MKINSTALLDIRS
668 POW_LIB
669 LIBOBJS
670 ALLOCA
671 CRYPTOPP_LIBS
672 CRYPTOPP_LDFLAGS
673 CRYPTOPP_CPPFLAGS
674 LIBUPNP_LIBS
675 LIBUPNP_LDFLAGS
676 LIBUPNP_CFLAGS
677 LIBUPNP_CPPFLAGS
678 PKG_CONFIG
679 RCFLAGS
681 WXBASE_CPPFLAGS
682 WXBASE_LIBS
683 WX_PORT
684 WX_SHARED
685 WX_DEBUG
686 WX_UNICODE
687 WX_VERSION_MINOR
688 WX_VERSION_MAJOR
689 WX_RESCOMP
690 WX_VERSION_FULL
691 WX_LIBS
692 WX_CXXFLAGS_ONLY
693 WX_CFLAGS_ONLY
694 WX_CXXFLAGS
695 WX_CFLAGS
696 WX_CPPFLAGS
697 WX_CONFIG_PATH
698 AMULEWEB_DEFS
699 LIBPNG_LIBS
700 LIBPNG_LDFLAGS
701 LIBPNG_CFLAGS
702 LIBPNG_CONFIG_PATH
703 CAS_DEFS
704 GDLIB_LIBS
705 GDLIB_LDFLAGS
706 GDLIB_CFLAGS
707 GDLIB_CONFIG_PATH
708 ZLIB_LIBS
709 ZLIB_LDFLAGS
710 ZLIB_CPPFLAGS
711 FILEVIEW_FALSE
712 FILEVIEW_TRUE
713 XAS_FALSE
714 XAS_TRUE
715 ALCC_FALSE
716 ALCC_TRUE
717 ALC_FALSE
718 ALC_TRUE
719 ED2K_FALSE
720 ED2K_TRUE
721 WXCAS_FALSE
722 WXCAS_TRUE
723 CAS_FALSE
724 CAS_TRUE
725 AMULE_GUI_FALSE
726 AMULE_GUI_TRUE
727 WEB_FALSE
728 WEB_TRUE
729 COMPILE_CMD_FALSE
730 COMPILE_CMD_TRUE
731 AMULE_DAEMON_FALSE
732 AMULE_DAEMON_TRUE
733 MONOLITHIC_FALSE
734 MONOLITHIC_TRUE
737 YFLAGS
738 YACC
739 RANLIB
740 LEXLIB
741 LEX_OUTPUT_ROOT
743 EGREP
744 GREP
745 BUILD_LDFLAGS
746 BUILD_CFLAGS
747 BUILD_CPPFLAGS
748 BUILD_EXEEXT
749 ac_ct_BUILD_CC
750 BUILD_CC
752 am__fastdepCC_FALSE
753 am__fastdepCC_TRUE
754 CCDEPMODE
755 ac_ct_CC
756 CFLAGS
758 CXXCPP
759 am__fastdepCXX_FALSE
760 am__fastdepCXX_TRUE
761 CXXDEPMODE
762 AMDEPBACKSLASH
763 AMDEP_FALSE
764 AMDEP_TRUE
765 am__quote
766 am__include
767 DEPDIR
768 OBJEXT
769 EXEEXT
770 ac_ct_CXX
771 CPPFLAGS
772 LDFLAGS
773 CXXFLAGS
775 MULERCFLAGS
776 MULELDFLAGS
777 MULECXXFLAGS
778 MULECFLAGS
779 MULECPPFLAGS
780 RESOLV_LIB
781 host_os
782 host_vendor
783 host_cpu
784 host
785 build_os
786 build_vendor
787 build_cpu
788 build
789 MAINT
790 MAINTAINER_MODE_FALSE
791 MAINTAINER_MODE_TRUE
792 am__untar
793 am__tar
794 AMTAR
795 am__leading_dot
796 SET_MAKE
798 mkdir_p
799 MKDIR_P
800 INSTALL_STRIP_PROGRAM
801 STRIP
802 install_sh
803 MAKEINFO
804 AUTOHEADER
805 AUTOMAKE
806 AUTOCONF
807 ACLOCAL
808 VERSION
809 PACKAGE
810 CYGPATH_W
811 am__isrc
812 INSTALL_DATA
813 INSTALL_SCRIPT
814 INSTALL_PROGRAM
815 target_alias
816 host_alias
817 build_alias
818 LIBS
819 ECHO_T
820 ECHO_N
821 ECHO_C
822 DEFS
823 mandir
824 localedir
825 libdir
826 psdir
827 pdfdir
828 dvidir
829 htmldir
830 infodir
831 docdir
832 oldincludedir
833 includedir
834 localstatedir
835 sharedstatedir
836 sysconfdir
837 datadir
838 datarootdir
839 libexecdir
840 sbindir
841 bindir
842 program_transform_name
843 prefix
844 exec_prefix
845 PACKAGE_URL
846 PACKAGE_BUGREPORT
847 PACKAGE_STRING
848 PACKAGE_VERSION
849 PACKAGE_TARNAME
850 PACKAGE_NAME
851 PATH_SEPARATOR
852 SHELL
853 GEOIP_LIBS
854 GEOIP_LDFLAGS
855 GEOIP_CPPFLAGS'
856 ac_subst_files=''
857 ac_user_opts='
858 enable_option_checking
859 enable_maintainer_mode
860 enable_dependency_tracking
861 enable_monolithic
862 enable_amule_daemon
863 enable_amulecmd
864 enable_webserver
865 enable_amule_gui
866 enable_cas
867 enable_wxcas
868 enable_ed2k
869 enable_alc
870 enable_alcc
871 enable_xas
872 enable_fileview
873 enable_plasmamule
874 enable_static
875 with_kde4_config
876 enable_kde_in_home
877 with_moc
878 with_gnu_malloc
879 with_zlib
880 with_gdlib_prefix
881 with_gdlib_config
882 with_libpng_prefix
883 with_libpng_config
884 enable_geoip
885 with_geoip_headers
886 with_geoip_lib
887 with_geoip_static
888 with_wxdir
889 with_wx_config
890 with_wx_prefix
891 with_wx_exec_prefix
892 with_toolkit
893 with_wxshared
894 with_wxdebug
895 with_wxversion
896 enable_upnp
897 with_libupnp_prefix
898 with_crypto_prefix
899 enable_mmap
900 with_language
901 with_gnu_ld
902 enable_rpath
903 with_libiconv_prefix
904 enable_nls
905 with_included_gettext
906 with_libintl_prefix
907 enable_debug
908 enable_profile
909 enable_optimize
910 with_denoise_level
911 enable_ccache
912 with_ccache_prefix
914 ac_precious_vars='build_alias
915 host_alias
916 target_alias
918 CXXFLAGS
919 LDFLAGS
920 LIBS
921 CPPFLAGS
923 CXXCPP
925 CFLAGS
927 YACC
928 YFLAGS
930 RCFLAGS
931 PKG_CONFIG'
934 # Initialize some variables set by options.
935 ac_init_help=
936 ac_init_version=false
937 ac_unrecognized_opts=
938 ac_unrecognized_sep=
939 # The variables have the same names as the options, with
940 # dashes changed to underlines.
941 cache_file=/dev/null
942 exec_prefix=NONE
943 no_create=
944 no_recursion=
945 prefix=NONE
946 program_prefix=NONE
947 program_suffix=NONE
948 program_transform_name=s,x,x,
949 silent=
950 site=
951 srcdir=
952 verbose=
953 x_includes=NONE
954 x_libraries=NONE
956 # Installation directory options.
957 # These are left unexpanded so users can "make install exec_prefix=/foo"
958 # and all the variables that are supposed to be based on exec_prefix
959 # by default will actually change.
960 # Use braces instead of parens because sh, perl, etc. also accept them.
961 # (The list follows the same order as the GNU Coding Standards.)
962 bindir='${exec_prefix}/bin'
963 sbindir='${exec_prefix}/sbin'
964 libexecdir='${exec_prefix}/libexec'
965 datarootdir='${prefix}/share'
966 datadir='${datarootdir}'
967 sysconfdir='${prefix}/etc'
968 sharedstatedir='${prefix}/com'
969 localstatedir='${prefix}/var'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
974 htmldir='${docdir}'
975 dvidir='${docdir}'
976 pdfdir='${docdir}'
977 psdir='${docdir}'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
982 ac_prev=
983 ac_dashdash=
984 for ac_option
986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
988 eval $ac_prev=\$ac_option
989 ac_prev=
990 continue
993 case $ac_option in
994 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 *) ac_optarg=yes ;;
996 esac
998 # Accept the important Cygnus configure options, so we can diagnose typos.
1000 case $ac_dashdash$ac_option in
1002 ac_dashdash=yes ;;
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005 ac_prev=bindir ;;
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007 bindir=$ac_optarg ;;
1009 -build | --build | --buil | --bui | --bu)
1010 ac_prev=build_alias ;;
1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012 build_alias=$ac_optarg ;;
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019 cache_file=$ac_optarg ;;
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
1024 -datadir | --datadir | --datadi | --datad)
1025 ac_prev=datadir ;;
1026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027 datadir=$ac_optarg ;;
1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1036 -disable-* | --disable-*)
1037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error "invalid feature name: $ac_useropt"
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_$ac_useropt"
1046 "*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=no ;;
1052 -docdir | --docdir | --docdi | --doc | --do)
1053 ac_prev=docdir ;;
1054 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055 docdir=$ac_optarg ;;
1057 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058 ac_prev=dvidir ;;
1059 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060 dvidir=$ac_optarg ;;
1062 -enable-* | --enable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=\$ac_optarg ;;
1078 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080 | --exec | --exe | --ex)
1081 ac_prev=exec_prefix ;;
1082 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084 | --exec=* | --exe=* | --ex=*)
1085 exec_prefix=$ac_optarg ;;
1087 -gas | --gas | --ga | --g)
1088 # Obsolete; use --with-gas.
1089 with_gas=yes ;;
1091 -help | --help | --hel | --he | -h)
1092 ac_init_help=long ;;
1093 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094 ac_init_help=recursive ;;
1095 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096 ac_init_help=short ;;
1098 -host | --host | --hos | --ho)
1099 ac_prev=host_alias ;;
1100 -host=* | --host=* | --hos=* | --ho=*)
1101 host_alias=$ac_optarg ;;
1103 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104 ac_prev=htmldir ;;
1105 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106 | --ht=*)
1107 htmldir=$ac_optarg ;;
1109 -includedir | --includedir | --includedi | --included | --include \
1110 | --includ | --inclu | --incl | --inc)
1111 ac_prev=includedir ;;
1112 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113 | --includ=* | --inclu=* | --incl=* | --inc=*)
1114 includedir=$ac_optarg ;;
1116 -infodir | --infodir | --infodi | --infod | --info | --inf)
1117 ac_prev=infodir ;;
1118 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119 infodir=$ac_optarg ;;
1121 -libdir | --libdir | --libdi | --libd)
1122 ac_prev=libdir ;;
1123 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124 libdir=$ac_optarg ;;
1126 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127 | --libexe | --libex | --libe)
1128 ac_prev=libexecdir ;;
1129 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130 | --libexe=* | --libex=* | --libe=*)
1131 libexecdir=$ac_optarg ;;
1133 -localedir | --localedir | --localedi | --localed | --locale)
1134 ac_prev=localedir ;;
1135 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136 localedir=$ac_optarg ;;
1138 -localstatedir | --localstatedir | --localstatedi | --localstated \
1139 | --localstate | --localstat | --localsta | --localst | --locals)
1140 ac_prev=localstatedir ;;
1141 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143 localstatedir=$ac_optarg ;;
1145 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146 ac_prev=mandir ;;
1147 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148 mandir=$ac_optarg ;;
1150 -nfp | --nfp | --nf)
1151 # Obsolete; use --without-fp.
1152 with_fp=no ;;
1154 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155 | --no-cr | --no-c | -n)
1156 no_create=yes ;;
1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160 no_recursion=yes ;;
1162 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164 | --oldin | --oldi | --old | --ol | --o)
1165 ac_prev=oldincludedir ;;
1166 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169 oldincludedir=$ac_optarg ;;
1171 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172 ac_prev=prefix ;;
1173 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174 prefix=$ac_optarg ;;
1176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177 | --program-pre | --program-pr | --program-p)
1178 ac_prev=program_prefix ;;
1179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181 program_prefix=$ac_optarg ;;
1183 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184 | --program-suf | --program-su | --program-s)
1185 ac_prev=program_suffix ;;
1186 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188 program_suffix=$ac_optarg ;;
1190 -program-transform-name | --program-transform-name \
1191 | --program-transform-nam | --program-transform-na \
1192 | --program-transform-n | --program-transform- \
1193 | --program-transform | --program-transfor \
1194 | --program-transfo | --program-transf \
1195 | --program-trans | --program-tran \
1196 | --progr-tra | --program-tr | --program-t)
1197 ac_prev=program_transform_name ;;
1198 -program-transform-name=* | --program-transform-name=* \
1199 | --program-transform-nam=* | --program-transform-na=* \
1200 | --program-transform-n=* | --program-transform-=* \
1201 | --program-transform=* | --program-transfor=* \
1202 | --program-transfo=* | --program-transf=* \
1203 | --program-trans=* | --program-tran=* \
1204 | --progr-tra=* | --program-tr=* | --program-t=*)
1205 program_transform_name=$ac_optarg ;;
1207 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208 ac_prev=pdfdir ;;
1209 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210 pdfdir=$ac_optarg ;;
1212 -psdir | --psdir | --psdi | --psd | --ps)
1213 ac_prev=psdir ;;
1214 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215 psdir=$ac_optarg ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 silent=yes ;;
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222 ac_prev=sbindir ;;
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224 | --sbi=* | --sb=*)
1225 sbindir=$ac_optarg ;;
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1230 | --sha | --sh)
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235 | --sha=* | --sh=*)
1236 sharedstatedir=$ac_optarg ;;
1238 -site | --site | --sit)
1239 ac_prev=site ;;
1240 -site=* | --site=* | --sit=*)
1241 site=$ac_optarg ;;
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244 ac_prev=srcdir ;;
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261 verbose=yes ;;
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1266 -with-* | --with-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1275 "with_$ac_useropt"
1276 "*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=\$ac_optarg ;;
1282 -without-* | --without-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1291 "with_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=no ;;
1298 --x)
1299 # Obsolete; use --with-x.
1300 with_x=yes ;;
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307 x_includes=$ac_optarg ;;
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314 x_libraries=$ac_optarg ;;
1316 -*) as_fn_error "unrecognized option: \`$ac_option'
1317 Try \`$0 --help' for more information."
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 case $ac_envvar in #(
1324 '' | [0-9]* | *[!_$as_cr_alnum]* )
1325 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1326 esac
1327 eval $ac_envvar=\$ac_optarg
1328 export $ac_envvar ;;
1331 # FIXME: should be removed in autoconf 3.0.
1332 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 esac
1339 done
1341 if test -n "$ac_prev"; then
1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343 as_fn_error "missing argument to $ac_option"
1346 if test -n "$ac_unrecognized_opts"; then
1347 case $enable_option_checking in
1348 no) ;;
1349 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1350 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351 esac
1354 # Check all directory arguments for consistency.
1355 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir
1360 eval ac_val=\$$ac_var
1361 # Remove trailing slashes.
1362 case $ac_val in
1363 */ )
1364 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365 eval $ac_var=\$ac_val;;
1366 esac
1367 # Be sure to have absolute directory names.
1368 case $ac_val in
1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371 esac
1372 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1373 done
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1378 build=$build_alias
1379 host=$host_alias
1380 target=$target_alias
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1389 cross_compiling=yes
1393 ac_tool_prefix=
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396 test "$silent" = yes && exec 6>/dev/null
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 as_fn_error "working directory cannot be determined"
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 as_fn_error "pwd does not report name of working directory"
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
1410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$as_myself" ||
1412 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413 X"$as_myself" : 'X\(//\)[^/]' \| \
1414 X"$as_myself" : 'X\(//\)$' \| \
1415 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416 $as_echo X"$as_myself" |
1417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 s//\1/
1421 /^X\(\/\/\)[^/].*/{
1422 s//\1/
1425 /^X\(\/\/\)$/{
1426 s//\1/
1429 /^X\(\/\).*/{
1430 s//\1/
1433 s/.*/./; q'`
1434 srcdir=$ac_confdir
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 srcdir=..
1438 else
1439 ac_srcdir_defaulted=no
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 ac_abs_confdir=`(
1447 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1448 pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 srcdir=.
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1472 cat <<_ACEOF
1473 \`configure' configures aMule SVN to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1482 Configuration:
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1497 [PREFIX]
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1526 _ACEOF
1528 cat <<\_ACEOF
1530 Program names:
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1535 System types:
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538 _ACEOF
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of aMule SVN:";;
1544 esac
1545 cat <<\_ACEOF
1547 Optional Features:
1548 --disable-option-checking ignore unrecognized --enable/--with options
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --enable-maintainer-mode enable make rules and dependencies not useful
1552 (and sometimes confusing) to the casual installer
1553 --disable-dependency-tracking speeds up one-time build
1554 --enable-dependency-tracking do not reject slow dependency extractors
1555 --disable-monolithic disable building of the monolithic aMule app
1556 --enable-amule-daemon compile aMule daemon version
1557 --enable-amulecmd compile aMule command line client
1558 --enable-webserver compile aMule WebServer
1559 --enable-amule-gui compile aMule remote GUI (EXPERIMENTAL)
1560 --enable-cas compile C aMule Statistics
1561 --enable-wxcas compile aMule GUI Statistics
1562 --disable-ed2k don't compile aMule ed2k links handler
1563 --enable-alc compile aMuleLinkCreator GUI version
1564 --enable-alcc compile aMuleLinkCreator for console
1565 --enable-xas install xas XChat2 plugin
1566 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1567 --enable-plasmamule compile aMule plasma applet and engine
1568 --enable-static produce a statically linked executable
1569 --enable-kde-in-home install KDE related stuff in your home dir
1570 --enable-geoip compile with GeoIP IP2Country library
1571 --disable-upnp do not compile UPnP code
1572 --enable-mmap enable using mapped memory if supported
1573 --disable-rpath do not hardcode runtime library paths
1574 --disable-nls do not use Native Language Support
1575 --disable-debug disable additional debugging output
1576 --enable-profile enable code profiling
1577 --enable-optimize enable code optimization
1578 --enable-ccache enable ccache support for fast recompilation
1580 Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-kde4-config=PATH kde4-config script to use
1584 --with-moc=PATH Search in PATH for Qt's meta object compiler
1585 --without-gnu-malloc Don't assume that we use GNU libc compatible
1586 malloc/realloc when cross-compiling
1587 --with-zlib=PREFIX use zlib in PREFIX
1588 --with-gdlib-prefix=PREFIX
1589 prefix where gdlib is installed (optional)
1590 --with-gdlib-config=CONFIG
1591 gdlib-config script to use (optional)
1592 --with-libpng-prefix=PREFIX
1593 prefix where libpng is installed (optional)
1594 --with-libpng-config=CONFIG
1595 libpng-config script to use (optional)
1596 --with-geoip-headers=DIR
1597 GeoIP include files location
1598 --with-geoip-lib=DIR GeoIP library location
1599 --with-geoip-static Explicitly link GeoIP statically (default=no)
1600 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1601 --with-wx-config=CONFIG wx-config script to use (optional)
1602 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1603 --with-wx-exec-prefix=PREFIX
1604 Exec prefix where wxWidgets is installed (optional)
1605 --with-toolkit Build against a specific wxWidgets toolkit (default
1606 is auto)
1607 --with-wxshared Force building against a shared build of wxWidgets,
1608 even if --disable-shared is given (default is auto)
1609 --with-wxdebug Force building against a debug build of wxWidgets,
1610 even if --disable-debug is given (default is auto)
1611 --with-wxversion Build against a specific version of wxWidgets
1612 (default is auto)
1613 --with-libupnp-prefix=PREFIX
1614 UPnP library location
1615 --with-crypto-prefix=PREFIX
1616 prefix where crypto++ is installed
1617 --with-language=<langs> Specify a comma-separated list of languages you want
1618 to have installed. See po/LINGUAS for available
1619 languages
1620 --with-gnu-ld assume the C compiler uses GNU ld default=no
1621 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1622 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1623 --with-included-gettext use the GNU gettext library included here
1624 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1625 --without-libintl-prefix don't search for libintl in includedir and libdir
1626 --with-denoise-level=<level>
1627 Specifies denoising level (0-4):
1628 0 - Do nothing
1629 4 - Suppress all normal output
1630 (for more information see
1631 src/utils/scripts/denoiser.rules)
1633 --with-ccache-prefix=PREFIX
1634 prefix where ccache is installed
1636 Some influential environment variables:
1637 CXX C++ compiler command
1638 CXXFLAGS C++ compiler flags
1639 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1640 nonstandard directory <lib dir>
1641 LIBS libraries to pass to the linker, e.g. -l<library>
1642 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1643 you have headers in a nonstandard directory <include dir>
1644 CXXCPP C++ preprocessor
1645 CC C compiler command
1646 CFLAGS C compiler flags
1647 CPP C preprocessor
1648 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1649 the first program found out of: `bison -y', `byacc', `yacc'.
1650 YFLAGS The list of arguments that will be passed by default to $YACC.
1651 This script will default YFLAGS to the empty string to avoid a
1652 default value of `-d' given by some make applications.
1653 RC Resource Compiler
1654 RCFLAGS Resource Compiler Flags
1655 PKG_CONFIG path to pkg-config utility
1657 Use these variables to override the choices made by `configure' or to help
1658 it to find libraries and programs with nonstandard names/locations.
1660 Report bugs to <admin@amule.org>.
1661 _ACEOF
1662 ac_status=$?
1665 if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 continue
1671 ac_builddir=.
1673 case "$ac_dir" in
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
1683 esac
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1689 case $srcdir in
1690 .) # We are building in place.
1691 ac_srcdir=.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702 esac
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1713 else
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1717 done
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1722 cat <<\_ACEOF
1723 aMule configure SVN
1724 generated by GNU Autoconf 2.65
1726 Copyright (C) 2009 Free Software Foundation, Inc.
1727 This configure script is free software; the Free Software Foundation
1728 gives unlimited permission to copy, distribute and modify it.
1729 _ACEOF
1730 exit
1733 ## ------------------------ ##
1734 ## Autoconf initialization. ##
1735 ## ------------------------ ##
1737 # ac_fn_cxx_try_compile LINENO
1738 # ----------------------------
1739 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_cxx_try_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext
1744 if { { ac_try="$ac_compile"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_compile") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_cxx_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest.$ac_objext; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1768 ac_retval=1
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 as_fn_set_status $ac_retval
1773 } # ac_fn_cxx_try_compile
1775 # ac_fn_cxx_try_cpp LINENO
1776 # ------------------------
1777 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_cxx_try_cpp ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if { { ac_try="$ac_cpp conftest.$ac_ext"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } >/dev/null && {
1797 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1798 test ! -s conftest.err
1799 }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=1
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 as_fn_set_status $ac_retval
1810 } # ac_fn_cxx_try_cpp
1812 # ac_fn_c_try_compile LINENO
1813 # --------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=1
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_c_try_compile
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_cpp ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } >/dev/null && {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=1
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 as_fn_set_status $ac_retval
1885 } # ac_fn_c_try_cpp
1887 # ac_fn_c_try_link LINENO
1888 # -----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_link ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
1914 $as_test_x conftest$ac_exeext
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929 as_fn_set_status $ac_retval
1931 } # ac_fn_c_try_link
1933 # ac_fn_c_try_run LINENO
1934 # ----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936 # that executables *can* be run.
1937 ac_fn_c_try_run ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_link"
1941 case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>&5
1948 ac_status=$?
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951 { { case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_try") 2>&5
1958 ac_status=$?
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; }; }; then :
1961 ac_retval=0
1962 else
1963 $as_echo "$as_me: program exited with status $ac_status" >&5
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1967 ac_retval=$ac_status
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 as_fn_set_status $ac_retval
1973 } # ac_fn_c_try_run
1975 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1978 # the include files in INCLUDES and setting the cache variable VAR
1979 # accordingly.
1980 ac_fn_c_check_header_mongrel ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987 $as_echo_n "(cached) " >&6
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 else
1993 # Is the header compilable?
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1995 $as_echo_n "checking $2 usability... " >&6; }
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_header_compiler=yes
2003 else
2004 ac_header_compiler=no
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2008 $as_echo "$ac_header_compiler" >&6; }
2010 # Is the header present?
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2012 $as_echo_n "checking $2 presence... " >&6; }
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_cpp "$LINENO"; then :
2018 ac_header_preproc=yes
2019 else
2020 ac_header_preproc=no
2022 rm -f conftest.err conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2024 $as_echo "$ac_header_preproc" >&6; }
2026 # So? What about this header?
2027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2028 yes:no: )
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2030 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 no:yes:* )
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2036 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2038 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2040 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2042 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2045 ( cat <<\_ASBOX
2046 ## ------------------------------ ##
2047 ## Report this to admin@amule.org ##
2048 ## ------------------------------ ##
2049 _ASBOX
2050 ) | sed "s/^/$as_me: WARNING: /" >&2
2052 esac
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 eval "$3=\$ac_header_compiler"
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 } # ac_fn_c_check_header_mongrel
2068 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2069 # -------------------------------------------------------
2070 # Tests whether HEADER exists and can be compiled using the include files in
2071 # INCLUDES, setting the cache variable VAR accordingly.
2072 ac_fn_c_check_header_compile ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076 $as_echo_n "checking for $2... " >&6; }
2077 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078 $as_echo_n "(cached) " >&6
2079 else
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2083 #include <$2>
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 eval "$3=yes"
2087 else
2088 eval "$3=no"
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097 } # ac_fn_c_check_header_compile
2099 # ac_fn_cxx_try_run LINENO
2100 # ------------------------
2101 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2102 # that executables *can* be run.
2103 ac_fn_cxx_try_run ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 if { { ac_try="$ac_link"
2107 case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2110 esac
2111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2112 $as_echo "$ac_try_echo"; } >&5
2113 (eval "$ac_link") 2>&5
2114 ac_status=$?
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2117 { { case "(($ac_try" in
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2120 esac
2121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122 $as_echo "$ac_try_echo"; } >&5
2123 (eval "$ac_try") 2>&5
2124 ac_status=$?
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; }; }; then :
2127 ac_retval=0
2128 else
2129 $as_echo "$as_me: program exited with status $ac_status" >&5
2130 $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2133 ac_retval=$ac_status
2135 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2136 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137 as_fn_set_status $ac_retval
2139 } # ac_fn_cxx_try_run
2141 # ac_fn_cxx_try_link LINENO
2142 # -------------------------
2143 # Try to link conftest.$ac_ext, and return whether this succeeded.
2144 ac_fn_cxx_try_link ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 rm -f conftest.$ac_objext conftest$ac_exeext
2148 if { { ac_try="$ac_link"
2149 case "(($ac_try" in
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2152 esac
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155 (eval "$ac_link") 2>conftest.err
2156 ac_status=$?
2157 if test -s conftest.err; then
2158 grep -v '^ *+' conftest.err >conftest.er1
2159 cat conftest.er1 >&5
2160 mv -f conftest.er1 conftest.err
2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; } && {
2164 test -z "$ac_cxx_werror_flag" ||
2165 test ! -s conftest.err
2166 } && test -s conftest$ac_exeext && {
2167 test "$cross_compiling" = yes ||
2168 $as_test_x conftest$ac_exeext
2169 }; then :
2170 ac_retval=0
2171 else
2172 $as_echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2175 ac_retval=1
2177 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2178 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2179 # interfere with the next link command; also delete a directory that is
2180 # left behind by Apple's compiler. We do this before executing the actions.
2181 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183 as_fn_set_status $ac_retval
2185 } # ac_fn_cxx_try_link
2187 # ac_fn_c_check_func LINENO FUNC VAR
2188 # ----------------------------------
2189 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2190 ac_fn_c_check_func ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2194 $as_echo_n "checking for $2... " >&6; }
2195 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2196 $as_echo_n "(cached) " >&6
2197 else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2202 #define $2 innocuous_$2
2204 /* System header to define __stub macros and hopefully few prototypes,
2205 which can conflict with char $2 (); below.
2206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2207 <limits.h> exists even on freestanding compilers. */
2209 #ifdef __STDC__
2210 # include <limits.h>
2211 #else
2212 # include <assert.h>
2213 #endif
2215 #undef $2
2217 /* Override any GCC internal prototype to avoid an error.
2218 Use char because int might match the return type of a GCC
2219 builtin and then its argument prototype would still apply. */
2220 #ifdef __cplusplus
2221 extern "C"
2222 #endif
2223 char $2 ();
2224 /* The GNU C library defines this for functions which it implements
2225 to always fail with ENOSYS. Some functions are actually named
2226 something starting with __ and the normal name is an alias. */
2227 #if defined __stub_$2 || defined __stub___$2
2228 choke me
2229 #endif
2232 main ()
2234 return $2 ();
2236 return 0;
2238 _ACEOF
2239 if ac_fn_c_try_link "$LINENO"; then :
2240 eval "$3=yes"
2241 else
2242 eval "$3=no"
2244 rm -f core conftest.err conftest.$ac_objext \
2245 conftest$ac_exeext conftest.$ac_ext
2247 eval ac_res=\$$3
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2249 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252 } # ac_fn_c_check_func
2254 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2255 # -------------------------------------------
2256 # Tests whether TYPE exists after having included INCLUDES, setting cache
2257 # variable VAR accordingly.
2258 ac_fn_c_check_type ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2262 $as_echo_n "checking for $2... " >&6; }
2263 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2264 $as_echo_n "(cached) " >&6
2265 else
2266 eval "$3=no"
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2271 main ()
2273 if (sizeof ($2))
2274 return 0;
2276 return 0;
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2284 main ()
2286 if (sizeof (($2)))
2287 return 0;
2289 return 0;
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2294 else
2295 eval "$3=yes"
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306 } # ac_fn_c_check_type
2308 # ac_fn_c_check_decl LINENO SYMBOL VAR
2309 # ------------------------------------
2310 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2311 ac_fn_c_check_decl ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2315 $as_echo_n "checking whether $2 is declared... " >&6; }
2316 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2323 main ()
2325 #ifndef $2
2326 (void) $2;
2327 #endif
2330 return 0;
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334 eval "$3=yes"
2335 else
2336 eval "$3=no"
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 eval ac_res=\$$3
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2342 $as_echo "$ac_res" >&6; }
2343 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345 } # ac_fn_c_check_decl
2346 cat >config.log <<_ACEOF
2347 This file contains any messages produced by compilers while
2348 running configure, to aid debugging if configure makes a mistake.
2350 It was created by aMule $as_me SVN, which was
2351 generated by GNU Autoconf 2.65. Invocation command line was
2353 $ $0 $@
2355 _ACEOF
2356 exec 5>>config.log
2358 cat <<_ASUNAME
2359 ## --------- ##
2360 ## Platform. ##
2361 ## --------- ##
2363 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2364 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2365 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2366 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2367 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2369 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2370 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2372 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2373 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2374 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2375 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2376 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2377 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2378 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2380 _ASUNAME
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 $as_echo "PATH: $as_dir"
2388 done
2389 IFS=$as_save_IFS
2391 } >&5
2393 cat >&5 <<_ACEOF
2396 ## ----------- ##
2397 ## Core tests. ##
2398 ## ----------- ##
2400 _ACEOF
2403 # Keep a trace of the command line.
2404 # Strip out --no-create and --no-recursion so they do not pile up.
2405 # Strip out --silent because we don't want to record it for future runs.
2406 # Also quote any args containing shell meta-characters.
2407 # Make two passes to allow for proper duplicate-argument suppression.
2408 ac_configure_args=
2409 ac_configure_args0=
2410 ac_configure_args1=
2411 ac_must_keep_next=false
2412 for ac_pass in 1 2
2414 for ac_arg
2416 case $ac_arg in
2417 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2419 | -silent | --silent | --silen | --sile | --sil)
2420 continue ;;
2421 *\'*)
2422 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2423 esac
2424 case $ac_pass in
2425 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2427 as_fn_append ac_configure_args1 " '$ac_arg'"
2428 if test $ac_must_keep_next = true; then
2429 ac_must_keep_next=false # Got value, back to normal.
2430 else
2431 case $ac_arg in
2432 *=* | --config-cache | -C | -disable-* | --disable-* \
2433 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2434 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2435 | -with-* | --with-* | -without-* | --without-* | --x)
2436 case "$ac_configure_args0 " in
2437 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2438 esac
2440 -* ) ac_must_keep_next=true ;;
2441 esac
2443 as_fn_append ac_configure_args " '$ac_arg'"
2445 esac
2446 done
2447 done
2448 { ac_configure_args0=; unset ac_configure_args0;}
2449 { ac_configure_args1=; unset ac_configure_args1;}
2451 # When interrupted or exit'd, cleanup temporary files, and complete
2452 # config.log. We remove comments because anyway the quotes in there
2453 # would cause problems or look ugly.
2454 # WARNING: Use '\'' to represent an apostrophe within the trap.
2455 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2456 trap 'exit_status=$?
2457 # Save into config.log some information that might help in debugging.
2459 echo
2461 cat <<\_ASBOX
2462 ## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##
2465 _ASBOX
2466 echo
2467 # The following way of writing the cache mishandles newlines in values,
2469 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2470 eval ac_val=\$$ac_var
2471 case $ac_val in #(
2472 *${as_nl}*)
2473 case $ac_var in #(
2474 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2476 esac
2477 case $ac_var in #(
2478 _ | IFS | as_nl) ;; #(
2479 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2480 *) { eval $ac_var=; unset $ac_var;} ;;
2481 esac ;;
2482 esac
2483 done
2484 (set) 2>&1 |
2485 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2486 *${as_nl}ac_space=\ *)
2487 sed -n \
2488 "s/'\''/'\''\\\\'\'''\''/g;
2489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2490 ;; #(
2492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494 esac |
2495 sort
2497 echo
2499 cat <<\_ASBOX
2500 ## ----------------- ##
2501 ## Output variables. ##
2502 ## ----------------- ##
2503 _ASBOX
2504 echo
2505 for ac_var in $ac_subst_vars
2507 eval ac_val=\$$ac_var
2508 case $ac_val in
2509 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510 esac
2511 $as_echo "$ac_var='\''$ac_val'\''"
2512 done | sort
2513 echo
2515 if test -n "$ac_subst_files"; then
2516 cat <<\_ASBOX
2517 ## ------------------- ##
2518 ## File substitutions. ##
2519 ## ------------------- ##
2520 _ASBOX
2521 echo
2522 for ac_var in $ac_subst_files
2524 eval ac_val=\$$ac_var
2525 case $ac_val in
2526 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527 esac
2528 $as_echo "$ac_var='\''$ac_val'\''"
2529 done | sort
2530 echo
2533 if test -s confdefs.h; then
2534 cat <<\_ASBOX
2535 ## ----------- ##
2536 ## confdefs.h. ##
2537 ## ----------- ##
2538 _ASBOX
2539 echo
2540 cat confdefs.h
2541 echo
2543 test "$ac_signal" != 0 &&
2544 $as_echo "$as_me: caught signal $ac_signal"
2545 $as_echo "$as_me: exit $exit_status"
2546 } >&5
2547 rm -f core *.core core.conftest.* &&
2548 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2549 exit $exit_status
2551 for ac_signal in 1 2 13 15; do
2552 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2553 done
2554 ac_signal=0
2556 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2557 rm -f -r conftest* confdefs.h
2559 $as_echo "/* confdefs.h */" > confdefs.h
2561 # Predefined preprocessor variables.
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_NAME "$PACKAGE_NAME"
2565 _ACEOF
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2569 _ACEOF
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2573 _ACEOF
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_STRING "$PACKAGE_STRING"
2577 _ACEOF
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2581 _ACEOF
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_URL "$PACKAGE_URL"
2585 _ACEOF
2588 # Let the site file select an alternate cache file if it wants to.
2589 # Prefer an explicitly selected file to automatically selected ones.
2590 ac_site_file1=NONE
2591 ac_site_file2=NONE
2592 if test -n "$CONFIG_SITE"; then
2593 ac_site_file1=$CONFIG_SITE
2594 elif test "x$prefix" != xNONE; then
2595 ac_site_file1=$prefix/share/config.site
2596 ac_site_file2=$prefix/etc/config.site
2597 else
2598 ac_site_file1=$ac_default_prefix/share/config.site
2599 ac_site_file2=$ac_default_prefix/etc/config.site
2601 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2603 test "x$ac_site_file" = xNONE && continue
2604 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2606 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2607 sed 's/^/| /' "$ac_site_file" >&5
2608 . "$ac_site_file"
2610 done
2612 if test -r "$cache_file"; then
2613 # Some versions of bash will fail to source /dev/null (special files
2614 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2615 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2617 $as_echo "$as_me: loading cache $cache_file" >&6;}
2618 case $cache_file in
2619 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2620 *) . "./$cache_file";;
2621 esac
2623 else
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2625 $as_echo "$as_me: creating cache $cache_file" >&6;}
2626 >$cache_file
2629 as_fn_append ac_header_list " stdlib.h"
2630 as_fn_append ac_header_list " unistd.h"
2631 as_fn_append ac_header_list " sys/param.h"
2632 # Check that the precious variables saved in the cache have kept the same
2633 # value.
2634 ac_cache_corrupted=false
2635 for ac_var in $ac_precious_vars; do
2636 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2637 eval ac_new_set=\$ac_env_${ac_var}_set
2638 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2639 eval ac_new_val=\$ac_env_${ac_var}_value
2640 case $ac_old_set,$ac_new_set in
2641 set,)
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2643 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2644 ac_cache_corrupted=: ;;
2645 ,set)
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2647 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2648 ac_cache_corrupted=: ;;
2649 ,);;
2651 if test "x$ac_old_val" != "x$ac_new_val"; then
2652 # differences in whitespace do not lead to failure.
2653 ac_old_val_w=`echo x $ac_old_val`
2654 ac_new_val_w=`echo x $ac_new_val`
2655 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2657 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2658 ac_cache_corrupted=:
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2661 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2662 eval $ac_var=\$ac_old_val
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2665 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2667 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2668 fi;;
2669 esac
2670 # Pass precious variables to config.status.
2671 if test "$ac_new_set" = set; then
2672 case $ac_new_val in
2673 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2674 *) ac_arg=$ac_var=$ac_new_val ;;
2675 esac
2676 case " $ac_configure_args " in
2677 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2678 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2679 esac
2681 done
2682 if $ac_cache_corrupted; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2686 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2687 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2689 ## -------------------- ##
2690 ## Main body of script. ##
2691 ## -------------------- ##
2693 ac_ext=c
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 am__api_version='1.11'
2702 ac_aux_dir=
2703 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2704 for ac_t in install-sh install.sh shtool; do
2705 if test -f "$ac_dir/$ac_t"; then
2706 ac_aux_dir=$ac_dir
2707 ac_install_sh="$ac_aux_dir/$ac_t -c"
2708 break 2
2710 done
2711 done
2712 if test -z "$ac_aux_dir"; then
2713 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2716 # These three variables are undocumented and unsupported,
2717 # and are intended to be withdrawn in a future Autoconf release.
2718 # They can cause serious problems if a builder's source tree is in a directory
2719 # whose full name contains unusual characters.
2720 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2721 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2722 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2725 # Find a good install program. We prefer a C program (faster),
2726 # so one script is as good as another. But avoid the broken or
2727 # incompatible versions:
2728 # SysV /etc/install, /usr/sbin/install
2729 # SunOS /usr/etc/install
2730 # IRIX /sbin/install
2731 # AIX /bin/install
2732 # AmigaOS /C/install, which installs bootblocks on floppy discs
2733 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2734 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2735 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2736 # OS/2's system install, which has a completely different semantic
2737 # ./install, which can be erroneously created by make from ./install.sh.
2738 # Reject install programs that cannot install multiple files.
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2740 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2741 if test -z "$INSTALL"; then
2742 if test "${ac_cv_path_install+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 # Account for people who put trailing slashes in PATH elements.
2751 case $as_dir/ in #((
2752 ./ | .// | /[cC]/* | \
2753 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2754 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2755 /usr/ucb/* ) ;;
2757 # OSF1 and SCO ODT 3.0 have their own names for install.
2758 # Don't use installbsd from OSF since it installs stuff as root
2759 # by default.
2760 for ac_prog in ginstall scoinst install; do
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2763 if test $ac_prog = install &&
2764 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2765 # AIX install. It has an incompatible calling convention.
2767 elif test $ac_prog = install &&
2768 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2769 # program-specific install script used by HP pwplus--don't use.
2771 else
2772 rm -rf conftest.one conftest.two conftest.dir
2773 echo one > conftest.one
2774 echo two > conftest.two
2775 mkdir conftest.dir
2776 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2777 test -s conftest.one && test -s conftest.two &&
2778 test -s conftest.dir/conftest.one &&
2779 test -s conftest.dir/conftest.two
2780 then
2781 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2782 break 3
2786 done
2787 done
2789 esac
2791 done
2792 IFS=$as_save_IFS
2794 rm -rf conftest.one conftest.two conftest.dir
2797 if test "${ac_cv_path_install+set}" = set; then
2798 INSTALL=$ac_cv_path_install
2799 else
2800 # As a last resort, use the slow shell script. Don't cache a
2801 # value for INSTALL within a source directory, because that will
2802 # break other packages using the cache if that directory is
2803 # removed, or if the value is a relative name.
2804 INSTALL=$ac_install_sh
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2808 $as_echo "$INSTALL" >&6; }
2810 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2811 # It thinks the first close brace ends the variable substitution.
2812 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2814 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2816 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2819 $as_echo_n "checking whether build environment is sane... " >&6; }
2820 # Just in case
2821 sleep 1
2822 echo timestamp > conftest.file
2823 # Reject unsafe characters in $srcdir or the absolute working directory
2824 # name. Accept space and tab only in the latter.
2825 am_lf='
2827 case `pwd` in
2828 *[\\\"\#\$\&\'\`$am_lf]*)
2829 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2830 esac
2831 case $srcdir in
2832 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2833 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2834 esac
2836 # Do `set' in a subshell so we don't clobber the current shell's
2837 # arguments. Must try -L first in case configure is actually a
2838 # symlink; some systems play weird games with the mod time of symlinks
2839 # (eg FreeBSD returns the mod time of the symlink's containing
2840 # directory).
2841 if (
2842 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2843 if test "$*" = "X"; then
2844 # -L didn't work.
2845 set X `ls -t "$srcdir/configure" conftest.file`
2847 rm -f conftest.file
2848 if test "$*" != "X $srcdir/configure conftest.file" \
2849 && test "$*" != "X conftest.file $srcdir/configure"; then
2851 # If neither matched, then we have a broken ls. This can happen
2852 # if, for instance, CONFIG_SHELL is bash and it inherits a
2853 # broken ls alias from the environment. This has actually
2854 # happened. Such a system could not be considered "sane".
2855 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2856 alias in your environment" "$LINENO" 5
2859 test "$2" = conftest.file
2861 then
2862 # Ok.
2864 else
2865 as_fn_error "newly created file is older than distributed files!
2866 Check your system clock" "$LINENO" 5
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870 test "$program_prefix" != NONE &&
2871 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2872 # Use a double $ so make ignores it.
2873 test "$program_suffix" != NONE &&
2874 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2875 # Double any \ or $.
2876 # By default was `s,x,x', remove it if useless.
2877 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2878 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2880 # expand $ac_aux_dir to an absolute path
2881 am_aux_dir=`cd $ac_aux_dir && pwd`
2883 if test x"${MISSING+set}" != xset; then
2884 case $am_aux_dir in
2885 *\ * | *\ *)
2886 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2888 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2889 esac
2891 # Use eval to expand $SHELL
2892 if eval "$MISSING --run true"; then
2893 am_missing_run="$MISSING --run "
2894 else
2895 am_missing_run=
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2897 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2900 if test x"${install_sh}" != xset; then
2901 case $am_aux_dir in
2902 *\ * | *\ *)
2903 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2905 install_sh="\${SHELL} $am_aux_dir/install-sh"
2906 esac
2909 # Installed binaries are usually stripped using `strip' when the user
2910 # run `make install-strip'. However `strip' might not be the right
2911 # tool to use in cross-compilation environments, therefore Automake
2912 # will honor the `STRIP' environment variable to overrule this program.
2913 if test "$cross_compiling" != no; then
2914 if test -n "$ac_tool_prefix"; then
2915 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2916 set dummy ${ac_tool_prefix}strip; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_STRIP+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$STRIP"; then
2923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2936 done
2937 done
2938 IFS=$as_save_IFS
2942 STRIP=$ac_cv_prog_STRIP
2943 if test -n "$STRIP"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2945 $as_echo "$STRIP" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2953 if test -z "$ac_cv_prog_STRIP"; then
2954 ac_ct_STRIP=$STRIP
2955 # Extract the first word of "strip", so it can be a program name with args.
2956 set dummy strip; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test -n "$ac_ct_STRIP"; then
2963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_ac_ct_STRIP="strip"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2976 done
2977 done
2978 IFS=$as_save_IFS
2982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2983 if test -n "$ac_ct_STRIP"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2985 $as_echo "$ac_ct_STRIP" >&6; }
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2991 if test "x$ac_ct_STRIP" = x; then
2992 STRIP=":"
2993 else
2994 case $cross_compiling:$ac_tool_warned in
2995 yes:)
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2998 ac_tool_warned=yes ;;
2999 esac
3000 STRIP=$ac_ct_STRIP
3002 else
3003 STRIP="$ac_cv_prog_STRIP"
3007 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3010 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3011 if test -z "$MKDIR_P"; then
3012 if test "${ac_cv_path_mkdir+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_prog in mkdir gmkdir; do
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3023 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3024 'mkdir (GNU coreutils) '* | \
3025 'mkdir (coreutils) '* | \
3026 'mkdir (fileutils) '4.1*)
3027 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3028 break 3;;
3029 esac
3030 done
3031 done
3032 done
3033 IFS=$as_save_IFS
3037 test -d ./--version && rmdir ./--version
3038 if test "${ac_cv_path_mkdir+set}" = set; then
3039 MKDIR_P="$ac_cv_path_mkdir -p"
3040 else
3041 # As a last resort, use the slow shell script. Don't cache a
3042 # value for MKDIR_P within a source directory, because that will
3043 # break other packages using the cache if that directory is
3044 # removed, or if the value is a relative name.
3045 MKDIR_P="$ac_install_sh -d"
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3049 $as_echo "$MKDIR_P" >&6; }
3051 mkdir_p="$MKDIR_P"
3052 case $mkdir_p in
3053 [\\/$]* | ?:[\\/]*) ;;
3054 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3055 esac
3057 for ac_prog in gawk mawk nawk awk
3059 # Extract the first word of "$ac_prog", so it can be a program name with args.
3060 set dummy $ac_prog; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_AWK+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$AWK"; then
3067 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076 ac_cv_prog_AWK="$ac_prog"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3080 done
3081 done
3082 IFS=$as_save_IFS
3086 AWK=$ac_cv_prog_AWK
3087 if test -n "$AWK"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3089 $as_echo "$AWK" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3096 test -n "$AWK" && break
3097 done
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3100 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3101 set x ${MAKE-make}
3102 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3103 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3104 $as_echo_n "(cached) " >&6
3105 else
3106 cat >conftest.make <<\_ACEOF
3107 SHELL = /bin/sh
3108 all:
3109 @echo '@@@%%%=$(MAKE)=@@@%%%'
3110 _ACEOF
3111 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3112 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3113 *@@@%%%=?*=@@@%%%*)
3114 eval ac_cv_prog_make_${ac_make}_set=yes;;
3116 eval ac_cv_prog_make_${ac_make}_set=no;;
3117 esac
3118 rm -f conftest.make
3120 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3122 $as_echo "yes" >&6; }
3123 SET_MAKE=
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 SET_MAKE="MAKE=${MAKE-make}"
3130 rm -rf .tst 2>/dev/null
3131 mkdir .tst 2>/dev/null
3132 if test -d .tst; then
3133 am__leading_dot=.
3134 else
3135 am__leading_dot=_
3137 rmdir .tst 2>/dev/null
3139 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3140 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3141 # is not polluted with repeated "-I."
3142 am__isrc=' -I$(srcdir)'
3143 # test to see if srcdir already configured
3144 if test -f $srcdir/config.status; then
3145 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3149 # test whether we have cygpath
3150 if test -z "$CYGPATH_W"; then
3151 if (cygpath --version) >/dev/null 2>/dev/null; then
3152 CYGPATH_W='cygpath -w'
3153 else
3154 CYGPATH_W=echo
3159 # Define the identity of the package.
3160 PACKAGE='amule'
3161 VERSION='SVN'
3164 cat >>confdefs.h <<_ACEOF
3165 #define PACKAGE "$PACKAGE"
3166 _ACEOF
3169 cat >>confdefs.h <<_ACEOF
3170 #define VERSION "$VERSION"
3171 _ACEOF
3173 # Some tools Automake needs.
3175 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3178 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3181 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3184 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3187 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3189 # We need awk for the "check" target. The system "awk" is bad on
3190 # some platforms.
3191 # Always define AMTAR for backward compatibility.
3193 AMTAR=${AMTAR-"${am_missing_run}tar"}
3195 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3205 ac_config_headers="$ac_config_headers config.h"
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3209 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3210 # Check whether --enable-maintainer-mode was given.
3211 if test "${enable_maintainer_mode+set}" = set; then :
3212 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3213 else
3214 USE_MAINTAINER_MODE=no
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3218 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3219 if test $USE_MAINTAINER_MODE = yes; then
3220 MAINTAINER_MODE_TRUE=
3221 MAINTAINER_MODE_FALSE='#'
3222 else
3223 MAINTAINER_MODE_TRUE='#'
3224 MAINTAINER_MODE_FALSE=
3227 MAINT=$MAINTAINER_MODE_TRUE
3231 # Make sure we can run config.sub.
3232 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3233 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3236 $as_echo_n "checking build system type... " >&6; }
3237 if test "${ac_cv_build+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 ac_build_alias=$build_alias
3241 test "x$ac_build_alias" = x &&
3242 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3243 test "x$ac_build_alias" = x &&
3244 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3245 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3246 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3250 $as_echo "$ac_cv_build" >&6; }
3251 case $ac_cv_build in
3252 *-*-*) ;;
3253 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3254 esac
3255 build=$ac_cv_build
3256 ac_save_IFS=$IFS; IFS='-'
3257 set x $ac_cv_build
3258 shift
3259 build_cpu=$1
3260 build_vendor=$2
3261 shift; shift
3262 # Remember, the first character of IFS is used to create $*,
3263 # except with old shells:
3264 build_os=$*
3265 IFS=$ac_save_IFS
3266 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3270 $as_echo_n "checking host system type... " >&6; }
3271 if test "${ac_cv_host+set}" = set; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 if test "x$host_alias" = x; then
3275 ac_cv_host=$ac_cv_build
3276 else
3277 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3278 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3283 $as_echo "$ac_cv_host" >&6; }
3284 case $ac_cv_host in
3285 *-*-*) ;;
3286 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3287 esac
3288 host=$ac_cv_host
3289 ac_save_IFS=$IFS; IFS='-'
3290 set x $ac_cv_host
3291 shift
3292 host_cpu=$1
3293 host_vendor=$2
3294 shift; shift
3295 # Remember, the first character of IFS is used to create $*,
3296 # except with old shells:
3297 host_os=$*
3298 IFS=$ac_save_IFS
3299 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3303 case "${host_os}" in
3304 darwin*)
3305 SYS=darwin
3306 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3307 MULELDFLAGS="-bind_at_load"
3308 touch src/Scanner.cpp
3310 openbsd*)
3311 SYS=openbsd
3312 LIBS="$LIBS -L/usr/local/lib"
3313 MULECPPFLAGS="-D__OPENBSD__"
3315 *cygwin* | *mingw32*)
3316 SYS=win32
3317 MULECPPFLAGS="-DNOMINMAX"
3319 solaris*)
3320 SYS=solaris
3321 RESOLV_LIB="-lresolv -lnsl"
3322 LIBS="$LIBS -lrt"
3324 *netbsd*)
3325 SYS=netbsd
3326 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3327 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3328 # Still, we prepend them, instead of adding, so the user may override them.
3329 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3330 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3332 *irix*)
3333 SYS=irix
3334 MULECPPFLAGS="-D__IRIX__"
3337 SYS=unknown
3339 esac
3341 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3342 if test ${SYS:-unknown} != win32; then :
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3345 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3346 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3348 MULELDFLAGS="$MULELDFLAGS -pthread"
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350 $as_echo "yes" >&6; }
3352 else
3354 MULELDFLAGS="$MULELDFLAGS -lpthread"
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3364 mule_backup_CFLAGS="$CFLAGS"
3365 mule_backup_CXXFLAGS="$CXXFLAGS"
3366 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3367 ac_ext=cpp
3368 ac_cpp='$CXXCPP $CPPFLAGS'
3369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3372 if test -z "$CXX"; then
3373 if test -n "$CCC"; then
3374 CXX=$CCC
3375 else
3376 if test -n "$ac_tool_prefix"; then
3377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3380 set dummy $ac_tool_prefix$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 test "${ac_cv_prog_CXX+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if test -n "$CXX"; then
3387 ac_cv_prog_CXX="$CXX" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_CXX="$ac_tool_prefix$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 CXX=$ac_cv_prog_CXX
3407 if test -n "$CXX"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3409 $as_echo "$CXX" >&6; }
3410 else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3416 test -n "$CXX" && break
3417 done
3419 if test -z "$CXX"; then
3420 ac_ct_CXX=$CXX
3421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3423 # Extract the first word of "$ac_prog", so it can be a program name with args.
3424 set dummy $ac_prog; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 if test -n "$ac_ct_CXX"; then
3431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440 ac_cv_prog_ac_ct_CXX="$ac_prog"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 break 2
3444 done
3445 done
3446 IFS=$as_save_IFS
3450 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3451 if test -n "$ac_ct_CXX"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3453 $as_echo "$ac_ct_CXX" >&6; }
3454 else
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3460 test -n "$ac_ct_CXX" && break
3461 done
3463 if test "x$ac_ct_CXX" = x; then
3464 CXX="g++"
3465 else
3466 case $cross_compiling:$ac_tool_warned in
3467 yes:)
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470 ac_tool_warned=yes ;;
3471 esac
3472 CXX=$ac_ct_CXX
3478 # Provide some information about the compiler.
3479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3480 set X $ac_compile
3481 ac_compiler=$2
3482 for ac_option in --version -v -V -qversion; do
3483 { { ac_try="$ac_compiler $ac_option >&5"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3491 ac_status=$?
3492 if test -s conftest.err; then
3493 sed '10a\
3494 ... rest of stderr output deleted ...
3495 10q' conftest.err >conftest.er1
3496 cat conftest.er1 >&5
3498 rm -f conftest.er1 conftest.err
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }
3501 done
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3507 main ()
3511 return 0;
3513 _ACEOF
3514 ac_clean_files_save=$ac_clean_files
3515 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3516 # Try to create an executable without -o first, disregard a.out.
3517 # It will help us diagnose broken compilers, and finding out an intuition
3518 # of exeext.
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3520 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3521 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3523 # The possible output files:
3524 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3526 ac_rmfiles=
3527 for ac_file in $ac_files
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3532 esac
3533 done
3534 rm -f $ac_rmfiles
3536 if { { ac_try="$ac_link_default"
3537 case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_link_default") 2>&5
3544 ac_status=$?
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; then :
3547 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3548 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3549 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3550 # so that the user can short-circuit this test for compilers unknown to
3551 # Autoconf.
3552 for ac_file in $ac_files ''
3554 test -f "$ac_file" || continue
3555 case $ac_file in
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3558 [ab].out )
3559 # We found the default executable, but exeext='' is most
3560 # certainly right.
3561 break;;
3562 *.* )
3563 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3564 then :; else
3565 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3567 # We set ac_cv_exeext here because the later test for it is not
3568 # safe: cross compilers may not add the suffix if given an `-o'
3569 # argument, so we may need to know it at that point already.
3570 # Even if this section looks crufty: it has the advantage of
3571 # actually working.
3572 break;;
3574 break;;
3575 esac
3576 done
3577 test "$ac_cv_exeext" = no && ac_cv_exeext=
3579 else
3580 ac_file=''
3582 if test -z "$ac_file"; then :
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 { as_fn_set_status 77
3591 as_fn_error "C++ compiler cannot create executables
3592 See \`config.log' for more details." "$LINENO" 5; }; }
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595 $as_echo "yes" >&6; }
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3598 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3600 $as_echo "$ac_file" >&6; }
3601 ac_exeext=$ac_cv_exeext
3603 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3604 ac_clean_files=$ac_clean_files_save
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3606 $as_echo_n "checking for suffix of executables... " >&6; }
3607 if { { ac_try="$ac_link"
3608 case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614 (eval "$ac_link") 2>&5
3615 ac_status=$?
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }; then :
3618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3619 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3620 # work properly (i.e., refer to `conftest.exe'), while it won't with
3621 # `rm'.
3622 for ac_file in conftest.exe conftest conftest.*; do
3623 test -f "$ac_file" || continue
3624 case $ac_file in
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3627 break;;
3628 * ) break;;
3629 esac
3630 done
3631 else
3632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3634 as_fn_error "cannot compute suffix of executables: cannot compile and link
3635 See \`config.log' for more details." "$LINENO" 5; }
3637 rm -f conftest conftest$ac_cv_exeext
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3639 $as_echo "$ac_cv_exeext" >&6; }
3641 rm -f conftest.$ac_ext
3642 EXEEXT=$ac_cv_exeext
3643 ac_exeext=$EXEEXT
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646 #include <stdio.h>
3648 main ()
3650 FILE *f = fopen ("conftest.out", "w");
3651 return ferror (f) || fclose (f) != 0;
3654 return 0;
3656 _ACEOF
3657 ac_clean_files="$ac_clean_files conftest.out"
3658 # Check that the compiler produces executables we can run. If not, either
3659 # the compiler is broken, or we cross compile.
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3661 $as_echo_n "checking whether we are cross compiling... " >&6; }
3662 if test "$cross_compiling" != yes; then
3663 { { ac_try="$ac_link"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_link") 2>&5
3671 ac_status=$?
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }
3674 if { ac_try='./conftest$ac_cv_exeext'
3675 { { case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680 $as_echo "$ac_try_echo"; } >&5
3681 (eval "$ac_try") 2>&5
3682 ac_status=$?
3683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3684 test $ac_status = 0; }; }; then
3685 cross_compiling=no
3686 else
3687 if test "$cross_compiling" = maybe; then
3688 cross_compiling=yes
3689 else
3690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692 as_fn_error "cannot run C++ compiled programs.
3693 If you meant to cross compile, use \`--host'.
3694 See \`config.log' for more details." "$LINENO" 5; }
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3699 $as_echo "$cross_compiling" >&6; }
3701 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3702 ac_clean_files=$ac_clean_files_save
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3704 $as_echo_n "checking for suffix of object files... " >&6; }
3705 if test "${ac_cv_objext+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3712 main ()
3716 return 0;
3718 _ACEOF
3719 rm -f conftest.o conftest.obj
3720 if { { ac_try="$ac_compile"
3721 case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 $as_echo "$ac_try_echo"; } >&5
3727 (eval "$ac_compile") 2>&5
3728 ac_status=$?
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }; then :
3731 for ac_file in conftest.o conftest.obj conftest.*; do
3732 test -f "$ac_file" || continue;
3733 case $ac_file in
3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3736 break;;
3737 esac
3738 done
3739 else
3740 $as_echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error "cannot compute suffix of object files: cannot compile
3746 See \`config.log' for more details." "$LINENO" 5; }
3748 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3751 $as_echo "$ac_cv_objext" >&6; }
3752 OBJEXT=$ac_cv_objext
3753 ac_objext=$OBJEXT
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3755 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3756 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3763 main ()
3765 #ifndef __GNUC__
3766 choke me
3767 #endif
3770 return 0;
3772 _ACEOF
3773 if ac_fn_cxx_try_compile "$LINENO"; then :
3774 ac_compiler_gnu=yes
3775 else
3776 ac_compiler_gnu=no
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3783 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3784 if test $ac_compiler_gnu = yes; then
3785 GXX=yes
3786 else
3787 GXX=
3789 ac_test_CXXFLAGS=${CXXFLAGS+set}
3790 ac_save_CXXFLAGS=$CXXFLAGS
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3792 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3793 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3797 ac_cxx_werror_flag=yes
3798 ac_cv_prog_cxx_g=no
3799 CXXFLAGS="-g"
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3804 main ()
3808 return 0;
3810 _ACEOF
3811 if ac_fn_cxx_try_compile "$LINENO"; then :
3812 ac_cv_prog_cxx_g=yes
3813 else
3814 CXXFLAGS=""
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3819 main ()
3823 return 0;
3825 _ACEOF
3826 if ac_fn_cxx_try_compile "$LINENO"; then :
3828 else
3829 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3830 CXXFLAGS="-g"
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3835 main ()
3839 return 0;
3841 _ACEOF
3842 if ac_fn_cxx_try_compile "$LINENO"; then :
3843 ac_cv_prog_cxx_g=yes
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3853 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3854 if test "$ac_test_CXXFLAGS" = set; then
3855 CXXFLAGS=$ac_save_CXXFLAGS
3856 elif test $ac_cv_prog_cxx_g = yes; then
3857 if test "$GXX" = yes; then
3858 CXXFLAGS="-g -O2"
3859 else
3860 CXXFLAGS="-g"
3862 else
3863 if test "$GXX" = yes; then
3864 CXXFLAGS="-O2"
3865 else
3866 CXXFLAGS=
3869 ac_ext=c
3870 ac_cpp='$CPP $CPPFLAGS'
3871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3874 DEPDIR="${am__leading_dot}deps"
3876 ac_config_commands="$ac_config_commands depfiles"
3879 am_make=${MAKE-make}
3880 cat > confinc << 'END'
3881 am__doit:
3882 @echo this is the am__doit target
3883 .PHONY: am__doit
3885 # If we don't find an include directive, just comment out the code.
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3887 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3888 am__include="#"
3889 am__quote=
3890 _am_result=none
3891 # First try GNU make style include.
3892 echo "include confinc" > confmf
3893 # Ignore all kinds of additional output from `make'.
3894 case `$am_make -s -f confmf 2> /dev/null` in #(
3895 *the\ am__doit\ target*)
3896 am__include=include
3897 am__quote=
3898 _am_result=GNU
3900 esac
3901 # Now try BSD make style include.
3902 if test "$am__include" = "#"; then
3903 echo '.include "confinc"' > confmf
3904 case `$am_make -s -f confmf 2> /dev/null` in #(
3905 *the\ am__doit\ target*)
3906 am__include=.include
3907 am__quote="\""
3908 _am_result=BSD
3910 esac
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3915 $as_echo "$_am_result" >&6; }
3916 rm -f confinc confmf
3918 # Check whether --enable-dependency-tracking was given.
3919 if test "${enable_dependency_tracking+set}" = set; then :
3920 enableval=$enable_dependency_tracking;
3923 if test "x$enable_dependency_tracking" != xno; then
3924 am_depcomp="$ac_aux_dir/depcomp"
3925 AMDEPBACKSLASH='\'
3927 if test "x$enable_dependency_tracking" != xno; then
3928 AMDEP_TRUE=
3929 AMDEP_FALSE='#'
3930 else
3931 AMDEP_TRUE='#'
3932 AMDEP_FALSE=
3937 depcc="$CXX" am_compiler_list=
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3940 $as_echo_n "checking dependency style of $depcc... " >&6; }
3941 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3945 # We make a subdir and do the tests there. Otherwise we can end up
3946 # making bogus files that we don't know about and never remove. For
3947 # instance it was reported that on HP-UX the gcc test will end up
3948 # making a dummy file named `D' -- because `-MD' means `put the output
3949 # in D'.
3950 mkdir conftest.dir
3951 # Copy depcomp to subdir because otherwise we won't find it if we're
3952 # using a relative directory.
3953 cp "$am_depcomp" conftest.dir
3954 cd conftest.dir
3955 # We will build objects and dependencies in a subdirectory because
3956 # it helps to detect inapplicable dependency modes. For instance
3957 # both Tru64's cc and ICC support -MD to output dependencies as a
3958 # side effect of compilation, but ICC will put the dependencies in
3959 # the current directory while Tru64 will put them in the object
3960 # directory.
3961 mkdir sub
3963 am_cv_CXX_dependencies_compiler_type=none
3964 if test "$am_compiler_list" = ""; then
3965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3967 am__universal=false
3968 case " $depcc " in #(
3969 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3970 esac
3972 for depmode in $am_compiler_list; do
3973 # Setup a source with many dependencies, because some compilers
3974 # like to wrap large dependency lists on column 80 (with \), and
3975 # we should not choose a depcomp mode which is confused by this.
3977 # We need to recreate these files for each test, as the compiler may
3978 # overwrite some of them when testing with obscure command lines.
3979 # This happens at least with the AIX C compiler.
3980 : > sub/conftest.c
3981 for i in 1 2 3 4 5 6; do
3982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3983 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3984 # Solaris 8's {/usr,}/bin/sh.
3985 touch sub/conftst$i.h
3986 done
3987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3989 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3990 # mode. It turns out that the SunPro C++ compiler does not properly
3991 # handle `-M -o', and we need to detect this. Also, some Intel
3992 # versions had trouble with output in subdirs
3993 am__obj=sub/conftest.${OBJEXT-o}
3994 am__minus_obj="-o $am__obj"
3995 case $depmode in
3996 gcc)
3997 # This depmode causes a compiler race in universal mode.
3998 test "$am__universal" = false || continue
4000 nosideeffect)
4001 # after this tag, mechanisms are not by side-effect, so they'll
4002 # only be used when explicitly requested
4003 if test "x$enable_dependency_tracking" = xyes; then
4004 continue
4005 else
4006 break
4009 msvisualcpp | msvcmsys)
4010 # This compiler won't grok `-c -o', but also, the minuso test has
4011 # not run yet. These depmodes are late enough in the game, and
4012 # so weak that their functioning should not be impacted.
4013 am__obj=conftest.${OBJEXT-o}
4014 am__minus_obj=
4016 none) break ;;
4017 esac
4018 if depmode=$depmode \
4019 source=sub/conftest.c object=$am__obj \
4020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4022 >/dev/null 2>conftest.err &&
4023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4027 # icc doesn't choke on unknown options, it will just issue warnings
4028 # or remarks (even with -Werror). So we grep stderr for any message
4029 # that says an option was ignored or not supported.
4030 # When given -MP, icc 7.0 and 7.1 complain thusly:
4031 # icc: Command line warning: ignoring option '-M'; no argument required
4032 # The diagnosis changed in icc 8.0:
4033 # icc: Command line remark: option '-MP' not supported
4034 if (grep 'ignoring option' conftest.err ||
4035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4036 am_cv_CXX_dependencies_compiler_type=$depmode
4037 break
4040 done
4042 cd ..
4043 rm -rf conftest.dir
4044 else
4045 am_cv_CXX_dependencies_compiler_type=none
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4050 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4051 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4054 test "x$enable_dependency_tracking" != xno \
4055 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4056 am__fastdepCXX_TRUE=
4057 am__fastdepCXX_FALSE='#'
4058 else
4059 am__fastdepCXX_TRUE='#'
4060 am__fastdepCXX_FALSE=
4064 ac_ext=cpp
4065 ac_cpp='$CXXCPP $CPPFLAGS'
4066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4070 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4071 if test -z "$CXXCPP"; then
4072 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 # Double quotes because CXXCPP needs to be expanded
4076 for CXXCPP in "$CXX -E" "/lib/cpp"
4078 ac_preproc_ok=false
4079 for ac_cxx_preproc_warn_flag in '' yes
4081 # Use a header file that comes with gcc, so configuring glibc
4082 # with a fresh cross-compiler works.
4083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4084 # <limits.h> exists even on freestanding compilers.
4085 # On the NeXT, cc -E runs the code through the compiler's parser,
4086 # not just through cpp. "Syntax error" is here to catch this case.
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089 #ifdef __STDC__
4090 # include <limits.h>
4091 #else
4092 # include <assert.h>
4093 #endif
4094 Syntax error
4095 _ACEOF
4096 if ac_fn_cxx_try_cpp "$LINENO"; then :
4098 else
4099 # Broken: fails on valid input.
4100 continue
4102 rm -f conftest.err conftest.$ac_ext
4104 # OK, works on sane cases. Now check whether nonexistent headers
4105 # can be detected and how.
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4108 #include <ac_nonexistent.h>
4109 _ACEOF
4110 if ac_fn_cxx_try_cpp "$LINENO"; then :
4111 # Broken: success on invalid input.
4112 continue
4113 else
4114 # Passes both tests.
4115 ac_preproc_ok=:
4116 break
4118 rm -f conftest.err conftest.$ac_ext
4120 done
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then :
4124 break
4127 done
4128 ac_cv_prog_CXXCPP=$CXXCPP
4131 CXXCPP=$ac_cv_prog_CXXCPP
4132 else
4133 ac_cv_prog_CXXCPP=$CXXCPP
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4136 $as_echo "$CXXCPP" >&6; }
4137 ac_preproc_ok=false
4138 for ac_cxx_preproc_warn_flag in '' yes
4140 # Use a header file that comes with gcc, so configuring glibc
4141 # with a fresh cross-compiler works.
4142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4143 # <limits.h> exists even on freestanding compilers.
4144 # On the NeXT, cc -E runs the code through the compiler's parser,
4145 # not just through cpp. "Syntax error" is here to catch this case.
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148 #ifdef __STDC__
4149 # include <limits.h>
4150 #else
4151 # include <assert.h>
4152 #endif
4153 Syntax error
4154 _ACEOF
4155 if ac_fn_cxx_try_cpp "$LINENO"; then :
4157 else
4158 # Broken: fails on valid input.
4159 continue
4161 rm -f conftest.err conftest.$ac_ext
4163 # OK, works on sane cases. Now check whether nonexistent headers
4164 # can be detected and how.
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167 #include <ac_nonexistent.h>
4168 _ACEOF
4169 if ac_fn_cxx_try_cpp "$LINENO"; then :
4170 # Broken: success on invalid input.
4171 continue
4172 else
4173 # Passes both tests.
4174 ac_preproc_ok=:
4175 break
4177 rm -f conftest.err conftest.$ac_ext
4179 done
4180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4181 rm -f conftest.err conftest.$ac_ext
4182 if $ac_preproc_ok; then :
4184 else
4185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4188 See \`config.log' for more details." "$LINENO" 5; }
4191 ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if test "${ac_cv_prog_CC+set}" = set; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4212 else
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH
4216 IFS=$as_save_IFS
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4222 break 2
4224 done
4225 done
4226 IFS=$as_save_IFS
4230 CC=$ac_cv_prog_CC
4231 if test -n "$CC"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233 $as_echo "$CC" >&6; }
4234 else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4241 if test -z "$ac_cv_prog_CC"; then
4242 ac_ct_CC=$CC
4243 # Extract the first word of "gcc", so it can be a program name with args.
4244 set dummy gcc; ac_word=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_ac_ct_CC="gcc"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4264 done
4265 done
4266 IFS=$as_save_IFS
4270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4271 if test -n "$ac_ct_CC"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4273 $as_echo "$ac_ct_CC" >&6; }
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4279 if test "x$ac_ct_CC" = x; then
4280 CC=""
4281 else
4282 case $cross_compiling:$ac_tool_warned in
4283 yes:)
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4286 ac_tool_warned=yes ;;
4287 esac
4288 CC=$ac_ct_CC
4290 else
4291 CC="$ac_cv_prog_CC"
4294 if test -z "$CC"; then
4295 if test -n "$ac_tool_prefix"; then
4296 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4297 set dummy ${ac_tool_prefix}cc; ac_word=$2
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 $as_echo_n "checking for $ac_word... " >&6; }
4300 if test "${ac_cv_prog_CC+set}" = set; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 if test -n "$CC"; then
4304 ac_cv_prog_CC="$CC" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 ac_cv_prog_CC="${ac_tool_prefix}cc"
4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4317 done
4318 done
4319 IFS=$as_save_IFS
4323 CC=$ac_cv_prog_CC
4324 if test -n "$CC"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4326 $as_echo "$CC" >&6; }
4327 else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4335 if test -z "$CC"; then
4336 # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if test "${ac_cv_prog_CC+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 if test -n "$CC"; then
4344 ac_cv_prog_CC="$CC" # Let the user override the test.
4345 else
4346 ac_prog_rejected=no
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4355 ac_prog_rejected=yes
4356 continue
4358 ac_cv_prog_CC="cc"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4362 done
4363 done
4364 IFS=$as_save_IFS
4366 if test $ac_prog_rejected = yes; then
4367 # We found a bogon in the path, so make sure we never use it.
4368 set dummy $ac_cv_prog_CC
4369 shift
4370 if test $# != 0; then
4371 # We chose a different compiler from the bogus one.
4372 # However, it has the same basename, so the bogon will be chosen
4373 # first if we set CC to just the basename; use the full file name.
4374 shift
4375 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4380 CC=$ac_cv_prog_CC
4381 if test -n "$CC"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4383 $as_echo "$CC" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4391 if test -z "$CC"; then
4392 if test -n "$ac_tool_prefix"; then
4393 for ac_prog in cl.exe
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CC+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC="$CC" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4416 done
4417 done
4418 IFS=$as_save_IFS
4422 CC=$ac_cv_prog_CC
4423 if test -n "$CC"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4425 $as_echo "$CC" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4432 test -n "$CC" && break
4433 done
4435 if test -z "$CC"; then
4436 ac_ct_CC=$CC
4437 for ac_prog in cl.exe
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -n "$ac_ct_CC"; then
4447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_ac_ct_CC="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4460 done
4461 done
4462 IFS=$as_save_IFS
4466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4467 if test -n "$ac_ct_CC"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4469 $as_echo "$ac_ct_CC" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4476 test -n "$ac_ct_CC" && break
4477 done
4479 if test "x$ac_ct_CC" = x; then
4480 CC=""
4481 else
4482 case $cross_compiling:$ac_tool_warned in
4483 yes:)
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4487 esac
4488 CC=$ac_ct_CC
4495 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4497 as_fn_error "no acceptable C compiler found in \$PATH
4498 See \`config.log' for more details." "$LINENO" 5; }
4500 # Provide some information about the compiler.
4501 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4502 set X $ac_compile
4503 ac_compiler=$2
4504 for ac_option in --version -v -V -qversion; do
4505 { { ac_try="$ac_compiler $ac_option >&5"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 $as_echo "$ac_try_echo"; } >&5
4512 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4513 ac_status=$?
4514 if test -s conftest.err; then
4515 sed '10a\
4516 ... rest of stderr output deleted ...
4517 10q' conftest.err >conftest.er1
4518 cat conftest.er1 >&5
4520 rm -f conftest.er1 conftest.err
4521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522 test $ac_status = 0; }
4523 done
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4526 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4527 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4534 main ()
4536 #ifndef __GNUC__
4537 choke me
4538 #endif
4541 return 0;
4543 _ACEOF
4544 if ac_fn_c_try_compile "$LINENO"; then :
4545 ac_compiler_gnu=yes
4546 else
4547 ac_compiler_gnu=no
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4554 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4555 if test $ac_compiler_gnu = yes; then
4556 GCC=yes
4557 else
4558 GCC=
4560 ac_test_CFLAGS=${CFLAGS+set}
4561 ac_save_CFLAGS=$CFLAGS
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4563 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4564 if test "${ac_cv_prog_cc_g+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 ac_save_c_werror_flag=$ac_c_werror_flag
4568 ac_c_werror_flag=yes
4569 ac_cv_prog_cc_g=no
4570 CFLAGS="-g"
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4575 main ()
4579 return 0;
4581 _ACEOF
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583 ac_cv_prog_cc_g=yes
4584 else
4585 CFLAGS=""
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4590 main ()
4594 return 0;
4596 _ACEOF
4597 if ac_fn_c_try_compile "$LINENO"; then :
4599 else
4600 ac_c_werror_flag=$ac_save_c_werror_flag
4601 CFLAGS="-g"
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4606 main ()
4610 return 0;
4612 _ACEOF
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_cv_prog_cc_g=yes
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 ac_c_werror_flag=$ac_save_c_werror_flag
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4624 $as_echo "$ac_cv_prog_cc_g" >&6; }
4625 if test "$ac_test_CFLAGS" = set; then
4626 CFLAGS=$ac_save_CFLAGS
4627 elif test $ac_cv_prog_cc_g = yes; then
4628 if test "$GCC" = yes; then
4629 CFLAGS="-g -O2"
4630 else
4631 CFLAGS="-g"
4633 else
4634 if test "$GCC" = yes; then
4635 CFLAGS="-O2"
4636 else
4637 CFLAGS=
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4641 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4642 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 ac_cv_prog_cc_c89=no
4646 ac_save_CC=$CC
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4649 #include <stdarg.h>
4650 #include <stdio.h>
4651 #include <sys/types.h>
4652 #include <sys/stat.h>
4653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4654 struct buf { int x; };
4655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4656 static char *e (p, i)
4657 char **p;
4658 int i;
4660 return p[i];
4662 static char *f (char * (*g) (char **, int), char **p, ...)
4664 char *s;
4665 va_list v;
4666 va_start (v,p);
4667 s = g (p, va_arg (v,int));
4668 va_end (v);
4669 return s;
4672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4673 function prototypes and stuff, but not '\xHH' hex character constants.
4674 These don't provoke an error unfortunately, instead are silently treated
4675 as 'x'. The following induces an error, until -std is added to get
4676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4677 array size at least. It's necessary to write '\x00'==0 to get something
4678 that's true only with -std. */
4679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4682 inside strings and character constants. */
4683 #define FOO(x) 'x'
4684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4686 int test (int i, double x);
4687 struct s1 {int (*f) (int a);};
4688 struct s2 {int (*f) (double a);};
4689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4690 int argc;
4691 char **argv;
4693 main ()
4695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4697 return 0;
4699 _ACEOF
4700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4703 CC="$ac_save_CC $ac_arg"
4704 if ac_fn_c_try_compile "$LINENO"; then :
4705 ac_cv_prog_cc_c89=$ac_arg
4707 rm -f core conftest.err conftest.$ac_objext
4708 test "x$ac_cv_prog_cc_c89" != "xno" && break
4709 done
4710 rm -f conftest.$ac_ext
4711 CC=$ac_save_CC
4714 # AC_CACHE_VAL
4715 case "x$ac_cv_prog_cc_c89" in
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4718 $as_echo "none needed" >&6; } ;;
4719 xno)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4721 $as_echo "unsupported" >&6; } ;;
4723 CC="$CC $ac_cv_prog_cc_c89"
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4725 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4726 esac
4727 if test "x$ac_cv_prog_cc_c89" != xno; then :
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 depcc="$CC" am_compiler_list=
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4740 $as_echo_n "checking dependency style of $depcc... " >&6; }
4741 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4745 # We make a subdir and do the tests there. Otherwise we can end up
4746 # making bogus files that we don't know about and never remove. For
4747 # instance it was reported that on HP-UX the gcc test will end up
4748 # making a dummy file named `D' -- because `-MD' means `put the output
4749 # in D'.
4750 mkdir conftest.dir
4751 # Copy depcomp to subdir because otherwise we won't find it if we're
4752 # using a relative directory.
4753 cp "$am_depcomp" conftest.dir
4754 cd conftest.dir
4755 # We will build objects and dependencies in a subdirectory because
4756 # it helps to detect inapplicable dependency modes. For instance
4757 # both Tru64's cc and ICC support -MD to output dependencies as a
4758 # side effect of compilation, but ICC will put the dependencies in
4759 # the current directory while Tru64 will put them in the object
4760 # directory.
4761 mkdir sub
4763 am_cv_CC_dependencies_compiler_type=none
4764 if test "$am_compiler_list" = ""; then
4765 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4767 am__universal=false
4768 case " $depcc " in #(
4769 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4770 esac
4772 for depmode in $am_compiler_list; do
4773 # Setup a source with many dependencies, because some compilers
4774 # like to wrap large dependency lists on column 80 (with \), and
4775 # we should not choose a depcomp mode which is confused by this.
4777 # We need to recreate these files for each test, as the compiler may
4778 # overwrite some of them when testing with obscure command lines.
4779 # This happens at least with the AIX C compiler.
4780 : > sub/conftest.c
4781 for i in 1 2 3 4 5 6; do
4782 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4783 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4784 # Solaris 8's {/usr,}/bin/sh.
4785 touch sub/conftst$i.h
4786 done
4787 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4789 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4790 # mode. It turns out that the SunPro C++ compiler does not properly
4791 # handle `-M -o', and we need to detect this. Also, some Intel
4792 # versions had trouble with output in subdirs
4793 am__obj=sub/conftest.${OBJEXT-o}
4794 am__minus_obj="-o $am__obj"
4795 case $depmode in
4796 gcc)
4797 # This depmode causes a compiler race in universal mode.
4798 test "$am__universal" = false || continue
4800 nosideeffect)
4801 # after this tag, mechanisms are not by side-effect, so they'll
4802 # only be used when explicitly requested
4803 if test "x$enable_dependency_tracking" = xyes; then
4804 continue
4805 else
4806 break
4809 msvisualcpp | msvcmsys)
4810 # This compiler won't grok `-c -o', but also, the minuso test has
4811 # not run yet. These depmodes are late enough in the game, and
4812 # so weak that their functioning should not be impacted.
4813 am__obj=conftest.${OBJEXT-o}
4814 am__minus_obj=
4816 none) break ;;
4817 esac
4818 if depmode=$depmode \
4819 source=sub/conftest.c object=$am__obj \
4820 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4821 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4822 >/dev/null 2>conftest.err &&
4823 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4824 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4825 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4826 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4827 # icc doesn't choke on unknown options, it will just issue warnings
4828 # or remarks (even with -Werror). So we grep stderr for any message
4829 # that says an option was ignored or not supported.
4830 # When given -MP, icc 7.0 and 7.1 complain thusly:
4831 # icc: Command line warning: ignoring option '-M'; no argument required
4832 # The diagnosis changed in icc 8.0:
4833 # icc: Command line remark: option '-MP' not supported
4834 if (grep 'ignoring option' conftest.err ||
4835 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4836 am_cv_CC_dependencies_compiler_type=$depmode
4837 break
4840 done
4842 cd ..
4843 rm -rf conftest.dir
4844 else
4845 am_cv_CC_dependencies_compiler_type=none
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4850 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4851 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4854 test "x$enable_dependency_tracking" != xno \
4855 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4856 am__fastdepCC_TRUE=
4857 am__fastdepCC_FALSE='#'
4858 else
4859 am__fastdepCC_TRUE='#'
4860 am__fastdepCC_FALSE=
4864 ac_ext=c
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4870 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4871 # On Suns, sometimes $CPP names a directory.
4872 if test -n "$CPP" && test -d "$CPP"; then
4873 CPP=
4875 if test -z "$CPP"; then
4876 if test "${ac_cv_prog_CPP+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 # Double quotes because CPP needs to be expanded
4880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4882 ac_preproc_ok=false
4883 for ac_c_preproc_warn_flag in '' yes
4885 # Use a header file that comes with gcc, so configuring glibc
4886 # with a fresh cross-compiler works.
4887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 # <limits.h> exists even on freestanding compilers.
4889 # On the NeXT, cc -E runs the code through the compiler's parser,
4890 # not just through cpp. "Syntax error" is here to catch this case.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #ifdef __STDC__
4894 # include <limits.h>
4895 #else
4896 # include <assert.h>
4897 #endif
4898 Syntax error
4899 _ACEOF
4900 if ac_fn_c_try_cpp "$LINENO"; then :
4902 else
4903 # Broken: fails on valid input.
4904 continue
4906 rm -f conftest.err conftest.$ac_ext
4908 # OK, works on sane cases. Now check whether nonexistent headers
4909 # can be detected and how.
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #include <ac_nonexistent.h>
4913 _ACEOF
4914 if ac_fn_c_try_cpp "$LINENO"; then :
4915 # Broken: success on invalid input.
4916 continue
4917 else
4918 # Passes both tests.
4919 ac_preproc_ok=:
4920 break
4922 rm -f conftest.err conftest.$ac_ext
4924 done
4925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926 rm -f conftest.err conftest.$ac_ext
4927 if $ac_preproc_ok; then :
4928 break
4931 done
4932 ac_cv_prog_CPP=$CPP
4935 CPP=$ac_cv_prog_CPP
4936 else
4937 ac_cv_prog_CPP=$CPP
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4940 $as_echo "$CPP" >&6; }
4941 ac_preproc_ok=false
4942 for ac_c_preproc_warn_flag in '' yes
4944 # Use a header file that comes with gcc, so configuring glibc
4945 # with a fresh cross-compiler works.
4946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947 # <limits.h> exists even on freestanding compilers.
4948 # On the NeXT, cc -E runs the code through the compiler's parser,
4949 # not just through cpp. "Syntax error" is here to catch this case.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #ifdef __STDC__
4953 # include <limits.h>
4954 #else
4955 # include <assert.h>
4956 #endif
4957 Syntax error
4958 _ACEOF
4959 if ac_fn_c_try_cpp "$LINENO"; then :
4961 else
4962 # Broken: fails on valid input.
4963 continue
4965 rm -f conftest.err conftest.$ac_ext
4967 # OK, works on sane cases. Now check whether nonexistent headers
4968 # can be detected and how.
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4972 _ACEOF
4973 if ac_fn_c_try_cpp "$LINENO"; then :
4974 # Broken: success on invalid input.
4975 continue
4976 else
4977 # Passes both tests.
4978 ac_preproc_ok=:
4979 break
4981 rm -f conftest.err conftest.$ac_ext
4983 done
4984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985 rm -f conftest.err conftest.$ac_ext
4986 if $ac_preproc_ok; then :
4988 else
4989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4991 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4992 See \`config.log' for more details." "$LINENO" 5; }
4995 ac_ext=c
4996 ac_cpp='$CPP $CPPFLAGS'
4997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001 ac_build_prefix=
5002 test -n "$build_alias" && ac_build_prefix=$build_alias-
5004 if test "$cross_compiling" = yes; then :
5006 # Even if we're cross-compiling, we want a compiler here
5007 # that is not a cross-compiler.
5008 saved_cross=$cross_compiling
5009 cross_compiling=no
5011 ac_ext=c
5012 ac_cpp='$CPP $BUILD_CPPFLAGS'
5013 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016 if test -n "$ac_build_prefix"; then
5017 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5018 set dummy ${ac_build_prefix}gcc; ac_word=$2
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -n "$BUILD_CC"; then
5025 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5038 done
5039 done
5040 IFS=$as_save_IFS
5044 BUILD_CC=$ac_cv_prog_BUILD_CC
5045 if test -n "$BUILD_CC"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5047 $as_echo "$BUILD_CC" >&6; }
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5055 if test -z "$ac_cv_prog_BUILD_CC"; then
5056 ac_ct_BUILD_CC=$BUILD_CC
5057 # Extract the first word of "gcc", so it can be a program name with args.
5058 set dummy gcc; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$ac_ct_BUILD_CC"; then
5065 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5078 done
5079 done
5080 IFS=$as_save_IFS
5084 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5085 if test -n "$ac_ct_BUILD_CC"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5087 $as_echo "$ac_ct_BUILD_CC" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5093 if test "x$ac_ct_BUILD_CC" = x; then
5094 BUILD_CC=""
5095 else
5096 case $cross_compiling:$ac_tool_warned in
5097 yes:)
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100 ac_tool_warned=yes ;;
5101 esac
5102 BUILD_CC=$ac_ct_BUILD_CC
5104 else
5105 BUILD_CC="$ac_cv_prog_BUILD_CC"
5108 if test -z "$BUILD_CC"; then
5109 if test -n "$ac_build_prefix"; then
5110 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5111 set dummy ${ac_build_prefix}cc; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 if test -n "$BUILD_CC"; then
5118 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5119 else
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121 for as_dir in $PATH
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5131 done
5132 done
5133 IFS=$as_save_IFS
5137 BUILD_CC=$ac_cv_prog_BUILD_CC
5138 if test -n "$BUILD_CC"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5140 $as_echo "$BUILD_CC" >&6; }
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5148 if test -z "$ac_cv_prog_BUILD_CC"; then
5149 ac_ct_BUILD_CC=$BUILD_CC
5150 # Extract the first word of "cc", so it can be a program name with args.
5151 set dummy cc; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$ac_ct_BUILD_CC"; then
5158 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_ac_ct_BUILD_CC="cc"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5171 done
5172 done
5173 IFS=$as_save_IFS
5177 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5178 if test -n "$ac_ct_BUILD_CC"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5180 $as_echo "$ac_ct_BUILD_CC" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5186 if test "x$ac_ct_BUILD_CC" = x; then
5187 BUILD_CC=""
5188 else
5189 case $cross_compiling:$ac_tool_warned in
5190 yes:)
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5193 ac_tool_warned=yes ;;
5194 esac
5195 BUILD_CC=$ac_ct_BUILD_CC
5197 else
5198 BUILD_CC="$ac_cv_prog_BUILD_CC"
5202 if test -z "$BUILD_CC"; then
5203 # Extract the first word of "cc", so it can be a program name with args.
5204 set dummy cc; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$BUILD_CC"; then
5211 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5212 else
5213 ac_prog_rejected=no
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5222 ac_prog_rejected=yes
5223 continue
5225 ac_cv_prog_BUILD_CC="cc"
5226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5229 done
5230 done
5231 IFS=$as_save_IFS
5233 if test $ac_prog_rejected = yes; then
5234 # We found a bogon in the path, so make sure we never use it.
5235 set dummy $ac_cv_prog_BUILD_CC
5236 shift
5237 if test $# != 0; then
5238 # We chose a different compiler from the bogus one.
5239 # However, it has the same basename, so the bogon will be chosen
5240 # first if we set BUILD_CC to just the basename; use the full file name.
5241 shift
5242 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5247 BUILD_CC=$ac_cv_prog_BUILD_CC
5248 if test -n "$BUILD_CC"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5250 $as_echo "$BUILD_CC" >&6; }
5251 else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5258 if test -z "$BUILD_CC"; then
5259 if test -n "$ac_build_prefix"; then
5260 for ac_prog in cl
5262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5263 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -n "$BUILD_CC"; then
5270 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5283 done
5284 done
5285 IFS=$as_save_IFS
5289 BUILD_CC=$ac_cv_prog_BUILD_CC
5290 if test -n "$BUILD_CC"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5292 $as_echo "$BUILD_CC" >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5299 test -n "$BUILD_CC" && break
5300 done
5302 if test -z "$BUILD_CC"; then
5303 ac_ct_BUILD_CC=$BUILD_CC
5304 for ac_prog in cl
5306 # Extract the first word of "$ac_prog", so it can be a program name with args.
5307 set dummy $ac_prog; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 if test -n "$ac_ct_BUILD_CC"; then
5314 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5323 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5327 done
5328 done
5329 IFS=$as_save_IFS
5333 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5334 if test -n "$ac_ct_BUILD_CC"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5336 $as_echo "$ac_ct_BUILD_CC" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5343 test -n "$ac_ct_BUILD_CC" && break
5344 done
5346 if test "x$ac_ct_BUILD_CC" = x; then
5347 BUILD_CC=""
5348 else
5349 case $cross_compiling:$ac_tool_warned in
5350 yes:)
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353 ac_tool_warned=yes ;;
5354 esac
5355 BUILD_CC=$ac_ct_BUILD_CC
5362 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5364 as_fn_error "no acceptable C compiler found in \$PATH
5365 See \`config.log' for more details." "$LINENO" 5; }
5367 # Provide some information about the compiler.
5368 echo "$as_me:$LINENO:" \
5369 "checking for C compiler version" >&5
5370 ac_compiler=`set X $ac_compile; echo $2`
5371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5372 (eval $ac_compiler --version </dev/null >&5) 2>&5
5373 ac_status=$?
5374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5375 test $ac_status = 0; }
5376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5377 (eval $ac_compiler -v </dev/null >&5) 2>&5
5378 ac_status=$?
5379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5380 test $ac_status = 0; }
5381 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5382 (eval $ac_compiler -V </dev/null >&5) 2>&5
5383 ac_status=$?
5384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5385 test $ac_status = 0; }
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5391 main ()
5395 return 0;
5397 _ACEOF
5398 ac_clean_files_save=$ac_clean_files
5399 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5400 # Try to create an executable without -o first, disregard a.out.
5401 # It will help us diagnose broken compilers, and finding out an intuition
5402 # of exeext.
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5404 $as_echo_n "checking whether the C compiler works... " >&6; }
5405 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5407 # The possible output files:
5408 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5410 ac_rmfiles=
5411 for ac_file in $ac_files
5413 case $ac_file in
5414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5416 esac
5417 done
5418 rm -f $ac_rmfiles
5420 if { { ac_try="$ac_link_default"
5421 case "(($ac_try" in
5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5424 esac
5425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5426 $as_echo "$ac_try_echo"; } >&5
5427 (eval "$ac_link_default") 2>&5
5428 ac_status=$?
5429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5430 test $ac_status = 0; }; then :
5431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5432 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5433 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5434 # so that the user can short-circuit this test for compilers unknown to
5435 # Autoconf.
5436 for ac_file in $ac_files ''
5438 test -f "$ac_file" || continue
5439 case $ac_file in
5440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5442 [ab].out )
5443 # We found the default executable, but exeext='' is most
5444 # certainly right.
5445 break;;
5446 *.* )
5447 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5448 then :; else
5449 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5451 # We set ac_cv_exeext here because the later test for it is not
5452 # safe: cross compilers may not add the suffix if given an `-o'
5453 # argument, so we may need to know it at that point already.
5454 # Even if this section looks crufty: it has the advantage of
5455 # actually working.
5456 break;;
5458 break;;
5459 esac
5460 done
5461 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5463 else
5464 ac_file=''
5466 if test -z "$ac_file"; then :
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 $as_echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5474 { as_fn_set_status 77
5475 as_fn_error "C compiler cannot create executables
5476 See \`config.log' for more details." "$LINENO" 5; }; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479 $as_echo "yes" >&6; }
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5482 $as_echo_n "checking for C compiler default output file name... " >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5484 $as_echo "$ac_file" >&6; }
5485 ac_build_exeext=$ac_cv_build_exeext
5487 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5488 ac_clean_files=$ac_clean_files_save
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5490 $as_echo_n "checking for suffix of executables... " >&6; }
5491 if { { ac_try="$ac_link"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5497 $as_echo "$ac_try_echo"; } >&5
5498 (eval "$ac_link") 2>&5
5499 ac_status=$?
5500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5501 test $ac_status = 0; }; then :
5502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5504 # work properly (i.e., refer to `conftest.exe'), while it won't with
5505 # `rm'.
5506 for ac_file in conftest.exe conftest conftest.*; do
5507 test -f "$ac_file" || continue
5508 case $ac_file in
5509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5510 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5511 break;;
5512 * ) break;;
5513 esac
5514 done
5515 else
5516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5518 as_fn_error "cannot compute suffix of executables: cannot compile and link
5519 See \`config.log' for more details." "$LINENO" 5; }
5521 rm -f conftest conftest$ac_cv_build_exeext
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5523 $as_echo "$ac_cv_build_exeext" >&6; }
5525 rm -f conftest.$ac_ext
5526 BUILD_EXEEXT=$ac_cv_build_exeext
5527 ac_build_exeext=$BUILD_EXEEXT
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <stdio.h>
5532 main ()
5534 FILE *f = fopen ("conftest.out", "w");
5535 return ferror (f) || fclose (f) != 0;
5538 return 0;
5540 _ACEOF
5541 ac_clean_files="$ac_clean_files conftest.out"
5542 # Check that the compiler produces executables we can run. If not, either
5543 # the compiler is broken, or we cross compile.
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5545 $as_echo_n "checking whether we are cross compiling... " >&6; }
5546 if test "$cross_compiling" != yes; then
5547 { { ac_try="$ac_link"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5553 $as_echo "$ac_try_echo"; } >&5
5554 (eval "$ac_link") 2>&5
5555 ac_status=$?
5556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5557 test $ac_status = 0; }
5558 if { ac_try='./conftest$ac_cv_build_exeext'
5559 { { case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562 esac
5563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5564 $as_echo "$ac_try_echo"; } >&5
5565 (eval "$ac_try") 2>&5
5566 ac_status=$?
5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5568 test $ac_status = 0; }; }; then
5569 cross_compiling=no
5570 else
5571 if test "$cross_compiling" = maybe; then
5572 cross_compiling=yes
5573 else
5574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5576 as_fn_error "cannot run C compiled programs.
5577 If you meant to cross compile, use \`--host'.
5578 See \`config.log' for more details." "$LINENO" 5; }
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5583 $as_echo "$cross_compiling" >&6; }
5585 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5586 ac_clean_files=$ac_clean_files_save
5589 # Restore configuration environment
5590 cross_compiling=$saved_cross
5592 ac_ext=c
5593 ac_cpp='$CPP $CPPFLAGS'
5594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5598 else
5599 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5601 CFLAGS="$mule_backup_CFLAGS"
5602 CXXFLAGS="$mule_backup_CXXFLAGS"
5603 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5604 for ac_prog in gawk mawk nawk awk
5606 # Extract the first word of "$ac_prog", so it can be a program name with args.
5607 set dummy $ac_prog; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if test "${ac_cv_prog_AWK+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 if test -n "$AWK"; then
5614 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 ac_cv_prog_AWK="$ac_prog"
5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5627 done
5628 done
5629 IFS=$as_save_IFS
5633 AWK=$ac_cv_prog_AWK
5634 if test -n "$AWK"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5636 $as_echo "$AWK" >&6; }
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5643 test -n "$AWK" && break
5644 done
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5647 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5648 if test "${ac_cv_path_GREP+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if test -z "$GREP"; then
5652 ac_path_GREP_found=false
5653 # Loop through the user's path and test for each of PROGNAME-LIST
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_prog in grep ggrep; do
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5662 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5663 # Check for GNU ac_path_GREP and select it if it is found.
5664 # Check for GNU $ac_path_GREP
5665 case `"$ac_path_GREP" --version 2>&1` in
5666 *GNU*)
5667 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5669 ac_count=0
5670 $as_echo_n 0123456789 >"conftest.in"
5671 while :
5673 cat "conftest.in" "conftest.in" >"conftest.tmp"
5674 mv "conftest.tmp" "conftest.in"
5675 cp "conftest.in" "conftest.nl"
5676 $as_echo 'GREP' >> "conftest.nl"
5677 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5679 as_fn_arith $ac_count + 1 && ac_count=$as_val
5680 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5681 # Best one so far, save it but keep looking for a better one
5682 ac_cv_path_GREP="$ac_path_GREP"
5683 ac_path_GREP_max=$ac_count
5685 # 10*(2^10) chars as input seems more than enough
5686 test $ac_count -gt 10 && break
5687 done
5688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5689 esac
5691 $ac_path_GREP_found && break 3
5692 done
5693 done
5694 done
5695 IFS=$as_save_IFS
5696 if test -z "$ac_cv_path_GREP"; then
5697 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5699 else
5700 ac_cv_path_GREP=$GREP
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5705 $as_echo "$ac_cv_path_GREP" >&6; }
5706 GREP="$ac_cv_path_GREP"
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5710 $as_echo_n "checking for egrep... " >&6; }
5711 if test "${ac_cv_path_EGREP+set}" = set; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5715 then ac_cv_path_EGREP="$GREP -E"
5716 else
5717 if test -z "$EGREP"; then
5718 ac_path_EGREP_found=false
5719 # Loop through the user's path and test for each of PROGNAME-LIST
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_prog in egrep; do
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5728 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5729 # Check for GNU ac_path_EGREP and select it if it is found.
5730 # Check for GNU $ac_path_EGREP
5731 case `"$ac_path_EGREP" --version 2>&1` in
5732 *GNU*)
5733 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5735 ac_count=0
5736 $as_echo_n 0123456789 >"conftest.in"
5737 while :
5739 cat "conftest.in" "conftest.in" >"conftest.tmp"
5740 mv "conftest.tmp" "conftest.in"
5741 cp "conftest.in" "conftest.nl"
5742 $as_echo 'EGREP' >> "conftest.nl"
5743 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5745 as_fn_arith $ac_count + 1 && ac_count=$as_val
5746 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5747 # Best one so far, save it but keep looking for a better one
5748 ac_cv_path_EGREP="$ac_path_EGREP"
5749 ac_path_EGREP_max=$ac_count
5751 # 10*(2^10) chars as input seems more than enough
5752 test $ac_count -gt 10 && break
5753 done
5754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5755 esac
5757 $ac_path_EGREP_found && break 3
5758 done
5759 done
5760 done
5761 IFS=$as_save_IFS
5762 if test -z "$ac_cv_path_EGREP"; then
5763 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5765 else
5766 ac_cv_path_EGREP=$EGREP
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5772 $as_echo "$ac_cv_path_EGREP" >&6; }
5773 EGREP="$ac_cv_path_EGREP"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5777 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5778 set x ${MAKE-make}
5779 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5780 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 cat >conftest.make <<\_ACEOF
5784 SHELL = /bin/sh
5785 all:
5786 @echo '@@@%%%=$(MAKE)=@@@%%%'
5787 _ACEOF
5788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5789 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5790 *@@@%%%=?*=@@@%%%*)
5791 eval ac_cv_prog_make_${ac_make}_set=yes;;
5793 eval ac_cv_prog_make_${ac_make}_set=no;;
5794 esac
5795 rm -f conftest.make
5797 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5799 $as_echo "yes" >&6; }
5800 SET_MAKE=
5801 else
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 SET_MAKE="MAKE=${MAKE-make}"
5808 for ac_prog in flex lex
5810 # Extract the first word of "$ac_prog", so it can be a program name with args.
5811 set dummy $ac_prog; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if test "${ac_cv_prog_LEX+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if test -n "$LEX"; then
5818 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_LEX="$ac_prog"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5831 done
5832 done
5833 IFS=$as_save_IFS
5837 LEX=$ac_cv_prog_LEX
5838 if test -n "$LEX"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5840 $as_echo "$LEX" >&6; }
5841 else
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5847 test -n "$LEX" && break
5848 done
5849 test -n "$LEX" || LEX=":"
5851 if test "x$LEX" != "x:"; then
5852 cat >conftest.l <<_ACEOF
5854 a { ECHO; }
5855 b { REJECT; }
5856 c { yymore (); }
5857 d { yyless (1); }
5858 e { yyless (input () != 0); }
5859 f { unput (yytext[0]); }
5860 . { BEGIN INITIAL; }
5862 #ifdef YYTEXT_POINTER
5863 extern char *yytext;
5864 #endif
5866 main (void)
5868 return ! yylex () + ! yywrap ();
5870 _ACEOF
5871 { { ac_try="$LEX conftest.l"
5872 case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875 esac
5876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5877 $as_echo "$ac_try_echo"; } >&5
5878 (eval "$LEX conftest.l") 2>&5
5879 ac_status=$?
5880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5881 test $ac_status = 0; }
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5883 $as_echo_n "checking lex output file root... " >&6; }
5884 if test "${ac_cv_prog_lex_root+set}" = set; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5888 if test -f lex.yy.c; then
5889 ac_cv_prog_lex_root=lex.yy
5890 elif test -f lexyy.c; then
5891 ac_cv_prog_lex_root=lexyy
5892 else
5893 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5897 $as_echo "$ac_cv_prog_lex_root" >&6; }
5898 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5900 if test -z "${LEXLIB+set}"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5902 $as_echo_n "checking lex library... " >&6; }
5903 if test "${ac_cv_lib_lex+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5907 ac_save_LIBS=$LIBS
5908 ac_cv_lib_lex='none needed'
5909 for ac_lib in '' -lfl -ll; do
5910 LIBS="$ac_lib $ac_save_LIBS"
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 `cat $LEX_OUTPUT_ROOT.c`
5914 _ACEOF
5915 if ac_fn_c_try_link "$LINENO"; then :
5916 ac_cv_lib_lex=$ac_lib
5918 rm -f core conftest.err conftest.$ac_objext \
5919 conftest$ac_exeext conftest.$ac_ext
5920 test "$ac_cv_lib_lex" != 'none needed' && break
5921 done
5922 LIBS=$ac_save_LIBS
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5926 $as_echo "$ac_cv_lib_lex" >&6; }
5927 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5932 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5933 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 # POSIX says lex can declare yytext either as a pointer or an array; the
5937 # default is implementation-dependent. Figure out which it is, since
5938 # not all implementations provide the %pointer and %array declarations.
5939 ac_cv_prog_lex_yytext_pointer=no
5940 ac_save_LIBS=$LIBS
5941 LIBS="$LEXLIB $ac_save_LIBS"
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 #define YYTEXT_POINTER 1
5945 `cat $LEX_OUTPUT_ROOT.c`
5946 _ACEOF
5947 if ac_fn_c_try_link "$LINENO"; then :
5948 ac_cv_prog_lex_yytext_pointer=yes
5950 rm -f core conftest.err conftest.$ac_objext \
5951 conftest$ac_exeext conftest.$ac_ext
5952 LIBS=$ac_save_LIBS
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5956 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5957 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5959 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5962 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5966 if test -n "$ac_tool_prefix"; then
5967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 if test -n "$RANLIB"; then
5975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5988 done
5989 done
5990 IFS=$as_save_IFS
5994 RANLIB=$ac_cv_prog_RANLIB
5995 if test -n "$RANLIB"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5997 $as_echo "$RANLIB" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6005 if test -z "$ac_cv_prog_RANLIB"; then
6006 ac_ct_RANLIB=$RANLIB
6007 # Extract the first word of "ranlib", so it can be a program name with args.
6008 set dummy ranlib; ac_word=$2
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010 $as_echo_n "checking for $ac_word... " >&6; }
6011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 if test -n "$ac_ct_RANLIB"; then
6015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6024 ac_cv_prog_ac_ct_RANLIB="ranlib"
6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6028 done
6029 done
6030 IFS=$as_save_IFS
6034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6035 if test -n "$ac_ct_RANLIB"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6037 $as_echo "$ac_ct_RANLIB" >&6; }
6038 else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040 $as_echo "no" >&6; }
6043 if test "x$ac_ct_RANLIB" = x; then
6044 RANLIB=":"
6045 else
6046 case $cross_compiling:$ac_tool_warned in
6047 yes:)
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6050 ac_tool_warned=yes ;;
6051 esac
6052 RANLIB=$ac_ct_RANLIB
6054 else
6055 RANLIB="$ac_cv_prog_RANLIB"
6058 for ac_prog in 'bison -y' byacc
6060 # Extract the first word of "$ac_prog", so it can be a program name with args.
6061 set dummy $ac_prog; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if test "${ac_cv_prog_YACC+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -n "$YACC"; then
6068 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_YACC="$ac_prog"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6081 done
6082 done
6083 IFS=$as_save_IFS
6087 YACC=$ac_cv_prog_YACC
6088 if test -n "$YACC"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6090 $as_echo "$YACC" >&6; }
6091 else
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6097 test -n "$YACC" && break
6098 done
6099 test -n "$YACC" || YACC="yacc"
6102 if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6104 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6108 $as_echo_n "(cached) " >&6
6109 else
6110 if test -n "$RANLIB"; then
6111 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 break 2
6124 done
6125 done
6126 IFS=$as_save_IFS
6130 RANLIB=$ac_cv_prog_RANLIB
6131 if test -n "$RANLIB"; then
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6133 $as_echo "$RANLIB" >&6; }
6134 else
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6141 if test -z "$ac_cv_prog_RANLIB"; then
6142 ac_ct_RANLIB=$RANLIB
6143 # Extract the first word of "ranlib", so it can be a program name with args.
6144 set dummy ranlib; ac_word=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test -n "$ac_ct_RANLIB"; then
6151 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6152 else
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154 for as_dir in $PATH
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_ac_ct_RANLIB="ranlib"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6164 done
6165 done
6166 IFS=$as_save_IFS
6170 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6171 if test -n "$ac_ct_RANLIB"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6173 $as_echo "$ac_ct_RANLIB" >&6; }
6174 else
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6179 if test "x$ac_ct_RANLIB" = x; then
6180 RANLIB=""
6181 else
6182 case $cross_compiling:$ac_tool_warned in
6183 yes:)
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186 ac_tool_warned=yes ;;
6187 esac
6188 RANLIB=$ac_ct_RANLIB
6190 else
6191 RANLIB="$ac_cv_prog_RANLIB"
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}strip; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if test "${ac_cv_prog_STRIP+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$STRIP"; then
6203 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6216 done
6217 done
6218 IFS=$as_save_IFS
6222 STRIP=$ac_cv_prog_STRIP
6223 if test -n "$STRIP"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6225 $as_echo "$STRIP" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6233 if test -z "$ac_cv_prog_STRIP"; then
6234 ac_ct_STRIP=$STRIP
6235 # Extract the first word of "strip", so it can be a program name with args.
6236 set dummy strip; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$ac_ct_STRIP"; then
6243 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_ac_ct_STRIP="strip"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6256 done
6257 done
6258 IFS=$as_save_IFS
6262 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6263 if test -n "$ac_ct_STRIP"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6265 $as_echo "$ac_ct_STRIP" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6271 if test "x$ac_ct_STRIP" = x; then
6272 STRIP=""
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280 STRIP=$ac_ct_STRIP
6282 else
6283 STRIP="$ac_cv_prog_STRIP"
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}ar; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if test "${ac_cv_prog_AR+set}" = set; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$AR"; then
6295 ac_cv_prog_AR="$AR" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_AR="${ac_tool_prefix}ar"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6308 done
6309 done
6310 IFS=$as_save_IFS
6314 AR=$ac_cv_prog_AR
6315 if test -n "$AR"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6317 $as_echo "$AR" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6325 if test -z "$ac_cv_prog_AR"; then
6326 ac_ct_AR=$AR
6327 # Extract the first word of "ar", so it can be a program name with args.
6328 set dummy ar; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$ac_ct_AR"; then
6335 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_ac_ct_AR="ar"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6348 done
6349 done
6350 IFS=$as_save_IFS
6354 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6355 if test -n "$ac_ct_AR"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6357 $as_echo "$ac_ct_AR" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6363 if test "x$ac_ct_AR" = x; then
6364 AR=""
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 AR=$ac_ct_AR
6374 else
6375 AR="$ac_cv_prog_AR"
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}ld; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if test "${ac_cv_prog_LD+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$LD"; then
6387 ac_cv_prog_LD="$LD" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_LD="${ac_tool_prefix}ld"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 LD=$ac_cv_prog_LD
6407 if test -n "$LD"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6409 $as_echo "$LD" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6417 if test -z "$ac_cv_prog_LD"; then
6418 ac_ct_LD=$LD
6419 # Extract the first word of "ld", so it can be a program name with args.
6420 set dummy ld; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$ac_ct_LD"; then
6427 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_LD="ld"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6440 done
6441 done
6442 IFS=$as_save_IFS
6446 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6447 if test -n "$ac_ct_LD"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6449 $as_echo "$ac_ct_LD" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6455 if test "x$ac_ct_LD" = x; then
6456 LD=""
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 LD=$ac_ct_LD
6466 else
6467 LD="$ac_cv_prog_LD"
6471 # Check whether --enable-monolithic was given.
6472 if test "${enable_monolithic+set}" = set; then :
6473 enableval=$enable_monolithic;
6476 if test ${enable_monolithic:-yes} = yes; then
6477 MONOLITHIC_TRUE=
6478 MONOLITHIC_FALSE='#'
6479 else
6480 MONOLITHIC_TRUE='#'
6481 MONOLITHIC_FALSE=
6485 # Check whether --enable-amule-daemon was given.
6486 if test "${enable_amule_daemon+set}" = set; then :
6487 enableval=$enable_amule_daemon;
6490 if test ${enable_amule_daemon:-no} = yes; then
6491 AMULE_DAEMON_TRUE=
6492 AMULE_DAEMON_FALSE='#'
6493 else
6494 AMULE_DAEMON_TRUE='#'
6495 AMULE_DAEMON_FALSE=
6499 # Check whether --enable-amulecmd was given.
6500 if test "${enable_amulecmd+set}" = set; then :
6501 enableval=$enable_amulecmd;
6504 if test ${enable_amulecmd:-no} = yes; then
6505 COMPILE_CMD_TRUE=
6506 COMPILE_CMD_FALSE='#'
6507 else
6508 COMPILE_CMD_TRUE='#'
6509 COMPILE_CMD_FALSE=
6513 # Check whether --enable-webserver was given.
6514 if test "${enable_webserver+set}" = set; then :
6515 enableval=$enable_webserver;
6518 if test ${enable_webserver:-no} = yes; then
6519 WEB_TRUE=
6520 WEB_FALSE='#'
6521 else
6522 WEB_TRUE='#'
6523 WEB_FALSE=
6527 # Check whether --enable-amule-gui was given.
6528 if test "${enable_amule_gui+set}" = set; then :
6529 enableval=$enable_amule_gui;
6532 if test ${enable_amule_gui:-no} = yes; then
6533 AMULE_GUI_TRUE=
6534 AMULE_GUI_FALSE='#'
6535 else
6536 AMULE_GUI_TRUE='#'
6537 AMULE_GUI_FALSE=
6541 # Check whether --enable-cas was given.
6542 if test "${enable_cas+set}" = set; then :
6543 enableval=$enable_cas;
6546 if test ${enable_cas:-no} = yes; then
6547 CAS_TRUE=
6548 CAS_FALSE='#'
6549 else
6550 CAS_TRUE='#'
6551 CAS_FALSE=
6555 # Check whether --enable-wxcas was given.
6556 if test "${enable_wxcas+set}" = set; then :
6557 enableval=$enable_wxcas;
6560 if test ${enable_wxcas:-no} = yes; then
6561 WXCAS_TRUE=
6562 WXCAS_FALSE='#'
6563 else
6564 WXCAS_TRUE='#'
6565 WXCAS_FALSE=
6569 # Check whether --enable-ed2k was given.
6570 if test "${enable_ed2k+set}" = set; then :
6571 enableval=$enable_ed2k;
6574 if test ${enable_ed2k:-yes} = yes; then
6575 ED2K_TRUE=
6576 ED2K_FALSE='#'
6577 else
6578 ED2K_TRUE='#'
6579 ED2K_FALSE=
6583 # Check whether --enable-alc was given.
6584 if test "${enable_alc+set}" = set; then :
6585 enableval=$enable_alc;
6588 if test ${enable_alc:-no} = yes; then
6589 ALC_TRUE=
6590 ALC_FALSE='#'
6591 else
6592 ALC_TRUE='#'
6593 ALC_FALSE=
6597 # Check whether --enable-alcc was given.
6598 if test "${enable_alcc+set}" = set; then :
6599 enableval=$enable_alcc;
6602 if test ${enable_alcc:-no} = yes; then
6603 ALCC_TRUE=
6604 ALCC_FALSE='#'
6605 else
6606 ALCC_TRUE='#'
6607 ALCC_FALSE=
6611 # Check whether --enable-xas was given.
6612 if test "${enable_xas+set}" = set; then :
6613 enableval=$enable_xas;
6616 if test ${enable_xas:-no} = yes; then
6617 XAS_TRUE=
6618 XAS_FALSE='#'
6619 else
6620 XAS_TRUE='#'
6621 XAS_FALSE=
6625 # Check whether --enable-fileview was given.
6626 if test "${enable_fileview+set}" = set; then :
6627 enableval=$enable_fileview;
6630 if test ${enable_fileview:-no} = yes; then
6631 FILEVIEW_TRUE=
6632 FILEVIEW_FALSE='#'
6633 else
6634 FILEVIEW_TRUE='#'
6635 FILEVIEW_FALSE=
6639 # Check whether --enable-plasmamule was given.
6640 if test "${enable_plasmamule+set}" = set; then :
6641 enableval=$enable_plasmamule;
6646 # Run all the tests with static linkage if we want a statically linked binary
6647 # Check whether --enable-static was given.
6648 if test "${enable_static+set}" = set; then :
6649 enableval=$enable_static;
6653 if test ${enable_static:-no} = yes; then :
6654 LDFLAGS="$LDFLAGS -static"
6659 # Check whether --with-kde4-config was given.
6660 if test "${with_kde4_config+set}" = set; then :
6661 withval=$with_kde4_config; KDE4_CONFIG=$withval
6662 else
6663 KDE4_CONFIG=""
6666 # Check whether --enable-kde-in-home was given.
6667 if test "${enable_kde_in_home+set}" = set; then :
6668 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
6669 else
6670 KDE_IN_HOME=no
6676 # Check whether --with-moc was given.
6677 if test "${with_moc+set}" = set; then :
6678 withval=$with_moc; QT_MOC=$withval
6679 else
6680 QT_MOC=""
6685 # Default is yes, because they're most likely compatible.
6686 # However, this is only used when cross-compiling.
6688 # Check whether --with-gnu-malloc was given.
6689 if test "${with_gnu_malloc+set}" = set; then :
6690 withval=$with_gnu_malloc; gnumalloc=$withval
6691 else
6692 gnumalloc=yes
6697 # Checking for libs before all other stuff to break
6698 # configure as soon as possible in case of a missing one
6699 # to avoid losing too much time
6701 # Check for zlib
6702 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 :
6705 # Check whether --with-zlib was given.
6706 if test "${with_zlib+set}" = set; then :
6707 withval=$with_zlib;
6711 case "${with_zlib:-yes}" in
6713 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6715 yes | sys)
6718 zlib_prefix="$with_zlib"
6719 esac
6721 mule_backup_CPPFLAGS="$CPPFLAGS"
6722 mule_backup_LDFLAGS="$LDFLAGS"
6723 mule_backup_LIBS="$LIBS"
6724 if test -n "$zlib_prefix"; then :
6726 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
6727 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
6728 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
6729 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
6731 else
6733 ZLIB_CPPFLAGS=
6734 ZLIB_LDFLAGS=
6737 ZLIB_LIBS="-lz"
6738 LIBS="$ZLIB_LIBS $LIBS"
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
6741 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
6742 if test "$cross_compiling" = yes; then :
6744 result=no
6745 z_version=
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6750 #include <zlib.h>
6751 #include <stdio.h>
6754 main ()
6757 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
6758 zlibVersion();
6761 return 0;
6764 _ACEOF
6765 if ac_fn_c_try_link "$LINENO"; then :
6767 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
6768 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
6769 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
6770 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
6771 if test "$cross_zver_max" -gt "1"; then
6772 result=yes
6773 elif test "$cross_zver_max" -eq "1"; then
6775 if test "$cross_zver_mid" -gt "1"; then
6776 result=yes
6777 elif test "$cross_zver_mid" -eq "1"; then
6778 if test "$cross_zver_min" -ge "4"; then
6779 result=yes
6787 if test ${result:-no} = yes; then :
6788 z_version=" (version $ZLIB_VERSION)"
6792 rm -f core conftest.err conftest.$ac_objext \
6793 conftest$ac_exeext conftest.$ac_ext
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6795 $as_echo "$result$z_version" >&6; }
6797 else
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6802 #include <zlib.h>
6803 #include <stdio.h>
6806 main ()
6808 char *zver = zlibVersion();
6809 FILE *f=fopen("conftestval", "w");
6810 if (!f) return 1;
6811 fprintf(f, "%s",
6812 zver[0] > '1' ||
6813 (zver[0] == '1' &&
6814 (zver[2] > '1' ||
6815 (zver[2] == '1' &&
6816 zver[4] >= '4'))) ? "yes" : "no");
6817 fclose(f);
6818 f=fopen("conftestver", "w");
6819 if (f) {
6820 fprintf(f, "%s", ZLIB_VERSION);
6821 fclose(f);
6825 return 0;
6828 _ACEOF
6829 if ac_fn_c_try_run "$LINENO"; then :
6831 if test -f conftestval; then :
6832 result=`cat conftestval`
6833 else
6834 result=no
6836 if test ${result:-no} = yes; then :
6838 if test -f conftestver; then :
6840 ZLIB_VERSION=`cat conftestver`
6841 z_version=" (version $ZLIB_VERSION)"
6843 else
6844 z_version=
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6849 $as_echo "$result$z_version" >&6; }
6851 else
6853 result=no
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6855 $as_echo "$result" >&6; }
6858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6859 conftest.$ac_objext conftest.beam conftest.$ac_ext
6863 CPPFLAGS="$mule_backup_CPPFLAGS"
6864 LDFLAGS="$mule_backup_LDFLAGS"
6865 LIBS="$mule_backup_LIBS"
6867 if test ${result:-no} = no; then :
6869 ZLIB_CPPFLAGS=
6870 ZLIB_LDFLAGS=
6871 ZLIB_LIBS=
6872 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6881 $as_echo_n "checking for ANSI C header files... " >&6; }
6882 if test "${ac_cv_header_stdc+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 #include <stdlib.h>
6888 #include <stdarg.h>
6889 #include <string.h>
6890 #include <float.h>
6893 main ()
6897 return 0;
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 ac_cv_header_stdc=yes
6902 else
6903 ac_cv_header_stdc=no
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 if test $ac_cv_header_stdc = yes; then
6908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6911 #include <string.h>
6913 _ACEOF
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 $EGREP "memchr" >/dev/null 2>&1; then :
6917 else
6918 ac_cv_header_stdc=no
6920 rm -f conftest*
6924 if test $ac_cv_header_stdc = yes; then
6925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 #include <stdlib.h>
6930 _ACEOF
6931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6932 $EGREP "free" >/dev/null 2>&1; then :
6934 else
6935 ac_cv_header_stdc=no
6937 rm -f conftest*
6941 if test $ac_cv_header_stdc = yes; then
6942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6943 if test "$cross_compiling" = yes; then :
6945 else
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948 #include <ctype.h>
6949 #include <stdlib.h>
6950 #if ((' ' & 0x0FF) == 0x020)
6951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6953 #else
6954 # define ISLOWER(c) \
6955 (('a' <= (c) && (c) <= 'i') \
6956 || ('j' <= (c) && (c) <= 'r') \
6957 || ('s' <= (c) && (c) <= 'z'))
6958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6959 #endif
6961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6963 main ()
6965 int i;
6966 for (i = 0; i < 256; i++)
6967 if (XOR (islower (i), ISLOWER (i))
6968 || toupper (i) != TOUPPER (i))
6969 return 2;
6970 return 0;
6972 _ACEOF
6973 if ac_fn_c_try_run "$LINENO"; then :
6975 else
6976 ac_cv_header_stdc=no
6978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6979 conftest.$ac_objext conftest.beam conftest.$ac_ext
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6985 $as_echo "$ac_cv_header_stdc" >&6; }
6986 if test $ac_cv_header_stdc = yes; then
6988 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6992 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6993 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6994 inttypes.h stdint.h unistd.h
6995 do :
6996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6997 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6999 eval as_val=\$$as_ac_Header
7000 if test "x$as_val" = x""yes; then :
7001 cat >>confdefs.h <<_ACEOF
7002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7003 _ACEOF
7007 done
7010 if test ${enable_cas:-no} = yes; then :
7012 # Check for gd
7015 # Check whether --with-gdlib-prefix was given.
7016 if test "${with_gdlib_prefix+set}" = set; then :
7017 withval=$with_gdlib_prefix;
7021 # Check whether --with-gdlib-config was given.
7022 if test "${with_gdlib_config+set}" = set; then :
7023 withval=$with_gdlib_config;
7027 GDLIB_VERSION=
7029 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7030 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7031 GDLIB_CONFIG_NAME=gdlib-config
7033 if test -n "$with_gdlib_config"; then :
7034 GDLIB_CONFIG_NAME="$with_gdlib_config"
7037 # deal with optional prefix
7038 if test -n "$with_gdlib_prefix"; then :
7039 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7042 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7043 if test -x "$GDLIB_CONFIG_NAME"; then :
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7046 $as_echo_n "checking for gdlib-config... " >&6; }
7047 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7049 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7051 else
7052 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7053 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 case $GDLIB_CONFIG_PATH in
7060 [\\/]* | ?:[\\/]*)
7061 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7066 for as_dir in $as_dummy
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7072 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 break 2
7076 done
7077 done
7078 IFS=$as_save_IFS
7080 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7082 esac
7084 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7085 if test -n "$GDLIB_CONFIG_PATH"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7087 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7096 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7099 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7100 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7102 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7103 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7104 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7105 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7107 gdlib_ver_ok=
7108 if test $gdlib_config_major_version -gt 2; then
7109 gdlib_ver_ok=yes
7110 elif test $gdlib_config_major_version -eq 2; then
7112 if test $gdlib_config_minor_version -gt 0; then
7113 gdlib_ver_ok=yes
7114 elif test $gdlib_config_minor_version -eq 0; then
7115 if test $gdlib_config_micro_version -ge 0; then
7116 gdlib_ver_ok=yes
7125 if test -z "$gdlib_ver_ok"; then :
7127 if test -z "$GDLIB_VERSION"; then :
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7133 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7134 GDLIB_VERSION=
7138 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7141 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7142 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7143 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7144 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7145 mule_backup_CFLAGS="$CFLAGS"
7146 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7147 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7148 if test "x$ac_cv_header_gd_h" = x""yes; then :
7150 else
7151 GDLIB_VERSION=
7155 CFLAGS="$mule_backup_CFLAGS"
7161 if test -n "$GDLIB_VERSION"; then :
7163 CAS_DEFS="-D__GD__"
7164 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7166 else
7167 CAS_DEFS=
7172 if test -z "$CAS_DEFS"; then :
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7174 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7175 Please check that gdlib-config is in your default path, check out
7176 LD_LIBRARY_PATH or equivalent variable.
7177 Or this might also be that your gdlib-config has other name.
7178 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7179 (replace /usr/bin/gdlib-config with a valid path to your
7180 gdlib-config).
7181 If you use compiled packages check if you have devel pack installed.
7182 To download the latest version check http://www.boutell.com/gd for
7183 sources." >&5
7184 $as_echo "$as_me: WARNING:
7185 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7186 Please check that gdlib-config is in your default path, check out
7187 LD_LIBRARY_PATH or equivalent variable.
7188 Or this might also be that your gdlib-config has other name.
7189 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7190 (replace /usr/bin/gdlib-config with a valid path to your
7191 gdlib-config).
7192 If you use compiled packages check if you have devel pack installed.
7193 To download the latest version check http://www.boutell.com/gd for
7194 sources." >&2;}
7195 _mule_warning_0=yes
7196 _mule_has_warnings=yes
7202 if test ${enable_webserver:-no} = yes; then :
7205 # Check whether --with-libpng-prefix was given.
7206 if test "${with_libpng_prefix+set}" = set; then :
7207 withval=$with_libpng_prefix;
7211 # Check whether --with-libpng-config was given.
7212 if test "${with_libpng_config+set}" = set; then :
7213 withval=$with_libpng_config;
7217 LIBPNG_VERSION=
7219 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7220 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7221 LIBPNG_CONFIG_NAME=libpng-config
7223 if test -n "$with_libpng_config"; then :
7224 LIBPNG_CONFIG_NAME="$with_libpng_config"
7227 # deal with optional prefix
7228 if test -n "$with_libpng_prefix"; then :
7229 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7232 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7233 if test -x "$LIBPNG_CONFIG_NAME"; then :
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7236 $as_echo_n "checking for libpng-config... " >&6; }
7237 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7239 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7241 else
7242 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7243 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 case $LIBPNG_CONFIG_PATH in
7250 [\\/]* | ?:[\\/]*)
7251 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7256 for as_dir in $as_dummy
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7266 done
7267 done
7268 IFS=$as_save_IFS
7270 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7272 esac
7274 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7275 if test -n "$LIBPNG_CONFIG_PATH"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7277 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7278 else
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7286 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7289 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7291 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7293 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7294 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7295 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7296 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7298 libpng_ver_ok=
7299 if test $libpng_config_major_version -gt 1; then
7300 libpng_ver_ok=yes
7301 elif test $libpng_config_major_version -eq 1; then
7303 if test $libpng_config_minor_version -gt 2; then
7304 libpng_ver_ok=yes
7305 elif test $libpng_config_minor_version -eq 2; then
7306 if test $libpng_config_micro_version -ge 0; then
7307 libpng_ver_ok=yes
7316 if test -z "$libpng_ver_ok"; then :
7318 if test -z "$LIBPNG_VERSION"; then :
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7324 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7325 LIBPNG_VERSION=
7329 else
7331 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7332 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
7333 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7335 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7341 if test -n "$LIBPNG_VERSION"; then :
7342 AMULEWEB_DEFS="-DWITH_LIBPNG"
7343 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7346 libpng >= 1.2.0 not found.
7347 amuleweb will be compiled but file download progress bar images will
7348 NOT be generated." >&5
7349 $as_echo "$as_me: WARNING:
7350 libpng >= 1.2.0 not found.
7351 amuleweb will be compiled but file download progress bar images will
7352 NOT be generated." >&2;}
7353 _mule_warning_1=yes
7354 _mule_has_warnings=yes
7364 # Check for perl File::Copy
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
7366 $as_echo_n "checking for File::Copy... " >&6; }
7367 if perl -e "require File::Copy" 2>/dev/null; then :
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7369 $as_echo "ok" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7372 File::Copy perl module is required by the mldonkey_importer script.
7373 If you want to use this script please install File::Copy from CPAN." >&5
7374 $as_echo "$as_me: WARNING:
7375 File::Copy perl module is required by the mldonkey_importer script.
7376 If you want to use this script please install File::Copy from CPAN." >&2;}
7377 _mule_warning_2=yes
7378 _mule_has_warnings=yes
7382 # Check if we need to install skins
7383 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7384 INSTALL_SKINS=yes
7385 else
7386 INSTALL_SKINS=no
7389 # Check for GeoIP (required for IP2Country capability)
7390 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7392 # Check whether --enable-geoip was given.
7393 if test "${enable_geoip+set}" = set; then :
7394 enableval=$enable_geoip;
7399 if test ${enable_geoip:-no} = yes; then :
7402 # Check whether --with-geoip-headers was given.
7403 if test "${with_geoip_headers+set}" = set; then :
7404 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
7408 # Check whether --with-geoip-lib was given.
7409 if test "${with_geoip_lib+set}" = set; then :
7410 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
7414 mule_backup_CPPFLAGS="$CPPFLAGS"
7415 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7416 mule_backup_LDFLAGS="$LDFLAGS"
7417 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7419 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
7420 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
7422 if test x$SYS = xwin32; then :
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
7425 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
7426 # Actually, we might not need any if GeoIP is linked as a .dll
7427 # - but that's even harder to check for
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7432 #include <GeoIP.h>
7433 #ifdef _WINSOCK2_H
7434 I do know it's not the best approach, but at least works with MinGW stock headers.
7435 (tested with w32api-3.12)
7436 #endif
7439 main ()
7443 return 0;
7446 _ACEOF
7447 if ac_fn_c_try_compile "$LINENO"; then :
7449 GEOIP_WINSOCK_LIB="-lwsock32"
7451 else
7453 GEOIP_WINSOCK_LIB="-lws2_32"
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
7458 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
7462 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
7463 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 ac_check_lib_save_LIBS=$LIBS
7467 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7471 /* Override any GCC internal prototype to avoid an error.
7472 Use char because int might match the return type of a GCC
7473 builtin and then its argument prototype would still apply. */
7474 #ifdef __cplusplus
7475 extern "C"
7476 #endif
7477 char GeoIP_open ();
7479 main ()
7481 return GeoIP_open ();
7483 return 0;
7485 _ACEOF
7486 if ac_fn_c_try_link "$LINENO"; then :
7487 ac_cv_lib_GeoIP_GeoIP_open=yes
7488 else
7489 ac_cv_lib_GeoIP_GeoIP_open=no
7491 rm -f core conftest.err conftest.$ac_objext \
7492 conftest$ac_exeext conftest.$ac_ext
7493 LIBS=$ac_check_lib_save_LIBS
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7496 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
7497 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
7500 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
7502 GEOIP_LIBS="-lGeoIP"
7503 if test x$SYS = xwin32; then :
7504 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7506 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7508 # Check whether --with-geoip-static was given.
7509 if test "${with_geoip_static+set}" = set; then :
7510 withval=$with_geoip_static;
7511 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
7513 mule_backup_LIBS="$LIBS"
7514 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7519 #include <GeoIP.h>
7522 main ()
7525 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7528 return 0;
7531 _ACEOF
7532 if ac_fn_c_try_link "$LINENO"; then :
7534 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7536 else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7539 Cannot link GeoIP statically, because your linker ($LD) does not
7540 support it." >&5
7541 $as_echo "$as_me: WARNING:
7542 Cannot link GeoIP statically, because your linker ($LD) does not
7543 support it." >&2;}
7544 _mule_warning_3=yes
7545 _mule_has_warnings=yes
7549 rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7551 LIBS="$mule_backup_LIBS"
7558 else
7560 enable_geoip=disabled
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7562 GeoIP support has been disabled because the GeoIP libraries were not
7563 found" >&5
7564 $as_echo "$as_me: WARNING:
7565 GeoIP support has been disabled because the GeoIP libraries were not
7566 found" >&2;}
7567 _mule_warning_4=yes
7568 _mule_has_warnings=yes
7574 else
7576 enable_geoip=disabled
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7578 GeoIP support has been disabled because the GeoIP header files were
7579 not found" >&5
7580 $as_echo "$as_me: WARNING:
7581 GeoIP support has been disabled because the GeoIP header files were
7582 not found" >&2;}
7583 _mule_warning_5=yes
7584 _mule_has_warnings=yes
7591 CPPFLAGS="$mule_backup_CPPFLAGS"
7592 LDFLAGS="$mule_backup_LDFLAGS"
7598 # Check for wx
7599 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 :
7602 # Check whether --with-wxdir was given.
7603 if test "${with_wxdir+set}" = set; then :
7604 withval=$with_wxdir; wx_config_name="$withval/wx-config"
7605 wx_config_args="--inplace"
7609 # Check whether --with-wx-config was given.
7610 if test "${with_wx_config+set}" = set; then :
7611 withval=$with_wx_config; wx_config_name="$withval"
7615 # Check whether --with-wx-prefix was given.
7616 if test "${with_wx_prefix+set}" = set; then :
7617 withval=$with_wx_prefix; wx_config_prefix="$withval"
7618 else
7619 wx_config_prefix=""
7623 # Check whether --with-wx-exec-prefix was given.
7624 if test "${with_wx_exec_prefix+set}" = set; then :
7625 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
7626 else
7627 wx_config_exec_prefix=""
7642 # Check whether --with-toolkit was given.
7643 if test "${with_toolkit+set}" = set; then :
7644 withval=$with_toolkit;
7645 else
7646 withval="auto"
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
7651 $as_echo_n "checking for the --with-toolkit option... " >&6; }
7652 if test "$withval" = "auto" ; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7654 $as_echo "will be automatically detected" >&6; }
7655 TOOLKIT="auto"
7656 else
7657 TOOLKIT="$withval"
7659 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7660 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7661 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7662 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7663 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7664 "$TOOLKIT" != "osx_cocoa"; then
7665 as_fn_error "
7666 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7667 " "$LINENO" 5
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
7671 $as_echo "$TOOLKIT" >&6; }
7678 # Check whether --with-wxshared was given.
7679 if test "${with_wxshared+set}" = set; then :
7680 withval=$with_wxshared;
7681 else
7682 withval="auto"
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
7687 $as_echo_n "checking for the --with-wxshared option... " >&6; }
7688 if test "$withval" = "yes" ; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7690 $as_echo "yes" >&6; }
7691 WX_SHARED=1
7693 elif test "1" = "1" -a "$withval" = "no" ; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7696 WX_SHARED=0
7697 elif test "$withval" = "auto" ; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7699 $as_echo "will be automatically detected" >&6; }
7700 WX_SHARED="auto"
7701 else
7702 as_fn_error "
7703 Unrecognized option value (allowed values: yes, auto)
7704 " "$LINENO" 5
7711 # Check whether --with-wxdebug was given.
7712 if test "${with_wxdebug+set}" = set; then :
7713 withval=$with_wxdebug;
7714 else
7715 withval="auto"
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
7720 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
7721 if test "$withval" = "yes" ; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7723 $as_echo "yes" >&6; }
7724 WX_DEBUG=1
7726 elif test "1" = "1" -a "$withval" = "no" ; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 WX_DEBUG=0
7730 elif test "$withval" = "auto" ; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7732 $as_echo "will be automatically detected" >&6; }
7733 WX_DEBUG="auto"
7734 else
7735 as_fn_error "
7736 Unrecognized option value (allowed values: yes, auto)
7737 " "$LINENO" 5
7744 # Check whether --with-wxversion was given.
7745 if test "${with_wxversion+set}" = set; then :
7746 withval=$with_wxversion;
7747 else
7748 withval="auto"
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
7753 $as_echo_n "checking for the --with-wxversion option... " >&6; }
7754 if test "$withval" = "auto" ; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7756 $as_echo "will be automatically detected" >&6; }
7757 WX_VERSION="auto"
7758 else
7760 wx_requested_major_version=`echo $withval | \
7761 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7762 wx_requested_minor_version=`echo $withval | \
7763 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7765 if test "${#wx_requested_major_version}" != "1" -o \
7766 "${#wx_requested_minor_version}" != "1" ; then
7767 as_fn_error "
7768 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7769 " "$LINENO" 5
7772 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
7774 $as_echo "$WX_VERSION" >&6; }
7778 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7779 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7780 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7781 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7782 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7783 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7786 # Force using a static wxWidgets library if the executable is to be linked statically.
7787 if test ${enable_static:-no} = yes; then :
7788 WX_SHARED=0
7790 # Force using a unicode build of the library
7791 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 :
7792 WX_UNICODE=1
7794 DEBUG=$WX_DEBUG
7796 if test "$WX_SHARED" = "1" ; then
7797 WXCONFIG_FLAGS="--static=no "
7798 elif test "$WX_SHARED" = "0" ; then
7799 WXCONFIG_FLAGS="--static=yes "
7802 if test "$WX_DEBUG" = "1" ; then
7803 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7804 elif test "$WX_DEBUG" = "0" ; then
7805 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7808 if test "$WX_UNICODE" = "1" ; then
7809 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7810 elif test "$WX_UNICODE" = "0" ; then
7811 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7814 if test "$TOOLKIT" != "auto" ; then
7815 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7818 if test "$WX_VERSION" != "auto" ; then
7819 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7822 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7824 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7825 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7829 if test x${WX_CONFIG_NAME+set} != xset ; then
7830 WX_CONFIG_NAME=wx-config
7833 if test "x$wx_config_name" != x ; then
7834 WX_CONFIG_NAME="$wx_config_name"
7837 if test x$wx_config_exec_prefix != x ; then
7838 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7839 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7841 if test x$wx_config_prefix != x ; then
7842 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7843 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7845 if test "$cross_compiling" = "yes"; then
7846 wx_config_args="$wx_config_args --host=$host_alias"
7849 if test -x "$WX_CONFIG_NAME" ; then
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
7851 $as_echo_n "checking for wx-config... " >&6; }
7852 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7854 $as_echo "$WX_CONFIG_PATH" >&6; }
7855 else
7856 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7857 set dummy $WX_CONFIG_NAME; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 case $WX_CONFIG_PATH in
7864 [\\/]* | ?:[\\/]*)
7865 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7870 for as_dir in $as_dummy
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7876 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7882 IFS=$as_save_IFS
7884 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7886 esac
7888 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7889 if test -n "$WX_CONFIG_PATH"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7891 $as_echo "$WX_CONFIG_PATH" >&6; }
7892 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7900 if test "$WX_CONFIG_PATH" != "no" ; then
7901 WX_VERSION_FULL=""
7903 min_wx_version=2.8.8
7904 if test -z "$WXCONFIG_FLAGS" ; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
7906 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7909 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
7912 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7914 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7915 wx_config_major_version=`echo $WX_VERSION_FULL | \
7916 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7917 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7918 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7919 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7920 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7922 wx_requested_major_version=`echo $min_wx_version | \
7923 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7924 wx_requested_minor_version=`echo $min_wx_version | \
7925 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7926 wx_requested_micro_version=`echo $min_wx_version | \
7927 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7930 wx_ver_ok=""
7931 if test "x$WX_VERSION_FULL" != x ; then
7932 if test $wx_config_major_version -gt $wx_requested_major_version; then
7933 wx_ver_ok=yes
7934 else
7935 if test $wx_config_major_version -eq $wx_requested_major_version; then
7936 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7937 wx_ver_ok=yes
7938 else
7939 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7940 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7941 wx_ver_ok=yes
7950 if test -n "$wx_ver_ok"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
7953 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
7954 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7956 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7958 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7959 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7960 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7962 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7963 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7965 wxWin=1
7967 else
7969 if test "x$WX_VERSION_FULL" = x; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7974 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
7977 WX_CFLAGS=""
7978 WX_CPPFLAGS=""
7979 WX_CXXFLAGS=""
7980 WX_LIBS=""
7981 WX_RESCOMP=""
7983 if test ! -z "$WXCONFIG_FLAGS"; then
7985 wx_error_message="
7986 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
7987 build with the following settings:
7988 $WXCONFIG_FLAGS
7989 but such build is not available.
7991 To see the wxWidgets builds available on this system, please use
7992 'wx-config --list' command. To use the default build, returned by
7993 'wx-config --selected-config', use the options with their 'auto'
7994 default values."
7998 wx_error_message="
7999 The requested wxWidgets build couldn't be found.
8000 $wx_error_message
8002 If you still get this error, then check that 'wx-config' is
8003 in path, the directory where wxWidgets libraries are installed
8004 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8005 or equivalent variable and wxWidgets version is 2.8.8 or above."
8007 as_fn_error "$wx_error_message" "$LINENO" 5
8010 else
8012 WX_CFLAGS=""
8013 WX_CPPFLAGS=""
8014 WX_CXXFLAGS=""
8015 WX_LIBS=""
8016 WX_RESCOMP=""
8031 WX_VERSION_MAJOR="$wx_config_major_version"
8032 WX_VERSION_MINOR="$wx_config_minor_version"
8036 if test "$wxWin" != 1; then :
8037 as_fn_error "
8038 wxWidgets must be installed on your system but wx-config
8039 script couldn't be found. Please check that wx-config is
8040 in path or specified by --with-wx-config=path flag, the
8041 directory where wxWidgets libraries are installed (returned
8042 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8043 equivalent variable and wxWidgets version is 2.8.8 or above.
8044 " "$LINENO" 5
8047 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8048 as_fn_error "
8049 This version of wxWidgets is known to not work with aMule.
8050 Please upgrade to a newer version.
8051 " "$LINENO" 5
8055 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8057 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8059 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8060 echo "[dbg] Using wx-config --selected-config"
8061 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8065 if test $WX_SHARED = "1"; then
8066 STATIC=0
8067 elif test $WX_SHARED = "0"; then
8068 STATIC=1
8069 elif test $WX_SHARED = "auto"; then
8070 STATIC="auto"
8074 if test "$UNICODE" = "auto" ; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8077 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8079 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8081 if test "$WX_UNICODE" != "0"; then
8082 WX_UNICODE=1
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8084 $as_echo "yes" >&6; }
8086 else
8087 WX_UNICODE=0
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8092 else
8094 WX_UNICODE=$UNICODE
8098 if test "$DEBUG" = "auto" ; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8101 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8103 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8105 if test "$WX_DEBUG" != "0"; then
8106 WX_DEBUG=1
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108 $as_echo "yes" >&6; }
8110 else
8111 WX_DEBUG=0
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8116 else
8118 WX_DEBUG=$DEBUG
8122 if test "$STATIC" = "auto" ; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8125 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8127 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8129 if test "$WX_STATIC" != "0"; then
8130 WX_STATIC=1
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8132 $as_echo "yes" >&6; }
8134 else
8135 WX_STATIC=0
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8140 else
8142 WX_STATIC=$STATIC
8146 if test "$WX_STATIC" != "0"; then
8147 WX_SHARED=0
8148 else
8149 WX_SHARED=1
8156 if test "$TOOLKIT" = "auto" ; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8159 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8161 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8162 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8163 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8164 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8165 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8166 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8167 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8168 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8169 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8170 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8171 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8173 WX_PORT="unknown"
8174 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8175 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8176 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8177 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8178 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8179 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8180 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8181 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8182 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8183 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8184 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8187 if test "$WX_PORT" = "unknown" ; then
8188 as_fn_error "
8189 Cannot detect the currently installed wxWidgets port !
8190 Please check your 'wx-config --cxxflags'...
8191 " "$LINENO" 5
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8195 $as_echo "$WX_PORT" >&6; }
8196 else
8198 if test -n "$TOOLKIT" ; then
8199 WX_PORT=$TOOLKIT
8200 else
8201 WX_PORT=$PORT
8207 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8208 echo "[dbg] Values of all WX_* options after final detection:"
8209 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8210 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8211 echo "[dbg] WX_SHARED: $WX_SHARED"
8212 echo "[dbg] WX_VERSION: $WX_VERSION"
8213 echo "[dbg] WX_PORT: $WX_PORT"
8216 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8217 as_fn_error "
8218 Cannot build shared library against a static build of wxWidgets !
8219 This error happens because the wxWidgets build which was selected
8220 has been detected as static while you asked to build $PACKAGE_NAME
8221 as shared library and this is not possible.
8222 Use the '--disable-shared' option to build $PACKAGE_NAME
8223 as static library or '--with-wxshared' to use wxWidgets as shared library.
8224 " "$LINENO" 5
8227 if test "$DEBUG" = "auto"; then
8228 DEBUG=$WX_DEBUG
8230 if test "$DEBUG" = "1"; then
8231 BUILD="debug"
8232 elif test "$DEBUG" = ""; then
8233 BUILD="release"
8236 if test "$UNICODE" = "auto"; then
8237 UNICODE=$WX_UNICODE
8239 if test "$SHARED" = "auto"; then
8240 SHARED=$WX_SHARED
8242 if test "$TOOLKIT" = "auto"; then
8243 TOOLKIT=$WX_PORT
8247 # We also need wxBase
8248 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8249 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8250 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8252 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8256 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8257 if test "${WX_PORT}" = base; then :
8258 as_fn_error "
8259 The selected components need a wxWidgets library with GUI,
8260 but your installation is base-only. Please install a GUI
8261 enabled version of wxWidgets and then retry.
8262 " "$LINENO" 5
8267 if test ${SYS:-unknown} = win32; then :
8268 if test -n "$ac_tool_prefix"; then
8269 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8270 set dummy ${ac_tool_prefix}windres; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if test "${ac_cv_prog_RC+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 if test -n "$RC"; then
8277 ac_cv_prog_RC="$RC" # Let the user override the test.
8278 else
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in $PATH
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_prog_RC="${ac_tool_prefix}windres"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8290 done
8291 done
8292 IFS=$as_save_IFS
8296 RC=$ac_cv_prog_RC
8297 if test -n "$RC"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8299 $as_echo "$RC" >&6; }
8300 else
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8307 if test -z "$ac_cv_prog_RC"; then
8308 ac_ct_RC=$RC
8309 # Extract the first word of "windres", so it can be a program name with args.
8310 set dummy windres; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 if test -n "$ac_ct_RC"; then
8317 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8318 else
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 for as_dir in $PATH
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_ac_ct_RC="windres"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8330 done
8331 done
8332 IFS=$as_save_IFS
8336 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8337 if test -n "$ac_ct_RC"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
8339 $as_echo "$ac_ct_RC" >&6; }
8340 else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8345 if test "x$ac_ct_RC" = x; then
8346 RC=":"
8347 else
8348 case $cross_compiling:$ac_tool_warned in
8349 yes:)
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8352 ac_tool_warned=yes ;;
8353 esac
8354 RC=$ac_ct_RC
8356 else
8357 RC="$ac_cv_prog_RC"
8363 # Check for libupnp
8364 # Check whether --enable-upnp was given.
8365 if test "${enable_upnp+set}" = set; then :
8366 enableval=$enable_upnp;
8370 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
8372 else
8373 enable_upnp=no
8377 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8378 if test -n "$ac_tool_prefix"; then
8379 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8380 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $PKG_CONFIG in
8387 [\\/]* | ?:[\\/]*)
8388 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in $PATH
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8402 done
8403 done
8404 IFS=$as_save_IFS
8407 esac
8409 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8410 if test -n "$PKG_CONFIG"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8412 $as_echo "$PKG_CONFIG" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8420 if test -z "$ac_cv_path_PKG_CONFIG"; then
8421 ac_pt_PKG_CONFIG=$PKG_CONFIG
8422 # Extract the first word of "pkg-config", so it can be a program name with args.
8423 set dummy pkg-config; ac_word=$2
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425 $as_echo_n "checking for $ac_word... " >&6; }
8426 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 case $ac_pt_PKG_CONFIG in
8430 [\\/]* | ?:[\\/]*)
8431 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435 for as_dir in $PATH
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8441 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 break 2
8445 done
8446 done
8447 IFS=$as_save_IFS
8450 esac
8452 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8453 if test -n "$ac_pt_PKG_CONFIG"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8455 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8461 if test "x$ac_pt_PKG_CONFIG" = x; then
8462 PKG_CONFIG=""
8463 else
8464 case $cross_compiling:$ac_tool_warned in
8465 yes:)
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468 ac_tool_warned=yes ;;
8469 esac
8470 PKG_CONFIG=$ac_pt_PKG_CONFIG
8472 else
8473 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8477 if test -n "$PKG_CONFIG"; then
8478 _pkg_min_version=0.9.0
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8480 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8481 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8483 $as_echo "yes" >&6; }
8484 else
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8487 PKG_CONFIG=""
8491 if test ${enable_upnp:-yes} = yes; then :
8495 # Check whether --with-libupnp-prefix was given.
8496 if test "${with_libupnp_prefix+set}" = set; then :
8497 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8501 if test $cross_compiling = no; then :
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
8504 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
8505 if test -n "$PKG_CONFIG"; then :
8507 if $PKG_CONFIG libupnp --exists; then :
8509 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8510 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
8512 result=yes
8513 resultstr=" (version $LIBUPNP_VERSION)"
8514 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8515 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8516 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8517 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8518 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8520 else
8522 result=no
8523 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8527 else
8529 result=no
8530 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8534 else
8536 result=no
8537 resultstr=" (pkg-config not found)"
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8541 $as_echo "$result$resultstr" >&6; }
8542 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8544 else
8546 result=no
8547 libupnp_error="cross compiling"
8551 if test ${result:-no} = yes; then :
8552 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8553 else
8554 enable_upnp=disabled
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8556 UPnP code has been disabled because ${libupnp_error}." >&5
8557 $as_echo "$as_me: WARNING:
8558 UPnP code has been disabled because ${libupnp_error}." >&2;}
8559 _mule_warning_6=yes
8560 _mule_has_warnings=yes
8569 # Check for Crypto++
8570 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8573 # Check whether --with-crypto-prefix was given.
8574 if test "${with_crypto_prefix+set}" = set; then :
8575 withval=$with_crypto_prefix;
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
8580 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
8582 cryptopp_file_with_version="cryptlib.h"
8584 CRYPTOPP_STYLE="unknown"
8585 CRYPTOPP_LIB_NAME="unknown"
8586 cryptopp_includedir="unknown"
8587 CRYPTOPP_INCLUDE_PREFIX="unknown"
8588 cryptopp_libdir="unknown"
8590 if test -n "$with_crypto_prefix"; then :
8592 CRYPTOPP_PREFIX="$with_crypto_prefix"
8593 # Find the Cryptopp header in the user-provided location
8594 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8596 CRYPTOPP_STYLE="sources"
8597 CRYPTOPP_LIB_NAME="cryptopp"
8598 cryptopp_includedir=
8599 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8600 cryptopp_libdir=
8602 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8604 CRYPTOPP_STYLE="installed"
8605 CRYPTOPP_LIB_NAME="cryptopp"
8606 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8607 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8608 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8610 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8612 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8613 CRYPTOPP_STYLE="gentoo_debian"
8614 CRYPTOPP_LIB_NAME="crypto++"
8615 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8616 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8617 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8622 else
8624 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8625 # Find the Cryptopp header in system locations
8626 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8628 CRYPTOPP_STYLE="sources"
8629 CRYPTOPP_LIB_NAME="cryptopp"
8630 cryptopp_includedir=
8631 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8632 cryptopp_libdir=
8633 break
8635 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8637 CRYPTOPP_STYLE="installed"
8638 CRYPTOPP_LIB_NAME="cryptopp"
8639 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8640 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8641 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8642 break
8644 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8646 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8647 CRYPTOPP_STYLE="gentoo_debian"
8648 CRYPTOPP_LIB_NAME="crypto++"
8649 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8650 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8651 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8652 break
8656 done
8660 if test $CRYPTOPP_STYLE = "unknown"; then :
8661 result=no; resultstr=""
8662 else
8664 # Find out the crypto++ version and check against the minimum required
8665 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8666 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8667 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8668 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8670 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
8672 result=yes
8673 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8674 if test -n "$cryptopp_includedir"; then :
8675 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8676 else
8677 CRYPTOPP_CPPFLAGS=
8679 if test -n "$cryptopp_libdir"; then :
8681 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8682 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8684 else
8686 CRYPTOPP_LDFLAGS=
8687 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8691 cat >>confdefs.h <<_ACEOF
8692 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8693 _ACEOF
8696 else
8698 result=no
8699 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8706 $as_echo "$result$resultstr" >&6; }
8708 if test ${result:-no} = yes; then :
8710 # Check for CryptoPP >= 5.5
8711 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
8712 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8715 else
8717 as_fn_error "
8718 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8719 Please try again with --with-crypto-prefix=/my_crypto_prefix
8720 (replace /my_crypto_prefix with a valid path to your crypto++
8721 installation directory)." "$LINENO" 5
8730 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 :
8731 ac_ext=cpp
8732 ac_cpp='$CXXCPP $CPPFLAGS'
8733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're using the GNU C++ library" >&5
8739 $as_echo_n "checking if we're using the GNU C++ library... " >&6; }
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8744 #include <string>
8745 #ifndef __GLIBCXX__
8746 #error Non-GNU C++ library found.
8747 #endif
8750 _ACEOF
8751 if ac_fn_cxx_try_cpp "$LINENO"; then :
8752 GLIBCXX=yes
8753 else
8754 GLIBCXX=no
8756 rm -f conftest.err conftest.$ac_ext
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBCXX" >&5
8758 $as_echo "$GLIBCXX" >&6; }
8760 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
8762 mule_backup_CPPFLAGS="$CPPFLAGS"
8763 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
8766 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8771 #include <wx/wx.h>
8772 #include <wx/filefn.h>
8773 #ifndef wxHAS_LARGE_FILES
8774 #error No LargeFile support!
8775 #endif
8778 _ACEOF
8779 if ac_fn_cxx_try_cpp "$LINENO"; then :
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8782 $as_echo "yes" >&6; }
8784 else
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787 $as_echo "no" >&6; }
8788 as_fn_error "
8789 Support for large files in wxWidgets is required by aMule.
8790 To continue you must recompile wxWidgets with support for
8791 large files enabled." "$LINENO" 5
8794 rm -f conftest.err conftest.$ac_ext
8796 CPPFLAGS="$mule_backup_CPPFLAGS"
8800 # Check if the compiler is broken, wrt. exceptions.
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
8803 $as_echo_n "checking for exception-handling... " >&6; }
8804 if test "$cross_compiling" = yes; then :
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
8807 $as_echo "undeterminable" >&6; }
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8809 Cross-compilation detected, so exception handling cannot be tested.
8810 Note that broken exception handling in your compiler may lead to
8811 unexpected crashes." >&5
8812 $as_echo "$as_me: WARNING:
8813 Cross-compilation detected, so exception handling cannot be tested.
8814 Note that broken exception handling in your compiler may lead to
8815 unexpected crashes." >&2;}
8816 _mule_warning_7=yes
8817 _mule_has_warnings=yes
8820 else
8821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8826 main ()
8829 try {
8830 throw 1;
8831 } catch (int) {
8832 return 0;
8834 return 1;
8837 return 0;
8840 _ACEOF
8841 if ac_fn_cxx_try_run "$LINENO"; then :
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8844 $as_echo "yes" >&6; }
8846 else
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849 $as_echo "no" >&6; }
8850 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
8853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8854 conftest.$ac_objext conftest.beam conftest.$ac_ext
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
8861 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8866 #include <cxxabi.h>
8869 main ()
8872 int status;
8873 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8874 std::type_info *ti = abi::__cxa_current_exception_type();
8877 return 0;
8880 _ACEOF
8881 if ac_fn_cxx_try_link "$LINENO"; then :
8884 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8887 $as_echo "yes" >&6; }
8889 else
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8892 $as_echo "no" >&6; }
8895 rm -f core conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext conftest.$ac_ext
8898 ac_ext=c
8899 ac_cpp='$CPP $CPPFLAGS'
8900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8907 # Ok, we have all needed libs, now checking for other stuff
8908 if test "$LEX" = "flex"; then :
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
8911 $as_echo_n "checking for extended flex capabilities... " >&6; }
8913 extended_flex=`flex --help | grep header-file`
8914 if test -n "$extended_flex"; then :
8915 HAVE_FLEX_EXTENDED=yes
8916 else
8917 HAVE_FLEX_EXTENDED=no
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
8920 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
8922 if test $HAVE_FLEX_EXTENDED = no; then :
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&5
8924 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8927 else
8928 HAVE_FLEX_EXTENDED=no
8931 # Flush standard test results for speeding cache
8932 cat >confcache <<\_ACEOF
8933 # This file is a shell script that caches the results of configure
8934 # tests run on this system so they can be shared between configure
8935 # scripts and configure runs, see configure's option --config-cache.
8936 # It is not useful on other systems. If it contains results you don't
8937 # want to keep, you may remove or edit it.
8939 # config.status only pays attention to the cache file if you give it
8940 # the --recheck option to rerun configure.
8942 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8943 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8944 # following values.
8946 _ACEOF
8948 # The following way of writing the cache mishandles newlines in values,
8949 # but we know of no workaround that is simple, portable, and efficient.
8950 # So, we kill variables containing newlines.
8951 # Ultrix sh set writes to stderr and can't be redirected directly,
8952 # and sets the high bit in the cache file unless we assign to the vars.
8954 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8955 eval ac_val=\$$ac_var
8956 case $ac_val in #(
8957 *${as_nl}*)
8958 case $ac_var in #(
8959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8961 esac
8962 case $ac_var in #(
8963 _ | IFS | as_nl) ;; #(
8964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8965 *) { eval $ac_var=; unset $ac_var;} ;;
8966 esac ;;
8967 esac
8968 done
8970 (set) 2>&1 |
8971 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8972 *${as_nl}ac_space=\ *)
8973 # `set' does not quote correctly, so add quotes: double-quote
8974 # substitution turns \\\\ into \\, and sed turns \\ into \.
8975 sed -n \
8976 "s/'/'\\\\''/g;
8977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8978 ;; #(
8980 # `set' quotes correctly as required by POSIX, so do not add quotes.
8981 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8983 esac |
8984 sort
8986 sed '
8987 /^ac_cv_env_/b end
8988 t clear
8989 :clear
8990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8991 t end
8992 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8993 :end' >>confcache
8994 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8995 if test -w "$cache_file"; then
8996 test "x$cache_file" != "x/dev/null" &&
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8998 $as_echo "$as_me: updating cache $cache_file" >&6;}
8999 cat confcache >$cache_file
9000 else
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9002 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9005 rm -f confcache
9007 # Checks for header files.
9008 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9009 # for constant arguments. Useless!
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9011 $as_echo_n "checking for working alloca.h... " >&6; }
9012 if test "${ac_cv_working_alloca_h+set}" = set; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 #include <alloca.h>
9019 main ()
9021 char *p = (char *) alloca (2 * sizeof (int));
9022 if (p) return 0;
9024 return 0;
9026 _ACEOF
9027 if ac_fn_c_try_link "$LINENO"; then :
9028 ac_cv_working_alloca_h=yes
9029 else
9030 ac_cv_working_alloca_h=no
9032 rm -f core conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9036 $as_echo "$ac_cv_working_alloca_h" >&6; }
9037 if test $ac_cv_working_alloca_h = yes; then
9039 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9044 $as_echo_n "checking for alloca... " >&6; }
9045 if test "${ac_cv_func_alloca_works+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050 #ifdef __GNUC__
9051 # define alloca __builtin_alloca
9052 #else
9053 # ifdef _MSC_VER
9054 # include <malloc.h>
9055 # define alloca _alloca
9056 # else
9057 # ifdef HAVE_ALLOCA_H
9058 # include <alloca.h>
9059 # else
9060 # ifdef _AIX
9061 #pragma alloca
9062 # else
9063 # ifndef alloca /* predefined by HP cc +Olibcalls */
9064 char *alloca ();
9065 # endif
9066 # endif
9067 # endif
9068 # endif
9069 #endif
9072 main ()
9074 char *p = (char *) alloca (1);
9075 if (p) return 0;
9077 return 0;
9079 _ACEOF
9080 if ac_fn_c_try_link "$LINENO"; then :
9081 ac_cv_func_alloca_works=yes
9082 else
9083 ac_cv_func_alloca_works=no
9085 rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9089 $as_echo "$ac_cv_func_alloca_works" >&6; }
9091 if test $ac_cv_func_alloca_works = yes; then
9093 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9095 else
9096 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9097 # that cause trouble. Some versions do not even contain alloca or
9098 # contain a buggy version. If you still want to use their alloca,
9099 # use ar to extract alloca.o from them instead of compiling alloca.c.
9101 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9103 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9107 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9108 if test "${ac_cv_os_cray+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h. */
9113 #if defined CRAY && ! defined CRAY2
9114 webecray
9115 #else
9116 wenotbecray
9117 #endif
9119 _ACEOF
9120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9121 $EGREP "webecray" >/dev/null 2>&1; then :
9122 ac_cv_os_cray=yes
9123 else
9124 ac_cv_os_cray=no
9126 rm -f conftest*
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9130 $as_echo "$ac_cv_os_cray" >&6; }
9131 if test $ac_cv_os_cray = yes; then
9132 for ac_func in _getb67 GETB67 getb67; do
9133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9135 eval as_val=\$$as_ac_var
9136 if test "x$as_val" = x""yes; then :
9138 cat >>confdefs.h <<_ACEOF
9139 #define CRAY_STACKSEG_END $ac_func
9140 _ACEOF
9142 break
9145 done
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9149 $as_echo_n "checking stack direction for C alloca... " >&6; }
9150 if test "${ac_cv_c_stack_direction+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 if test "$cross_compiling" = yes; then :
9154 ac_cv_c_stack_direction=0
9155 else
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158 $ac_includes_default
9160 find_stack_direction ()
9162 static char *addr = 0;
9163 auto char dummy;
9164 if (addr == 0)
9166 addr = &dummy;
9167 return find_stack_direction ();
9169 else
9170 return (&dummy > addr) ? 1 : -1;
9174 main ()
9176 return find_stack_direction () < 0;
9178 _ACEOF
9179 if ac_fn_c_try_run "$LINENO"; then :
9180 ac_cv_c_stack_direction=1
9181 else
9182 ac_cv_c_stack_direction=-1
9184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9185 conftest.$ac_objext conftest.beam conftest.$ac_ext
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9190 $as_echo "$ac_cv_c_stack_direction" >&6; }
9191 cat >>confdefs.h <<_ACEOF
9192 #define STACK_DIRECTION $ac_cv_c_stack_direction
9193 _ACEOF
9198 ac_header_dirent=no
9199 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9200 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9202 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 #include <sys/types.h>
9209 #include <$ac_hdr>
9212 main ()
9214 if ((DIR *) 0)
9215 return 0;
9217 return 0;
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"; then :
9221 eval "$as_ac_Header=yes"
9222 else
9223 eval "$as_ac_Header=no"
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 eval ac_res=\$$as_ac_Header
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9229 $as_echo "$ac_res" >&6; }
9230 eval as_val=\$$as_ac_Header
9231 if test "x$as_val" = x""yes; then :
9232 cat >>confdefs.h <<_ACEOF
9233 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9234 _ACEOF
9236 ac_header_dirent=$ac_hdr; break
9239 done
9240 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9241 if test $ac_header_dirent = dirent.h; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9243 $as_echo_n "checking for library containing opendir... " >&6; }
9244 if test "${ac_cv_search_opendir+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 ac_func_search_save_LIBS=$LIBS
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9251 /* Override any GCC internal prototype to avoid an error.
9252 Use char because int might match the return type of a GCC
9253 builtin and then its argument prototype would still apply. */
9254 #ifdef __cplusplus
9255 extern "C"
9256 #endif
9257 char opendir ();
9259 main ()
9261 return opendir ();
9263 return 0;
9265 _ACEOF
9266 for ac_lib in '' dir; do
9267 if test -z "$ac_lib"; then
9268 ac_res="none required"
9269 else
9270 ac_res=-l$ac_lib
9271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9273 if ac_fn_c_try_link "$LINENO"; then :
9274 ac_cv_search_opendir=$ac_res
9276 rm -f core conftest.err conftest.$ac_objext \
9277 conftest$ac_exeext
9278 if test "${ac_cv_search_opendir+set}" = set; then :
9279 break
9281 done
9282 if test "${ac_cv_search_opendir+set}" = set; then :
9284 else
9285 ac_cv_search_opendir=no
9287 rm conftest.$ac_ext
9288 LIBS=$ac_func_search_save_LIBS
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9291 $as_echo "$ac_cv_search_opendir" >&6; }
9292 ac_res=$ac_cv_search_opendir
9293 if test "$ac_res" != no; then :
9294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9298 else
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9300 $as_echo_n "checking for library containing opendir... " >&6; }
9301 if test "${ac_cv_search_opendir+set}" = set; then :
9302 $as_echo_n "(cached) " >&6
9303 else
9304 ac_func_search_save_LIBS=$LIBS
9305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h. */
9308 /* Override any GCC internal prototype to avoid an error.
9309 Use char because int might match the return type of a GCC
9310 builtin and then its argument prototype would still apply. */
9311 #ifdef __cplusplus
9312 extern "C"
9313 #endif
9314 char opendir ();
9316 main ()
9318 return opendir ();
9320 return 0;
9322 _ACEOF
9323 for ac_lib in '' x; do
9324 if test -z "$ac_lib"; then
9325 ac_res="none required"
9326 else
9327 ac_res=-l$ac_lib
9328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9330 if ac_fn_c_try_link "$LINENO"; then :
9331 ac_cv_search_opendir=$ac_res
9333 rm -f core conftest.err conftest.$ac_objext \
9334 conftest$ac_exeext
9335 if test "${ac_cv_search_opendir+set}" = set; then :
9336 break
9338 done
9339 if test "${ac_cv_search_opendir+set}" = set; then :
9341 else
9342 ac_cv_search_opendir=no
9344 rm conftest.$ac_ext
9345 LIBS=$ac_func_search_save_LIBS
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9348 $as_echo "$ac_cv_search_opendir" >&6; }
9349 ac_res=$ac_cv_search_opendir
9350 if test "$ac_res" != no; then :
9351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9358 $as_echo_n "checking for ANSI C header files... " >&6; }
9359 if test "${ac_cv_header_stdc+set}" = set; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363 /* end confdefs.h. */
9364 #include <stdlib.h>
9365 #include <stdarg.h>
9366 #include <string.h>
9367 #include <float.h>
9370 main ()
9374 return 0;
9376 _ACEOF
9377 if ac_fn_c_try_compile "$LINENO"; then :
9378 ac_cv_header_stdc=yes
9379 else
9380 ac_cv_header_stdc=no
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384 if test $ac_cv_header_stdc = yes; then
9385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <string.h>
9390 _ACEOF
9391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9392 $EGREP "memchr" >/dev/null 2>&1; then :
9394 else
9395 ac_cv_header_stdc=no
9397 rm -f conftest*
9401 if test $ac_cv_header_stdc = yes; then
9402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 #include <stdlib.h>
9407 _ACEOF
9408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9409 $EGREP "free" >/dev/null 2>&1; then :
9411 else
9412 ac_cv_header_stdc=no
9414 rm -f conftest*
9418 if test $ac_cv_header_stdc = yes; then
9419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9420 if test "$cross_compiling" = yes; then :
9422 else
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9425 #include <ctype.h>
9426 #include <stdlib.h>
9427 #if ((' ' & 0x0FF) == 0x020)
9428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9430 #else
9431 # define ISLOWER(c) \
9432 (('a' <= (c) && (c) <= 'i') \
9433 || ('j' <= (c) && (c) <= 'r') \
9434 || ('s' <= (c) && (c) <= 'z'))
9435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9436 #endif
9438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9440 main ()
9442 int i;
9443 for (i = 0; i < 256; i++)
9444 if (XOR (islower (i), ISLOWER (i))
9445 || toupper (i) != TOUPPER (i))
9446 return 2;
9447 return 0;
9449 _ACEOF
9450 if ac_fn_c_try_run "$LINENO"; then :
9452 else
9453 ac_cv_header_stdc=no
9455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9456 conftest.$ac_objext conftest.beam conftest.$ac_ext
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9462 $as_echo "$ac_cv_header_stdc" >&6; }
9463 if test $ac_cv_header_stdc = yes; then
9465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9469 for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h mntent.h netdb.h netinet/in.h stddef.h nl_types.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/mntent.h sys/mnttab.h sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h sys/types.h unistd.h errno.h signal.h
9470 do :
9471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9472 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9473 eval as_val=\$$as_ac_Header
9474 if test "x$as_val" = x""yes; then :
9475 cat >>confdefs.h <<_ACEOF
9476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9477 _ACEOF
9481 done
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9484 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9485 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9490 #include <sys/types.h>
9491 #include <sys/wait.h>
9492 #ifndef WEXITSTATUS
9493 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9494 #endif
9495 #ifndef WIFEXITED
9496 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9497 #endif
9500 main ()
9502 int s;
9503 wait (&s);
9504 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9506 return 0;
9508 _ACEOF
9509 if ac_fn_c_try_compile "$LINENO"; then :
9510 ac_cv_header_sys_wait_h=yes
9511 else
9512 ac_cv_header_sys_wait_h=no
9514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9517 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9518 if test $ac_cv_header_sys_wait_h = yes; then
9520 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9525 # Checks for typedefs, structures, and compiler characteristics.
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9527 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9528 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9534 #include <stdbool.h>
9535 #ifndef bool
9536 "error: bool is not defined"
9537 #endif
9538 #ifndef false
9539 "error: false is not defined"
9540 #endif
9541 #if false
9542 "error: false is not 0"
9543 #endif
9544 #ifndef true
9545 "error: true is not defined"
9546 #endif
9547 #if true != 1
9548 "error: true is not 1"
9549 #endif
9550 #ifndef __bool_true_false_are_defined
9551 "error: __bool_true_false_are_defined is not defined"
9552 #endif
9554 struct s { _Bool s: 1; _Bool t; } s;
9556 char a[true == 1 ? 1 : -1];
9557 char b[false == 0 ? 1 : -1];
9558 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9559 char d[(bool) 0.5 == true ? 1 : -1];
9560 bool e = &s;
9561 char f[(_Bool) 0.0 == false ? 1 : -1];
9562 char g[true];
9563 char h[sizeof (_Bool)];
9564 char i[sizeof s.t];
9565 enum { j = false, k = true, l = false * true, m = true * 256 };
9566 /* The following fails for
9567 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9568 _Bool n[m];
9569 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9570 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9571 # if defined __xlc__ || defined __GNUC__
9572 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9573 reported by James Lemley on 2005-10-05; see
9574 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9575 This test is not quite right, since xlc is allowed to
9576 reject this program, as the initializer for xlcbug is
9577 not one of the forms that C requires support for.
9578 However, doing the test right would require a runtime
9579 test, and that would make cross-compilation harder.
9580 Let us hope that IBM fixes the xlc bug, and also adds
9581 support for this kind of constant expression. In the
9582 meantime, this test will reject xlc, which is OK, since
9583 our stdbool.h substitute should suffice. We also test
9584 this with GCC, where it should work, to detect more
9585 quickly whether someone messes up the test in the
9586 future. */
9587 char digs[] = "0123456789";
9588 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9589 # endif
9590 /* Catch a bug in an HP-UX C compiler. See
9591 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9592 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9594 _Bool q = true;
9595 _Bool *pq = &q;
9598 main ()
9601 *pq |= q;
9602 *pq |= ! q;
9603 /* Refer to every declared value, to avoid compiler optimizations. */
9604 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9605 + !m + !n + !o + !p + !q + !pq);
9608 return 0;
9610 _ACEOF
9611 if ac_fn_c_try_compile "$LINENO"; then :
9612 ac_cv_header_stdbool_h=yes
9613 else
9614 ac_cv_header_stdbool_h=no
9616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9619 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9620 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9621 if test "x$ac_cv_type__Bool" = x""yes; then :
9623 cat >>confdefs.h <<_ACEOF
9624 #define HAVE__BOOL 1
9625 _ACEOF
9630 if test $ac_cv_header_stdbool_h = yes; then
9632 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9637 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9638 if test "${ac_cv_c_const+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9645 main ()
9647 /* FIXME: Include the comments suggested by Paul. */
9648 #ifndef __cplusplus
9649 /* Ultrix mips cc rejects this. */
9650 typedef int charset[2];
9651 const charset cs;
9652 /* SunOS 4.1.1 cc rejects this. */
9653 char const *const *pcpcc;
9654 char **ppc;
9655 /* NEC SVR4.0.2 mips cc rejects this. */
9656 struct point {int x, y;};
9657 static struct point const zero = {0,0};
9658 /* AIX XL C 1.02.0.0 rejects this.
9659 It does not let you subtract one const X* pointer from another in
9660 an arm of an if-expression whose if-part is not a constant
9661 expression */
9662 const char *g = "string";
9663 pcpcc = &g + (g ? g-g : 0);
9664 /* HPUX 7.0 cc rejects these. */
9665 ++pcpcc;
9666 ppc = (char**) pcpcc;
9667 pcpcc = (char const *const *) ppc;
9668 { /* SCO 3.2v4 cc rejects this. */
9669 char *t;
9670 char const *s = 0 ? (char *) 0 : (char const *) 0;
9672 *t++ = 0;
9673 if (s) return 0;
9675 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9676 int x[] = {25, 17};
9677 const int *foo = &x[0];
9678 ++foo;
9680 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9681 typedef const int *iptr;
9682 iptr p = 0;
9683 ++p;
9685 { /* AIX XL C 1.02.0.0 rejects this saying
9686 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9687 struct s { int j; const int *ap[3]; };
9688 struct s *b; b->j = 5;
9690 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9691 const int foo = 10;
9692 if (!foo) return 0;
9694 return !cs[0] && !zero.x;
9695 #endif
9698 return 0;
9700 _ACEOF
9701 if ac_fn_c_try_compile "$LINENO"; then :
9702 ac_cv_c_const=yes
9703 else
9704 ac_cv_c_const=no
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9709 $as_echo "$ac_cv_c_const" >&6; }
9710 if test $ac_cv_c_const = no; then
9712 $as_echo "#define const /**/" >>confdefs.h
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9717 $as_echo_n "checking for inline... " >&6; }
9718 if test "${ac_cv_c_inline+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 ac_cv_c_inline=no
9722 for ac_kw in inline __inline__ __inline; do
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9725 #ifndef __cplusplus
9726 typedef int foo_t;
9727 static $ac_kw foo_t static_foo () {return 0; }
9728 $ac_kw foo_t foo () {return 0; }
9729 #endif
9731 _ACEOF
9732 if ac_fn_c_try_compile "$LINENO"; then :
9733 ac_cv_c_inline=$ac_kw
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 test "$ac_cv_c_inline" != no && break
9737 done
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9741 $as_echo "$ac_cv_c_inline" >&6; }
9743 case $ac_cv_c_inline in
9744 inline | yes) ;;
9746 case $ac_cv_c_inline in
9747 no) ac_val=;;
9748 *) ac_val=$ac_cv_c_inline;;
9749 esac
9750 cat >>confdefs.h <<_ACEOF
9751 #ifndef __cplusplus
9752 #define inline $ac_val
9753 #endif
9754 _ACEOF
9756 esac
9758 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9759 if test "x$ac_cv_type_mode_t" = x""yes; then :
9761 else
9763 cat >>confdefs.h <<_ACEOF
9764 #define mode_t int
9765 _ACEOF
9769 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9770 if test "x$ac_cv_type_off_t" = x""yes; then :
9772 else
9774 cat >>confdefs.h <<_ACEOF
9775 #define off_t long int
9776 _ACEOF
9780 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9781 if test "x$ac_cv_type_size_t" = x""yes; then :
9783 else
9785 cat >>confdefs.h <<_ACEOF
9786 #define size_t unsigned int
9787 _ACEOF
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9792 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9793 if test "${ac_cv_header_time+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 #include <sys/types.h>
9799 #include <sys/time.h>
9800 #include <time.h>
9803 main ()
9805 if ((struct tm *) 0)
9806 return 0;
9808 return 0;
9810 _ACEOF
9811 if ac_fn_c_try_compile "$LINENO"; then :
9812 ac_cv_header_time=yes
9813 else
9814 ac_cv_header_time=no
9816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9819 $as_echo "$ac_cv_header_time" >&6; }
9820 if test $ac_cv_header_time = yes; then
9822 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9827 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9828 if test "${ac_cv_struct_tm+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
9830 else
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9833 #include <sys/types.h>
9834 #include <time.h>
9837 main ()
9839 struct tm tm;
9840 int *p = &tm.tm_sec;
9841 return !p;
9843 return 0;
9845 _ACEOF
9846 if ac_fn_c_try_compile "$LINENO"; then :
9847 ac_cv_struct_tm=time.h
9848 else
9849 ac_cv_struct_tm=sys/time.h
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9854 $as_echo "$ac_cv_struct_tm" >&6; }
9855 if test $ac_cv_struct_tm = sys/time.h; then
9857 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9862 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9863 if test "${ac_cv_type_uid_t+set}" = set; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868 #include <sys/types.h>
9870 _ACEOF
9871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9872 $EGREP "uid_t" >/dev/null 2>&1; then :
9873 ac_cv_type_uid_t=yes
9874 else
9875 ac_cv_type_uid_t=no
9877 rm -f conftest*
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9881 $as_echo "$ac_cv_type_uid_t" >&6; }
9882 if test $ac_cv_type_uid_t = no; then
9884 $as_echo "#define uid_t int" >>confdefs.h
9887 $as_echo "#define gid_t int" >>confdefs.h
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9892 $as_echo_n "checking for working volatile... " >&6; }
9893 if test "${ac_cv_c_volatile+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9900 main ()
9903 volatile int x;
9904 int * volatile y = (int *) 0;
9905 return !x && !y;
9907 return 0;
9909 _ACEOF
9910 if ac_fn_c_try_compile "$LINENO"; then :
9911 ac_cv_c_volatile=yes
9912 else
9913 ac_cv_c_volatile=no
9915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9918 $as_echo "$ac_cv_c_volatile" >&6; }
9919 if test $ac_cv_c_volatile = no; then
9921 $as_echo "#define volatile /**/" >>confdefs.h
9925 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
9926 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
9928 cat >>confdefs.h <<_ACEOF
9929 #define HAVE_PTRDIFF_T 1
9930 _ACEOF
9936 # Checks for library functions.
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9938 $as_echo_n "checking whether closedir returns void... " >&6; }
9939 if test "${ac_cv_func_closedir_void+set}" = set; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 if test "$cross_compiling" = yes; then :
9943 ac_cv_func_closedir_void=yes
9944 else
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h. */
9947 $ac_includes_default
9948 #include <$ac_header_dirent>
9949 #ifndef __cplusplus
9950 int closedir ();
9951 #endif
9954 main ()
9956 return closedir (opendir (".")) != 0;
9958 return 0;
9960 _ACEOF
9961 if ac_fn_c_try_run "$LINENO"; then :
9962 ac_cv_func_closedir_void=no
9963 else
9964 ac_cv_func_closedir_void=yes
9966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9967 conftest.$ac_objext conftest.beam conftest.$ac_ext
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9972 $as_echo "$ac_cv_func_closedir_void" >&6; }
9973 if test $ac_cv_func_closedir_void = yes; then
9975 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
9979 if test $ac_cv_c_compiler_gnu = yes; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
9981 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
9982 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 ac_pattern="Autoconf.*'x'"
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9988 #include <sgtty.h>
9989 Autoconf TIOCGETP
9990 _ACEOF
9991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9992 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
9993 ac_cv_prog_gcc_traditional=yes
9994 else
9995 ac_cv_prog_gcc_traditional=no
9997 rm -f conftest*
10000 if test $ac_cv_prog_gcc_traditional = no; then
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10003 #include <termio.h>
10004 Autoconf TCGETA
10005 _ACEOF
10006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10007 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10008 ac_cv_prog_gcc_traditional=yes
10010 rm -f conftest*
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10015 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10016 if test $ac_cv_prog_gcc_traditional = yes; then
10017 CC="$CC -traditional"
10021 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10022 if test "x$ac_cv_type_pid_t" = x""yes; then :
10024 else
10026 cat >>confdefs.h <<_ACEOF
10027 #define pid_t int
10028 _ACEOF
10032 for ac_header in vfork.h
10033 do :
10034 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10035 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10036 cat >>confdefs.h <<_ACEOF
10037 #define HAVE_VFORK_H 1
10038 _ACEOF
10042 done
10044 for ac_func in fork vfork
10045 do :
10046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10047 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10048 eval as_val=\$$as_ac_var
10049 if test "x$as_val" = x""yes; then :
10050 cat >>confdefs.h <<_ACEOF
10051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10052 _ACEOF
10055 done
10057 if test "x$ac_cv_func_fork" = xyes; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10059 $as_echo_n "checking for working fork... " >&6; }
10060 if test "${ac_cv_func_fork_works+set}" = set; then :
10061 $as_echo_n "(cached) " >&6
10062 else
10063 if test "$cross_compiling" = yes; then :
10064 ac_cv_func_fork_works=cross
10065 else
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 $ac_includes_default
10070 main ()
10073 /* By Ruediger Kuhlmann. */
10074 return fork () < 0;
10077 return 0;
10079 _ACEOF
10080 if ac_fn_c_try_run "$LINENO"; then :
10081 ac_cv_func_fork_works=yes
10082 else
10083 ac_cv_func_fork_works=no
10085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10086 conftest.$ac_objext conftest.beam conftest.$ac_ext
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10091 $as_echo "$ac_cv_func_fork_works" >&6; }
10093 else
10094 ac_cv_func_fork_works=$ac_cv_func_fork
10096 if test "x$ac_cv_func_fork_works" = xcross; then
10097 case $host in
10098 *-*-amigaos* | *-*-msdosdjgpp*)
10099 # Override, as these systems have only a dummy fork() stub
10100 ac_cv_func_fork_works=no
10103 ac_cv_func_fork_works=yes
10105 esac
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10107 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10109 ac_cv_func_vfork_works=$ac_cv_func_vfork
10110 if test "x$ac_cv_func_vfork" = xyes; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10112 $as_echo_n "checking for working vfork... " >&6; }
10113 if test "${ac_cv_func_vfork_works+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 if test "$cross_compiling" = yes; then :
10117 ac_cv_func_vfork_works=cross
10118 else
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121 /* Thanks to Paul Eggert for this test. */
10122 $ac_includes_default
10123 #include <sys/wait.h>
10124 #ifdef HAVE_VFORK_H
10125 # include <vfork.h>
10126 #endif
10127 /* On some sparc systems, changes by the child to local and incoming
10128 argument registers are propagated back to the parent. The compiler
10129 is told about this with #include <vfork.h>, but some compilers
10130 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10131 static variable whose address is put into a register that is
10132 clobbered by the vfork. */
10133 static void
10134 #ifdef __cplusplus
10135 sparc_address_test (int arg)
10136 # else
10137 sparc_address_test (arg) int arg;
10138 #endif
10140 static pid_t child;
10141 if (!child) {
10142 child = vfork ();
10143 if (child < 0) {
10144 perror ("vfork");
10145 _exit(2);
10147 if (!child) {
10148 arg = getpid();
10149 write(-1, "", 0);
10150 _exit (arg);
10156 main ()
10158 pid_t parent = getpid ();
10159 pid_t child;
10161 sparc_address_test (0);
10163 child = vfork ();
10165 if (child == 0) {
10166 /* Here is another test for sparc vfork register problems. This
10167 test uses lots of local variables, at least as many local
10168 variables as main has allocated so far including compiler
10169 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10170 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10171 reuse the register of parent for one of the local variables,
10172 since it will think that parent can't possibly be used any more
10173 in this routine. Assigning to the local variable will thus
10174 munge parent in the parent process. */
10175 pid_t
10176 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10177 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10178 /* Convince the compiler that p..p7 are live; otherwise, it might
10179 use the same hardware register for all 8 local variables. */
10180 if (p != p1 || p != p2 || p != p3 || p != p4
10181 || p != p5 || p != p6 || p != p7)
10182 _exit(1);
10184 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10185 from child file descriptors. If the child closes a descriptor
10186 before it execs or exits, this munges the parent's descriptor
10187 as well. Test for this by closing stdout in the child. */
10188 _exit(close(fileno(stdout)) != 0);
10189 } else {
10190 int status;
10191 struct stat st;
10193 while (wait(&status) != child)
10195 return (
10196 /* Was there some problem with vforking? */
10197 child < 0
10199 /* Did the child fail? (This shouldn't happen.) */
10200 || status
10202 /* Did the vfork/compiler bug occur? */
10203 || parent != getpid()
10205 /* Did the file descriptor bug occur? */
10206 || fstat(fileno(stdout), &st) != 0
10210 _ACEOF
10211 if ac_fn_c_try_run "$LINENO"; then :
10212 ac_cv_func_vfork_works=yes
10213 else
10214 ac_cv_func_vfork_works=no
10216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10217 conftest.$ac_objext conftest.beam conftest.$ac_ext
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10222 $as_echo "$ac_cv_func_vfork_works" >&6; }
10225 if test "x$ac_cv_func_fork_works" = xcross; then
10226 ac_cv_func_vfork_works=$ac_cv_func_vfork
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10228 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10231 if test "x$ac_cv_func_vfork_works" = xyes; then
10233 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10235 else
10237 $as_echo "#define vfork fork" >>confdefs.h
10240 if test "x$ac_cv_func_fork_works" = xyes; then
10242 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10247 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10248 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10250 else
10251 rm -f conftest.sym conftest.file
10252 echo >conftest.file
10253 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10254 if test "$cross_compiling" = yes; then :
10255 ac_cv_func_lstat_dereferences_slashed_symlink=no
10256 else
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 $ac_includes_default
10261 main ()
10263 struct stat sbuf;
10264 /* Linux will dereference the symlink and fail, as required by POSIX.
10265 That is better in the sense that it means we will not
10266 have to compile and use the lstat wrapper. */
10267 return lstat ("conftest.sym/", &sbuf) == 0;
10269 return 0;
10271 _ACEOF
10272 if ac_fn_c_try_run "$LINENO"; then :
10273 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10274 else
10275 ac_cv_func_lstat_dereferences_slashed_symlink=no
10277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10278 conftest.$ac_objext conftest.beam conftest.$ac_ext
10281 else
10282 # If the `ln -s' command failed, then we probably don't even
10283 # have an lstat function.
10284 ac_cv_func_lstat_dereferences_slashed_symlink=no
10286 rm -f conftest.sym conftest.file
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10290 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10292 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10294 cat >>confdefs.h <<_ACEOF
10295 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10296 _ACEOF
10299 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10300 case " $LIBOBJS " in
10301 *" lstat.$ac_objext "* ) ;;
10302 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10304 esac
10308 if test x$SYS != xwin32; then :
10310 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10311 # -lseq on Dynix/PTX, -lgen on Unixware.
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
10313 $as_echo_n "checking for library containing getmntent... " >&6; }
10314 if test "${ac_cv_search_getmntent+set}" = set; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 ac_func_search_save_LIBS=$LIBS
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10321 /* Override any GCC internal prototype to avoid an error.
10322 Use char because int might match the return type of a GCC
10323 builtin and then its argument prototype would still apply. */
10324 #ifdef __cplusplus
10325 extern "C"
10326 #endif
10327 char getmntent ();
10329 main ()
10331 return getmntent ();
10333 return 0;
10335 _ACEOF
10336 for ac_lib in '' sun seq gen; do
10337 if test -z "$ac_lib"; then
10338 ac_res="none required"
10339 else
10340 ac_res=-l$ac_lib
10341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10343 if ac_fn_c_try_link "$LINENO"; then :
10344 ac_cv_search_getmntent=$ac_res
10346 rm -f core conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext
10348 if test "${ac_cv_search_getmntent+set}" = set; then :
10349 break
10351 done
10352 if test "${ac_cv_search_getmntent+set}" = set; then :
10354 else
10355 ac_cv_search_getmntent=no
10357 rm conftest.$ac_ext
10358 LIBS=$ac_func_search_save_LIBS
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10361 $as_echo "$ac_cv_search_getmntent" >&6; }
10362 ac_res=$ac_cv_search_getmntent
10363 if test "$ac_res" != no; then :
10364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10365 ac_cv_func_getmntent=yes
10367 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
10369 else
10370 ac_cv_func_getmntent=no
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
10375 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
10376 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379 if test "$cross_compiling" = yes; then :
10380 ac_cv_func_lstat_empty_string_bug=yes
10381 else
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384 $ac_includes_default
10386 main ()
10388 struct stat sbuf;
10389 return lstat ("", &sbuf) == 0;
10391 return 0;
10393 _ACEOF
10394 if ac_fn_c_try_run "$LINENO"; then :
10395 ac_cv_func_lstat_empty_string_bug=no
10396 else
10397 ac_cv_func_lstat_empty_string_bug=yes
10399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10400 conftest.$ac_objext conftest.beam conftest.$ac_ext
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
10405 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
10406 if test $ac_cv_func_lstat_empty_string_bug = yes; then
10407 case " $LIBOBJS " in
10408 *" lstat.$ac_objext "* ) ;;
10409 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10411 esac
10414 cat >>confdefs.h <<_ACEOF
10415 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
10416 _ACEOF
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10421 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10422 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 rm -f conftest.sym conftest.file
10426 echo >conftest.file
10427 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10428 if test "$cross_compiling" = yes; then :
10429 ac_cv_func_lstat_dereferences_slashed_symlink=no
10430 else
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 $ac_includes_default
10435 main ()
10437 struct stat sbuf;
10438 /* Linux will dereference the symlink and fail, as required by POSIX.
10439 That is better in the sense that it means we will not
10440 have to compile and use the lstat wrapper. */
10441 return lstat ("conftest.sym/", &sbuf) == 0;
10443 return 0;
10445 _ACEOF
10446 if ac_fn_c_try_run "$LINENO"; then :
10447 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10448 else
10449 ac_cv_func_lstat_dereferences_slashed_symlink=no
10451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10452 conftest.$ac_objext conftest.beam conftest.$ac_ext
10455 else
10456 # If the `ln -s' command failed, then we probably don't even
10457 # have an lstat function.
10458 ac_cv_func_lstat_dereferences_slashed_symlink=no
10460 rm -f conftest.sym conftest.file
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10464 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10466 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10468 cat >>confdefs.h <<_ACEOF
10469 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10470 _ACEOF
10473 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10474 case " $LIBOBJS " in
10475 *" lstat.$ac_objext "* ) ;;
10476 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10478 esac
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
10485 $as_echo_n "checking for working memcmp... " >&6; }
10486 if test "${ac_cv_func_memcmp_working+set}" = set; then :
10487 $as_echo_n "(cached) " >&6
10488 else
10489 if test "$cross_compiling" = yes; then :
10490 ac_cv_func_memcmp_working=no
10491 else
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494 $ac_includes_default
10496 main ()
10499 /* Some versions of memcmp are not 8-bit clean. */
10500 char c0 = '\100', c1 = '\200', c2 = '\201';
10501 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10502 return 1;
10504 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10505 or more and with at least one buffer not starting on a 4-byte boundary.
10506 William Lewis provided this test program. */
10508 char foo[21];
10509 char bar[21];
10510 int i;
10511 for (i = 0; i < 4; i++)
10513 char *a = foo + i;
10514 char *b = bar + i;
10515 strcpy (a, "--------01111111");
10516 strcpy (b, "--------10000000");
10517 if (memcmp (a, b, 16) >= 0)
10518 return 1;
10520 return 0;
10524 return 0;
10526 _ACEOF
10527 if ac_fn_c_try_run "$LINENO"; then :
10528 ac_cv_func_memcmp_working=yes
10529 else
10530 ac_cv_func_memcmp_working=no
10532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10533 conftest.$ac_objext conftest.beam conftest.$ac_ext
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
10538 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10539 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10540 *" memcmp.$ac_objext "* ) ;;
10541 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10543 esac
10546 for ac_header in sys/select.h sys/socket.h
10547 do :
10548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10549 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10550 eval as_val=\$$as_ac_Header
10551 if test "x$as_val" = x""yes; then :
10552 cat >>confdefs.h <<_ACEOF
10553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10554 _ACEOF
10558 done
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10561 $as_echo_n "checking types of arguments for select... " >&6; }
10562 if test "${ac_cv_func_select_args+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10566 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10567 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570 $ac_includes_default
10571 #ifdef HAVE_SYS_SELECT_H
10572 # include <sys/select.h>
10573 #endif
10574 #ifdef HAVE_SYS_SOCKET_H
10575 # include <sys/socket.h>
10576 #endif
10579 main ()
10581 extern int select ($ac_arg1,
10582 $ac_arg234, $ac_arg234, $ac_arg234,
10583 $ac_arg5);
10585 return 0;
10587 _ACEOF
10588 if ac_fn_c_try_compile "$LINENO"; then :
10589 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 done
10593 done
10594 done
10595 # Provide a safe default value.
10596 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10600 $as_echo "$ac_cv_func_select_args" >&6; }
10601 ac_save_IFS=$IFS; IFS=','
10602 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10603 IFS=$ac_save_IFS
10604 shift
10606 cat >>confdefs.h <<_ACEOF
10607 #define SELECT_TYPE_ARG1 $1
10608 _ACEOF
10611 cat >>confdefs.h <<_ACEOF
10612 #define SELECT_TYPE_ARG234 ($2)
10613 _ACEOF
10616 cat >>confdefs.h <<_ACEOF
10617 #define SELECT_TYPE_ARG5 ($3)
10618 _ACEOF
10620 rm -f conftest*
10622 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 ac_cv_func_setvbuf_reversed=no
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10630 $as_echo_n "checking return type of signal handlers... " >&6; }
10631 if test "${ac_cv_type_signal+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10636 #include <sys/types.h>
10637 #include <signal.h>
10640 main ()
10642 return *(signal (0, 0)) (0) == 1;
10644 return 0;
10646 _ACEOF
10647 if ac_fn_c_try_compile "$LINENO"; then :
10648 ac_cv_type_signal=int
10649 else
10650 ac_cv_type_signal=void
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10655 $as_echo "$ac_cv_type_signal" >&6; }
10657 cat >>confdefs.h <<_ACEOF
10658 #define RETSIGTYPE $ac_cv_type_signal
10659 _ACEOF
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
10663 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10664 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 if test "$cross_compiling" = yes; then :
10668 ac_cv_func_stat_empty_string_bug=yes
10669 else
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 $ac_includes_default
10674 main ()
10676 struct stat sbuf;
10677 return stat ("", &sbuf) == 0;
10679 return 0;
10681 _ACEOF
10682 if ac_fn_c_try_run "$LINENO"; then :
10683 ac_cv_func_stat_empty_string_bug=no
10684 else
10685 ac_cv_func_stat_empty_string_bug=yes
10687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10688 conftest.$ac_objext conftest.beam conftest.$ac_ext
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
10693 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10694 if test $ac_cv_func_stat_empty_string_bug = yes; then
10695 case " $LIBOBJS " in
10696 *" stat.$ac_objext "* ) ;;
10697 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10699 esac
10702 cat >>confdefs.h <<_ACEOF
10703 #define HAVE_STAT_EMPTY_STRING_BUG 1
10704 _ACEOF
10708 for ac_func in strftime
10709 do :
10710 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
10711 if test "x$ac_cv_func_strftime" = x""yes; then :
10712 cat >>confdefs.h <<_ACEOF
10713 #define HAVE_STRFTIME 1
10714 _ACEOF
10716 else
10717 # strftime is in -lintl on SCO UNIX.
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
10719 $as_echo_n "checking for strftime in -lintl... " >&6; }
10720 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 ac_check_lib_save_LIBS=$LIBS
10724 LIBS="-lintl $LIBS"
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char strftime ();
10736 main ()
10738 return strftime ();
10740 return 0;
10742 _ACEOF
10743 if ac_fn_c_try_link "$LINENO"; then :
10744 ac_cv_lib_intl_strftime=yes
10745 else
10746 ac_cv_lib_intl_strftime=no
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 LIBS=$ac_check_lib_save_LIBS
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
10753 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
10754 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
10755 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10757 LIBS="-lintl $LIBS"
10761 done
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
10764 $as_echo_n "checking for working strtod... " >&6; }
10765 if test "${ac_cv_func_strtod+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10767 else
10768 if test "$cross_compiling" = yes; then :
10769 ac_cv_func_strtod=no
10770 else
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10774 $ac_includes_default
10775 #ifndef strtod
10776 double strtod ();
10777 #endif
10779 main()
10782 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10783 char *string = " +69";
10784 char *term;
10785 double value;
10786 value = strtod (string, &term);
10787 if (value != 69 || term != (string + 4))
10788 return 1;
10792 /* Under Solaris 2.4, strtod returns the wrong value for the
10793 terminating character under some conditions. */
10794 char *string = "NaN";
10795 char *term;
10796 strtod (string, &term);
10797 if (term != string && *(term - 1) == 0)
10798 return 1;
10800 return 0;
10803 _ACEOF
10804 if ac_fn_c_try_run "$LINENO"; then :
10805 ac_cv_func_strtod=yes
10806 else
10807 ac_cv_func_strtod=no
10809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10810 conftest.$ac_objext conftest.beam conftest.$ac_ext
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
10815 $as_echo "$ac_cv_func_strtod" >&6; }
10816 if test $ac_cv_func_strtod = no; then
10817 case " $LIBOBJS " in
10818 *" strtod.$ac_objext "* ) ;;
10819 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10821 esac
10823 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
10824 if test "x$ac_cv_func_pow" = x""yes; then :
10828 if test $ac_cv_func_pow = no; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
10830 $as_echo_n "checking for pow in -lm... " >&6; }
10831 if test "${ac_cv_lib_m_pow+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10833 else
10834 ac_check_lib_save_LIBS=$LIBS
10835 LIBS="-lm $LIBS"
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10839 /* Override any GCC internal prototype to avoid an error.
10840 Use char because int might match the return type of a GCC
10841 builtin and then its argument prototype would still apply. */
10842 #ifdef __cplusplus
10843 extern "C"
10844 #endif
10845 char pow ();
10847 main ()
10849 return pow ();
10851 return 0;
10853 _ACEOF
10854 if ac_fn_c_try_link "$LINENO"; then :
10855 ac_cv_lib_m_pow=yes
10856 else
10857 ac_cv_lib_m_pow=no
10859 rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
10864 $as_echo "$ac_cv_lib_m_pow" >&6; }
10865 if test "x$ac_cv_lib_m_pow" = x""yes; then :
10866 POW_LIB=-lm
10867 else
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
10869 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10876 for ac_func in vprintf
10877 do :
10878 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10879 if test "x$ac_cv_func_vprintf" = x""yes; then :
10880 cat >>confdefs.h <<_ACEOF
10881 #define HAVE_VPRINTF 1
10882 _ACEOF
10884 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10885 if test "x$ac_cv_func__doprnt" = x""yes; then :
10887 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10892 done
10895 if test $cross_compiling = yes -a $gnumalloc = yes; then :
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10898 configure cannot check whether malloc() and realloc() are GNU libc
10899 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10900 run configure with the --without-gnu-malloc switch." >&5
10901 $as_echo "$as_me: WARNING:
10902 configure cannot check whether malloc() and realloc() are GNU libc
10903 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10904 run configure with the --without-gnu-malloc switch." >&2;}
10905 _mule_warning_8=yes
10906 _mule_has_warnings=yes
10908 ac_cv_func_malloc_0_nonnull=yes
10909 ac_cv_func_realloc_0_nonnull=yes
10912 for ac_header in stdlib.h
10913 do :
10914 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10915 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10916 cat >>confdefs.h <<_ACEOF
10917 #define HAVE_STDLIB_H 1
10918 _ACEOF
10922 done
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10925 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10926 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 if test "$cross_compiling" = yes; then :
10930 ac_cv_func_malloc_0_nonnull=no
10931 else
10932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10934 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10935 # include <stdlib.h>
10936 #else
10937 char *malloc ();
10938 #endif
10941 main ()
10943 return ! malloc (0);
10945 return 0;
10947 _ACEOF
10948 if ac_fn_c_try_run "$LINENO"; then :
10949 ac_cv_func_malloc_0_nonnull=yes
10950 else
10951 ac_cv_func_malloc_0_nonnull=no
10953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10954 conftest.$ac_objext conftest.beam conftest.$ac_ext
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10959 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10960 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10962 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
10964 else
10965 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
10967 case " $LIBOBJS " in
10968 *" malloc.$ac_objext "* ) ;;
10969 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10971 esac
10974 $as_echo "#define malloc rpl_malloc" >>confdefs.h
10979 for ac_header in stdlib.h
10980 do :
10981 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10982 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10983 cat >>confdefs.h <<_ACEOF
10984 #define HAVE_STDLIB_H 1
10985 _ACEOF
10989 done
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
10992 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10993 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 if test "$cross_compiling" = yes; then :
10997 ac_cv_func_realloc_0_nonnull=no
10998 else
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11001 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11002 # include <stdlib.h>
11003 #else
11004 char *realloc ();
11005 #endif
11008 main ()
11010 return ! realloc (0, 0);
11012 return 0;
11014 _ACEOF
11015 if ac_fn_c_try_run "$LINENO"; then :
11016 ac_cv_func_realloc_0_nonnull=yes
11017 else
11018 ac_cv_func_realloc_0_nonnull=no
11020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11021 conftest.$ac_objext conftest.beam conftest.$ac_ext
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11026 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11027 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11029 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11031 else
11032 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11034 case " $LIBOBJS " in
11035 *" realloc.$ac_objext "* ) ;;
11036 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11038 esac
11041 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11046 for ac_func in __argz_count __argz_next __argz_stringify endpwent floor ftruncate getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa localeconv memmove mempcpy memset nl_langinfo pow select setlocale socket sqrt stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtoul sigaction
11047 do :
11048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11049 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11050 eval as_val=\$$as_ac_var
11051 if test "x$as_val" = x""yes; then :
11052 cat >>confdefs.h <<_ACEOF
11053 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11054 _ACEOF
11057 done
11059 #-------------------------------------------------------------------------------
11060 # End of autoscan stuff
11061 #-------------------------------------------------------------------------------
11063 for ac_func in mkdir getrlimit setrlimit getopt_long
11064 do :
11065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11066 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11067 eval as_val=\$$as_ac_var
11068 if test "x$as_val" = x""yes; then :
11069 cat >>confdefs.h <<_ACEOF
11070 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11071 _ACEOF
11074 done
11080 for ac_header in $ac_header_list
11081 do :
11082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11083 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11085 eval as_val=\$$as_ac_Header
11086 if test "x$as_val" = x""yes; then :
11087 cat >>confdefs.h <<_ACEOF
11088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11089 _ACEOF
11093 done
11101 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11103 # Check whether --enable-mmap was given.
11104 if test "${enable_mmap+set}" = set; then :
11105 enableval=$enable_mmap;
11110 if test ${enable_mmap:-no} = yes; then :
11112 for ac_header in sys/mman.h
11113 do :
11114 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11115 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11116 cat >>confdefs.h <<_ACEOF
11117 #define HAVE_SYS_MMAN_H 1
11118 _ACEOF
11122 done
11125 for ac_func in getpagesize
11126 do :
11127 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11128 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11129 cat >>confdefs.h <<_ACEOF
11130 #define HAVE_GETPAGESIZE 1
11131 _ACEOF
11134 done
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11137 $as_echo_n "checking for working mmap... " >&6; }
11138 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 if test "$cross_compiling" = yes; then :
11142 ac_cv_func_mmap_fixed_mapped=no
11143 else
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146 $ac_includes_default
11147 /* malloc might have been renamed as rpl_malloc. */
11148 #undef malloc
11150 /* Thanks to Mike Haertel and Jim Avera for this test.
11151 Here is a matrix of mmap possibilities:
11152 mmap private not fixed
11153 mmap private fixed at somewhere currently unmapped
11154 mmap private fixed at somewhere already mapped
11155 mmap shared not fixed
11156 mmap shared fixed at somewhere currently unmapped
11157 mmap shared fixed at somewhere already mapped
11158 For private mappings, we should verify that changes cannot be read()
11159 back from the file, nor mmap's back from the file at a different
11160 address. (There have been systems where private was not correctly
11161 implemented like the infamous i386 svr4.0, and systems where the
11162 VM page cache was not coherent with the file system buffer cache
11163 like early versions of FreeBSD and possibly contemporary NetBSD.)
11164 For shared mappings, we should conversely verify that changes get
11165 propagated back to all the places they're supposed to be.
11167 Grep wants private fixed already mapped.
11168 The main things grep needs to know about mmap are:
11169 * does it exist and is it safe to write into the mmap'd area
11170 * how to use it (BSD variants) */
11172 #include <fcntl.h>
11173 #include <sys/mman.h>
11175 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11176 char *malloc ();
11177 #endif
11179 /* This mess was copied from the GNU getpagesize.h. */
11180 #ifndef HAVE_GETPAGESIZE
11181 # ifdef _SC_PAGESIZE
11182 # define getpagesize() sysconf(_SC_PAGESIZE)
11183 # else /* no _SC_PAGESIZE */
11184 # ifdef HAVE_SYS_PARAM_H
11185 # include <sys/param.h>
11186 # ifdef EXEC_PAGESIZE
11187 # define getpagesize() EXEC_PAGESIZE
11188 # else /* no EXEC_PAGESIZE */
11189 # ifdef NBPG
11190 # define getpagesize() NBPG * CLSIZE
11191 # ifndef CLSIZE
11192 # define CLSIZE 1
11193 # endif /* no CLSIZE */
11194 # else /* no NBPG */
11195 # ifdef NBPC
11196 # define getpagesize() NBPC
11197 # else /* no NBPC */
11198 # ifdef PAGESIZE
11199 # define getpagesize() PAGESIZE
11200 # endif /* PAGESIZE */
11201 # endif /* no NBPC */
11202 # endif /* no NBPG */
11203 # endif /* no EXEC_PAGESIZE */
11204 # else /* no HAVE_SYS_PARAM_H */
11205 # define getpagesize() 8192 /* punt totally */
11206 # endif /* no HAVE_SYS_PARAM_H */
11207 # endif /* no _SC_PAGESIZE */
11209 #endif /* no HAVE_GETPAGESIZE */
11212 main ()
11214 char *data, *data2, *data3;
11215 int i, pagesize;
11216 int fd, fd2;
11218 pagesize = getpagesize ();
11220 /* First, make a file with some known garbage in it. */
11221 data = (char *) malloc (pagesize);
11222 if (!data)
11223 return 1;
11224 for (i = 0; i < pagesize; ++i)
11225 *(data + i) = rand ();
11226 umask (0);
11227 fd = creat ("conftest.mmap", 0600);
11228 if (fd < 0)
11229 return 2;
11230 if (write (fd, data, pagesize) != pagesize)
11231 return 3;
11232 close (fd);
11234 /* Next, check that the tail of a page is zero-filled. File must have
11235 non-zero length, otherwise we risk SIGBUS for entire page. */
11236 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11237 if (fd2 < 0)
11238 return 4;
11239 data2 = "";
11240 if (write (fd2, data2, 1) != 1)
11241 return 5;
11242 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11243 if (data2 == MAP_FAILED)
11244 return 6;
11245 for (i = 0; i < pagesize; ++i)
11246 if (*(data2 + i))
11247 return 7;
11248 close (fd2);
11249 if (munmap (data2, pagesize))
11250 return 8;
11252 /* Next, try to mmap the file at a fixed address which already has
11253 something else allocated at it. If we can, also make sure that
11254 we see the same garbage. */
11255 fd = open ("conftest.mmap", O_RDWR);
11256 if (fd < 0)
11257 return 9;
11258 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11259 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11260 return 10;
11261 for (i = 0; i < pagesize; ++i)
11262 if (*(data + i) != *(data2 + i))
11263 return 11;
11265 /* Finally, make sure that changes to the mapped area do not
11266 percolate back to the file as seen by read(). (This is a bug on
11267 some variants of i386 svr4.0.) */
11268 for (i = 0; i < pagesize; ++i)
11269 *(data2 + i) = *(data2 + i) + 1;
11270 data3 = (char *) malloc (pagesize);
11271 if (!data3)
11272 return 12;
11273 if (read (fd, data3, pagesize) != pagesize)
11274 return 13;
11275 for (i = 0; i < pagesize; ++i)
11276 if (*(data + i) != *(data3 + i))
11277 return 14;
11278 close (fd);
11279 return 0;
11281 _ACEOF
11282 if ac_fn_c_try_run "$LINENO"; then :
11283 ac_cv_func_mmap_fixed_mapped=yes
11284 else
11285 ac_cv_func_mmap_fixed_mapped=no
11287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11288 conftest.$ac_objext conftest.beam conftest.$ac_ext
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11293 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11294 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11296 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11299 rm -f conftest.mmap conftest.txt
11301 for ac_func in munmap sysconf
11302 do :
11303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11305 eval as_val=\$$as_ac_var
11306 if test "x$as_val" = x""yes; then :
11307 cat >>confdefs.h <<_ACEOF
11308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 _ACEOF
11312 done
11314 if test $ac_cv_func_sysconf = yes; then :
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
11317 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11322 #include <unistd.h>
11325 main ()
11328 return sysconf(_SC_PAGESIZE);
11331 return 0;
11334 _ACEOF
11335 if ac_fn_c_try_link "$LINENO"; then :
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
11338 $as_echo "_SC_PAGESIZE" >&6; }
11340 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
11343 else
11345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* end confdefs.h. */
11349 #include <unistd.h>
11352 main ()
11355 return sysconf(_SC_PAGE_SIZE);
11358 return 0;
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
11365 $as_echo "_SC_PAGE_SIZE" >&6; }
11367 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
11370 else
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11373 $as_echo "none" >&6; }
11376 rm -f core conftest.err conftest.$ac_objext \
11377 conftest$ac_exeext conftest.$ac_ext
11380 rm -f core conftest.err conftest.$ac_objext \
11381 conftest$ac_exeext conftest.$ac_ext
11385 else
11387 # fake the result of the test for munmap() for the gettext macros
11388 ac_cv_func_munmap=no
11394 mule_backup_CPPFLAGS="$CPPFLAGS"
11395 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
11396 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11397 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
11398 ac_have_decl=1
11399 else
11400 ac_have_decl=0
11403 cat >>confdefs.h <<_ACEOF
11404 #define HAVE_DECL_STRERROR_R $ac_have_decl
11405 _ACEOF
11407 for ac_func in strerror_r
11408 do :
11409 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11410 if test "x$ac_cv_func_strerror_r" = x""yes; then :
11411 cat >>confdefs.h <<_ACEOF
11412 #define HAVE_STRERROR_R 1
11413 _ACEOF
11416 done
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11419 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11420 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
11421 $as_echo_n "(cached) " >&6
11422 else
11424 ac_cv_func_strerror_r_char_p=no
11425 if test $ac_cv_have_decl_strerror_r = yes; then
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11428 $ac_includes_default
11430 main ()
11433 char buf[100];
11434 char x = *strerror_r (0, buf, sizeof buf);
11435 char *p = strerror_r (0, buf, sizeof buf);
11436 return !p || x;
11439 return 0;
11441 _ACEOF
11442 if ac_fn_c_try_compile "$LINENO"; then :
11443 ac_cv_func_strerror_r_char_p=yes
11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11446 else
11447 # strerror_r is not declared. Choose between
11448 # systems that have relatively inaccessible declarations for the
11449 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11450 # former has a strerror_r that returns char*, while the latter
11451 # has a strerror_r that returns `int'.
11452 # This test should segfault on the DEC system.
11453 if test "$cross_compiling" = yes; then :
11455 else
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h. */
11458 $ac_includes_default
11459 extern char *strerror_r ();
11461 main ()
11463 char buf[100];
11464 char x = *strerror_r (0, buf, sizeof buf);
11465 return ! isalpha (x);
11467 return 0;
11469 _ACEOF
11470 if ac_fn_c_try_run "$LINENO"; then :
11471 ac_cv_func_strerror_r_char_p=yes
11473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11474 conftest.$ac_objext conftest.beam conftest.$ac_ext
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11481 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11482 if test $ac_cv_func_strerror_r_char_p = yes; then
11484 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11488 CPPFLAGS="$mule_backup_CPPFLAGS"
11490 # Look for a way to preallocate disk space for files.
11491 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
11494 $as_echo_n "checking for fallocate... " >&6; }
11495 mule_backup_CPPFLAGS="$CPPFLAGS"
11496 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
11497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11501 #define _GNU_SOURCE
11502 #ifdef HAVE_FCNTL_H
11503 # include <fcntl.h>
11504 #endif
11505 #include <linux/falloc.h>
11508 main ()
11511 fallocate(0, 0, 0, 0);
11514 return 0;
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11521 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11524 $as_echo "yes" >&6; }
11526 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11532 rm -f core conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11534 CPPFLAGS="$mule_backup_CPPFLAGS"
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
11538 $as_echo_n "checking for SYS_fallocate... " >&6; }
11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11543 #include <sys/syscall.h>
11544 #include <sys/types.h>
11545 #include <unistd.h>
11548 main ()
11551 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
11554 return 0;
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11561 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11564 $as_echo "yes" >&6; }
11566 else
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11572 rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
11576 $as_echo_n "checking for posix_fallocate... " >&6; }
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11581 #define _XOPEN_SOURCE 600
11582 #include <stdlib.h>
11583 #ifdef HAVE_FCNTL_H
11584 # include <fcntl.h>
11585 #endif
11588 main ()
11591 posix_fallocate(0, 0, 0);
11594 return 0;
11597 _ACEOF
11598 if ac_fn_c_try_link "$LINENO"; then :
11601 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11604 $as_echo "yes" >&6; }
11606 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11612 rm -f core conftest.err conftest.$ac_objext \
11613 conftest$ac_exeext conftest.$ac_ext
11617 # Checking Native Language Support
11620 MKINSTALLDIRS=
11621 if test -n "$ac_aux_dir"; then
11622 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11624 if test -z "$MKINSTALLDIRS"; then
11625 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11632 # Extract the first word of "msgfmt", so it can be a program name with args.
11633 set dummy msgfmt; ac_word=$2
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635 $as_echo_n "checking for $ac_word... " >&6; }
11636 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 case "$MSGFMT" in
11641 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11645 for ac_dir in $PATH; do
11646 test -z "$ac_dir" && ac_dir=.
11647 if test -f $ac_dir/$ac_word; then
11648 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11649 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11650 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11651 break
11654 done
11655 IFS="$ac_save_ifs"
11656 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11658 esac
11660 MSGFMT="$ac_cv_path_MSGFMT"
11661 if test "$MSGFMT" != ":"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11663 $as_echo "$MSGFMT" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11669 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11670 set dummy gmsgfmt; ac_word=$2
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11672 $as_echo_n "checking for $ac_word... " >&6; }
11673 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11674 $as_echo_n "(cached) " >&6
11675 else
11676 case $GMSGFMT in
11677 [\\/]* | ?:[\\/]*)
11678 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_exec_ext in '' $ac_executable_extensions; do
11687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11688 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11692 done
11693 done
11694 IFS=$as_save_IFS
11696 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11698 esac
11700 GMSGFMT=$ac_cv_path_GMSGFMT
11701 if test -n "$GMSGFMT"; then
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11703 $as_echo "$GMSGFMT" >&6; }
11704 else
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 $as_echo "no" >&6; }
11711 # Extract the first word of "xgettext", so it can be a program name with args.
11712 set dummy xgettext; ac_word=$2
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714 $as_echo_n "checking for $ac_word... " >&6; }
11715 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 case "$XGETTEXT" in
11720 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11724 for ac_dir in $PATH; do
11725 test -z "$ac_dir" && ac_dir=.
11726 if test -f $ac_dir/$ac_word; then
11727 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11728 (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
11729 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11730 break
11733 done
11734 IFS="$ac_save_ifs"
11735 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11737 esac
11739 XGETTEXT="$ac_cv_path_XGETTEXT"
11740 if test "$XGETTEXT" != ":"; then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11742 $as_echo "$XGETTEXT" >&6; }
11743 else
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745 $as_echo "no" >&6; }
11748 rm -f messages.po
11750 # Extract the first word of "msgmerge", so it can be a program name with args.
11751 set dummy msgmerge; ac_word=$2
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753 $as_echo_n "checking for $ac_word... " >&6; }
11754 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11755 $as_echo_n "(cached) " >&6
11756 else
11757 case "$MSGMERGE" in
11759 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11763 for ac_dir in $PATH; do
11764 test -z "$ac_dir" && ac_dir=.
11765 if test -f $ac_dir/$ac_word; then
11766 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11767 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
11768 break
11771 done
11772 IFS="$ac_save_ifs"
11773 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11775 esac
11777 MSGMERGE="$ac_cv_path_MSGMERGE"
11778 if test "$MSGMERGE" != ":"; then
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11780 $as_echo "$MSGMERGE" >&6; }
11781 else
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11787 if test "$GMSGFMT" != ":"; then
11788 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11789 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11791 else
11792 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11794 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11795 GMSGFMT=":"
11799 if test "$XGETTEXT" != ":"; then
11800 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11801 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11803 else
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11805 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11806 XGETTEXT=":"
11808 rm -f messages.po
11811 ac_config_commands="$ac_config_commands default-1"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
11816 $as_echo_n "checking for strerror in -lcposix... " >&6; }
11817 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
11819 else
11820 ac_check_lib_save_LIBS=$LIBS
11821 LIBS="-lcposix $LIBS"
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11825 /* Override any GCC internal prototype to avoid an error.
11826 Use char because int might match the return type of a GCC
11827 builtin and then its argument prototype would still apply. */
11828 #ifdef __cplusplus
11829 extern "C"
11830 #endif
11831 char strerror ();
11833 main ()
11835 return strerror ();
11837 return 0;
11839 _ACEOF
11840 if ac_fn_c_try_link "$LINENO"; then :
11841 ac_cv_lib_cposix_strerror=yes
11842 else
11843 ac_cv_lib_cposix_strerror=no
11845 rm -f core conftest.err conftest.$ac_objext \
11846 conftest$ac_exeext conftest.$ac_ext
11847 LIBS=$ac_check_lib_save_LIBS
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
11850 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
11851 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
11852 LIBS="$LIBS -lcposix"
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11859 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11860 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11866 #include <features.h>
11867 #ifdef __GNU_LIBRARY__
11868 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11869 Lucky GNU user
11870 #endif
11871 #endif
11873 _ACEOF
11874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11875 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11876 ac_cv_gnu_library_2_1=yes
11877 else
11878 ac_cv_gnu_library_2_1=no
11880 rm -f conftest*
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11886 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11888 GLIBC21="$ac_cv_gnu_library_2_1"
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
11894 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
11895 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11899 if test "$cross_compiling" = yes; then :
11901 # Guess based on the CPU.
11902 case "$host_cpu" in
11903 alpha* | i3456786 | m68k | s390*)
11904 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11906 gt_cv_int_divbyzero_sigfpe="guessing no";;
11907 esac
11909 else
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11913 #include <stdlib.h>
11914 #include <signal.h>
11916 static void
11917 #ifdef __cplusplus
11918 sigfpe_handler (int sig)
11919 #else
11920 sigfpe_handler (sig) int sig;
11921 #endif
11923 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11924 exit (sig != SIGFPE);
11927 int x = 1;
11928 int y = 0;
11929 int z;
11930 int nan;
11932 int main ()
11934 signal (SIGFPE, sigfpe_handler);
11935 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11936 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11937 signal (SIGTRAP, sigfpe_handler);
11938 #endif
11939 /* Linux/SPARC yields signal SIGILL. */
11940 #if defined (__sparc__) && defined (__linux__)
11941 signal (SIGILL, sigfpe_handler);
11942 #endif
11944 z = x / y;
11945 nan = y / y;
11946 exit (1);
11949 _ACEOF
11950 if ac_fn_c_try_run "$LINENO"; then :
11951 gt_cv_int_divbyzero_sigfpe=yes
11952 else
11953 gt_cv_int_divbyzero_sigfpe=no
11955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11956 conftest.$ac_objext conftest.beam conftest.$ac_ext
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
11962 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
11963 case "$gt_cv_int_divbyzero_sigfpe" in
11964 *yes) value=1;;
11965 *) value=0;;
11966 esac
11968 cat >>confdefs.h <<_ACEOF
11969 #define INTDIV0_RAISES_SIGFPE $value
11970 _ACEOF
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
11975 $as_echo_n "checking for inttypes.h... " >&6; }
11976 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
11977 $as_echo_n "(cached) " >&6
11978 else
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11981 #include <sys/types.h>
11982 #include <inttypes.h>
11984 main ()
11986 uintmax_t i = (uintmax_t) -1;
11988 return 0;
11990 _ACEOF
11991 if ac_fn_c_try_compile "$LINENO"; then :
11992 jm_ac_cv_header_inttypes_h=yes
11993 else
11994 jm_ac_cv_header_inttypes_h=no
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
11999 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12000 if test $jm_ac_cv_header_inttypes_h = yes; then
12002 cat >>confdefs.h <<_ACEOF
12003 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12004 _ACEOF
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12010 $as_echo_n "checking for stdint.h... " >&6; }
12011 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12012 $as_echo_n "(cached) " >&6
12013 else
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016 #include <sys/types.h>
12017 #include <stdint.h>
12019 main ()
12021 uintmax_t i = (uintmax_t) -1;
12023 return 0;
12025 _ACEOF
12026 if ac_fn_c_try_compile "$LINENO"; then :
12027 jm_ac_cv_header_stdint_h=yes
12028 else
12029 jm_ac_cv_header_stdint_h=no
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12034 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12035 if test $jm_ac_cv_header_stdint_h = yes; then
12037 cat >>confdefs.h <<_ACEOF
12038 #define HAVE_STDINT_H_WITH_UINTMAX 1
12039 _ACEOF
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12045 $as_echo_n "checking for unsigned long long... " >&6; }
12046 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051 unsigned long long ull = 1; int i = 63;
12053 main ()
12055 unsigned long long ullmax = (unsigned long long) -1;
12056 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12058 return 0;
12060 _ACEOF
12061 if ac_fn_c_try_link "$LINENO"; then :
12062 ac_cv_type_unsigned_long_long=yes
12063 else
12064 ac_cv_type_unsigned_long_long=no
12066 rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12070 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12071 if test $ac_cv_type_unsigned_long_long = yes; then
12073 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12080 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
12082 test $ac_cv_type_unsigned_long_long = yes \
12083 && ac_type='unsigned long long' \
12084 || ac_type='unsigned long'
12086 cat >>confdefs.h <<_ACEOF
12087 #define uintmax_t $ac_type
12088 _ACEOF
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12094 $as_echo_n "checking for inttypes.h... " >&6; }
12095 if test "${gt_cv_header_inttypes_h+set}" = set; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 #include <sys/types.h>
12102 #include <inttypes.h>
12104 main ()
12108 return 0;
12110 _ACEOF
12111 if ac_fn_c_try_compile "$LINENO"; then :
12112 gt_cv_header_inttypes_h=yes
12113 else
12114 gt_cv_header_inttypes_h=no
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12120 $as_echo "$gt_cv_header_inttypes_h" >&6; }
12121 if test $gt_cv_header_inttypes_h = yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define HAVE_INTTYPES_H 1
12125 _ACEOF
12131 if test $gt_cv_header_inttypes_h = yes; then
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12133 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12134 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12140 #include <inttypes.h>
12141 #ifdef PRId32
12142 char *p = PRId32;
12143 #endif
12146 main ()
12150 return 0;
12152 _ACEOF
12153 if ac_fn_c_try_compile "$LINENO"; then :
12154 gt_cv_inttypes_pri_broken=no
12155 else
12156 gt_cv_inttypes_pri_broken=yes
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12162 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12164 if test "$gt_cv_inttypes_pri_broken" = yes; then
12166 cat >>confdefs.h <<_ACEOF
12167 #define PRI_MACROS_BROKEN 1
12168 _ACEOF
12173 if test "X$prefix" = "XNONE"; then
12174 acl_final_prefix="$ac_default_prefix"
12175 else
12176 acl_final_prefix="$prefix"
12178 if test "X$exec_prefix" = "XNONE"; then
12179 acl_final_exec_prefix='${prefix}'
12180 else
12181 acl_final_exec_prefix="$exec_prefix"
12183 acl_save_prefix="$prefix"
12184 prefix="$acl_final_prefix"
12185 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12186 prefix="$acl_save_prefix"
12189 # Check whether --with-gnu-ld was given.
12190 if test "${with_gnu_ld+set}" = set; then :
12191 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12192 else
12193 with_gnu_ld=no
12196 ac_prog=ld
12197 if test "$GCC" = yes; then
12198 # Check if gcc -print-prog-name=ld gives a path.
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12200 $as_echo_n "checking for ld used by GCC... " >&6; }
12201 case $host in
12202 *-*-mingw*)
12203 # gcc leaves a trailing carriage return which upsets mingw
12204 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12206 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12207 esac
12208 case $ac_prog in
12209 # Accept absolute paths.
12210 [\\/]* | [A-Za-z]:[\\/]*)
12211 re_direlt='/[^/][^/]*/\.\./'
12212 # Canonicalize the path of ld
12213 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12214 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12215 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12216 done
12217 test -z "$LD" && LD="$ac_prog"
12220 # If it fails, then pretend we aren't using GCC.
12221 ac_prog=ld
12224 # If it is relative, then search for the first ld in PATH.
12225 with_gnu_ld=unknown
12227 esac
12228 elif test "$with_gnu_ld" = yes; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12230 $as_echo_n "checking for GNU ld... " >&6; }
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12233 $as_echo_n "checking for non-GNU ld... " >&6; }
12235 if test "${acl_cv_path_LD+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 if test -z "$LD"; then
12239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12240 for ac_dir in $PATH; do
12241 test -z "$ac_dir" && ac_dir=.
12242 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12243 acl_cv_path_LD="$ac_dir/$ac_prog"
12244 # Check to see if the program is GNU ld. I'd rather use --version,
12245 # but apparently some GNU ld's only accept -v.
12246 # Break only if it was the GNU/non-GNU ld that we prefer.
12247 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12248 test "$with_gnu_ld" != no && break
12249 else
12250 test "$with_gnu_ld" != yes && break
12253 done
12254 IFS="$ac_save_ifs"
12255 else
12256 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12260 LD="$acl_cv_path_LD"
12261 if test -n "$LD"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12263 $as_echo "$LD" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12268 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12270 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12271 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12275 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12276 acl_cv_prog_gnu_ld=yes
12277 else
12278 acl_cv_prog_gnu_ld=no
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12282 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12283 with_gnu_ld=$acl_cv_prog_gnu_ld
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12288 $as_echo_n "checking for shared library run path origin... " >&6; }
12289 if test "${acl_cv_rpath+set}" = set; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12293 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12294 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12295 . ./conftest.sh
12296 rm -f ./conftest.sh
12297 acl_cv_rpath=done
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12301 $as_echo "$acl_cv_rpath" >&6; }
12302 wl="$acl_cv_wl"
12303 libext="$acl_cv_libext"
12304 shlibext="$acl_cv_shlibext"
12305 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12306 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12307 hardcode_direct="$acl_cv_hardcode_direct"
12308 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12309 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
12310 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
12311 # Check whether --enable-rpath was given.
12312 if test "${enable_rpath+set}" = set; then :
12313 enableval=$enable_rpath; :
12314 else
12315 enable_rpath=yes
12325 use_additional=yes
12327 acl_save_prefix="$prefix"
12328 prefix="$acl_final_prefix"
12329 acl_save_exec_prefix="$exec_prefix"
12330 exec_prefix="$acl_final_exec_prefix"
12332 eval additional_includedir=\"$includedir\"
12333 eval additional_libdir=\"$libdir\"
12335 exec_prefix="$acl_save_exec_prefix"
12336 prefix="$acl_save_prefix"
12339 # Check whether --with-libiconv-prefix was given.
12340 if test "${with_libiconv_prefix+set}" = set; then :
12341 withval=$with_libiconv_prefix;
12342 if test "X$withval" = "Xno"; then
12343 use_additional=no
12344 else
12345 if test "X$withval" = "X"; then
12347 acl_save_prefix="$prefix"
12348 prefix="$acl_final_prefix"
12349 acl_save_exec_prefix="$exec_prefix"
12350 exec_prefix="$acl_final_exec_prefix"
12352 eval additional_includedir=\"$includedir\"
12353 eval additional_libdir=\"$libdir\"
12355 exec_prefix="$acl_save_exec_prefix"
12356 prefix="$acl_save_prefix"
12358 else
12359 additional_includedir="$withval/include"
12360 additional_libdir="$withval/lib"
12366 LIBICONV=
12367 LTLIBICONV=
12368 INCICONV=
12369 rpathdirs=
12370 ltrpathdirs=
12371 names_already_handled=
12372 names_next_round='iconv '
12373 while test -n "$names_next_round"; do
12374 names_this_round="$names_next_round"
12375 names_next_round=
12376 for name in $names_this_round; do
12377 already_handled=
12378 for n in $names_already_handled; do
12379 if test "$n" = "$name"; then
12380 already_handled=yes
12381 break
12383 done
12384 if test -z "$already_handled"; then
12385 names_already_handled="$names_already_handled $name"
12386 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12387 eval value=\"\$HAVE_LIB$uppername\"
12388 if test -n "$value"; then
12389 if test "$value" = yes; then
12390 eval value=\"\$LIB$uppername\"
12391 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12392 eval value=\"\$LTLIB$uppername\"
12393 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12394 else
12397 else
12398 found_dir=
12399 found_la=
12400 found_so=
12401 found_a=
12402 if test $use_additional = yes; then
12403 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12404 found_dir="$additional_libdir"
12405 found_so="$additional_libdir/lib$name.$shlibext"
12406 if test -f "$additional_libdir/lib$name.la"; then
12407 found_la="$additional_libdir/lib$name.la"
12409 else
12410 if test -f "$additional_libdir/lib$name.$libext"; then
12411 found_dir="$additional_libdir"
12412 found_a="$additional_libdir/lib$name.$libext"
12413 if test -f "$additional_libdir/lib$name.la"; then
12414 found_la="$additional_libdir/lib$name.la"
12419 if test "X$found_dir" = "X"; then
12420 for x in $LDFLAGS $LTLIBICONV; do
12422 acl_save_prefix="$prefix"
12423 prefix="$acl_final_prefix"
12424 acl_save_exec_prefix="$exec_prefix"
12425 exec_prefix="$acl_final_exec_prefix"
12426 eval x=\"$x\"
12427 exec_prefix="$acl_save_exec_prefix"
12428 prefix="$acl_save_prefix"
12430 case "$x" in
12431 -L*)
12432 dir=`echo "X$x" | sed -e 's/^X-L//'`
12433 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12434 found_dir="$dir"
12435 found_so="$dir/lib$name.$shlibext"
12436 if test -f "$dir/lib$name.la"; then
12437 found_la="$dir/lib$name.la"
12439 else
12440 if test -f "$dir/lib$name.$libext"; then
12441 found_dir="$dir"
12442 found_a="$dir/lib$name.$libext"
12443 if test -f "$dir/lib$name.la"; then
12444 found_la="$dir/lib$name.la"
12449 esac
12450 if test "X$found_dir" != "X"; then
12451 break
12453 done
12455 if test "X$found_dir" != "X"; then
12456 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12457 if test "X$found_so" != "X"; then
12458 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12459 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12460 else
12461 haveit=
12462 for x in $ltrpathdirs; do
12463 if test "X$x" = "X$found_dir"; then
12464 haveit=yes
12465 break
12467 done
12468 if test -z "$haveit"; then
12469 ltrpathdirs="$ltrpathdirs $found_dir"
12471 if test "$hardcode_direct" = yes; then
12472 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12473 else
12474 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12475 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12476 haveit=
12477 for x in $rpathdirs; do
12478 if test "X$x" = "X$found_dir"; then
12479 haveit=yes
12480 break
12482 done
12483 if test -z "$haveit"; then
12484 rpathdirs="$rpathdirs $found_dir"
12486 else
12487 haveit=
12488 for x in $LDFLAGS $LIBICONV; do
12490 acl_save_prefix="$prefix"
12491 prefix="$acl_final_prefix"
12492 acl_save_exec_prefix="$exec_prefix"
12493 exec_prefix="$acl_final_exec_prefix"
12494 eval x=\"$x\"
12495 exec_prefix="$acl_save_exec_prefix"
12496 prefix="$acl_save_prefix"
12498 if test "X$x" = "X-L$found_dir"; then
12499 haveit=yes
12500 break
12502 done
12503 if test -z "$haveit"; then
12504 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12506 if test "$hardcode_minus_L" != no; then
12507 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12508 else
12509 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12514 else
12515 if test "X$found_a" != "X"; then
12516 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12517 else
12518 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12521 additional_includedir=
12522 case "$found_dir" in
12523 */lib | */lib/)
12524 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12525 additional_includedir="$basedir/include"
12527 esac
12528 if test "X$additional_includedir" != "X"; then
12529 if test "X$additional_includedir" != "X/usr/include"; then
12530 haveit=
12531 if test "X$additional_includedir" = "X/usr/local/include"; then
12532 if test -n "$GCC"; then
12533 case $host_os in
12534 linux*) haveit=yes;;
12535 esac
12538 if test -z "$haveit"; then
12539 for x in $CPPFLAGS $INCICONV; do
12541 acl_save_prefix="$prefix"
12542 prefix="$acl_final_prefix"
12543 acl_save_exec_prefix="$exec_prefix"
12544 exec_prefix="$acl_final_exec_prefix"
12545 eval x=\"$x\"
12546 exec_prefix="$acl_save_exec_prefix"
12547 prefix="$acl_save_prefix"
12549 if test "X$x" = "X-I$additional_includedir"; then
12550 haveit=yes
12551 break
12553 done
12554 if test -z "$haveit"; then
12555 if test -d "$additional_includedir"; then
12556 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12562 if test -n "$found_la"; then
12563 save_libdir="$libdir"
12564 case "$found_la" in
12565 */* | *\\*) . "$found_la" ;;
12566 *) . "./$found_la" ;;
12567 esac
12568 libdir="$save_libdir"
12569 for dep in $dependency_libs; do
12570 case "$dep" in
12571 -L*)
12572 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12573 if test "X$additional_libdir" != "X/usr/lib"; then
12574 haveit=
12575 if test "X$additional_libdir" = "X/usr/local/lib"; then
12576 if test -n "$GCC"; then
12577 case $host_os in
12578 linux*) haveit=yes;;
12579 esac
12582 if test -z "$haveit"; then
12583 haveit=
12584 for x in $LDFLAGS $LIBICONV; do
12586 acl_save_prefix="$prefix"
12587 prefix="$acl_final_prefix"
12588 acl_save_exec_prefix="$exec_prefix"
12589 exec_prefix="$acl_final_exec_prefix"
12590 eval x=\"$x\"
12591 exec_prefix="$acl_save_exec_prefix"
12592 prefix="$acl_save_prefix"
12594 if test "X$x" = "X-L$additional_libdir"; then
12595 haveit=yes
12596 break
12598 done
12599 if test -z "$haveit"; then
12600 if test -d "$additional_libdir"; then
12601 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12604 haveit=
12605 for x in $LDFLAGS $LTLIBICONV; do
12607 acl_save_prefix="$prefix"
12608 prefix="$acl_final_prefix"
12609 acl_save_exec_prefix="$exec_prefix"
12610 exec_prefix="$acl_final_exec_prefix"
12611 eval x=\"$x\"
12612 exec_prefix="$acl_save_exec_prefix"
12613 prefix="$acl_save_prefix"
12615 if test "X$x" = "X-L$additional_libdir"; then
12616 haveit=yes
12617 break
12619 done
12620 if test -z "$haveit"; then
12621 if test -d "$additional_libdir"; then
12622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12628 -R*)
12629 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12630 if test "$enable_rpath" != no; then
12631 haveit=
12632 for x in $rpathdirs; do
12633 if test "X$x" = "X$dir"; then
12634 haveit=yes
12635 break
12637 done
12638 if test -z "$haveit"; then
12639 rpathdirs="$rpathdirs $dir"
12641 haveit=
12642 for x in $ltrpathdirs; do
12643 if test "X$x" = "X$dir"; then
12644 haveit=yes
12645 break
12647 done
12648 if test -z "$haveit"; then
12649 ltrpathdirs="$ltrpathdirs $dir"
12653 -l*)
12654 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12656 *.la)
12657 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12660 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12663 esac
12664 done
12666 else
12667 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12672 done
12673 done
12674 if test "X$rpathdirs" != "X"; then
12675 if test -n "$hardcode_libdir_separator"; then
12676 alldirs=
12677 for found_dir in $rpathdirs; do
12678 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12679 done
12680 acl_save_libdir="$libdir"
12681 libdir="$alldirs"
12682 eval flag=\"$hardcode_libdir_flag_spec\"
12683 libdir="$acl_save_libdir"
12684 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12685 else
12686 for found_dir in $rpathdirs; do
12687 acl_save_libdir="$libdir"
12688 libdir="$found_dir"
12689 eval flag=\"$hardcode_libdir_flag_spec\"
12690 libdir="$acl_save_libdir"
12691 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12692 done
12695 if test "X$ltrpathdirs" != "X"; then
12696 for found_dir in $ltrpathdirs; do
12697 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12698 done
12704 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12705 stdlib.h string.h unistd.h sys/param.h
12706 do :
12707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12708 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12709 eval as_val=\$$as_ac_Header
12710 if test "x$as_val" = x""yes; then :
12711 cat >>confdefs.h <<_ACEOF
12712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12713 _ACEOF
12717 done
12719 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12720 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12721 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12722 do :
12723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12725 eval as_val=\$$as_ac_var
12726 if test "x$as_val" = x""yes; then :
12727 cat >>confdefs.h <<_ACEOF
12728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12729 _ACEOF
12732 done
12740 am_save_CPPFLAGS="$CPPFLAGS"
12742 for element in $INCICONV; do
12743 haveit=
12744 for x in $CPPFLAGS; do
12746 acl_save_prefix="$prefix"
12747 prefix="$acl_final_prefix"
12748 acl_save_exec_prefix="$exec_prefix"
12749 exec_prefix="$acl_final_exec_prefix"
12750 eval x=\"$x\"
12751 exec_prefix="$acl_save_exec_prefix"
12752 prefix="$acl_save_prefix"
12754 if test "X$x" = "X$element"; then
12755 haveit=yes
12756 break
12758 done
12759 if test -z "$haveit"; then
12760 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12762 done
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12766 $as_echo_n "checking for iconv... " >&6; }
12767 if test "${am_cv_func_iconv+set}" = set; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12771 am_cv_func_iconv="no, consider installing GNU libiconv"
12772 am_cv_lib_iconv=no
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12775 #include <stdlib.h>
12776 #include <iconv.h>
12778 main ()
12780 iconv_t cd = iconv_open("","");
12781 iconv(cd,NULL,NULL,NULL,NULL);
12782 iconv_close(cd);
12784 return 0;
12786 _ACEOF
12787 if ac_fn_c_try_link "$LINENO"; then :
12788 am_cv_func_iconv=yes
12790 rm -f core conftest.err conftest.$ac_objext \
12791 conftest$ac_exeext conftest.$ac_ext
12792 if test "$am_cv_func_iconv" != yes; then
12793 am_save_LIBS="$LIBS"
12794 LIBS="$LIBS $LIBICONV"
12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12797 #include <stdlib.h>
12798 #include <iconv.h>
12800 main ()
12802 iconv_t cd = iconv_open("","");
12803 iconv(cd,NULL,NULL,NULL,NULL);
12804 iconv_close(cd);
12806 return 0;
12808 _ACEOF
12809 if ac_fn_c_try_link "$LINENO"; then :
12810 am_cv_lib_iconv=yes
12811 am_cv_func_iconv=yes
12813 rm -f core conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12815 LIBS="$am_save_LIBS"
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12820 $as_echo "$am_cv_func_iconv" >&6; }
12821 if test "$am_cv_func_iconv" = yes; then
12823 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12826 if test "$am_cv_lib_iconv" = yes; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12828 $as_echo_n "checking how to link with libiconv... " >&6; }
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12830 $as_echo "$LIBICONV" >&6; }
12831 else
12832 CPPFLAGS="$am_save_CPPFLAGS"
12833 LIBICONV=
12834 LTLIBICONV=
12839 if test "$am_cv_func_iconv" = yes; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12841 $as_echo_n "checking for iconv declaration... " >&6; }
12842 if test "${am_cv_proto_iconv+set}" = set; then :
12843 $as_echo_n "(cached) " >&6
12844 else
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12849 #include <stdlib.h>
12850 #include <iconv.h>
12851 extern
12852 #ifdef __cplusplus
12854 #endif
12855 #if defined(__STDC__) || defined(__cplusplus)
12856 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12857 #else
12858 size_t iconv();
12859 #endif
12862 main ()
12866 return 0;
12868 _ACEOF
12869 if ac_fn_c_try_compile "$LINENO"; then :
12870 am_cv_proto_iconv_arg1=""
12871 else
12872 am_cv_proto_iconv_arg1="const"
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 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);"
12878 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12880 }$am_cv_proto_iconv" >&5
12881 $as_echo "${ac_t:-
12882 }$am_cv_proto_iconv" >&6; }
12884 cat >>confdefs.h <<_ACEOF
12885 #define ICONV_CONST $am_cv_proto_iconv_arg1
12886 _ACEOF
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12892 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12893 if test "${am_cv_langinfo_codeset+set}" = set; then :
12894 $as_echo_n "(cached) " >&6
12895 else
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12898 #include <langinfo.h>
12900 main ()
12902 char* cs = nl_langinfo(CODESET);
12904 return 0;
12906 _ACEOF
12907 if ac_fn_c_try_link "$LINENO"; then :
12908 am_cv_langinfo_codeset=yes
12909 else
12910 am_cv_langinfo_codeset=no
12912 rm -f core conftest.err conftest.$ac_objext \
12913 conftest$ac_exeext conftest.$ac_ext
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12917 $as_echo "$am_cv_langinfo_codeset" >&6; }
12918 if test $am_cv_langinfo_codeset = yes; then
12920 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12924 if test $ac_cv_header_locale_h = yes; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12927 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12928 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12933 #include <locale.h>
12935 main ()
12937 return LC_MESSAGES
12939 return 0;
12941 _ACEOF
12942 if ac_fn_c_try_link "$LINENO"; then :
12943 am_cv_val_LC_MESSAGES=yes
12944 else
12945 am_cv_val_LC_MESSAGES=no
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12951 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12952 if test $am_cv_val_LC_MESSAGES = yes; then
12954 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12960 for ac_prog in bison
12962 # Extract the first word of "$ac_prog", so it can be a program name with args.
12963 set dummy $ac_prog; ac_word=$2
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12965 $as_echo_n "checking for $ac_word... " >&6; }
12966 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 if test -n "$INTLBISON"; then
12970 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12971 else
12972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12973 for as_dir in $PATH
12975 IFS=$as_save_IFS
12976 test -z "$as_dir" && as_dir=.
12977 for ac_exec_ext in '' $ac_executable_extensions; do
12978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12979 ac_cv_prog_INTLBISON="$ac_prog"
12980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12981 break 2
12983 done
12984 done
12985 IFS=$as_save_IFS
12989 INTLBISON=$ac_cv_prog_INTLBISON
12990 if test -n "$INTLBISON"; then
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
12992 $as_echo "$INTLBISON" >&6; }
12993 else
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12995 $as_echo "no" >&6; }
12999 test -n "$INTLBISON" && break
13000 done
13002 if test -z "$INTLBISON"; then
13003 ac_verc_fail=yes
13004 else
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13006 $as_echo_n "checking version of bison... " >&6; }
13007 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13008 case $ac_prog_version in
13009 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13010 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13011 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13012 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13013 esac
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13015 $as_echo "$ac_prog_version" >&6; }
13017 if test $ac_verc_fail = yes; then
13018 INTLBISON=:
13023 # Check whether --with-language was given.
13024 if test "${with_language+set}" = set; then :
13025 withval=$with_language; if test "$withval" != "all"; then :
13026 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13046 $as_echo_n "checking whether NLS is requested... " >&6; }
13047 # Check whether --enable-nls was given.
13048 if test "${enable_nls+set}" = set; then :
13049 enableval=$enable_nls; USE_NLS=$enableval
13050 else
13051 USE_NLS=yes
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13055 $as_echo "$USE_NLS" >&6; }
13059 BUILD_INCLUDED_LIBINTL=no
13060 USE_INCLUDED_LIBINTL=no
13062 LIBINTL=
13063 LTLIBINTL=
13064 POSUB=
13066 if test "$USE_NLS" = "yes"; then
13067 gt_use_preinstalled_gnugettext=no
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13070 $as_echo_n "checking whether included gettext is requested... " >&6; }
13072 # Check whether --with-included-gettext was given.
13073 if test "${with_included_gettext+set}" = set; then :
13074 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13075 else
13076 nls_cv_force_use_gnu_gettext=no
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13080 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13082 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13083 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13091 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13092 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13097 #include <libintl.h>
13098 extern int _nl_msg_cat_cntr;
13099 extern int *_nl_domain_bindings;
13101 main ()
13103 bindtextdomain ("", "");
13104 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13106 return 0;
13108 _ACEOF
13109 if ac_fn_c_try_link "$LINENO"; then :
13110 gt_cv_func_gnugettext2_libc=yes
13111 else
13112 gt_cv_func_gnugettext2_libc=no
13114 rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext conftest.$ac_ext
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
13118 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
13120 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13124 use_additional=yes
13126 acl_save_prefix="$prefix"
13127 prefix="$acl_final_prefix"
13128 acl_save_exec_prefix="$exec_prefix"
13129 exec_prefix="$acl_final_exec_prefix"
13131 eval additional_includedir=\"$includedir\"
13132 eval additional_libdir=\"$libdir\"
13134 exec_prefix="$acl_save_exec_prefix"
13135 prefix="$acl_save_prefix"
13138 # Check whether --with-libintl-prefix was given.
13139 if test "${with_libintl_prefix+set}" = set; then :
13140 withval=$with_libintl_prefix;
13141 if test "X$withval" = "Xno"; then
13142 use_additional=no
13143 else
13144 if test "X$withval" = "X"; then
13146 acl_save_prefix="$prefix"
13147 prefix="$acl_final_prefix"
13148 acl_save_exec_prefix="$exec_prefix"
13149 exec_prefix="$acl_final_exec_prefix"
13151 eval additional_includedir=\"$includedir\"
13152 eval additional_libdir=\"$libdir\"
13154 exec_prefix="$acl_save_exec_prefix"
13155 prefix="$acl_save_prefix"
13157 else
13158 additional_includedir="$withval/include"
13159 additional_libdir="$withval/lib"
13165 LIBINTL=
13166 LTLIBINTL=
13167 INCINTL=
13168 rpathdirs=
13169 ltrpathdirs=
13170 names_already_handled=
13171 names_next_round='intl '
13172 while test -n "$names_next_round"; do
13173 names_this_round="$names_next_round"
13174 names_next_round=
13175 for name in $names_this_round; do
13176 already_handled=
13177 for n in $names_already_handled; do
13178 if test "$n" = "$name"; then
13179 already_handled=yes
13180 break
13182 done
13183 if test -z "$already_handled"; then
13184 names_already_handled="$names_already_handled $name"
13185 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13186 eval value=\"\$HAVE_LIB$uppername\"
13187 if test -n "$value"; then
13188 if test "$value" = yes; then
13189 eval value=\"\$LIB$uppername\"
13190 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13191 eval value=\"\$LTLIB$uppername\"
13192 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13193 else
13196 else
13197 found_dir=
13198 found_la=
13199 found_so=
13200 found_a=
13201 if test $use_additional = yes; then
13202 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13203 found_dir="$additional_libdir"
13204 found_so="$additional_libdir/lib$name.$shlibext"
13205 if test -f "$additional_libdir/lib$name.la"; then
13206 found_la="$additional_libdir/lib$name.la"
13208 else
13209 if test -f "$additional_libdir/lib$name.$libext"; then
13210 found_dir="$additional_libdir"
13211 found_a="$additional_libdir/lib$name.$libext"
13212 if test -f "$additional_libdir/lib$name.la"; then
13213 found_la="$additional_libdir/lib$name.la"
13218 if test "X$found_dir" = "X"; then
13219 for x in $LDFLAGS $LTLIBINTL; do
13221 acl_save_prefix="$prefix"
13222 prefix="$acl_final_prefix"
13223 acl_save_exec_prefix="$exec_prefix"
13224 exec_prefix="$acl_final_exec_prefix"
13225 eval x=\"$x\"
13226 exec_prefix="$acl_save_exec_prefix"
13227 prefix="$acl_save_prefix"
13229 case "$x" in
13230 -L*)
13231 dir=`echo "X$x" | sed -e 's/^X-L//'`
13232 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13233 found_dir="$dir"
13234 found_so="$dir/lib$name.$shlibext"
13235 if test -f "$dir/lib$name.la"; then
13236 found_la="$dir/lib$name.la"
13238 else
13239 if test -f "$dir/lib$name.$libext"; then
13240 found_dir="$dir"
13241 found_a="$dir/lib$name.$libext"
13242 if test -f "$dir/lib$name.la"; then
13243 found_la="$dir/lib$name.la"
13248 esac
13249 if test "X$found_dir" != "X"; then
13250 break
13252 done
13254 if test "X$found_dir" != "X"; then
13255 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13256 if test "X$found_so" != "X"; then
13257 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13258 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13259 else
13260 haveit=
13261 for x in $ltrpathdirs; do
13262 if test "X$x" = "X$found_dir"; then
13263 haveit=yes
13264 break
13266 done
13267 if test -z "$haveit"; then
13268 ltrpathdirs="$ltrpathdirs $found_dir"
13270 if test "$hardcode_direct" = yes; then
13271 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13272 else
13273 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13274 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13275 haveit=
13276 for x in $rpathdirs; do
13277 if test "X$x" = "X$found_dir"; then
13278 haveit=yes
13279 break
13281 done
13282 if test -z "$haveit"; then
13283 rpathdirs="$rpathdirs $found_dir"
13285 else
13286 haveit=
13287 for x in $LDFLAGS $LIBINTL; do
13289 acl_save_prefix="$prefix"
13290 prefix="$acl_final_prefix"
13291 acl_save_exec_prefix="$exec_prefix"
13292 exec_prefix="$acl_final_exec_prefix"
13293 eval x=\"$x\"
13294 exec_prefix="$acl_save_exec_prefix"
13295 prefix="$acl_save_prefix"
13297 if test "X$x" = "X-L$found_dir"; then
13298 haveit=yes
13299 break
13301 done
13302 if test -z "$haveit"; then
13303 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13305 if test "$hardcode_minus_L" != no; then
13306 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13307 else
13308 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13313 else
13314 if test "X$found_a" != "X"; then
13315 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13316 else
13317 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13320 additional_includedir=
13321 case "$found_dir" in
13322 */lib | */lib/)
13323 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13324 additional_includedir="$basedir/include"
13326 esac
13327 if test "X$additional_includedir" != "X"; then
13328 if test "X$additional_includedir" != "X/usr/include"; then
13329 haveit=
13330 if test "X$additional_includedir" = "X/usr/local/include"; then
13331 if test -n "$GCC"; then
13332 case $host_os in
13333 linux*) haveit=yes;;
13334 esac
13337 if test -z "$haveit"; then
13338 for x in $CPPFLAGS $INCINTL; do
13340 acl_save_prefix="$prefix"
13341 prefix="$acl_final_prefix"
13342 acl_save_exec_prefix="$exec_prefix"
13343 exec_prefix="$acl_final_exec_prefix"
13344 eval x=\"$x\"
13345 exec_prefix="$acl_save_exec_prefix"
13346 prefix="$acl_save_prefix"
13348 if test "X$x" = "X-I$additional_includedir"; then
13349 haveit=yes
13350 break
13352 done
13353 if test -z "$haveit"; then
13354 if test -d "$additional_includedir"; then
13355 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13361 if test -n "$found_la"; then
13362 save_libdir="$libdir"
13363 case "$found_la" in
13364 */* | *\\*) . "$found_la" ;;
13365 *) . "./$found_la" ;;
13366 esac
13367 libdir="$save_libdir"
13368 for dep in $dependency_libs; do
13369 case "$dep" in
13370 -L*)
13371 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13372 if test "X$additional_libdir" != "X/usr/lib"; then
13373 haveit=
13374 if test "X$additional_libdir" = "X/usr/local/lib"; then
13375 if test -n "$GCC"; then
13376 case $host_os in
13377 linux*) haveit=yes;;
13378 esac
13381 if test -z "$haveit"; then
13382 haveit=
13383 for x in $LDFLAGS $LIBINTL; do
13385 acl_save_prefix="$prefix"
13386 prefix="$acl_final_prefix"
13387 acl_save_exec_prefix="$exec_prefix"
13388 exec_prefix="$acl_final_exec_prefix"
13389 eval x=\"$x\"
13390 exec_prefix="$acl_save_exec_prefix"
13391 prefix="$acl_save_prefix"
13393 if test "X$x" = "X-L$additional_libdir"; then
13394 haveit=yes
13395 break
13397 done
13398 if test -z "$haveit"; then
13399 if test -d "$additional_libdir"; then
13400 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13403 haveit=
13404 for x in $LDFLAGS $LTLIBINTL; do
13406 acl_save_prefix="$prefix"
13407 prefix="$acl_final_prefix"
13408 acl_save_exec_prefix="$exec_prefix"
13409 exec_prefix="$acl_final_exec_prefix"
13410 eval x=\"$x\"
13411 exec_prefix="$acl_save_exec_prefix"
13412 prefix="$acl_save_prefix"
13414 if test "X$x" = "X-L$additional_libdir"; then
13415 haveit=yes
13416 break
13418 done
13419 if test -z "$haveit"; then
13420 if test -d "$additional_libdir"; then
13421 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13427 -R*)
13428 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13429 if test "$enable_rpath" != no; then
13430 haveit=
13431 for x in $rpathdirs; do
13432 if test "X$x" = "X$dir"; then
13433 haveit=yes
13434 break
13436 done
13437 if test -z "$haveit"; then
13438 rpathdirs="$rpathdirs $dir"
13440 haveit=
13441 for x in $ltrpathdirs; do
13442 if test "X$x" = "X$dir"; then
13443 haveit=yes
13444 break
13446 done
13447 if test -z "$haveit"; then
13448 ltrpathdirs="$ltrpathdirs $dir"
13452 -l*)
13453 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13455 *.la)
13456 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13459 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13460 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13462 esac
13463 done
13465 else
13466 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13467 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13471 done
13472 done
13473 if test "X$rpathdirs" != "X"; then
13474 if test -n "$hardcode_libdir_separator"; then
13475 alldirs=
13476 for found_dir in $rpathdirs; do
13477 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13478 done
13479 acl_save_libdir="$libdir"
13480 libdir="$alldirs"
13481 eval flag=\"$hardcode_libdir_flag_spec\"
13482 libdir="$acl_save_libdir"
13483 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13484 else
13485 for found_dir in $rpathdirs; do
13486 acl_save_libdir="$libdir"
13487 libdir="$found_dir"
13488 eval flag=\"$hardcode_libdir_flag_spec\"
13489 libdir="$acl_save_libdir"
13490 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13491 done
13494 if test "X$ltrpathdirs" != "X"; then
13495 for found_dir in $ltrpathdirs; do
13496 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13497 done
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13501 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13502 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 gt_save_CPPFLAGS="$CPPFLAGS"
13506 CPPFLAGS="$CPPFLAGS $INCINTL"
13507 gt_save_LIBS="$LIBS"
13508 LIBS="$LIBS $LIBINTL"
13509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h. */
13511 #include <libintl.h>
13512 extern int _nl_msg_cat_cntr;
13513 extern
13514 #ifdef __cplusplus
13516 #endif
13517 const char *_nl_expand_alias ();
13519 main ()
13521 bindtextdomain ("", "");
13522 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13524 return 0;
13526 _ACEOF
13527 if ac_fn_c_try_link "$LINENO"; then :
13528 gt_cv_func_gnugettext2_libintl=yes
13529 else
13530 gt_cv_func_gnugettext2_libintl=no
13532 rm -f core conftest.err conftest.$ac_objext \
13533 conftest$ac_exeext conftest.$ac_ext
13534 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
13535 LIBS="$LIBS $LIBICONV"
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h. */
13538 #include <libintl.h>
13539 extern int _nl_msg_cat_cntr;
13540 extern
13541 #ifdef __cplusplus
13543 #endif
13544 const char *_nl_expand_alias ();
13546 main ()
13548 bindtextdomain ("", "");
13549 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13551 return 0;
13553 _ACEOF
13554 if ac_fn_c_try_link "$LINENO"; then :
13555 LIBINTL="$LIBINTL $LIBICONV"
13556 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13557 gt_cv_func_gnugettext2_libintl=yes
13560 rm -f core conftest.err conftest.$ac_objext \
13561 conftest$ac_exeext conftest.$ac_ext
13563 CPPFLAGS="$gt_save_CPPFLAGS"
13564 LIBS="$gt_save_LIBS"
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
13567 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
13570 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
13571 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
13572 && test "$PACKAGE" != gettext; }; then
13573 gt_use_preinstalled_gnugettext=yes
13574 else
13575 LIBINTL=
13576 LTLIBINTL=
13577 INCINTL=
13581 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13582 nls_cv_use_gnu_gettext=yes
13586 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13587 INTLOBJS="\$(GETTOBJS)"
13588 BUILD_INCLUDED_LIBINTL=yes
13589 USE_INCLUDED_LIBINTL=yes
13590 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13591 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13592 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13595 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13596 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13597 CATOBJEXT=.gmo
13601 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13602 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13604 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13606 else
13607 USE_NLS=no
13611 if test "$USE_NLS" = "yes"; then
13613 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13614 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13616 $as_echo_n "checking how to link with libintl... " >&6; }
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13618 $as_echo "$LIBINTL" >&6; }
13620 for element in $INCINTL; do
13621 haveit=
13622 for x in $CPPFLAGS; do
13624 acl_save_prefix="$prefix"
13625 prefix="$acl_final_prefix"
13626 acl_save_exec_prefix="$exec_prefix"
13627 exec_prefix="$acl_final_exec_prefix"
13628 eval x=\"$x\"
13629 exec_prefix="$acl_save_exec_prefix"
13630 prefix="$acl_save_prefix"
13632 if test "X$x" = "X$element"; then
13633 haveit=yes
13634 break
13636 done
13637 if test -z "$haveit"; then
13638 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13640 done
13645 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13648 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13652 POSUB=po
13656 if test "$PACKAGE" = gettext; then
13657 BUILD_INCLUDED_LIBINTL=yes
13665 nls_cv_header_intl=
13666 nls_cv_header_libgt=
13668 DATADIRNAME=share
13671 INSTOBJEXT=.mo
13674 GENCAT=gencat
13677 INTL_LIBTOOL_SUFFIX_PREFIX=
13681 INTLLIBS="$LIBINTL"
13688 if test $USE_INCLUDED_LIBINTL = yes; then :
13689 INCINTL=-I\${top_builddir}/intl
13692 if test x$USE_NLS = xyes; then :
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
13695 $as_echo_n "checking for autopoint... " >&6; }
13696 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
13697 if test -n "$autopoint_version"; then :
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
13700 $as_echo "yes ($autopoint_version)" >&6; }
13703 else
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13707 USE_NLS=no
13712 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13714 You need to install GNU gettext/gettext-tools to compile aMule with
13715 i18n support." >&5
13716 $as_echo "$as_me: WARNING:
13717 You need to install GNU gettext/gettext-tools to compile aMule with
13718 i18n support." >&2;}
13719 _mule_warning_9=yes
13720 _mule_has_warnings=yes
13724 if test ${USE_NLS:-no} = yes; then :
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
13727 $as_echo_n "checking for requested languages... " >&6; }
13728 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
13730 if test ${enable_amule_daemon:-no} = yes; then :
13732 if test -z "$LINGUAS"; then :
13733 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
13734 else
13736 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13737 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
13740 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
13742 else
13743 AMULE_DAEMON_MANPAGES=
13748 if test ${enable_amulecmd:-no} = yes; then :
13750 if test -z "$LINGUAS"; then :
13751 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
13752 else
13754 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13755 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
13758 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
13760 else
13761 AMULECMD_MANPAGES=
13766 if test ${enable_webserver:-no} = yes; then :
13768 if test -z "$LINGUAS"; then :
13769 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
13770 else
13772 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13773 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
13776 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
13778 else
13779 WEBSERVER_MANPAGES=
13784 if test ${enable_amule_gui:-no} = yes; then :
13786 if test -z "$LINGUAS"; then :
13787 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
13788 else
13790 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13791 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
13794 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
13796 else
13797 AMULE_GUI_MANPAGES=
13802 if test ${enable_cas:-no} = yes; then :
13804 if test -z "$LINGUAS"; then :
13805 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
13806 else
13808 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13809 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
13812 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
13814 else
13815 CAS_MANPAGES=
13820 if test ${enable_wxcas:-no} = yes; then :
13822 if test -z "$LINGUAS"; then :
13823 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
13824 else
13826 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13827 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
13830 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
13832 else
13833 WXCAS_MANPAGES=
13838 if test ${enable_ed2k:-yes} = yes; then :
13840 if test -z "$LINGUAS"; then :
13841 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
13842 else
13844 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13845 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
13848 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
13850 else
13851 ED2K_MANPAGES=
13856 if test ${enable_alc:-no} = yes; then :
13858 if test -z "$LINGUAS"; then :
13859 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
13860 else
13862 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13863 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
13866 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
13868 else
13869 ALC_MANPAGES=
13874 if test ${enable_alcc:-no} = yes; then :
13876 if test -z "$LINGUAS"; then :
13877 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
13878 else
13880 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13881 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
13884 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
13886 else
13887 ALCC_MANPAGES=
13892 if test ${enable_monolithic:-yes} = yes; then :
13894 if test -z "$LINGUAS"; then :
13895 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
13896 else
13898 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13899 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
13902 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
13904 else
13905 MONOLITHIC_MANPAGES=
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
13910 $as_echo "${LINGUAS:-all}" >&6; }
13916 # Check for bfd.h (to have proper backtraces without using wxExecute)
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
13919 $as_echo_n "checking for bfd... " >&6; }
13920 result=no
13921 for bfd_ldadd in "" "${LIBINTL}"; do
13922 mule_backup_LIBS="$LIBS"
13923 mule_backup_LDFLAGS="$LDFLAGS"
13924 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
13925 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13930 #include <ansidecl.h>
13931 #include <bfd.h>
13934 main ()
13937 char *dummy = bfd_errmsg(bfd_get_error());
13940 return 0;
13943 _ACEOF
13944 if ac_fn_c_try_link "$LINENO"; then :
13946 result=yes
13947 BFD_CPPFLAGS="-DHAVE_BFD"
13948 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
13949 LIBS="$mule_backup_LIBS"
13950 LDFLAGS="$mule_backup_LDFLAGS"
13951 break
13954 rm -f core conftest.err conftest.$ac_objext \
13955 conftest$ac_exeext conftest.$ac_ext
13956 LIBS="$mule_backup_LIBS"
13957 LDFLAGS="$mule_backup_LDFLAGS"
13958 done
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
13961 $as_echo "$result" >&6; }
13963 if test $result = no; then :
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13965 bfd.h not found or unusable, please install binutils development
13966 package if you are a developer or want to help testing aMule" >&5
13967 $as_echo "$as_me: WARNING:
13968 bfd.h not found or unusable, please install binutils development
13969 package if you are a developer or want to help testing aMule" >&2;}
13970 _mule_warning_10=yes
13971 _mule_has_warnings=yes
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
13978 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13983 #include <execinfo.h>
13986 main ()
13989 void *bt[1];
13990 int n = backtrace(&bt, 1);
13991 const char **bt_syms = backtrace_symbols(bt, n);
13994 return 0;
13997 _ACEOF
13998 if ac_fn_c_try_link "$LINENO"; then :
14001 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14004 $as_echo "yes" >&6; }
14006 else
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14012 rm -f core conftest.err conftest.$ac_objext \
14013 conftest$ac_exeext conftest.$ac_ext
14016 # Flush standard test results for speeding cache
14017 cat >confcache <<\_ACEOF
14018 # This file is a shell script that caches the results of configure
14019 # tests run on this system so they can be shared between configure
14020 # scripts and configure runs, see configure's option --config-cache.
14021 # It is not useful on other systems. If it contains results you don't
14022 # want to keep, you may remove or edit it.
14024 # config.status only pays attention to the cache file if you give it
14025 # the --recheck option to rerun configure.
14027 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14028 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14029 # following values.
14031 _ACEOF
14033 # The following way of writing the cache mishandles newlines in values,
14034 # but we know of no workaround that is simple, portable, and efficient.
14035 # So, we kill variables containing newlines.
14036 # Ultrix sh set writes to stderr and can't be redirected directly,
14037 # and sets the high bit in the cache file unless we assign to the vars.
14039 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14040 eval ac_val=\$$ac_var
14041 case $ac_val in #(
14042 *${as_nl}*)
14043 case $ac_var in #(
14044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14046 esac
14047 case $ac_var in #(
14048 _ | IFS | as_nl) ;; #(
14049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14050 *) { eval $ac_var=; unset $ac_var;} ;;
14051 esac ;;
14052 esac
14053 done
14055 (set) 2>&1 |
14056 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14057 *${as_nl}ac_space=\ *)
14058 # `set' does not quote correctly, so add quotes: double-quote
14059 # substitution turns \\\\ into \\, and sed turns \\ into \.
14060 sed -n \
14061 "s/'/'\\\\''/g;
14062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14063 ;; #(
14065 # `set' quotes correctly as required by POSIX, so do not add quotes.
14066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14068 esac |
14069 sort
14071 sed '
14072 /^ac_cv_env_/b end
14073 t clear
14074 :clear
14075 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14076 t end
14077 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14078 :end' >>confcache
14079 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14080 if test -w "$cache_file"; then
14081 test "x$cache_file" != "x/dev/null" &&
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14083 $as_echo "$as_me: updating cache $cache_file" >&6;}
14084 cat confcache >$cache_file
14085 else
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14087 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14090 rm -f confcache
14092 # Other tests
14093 # aMule options
14095 # Check whether --enable-debug was given.
14096 if test "${enable_debug+set}" = set; then :
14097 enableval=$enable_debug;
14101 # Check whether --enable-profile was given.
14102 if test "${enable_profile+set}" = set; then :
14103 enableval=$enable_profile;
14107 # Check whether --enable-optimize was given.
14108 if test "${enable_optimize+set}" = set; then :
14109 enableval=$enable_optimize;
14114 if test ${enable_debug:-yes} = yes; then :
14116 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
14118 MULECFLAGS="$MULECFLAGS -g"
14119 MULECXXFLAGS="$MULECXXFLAGS -g"
14121 if test ${GLIBCXX:-no} = yes; then :
14122 MULECPPFLAGS="$MULECPPFLAGS -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC"
14124 if test ${GCC:-no} = yes; then :
14126 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14127 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14130 if test ${SYS:-unknown} = win32; then :
14131 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
14134 else
14136 if test ${GCC:-no} = yes; then :
14138 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
14139 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
14145 if test ${enable_profile:-no} = yes; then :
14148 MULECFLAGS="$MULECFLAGS -pg"
14149 MULECXXFLAGS="$MULECXXFLAGS -pg"
14151 MULELDFLAGS="$MULELDFLAGS -pg"
14155 if test ${enable_optimize:-no} = yes; then :
14157 MULECFLAGS="$MULECFLAGS -O2"
14158 MULECXXFLAGS="$MULECXXFLAGS -O2"
14162 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
14165 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
14167 $as_echo_n "checking for docdir... " >&6; }
14168 if test -z "$docdir"; then :
14169 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
14172 $as_echo "$docdir" >&6; }
14174 # Try to set the SVN checkout-date
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
14176 $as_echo_n "checking for SVNDATE... " >&6; }
14177 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
14178 then
14179 svndate="rev. `cat $srcdir/.svn-revision`"
14180 elif test -d $srcdir/.svn # SVNDATE for svn
14181 then
14182 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
14185 $as_echo "${svndate:-None required}" >&6; }
14186 if test -n "$svndate"; then :
14189 cat >>confdefs.h <<_ACEOF
14190 #define SVNDATE "$svndate"
14191 _ACEOF
14193 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
14196 SVNDATE=$svndate
14200 # Check whether --with-denoise-level was given.
14201 if test "${with_denoise_level+set}" = set; then :
14202 withval=$with_denoise_level;
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
14207 $as_echo_n "checking denoising level... " >&6; }
14208 if test ${with_denoise_level:-5} = yes; then :
14209 with_denoise_level=5
14211 if test ${with_denoise_level:-5} = no; then :
14212 with_denoise_level=0
14214 if test ${with_denoise_level:-5} -gt 4; then :
14215 if test "${svndate:+set}" = "set"; then :
14216 with_denoise_level=0
14217 else
14218 with_denoise_level=4
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
14222 $as_echo "$with_denoise_level" >&6; }
14224 ac_config_commands="$ac_config_commands denoiser"
14228 if test ${enable_plasmamule:-no} = yes; then :
14231 if test -z ${QT_MOC}; then :
14233 for ac_prog in moc-qt4 moc
14235 # Extract the first word of "$ac_prog", so it can be a program name with args.
14236 set dummy $ac_prog; ac_word=$2
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14238 $as_echo_n "checking for $ac_word... " >&6; }
14239 if test "${ac_cv_path_QT_MOC+set}" = set; then :
14240 $as_echo_n "(cached) " >&6
14241 else
14242 case $QT_MOC in
14243 [\\/]* | ?:[\\/]*)
14244 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
14247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248 for as_dir in $PATH
14250 IFS=$as_save_IFS
14251 test -z "$as_dir" && as_dir=.
14252 for ac_exec_ext in '' $ac_executable_extensions; do
14253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14254 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
14255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14256 break 2
14258 done
14259 done
14260 IFS=$as_save_IFS
14263 esac
14265 QT_MOC=$ac_cv_path_QT_MOC
14266 if test -n "$QT_MOC"; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
14268 $as_echo "$QT_MOC" >&6; }
14269 else
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14275 test -n "$QT_MOC" && break
14276 done
14279 else
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
14282 $as_echo_n "checking for moc... " >&6; }
14283 if test -x ${QT_MOC}; then :
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
14286 $as_echo "${QT_MOC}" >&6; }
14289 else
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
14292 $as_echo "\"not found\"" >&6; }
14293 QT_MOC="not found"
14300 if test "${QT_MOC}" != "not found"; then :
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
14303 $as_echo_n "checking for moc version >= 4... " >&6; }
14304 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
14305 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
14308 $as_echo "found ${QT_MOC_VERSION}" >&6; }
14310 else
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
14313 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
14314 QT_MOC="not found"
14320 if test "${QT_MOC}" = "not found"; then :
14321 enable_plasmamule=disabled
14324 if test ${enable_plasmamule:-no} = yes; then :
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
14329 $as_echo_n "checking for qt... " >&6; }
14330 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14333 $as_echo "found" >&6; }
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
14335 $as_echo_n "checking for qt core cflags... " >&6; }
14336 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
14338 $as_echo "$QT_CORE_CFLAGS" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
14340 $as_echo_n "checking for qt core libs... " >&6; }
14341 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
14343 $as_echo "$QT_CORE_LIBS" >&6; }
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
14345 $as_echo_n "checking for qt gui cflags... " >&6; }
14346 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
14348 $as_echo "$QT_GUI_CFLAGS" >&6; }
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
14350 $as_echo_n "checking for qt gui libs... " >&6; }
14351 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
14353 $as_echo "$QT_GUI_LIBS" >&6; }
14355 else
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14357 $as_echo "not found" >&6; }
14365 if test -z "${QT_CORE_CXXFLAGS}"; then :
14366 enable_plasmamule=disabled
14371 if test ${enable_plasmamule:-no} = yes; then :
14374 if test -z ${KDE4_CONFIG}; then :
14376 # Extract the first word of "kde4-config", so it can be a program name with args.
14377 set dummy kde4-config; ac_word=$2
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14379 $as_echo_n "checking for $ac_word... " >&6; }
14380 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 case $KDE4_CONFIG in
14384 [\\/]* | ?:[\\/]*)
14385 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14391 IFS=$as_save_IFS
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14395 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14397 break 2
14399 done
14400 done
14401 IFS=$as_save_IFS
14404 esac
14406 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
14407 if test -n "$KDE4_CONFIG"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
14409 $as_echo "$KDE4_CONFIG" >&6; }
14410 else
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412 $as_echo "no" >&6; }
14417 else
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
14420 $as_echo_n "checking for kde4-config... " >&6; }
14421 if test ! -x KDE4_CONFIG; then :
14423 KDE4_CONFIG="not found"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14425 $as_echo "not found" >&6; }
14431 if test "${KDE4_CONFIG}" != "not found"; then :
14433 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
14434 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
14437 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
14439 else
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14442 $as_echo "not found" >&6; }
14446 else
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14449 $as_echo "not found" >&6; }
14454 if test "${KDE4_CONFIG}" = "not found"; then :
14455 enable_plasmamule=disabled
14460 if test ${enable_plasmamule:-no} = yes; then :
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
14464 $as_echo_n "checking for kde4 headers... " >&6; }
14465 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
14467 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
14469 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
14472 $as_echo "${KDE_HEADER_DIR}" >&6; }
14474 else
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14477 $as_echo "not found" >&6; }
14481 else
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found2" >&5
14484 $as_echo "not found2" >&6; }
14489 if test -z ${KDE_HEADER_DIR}; then :
14490 enable_plasmamule=disabled
14495 if test ${enable_plasmamule:-no} = yes; then :
14497 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
14498 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
14503 $as_echo_n "checking for kde4 applinks Path... " >&6; }
14504 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14506 KDE_IN_HOME="yes"
14509 if test ${KDE_IN_HOME} = "yes"; then :
14511 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14513 else
14515 if test -n ${prefix}; then :
14517 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
14518 if test -n ${KDE_APPLNK_PATH}; then :
14520 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14524 else
14526 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
14532 $as_echo "${KDE_APPLNK_PATH}" >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
14538 $as_echo_n "checking for kde4 services Path... " >&6; }
14539 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14541 KDE_IN_HOME="yes"
14544 if test ${KDE_IN_HOME} = "yes"; then :
14546 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14548 else
14550 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
14554 $as_echo "${KDE_SERVICE_PATH}" >&6; }
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
14560 $as_echo_n "checking for kde4 plugins Path... " >&6; }
14561 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14563 KDE_IN_HOME="yes"
14566 if test ${KDE_IN_HOME} = "yes"; then :
14568 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14570 else
14572 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
14576 $as_echo "${KDE_MODULE_PATH}" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
14582 $as_echo_n "checking for kde4 icons Path... " >&6; }
14583 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14585 KDE_IN_HOME="yes"
14588 if test ${KDE_IN_HOME} = "yes"; then :
14590 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14592 else
14594 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
14597 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
14599 $as_echo "${KDE_ICON_PATH}" >&6; }
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
14605 $as_echo_n "checking for location for mime-type installation... " >&6; }
14606 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14608 KDE_IN_HOME="yes"
14611 if test ${KDE_IN_HOME} = "yes"; then :
14613 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14615 else
14617 if test -n ${prefix}; then :
14619 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
14620 if test -n ${KDE_MIME_PATH}; then :
14622 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14626 else
14628 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
14634 $as_echo "${KDE_MIME_PATH}" >&6; }
14638 else
14639 enable_plasmamule=disabled
14646 if test x$SYS = xwin32; then
14647 SYS_WIN32_TRUE=
14648 SYS_WIN32_FALSE='#'
14649 else
14650 SYS_WIN32_TRUE='#'
14651 SYS_WIN32_FALSE=
14654 if test x$SYS = xwin32 -a "$RC" != ":"; then
14655 NEED_RC_TRUE=
14656 NEED_RC_FALSE='#'
14657 else
14658 NEED_RC_TRUE='#'
14659 NEED_RC_FALSE=
14662 if test x$SYS = xdarwin; then
14663 NEED_CORESERVICES_TRUE=
14664 NEED_CORESERVICES_FALSE='#'
14665 else
14666 NEED_CORESERVICES_TRUE='#'
14667 NEED_CORESERVICES_FALSE=
14670 if test x$USE_NLS = xyes; then
14671 COMPILE_NLS_TRUE=
14672 COMPILE_NLS_FALSE='#'
14673 else
14674 COMPILE_NLS_TRUE='#'
14675 COMPILE_NLS_FALSE=
14678 if test x$HAVE_FLEX_EXTENDED = xyes; then
14679 GENERATE_FLEX_HEADER_TRUE=
14680 GENERATE_FLEX_HEADER_FALSE='#'
14681 else
14682 GENERATE_FLEX_HEADER_TRUE='#'
14683 GENERATE_FLEX_HEADER_FALSE=
14686 if test x$INSTALL_SKINS = xyes; then
14687 INSTALL_SKINS_TRUE=
14688 INSTALL_SKINS_FALSE='#'
14689 else
14690 INSTALL_SKINS_TRUE='#'
14691 INSTALL_SKINS_FALSE=
14694 if test ${enable_plasmamule:-no} = yes; then
14695 PLASMAMULE_TRUE=
14696 PLASMAMULE_FALSE='#'
14697 else
14698 PLASMAMULE_TRUE='#'
14699 PLASMAMULE_FALSE=
14703 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
14704 COMPILE_LIB_COMMON_TRUE=
14705 COMPILE_LIB_COMMON_FALSE='#'
14706 else
14707 COMPILE_LIB_COMMON_TRUE='#'
14708 COMPILE_LIB_COMMON_FALSE=
14711 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
14712 COMPILE_LIB_EC_TRUE=
14713 COMPILE_LIB_EC_FALSE='#'
14714 else
14715 COMPILE_LIB_EC_TRUE='#'
14716 COMPILE_LIB_EC_FALSE=
14720 # Check for readline library
14721 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14724 $as_echo_n "checking for a readline compatible library... " >&6; }
14725 if test "${vl_cv_lib_readline+set}" = set; then :
14726 $as_echo_n "(cached) " >&6
14727 else
14729 ORIG_LIBS="$LIBS"
14730 for readline_lib in readline edit editline; do
14731 for termcap_lib in "" termcap curses ncurses; do
14732 if test -z "$termcap_lib"; then
14733 TRY_LIB="-l$readline_lib"
14734 else
14735 TRY_LIB="-l$readline_lib -l$termcap_lib"
14737 LIBS="$ORIG_LIBS $TRY_LIB"
14738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14739 /* end confdefs.h. */
14741 /* Override any GCC internal prototype to avoid an error.
14742 Use char because int might match the return type of a GCC
14743 builtin and then its argument prototype would still apply. */
14744 #ifdef __cplusplus
14745 extern "C"
14746 #endif
14747 char readline ();
14749 main ()
14751 return readline ();
14753 return 0;
14755 _ACEOF
14756 if ac_fn_c_try_link "$LINENO"; then :
14757 vl_cv_lib_readline="$TRY_LIB"
14759 rm -f core conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
14761 if test -n "$vl_cv_lib_readline"; then
14762 break
14764 done
14765 if test -n "$vl_cv_lib_readline"; then
14766 break
14768 done
14769 if test -z "$vl_cv_lib_readline"; then
14770 vl_cv_lib_readline="no"
14771 LIBS="$ORIG_LIBS"
14772 READLINE_LIBS=""
14773 else
14774 READLINE_LIBS="$vl_cv_lib_readline"
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14779 $as_echo "$vl_cv_lib_readline" >&6; }
14781 if test "$vl_cv_lib_readline" != "no"; then
14783 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14785 for ac_header in readline.h readline/readline.h
14786 do :
14787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14788 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14789 eval as_val=\$$as_ac_Header
14790 if test "x$as_val" = x""yes; then :
14791 cat >>confdefs.h <<_ACEOF
14792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14793 _ACEOF
14797 done
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14800 $as_echo_n "checking whether readline supports history... " >&6; }
14801 if test "${vl_cv_lib_readline_history+set}" = set; then :
14802 $as_echo_n "(cached) " >&6
14803 else
14805 vl_cv_lib_readline_history="no"
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14809 /* Override any GCC internal prototype to avoid an error.
14810 Use char because int might match the return type of a GCC
14811 builtin and then its argument prototype would still apply. */
14812 #ifdef __cplusplus
14813 extern "C"
14814 #endif
14815 char add_history ();
14817 main ()
14819 return add_history ();
14821 return 0;
14823 _ACEOF
14824 if ac_fn_c_try_link "$LINENO"; then :
14825 vl_cv_lib_readline_history="yes"
14827 rm -f core conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14832 $as_echo "$vl_cv_lib_readline_history" >&6; }
14833 if test "$vl_cv_lib_readline_history" = "yes"; then
14835 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
14837 for ac_header in history.h readline/history.h
14838 do :
14839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14840 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14841 eval as_val=\$$as_ac_Header
14842 if test "x$as_val" = x""yes; then :
14843 cat >>confdefs.h <<_ACEOF
14844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14845 _ACEOF
14849 done
14854 LIBS="$ORIG_LIBS"
14858 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
14861 # Check whether --enable-ccache was given.
14862 if test "${enable_ccache+set}" = set; then :
14863 enableval=$enable_ccache;
14869 # Check whether --with-ccache-prefix was given.
14870 if test "${with_ccache_prefix+set}" = set; then :
14871 withval=$with_ccache_prefix;
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
14876 $as_echo_n "checking whether ccache support should be added... " >&6; }
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
14878 $as_echo "${enable_ccache:-no}" >&6; }
14880 if test ${enable_ccache:-no} = yes; then :
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
14883 $as_echo_n "checking for ccache presence... " >&6; }
14884 if test -z "$with_ccache_prefix"; then :
14886 ccache_full=`which ccache`
14887 with_ccache_prefix=`dirname ${ccache_full}`
14890 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
14892 CC="$with_ccache_prefix/ccache $CC"
14893 CXX="$with_ccache_prefix/ccache $CXX"
14894 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
14896 else
14897 enable_ccache=no
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
14900 $as_echo "${enable_ccache:-no}" >&6; }
14905 ac_config_files="$ac_config_files Makefile docs/Makefile docs/man/Makefile intl/Makefile src/Makefile src/pixmaps/Makefile src/pixmaps/flags_xpm/Makefile src/libs/Makefile src/libs/ec/Makefile src/libs/ec/cpp/Makefile src/libs/common/Makefile src/utils/Makefile src/utils/aLinkCreator/Makefile src/utils/aLinkCreator/docs/Makefile src/utils/aLinkCreator/src/Makefile src/utils/cas/Makefile src/utils/cas/docs/Makefile src/utils/fileview/Makefile src/utils/plasmamule/Makefile src/utils/wxCas/Makefile src/utils/wxCas/docs/Makefile src/utils/wxCas/src/Makefile src/utils/xas/Makefile src/utils/xas/autostart-xas src/utils/xas/docs/Makefile src/skins/Makefile src/webserver/Makefile src/webserver/src/Makefile src/webserver/default/Makefile unittests/Makefile unittests/muleunit/Makefile unittests/tests/Makefile"
14907 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
14909 if test x$SYS = xwin32; then :
14910 ac_config_files="$ac_config_files version.rc"
14913 cat >confcache <<\_ACEOF
14914 # This file is a shell script that caches the results of configure
14915 # tests run on this system so they can be shared between configure
14916 # scripts and configure runs, see configure's option --config-cache.
14917 # It is not useful on other systems. If it contains results you don't
14918 # want to keep, you may remove or edit it.
14920 # config.status only pays attention to the cache file if you give it
14921 # the --recheck option to rerun configure.
14923 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14924 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14925 # following values.
14927 _ACEOF
14929 # The following way of writing the cache mishandles newlines in values,
14930 # but we know of no workaround that is simple, portable, and efficient.
14931 # So, we kill variables containing newlines.
14932 # Ultrix sh set writes to stderr and can't be redirected directly,
14933 # and sets the high bit in the cache file unless we assign to the vars.
14935 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14936 eval ac_val=\$$ac_var
14937 case $ac_val in #(
14938 *${as_nl}*)
14939 case $ac_var in #(
14940 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14941 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14942 esac
14943 case $ac_var in #(
14944 _ | IFS | as_nl) ;; #(
14945 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14946 *) { eval $ac_var=; unset $ac_var;} ;;
14947 esac ;;
14948 esac
14949 done
14951 (set) 2>&1 |
14952 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14953 *${as_nl}ac_space=\ *)
14954 # `set' does not quote correctly, so add quotes: double-quote
14955 # substitution turns \\\\ into \\, and sed turns \\ into \.
14956 sed -n \
14957 "s/'/'\\\\''/g;
14958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14959 ;; #(
14961 # `set' quotes correctly as required by POSIX, so do not add quotes.
14962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14964 esac |
14965 sort
14967 sed '
14968 /^ac_cv_env_/b end
14969 t clear
14970 :clear
14971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14972 t end
14973 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14974 :end' >>confcache
14975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14976 if test -w "$cache_file"; then
14977 test "x$cache_file" != "x/dev/null" &&
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14979 $as_echo "$as_me: updating cache $cache_file" >&6;}
14980 cat confcache >$cache_file
14981 else
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14983 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14986 rm -f confcache
14988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14989 # Let make expand exec_prefix.
14990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14992 DEFS=-DHAVE_CONFIG_H
14994 ac_libobjs=
14995 ac_ltlibobjs=
14996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14997 # 1. Remove the extension, and $U if already installed.
14998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14999 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15001 # will be set to the directory where LIBOBJS objects are built.
15002 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15003 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15004 done
15005 LIBOBJS=$ac_libobjs
15007 LTLIBOBJS=$ac_ltlibobjs
15010 if test -n "$EXEEXT"; then
15011 am__EXEEXT_TRUE=
15012 am__EXEEXT_FALSE='#'
15013 else
15014 am__EXEEXT_TRUE='#'
15015 am__EXEEXT_FALSE=
15018 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15019 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15022 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15023 as_fn_error "conditional \"AMDEP\" was never defined.
15024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15026 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15027 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15031 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15034 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
15035 as_fn_error "conditional \"MONOLITHIC\" was never defined.
15036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15038 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
15039 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
15040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15042 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
15043 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
15044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15046 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
15047 as_fn_error "conditional \"WEB\" was never defined.
15048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15050 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
15051 as_fn_error "conditional \"AMULE_GUI\" was never defined.
15052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15054 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
15055 as_fn_error "conditional \"CAS\" was never defined.
15056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15058 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
15059 as_fn_error "conditional \"WXCAS\" was never defined.
15060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15062 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
15063 as_fn_error "conditional \"ED2K\" was never defined.
15064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15066 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
15067 as_fn_error "conditional \"ALC\" was never defined.
15068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15070 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
15071 as_fn_error "conditional \"ALCC\" was never defined.
15072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15074 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
15075 as_fn_error "conditional \"XAS\" was never defined.
15076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15078 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
15079 as_fn_error "conditional \"FILEVIEW\" was never defined.
15080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15082 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
15083 as_fn_error "conditional \"SYS_WIN32\" was never defined.
15084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15086 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
15087 as_fn_error "conditional \"NEED_RC\" was never defined.
15088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15090 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
15091 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
15092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
15095 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
15096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15098 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
15099 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
15100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15102 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
15103 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
15104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15106 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
15107 as_fn_error "conditional \"PLASMAMULE\" was never defined.
15108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
15111 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
15112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15114 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
15115 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
15116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15119 : ${CONFIG_STATUS=./config.status}
15120 ac_write_fail=0
15121 ac_clean_files_save=$ac_clean_files
15122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15125 as_write_fail=0
15126 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15127 #! $SHELL
15128 # Generated by $as_me.
15129 # Run this file to recreate the current configuration.
15130 # Compiler output produced by configure, useful for debugging
15131 # configure, is in config.log if it exists.
15133 debug=false
15134 ac_cs_recheck=false
15135 ac_cs_silent=false
15137 SHELL=\${CONFIG_SHELL-$SHELL}
15138 export SHELL
15139 _ASEOF
15140 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15141 ## -------------------- ##
15142 ## M4sh Initialization. ##
15143 ## -------------------- ##
15145 # Be more Bourne compatible
15146 DUALCASE=1; export DUALCASE # for MKS sh
15147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15148 emulate sh
15149 NULLCMD=:
15150 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15151 # is contrary to our usage. Disable this feature.
15152 alias -g '${1+"$@"}'='"$@"'
15153 setopt NO_GLOB_SUBST
15154 else
15155 case `(set -o) 2>/dev/null` in #(
15156 *posix*) :
15157 set -o posix ;; #(
15158 *) :
15160 esac
15164 as_nl='
15166 export as_nl
15167 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15168 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15171 # Prefer a ksh shell builtin over an external printf program on Solaris,
15172 # but without wasting forks for bash or zsh.
15173 if test -z "$BASH_VERSION$ZSH_VERSION" \
15174 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15175 as_echo='print -r --'
15176 as_echo_n='print -rn --'
15177 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15178 as_echo='printf %s\n'
15179 as_echo_n='printf %s'
15180 else
15181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15183 as_echo_n='/usr/ucb/echo -n'
15184 else
15185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15186 as_echo_n_body='eval
15187 arg=$1;
15188 case $arg in #(
15189 *"$as_nl"*)
15190 expr "X$arg" : "X\\(.*\\)$as_nl";
15191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15192 esac;
15193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15195 export as_echo_n_body
15196 as_echo_n='sh -c $as_echo_n_body as_echo'
15198 export as_echo_body
15199 as_echo='sh -c $as_echo_body as_echo'
15202 # The user is always right.
15203 if test "${PATH_SEPARATOR+set}" != set; then
15204 PATH_SEPARATOR=:
15205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15207 PATH_SEPARATOR=';'
15212 # IFS
15213 # We need space, tab and new line, in precisely that order. Quoting is
15214 # there to prevent editors from complaining about space-tab.
15215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15216 # splitting by setting IFS to empty value.)
15217 IFS=" "" $as_nl"
15219 # Find who we are. Look in the path if we contain no directory separator.
15220 case $0 in #((
15221 *[\\/]* ) as_myself=$0 ;;
15222 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15223 for as_dir in $PATH
15225 IFS=$as_save_IFS
15226 test -z "$as_dir" && as_dir=.
15227 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15228 done
15229 IFS=$as_save_IFS
15232 esac
15233 # We did not find ourselves, most probably we were run as `sh COMMAND'
15234 # in which case we are not to be found in the path.
15235 if test "x$as_myself" = x; then
15236 as_myself=$0
15238 if test ! -f "$as_myself"; then
15239 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15240 exit 1
15243 # Unset variables that we do not need and which cause bugs (e.g. in
15244 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15245 # suppresses any "Segmentation fault" message there. '((' could
15246 # trigger a bug in pdksh 5.2.14.
15247 for as_var in BASH_ENV ENV MAIL MAILPATH
15248 do eval test x\${$as_var+set} = xset \
15249 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15250 done
15251 PS1='$ '
15252 PS2='> '
15253 PS4='+ '
15255 # NLS nuisances.
15256 LC_ALL=C
15257 export LC_ALL
15258 LANGUAGE=C
15259 export LANGUAGE
15261 # CDPATH.
15262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15265 # as_fn_error ERROR [LINENO LOG_FD]
15266 # ---------------------------------
15267 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15268 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15269 # script with status $?, using 1 if that was 0.
15270 as_fn_error ()
15272 as_status=$?; test $as_status -eq 0 && as_status=1
15273 if test "$3"; then
15274 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15275 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15277 $as_echo "$as_me: error: $1" >&2
15278 as_fn_exit $as_status
15279 } # as_fn_error
15282 # as_fn_set_status STATUS
15283 # -----------------------
15284 # Set $? to STATUS, without forking.
15285 as_fn_set_status ()
15287 return $1
15288 } # as_fn_set_status
15290 # as_fn_exit STATUS
15291 # -----------------
15292 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15293 as_fn_exit ()
15295 set +e
15296 as_fn_set_status $1
15297 exit $1
15298 } # as_fn_exit
15300 # as_fn_unset VAR
15301 # ---------------
15302 # Portably unset VAR.
15303 as_fn_unset ()
15305 { eval $1=; unset $1;}
15307 as_unset=as_fn_unset
15308 # as_fn_append VAR VALUE
15309 # ----------------------
15310 # Append the text in VALUE to the end of the definition contained in VAR. Take
15311 # advantage of any shell optimizations that allow amortized linear growth over
15312 # repeated appends, instead of the typical quadratic growth present in naive
15313 # implementations.
15314 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15315 eval 'as_fn_append ()
15317 eval $1+=\$2
15319 else
15320 as_fn_append ()
15322 eval $1=\$$1\$2
15324 fi # as_fn_append
15326 # as_fn_arith ARG...
15327 # ------------------
15328 # Perform arithmetic evaluation on the ARGs, and store the result in the
15329 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15330 # must be portable across $(()) and expr.
15331 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15332 eval 'as_fn_arith ()
15334 as_val=$(( $* ))
15336 else
15337 as_fn_arith ()
15339 as_val=`expr "$@" || test $? -eq 1`
15341 fi # as_fn_arith
15344 if expr a : '\(a\)' >/dev/null 2>&1 &&
15345 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15346 as_expr=expr
15347 else
15348 as_expr=false
15351 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15352 as_basename=basename
15353 else
15354 as_basename=false
15357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15358 as_dirname=dirname
15359 else
15360 as_dirname=false
15363 as_me=`$as_basename -- "$0" ||
15364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15365 X"$0" : 'X\(//\)$' \| \
15366 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15367 $as_echo X/"$0" |
15368 sed '/^.*\/\([^/][^/]*\)\/*$/{
15369 s//\1/
15372 /^X\/\(\/\/\)$/{
15373 s//\1/
15376 /^X\/\(\/\).*/{
15377 s//\1/
15380 s/.*/./; q'`
15382 # Avoid depending upon Character Ranges.
15383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15386 as_cr_digits='0123456789'
15387 as_cr_alnum=$as_cr_Letters$as_cr_digits
15389 ECHO_C= ECHO_N= ECHO_T=
15390 case `echo -n x` in #(((((
15391 -n*)
15392 case `echo 'xy\c'` in
15393 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15394 xy) ECHO_C='\c';;
15395 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15396 ECHO_T=' ';;
15397 esac;;
15399 ECHO_N='-n';;
15400 esac
15402 rm -f conf$$ conf$$.exe conf$$.file
15403 if test -d conf$$.dir; then
15404 rm -f conf$$.dir/conf$$.file
15405 else
15406 rm -f conf$$.dir
15407 mkdir conf$$.dir 2>/dev/null
15409 if (echo >conf$$.file) 2>/dev/null; then
15410 if ln -s conf$$.file conf$$ 2>/dev/null; then
15411 as_ln_s='ln -s'
15412 # ... but there are two gotchas:
15413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15415 # In both cases, we have to default to `cp -p'.
15416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15417 as_ln_s='cp -p'
15418 elif ln conf$$.file conf$$ 2>/dev/null; then
15419 as_ln_s=ln
15420 else
15421 as_ln_s='cp -p'
15423 else
15424 as_ln_s='cp -p'
15426 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15427 rmdir conf$$.dir 2>/dev/null
15430 # as_fn_mkdir_p
15431 # -------------
15432 # Create "$as_dir" as a directory, including parents if necessary.
15433 as_fn_mkdir_p ()
15436 case $as_dir in #(
15437 -*) as_dir=./$as_dir;;
15438 esac
15439 test -d "$as_dir" || eval $as_mkdir_p || {
15440 as_dirs=
15441 while :; do
15442 case $as_dir in #(
15443 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15444 *) as_qdir=$as_dir;;
15445 esac
15446 as_dirs="'$as_qdir' $as_dirs"
15447 as_dir=`$as_dirname -- "$as_dir" ||
15448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15449 X"$as_dir" : 'X\(//\)[^/]' \| \
15450 X"$as_dir" : 'X\(//\)$' \| \
15451 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15452 $as_echo X"$as_dir" |
15453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15454 s//\1/
15457 /^X\(\/\/\)[^/].*/{
15458 s//\1/
15461 /^X\(\/\/\)$/{
15462 s//\1/
15465 /^X\(\/\).*/{
15466 s//\1/
15469 s/.*/./; q'`
15470 test -d "$as_dir" && break
15471 done
15472 test -z "$as_dirs" || eval "mkdir $as_dirs"
15473 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15476 } # as_fn_mkdir_p
15477 if mkdir -p . 2>/dev/null; then
15478 as_mkdir_p='mkdir -p "$as_dir"'
15479 else
15480 test -d ./-p && rmdir ./-p
15481 as_mkdir_p=false
15484 if test -x / >/dev/null 2>&1; then
15485 as_test_x='test -x'
15486 else
15487 if ls -dL / >/dev/null 2>&1; then
15488 as_ls_L_option=L
15489 else
15490 as_ls_L_option=
15492 as_test_x='
15493 eval sh -c '\''
15494 if test -d "$1"; then
15495 test -d "$1/.";
15496 else
15497 case $1 in #(
15498 -*)set "./$1";;
15499 esac;
15500 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15501 ???[sx]*):;;*)false;;esac;fi
15502 '\'' sh
15505 as_executable_p=$as_test_x
15507 # Sed expression to map a string onto a valid CPP name.
15508 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15510 # Sed expression to map a string onto a valid variable name.
15511 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15514 exec 6>&1
15515 ## ----------------------------------- ##
15516 ## Main body of $CONFIG_STATUS script. ##
15517 ## ----------------------------------- ##
15518 _ASEOF
15519 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15522 # Save the log message, to keep $0 and so on meaningful, and to
15523 # report actual input values of CONFIG_FILES etc. instead of their
15524 # values after options handling.
15525 ac_log="
15526 This file was extended by aMule $as_me SVN, which was
15527 generated by GNU Autoconf 2.65. Invocation command line was
15529 CONFIG_FILES = $CONFIG_FILES
15530 CONFIG_HEADERS = $CONFIG_HEADERS
15531 CONFIG_LINKS = $CONFIG_LINKS
15532 CONFIG_COMMANDS = $CONFIG_COMMANDS
15533 $ $0 $@
15535 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15538 _ACEOF
15540 case $ac_config_files in *"
15541 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15542 esac
15544 case $ac_config_headers in *"
15545 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15546 esac
15549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15550 # Files that config.status was made for.
15551 config_files="$ac_config_files"
15552 config_headers="$ac_config_headers"
15553 config_commands="$ac_config_commands"
15555 _ACEOF
15557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15558 ac_cs_usage="\
15559 \`$as_me' instantiates files and other configuration actions
15560 from templates according to the current configuration. Unless the files
15561 and actions are specified as TAGs, all are instantiated by default.
15563 Usage: $0 [OPTION]... [TAG]...
15565 -h, --help print this help, then exit
15566 -V, --version print version number and configuration settings, then exit
15567 --config print configuration, then exit
15568 -q, --quiet, --silent
15569 do not print progress messages
15570 -d, --debug don't remove temporary files
15571 --recheck update $as_me by reconfiguring in the same conditions
15572 --file=FILE[:TEMPLATE]
15573 instantiate the configuration file FILE
15574 --header=FILE[:TEMPLATE]
15575 instantiate the configuration header FILE
15577 Configuration files:
15578 $config_files
15580 Configuration headers:
15581 $config_headers
15583 Configuration commands:
15584 $config_commands
15586 Report bugs to <admin@amule.org>."
15588 _ACEOF
15589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15590 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15591 ac_cs_version="\\
15592 aMule config.status SVN
15593 configured by $0, generated by GNU Autoconf 2.65,
15594 with options \\"\$ac_cs_config\\"
15596 Copyright (C) 2009 Free Software Foundation, Inc.
15597 This config.status script is free software; the Free Software Foundation
15598 gives unlimited permission to copy, distribute and modify it."
15600 ac_pwd='$ac_pwd'
15601 srcdir='$srcdir'
15602 INSTALL='$INSTALL'
15603 MKDIR_P='$MKDIR_P'
15604 AWK='$AWK'
15605 test -n "\$AWK" || AWK=awk
15606 _ACEOF
15608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15609 # The default lists apply if the user does not specify any file.
15610 ac_need_defaults=:
15611 while test $# != 0
15613 case $1 in
15614 --*=*)
15615 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15616 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15617 ac_shift=:
15620 ac_option=$1
15621 ac_optarg=$2
15622 ac_shift=shift
15624 esac
15626 case $ac_option in
15627 # Handling of the options.
15628 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15629 ac_cs_recheck=: ;;
15630 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15631 $as_echo "$ac_cs_version"; exit ;;
15632 --config | --confi | --conf | --con | --co | --c )
15633 $as_echo "$ac_cs_config"; exit ;;
15634 --debug | --debu | --deb | --de | --d | -d )
15635 debug=: ;;
15636 --file | --fil | --fi | --f )
15637 $ac_shift
15638 case $ac_optarg in
15639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15640 esac
15641 as_fn_append CONFIG_FILES " '$ac_optarg'"
15642 ac_need_defaults=false;;
15643 --header | --heade | --head | --hea )
15644 $ac_shift
15645 case $ac_optarg in
15646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15647 esac
15648 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15649 ac_need_defaults=false;;
15650 --he | --h)
15651 # Conflict between --help and --header
15652 as_fn_error "ambiguous option: \`$1'
15653 Try \`$0 --help' for more information.";;
15654 --help | --hel | -h )
15655 $as_echo "$ac_cs_usage"; exit ;;
15656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15658 ac_cs_silent=: ;;
15660 # This is an error.
15661 -*) as_fn_error "unrecognized option: \`$1'
15662 Try \`$0 --help' for more information." ;;
15664 *) as_fn_append ac_config_targets " $1"
15665 ac_need_defaults=false ;;
15667 esac
15668 shift
15669 done
15671 ac_configure_extra_args=
15673 if $ac_cs_silent; then
15674 exec 6>/dev/null
15675 ac_configure_extra_args="$ac_configure_extra_args --silent"
15678 _ACEOF
15679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15680 if \$ac_cs_recheck; then
15681 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15682 shift
15683 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15684 CONFIG_SHELL='$SHELL'
15685 export CONFIG_SHELL
15686 exec "\$@"
15689 _ACEOF
15690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15691 exec 5>>config.log
15693 echo
15694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15695 ## Running $as_me. ##
15696 _ASBOX
15697 $as_echo "$ac_log"
15698 } >&5
15700 _ACEOF
15701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703 # INIT-COMMANDS
15705 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15706 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15707 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15708 # from automake.
15709 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
15710 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15711 LINGUAS="${LINGUAS-%UNSET%}"
15713 denoiserlevel=$with_denoise_level
15715 _ACEOF
15717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15719 # Handling of arguments.
15720 for ac_config_target in $ac_config_targets
15722 case $ac_config_target in
15723 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15724 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15725 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15726 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
15727 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15728 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15729 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
15730 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
15731 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15732 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
15733 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
15734 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
15735 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
15736 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
15737 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
15738 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
15739 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
15740 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
15741 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
15742 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
15743 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
15744 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
15745 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
15746 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
15747 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
15748 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
15749 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
15750 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
15751 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
15752 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
15753 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
15754 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
15755 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
15756 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
15757 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
15758 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
15759 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15760 "Compilation.flags") CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
15761 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
15763 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15764 esac
15765 done
15768 # If the user did not use the arguments to specify the items to instantiate,
15769 # then the envvar interface is used. Set only those that are not.
15770 # We use the long form for the default assignment because of an extremely
15771 # bizarre bug on SunOS 4.1.3.
15772 if $ac_need_defaults; then
15773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15775 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15778 # Have a temporary directory for convenience. Make it in the build tree
15779 # simply because there is no reason against having it here, and in addition,
15780 # creating and moving files from /tmp can sometimes cause problems.
15781 # Hook for its removal unless debugging.
15782 # Note that there is a small window in which the directory will not be cleaned:
15783 # after its creation but before its name has been assigned to `$tmp'.
15784 $debug ||
15786 tmp=
15787 trap 'exit_status=$?
15788 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15790 trap 'as_fn_exit 1' 1 2 13 15
15792 # Create a (secure) tmp directory for tmp files.
15795 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15796 test -n "$tmp" && test -d "$tmp"
15797 } ||
15799 tmp=./conf$$-$RANDOM
15800 (umask 077 && mkdir "$tmp")
15801 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15803 # Set up the scripts for CONFIG_FILES section.
15804 # No need to generate them if there are no CONFIG_FILES.
15805 # This happens for instance with `./config.status config.h'.
15806 if test -n "$CONFIG_FILES"; then
15809 ac_cr=`echo X | tr X '\015'`
15810 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15811 # But we know of no other shell where ac_cr would be empty at this
15812 # point, so we can use a bashism as a fallback.
15813 if test "x$ac_cr" = x; then
15814 eval ac_cr=\$\'\\r\'
15816 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15817 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15818 ac_cs_awk_cr='\r'
15819 else
15820 ac_cs_awk_cr=$ac_cr
15823 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15824 _ACEOF
15828 echo "cat >conf$$subs.awk <<_ACEOF" &&
15829 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15830 echo "_ACEOF"
15831 } >conf$$subs.sh ||
15832 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15833 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15834 ac_delim='%!_!# '
15835 for ac_last_try in false false false false false :; do
15836 . ./conf$$subs.sh ||
15837 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15839 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15840 if test $ac_delim_n = $ac_delim_num; then
15841 break
15842 elif $ac_last_try; then
15843 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15844 else
15845 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15847 done
15848 rm -f conf$$subs.sh
15850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15851 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15852 _ACEOF
15853 sed -n '
15855 s/^/S["/; s/!.*/"]=/
15858 s/^[^!]*!//
15859 :repl
15860 t repl
15861 s/'"$ac_delim"'$//
15862 t delim
15865 s/\(.\{148\}\)..*/\1/
15866 t more1
15867 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15870 b repl
15871 :more1
15872 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15875 s/.\{148\}//
15876 t nl
15877 :delim
15879 s/\(.\{148\}\)..*/\1/
15880 t more2
15881 s/["\\]/\\&/g; s/^/"/; s/$/"/
15884 :more2
15885 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15888 s/.\{148\}//
15889 t delim
15890 ' <conf$$subs.awk | sed '
15891 /^[^""]/{
15893 s/\n//
15895 ' >>$CONFIG_STATUS || ac_write_fail=1
15896 rm -f conf$$subs.awk
15897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15898 _ACAWK
15899 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15900 for (key in S) S_is_set[key] = 1
15901 FS = "\a"
15905 line = $ 0
15906 nfields = split(line, field, "@")
15907 substed = 0
15908 len = length(field[1])
15909 for (i = 2; i < nfields; i++) {
15910 key = field[i]
15911 keylen = length(key)
15912 if (S_is_set[key]) {
15913 value = S[key]
15914 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15915 len += length(value) + length(field[++i])
15916 substed = 1
15917 } else
15918 len += 1 + keylen
15921 print line
15924 _ACAWK
15925 _ACEOF
15926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15927 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15928 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15929 else
15931 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15932 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15933 _ACEOF
15935 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15936 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15937 # trailing colons and then remove the whole line if VPATH becomes empty
15938 # (actually we leave an empty line to preserve line numbers).
15939 if test "x$srcdir" = x.; then
15940 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15941 s/:*\$(srcdir):*/:/
15942 s/:*\${srcdir}:*/:/
15943 s/:*@srcdir@:*/:/
15944 s/^\([^=]*=[ ]*\):*/\1/
15945 s/:*$//
15946 s/^[^=]*=[ ]*$//
15950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15951 fi # test -n "$CONFIG_FILES"
15953 # Set up the scripts for CONFIG_HEADERS section.
15954 # No need to generate them if there are no CONFIG_HEADERS.
15955 # This happens for instance with `./config.status Makefile'.
15956 if test -n "$CONFIG_HEADERS"; then
15957 cat >"$tmp/defines.awk" <<\_ACAWK ||
15958 BEGIN {
15959 _ACEOF
15961 # Transform confdefs.h into an awk script `defines.awk', embedded as
15962 # here-document in config.status, that substitutes the proper values into
15963 # config.h.in to produce config.h.
15965 # Create a delimiter string that does not exist in confdefs.h, to ease
15966 # handling of long lines.
15967 ac_delim='%!_!# '
15968 for ac_last_try in false false :; do
15969 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15970 if test -z "$ac_t"; then
15971 break
15972 elif $ac_last_try; then
15973 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15974 else
15975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15977 done
15979 # For the awk script, D is an array of macro values keyed by name,
15980 # likewise P contains macro parameters if any. Preserve backslash
15981 # newline sequences.
15983 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15984 sed -n '
15985 s/.\{148\}/&'"$ac_delim"'/g
15986 t rset
15987 :rset
15988 s/^[ ]*#[ ]*define[ ][ ]*/ /
15989 t def
15991 :def
15992 s/\\$//
15993 t bsnl
15994 s/["\\]/\\&/g
15995 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15996 D["\1"]=" \3"/p
15997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15999 :bsnl
16000 s/["\\]/\\&/g
16001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16002 D["\1"]=" \3\\\\\\n"\\/p
16003 t cont
16004 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16005 t cont
16007 :cont
16009 s/.\{148\}/&'"$ac_delim"'/g
16010 t clear
16011 :clear
16012 s/\\$//
16013 t bsnlc
16014 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16016 :bsnlc
16017 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16018 b cont
16019 ' <confdefs.h | sed '
16020 s/'"$ac_delim"'/"\\\
16021 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16024 for (key in D) D_is_set[key] = 1
16025 FS = "\a"
16027 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16028 line = \$ 0
16029 split(line, arg, " ")
16030 if (arg[1] == "#") {
16031 defundef = arg[2]
16032 mac1 = arg[3]
16033 } else {
16034 defundef = substr(arg[1], 2)
16035 mac1 = arg[2]
16037 split(mac1, mac2, "(") #)
16038 macro = mac2[1]
16039 prefix = substr(line, 1, index(line, defundef) - 1)
16040 if (D_is_set[macro]) {
16041 # Preserve the white space surrounding the "#".
16042 print prefix "define", macro P[macro] D[macro]
16043 next
16044 } else {
16045 # Replace #undef with comments. This is necessary, for example,
16046 # in the case of _POSIX_SOURCE, which is predefined and required
16047 # on some systems where configure will not decide to define it.
16048 if (defundef == "undef") {
16049 print "/*", prefix defundef, macro, "*/"
16050 next
16054 { print }
16055 _ACAWK
16056 _ACEOF
16057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16058 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16059 fi # test -n "$CONFIG_HEADERS"
16062 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16063 shift
16064 for ac_tag
16066 case $ac_tag in
16067 :[FHLC]) ac_mode=$ac_tag; continue;;
16068 esac
16069 case $ac_mode$ac_tag in
16070 :[FHL]*:*);;
16071 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16072 :[FH]-) ac_tag=-:-;;
16073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16074 esac
16075 ac_save_IFS=$IFS
16076 IFS=:
16077 set x $ac_tag
16078 IFS=$ac_save_IFS
16079 shift
16080 ac_file=$1
16081 shift
16083 case $ac_mode in
16084 :L) ac_source=$1;;
16085 :[FH])
16086 ac_file_inputs=
16087 for ac_f
16089 case $ac_f in
16090 -) ac_f="$tmp/stdin";;
16091 *) # Look for the file first in the build tree, then in the source tree
16092 # (if the path is not absolute). The absolute path cannot be DOS-style,
16093 # because $ac_f cannot contain `:'.
16094 test -f "$ac_f" ||
16095 case $ac_f in
16096 [\\/$]*) false;;
16097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16098 esac ||
16099 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16100 esac
16101 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16102 as_fn_append ac_file_inputs " '$ac_f'"
16103 done
16105 # Let's still pretend it is `configure' which instantiates (i.e., don't
16106 # use $as_me), people would be surprised to read:
16107 # /* config.h. Generated by config.status. */
16108 configure_input='Generated from '`
16109 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16110 `' by configure.'
16111 if test x"$ac_file" != x-; then
16112 configure_input="$ac_file. $configure_input"
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16114 $as_echo "$as_me: creating $ac_file" >&6;}
16116 # Neutralize special characters interpreted by sed in replacement strings.
16117 case $configure_input in #(
16118 *\&* | *\|* | *\\* )
16119 ac_sed_conf_input=`$as_echo "$configure_input" |
16120 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16121 *) ac_sed_conf_input=$configure_input;;
16122 esac
16124 case $ac_tag in
16125 *:-:* | *:-) cat >"$tmp/stdin" \
16126 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16127 esac
16129 esac
16131 ac_dir=`$as_dirname -- "$ac_file" ||
16132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16133 X"$ac_file" : 'X\(//\)[^/]' \| \
16134 X"$ac_file" : 'X\(//\)$' \| \
16135 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16136 $as_echo X"$ac_file" |
16137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16138 s//\1/
16141 /^X\(\/\/\)[^/].*/{
16142 s//\1/
16145 /^X\(\/\/\)$/{
16146 s//\1/
16149 /^X\(\/\).*/{
16150 s//\1/
16153 s/.*/./; q'`
16154 as_dir="$ac_dir"; as_fn_mkdir_p
16155 ac_builddir=.
16157 case "$ac_dir" in
16158 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16160 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16161 # A ".." for each directory in $ac_dir_suffix.
16162 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16163 case $ac_top_builddir_sub in
16164 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16165 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16166 esac ;;
16167 esac
16168 ac_abs_top_builddir=$ac_pwd
16169 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16170 # for backward compatibility:
16171 ac_top_builddir=$ac_top_build_prefix
16173 case $srcdir in
16174 .) # We are building in place.
16175 ac_srcdir=.
16176 ac_top_srcdir=$ac_top_builddir_sub
16177 ac_abs_top_srcdir=$ac_pwd ;;
16178 [\\/]* | ?:[\\/]* ) # Absolute name.
16179 ac_srcdir=$srcdir$ac_dir_suffix;
16180 ac_top_srcdir=$srcdir
16181 ac_abs_top_srcdir=$srcdir ;;
16182 *) # Relative name.
16183 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16184 ac_top_srcdir=$ac_top_build_prefix$srcdir
16185 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16186 esac
16187 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16190 case $ac_mode in
16193 # CONFIG_FILE
16196 case $INSTALL in
16197 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16198 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16199 esac
16200 ac_MKDIR_P=$MKDIR_P
16201 case $MKDIR_P in
16202 [\\/$]* | ?:[\\/]* ) ;;
16203 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16204 esac
16205 _ACEOF
16207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16208 # If the template does not know about datarootdir, expand it.
16209 # FIXME: This hack should be removed a few years after 2.60.
16210 ac_datarootdir_hack=; ac_datarootdir_seen=
16211 ac_sed_dataroot='
16212 /datarootdir/ {
16216 /@datadir@/p
16217 /@docdir@/p
16218 /@infodir@/p
16219 /@localedir@/p
16220 /@mandir@/p'
16221 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16222 *datarootdir*) ac_datarootdir_seen=yes;;
16223 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16225 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16226 _ACEOF
16227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16228 ac_datarootdir_hack='
16229 s&@datadir@&$datadir&g
16230 s&@docdir@&$docdir&g
16231 s&@infodir@&$infodir&g
16232 s&@localedir@&$localedir&g
16233 s&@mandir@&$mandir&g
16234 s&\\\${datarootdir}&$datarootdir&g' ;;
16235 esac
16236 _ACEOF
16238 # Neutralize VPATH when `$srcdir' = `.'.
16239 # Shell code in configure.ac might set extrasub.
16240 # FIXME: do we really want to maintain this feature?
16241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16242 ac_sed_extra="$ac_vpsub
16243 $extrasub
16244 _ACEOF
16245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16248 s|@configure_input@|$ac_sed_conf_input|;t t
16249 s&@top_builddir@&$ac_top_builddir_sub&;t t
16250 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16251 s&@srcdir@&$ac_srcdir&;t t
16252 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16253 s&@top_srcdir@&$ac_top_srcdir&;t t
16254 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16255 s&@builddir@&$ac_builddir&;t t
16256 s&@abs_builddir@&$ac_abs_builddir&;t t
16257 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16258 s&@INSTALL@&$ac_INSTALL&;t t
16259 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16260 $ac_datarootdir_hack
16262 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16263 || as_fn_error "could not create $ac_file" "$LINENO" 5
16265 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16266 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16267 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16269 which seems to be undefined. Please make sure it is defined." >&5
16270 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16271 which seems to be undefined. Please make sure it is defined." >&2;}
16273 rm -f "$tmp/stdin"
16274 case $ac_file in
16275 -) cat "$tmp/out" && rm -f "$tmp/out";;
16276 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16277 esac \
16278 || as_fn_error "could not create $ac_file" "$LINENO" 5
16282 # CONFIG_HEADER
16284 if test x"$ac_file" != x-; then
16286 $as_echo "/* $configure_input */" \
16287 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16288 } >"$tmp/config.h" \
16289 || as_fn_error "could not create $ac_file" "$LINENO" 5
16290 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16292 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16293 else
16294 rm -f "$ac_file"
16295 mv "$tmp/config.h" "$ac_file" \
16296 || as_fn_error "could not create $ac_file" "$LINENO" 5
16298 else
16299 $as_echo "/* $configure_input */" \
16300 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16301 || as_fn_error "could not create -" "$LINENO" 5
16303 # Compute "$ac_file"'s index in $config_headers.
16304 _am_arg="$ac_file"
16305 _am_stamp_count=1
16306 for _am_header in $config_headers :; do
16307 case $_am_header in
16308 $_am_arg | $_am_arg:* )
16309 break ;;
16311 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16312 esac
16313 done
16314 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16315 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16316 X"$_am_arg" : 'X\(//\)[^/]' \| \
16317 X"$_am_arg" : 'X\(//\)$' \| \
16318 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16319 $as_echo X"$_am_arg" |
16320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16321 s//\1/
16324 /^X\(\/\/\)[^/].*/{
16325 s//\1/
16328 /^X\(\/\/\)$/{
16329 s//\1/
16332 /^X\(\/\).*/{
16333 s//\1/
16336 s/.*/./; q'`/stamp-h$_am_stamp_count
16339 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16340 $as_echo "$as_me: executing $ac_file commands" >&6;}
16342 esac
16345 case $ac_file$ac_mode in
16346 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16347 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16348 # are listed without --file. Let's play safe and only enable the eval
16349 # if we detect the quoting.
16350 case $CONFIG_FILES in
16351 *\'*) eval set x "$CONFIG_FILES" ;;
16352 *) set x $CONFIG_FILES ;;
16353 esac
16354 shift
16355 for mf
16357 # Strip MF so we end up with the name of the file.
16358 mf=`echo "$mf" | sed -e 's/:.*$//'`
16359 # Check whether this is an Automake generated Makefile or not.
16360 # We used to match only the files named `Makefile.in', but
16361 # some people rename them; so instead we look at the file content.
16362 # Grep'ing the first line is not enough: some people post-process
16363 # each Makefile.in and add a new line on top of each file to say so.
16364 # Grep'ing the whole file is not good either: AIX grep has a line
16365 # limit of 2048, but all sed's we know have understand at least 4000.
16366 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16367 dirpart=`$as_dirname -- "$mf" ||
16368 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16369 X"$mf" : 'X\(//\)[^/]' \| \
16370 X"$mf" : 'X\(//\)$' \| \
16371 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16372 $as_echo X"$mf" |
16373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16374 s//\1/
16377 /^X\(\/\/\)[^/].*/{
16378 s//\1/
16381 /^X\(\/\/\)$/{
16382 s//\1/
16385 /^X\(\/\).*/{
16386 s//\1/
16389 s/.*/./; q'`
16390 else
16391 continue
16393 # Extract the definition of DEPDIR, am__include, and am__quote
16394 # from the Makefile without running `make'.
16395 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16396 test -z "$DEPDIR" && continue
16397 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16398 test -z "am__include" && continue
16399 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16400 # When using ansi2knr, U may be empty or an underscore; expand it
16401 U=`sed -n 's/^U = //p' < "$mf"`
16402 # Find all dependency output files, they are included files with
16403 # $(DEPDIR) in their names. We invoke sed twice because it is the
16404 # simplest approach to changing $(DEPDIR) to its actual value in the
16405 # expansion.
16406 for file in `sed -n "
16407 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16408 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16409 # Make sure the directory exists.
16410 test -f "$dirpart/$file" && continue
16411 fdir=`$as_dirname -- "$file" ||
16412 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16413 X"$file" : 'X\(//\)[^/]' \| \
16414 X"$file" : 'X\(//\)$' \| \
16415 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16416 $as_echo X"$file" |
16417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16418 s//\1/
16421 /^X\(\/\/\)[^/].*/{
16422 s//\1/
16425 /^X\(\/\/\)$/{
16426 s//\1/
16429 /^X\(\/\).*/{
16430 s//\1/
16433 s/.*/./; q'`
16434 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16435 # echo "creating $dirpart/$file"
16436 echo '# dummy' > "$dirpart/$file"
16437 done
16438 done
16441 "default-1":C)
16442 for ac_file in $CONFIG_FILES; do
16443 # Support "outfile[:infile[:infile...]]"
16444 case "$ac_file" in
16445 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16446 esac
16447 # PO directories have a Makefile.in generated from Makefile.in.in.
16448 case "$ac_file" in */Makefile.in)
16449 # Adjust a relative srcdir.
16450 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16451 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16452 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16453 # In autoconf-2.13 it is called $ac_given_srcdir.
16454 # In autoconf-2.50 it is called $srcdir.
16455 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16456 case "$ac_given_srcdir" in
16457 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16458 /*) top_srcdir="$ac_given_srcdir" ;;
16459 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16460 esac
16461 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16462 rm -f "$ac_dir/POTFILES"
16463 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16464 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16465 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16466 # on $ac_dir but don't depend on user-specified configuration
16467 # parameters.
16468 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16469 # The LINGUAS file contains the set of available languages.
16470 if test -n "$ALL_LINGUAS"; then
16471 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16473 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16474 # Hide the ALL_LINGUAS assigment from automake.
16475 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16477 case "$ac_given_srcdir" in
16478 .) srcdirpre= ;;
16479 *) srcdirpre='$(srcdir)/' ;;
16480 esac
16481 POFILES=
16482 GMOFILES=
16483 UPDATEPOFILES=
16484 DUMMYPOFILES=
16485 for lang in $ALL_LINGUAS; do
16486 POFILES="$POFILES $srcdirpre$lang.po"
16487 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16488 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16489 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16490 done
16491 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16492 # environment variable.
16493 INST_LINGUAS=
16494 if test -n "$ALL_LINGUAS"; then
16495 for presentlang in $ALL_LINGUAS; do
16496 useit=no
16497 if test "%UNSET%" != "$LINGUAS"; then
16498 desiredlanguages="$LINGUAS"
16499 else
16500 desiredlanguages="$ALL_LINGUAS"
16502 for desiredlang in $desiredlanguages; do
16503 # Use the presentlang catalog if desiredlang is
16504 # a. equal to presentlang, or
16505 # b. a variant of presentlang (because in this case,
16506 # presentlang can be used as a fallback for messages
16507 # which are not translated in the desiredlang catalog).
16508 case "$desiredlang" in
16509 "$presentlang"*) useit=yes;;
16510 esac
16511 done
16512 if test $useit = yes; then
16513 INST_LINGUAS="$INST_LINGUAS $presentlang"
16515 done
16517 CATALOGS=
16518 if test -n "$INST_LINGUAS"; then
16519 for lang in $INST_LINGUAS; do
16520 CATALOGS="$CATALOGS $lang.gmo"
16521 done
16523 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16524 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"
16525 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16526 if test -f "$f"; then
16527 case "$f" in
16528 *.orig | *.bak | *~) ;;
16529 *) cat "$f" >> "$ac_dir/Makefile" ;;
16530 esac
16532 done
16535 esac
16536 done ;;
16537 "denoiser":C) if test $denoiserlevel -gt 0; then
16538 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
16539 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" \
16540 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
16541 for i in `find . -name 'Makefile' -print`; do
16542 if test -n "`head -n 1 $i | grep '^#'`"; then
16543 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
16545 done
16546 fi ;;
16548 esac
16549 done # for ac_tag
16552 as_fn_exit 0
16553 _ACEOF
16554 ac_clean_files=$ac_clean_files_save
16556 test $ac_write_fail = 0 ||
16557 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16560 # configure is writing to config.log, and then calls config.status.
16561 # config.status does its own redirection, appending to config.log.
16562 # Unfortunately, on DOS this fails, as config.log is still kept open
16563 # by configure, so config.status won't be able to write to it; its
16564 # output is simply discarded. So we exec the FD to /dev/null,
16565 # effectively closing config.log, so it can be properly (re)opened and
16566 # appended to by config.status. When coming back to configure, we
16567 # need to make the FD available again.
16568 if test "$no_create" != yes; then
16569 ac_cs_success=:
16570 ac_config_status_args=
16571 test "$silent" = yes &&
16572 ac_config_status_args="$ac_config_status_args --quiet"
16573 exec 5>/dev/null
16574 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16575 exec 5>>config.log
16576 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16577 # would make configure fail if this is the last instruction.
16578 $ac_cs_success || as_fn_exit $?
16580 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16582 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16586 if test -n "$svndate"; then :
16587 SVN_REVISION=" ($svndate)"
16588 else
16589 SVN_REVISION=
16592 echo
16593 echo
16594 echo " Configure script has finished system check."
16595 echo
16596 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
16597 echo
16598 echo " aMule enabled options:"
16599 echo
16600 echo " **** aMule Core ****"
16601 echo " Prefix where aMule should be installed? ${prefix:-none}"
16602 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
16603 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
16604 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
16605 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
16606 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
16607 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
16608 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
16609 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
16610 echo " Should aMule remote gui be built? (EXPERIMENTAL) ${enable_amule_gui:-no}"
16611 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
16613 echo
16614 echo " **** aMule TextClient ****"
16615 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
16616 echo
16617 echo " **** aMule WebServer ****"
16618 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
16619 echo
16620 echo " **** aMule ED2K Links Handler ****"
16621 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
16622 echo
16623 echo " **** aMuleLinkCreator ****"
16624 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
16625 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
16626 echo
16627 echo " **** aMule Statistics ****"
16628 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
16629 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
16630 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
16631 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
16633 echo
16634 echo " **** General Libraries and Tools ****"
16635 echo " Should ccache support be enabled? ${enable_ccache:-no}"
16636 echo " Libraries aMule will use to build:"
16637 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 :
16639 wxinfo="$WX_PORT"
16640 if test $WX_DEBUG -eq 1; then :
16641 wxinfo="$wxinfo,debug"
16643 if test $WX_SHARED -eq 1; then :
16644 wxinfo="$wxinfo,shared"
16645 else
16646 wxinfo="$wxinfo,static"
16648 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
16651 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
16652 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
16654 if test ${enable_upnp:-yes} = yes; then :
16656 if test -n "$with_libupnp_prefix"; then :
16657 libupnp_place=" (in $with_libupnp_prefix)"
16659 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
16662 if test ${enable_nls:-yes} = yes; then
16663 if test x$USE_NLS = xno; then :
16664 libintl_found="Not detected"
16665 else
16666 if test x$USE_INCLUDED_LIBINTL = xyes; then :
16667 libintl_found="included"
16668 else
16669 libintl_found="system"
16672 echo " libintl $libintl_found"
16674 if test ${enable_geoip:-no} = yes; then :
16675 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
16676 geoip_style=system
16677 else
16678 geoip_style=user
16680 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
16681 echo " libGeoIP ${geoip_style}"
16684 if test ${enable_webserver:-no} = yes; then :
16685 echo " libpng ${LIBPNG_VERSION:-Not detected}"
16687 if test ${enable_cas:-no} = yes; then :
16688 echo " libgd ${GDLIB_VERSION:-Not detected}"
16690 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 :
16691 echo " zlib ${ZLIB_VERSION:-Not detected}"
16693 if test ${enable_plasmamule:-no} = yes; then :
16694 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
16695 echo " qt-core-libs ${QT_CORE_LIBS}"
16696 echo " qt-gui-libs ${QT_GUI_LIBS}"
16697 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
16698 echo " kde-headers ${KDE_HEADER_DIR}"
16699 echo " kde-services-path ${KDE_SERVICE_PATH}"
16700 echo " kde-module-path ${KDE_MODULE_PATH}"
16701 echo " kde-icon-path ${KDE_ICON_PATH}"
16702 echo " kde-mime-path ${KDE_MIME_PATH}"
16703 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
16704 echo " **** You have to run kbuildsycoca after installing to let plasma know the changes ****"
16705 echo " **** You have to run \"update-mime-database ${KDE_MIME_PATH}\" to register the mimetype ****"
16707 if test ${_mule_has_warnings:-no} = yes; then
16708 echo ""
16709 echo ""
16710 echo " *** Warnings during configuration ***"
16712 if test ${_mule_warning_0:-no} = yes; then
16713 cat <<_MULEEOT
16715 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
16716 Please check that gdlib-config is in your default path, check out
16717 LD_LIBRARY_PATH or equivalent variable.
16718 Or this might also be that your gdlib-config has other name.
16719 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
16720 /usr/bin/gdlib-config with a valid path to your gdlib-config).
16721 If you use compiled packages check if you have devel pack installed.
16722 To download the latest version check http://www.boutell.com/gd for sources.
16723 _MULEEOT
16725 if test ${_mule_warning_1:-no} = yes; then
16726 cat <<_MULEEOT
16728 * libpng >= 1.2.0 not found.
16729 amuleweb will be compiled but file download progress bar images will NOT be
16730 generated.
16731 _MULEEOT
16733 if test ${_mule_warning_2:-no} = yes; then
16734 cat <<_MULEEOT
16736 * File::Copy perl module is required by the mldonkey_importer script.
16737 If you want to use this script please install File::Copy from CPAN.
16738 _MULEEOT
16740 if test ${_mule_warning_3:-no} = yes; then
16741 cat <<_MULEEOT
16743 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
16744 _MULEEOT
16746 if test ${_mule_warning_4:-no} = yes; then
16747 cat <<_MULEEOT
16749 * GeoIP support has been disabled because the GeoIP libraries were not found
16750 _MULEEOT
16752 if test ${_mule_warning_5:-no} = yes; then
16753 cat <<_MULEEOT
16755 * GeoIP support has been disabled because the GeoIP header files were not
16756 found
16757 _MULEEOT
16759 if test ${_mule_warning_6:-no} = yes; then
16760 cat <<_MULEEOT
16762 * UPnP code has been disabled because ${libupnp_error}.
16763 _MULEEOT
16765 if test ${_mule_warning_7:-no} = yes; then
16766 cat <<_MULEEOT
16768 * Cross-compilation detected, so exception handling cannot be tested.
16769 Note that broken exception handling in your compiler may lead to unexpected
16770 crashes.
16771 _MULEEOT
16773 if test ${_mule_warning_8:-no} = yes; then
16774 cat <<_MULEEOT
16776 * configure cannot check whether malloc() and realloc() are GNU libc
16777 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
16778 configure with the --without-gnu-malloc switch.
16779 _MULEEOT
16781 if test ${_mule_warning_9:-no} = yes; then
16782 cat <<_MULEEOT
16784 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
16785 support.
16786 _MULEEOT
16788 if test ${_mule_warning_10:-no} = yes; then
16789 cat <<_MULEEOT
16791 * bfd.h not found or unusable, please install binutils development package if
16792 you are a developer or want to help testing aMule
16793 _MULEEOT