- Don't check if custom language packs are available (it asserts on some systems)
[amule.git] / configure
blobcfed73796d5e07d7d48893380bf744c09a833be2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for aMule SVN.
5 # Report bugs to <admin@amule.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and admin@amule.org
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='aMule'
554 PACKAGE_TARNAME='amule'
555 PACKAGE_VERSION='SVN'
556 PACKAGE_STRING='aMule SVN'
557 PACKAGE_BUGREPORT='admin@amule.org'
558 PACKAGE_URL=''
560 ac_unique_file="src/amule.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_header_list=
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 READLINE_LIBS
602 COMPILE_LIB_EC_FALSE
603 COMPILE_LIB_EC_TRUE
604 COMPILE_LIB_COMMON_FALSE
605 COMPILE_LIB_COMMON_TRUE
606 PLASMAMULE_FALSE
607 PLASMAMULE_TRUE
608 INSTALL_SKINS_FALSE
609 INSTALL_SKINS_TRUE
610 GENERATE_FLEX_HEADER_FALSE
611 GENERATE_FLEX_HEADER_TRUE
612 COMPILE_NLS_FALSE
613 COMPILE_NLS_TRUE
614 NEED_CORESERVICES_FALSE
615 NEED_CORESERVICES_TRUE
616 NEED_RC_FALSE
617 NEED_RC_TRUE
618 SYS_WIN32_FALSE
619 SYS_WIN32_TRUE
620 DEBUGFLAG
621 USER_INSTALL_HOOK
622 UPDATE_MIME_DATABASE
623 KBUILDSYCOCA
624 KDE_MIME_PATH
625 KDE_ICON_PATH
626 KDE_MODULE_PATH
627 KDE_SERVICE_PATH
628 KDE_APPLNK_PATH
629 KDE_HEADER_DIR
630 KDE4_CONFIG
631 QT_GUI_LIBS
632 QT_GUI_CXXFLAGS
633 QT_CORE_LIBS
634 QT_CORE_CXXFLAGS
635 QT_DBUS_LDFLAGS
636 QT_MOC
637 SVNDATE
638 BFD_LIBS
639 BFD_CPPFLAGS
640 INCINTL
641 MONOLITHIC_MANPAGES
642 ALCC_MANPAGES
643 ALC_MANPAGES
644 ED2K_MANPAGES
645 WXCAS_MANPAGES
646 CAS_MANPAGES
647 AMULE_GUI_MANPAGES
648 WEBSERVER_MANPAGES
649 AMULECMD_MANPAGES
650 AMULE_DAEMON_MANPAGES
651 POSUB
652 LTLIBINTL
653 LIBINTL
654 INTLLIBS
655 INTL_LIBTOOL_SUFFIX_PREFIX
656 GENCAT
657 INSTOBJEXT
658 DATADIRNAME
659 INTLOBJS
660 CATOBJEXT
661 USE_INCLUDED_LIBINTL
662 BUILD_INCLUDED_LIBINTL
663 USE_NLS
664 INTLBISON
665 LTLIBICONV
666 LIBICONV
667 GLIBC21
668 MSGMERGE
669 XGETTEXT
670 GMSGFMT
671 MSGFMT
672 MKINSTALLDIRS
673 POW_LIB
674 LIBOBJS
675 ALLOCA
676 CRYPTOPP_LIBS
677 CRYPTOPP_LDFLAGS
678 CRYPTOPP_CPPFLAGS
679 LIBUPNP_LIBS
680 LIBUPNP_LDFLAGS
681 LIBUPNP_CFLAGS
682 LIBUPNP_CPPFLAGS
683 PKG_CONFIG
684 RCFLAGS
686 WXBASE_CPPFLAGS
687 WXBASE_LIBS
688 WX_PORT
689 WX_SHARED
690 WX_DEBUG
691 WX_UNICODE
692 WX_VERSION_MINOR
693 WX_VERSION_MAJOR
694 WX_RESCOMP
695 WX_VERSION_FULL
696 WX_LIBS
697 WX_CXXFLAGS_ONLY
698 WX_CFLAGS_ONLY
699 WX_CXXFLAGS
700 WX_CFLAGS
701 WX_CPPFLAGS
702 WX_CONFIG_PATH
703 AMULEWEB_DEFS
704 LIBPNG_LIBS
705 LIBPNG_LDFLAGS
706 LIBPNG_CFLAGS
707 LIBPNG_CONFIG_PATH
708 CAS_DEFS
709 GDLIB_LIBS
710 GDLIB_LDFLAGS
711 GDLIB_CFLAGS
712 GDLIB_CONFIG_PATH
713 ZLIB_LIBS
714 ZLIB_LDFLAGS
715 ZLIB_CPPFLAGS
716 FILEVIEW_FALSE
717 FILEVIEW_TRUE
718 XAS_FALSE
719 XAS_TRUE
720 ALCC_FALSE
721 ALCC_TRUE
722 ALC_FALSE
723 ALC_TRUE
724 ED2K_FALSE
725 ED2K_TRUE
726 WXCAS_FALSE
727 WXCAS_TRUE
728 CAS_FALSE
729 CAS_TRUE
730 AMULE_GUI_FALSE
731 AMULE_GUI_TRUE
732 WEB_FALSE
733 WEB_TRUE
734 COMPILE_CMD_FALSE
735 COMPILE_CMD_TRUE
736 AMULE_DAEMON_FALSE
737 AMULE_DAEMON_TRUE
738 MONOLITHIC_FALSE
739 MONOLITHIC_TRUE
742 YFLAGS
743 YACC
744 RANLIB
745 LEXLIB
746 LEX_OUTPUT_ROOT
748 EGREP
749 GREP
750 BUILD_LDFLAGS
751 BUILD_CFLAGS
752 BUILD_CPPFLAGS
753 BUILD_EXEEXT
754 ac_ct_BUILD_CC
755 BUILD_CC
757 am__fastdepCC_FALSE
758 am__fastdepCC_TRUE
759 CCDEPMODE
760 ac_ct_CC
761 CFLAGS
763 CXXCPP
764 am__fastdepCXX_FALSE
765 am__fastdepCXX_TRUE
766 CXXDEPMODE
767 AMDEPBACKSLASH
768 AMDEP_FALSE
769 AMDEP_TRUE
770 am__quote
771 am__include
772 DEPDIR
773 OBJEXT
774 EXEEXT
775 ac_ct_CXX
776 CPPFLAGS
777 LDFLAGS
778 CXXFLAGS
780 MULERCFLAGS
781 MULELDFLAGS
782 MULECXXFLAGS
783 MULECFLAGS
784 MULECPPFLAGS
785 RESOLV_LIB
786 host_os
787 host_vendor
788 host_cpu
789 host
790 build_os
791 build_vendor
792 build_cpu
793 build
794 MAINT
795 MAINTAINER_MODE_FALSE
796 MAINTAINER_MODE_TRUE
797 AM_BACKSLASH
798 AM_DEFAULT_VERBOSITY
799 am__untar
800 am__tar
801 AMTAR
802 am__leading_dot
803 SET_MAKE
805 mkdir_p
806 MKDIR_P
807 INSTALL_STRIP_PROGRAM
808 STRIP
809 install_sh
810 MAKEINFO
811 AUTOHEADER
812 AUTOMAKE
813 AUTOCONF
814 ACLOCAL
815 VERSION
816 PACKAGE
817 CYGPATH_W
818 am__isrc
819 INSTALL_DATA
820 INSTALL_SCRIPT
821 INSTALL_PROGRAM
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL
860 GEOIP_LIBS
861 GEOIP_LDFLAGS
862 GEOIP_CPPFLAGS'
863 ac_subst_files=''
864 ac_user_opts='
865 enable_option_checking
866 enable_silent_rules
867 enable_maintainer_mode
868 enable_dependency_tracking
869 enable_monolithic
870 enable_amule_daemon
871 enable_amulecmd
872 enable_webserver
873 enable_amule_gui
874 enable_cas
875 enable_wxcas
876 enable_ed2k
877 enable_alc
878 enable_alcc
879 enable_xas
880 enable_fileview
881 enable_plasmamule
882 enable_static
883 with_kde4_config
884 enable_kde_in_home
885 with_moc
886 with_gnu_malloc
887 with_zlib
888 with_gdlib_prefix
889 with_gdlib_config
890 with_libpng_prefix
891 with_libpng_config
892 enable_geoip
893 with_geoip_headers
894 with_geoip_lib
895 with_geoip_static
896 with_wxdir
897 with_wx_config
898 with_wx_prefix
899 with_wx_exec_prefix
900 with_toolkit
901 with_wxshared
902 with_wxdebug
903 with_wxversion
904 enable_upnp
905 with_libupnp_prefix
906 with_crypto_prefix
907 enable_mmap
908 with_language
909 with_gnu_ld
910 enable_rpath
911 with_libiconv_prefix
912 enable_nls
913 with_included_gettext
914 with_libintl_prefix
915 enable_debug
916 enable_profile
917 enable_optimize
918 with_denoise_level
919 enable_ccache
920 with_ccache_prefix
922 ac_precious_vars='build_alias
923 host_alias
924 target_alias
926 CXXFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
931 CXXCPP
933 CFLAGS
935 YACC
936 YFLAGS
938 RCFLAGS
939 PKG_CONFIG'
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
990 ac_prev=
991 ac_dashdash=
992 for ac_option
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
997 ac_prev=
998 continue
1001 case $ac_option in
1002 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003 *) ac_optarg=yes ;;
1004 esac
1006 # Accept the important Cygnus configure options, so we can diagnose typos.
1008 case $ac_dashdash$ac_option in
1010 ac_dashdash=yes ;;
1012 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 ac_prev=bindir ;;
1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015 bindir=$ac_optarg ;;
1017 -build | --build | --buil | --bui | --bu)
1018 ac_prev=build_alias ;;
1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020 build_alias=$ac_optarg ;;
1022 -cache-file | --cache-file | --cache-fil | --cache-fi \
1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024 ac_prev=cache_file ;;
1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027 cache_file=$ac_optarg ;;
1029 --config-cache | -C)
1030 cache_file=config.cache ;;
1032 -datadir | --datadir | --datadi | --datad)
1033 ac_prev=datadir ;;
1034 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035 datadir=$ac_optarg ;;
1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038 | --dataroo | --dataro | --datar)
1039 ac_prev=datarootdir ;;
1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042 datarootdir=$ac_optarg ;;
1044 -disable-* | --disable-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid feature name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1053 "enable_$ac_useropt"
1054 "*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=no ;;
1060 -docdir | --docdir | --docdi | --doc | --do)
1061 ac_prev=docdir ;;
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 ac_prev=dvidir ;;
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
1070 -enable-* | --enable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid feature name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=\$ac_optarg ;;
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) as_fn_error "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information."
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1334 esac
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 esac
1347 done
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error "missing argument to $ac_option"
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395 If a cross compiler is detected then cross compile mode will be used." >&2
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404 test "$silent" = yes && exec 6>/dev/null
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error "working directory cannot be determined"
1411 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error "pwd does not report name of working directory"
1415 # Find the source files, if location was not specified.
1416 if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424 $as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1433 /^X\(\/\/\)$/{
1434 s//\1/
1437 /^X\(\/\).*/{
1438 s//\1/
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1446 else
1447 ac_srcdir_defaulted=no
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 pwd)`
1457 # When building in place, set srcdir=.
1458 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1461 # Remove unnecessary trailing slashes from srcdir.
1462 # Double slashes in file names in object file debugging info
1463 # mess up M-x gdb in Emacs.
1464 case $srcdir in
1465 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 esac
1467 for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472 done
1475 # Report the --help message.
1477 if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481 \`configure' configures aMule SVN to adapt to many kinds of systems.
1483 Usage: $0 [OPTION]... [VAR=VALUE]...
1485 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486 VAR=VALUE. See below for descriptions of some of the useful variables.
1488 Defaults for the options are specified in brackets.
1490 Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501 Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 [$ac_default_prefix]
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 [PREFIX]
1507 By default, \`make install' will install all the files in
1508 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510 for instance \`--prefix=\$HOME'.
1512 For better control, use the options below.
1514 Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root [DATAROOTDIR/doc/amule]
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1534 _ACEOF
1536 cat <<\_ACEOF
1538 Program names:
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543 System types:
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546 _ACEOF
1549 if test -n "$ac_init_help"; then
1550 case $ac_init_help in
1551 short | recursive ) echo "Configuration of aMule SVN:";;
1552 esac
1553 cat <<\_ACEOF
1555 Optional Features:
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-silent-rules less verbose build output (undo: `make V=1')
1560 --disable-silent-rules verbose build output (undo: `make V=0')
1561 --enable-maintainer-mode enable make rules and dependencies not useful
1562 (and sometimes confusing) to the casual installer
1563 --disable-dependency-tracking speeds up one-time build
1564 --enable-dependency-tracking do not reject slow dependency extractors
1565 --disable-monolithic disable building of the monolithic aMule app
1566 --enable-amule-daemon compile aMule daemon version
1567 --enable-amulecmd compile aMule command line client
1568 --enable-webserver compile aMule WebServer
1569 --enable-amule-gui compile aMule remote GUI
1570 --enable-cas compile C aMule Statistics
1571 --enable-wxcas compile aMule GUI Statistics
1572 --disable-ed2k don't compile aMule ed2k links handler
1573 --enable-alc compile aMuleLinkCreator GUI version
1574 --enable-alcc compile aMuleLinkCreator for console
1575 --enable-xas install xas XChat2 plugin
1576 --enable-fileview compile aMule file viewer for console (EXPERIMENTAL)
1577 --enable-plasmamule compile aMule plasma applet and engine
1578 --enable-static produce a statically linked executable
1579 --enable-kde-in-home install KDE related stuff in your home dir
1580 --enable-geoip compile with GeoIP IP2Country library
1581 --disable-upnp do not compile UPnP code
1582 --enable-mmap enable using mapped memory if supported
1583 --disable-rpath do not hardcode runtime library paths
1584 --disable-nls do not use Native Language Support
1585 --disable-debug disable additional debugging output
1586 --enable-profile enable code profiling
1587 --enable-optimize enable code optimization
1588 --enable-ccache enable ccache support for fast recompilation
1590 Optional Packages:
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-kde4-config=PATH kde4-config script to use
1594 --with-moc=PATH Search in PATH for Qt's meta object compiler
1595 --without-gnu-malloc Don't assume that we use GNU libc compatible
1596 malloc/realloc when cross-compiling
1597 --with-zlib=PREFIX use zlib in PREFIX
1598 --with-gdlib-prefix=PREFIX
1599 prefix where gdlib is installed (optional)
1600 --with-gdlib-config=CONFIG
1601 gdlib-config script to use (optional)
1602 --with-libpng-prefix=PREFIX
1603 prefix where libpng is installed (optional)
1604 --with-libpng-config=CONFIG
1605 libpng-config script to use (optional)
1606 --with-geoip-headers=DIR
1607 GeoIP include files location
1608 --with-geoip-lib=DIR GeoIP library location
1609 --with-geoip-static Explicitly link GeoIP statically (default=no)
1610 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
1611 --with-wx-config=CONFIG wx-config script to use (optional)
1612 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
1613 --with-wx-exec-prefix=PREFIX
1614 Exec prefix where wxWidgets is installed (optional)
1615 --with-toolkit Build against a specific wxWidgets toolkit (default
1616 is auto)
1617 --with-wxshared Force building against a shared build of wxWidgets,
1618 even if --disable-shared is given (default is auto)
1619 --with-wxdebug Force building against a debug build of wxWidgets,
1620 even if --disable-debug is given (default is auto)
1621 --with-wxversion Build against a specific version of wxWidgets
1622 (default is auto)
1623 --with-libupnp-prefix=PREFIX
1624 UPnP library location
1625 --with-crypto-prefix=PREFIX
1626 prefix where crypto++ is installed
1627 --with-language=<langs> Specify a comma-separated list of languages you want
1628 to have installed. See po/LINGUAS for available
1629 languages
1630 --with-gnu-ld assume the C compiler uses GNU ld default=no
1631 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1632 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1633 --with-included-gettext use the GNU gettext library included here
1634 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
1635 --without-libintl-prefix don't search for libintl in includedir and libdir
1636 --with-denoise-level=<level>
1637 Specifies denoising level (0-4):
1638 0 - Do nothing
1639 4 - Suppress all normal output
1640 (for more information see
1641 src/utils/scripts/denoiser.rules)
1643 --with-ccache-prefix=PREFIX
1644 prefix where ccache is installed
1646 Some influential environment variables:
1647 CXX C++ compiler command
1648 CXXFLAGS C++ compiler flags
1649 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1650 nonstandard directory <lib dir>
1651 LIBS libraries to pass to the linker, e.g. -l<library>
1652 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1653 you have headers in a nonstandard directory <include dir>
1654 CXXCPP C++ preprocessor
1655 CC C compiler command
1656 CFLAGS C compiler flags
1657 CPP C preprocessor
1658 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1659 the first program found out of: `bison -y', `byacc', `yacc'.
1660 YFLAGS The list of arguments that will be passed by default to $YACC.
1661 This script will default YFLAGS to the empty string to avoid a
1662 default value of `-d' given by some make applications.
1663 RC Resource Compiler
1664 RCFLAGS Resource Compiler Flags
1665 PKG_CONFIG path to pkg-config utility
1667 Use these variables to override the choices made by `configure' or to help
1668 it to find libraries and programs with nonstandard names/locations.
1670 Report bugs to <admin@amule.org>.
1671 _ACEOF
1672 ac_status=$?
1675 if test "$ac_init_help" = "recursive"; then
1676 # If there are subdirs, report their specific --help.
1677 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1678 test -d "$ac_dir" ||
1679 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1680 continue
1681 ac_builddir=.
1683 case "$ac_dir" in
1684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1687 # A ".." for each directory in $ac_dir_suffix.
1688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1689 case $ac_top_builddir_sub in
1690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692 esac ;;
1693 esac
1694 ac_abs_top_builddir=$ac_pwd
1695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1696 # for backward compatibility:
1697 ac_top_builddir=$ac_top_build_prefix
1699 case $srcdir in
1700 .) # We are building in place.
1701 ac_srcdir=.
1702 ac_top_srcdir=$ac_top_builddir_sub
1703 ac_abs_top_srcdir=$ac_pwd ;;
1704 [\\/]* | ?:[\\/]* ) # Absolute name.
1705 ac_srcdir=$srcdir$ac_dir_suffix;
1706 ac_top_srcdir=$srcdir
1707 ac_abs_top_srcdir=$srcdir ;;
1708 *) # Relative name.
1709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1710 ac_top_srcdir=$ac_top_build_prefix$srcdir
1711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1712 esac
1713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1715 cd "$ac_dir" || { ac_status=$?; continue; }
1716 # Check for guested configure.
1717 if test -f "$ac_srcdir/configure.gnu"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720 elif test -f "$ac_srcdir/configure"; then
1721 echo &&
1722 $SHELL "$ac_srcdir/configure" --help=recursive
1723 else
1724 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1725 fi || ac_status=$?
1726 cd "$ac_pwd" || { ac_status=$?; break; }
1727 done
1730 test -n "$ac_init_help" && exit $ac_status
1731 if $ac_init_version; then
1732 cat <<\_ACEOF
1733 aMule configure SVN
1734 generated by GNU Autoconf 2.65
1736 Copyright (C) 2009 Free Software Foundation, Inc.
1737 This configure script is free software; the Free Software Foundation
1738 gives unlimited permission to copy, distribute and modify it.
1739 _ACEOF
1740 exit
1743 ## ------------------------ ##
1744 ## Autoconf initialization. ##
1745 ## ------------------------ ##
1747 # ac_fn_cxx_try_compile LINENO
1748 # ----------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_cxx_try_compile ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext
1754 if { { ac_try="$ac_compile"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_cxx_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 ac_retval=1
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 as_fn_set_status $ac_retval
1783 } # ac_fn_cxx_try_compile
1785 # ac_fn_cxx_try_cpp LINENO
1786 # ------------------------
1787 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_cxx_try_cpp ()
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_cpp conftest.$ac_ext"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } >/dev/null && {
1807 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1808 test ! -s conftest.err
1809 }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1815 ac_retval=1
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 as_fn_set_status $ac_retval
1820 } # ac_fn_cxx_try_cpp
1822 # ac_fn_c_try_compile LINENO
1823 # --------------------------
1824 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_compile ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext
1829 if { { ac_try="$ac_compile"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_compile") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest.$ac_objext; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1853 ac_retval=1
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 as_fn_set_status $ac_retval
1858 } # ac_fn_c_try_compile
1860 # ac_fn_c_try_cpp LINENO
1861 # ----------------------
1862 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_cpp ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_cpp conftest.$ac_ext"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } >/dev/null && {
1882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 }; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_retval=1
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_c_try_cpp
1897 # ac_fn_c_try_link LINENO
1898 # -----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_c_try_link ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext conftest$ac_exeext
1904 if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>conftest.err
1912 ac_status=$?
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_c_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest$ac_exeext && {
1923 test "$cross_compiling" = yes ||
1924 $as_test_x conftest$ac_exeext
1925 }; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=1
1933 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1934 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1935 # interfere with the next link command; also delete a directory that is
1936 # left behind by Apple's compiler. We do this before executing the actions.
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939 as_fn_set_status $ac_retval
1941 } # ac_fn_c_try_link
1943 # ac_fn_c_try_run LINENO
1944 # ----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1946 # that executables *can* be run.
1947 ac_fn_c_try_run ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_link"
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_link") 2>&5
1958 ac_status=$?
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1961 { { case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_try") 2>&5
1968 ac_status=$?
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; }; }; then :
1971 ac_retval=0
1972 else
1973 $as_echo "$as_me: program exited with status $ac_status" >&5
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1977 ac_retval=$ac_status
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 as_fn_set_status $ac_retval
1983 } # ac_fn_c_try_run
1985 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1988 # the include files in INCLUDES and setting the cache variable VAR
1989 # accordingly.
1990 ac_fn_c_check_header_mongrel ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1997 $as_echo_n "(cached) " >&6
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 else
2003 # Is the header compilable?
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2005 $as_echo_n "checking $2 usability... " >&6; }
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2009 #include <$2>
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 ac_header_compiler=yes
2013 else
2014 ac_header_compiler=no
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2018 $as_echo "$ac_header_compiler" >&6; }
2020 # Is the header present?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2022 $as_echo_n "checking $2 presence... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_c_try_cpp "$LINENO"; then :
2028 ac_header_preproc=yes
2029 else
2030 ac_header_preproc=no
2032 rm -f conftest.err conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2034 $as_echo "$ac_header_preproc" >&6; }
2036 # So? What about this header?
2037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2038 yes:no: )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2040 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 no:yes:* )
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2046 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2048 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2050 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2052 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055 ( cat <<\_ASBOX
2056 ## ------------------------------ ##
2057 ## Report this to admin@amule.org ##
2058 ## ------------------------------ ##
2059 _ASBOX
2060 ) | sed "s/^/$as_me: WARNING: /" >&2
2062 esac
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2066 $as_echo_n "(cached) " >&6
2067 else
2068 eval "$3=\$ac_header_compiler"
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076 } # ac_fn_c_check_header_mongrel
2078 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2079 # -------------------------------------------------------
2080 # Tests whether HEADER exists and can be compiled using the include files in
2081 # INCLUDES, setting the cache variable VAR accordingly.
2082 ac_fn_c_check_header_compile ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2093 #include <$2>
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 eval "$3=yes"
2097 else
2098 eval "$3=no"
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 } # ac_fn_c_check_header_compile
2109 # ac_fn_cxx_try_run LINENO
2110 # ------------------------
2111 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2112 # that executables *can* be run.
2113 ac_fn_cxx_try_run ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if { { ac_try="$ac_link"
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_link") 2>&5
2124 ac_status=$?
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2127 { { case "(($ac_try" in
2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129 *) ac_try_echo=$ac_try;;
2130 esac
2131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132 $as_echo "$ac_try_echo"; } >&5
2133 (eval "$ac_try") 2>&5
2134 ac_status=$?
2135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2136 test $ac_status = 0; }; }; then :
2137 ac_retval=0
2138 else
2139 $as_echo "$as_me: program exited with status $ac_status" >&5
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2143 ac_retval=$ac_status
2145 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2146 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2147 as_fn_set_status $ac_retval
2149 } # ac_fn_cxx_try_run
2151 # ac_fn_cxx_try_link LINENO
2152 # -------------------------
2153 # Try to link conftest.$ac_ext, and return whether this succeeded.
2154 ac_fn_cxx_try_link ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 rm -f conftest.$ac_objext conftest$ac_exeext
2158 if { { ac_try="$ac_link"
2159 case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2162 esac
2163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2164 $as_echo "$ac_try_echo"; } >&5
2165 (eval "$ac_link") 2>conftest.err
2166 ac_status=$?
2167 if test -s conftest.err; then
2168 grep -v '^ *+' conftest.err >conftest.er1
2169 cat conftest.er1 >&5
2170 mv -f conftest.er1 conftest.err
2172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2173 test $ac_status = 0; } && {
2174 test -z "$ac_cxx_werror_flag" ||
2175 test ! -s conftest.err
2176 } && test -s conftest$ac_exeext && {
2177 test "$cross_compiling" = yes ||
2178 $as_test_x conftest$ac_exeext
2179 }; then :
2180 ac_retval=0
2181 else
2182 $as_echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2185 ac_retval=1
2187 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2188 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2189 # interfere with the next link command; also delete a directory that is
2190 # left behind by Apple's compiler. We do this before executing the actions.
2191 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 as_fn_set_status $ac_retval
2195 } # ac_fn_cxx_try_link
2197 # ac_fn_c_check_func LINENO FUNC VAR
2198 # ----------------------------------
2199 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2200 ac_fn_c_check_func ()
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2212 #define $2 innocuous_$2
2214 /* System header to define __stub macros and hopefully few prototypes,
2215 which can conflict with char $2 (); below.
2216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2217 <limits.h> exists even on freestanding compilers. */
2219 #ifdef __STDC__
2220 # include <limits.h>
2221 #else
2222 # include <assert.h>
2223 #endif
2225 #undef $2
2227 /* Override any GCC internal prototype to avoid an error.
2228 Use char because int might match the return type of a GCC
2229 builtin and then its argument prototype would still apply. */
2230 #ifdef __cplusplus
2231 extern "C"
2232 #endif
2233 char $2 ();
2234 /* The GNU C library defines this for functions which it implements
2235 to always fail with ENOSYS. Some functions are actually named
2236 something starting with __ and the normal name is an alias. */
2237 #if defined __stub_$2 || defined __stub___$2
2238 choke me
2239 #endif
2242 main ()
2244 return $2 ();
2246 return 0;
2248 _ACEOF
2249 if ac_fn_c_try_link "$LINENO"; then :
2250 eval "$3=yes"
2251 else
2252 eval "$3=no"
2254 rm -f core conftest.err conftest.$ac_objext \
2255 conftest$ac_exeext conftest.$ac_ext
2257 eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 } # ac_fn_c_check_func
2264 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2265 # -------------------------------------------
2266 # Tests whether TYPE exists after having included INCLUDES, setting cache
2267 # variable VAR accordingly.
2268 ac_fn_c_check_type ()
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2272 $as_echo_n "checking for $2... " >&6; }
2273 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2274 $as_echo_n "(cached) " >&6
2275 else
2276 eval "$3=no"
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2281 main ()
2283 if (sizeof ($2))
2284 return 0;
2286 return 0;
2288 _ACEOF
2289 if ac_fn_c_try_compile "$LINENO"; then :
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2294 main ()
2296 if (sizeof (($2)))
2297 return 0;
2299 return 0;
2301 _ACEOF
2302 if ac_fn_c_try_compile "$LINENO"; then :
2304 else
2305 eval "$3=yes"
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 eval ac_res=\$$3
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313 $as_echo "$ac_res" >&6; }
2314 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2316 } # ac_fn_c_check_type
2318 # ac_fn_c_check_decl LINENO SYMBOL VAR
2319 # ------------------------------------
2320 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2321 ac_fn_c_check_decl ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2325 $as_echo_n "checking whether $2 is declared... " >&6; }
2326 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2333 main ()
2335 #ifndef $2
2336 (void) $2;
2337 #endif
2340 return 0;
2342 _ACEOF
2343 if ac_fn_c_try_compile "$LINENO"; then :
2344 eval "$3=yes"
2345 else
2346 eval "$3=no"
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2350 eval ac_res=\$$3
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 } # ac_fn_c_check_decl
2356 cat >config.log <<_ACEOF
2357 This file contains any messages produced by compilers while
2358 running configure, to aid debugging if configure makes a mistake.
2360 It was created by aMule $as_me SVN, which was
2361 generated by GNU Autoconf 2.65. Invocation command line was
2363 $ $0 $@
2365 _ACEOF
2366 exec 5>>config.log
2368 cat <<_ASUNAME
2369 ## --------- ##
2370 ## Platform. ##
2371 ## --------- ##
2373 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2374 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2375 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2376 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2377 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2379 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2380 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2382 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2383 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2384 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2385 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2386 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2387 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2388 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2390 _ASUNAME
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 $as_echo "PATH: $as_dir"
2398 done
2399 IFS=$as_save_IFS
2401 } >&5
2403 cat >&5 <<_ACEOF
2406 ## ----------- ##
2407 ## Core tests. ##
2408 ## ----------- ##
2410 _ACEOF
2413 # Keep a trace of the command line.
2414 # Strip out --no-create and --no-recursion so they do not pile up.
2415 # Strip out --silent because we don't want to record it for future runs.
2416 # Also quote any args containing shell meta-characters.
2417 # Make two passes to allow for proper duplicate-argument suppression.
2418 ac_configure_args=
2419 ac_configure_args0=
2420 ac_configure_args1=
2421 ac_must_keep_next=false
2422 for ac_pass in 1 2
2424 for ac_arg
2426 case $ac_arg in
2427 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2429 | -silent | --silent | --silen | --sile | --sil)
2430 continue ;;
2431 *\'*)
2432 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2433 esac
2434 case $ac_pass in
2435 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2437 as_fn_append ac_configure_args1 " '$ac_arg'"
2438 if test $ac_must_keep_next = true; then
2439 ac_must_keep_next=false # Got value, back to normal.
2440 else
2441 case $ac_arg in
2442 *=* | --config-cache | -C | -disable-* | --disable-* \
2443 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2444 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2445 | -with-* | --with-* | -without-* | --without-* | --x)
2446 case "$ac_configure_args0 " in
2447 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2448 esac
2450 -* ) ac_must_keep_next=true ;;
2451 esac
2453 as_fn_append ac_configure_args " '$ac_arg'"
2455 esac
2456 done
2457 done
2458 { ac_configure_args0=; unset ac_configure_args0;}
2459 { ac_configure_args1=; unset ac_configure_args1;}
2461 # When interrupted or exit'd, cleanup temporary files, and complete
2462 # config.log. We remove comments because anyway the quotes in there
2463 # would cause problems or look ugly.
2464 # WARNING: Use '\'' to represent an apostrophe within the trap.
2465 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2466 trap 'exit_status=$?
2467 # Save into config.log some information that might help in debugging.
2469 echo
2471 cat <<\_ASBOX
2472 ## ---------------- ##
2473 ## Cache variables. ##
2474 ## ---------------- ##
2475 _ASBOX
2476 echo
2477 # The following way of writing the cache mishandles newlines in values,
2479 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2480 eval ac_val=\$$ac_var
2481 case $ac_val in #(
2482 *${as_nl}*)
2483 case $ac_var in #(
2484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2485 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2486 esac
2487 case $ac_var in #(
2488 _ | IFS | as_nl) ;; #(
2489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2490 *) { eval $ac_var=; unset $ac_var;} ;;
2491 esac ;;
2492 esac
2493 done
2494 (set) 2>&1 |
2495 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2496 *${as_nl}ac_space=\ *)
2497 sed -n \
2498 "s/'\''/'\''\\\\'\'''\''/g;
2499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2500 ;; #(
2502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2504 esac |
2505 sort
2507 echo
2509 cat <<\_ASBOX
2510 ## ----------------- ##
2511 ## Output variables. ##
2512 ## ----------------- ##
2513 _ASBOX
2514 echo
2515 for ac_var in $ac_subst_vars
2517 eval ac_val=\$$ac_var
2518 case $ac_val in
2519 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2520 esac
2521 $as_echo "$ac_var='\''$ac_val'\''"
2522 done | sort
2523 echo
2525 if test -n "$ac_subst_files"; then
2526 cat <<\_ASBOX
2527 ## ------------------- ##
2528 ## File substitutions. ##
2529 ## ------------------- ##
2530 _ASBOX
2531 echo
2532 for ac_var in $ac_subst_files
2534 eval ac_val=\$$ac_var
2535 case $ac_val in
2536 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2537 esac
2538 $as_echo "$ac_var='\''$ac_val'\''"
2539 done | sort
2540 echo
2543 if test -s confdefs.h; then
2544 cat <<\_ASBOX
2545 ## ----------- ##
2546 ## confdefs.h. ##
2547 ## ----------- ##
2548 _ASBOX
2549 echo
2550 cat confdefs.h
2551 echo
2553 test "$ac_signal" != 0 &&
2554 $as_echo "$as_me: caught signal $ac_signal"
2555 $as_echo "$as_me: exit $exit_status"
2556 } >&5
2557 rm -f core *.core core.conftest.* &&
2558 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2559 exit $exit_status
2561 for ac_signal in 1 2 13 15; do
2562 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2563 done
2564 ac_signal=0
2566 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2567 rm -f -r conftest* confdefs.h
2569 $as_echo "/* confdefs.h */" > confdefs.h
2571 # Predefined preprocessor variables.
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_NAME "$PACKAGE_NAME"
2575 _ACEOF
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2579 _ACEOF
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2583 _ACEOF
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_STRING "$PACKAGE_STRING"
2587 _ACEOF
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2591 _ACEOF
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_URL "$PACKAGE_URL"
2595 _ACEOF
2598 # Let the site file select an alternate cache file if it wants to.
2599 # Prefer an explicitly selected file to automatically selected ones.
2600 ac_site_file1=NONE
2601 ac_site_file2=NONE
2602 if test -n "$CONFIG_SITE"; then
2603 ac_site_file1=$CONFIG_SITE
2604 elif test "x$prefix" != xNONE; then
2605 ac_site_file1=$prefix/share/config.site
2606 ac_site_file2=$prefix/etc/config.site
2607 else
2608 ac_site_file1=$ac_default_prefix/share/config.site
2609 ac_site_file2=$ac_default_prefix/etc/config.site
2611 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2613 test "x$ac_site_file" = xNONE && continue
2614 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2617 sed 's/^/| /' "$ac_site_file" >&5
2618 . "$ac_site_file"
2620 done
2622 if test -r "$cache_file"; then
2623 # Some versions of bash will fail to source /dev/null (special files
2624 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2625 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2627 $as_echo "$as_me: loading cache $cache_file" >&6;}
2628 case $cache_file in
2629 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2630 *) . "./$cache_file";;
2631 esac
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2635 $as_echo "$as_me: creating cache $cache_file" >&6;}
2636 >$cache_file
2639 as_fn_append ac_header_list " stdlib.h"
2640 as_fn_append ac_header_list " unistd.h"
2641 as_fn_append ac_header_list " sys/param.h"
2642 # Check that the precious variables saved in the cache have kept the same
2643 # value.
2644 ac_cache_corrupted=false
2645 for ac_var in $ac_precious_vars; do
2646 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2647 eval ac_new_set=\$ac_env_${ac_var}_set
2648 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2649 eval ac_new_val=\$ac_env_${ac_var}_value
2650 case $ac_old_set,$ac_new_set in
2651 set,)
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2653 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2654 ac_cache_corrupted=: ;;
2655 ,set)
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2657 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2658 ac_cache_corrupted=: ;;
2659 ,);;
2661 if test "x$ac_old_val" != "x$ac_new_val"; then
2662 # differences in whitespace do not lead to failure.
2663 ac_old_val_w=`echo x $ac_old_val`
2664 ac_new_val_w=`echo x $ac_new_val`
2665 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2667 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2668 ac_cache_corrupted=:
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2671 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2672 eval $ac_var=\$ac_old_val
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2675 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2677 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2678 fi;;
2679 esac
2680 # Pass precious variables to config.status.
2681 if test "$ac_new_set" = set; then
2682 case $ac_new_val in
2683 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2684 *) ac_arg=$ac_var=$ac_new_val ;;
2685 esac
2686 case " $ac_configure_args " in
2687 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2688 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2689 esac
2691 done
2692 if $ac_cache_corrupted; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2696 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2697 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2699 ## -------------------- ##
2700 ## Main body of script. ##
2701 ## -------------------- ##
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 am__api_version='1.11'
2712 ac_aux_dir=
2713 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2714 for ac_t in install-sh install.sh shtool; do
2715 if test -f "$ac_dir/$ac_t"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/$ac_t -c"
2718 break 2
2720 done
2721 done
2722 if test -z "$ac_aux_dir"; then
2723 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2726 # These three variables are undocumented and unsupported,
2727 # and are intended to be withdrawn in a future Autoconf release.
2728 # They can cause serious problems if a builder's source tree is in a directory
2729 # whose full name contains unusual characters.
2730 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2731 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2732 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2735 # Find a good install program. We prefer a C program (faster),
2736 # so one script is as good as another. But avoid the broken or
2737 # incompatible versions:
2738 # SysV /etc/install, /usr/sbin/install
2739 # SunOS /usr/etc/install
2740 # IRIX /sbin/install
2741 # AIX /bin/install
2742 # AmigaOS /C/install, which installs bootblocks on floppy discs
2743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2746 # OS/2's system install, which has a completely different semantic
2747 # ./install, which can be erroneously created by make from ./install.sh.
2748 # Reject install programs that cannot install multiple files.
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2750 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2751 if test -z "$INSTALL"; then
2752 if test "${ac_cv_path_install+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 # Account for people who put trailing slashes in PATH elements.
2761 case $as_dir/ in #((
2762 ./ | .// | /[cC]/* | \
2763 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2764 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2765 /usr/ucb/* ) ;;
2767 # OSF1 and SCO ODT 3.0 have their own names for install.
2768 # Don't use installbsd from OSF since it installs stuff as root
2769 # by default.
2770 for ac_prog in ginstall scoinst install; do
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2773 if test $ac_prog = install &&
2774 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2775 # AIX install. It has an incompatible calling convention.
2777 elif test $ac_prog = install &&
2778 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779 # program-specific install script used by HP pwplus--don't use.
2781 else
2782 rm -rf conftest.one conftest.two conftest.dir
2783 echo one > conftest.one
2784 echo two > conftest.two
2785 mkdir conftest.dir
2786 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2787 test -s conftest.one && test -s conftest.two &&
2788 test -s conftest.dir/conftest.one &&
2789 test -s conftest.dir/conftest.two
2790 then
2791 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2792 break 3
2796 done
2797 done
2799 esac
2801 done
2802 IFS=$as_save_IFS
2804 rm -rf conftest.one conftest.two conftest.dir
2807 if test "${ac_cv_path_install+set}" = set; then
2808 INSTALL=$ac_cv_path_install
2809 else
2810 # As a last resort, use the slow shell script. Don't cache a
2811 # value for INSTALL within a source directory, because that will
2812 # break other packages using the cache if that directory is
2813 # removed, or if the value is a relative name.
2814 INSTALL=$ac_install_sh
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2818 $as_echo "$INSTALL" >&6; }
2820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2821 # It thinks the first close brace ends the variable substitution.
2822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2826 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2829 $as_echo_n "checking whether build environment is sane... " >&6; }
2830 # Just in case
2831 sleep 1
2832 echo timestamp > conftest.file
2833 # Reject unsafe characters in $srcdir or the absolute working directory
2834 # name. Accept space and tab only in the latter.
2835 am_lf='
2837 case `pwd` in
2838 *[\\\"\#\$\&\'\`$am_lf]*)
2839 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2840 esac
2841 case $srcdir in
2842 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2843 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2844 esac
2846 # Do `set' in a subshell so we don't clobber the current shell's
2847 # arguments. Must try -L first in case configure is actually a
2848 # symlink; some systems play weird games with the mod time of symlinks
2849 # (eg FreeBSD returns the mod time of the symlink's containing
2850 # directory).
2851 if (
2852 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2853 if test "$*" = "X"; then
2854 # -L didn't work.
2855 set X `ls -t "$srcdir/configure" conftest.file`
2857 rm -f conftest.file
2858 if test "$*" != "X $srcdir/configure conftest.file" \
2859 && test "$*" != "X conftest.file $srcdir/configure"; then
2861 # If neither matched, then we have a broken ls. This can happen
2862 # if, for instance, CONFIG_SHELL is bash and it inherits a
2863 # broken ls alias from the environment. This has actually
2864 # happened. Such a system could not be considered "sane".
2865 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2866 alias in your environment" "$LINENO" 5
2869 test "$2" = conftest.file
2871 then
2872 # Ok.
2874 else
2875 as_fn_error "newly created file is older than distributed files!
2876 Check your system clock" "$LINENO" 5
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2879 $as_echo "yes" >&6; }
2880 test "$program_prefix" != NONE &&
2881 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2882 # Use a double $ so make ignores it.
2883 test "$program_suffix" != NONE &&
2884 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2885 # Double any \ or $.
2886 # By default was `s,x,x', remove it if useless.
2887 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2888 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2890 # expand $ac_aux_dir to an absolute path
2891 am_aux_dir=`cd $ac_aux_dir && pwd`
2893 if test x"${MISSING+set}" != xset; then
2894 case $am_aux_dir in
2895 *\ * | *\ *)
2896 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2898 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2899 esac
2901 # Use eval to expand $SHELL
2902 if eval "$MISSING --run true"; then
2903 am_missing_run="$MISSING --run "
2904 else
2905 am_missing_run=
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2907 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2910 if test x"${install_sh}" != xset; then
2911 case $am_aux_dir in
2912 *\ * | *\ *)
2913 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2915 install_sh="\${SHELL} $am_aux_dir/install-sh"
2916 esac
2919 # Installed binaries are usually stripped using `strip' when the user
2920 # run `make install-strip'. However `strip' might not be the right
2921 # tool to use in cross-compilation environments, therefore Automake
2922 # will honor the `STRIP' environment variable to overrule this program.
2923 if test "$cross_compiling" != no; then
2924 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}strip; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_STRIP+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$STRIP"; then
2933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2946 done
2947 done
2948 IFS=$as_save_IFS
2952 STRIP=$ac_cv_prog_STRIP
2953 if test -n "$STRIP"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2955 $as_echo "$STRIP" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2963 if test -z "$ac_cv_prog_STRIP"; then
2964 ac_ct_STRIP=$STRIP
2965 # Extract the first word of "strip", so it can be a program name with args.
2966 set dummy strip; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$ac_ct_STRIP"; then
2973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_ac_ct_STRIP="strip"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2986 done
2987 done
2988 IFS=$as_save_IFS
2992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2993 if test -n "$ac_ct_STRIP"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2995 $as_echo "$ac_ct_STRIP" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3001 if test "x$ac_ct_STRIP" = x; then
3002 STRIP=":"
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010 STRIP=$ac_ct_STRIP
3012 else
3013 STRIP="$ac_cv_prog_STRIP"
3017 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3020 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3021 if test -z "$MKDIR_P"; then
3022 if test "${ac_cv_path_mkdir+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_prog in mkdir gmkdir; do
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3033 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3034 'mkdir (GNU coreutils) '* | \
3035 'mkdir (coreutils) '* | \
3036 'mkdir (fileutils) '4.1*)
3037 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3038 break 3;;
3039 esac
3040 done
3041 done
3042 done
3043 IFS=$as_save_IFS
3047 test -d ./--version && rmdir ./--version
3048 if test "${ac_cv_path_mkdir+set}" = set; then
3049 MKDIR_P="$ac_cv_path_mkdir -p"
3050 else
3051 # As a last resort, use the slow shell script. Don't cache a
3052 # value for MKDIR_P within a source directory, because that will
3053 # break other packages using the cache if that directory is
3054 # removed, or if the value is a relative name.
3055 MKDIR_P="$ac_install_sh -d"
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3059 $as_echo "$MKDIR_P" >&6; }
3061 mkdir_p="$MKDIR_P"
3062 case $mkdir_p in
3063 [\\/$]* | ?:[\\/]*) ;;
3064 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3065 esac
3067 for ac_prog in gawk mawk nawk awk
3069 # Extract the first word of "$ac_prog", so it can be a program name with args.
3070 set dummy $ac_prog; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if test "${ac_cv_prog_AWK+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$AWK"; then
3077 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086 ac_cv_prog_AWK="$ac_prog"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3090 done
3091 done
3092 IFS=$as_save_IFS
3096 AWK=$ac_cv_prog_AWK
3097 if test -n "$AWK"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3099 $as_echo "$AWK" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3106 test -n "$AWK" && break
3107 done
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3110 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3111 set x ${MAKE-make}
3112 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3113 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 cat >conftest.make <<\_ACEOF
3117 SHELL = /bin/sh
3118 all:
3119 @echo '@@@%%%=$(MAKE)=@@@%%%'
3120 _ACEOF
3121 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3122 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3123 *@@@%%%=?*=@@@%%%*)
3124 eval ac_cv_prog_make_${ac_make}_set=yes;;
3126 eval ac_cv_prog_make_${ac_make}_set=no;;
3127 esac
3128 rm -f conftest.make
3130 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3132 $as_echo "yes" >&6; }
3133 SET_MAKE=
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 SET_MAKE="MAKE=${MAKE-make}"
3140 rm -rf .tst 2>/dev/null
3141 mkdir .tst 2>/dev/null
3142 if test -d .tst; then
3143 am__leading_dot=.
3144 else
3145 am__leading_dot=_
3147 rmdir .tst 2>/dev/null
3149 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3150 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3151 # is not polluted with repeated "-I."
3152 am__isrc=' -I$(srcdir)'
3153 # test to see if srcdir already configured
3154 if test -f $srcdir/config.status; then
3155 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3159 # test whether we have cygpath
3160 if test -z "$CYGPATH_W"; then
3161 if (cygpath --version) >/dev/null 2>/dev/null; then
3162 CYGPATH_W='cygpath -w'
3163 else
3164 CYGPATH_W=echo
3169 # Define the identity of the package.
3170 PACKAGE='amule'
3171 VERSION='SVN'
3174 cat >>confdefs.h <<_ACEOF
3175 #define PACKAGE "$PACKAGE"
3176 _ACEOF
3179 cat >>confdefs.h <<_ACEOF
3180 #define VERSION "$VERSION"
3181 _ACEOF
3183 # Some tools Automake needs.
3185 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3188 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3191 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3194 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3197 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3199 # We need awk for the "check" target. The system "awk" is bad on
3200 # some platforms.
3201 # Always define AMTAR for backward compatibility.
3203 AMTAR=${AMTAR-"${am_missing_run}tar"}
3205 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3211 # Check whether --enable-silent-rules was given.
3212 if test "${enable_silent_rules+set}" = set; then :
3213 enableval=$enable_silent_rules;
3216 case $enable_silent_rules in
3217 yes) AM_DEFAULT_VERBOSITY=0;;
3218 no) AM_DEFAULT_VERBOSITY=1;;
3219 *) AM_DEFAULT_VERBOSITY=1;;
3220 esac
3221 AM_BACKSLASH='\'
3227 ac_config_headers="$ac_config_headers config.h"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3231 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3232 # Check whether --enable-maintainer-mode was given.
3233 if test "${enable_maintainer_mode+set}" = set; then :
3234 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3235 else
3236 USE_MAINTAINER_MODE=no
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3240 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3241 if test $USE_MAINTAINER_MODE = yes; then
3242 MAINTAINER_MODE_TRUE=
3243 MAINTAINER_MODE_FALSE='#'
3244 else
3245 MAINTAINER_MODE_TRUE='#'
3246 MAINTAINER_MODE_FALSE=
3249 MAINT=$MAINTAINER_MODE_TRUE
3253 # Make sure we can run config.sub.
3254 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3255 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3258 $as_echo_n "checking build system type... " >&6; }
3259 if test "${ac_cv_build+set}" = set; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 ac_build_alias=$build_alias
3263 test "x$ac_build_alias" = x &&
3264 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3265 test "x$ac_build_alias" = x &&
3266 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3267 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3268 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3272 $as_echo "$ac_cv_build" >&6; }
3273 case $ac_cv_build in
3274 *-*-*) ;;
3275 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3276 esac
3277 build=$ac_cv_build
3278 ac_save_IFS=$IFS; IFS='-'
3279 set x $ac_cv_build
3280 shift
3281 build_cpu=$1
3282 build_vendor=$2
3283 shift; shift
3284 # Remember, the first character of IFS is used to create $*,
3285 # except with old shells:
3286 build_os=$*
3287 IFS=$ac_save_IFS
3288 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3292 $as_echo_n "checking host system type... " >&6; }
3293 if test "${ac_cv_host+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3295 else
3296 if test "x$host_alias" = x; then
3297 ac_cv_host=$ac_cv_build
3298 else
3299 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3300 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3305 $as_echo "$ac_cv_host" >&6; }
3306 case $ac_cv_host in
3307 *-*-*) ;;
3308 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3309 esac
3310 host=$ac_cv_host
3311 ac_save_IFS=$IFS; IFS='-'
3312 set x $ac_cv_host
3313 shift
3314 host_cpu=$1
3315 host_vendor=$2
3316 shift; shift
3317 # Remember, the first character of IFS is used to create $*,
3318 # except with old shells:
3319 host_os=$*
3320 IFS=$ac_save_IFS
3321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3325 case "${host_os}" in
3326 darwin*)
3327 SYS=darwin
3328 MULECPPFLAGS="-no-cpp-precomp -D_INTL_REDIRECT_MACROS -DNOPCH";
3329 MULELDFLAGS="-bind_at_load"
3330 touch src/Scanner.cpp
3332 openbsd*)
3333 SYS=openbsd
3334 LIBS="$LIBS -L/usr/local/lib"
3335 MULECPPFLAGS="-D__OPENBSD__"
3337 *cygwin* | *mingw32*)
3338 SYS=win32
3339 MULECPPFLAGS="-DNOMINMAX"
3341 solaris*)
3342 SYS=solaris
3343 RESOLV_LIB="-lresolv -lnsl"
3344 LIBS="$LIBS -lrt"
3346 *netbsd*)
3347 SYS=netbsd
3348 # Now this is against autoconf recommendation that configure should not modify CPPFLAGS and LDFLAGS
3349 # However, these values in NetBSD are required even to run the tests, and this is the easiest way to do it.
3350 # Still, we prepend them, instead of adding, so the user may override them.
3351 CPPFLAGS="-I/usr/pkg/include $CPPFLAGS"
3352 LDFLAGS="-R/usr/pkg/lib -L/usr/pkg/lib $LDFLAGS"
3354 *irix*)
3355 SYS=irix
3356 MULECPPFLAGS="-D__IRIX__"
3359 SYS=unknown
3361 esac
3363 # -lpthread is needed by Debian but FreeBSD < 5 doesn't support it
3364 if test ${SYS:-unknown} != win32; then :
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a FreeBSD 4 or earlier system" >&5
3367 $as_echo_n "checking if this is a FreeBSD 4 or earlier system... " >&6; }
3368 if test x"`uname -s`" = xFreeBSD && test 0`uname -r | cut -c 1` -lt 5; then :
3370 MULELDFLAGS="$MULELDFLAGS -pthread"
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372 $as_echo "yes" >&6; }
3374 else
3376 MULELDFLAGS="$MULELDFLAGS -lpthread"
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3386 mule_backup_CFLAGS="$CFLAGS"
3387 mule_backup_CXXFLAGS="$CXXFLAGS"
3388 mule_backup_BUILD_CFLAGS="$BUILD_CFLAGS"
3389 ac_ext=cpp
3390 ac_cpp='$CXXCPP $CPPFLAGS'
3391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3394 if test -z "$CXX"; then
3395 if test -n "$CCC"; then
3396 CXX=$CCC
3397 else
3398 if test -n "$ac_tool_prefix"; then
3399 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 $as_echo_n "checking for $ac_word... " >&6; }
3405 if test "${ac_cv_prog_CXX+set}" = set; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 if test -n "$CXX"; then
3409 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3418 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 break 2
3422 done
3423 done
3424 IFS=$as_save_IFS
3428 CXX=$ac_cv_prog_CXX
3429 if test -n "$CXX"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3431 $as_echo "$CXX" >&6; }
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3438 test -n "$CXX" && break
3439 done
3441 if test -z "$CXX"; then
3442 ac_ct_CXX=$CXX
3443 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3445 # Extract the first word of "$ac_prog", so it can be a program name with args.
3446 set dummy $ac_prog; ac_word=$2
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448 $as_echo_n "checking for $ac_word... " >&6; }
3449 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 if test -n "$ac_ct_CXX"; then
3453 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462 ac_cv_prog_ac_ct_CXX="$ac_prog"
3463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3468 IFS=$as_save_IFS
3472 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3473 if test -n "$ac_ct_CXX"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3475 $as_echo "$ac_ct_CXX" >&6; }
3476 else
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3482 test -n "$ac_ct_CXX" && break
3483 done
3485 if test "x$ac_ct_CXX" = x; then
3486 CXX="g++"
3487 else
3488 case $cross_compiling:$ac_tool_warned in
3489 yes:)
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3492 ac_tool_warned=yes ;;
3493 esac
3494 CXX=$ac_ct_CXX
3500 # Provide some information about the compiler.
3501 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3502 set X $ac_compile
3503 ac_compiler=$2
3504 for ac_option in --version -v -V -qversion; do
3505 { { ac_try="$ac_compiler $ac_option >&5"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3513 ac_status=$?
3514 if test -s conftest.err; then
3515 sed '10a\
3516 ... rest of stderr output deleted ...
3517 10q' conftest.err >conftest.er1
3518 cat conftest.er1 >&5
3520 rm -f conftest.er1 conftest.err
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }
3523 done
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3529 main ()
3533 return 0;
3535 _ACEOF
3536 ac_clean_files_save=$ac_clean_files
3537 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3538 # Try to create an executable without -o first, disregard a.out.
3539 # It will help us diagnose broken compilers, and finding out an intuition
3540 # of exeext.
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3542 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3543 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3545 # The possible output files:
3546 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3548 ac_rmfiles=
3549 for ac_file in $ac_files
3551 case $ac_file in
3552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3553 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3554 esac
3555 done
3556 rm -f $ac_rmfiles
3558 if { { ac_try="$ac_link_default"
3559 case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_link_default") 2>&5
3566 ac_status=$?
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; then :
3569 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3570 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3571 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3572 # so that the user can short-circuit this test for compilers unknown to
3573 # Autoconf.
3574 for ac_file in $ac_files ''
3576 test -f "$ac_file" || continue
3577 case $ac_file in
3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3580 [ab].out )
3581 # We found the default executable, but exeext='' is most
3582 # certainly right.
3583 break;;
3584 *.* )
3585 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3586 then :; else
3587 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589 # We set ac_cv_exeext here because the later test for it is not
3590 # safe: cross compilers may not add the suffix if given an `-o'
3591 # argument, so we may need to know it at that point already.
3592 # Even if this section looks crufty: it has the advantage of
3593 # actually working.
3594 break;;
3596 break;;
3597 esac
3598 done
3599 test "$ac_cv_exeext" = no && ac_cv_exeext=
3601 else
3602 ac_file=''
3604 if test -z "$ac_file"; then :
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { as_fn_set_status 77
3613 as_fn_error "C++ compiler cannot create executables
3614 See \`config.log' for more details." "$LINENO" 5; }; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3617 $as_echo "yes" >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3620 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3622 $as_echo "$ac_file" >&6; }
3623 ac_exeext=$ac_cv_exeext
3625 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3626 ac_clean_files=$ac_clean_files_save
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3628 $as_echo_n "checking for suffix of executables... " >&6; }
3629 if { { ac_try="$ac_link"
3630 case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_link") 2>&5
3637 ac_status=$?
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }; then :
3640 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3641 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3642 # work properly (i.e., refer to `conftest.exe'), while it won't with
3643 # `rm'.
3644 for ac_file in conftest.exe conftest conftest.*; do
3645 test -f "$ac_file" || continue
3646 case $ac_file in
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3648 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649 break;;
3650 * ) break;;
3651 esac
3652 done
3653 else
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error "cannot compute suffix of executables: cannot compile and link
3657 See \`config.log' for more details." "$LINENO" 5; }
3659 rm -f conftest conftest$ac_cv_exeext
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3661 $as_echo "$ac_cv_exeext" >&6; }
3663 rm -f conftest.$ac_ext
3664 EXEEXT=$ac_cv_exeext
3665 ac_exeext=$EXEEXT
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668 #include <stdio.h>
3670 main ()
3672 FILE *f = fopen ("conftest.out", "w");
3673 return ferror (f) || fclose (f) != 0;
3676 return 0;
3678 _ACEOF
3679 ac_clean_files="$ac_clean_files conftest.out"
3680 # Check that the compiler produces executables we can run. If not, either
3681 # the compiler is broken, or we cross compile.
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3683 $as_echo_n "checking whether we are cross compiling... " >&6; }
3684 if test "$cross_compiling" != yes; then
3685 { { ac_try="$ac_link"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_link") 2>&5
3693 ac_status=$?
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }
3696 if { ac_try='./conftest$ac_cv_exeext'
3697 { { case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_try") 2>&5
3704 ac_status=$?
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }; }; then
3707 cross_compiling=no
3708 else
3709 if test "$cross_compiling" = maybe; then
3710 cross_compiling=yes
3711 else
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error "cannot run C++ compiled programs.
3715 If you meant to cross compile, use \`--host'.
3716 See \`config.log' for more details." "$LINENO" 5; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3721 $as_echo "$cross_compiling" >&6; }
3723 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3724 ac_clean_files=$ac_clean_files_save
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3726 $as_echo_n "checking for suffix of object files... " >&6; }
3727 if test "${ac_cv_objext+set}" = set; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3734 main ()
3738 return 0;
3740 _ACEOF
3741 rm -f conftest.o conftest.obj
3742 if { { ac_try="$ac_compile"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749 (eval "$ac_compile") 2>&5
3750 ac_status=$?
3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }; then :
3753 for ac_file in conftest.o conftest.obj conftest.*; do
3754 test -f "$ac_file" || continue;
3755 case $ac_file in
3756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3757 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3758 break;;
3759 esac
3760 done
3761 else
3762 $as_echo "$as_me: failed program was:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error "cannot compute suffix of object files: cannot compile
3768 See \`config.log' for more details." "$LINENO" 5; }
3770 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3773 $as_echo "$ac_cv_objext" >&6; }
3774 OBJEXT=$ac_cv_objext
3775 ac_objext=$OBJEXT
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3777 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3778 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3785 main ()
3787 #ifndef __GNUC__
3788 choke me
3789 #endif
3792 return 0;
3794 _ACEOF
3795 if ac_fn_cxx_try_compile "$LINENO"; then :
3796 ac_compiler_gnu=yes
3797 else
3798 ac_compiler_gnu=no
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3805 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3806 if test $ac_compiler_gnu = yes; then
3807 GXX=yes
3808 else
3809 GXX=
3811 ac_test_CXXFLAGS=${CXXFLAGS+set}
3812 ac_save_CXXFLAGS=$CXXFLAGS
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3814 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3815 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3819 ac_cxx_werror_flag=yes
3820 ac_cv_prog_cxx_g=no
3821 CXXFLAGS="-g"
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3826 main ()
3830 return 0;
3832 _ACEOF
3833 if ac_fn_cxx_try_compile "$LINENO"; then :
3834 ac_cv_prog_cxx_g=yes
3835 else
3836 CXXFLAGS=""
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 if ac_fn_cxx_try_compile "$LINENO"; then :
3850 else
3851 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3852 CXXFLAGS="-g"
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3857 main ()
3861 return 0;
3863 _ACEOF
3864 if ac_fn_cxx_try_compile "$LINENO"; then :
3865 ac_cv_prog_cxx_g=yes
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3875 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3876 if test "$ac_test_CXXFLAGS" = set; then
3877 CXXFLAGS=$ac_save_CXXFLAGS
3878 elif test $ac_cv_prog_cxx_g = yes; then
3879 if test "$GXX" = yes; then
3880 CXXFLAGS="-g -O2"
3881 else
3882 CXXFLAGS="-g"
3884 else
3885 if test "$GXX" = yes; then
3886 CXXFLAGS="-O2"
3887 else
3888 CXXFLAGS=
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 DEPDIR="${am__leading_dot}deps"
3898 ac_config_commands="$ac_config_commands depfiles"
3901 am_make=${MAKE-make}
3902 cat > confinc << 'END'
3903 am__doit:
3904 @echo this is the am__doit target
3905 .PHONY: am__doit
3907 # If we don't find an include directive, just comment out the code.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3909 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3910 am__include="#"
3911 am__quote=
3912 _am_result=none
3913 # First try GNU make style include.
3914 echo "include confinc" > confmf
3915 # Ignore all kinds of additional output from `make'.
3916 case `$am_make -s -f confmf 2> /dev/null` in #(
3917 *the\ am__doit\ target*)
3918 am__include=include
3919 am__quote=
3920 _am_result=GNU
3922 esac
3923 # Now try BSD make style include.
3924 if test "$am__include" = "#"; then
3925 echo '.include "confinc"' > confmf
3926 case `$am_make -s -f confmf 2> /dev/null` in #(
3927 *the\ am__doit\ target*)
3928 am__include=.include
3929 am__quote="\""
3930 _am_result=BSD
3932 esac
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3937 $as_echo "$_am_result" >&6; }
3938 rm -f confinc confmf
3940 # Check whether --enable-dependency-tracking was given.
3941 if test "${enable_dependency_tracking+set}" = set; then :
3942 enableval=$enable_dependency_tracking;
3945 if test "x$enable_dependency_tracking" != xno; then
3946 am_depcomp="$ac_aux_dir/depcomp"
3947 AMDEPBACKSLASH='\'
3949 if test "x$enable_dependency_tracking" != xno; then
3950 AMDEP_TRUE=
3951 AMDEP_FALSE='#'
3952 else
3953 AMDEP_TRUE='#'
3954 AMDEP_FALSE=
3959 depcc="$CXX" am_compiler_list=
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3962 $as_echo_n "checking dependency style of $depcc... " >&6; }
3963 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3967 # We make a subdir and do the tests there. Otherwise we can end up
3968 # making bogus files that we don't know about and never remove. For
3969 # instance it was reported that on HP-UX the gcc test will end up
3970 # making a dummy file named `D' -- because `-MD' means `put the output
3971 # in D'.
3972 mkdir conftest.dir
3973 # Copy depcomp to subdir because otherwise we won't find it if we're
3974 # using a relative directory.
3975 cp "$am_depcomp" conftest.dir
3976 cd conftest.dir
3977 # We will build objects and dependencies in a subdirectory because
3978 # it helps to detect inapplicable dependency modes. For instance
3979 # both Tru64's cc and ICC support -MD to output dependencies as a
3980 # side effect of compilation, but ICC will put the dependencies in
3981 # the current directory while Tru64 will put them in the object
3982 # directory.
3983 mkdir sub
3985 am_cv_CXX_dependencies_compiler_type=none
3986 if test "$am_compiler_list" = ""; then
3987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3989 am__universal=false
3990 case " $depcc " in #(
3991 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3992 esac
3994 for depmode in $am_compiler_list; do
3995 # Setup a source with many dependencies, because some compilers
3996 # like to wrap large dependency lists on column 80 (with \), and
3997 # we should not choose a depcomp mode which is confused by this.
3999 # We need to recreate these files for each test, as the compiler may
4000 # overwrite some of them when testing with obscure command lines.
4001 # This happens at least with the AIX C compiler.
4002 : > sub/conftest.c
4003 for i in 1 2 3 4 5 6; do
4004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4006 # Solaris 8's {/usr,}/bin/sh.
4007 touch sub/conftst$i.h
4008 done
4009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4011 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4012 # mode. It turns out that the SunPro C++ compiler does not properly
4013 # handle `-M -o', and we need to detect this. Also, some Intel
4014 # versions had trouble with output in subdirs
4015 am__obj=sub/conftest.${OBJEXT-o}
4016 am__minus_obj="-o $am__obj"
4017 case $depmode in
4018 gcc)
4019 # This depmode causes a compiler race in universal mode.
4020 test "$am__universal" = false || continue
4022 nosideeffect)
4023 # after this tag, mechanisms are not by side-effect, so they'll
4024 # only be used when explicitly requested
4025 if test "x$enable_dependency_tracking" = xyes; then
4026 continue
4027 else
4028 break
4031 msvisualcpp | msvcmsys)
4032 # This compiler won't grok `-c -o', but also, the minuso test has
4033 # not run yet. These depmodes are late enough in the game, and
4034 # so weak that their functioning should not be impacted.
4035 am__obj=conftest.${OBJEXT-o}
4036 am__minus_obj=
4038 none) break ;;
4039 esac
4040 if depmode=$depmode \
4041 source=sub/conftest.c object=$am__obj \
4042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4043 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4044 >/dev/null 2>conftest.err &&
4045 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4047 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4049 # icc doesn't choke on unknown options, it will just issue warnings
4050 # or remarks (even with -Werror). So we grep stderr for any message
4051 # that says an option was ignored or not supported.
4052 # When given -MP, icc 7.0 and 7.1 complain thusly:
4053 # icc: Command line warning: ignoring option '-M'; no argument required
4054 # The diagnosis changed in icc 8.0:
4055 # icc: Command line remark: option '-MP' not supported
4056 if (grep 'ignoring option' conftest.err ||
4057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4058 am_cv_CXX_dependencies_compiler_type=$depmode
4059 break
4062 done
4064 cd ..
4065 rm -rf conftest.dir
4066 else
4067 am_cv_CXX_dependencies_compiler_type=none
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4072 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4073 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4076 test "x$enable_dependency_tracking" != xno \
4077 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4078 am__fastdepCXX_TRUE=
4079 am__fastdepCXX_FALSE='#'
4080 else
4081 am__fastdepCXX_TRUE='#'
4082 am__fastdepCXX_FALSE=
4086 ac_ext=cpp
4087 ac_cpp='$CXXCPP $CPPFLAGS'
4088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4092 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4093 if test -z "$CXXCPP"; then
4094 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 # Double quotes because CXXCPP needs to be expanded
4098 for CXXCPP in "$CXX -E" "/lib/cpp"
4100 ac_preproc_ok=false
4101 for ac_cxx_preproc_warn_flag in '' yes
4103 # Use a header file that comes with gcc, so configuring glibc
4104 # with a fresh cross-compiler works.
4105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4106 # <limits.h> exists even on freestanding compilers.
4107 # On the NeXT, cc -E runs the code through the compiler's parser,
4108 # not just through cpp. "Syntax error" is here to catch this case.
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 #ifdef __STDC__
4112 # include <limits.h>
4113 #else
4114 # include <assert.h>
4115 #endif
4116 Syntax error
4117 _ACEOF
4118 if ac_fn_cxx_try_cpp "$LINENO"; then :
4120 else
4121 # Broken: fails on valid input.
4122 continue
4124 rm -f conftest.err conftest.$ac_ext
4126 # OK, works on sane cases. Now check whether nonexistent headers
4127 # can be detected and how.
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #include <ac_nonexistent.h>
4131 _ACEOF
4132 if ac_fn_cxx_try_cpp "$LINENO"; then :
4133 # Broken: success on invalid input.
4134 continue
4135 else
4136 # Passes both tests.
4137 ac_preproc_ok=:
4138 break
4140 rm -f conftest.err conftest.$ac_ext
4142 done
4143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4144 rm -f conftest.err conftest.$ac_ext
4145 if $ac_preproc_ok; then :
4146 break
4149 done
4150 ac_cv_prog_CXXCPP=$CXXCPP
4153 CXXCPP=$ac_cv_prog_CXXCPP
4154 else
4155 ac_cv_prog_CXXCPP=$CXXCPP
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4158 $as_echo "$CXXCPP" >&6; }
4159 ac_preproc_ok=false
4160 for ac_cxx_preproc_warn_flag in '' yes
4162 # Use a header file that comes with gcc, so configuring glibc
4163 # with a fresh cross-compiler works.
4164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4165 # <limits.h> exists even on freestanding compilers.
4166 # On the NeXT, cc -E runs the code through the compiler's parser,
4167 # not just through cpp. "Syntax error" is here to catch this case.
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170 #ifdef __STDC__
4171 # include <limits.h>
4172 #else
4173 # include <assert.h>
4174 #endif
4175 Syntax error
4176 _ACEOF
4177 if ac_fn_cxx_try_cpp "$LINENO"; then :
4179 else
4180 # Broken: fails on valid input.
4181 continue
4183 rm -f conftest.err conftest.$ac_ext
4185 # OK, works on sane cases. Now check whether nonexistent headers
4186 # can be detected and how.
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <ac_nonexistent.h>
4190 _ACEOF
4191 if ac_fn_cxx_try_cpp "$LINENO"; then :
4192 # Broken: success on invalid input.
4193 continue
4194 else
4195 # Passes both tests.
4196 ac_preproc_ok=:
4197 break
4199 rm -f conftest.err conftest.$ac_ext
4201 done
4202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4203 rm -f conftest.err conftest.$ac_ext
4204 if $ac_preproc_ok; then :
4206 else
4207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4209 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4210 See \`config.log' for more details." "$LINENO" 5; }
4213 ac_ext=c
4214 ac_cpp='$CPP $CPPFLAGS'
4215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219 ac_ext=c
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_CC+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -n "$CC"; then
4233 ac_cv_prog_CC="$CC" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4248 IFS=$as_save_IFS
4252 CC=$ac_cv_prog_CC
4253 if test -n "$CC"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4255 $as_echo "$CC" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4263 if test -z "$ac_cv_prog_CC"; then
4264 ac_ct_CC=$CC
4265 # Extract the first word of "gcc", so it can be a program name with args.
4266 set dummy gcc; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$ac_ct_CC"; then
4273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_CC="gcc"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4293 if test -n "$ac_ct_CC"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4295 $as_echo "$ac_ct_CC" >&6; }
4296 else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4301 if test "x$ac_ct_CC" = x; then
4302 CC=""
4303 else
4304 case $cross_compiling:$ac_tool_warned in
4305 yes:)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308 ac_tool_warned=yes ;;
4309 esac
4310 CC=$ac_ct_CC
4312 else
4313 CC="$ac_cv_prog_CC"
4316 if test -z "$CC"; then
4317 if test -n "$ac_tool_prefix"; then
4318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4319 set dummy ${ac_tool_prefix}cc; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_CC+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 if test -n "$CC"; then
4326 ac_cv_prog_CC="$CC" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_prog_CC="${ac_tool_prefix}cc"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4339 done
4340 done
4341 IFS=$as_save_IFS
4345 CC=$ac_cv_prog_CC
4346 if test -n "$CC"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4348 $as_echo "$CC" >&6; }
4349 else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4357 if test -z "$CC"; then
4358 # Extract the first word of "cc", so it can be a program name with args.
4359 set dummy cc; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CC+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 if test -n "$CC"; then
4366 ac_cv_prog_CC="$CC" # Let the user override the test.
4367 else
4368 ac_prog_rejected=no
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4377 ac_prog_rejected=yes
4378 continue
4380 ac_cv_prog_CC="cc"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4384 done
4385 done
4386 IFS=$as_save_IFS
4388 if test $ac_prog_rejected = yes; then
4389 # We found a bogon in the path, so make sure we never use it.
4390 set dummy $ac_cv_prog_CC
4391 shift
4392 if test $# != 0; then
4393 # We chose a different compiler from the bogus one.
4394 # However, it has the same basename, so the bogon will be chosen
4395 # first if we set CC to just the basename; use the full file name.
4396 shift
4397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4402 CC=$ac_cv_prog_CC
4403 if test -n "$CC"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4405 $as_echo "$CC" >&6; }
4406 else
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4413 if test -z "$CC"; then
4414 if test -n "$ac_tool_prefix"; then
4415 for ac_prog in cl.exe
4417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4420 $as_echo_n "checking for $ac_word... " >&6; }
4421 if test "${ac_cv_prog_CC+set}" = set; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 if test -n "$CC"; then
4425 ac_cv_prog_CC="$CC" # Let the user override the test.
4426 else
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4438 done
4439 done
4440 IFS=$as_save_IFS
4444 CC=$ac_cv_prog_CC
4445 if test -n "$CC"; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4447 $as_echo "$CC" >&6; }
4448 else
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4454 test -n "$CC" && break
4455 done
4457 if test -z "$CC"; then
4458 ac_ct_CC=$CC
4459 for ac_prog in cl.exe
4461 # Extract the first word of "$ac_prog", so it can be a program name with args.
4462 set dummy $ac_prog; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -n "$ac_ct_CC"; then
4469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_prog_ac_ct_CC="$ac_prog"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4482 done
4483 done
4484 IFS=$as_save_IFS
4488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4489 if test -n "$ac_ct_CC"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4491 $as_echo "$ac_ct_CC" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4498 test -n "$ac_ct_CC" && break
4499 done
4501 if test "x$ac_ct_CC" = x; then
4502 CC=""
4503 else
4504 case $cross_compiling:$ac_tool_warned in
4505 yes:)
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4508 ac_tool_warned=yes ;;
4509 esac
4510 CC=$ac_ct_CC
4517 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519 as_fn_error "no acceptable C compiler found in \$PATH
4520 See \`config.log' for more details." "$LINENO" 5; }
4522 # Provide some information about the compiler.
4523 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4524 set X $ac_compile
4525 ac_compiler=$2
4526 for ac_option in --version -v -V -qversion; do
4527 { { ac_try="$ac_compiler $ac_option >&5"
4528 case "(($ac_try" in
4529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530 *) ac_try_echo=$ac_try;;
4531 esac
4532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533 $as_echo "$ac_try_echo"; } >&5
4534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4535 ac_status=$?
4536 if test -s conftest.err; then
4537 sed '10a\
4538 ... rest of stderr output deleted ...
4539 10q' conftest.err >conftest.er1
4540 cat conftest.er1 >&5
4542 rm -f conftest.er1 conftest.err
4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }
4545 done
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4548 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4549 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553 /* end confdefs.h. */
4556 main ()
4558 #ifndef __GNUC__
4559 choke me
4560 #endif
4563 return 0;
4565 _ACEOF
4566 if ac_fn_c_try_compile "$LINENO"; then :
4567 ac_compiler_gnu=yes
4568 else
4569 ac_compiler_gnu=no
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4576 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4577 if test $ac_compiler_gnu = yes; then
4578 GCC=yes
4579 else
4580 GCC=
4582 ac_test_CFLAGS=${CFLAGS+set}
4583 ac_save_CFLAGS=$CFLAGS
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4585 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4586 if test "${ac_cv_prog_cc_g+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 ac_save_c_werror_flag=$ac_c_werror_flag
4590 ac_c_werror_flag=yes
4591 ac_cv_prog_cc_g=no
4592 CFLAGS="-g"
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4597 main ()
4601 return 0;
4603 _ACEOF
4604 if ac_fn_c_try_compile "$LINENO"; then :
4605 ac_cv_prog_cc_g=yes
4606 else
4607 CFLAGS=""
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4612 main ()
4616 return 0;
4618 _ACEOF
4619 if ac_fn_c_try_compile "$LINENO"; then :
4621 else
4622 ac_c_werror_flag=$ac_save_c_werror_flag
4623 CFLAGS="-g"
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4628 main ()
4632 return 0;
4634 _ACEOF
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636 ac_cv_prog_cc_g=yes
4638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 ac_c_werror_flag=$ac_save_c_werror_flag
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4646 $as_echo "$ac_cv_prog_cc_g" >&6; }
4647 if test "$ac_test_CFLAGS" = set; then
4648 CFLAGS=$ac_save_CFLAGS
4649 elif test $ac_cv_prog_cc_g = yes; then
4650 if test "$GCC" = yes; then
4651 CFLAGS="-g -O2"
4652 else
4653 CFLAGS="-g"
4655 else
4656 if test "$GCC" = yes; then
4657 CFLAGS="-O2"
4658 else
4659 CFLAGS=
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4663 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4664 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 ac_cv_prog_cc_c89=no
4668 ac_save_CC=$CC
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4671 #include <stdarg.h>
4672 #include <stdio.h>
4673 #include <sys/types.h>
4674 #include <sys/stat.h>
4675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4676 struct buf { int x; };
4677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4678 static char *e (p, i)
4679 char **p;
4680 int i;
4682 return p[i];
4684 static char *f (char * (*g) (char **, int), char **p, ...)
4686 char *s;
4687 va_list v;
4688 va_start (v,p);
4689 s = g (p, va_arg (v,int));
4690 va_end (v);
4691 return s;
4694 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4695 function prototypes and stuff, but not '\xHH' hex character constants.
4696 These don't provoke an error unfortunately, instead are silently treated
4697 as 'x'. The following induces an error, until -std is added to get
4698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4699 array size at least. It's necessary to write '\x00'==0 to get something
4700 that's true only with -std. */
4701 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4703 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4704 inside strings and character constants. */
4705 #define FOO(x) 'x'
4706 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4708 int test (int i, double x);
4709 struct s1 {int (*f) (int a);};
4710 struct s2 {int (*f) (double a);};
4711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4712 int argc;
4713 char **argv;
4715 main ()
4717 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4719 return 0;
4721 _ACEOF
4722 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4725 CC="$ac_save_CC $ac_arg"
4726 if ac_fn_c_try_compile "$LINENO"; then :
4727 ac_cv_prog_cc_c89=$ac_arg
4729 rm -f core conftest.err conftest.$ac_objext
4730 test "x$ac_cv_prog_cc_c89" != "xno" && break
4731 done
4732 rm -f conftest.$ac_ext
4733 CC=$ac_save_CC
4736 # AC_CACHE_VAL
4737 case "x$ac_cv_prog_cc_c89" in
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4740 $as_echo "none needed" >&6; } ;;
4741 xno)
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4743 $as_echo "unsupported" >&6; } ;;
4745 CC="$CC $ac_cv_prog_cc_c89"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4747 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4748 esac
4749 if test "x$ac_cv_prog_cc_c89" != xno; then :
4753 ac_ext=c
4754 ac_cpp='$CPP $CPPFLAGS'
4755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759 depcc="$CC" am_compiler_list=
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4762 $as_echo_n "checking dependency style of $depcc... " >&6; }
4763 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4767 # We make a subdir and do the tests there. Otherwise we can end up
4768 # making bogus files that we don't know about and never remove. For
4769 # instance it was reported that on HP-UX the gcc test will end up
4770 # making a dummy file named `D' -- because `-MD' means `put the output
4771 # in D'.
4772 mkdir conftest.dir
4773 # Copy depcomp to subdir because otherwise we won't find it if we're
4774 # using a relative directory.
4775 cp "$am_depcomp" conftest.dir
4776 cd conftest.dir
4777 # We will build objects and dependencies in a subdirectory because
4778 # it helps to detect inapplicable dependency modes. For instance
4779 # both Tru64's cc and ICC support -MD to output dependencies as a
4780 # side effect of compilation, but ICC will put the dependencies in
4781 # the current directory while Tru64 will put them in the object
4782 # directory.
4783 mkdir sub
4785 am_cv_CC_dependencies_compiler_type=none
4786 if test "$am_compiler_list" = ""; then
4787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4789 am__universal=false
4790 case " $depcc " in #(
4791 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4792 esac
4794 for depmode in $am_compiler_list; do
4795 # Setup a source with many dependencies, because some compilers
4796 # like to wrap large dependency lists on column 80 (with \), and
4797 # we should not choose a depcomp mode which is confused by this.
4799 # We need to recreate these files for each test, as the compiler may
4800 # overwrite some of them when testing with obscure command lines.
4801 # This happens at least with the AIX C compiler.
4802 : > sub/conftest.c
4803 for i in 1 2 3 4 5 6; do
4804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4806 # Solaris 8's {/usr,}/bin/sh.
4807 touch sub/conftst$i.h
4808 done
4809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4811 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4812 # mode. It turns out that the SunPro C++ compiler does not properly
4813 # handle `-M -o', and we need to detect this. Also, some Intel
4814 # versions had trouble with output in subdirs
4815 am__obj=sub/conftest.${OBJEXT-o}
4816 am__minus_obj="-o $am__obj"
4817 case $depmode in
4818 gcc)
4819 # This depmode causes a compiler race in universal mode.
4820 test "$am__universal" = false || continue
4822 nosideeffect)
4823 # after this tag, mechanisms are not by side-effect, so they'll
4824 # only be used when explicitly requested
4825 if test "x$enable_dependency_tracking" = xyes; then
4826 continue
4827 else
4828 break
4831 msvisualcpp | msvcmsys)
4832 # This compiler won't grok `-c -o', but also, the minuso test has
4833 # not run yet. These depmodes are late enough in the game, and
4834 # so weak that their functioning should not be impacted.
4835 am__obj=conftest.${OBJEXT-o}
4836 am__minus_obj=
4838 none) break ;;
4839 esac
4840 if depmode=$depmode \
4841 source=sub/conftest.c object=$am__obj \
4842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4844 >/dev/null 2>conftest.err &&
4845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4849 # icc doesn't choke on unknown options, it will just issue warnings
4850 # or remarks (even with -Werror). So we grep stderr for any message
4851 # that says an option was ignored or not supported.
4852 # When given -MP, icc 7.0 and 7.1 complain thusly:
4853 # icc: Command line warning: ignoring option '-M'; no argument required
4854 # The diagnosis changed in icc 8.0:
4855 # icc: Command line remark: option '-MP' not supported
4856 if (grep 'ignoring option' conftest.err ||
4857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4858 am_cv_CC_dependencies_compiler_type=$depmode
4859 break
4862 done
4864 cd ..
4865 rm -rf conftest.dir
4866 else
4867 am_cv_CC_dependencies_compiler_type=none
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4872 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4873 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4876 test "x$enable_dependency_tracking" != xno \
4877 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4878 am__fastdepCC_TRUE=
4879 am__fastdepCC_FALSE='#'
4880 else
4881 am__fastdepCC_TRUE='#'
4882 am__fastdepCC_FALSE=
4886 ac_ext=c
4887 ac_cpp='$CPP $CPPFLAGS'
4888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4892 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4893 # On Suns, sometimes $CPP names a directory.
4894 if test -n "$CPP" && test -d "$CPP"; then
4895 CPP=
4897 if test -z "$CPP"; then
4898 if test "${ac_cv_prog_CPP+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 # Double quotes because CPP needs to be expanded
4902 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4904 ac_preproc_ok=false
4905 for ac_c_preproc_warn_flag in '' yes
4907 # Use a header file that comes with gcc, so configuring glibc
4908 # with a fresh cross-compiler works.
4909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4910 # <limits.h> exists even on freestanding compilers.
4911 # On the NeXT, cc -E runs the code through the compiler's parser,
4912 # not just through cpp. "Syntax error" is here to catch this case.
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 #ifdef __STDC__
4916 # include <limits.h>
4917 #else
4918 # include <assert.h>
4919 #endif
4920 Syntax error
4921 _ACEOF
4922 if ac_fn_c_try_cpp "$LINENO"; then :
4924 else
4925 # Broken: fails on valid input.
4926 continue
4928 rm -f conftest.err conftest.$ac_ext
4930 # OK, works on sane cases. Now check whether nonexistent headers
4931 # can be detected and how.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #include <ac_nonexistent.h>
4935 _ACEOF
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4937 # Broken: success on invalid input.
4938 continue
4939 else
4940 # Passes both tests.
4941 ac_preproc_ok=:
4942 break
4944 rm -f conftest.err conftest.$ac_ext
4946 done
4947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948 rm -f conftest.err conftest.$ac_ext
4949 if $ac_preproc_ok; then :
4950 break
4953 done
4954 ac_cv_prog_CPP=$CPP
4957 CPP=$ac_cv_prog_CPP
4958 else
4959 ac_cv_prog_CPP=$CPP
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4962 $as_echo "$CPP" >&6; }
4963 ac_preproc_ok=false
4964 for ac_c_preproc_warn_flag in '' yes
4966 # Use a header file that comes with gcc, so configuring glibc
4967 # with a fresh cross-compiler works.
4968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4969 # <limits.h> exists even on freestanding compilers.
4970 # On the NeXT, cc -E runs the code through the compiler's parser,
4971 # not just through cpp. "Syntax error" is here to catch this case.
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4974 #ifdef __STDC__
4975 # include <limits.h>
4976 #else
4977 # include <assert.h>
4978 #endif
4979 Syntax error
4980 _ACEOF
4981 if ac_fn_c_try_cpp "$LINENO"; then :
4983 else
4984 # Broken: fails on valid input.
4985 continue
4987 rm -f conftest.err conftest.$ac_ext
4989 # OK, works on sane cases. Now check whether nonexistent headers
4990 # can be detected and how.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #include <ac_nonexistent.h>
4994 _ACEOF
4995 if ac_fn_c_try_cpp "$LINENO"; then :
4996 # Broken: success on invalid input.
4997 continue
4998 else
4999 # Passes both tests.
5000 ac_preproc_ok=:
5001 break
5003 rm -f conftest.err conftest.$ac_ext
5005 done
5006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5007 rm -f conftest.err conftest.$ac_ext
5008 if $ac_preproc_ok; then :
5010 else
5011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5013 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5014 See \`config.log' for more details." "$LINENO" 5; }
5017 ac_ext=c
5018 ac_cpp='$CPP $CPPFLAGS'
5019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023 ac_build_prefix=
5024 test -n "$build_alias" && ac_build_prefix=$build_alias-
5026 if test "$cross_compiling" = yes; then :
5028 # Even if we're cross-compiling, we want a compiler here
5029 # that is not a cross-compiler.
5030 saved_cross=$cross_compiling
5031 cross_compiling=no
5033 ac_ext=c
5034 ac_cpp='$CPP $BUILD_CPPFLAGS'
5035 ac_compile='$BUILD_CC -c $BUILD_CFLAGS $BUILD_CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$BUILD_CC -o conftest$ac_build_exeext $BUILD_CFLAGS $BUILD_CPPFLAGS $BUILD_LDFLAGS conftest.$ac_ext $BUILD_LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038 if test -n "$ac_build_prefix"; then
5039 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5040 set dummy ${ac_build_prefix}gcc; ac_word=$2
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$BUILD_CC"; then
5047 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5062 IFS=$as_save_IFS
5066 BUILD_CC=$ac_cv_prog_BUILD_CC
5067 if test -n "$BUILD_CC"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5069 $as_echo "$BUILD_CC" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5077 if test -z "$ac_cv_prog_BUILD_CC"; then
5078 ac_ct_BUILD_CC=$BUILD_CC
5079 # Extract the first word of "gcc", so it can be a program name with args.
5080 set dummy gcc; ac_word=$2
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082 $as_echo_n "checking for $ac_word... " >&6; }
5083 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 if test -n "$ac_ct_BUILD_CC"; then
5087 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5088 else
5089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5092 IFS=$as_save_IFS
5093 test -z "$as_dir" && as_dir=.
5094 for ac_exec_ext in '' $ac_executable_extensions; do
5095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096 ac_cv_prog_ac_ct_BUILD_CC="gcc"
5097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098 break 2
5100 done
5101 done
5102 IFS=$as_save_IFS
5106 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5107 if test -n "$ac_ct_BUILD_CC"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5109 $as_echo "$ac_ct_BUILD_CC" >&6; }
5110 else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5115 if test "x$ac_ct_BUILD_CC" = x; then
5116 BUILD_CC=""
5117 else
5118 case $cross_compiling:$ac_tool_warned in
5119 yes:)
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5122 ac_tool_warned=yes ;;
5123 esac
5124 BUILD_CC=$ac_ct_BUILD_CC
5126 else
5127 BUILD_CC="$ac_cv_prog_BUILD_CC"
5130 if test -z "$BUILD_CC"; then
5131 if test -n "$ac_build_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5133 set dummy ${ac_build_prefix}cc; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$BUILD_CC"; then
5140 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_BUILD_CC="${ac_build_prefix}cc"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5153 done
5154 done
5155 IFS=$as_save_IFS
5159 BUILD_CC=$ac_cv_prog_BUILD_CC
5160 if test -n "$BUILD_CC"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5162 $as_echo "$BUILD_CC" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5170 if test -z "$ac_cv_prog_BUILD_CC"; then
5171 ac_ct_BUILD_CC=$BUILD_CC
5172 # Extract the first word of "cc", so it can be a program name with args.
5173 set dummy cc; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ac_ct_BUILD_CC"; then
5180 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_prog_ac_ct_BUILD_CC="cc"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5200 if test -n "$ac_ct_BUILD_CC"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5202 $as_echo "$ac_ct_BUILD_CC" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5208 if test "x$ac_ct_BUILD_CC" = x; then
5209 BUILD_CC=""
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212 yes:)
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217 BUILD_CC=$ac_ct_BUILD_CC
5219 else
5220 BUILD_CC="$ac_cv_prog_BUILD_CC"
5224 if test -z "$BUILD_CC"; then
5225 # Extract the first word of "cc", so it can be a program name with args.
5226 set dummy cc; ac_word=$2
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228 $as_echo_n "checking for $ac_word... " >&6; }
5229 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 if test -n "$BUILD_CC"; then
5233 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5234 else
5235 ac_prog_rejected=no
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5244 ac_prog_rejected=yes
5245 continue
5247 ac_cv_prog_BUILD_CC="cc"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5251 done
5252 done
5253 IFS=$as_save_IFS
5255 if test $ac_prog_rejected = yes; then
5256 # We found a bogon in the path, so make sure we never use it.
5257 set dummy $ac_cv_prog_BUILD_CC
5258 shift
5259 if test $# != 0; then
5260 # We chose a different compiler from the bogus one.
5261 # However, it has the same basename, so the bogon will be chosen
5262 # first if we set BUILD_CC to just the basename; use the full file name.
5263 shift
5264 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
5269 BUILD_CC=$ac_cv_prog_BUILD_CC
5270 if test -n "$BUILD_CC"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5272 $as_echo "$BUILD_CC" >&6; }
5273 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5280 if test -z "$BUILD_CC"; then
5281 if test -n "$ac_build_prefix"; then
5282 for ac_prog in cl
5284 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5285 set dummy $ac_build_prefix$ac_prog; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 if test -n "$BUILD_CC"; then
5292 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_prog_BUILD_CC="$ac_build_prefix$ac_prog"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5311 BUILD_CC=$ac_cv_prog_BUILD_CC
5312 if test -n "$BUILD_CC"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
5314 $as_echo "$BUILD_CC" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5321 test -n "$BUILD_CC" && break
5322 done
5324 if test -z "$BUILD_CC"; then
5325 ac_ct_BUILD_CC=$BUILD_CC
5326 for ac_prog in cl
5328 # Extract the first word of "$ac_prog", so it can be a program name with args.
5329 set dummy $ac_prog; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if test "${ac_cv_prog_ac_ct_BUILD_CC+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 if test -n "$ac_ct_BUILD_CC"; then
5336 ac_cv_prog_ac_ct_BUILD_CC="$ac_ct_BUILD_CC" # Let the user override the test.
5337 else
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345 ac_cv_prog_ac_ct_BUILD_CC="$ac_prog"
5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
5349 done
5350 done
5351 IFS=$as_save_IFS
5355 ac_ct_BUILD_CC=$ac_cv_prog_ac_ct_BUILD_CC
5356 if test -n "$ac_ct_BUILD_CC"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_BUILD_CC" >&5
5358 $as_echo "$ac_ct_BUILD_CC" >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5365 test -n "$ac_ct_BUILD_CC" && break
5366 done
5368 if test "x$ac_ct_BUILD_CC" = x; then
5369 BUILD_CC=""
5370 else
5371 case $cross_compiling:$ac_tool_warned in
5372 yes:)
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375 ac_tool_warned=yes ;;
5376 esac
5377 BUILD_CC=$ac_ct_BUILD_CC
5384 test -z "$BUILD_CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5386 as_fn_error "no acceptable C compiler found in \$PATH
5387 See \`config.log' for more details." "$LINENO" 5; }
5389 # Provide some information about the compiler.
5390 echo "$as_me:$LINENO:" \
5391 "checking for C compiler version" >&5
5392 ac_compiler=`set X $ac_compile; echo $2`
5393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler --version </dev/null >&5\""; } >&5
5394 (eval $ac_compiler --version </dev/null >&5) 2>&5
5395 ac_status=$?
5396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5397 test $ac_status = 0; }
5398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -v </dev/null >&5\""; } >&5
5399 (eval $ac_compiler -v </dev/null >&5) 2>&5
5400 ac_status=$?
5401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5402 test $ac_status = 0; }
5403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compiler -V </dev/null >&5\""; } >&5
5404 (eval $ac_compiler -V </dev/null >&5) 2>&5
5405 ac_status=$?
5406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5407 test $ac_status = 0; }
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5413 main ()
5417 return 0;
5419 _ACEOF
5420 ac_clean_files_save=$ac_clean_files
5421 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5422 # Try to create an executable without -o first, disregard a.out.
5423 # It will help us diagnose broken compilers, and finding out an intuition
5424 # of exeext.
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5426 $as_echo_n "checking whether the C compiler works... " >&6; }
5427 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5429 # The possible output files:
5430 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5432 ac_rmfiles=
5433 for ac_file in $ac_files
5435 case $ac_file in
5436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5437 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5438 esac
5439 done
5440 rm -f $ac_rmfiles
5442 if { { ac_try="$ac_link_default"
5443 case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5446 esac
5447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5448 $as_echo "$ac_try_echo"; } >&5
5449 (eval "$ac_link_default") 2>&5
5450 ac_status=$?
5451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5452 test $ac_status = 0; }; then :
5453 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5454 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5455 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5456 # so that the user can short-circuit this test for compilers unknown to
5457 # Autoconf.
5458 for ac_file in $ac_files ''
5460 test -f "$ac_file" || continue
5461 case $ac_file in
5462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5464 [ab].out )
5465 # We found the default executable, but exeext='' is most
5466 # certainly right.
5467 break;;
5468 *.* )
5469 if test "${ac_cv_build_exeext+set}" = set && test "$ac_cv_build_exeext" != no;
5470 then :; else
5471 ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5473 # We set ac_cv_exeext here because the later test for it is not
5474 # safe: cross compilers may not add the suffix if given an `-o'
5475 # argument, so we may need to know it at that point already.
5476 # Even if this section looks crufty: it has the advantage of
5477 # actually working.
5478 break;;
5480 break;;
5481 esac
5482 done
5483 test "$ac_cv_build_exeext" = no && ac_cv_build_exeext=
5485 else
5486 ac_file=''
5488 if test -z "$ac_file"; then :
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5491 $as_echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5496 { as_fn_set_status 77
5497 as_fn_error "C compiler cannot create executables
5498 See \`config.log' for more details." "$LINENO" 5; }; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5501 $as_echo "yes" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5504 $as_echo_n "checking for C compiler default output file name... " >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5506 $as_echo "$ac_file" >&6; }
5507 ac_build_exeext=$ac_cv_build_exeext
5509 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_build_exeext b.out
5510 ac_clean_files=$ac_clean_files_save
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5512 $as_echo_n "checking for suffix of executables... " >&6; }
5513 if { { ac_try="$ac_link"
5514 case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5519 $as_echo "$ac_try_echo"; } >&5
5520 (eval "$ac_link") 2>&5
5521 ac_status=$?
5522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5523 test $ac_status = 0; }; then :
5524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5525 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5526 # work properly (i.e., refer to `conftest.exe'), while it won't with
5527 # `rm'.
5528 for ac_file in conftest.exe conftest conftest.*; do
5529 test -f "$ac_file" || continue
5530 case $ac_file in
5531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5532 *.* ) ac_cv_build_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5533 break;;
5534 * ) break;;
5535 esac
5536 done
5537 else
5538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5540 as_fn_error "cannot compute suffix of executables: cannot compile and link
5541 See \`config.log' for more details." "$LINENO" 5; }
5543 rm -f conftest conftest$ac_cv_build_exeext
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_exeext" >&5
5545 $as_echo "$ac_cv_build_exeext" >&6; }
5547 rm -f conftest.$ac_ext
5548 BUILD_EXEEXT=$ac_cv_build_exeext
5549 ac_build_exeext=$BUILD_EXEEXT
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <stdio.h>
5554 main ()
5556 FILE *f = fopen ("conftest.out", "w");
5557 return ferror (f) || fclose (f) != 0;
5560 return 0;
5562 _ACEOF
5563 ac_clean_files="$ac_clean_files conftest.out"
5564 # Check that the compiler produces executables we can run. If not, either
5565 # the compiler is broken, or we cross compile.
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5567 $as_echo_n "checking whether we are cross compiling... " >&6; }
5568 if test "$cross_compiling" != yes; then
5569 { { ac_try="$ac_link"
5570 case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573 esac
5574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5575 $as_echo "$ac_try_echo"; } >&5
5576 (eval "$ac_link") 2>&5
5577 ac_status=$?
5578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5579 test $ac_status = 0; }
5580 if { ac_try='./conftest$ac_cv_build_exeext'
5581 { { case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5586 $as_echo "$ac_try_echo"; } >&5
5587 (eval "$ac_try") 2>&5
5588 ac_status=$?
5589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5590 test $ac_status = 0; }; }; then
5591 cross_compiling=no
5592 else
5593 if test "$cross_compiling" = maybe; then
5594 cross_compiling=yes
5595 else
5596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5598 as_fn_error "cannot run C compiled programs.
5599 If you meant to cross compile, use \`--host'.
5600 See \`config.log' for more details." "$LINENO" 5; }
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5605 $as_echo "$cross_compiling" >&6; }
5607 rm -f conftest.$ac_ext conftest$ac_cv_build_exeext conftest.out
5608 ac_clean_files=$ac_clean_files_save
5611 # Restore configuration environment
5612 cross_compiling=$saved_cross
5614 ac_ext=c
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5620 else
5621 BUILD_CC="$CC" ; BUILD_EXEEXT=$EXEEXT
5623 CFLAGS="$mule_backup_CFLAGS"
5624 CXXFLAGS="$mule_backup_CXXFLAGS"
5625 BUILD_CFLAGS="$mule_backup_BUILD_CFLAGS"
5626 for ac_prog in gawk mawk nawk awk
5628 # Extract the first word of "$ac_prog", so it can be a program name with args.
5629 set dummy $ac_prog; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if test "${ac_cv_prog_AWK+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -n "$AWK"; then
5636 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_prog_AWK="$ac_prog"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5649 done
5650 done
5651 IFS=$as_save_IFS
5655 AWK=$ac_cv_prog_AWK
5656 if test -n "$AWK"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5658 $as_echo "$AWK" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5665 test -n "$AWK" && break
5666 done
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5669 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5670 if test "${ac_cv_path_GREP+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -z "$GREP"; then
5674 ac_path_GREP_found=false
5675 # Loop through the user's path and test for each of PROGNAME-LIST
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_prog in grep ggrep; do
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5684 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5685 # Check for GNU ac_path_GREP and select it if it is found.
5686 # Check for GNU $ac_path_GREP
5687 case `"$ac_path_GREP" --version 2>&1` in
5688 *GNU*)
5689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5691 ac_count=0
5692 $as_echo_n 0123456789 >"conftest.in"
5693 while :
5695 cat "conftest.in" "conftest.in" >"conftest.tmp"
5696 mv "conftest.tmp" "conftest.in"
5697 cp "conftest.in" "conftest.nl"
5698 $as_echo 'GREP' >> "conftest.nl"
5699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5701 as_fn_arith $ac_count + 1 && ac_count=$as_val
5702 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5703 # Best one so far, save it but keep looking for a better one
5704 ac_cv_path_GREP="$ac_path_GREP"
5705 ac_path_GREP_max=$ac_count
5707 # 10*(2^10) chars as input seems more than enough
5708 test $ac_count -gt 10 && break
5709 done
5710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5711 esac
5713 $ac_path_GREP_found && break 3
5714 done
5715 done
5716 done
5717 IFS=$as_save_IFS
5718 if test -z "$ac_cv_path_GREP"; then
5719 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5721 else
5722 ac_cv_path_GREP=$GREP
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5727 $as_echo "$ac_cv_path_GREP" >&6; }
5728 GREP="$ac_cv_path_GREP"
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5732 $as_echo_n "checking for egrep... " >&6; }
5733 if test "${ac_cv_path_EGREP+set}" = set; then :
5734 $as_echo_n "(cached) " >&6
5735 else
5736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5737 then ac_cv_path_EGREP="$GREP -E"
5738 else
5739 if test -z "$EGREP"; then
5740 ac_path_EGREP_found=false
5741 # Loop through the user's path and test for each of PROGNAME-LIST
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 for ac_prog in egrep; do
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5750 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5751 # Check for GNU ac_path_EGREP and select it if it is found.
5752 # Check for GNU $ac_path_EGREP
5753 case `"$ac_path_EGREP" --version 2>&1` in
5754 *GNU*)
5755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5757 ac_count=0
5758 $as_echo_n 0123456789 >"conftest.in"
5759 while :
5761 cat "conftest.in" "conftest.in" >"conftest.tmp"
5762 mv "conftest.tmp" "conftest.in"
5763 cp "conftest.in" "conftest.nl"
5764 $as_echo 'EGREP' >> "conftest.nl"
5765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5767 as_fn_arith $ac_count + 1 && ac_count=$as_val
5768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5769 # Best one so far, save it but keep looking for a better one
5770 ac_cv_path_EGREP="$ac_path_EGREP"
5771 ac_path_EGREP_max=$ac_count
5773 # 10*(2^10) chars as input seems more than enough
5774 test $ac_count -gt 10 && break
5775 done
5776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5777 esac
5779 $ac_path_EGREP_found && break 3
5780 done
5781 done
5782 done
5783 IFS=$as_save_IFS
5784 if test -z "$ac_cv_path_EGREP"; then
5785 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5787 else
5788 ac_cv_path_EGREP=$EGREP
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5794 $as_echo "$ac_cv_path_EGREP" >&6; }
5795 EGREP="$ac_cv_path_EGREP"
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5799 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5800 set x ${MAKE-make}
5801 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5802 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 cat >conftest.make <<\_ACEOF
5806 SHELL = /bin/sh
5807 all:
5808 @echo '@@@%%%=$(MAKE)=@@@%%%'
5809 _ACEOF
5810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5812 *@@@%%%=?*=@@@%%%*)
5813 eval ac_cv_prog_make_${ac_make}_set=yes;;
5815 eval ac_cv_prog_make_${ac_make}_set=no;;
5816 esac
5817 rm -f conftest.make
5819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5821 $as_echo "yes" >&6; }
5822 SET_MAKE=
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 SET_MAKE="MAKE=${MAKE-make}"
5830 for ac_prog in flex lex
5832 # Extract the first word of "$ac_prog", so it can be a program name with args.
5833 set dummy $ac_prog; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if test "${ac_cv_prog_LEX+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$LEX"; then
5840 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5849 ac_cv_prog_LEX="$ac_prog"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5853 done
5854 done
5855 IFS=$as_save_IFS
5859 LEX=$ac_cv_prog_LEX
5860 if test -n "$LEX"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5862 $as_echo "$LEX" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5869 test -n "$LEX" && break
5870 done
5871 test -n "$LEX" || LEX=":"
5873 if test "x$LEX" != "x:"; then
5874 cat >conftest.l <<_ACEOF
5876 a { ECHO; }
5877 b { REJECT; }
5878 c { yymore (); }
5879 d { yyless (1); }
5880 e { yyless (input () != 0); }
5881 f { unput (yytext[0]); }
5882 . { BEGIN INITIAL; }
5884 #ifdef YYTEXT_POINTER
5885 extern char *yytext;
5886 #endif
5888 main (void)
5890 return ! yylex () + ! yywrap ();
5892 _ACEOF
5893 { { ac_try="$LEX conftest.l"
5894 case "(($ac_try" in
5895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896 *) ac_try_echo=$ac_try;;
5897 esac
5898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5899 $as_echo "$ac_try_echo"; } >&5
5900 (eval "$LEX conftest.l") 2>&5
5901 ac_status=$?
5902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5903 test $ac_status = 0; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5905 $as_echo_n "checking lex output file root... " >&6; }
5906 if test "${ac_cv_prog_lex_root+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5910 if test -f lex.yy.c; then
5911 ac_cv_prog_lex_root=lex.yy
5912 elif test -f lexyy.c; then
5913 ac_cv_prog_lex_root=lexyy
5914 else
5915 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5919 $as_echo "$ac_cv_prog_lex_root" >&6; }
5920 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5922 if test -z "${LEXLIB+set}"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5924 $as_echo_n "checking lex library... " >&6; }
5925 if test "${ac_cv_lib_lex+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5929 ac_save_LIBS=$LIBS
5930 ac_cv_lib_lex='none needed'
5931 for ac_lib in '' -lfl -ll; do
5932 LIBS="$ac_lib $ac_save_LIBS"
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 `cat $LEX_OUTPUT_ROOT.c`
5936 _ACEOF
5937 if ac_fn_c_try_link "$LINENO"; then :
5938 ac_cv_lib_lex=$ac_lib
5940 rm -f core conftest.err conftest.$ac_objext \
5941 conftest$ac_exeext conftest.$ac_ext
5942 test "$ac_cv_lib_lex" != 'none needed' && break
5943 done
5944 LIBS=$ac_save_LIBS
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5948 $as_echo "$ac_cv_lib_lex" >&6; }
5949 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5954 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5955 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5957 else
5958 # POSIX says lex can declare yytext either as a pointer or an array; the
5959 # default is implementation-dependent. Figure out which it is, since
5960 # not all implementations provide the %pointer and %array declarations.
5961 ac_cv_prog_lex_yytext_pointer=no
5962 ac_save_LIBS=$LIBS
5963 LIBS="$LEXLIB $ac_save_LIBS"
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 #define YYTEXT_POINTER 1
5967 `cat $LEX_OUTPUT_ROOT.c`
5968 _ACEOF
5969 if ac_fn_c_try_link "$LINENO"; then :
5970 ac_cv_prog_lex_yytext_pointer=yes
5972 rm -f core conftest.err conftest.$ac_objext \
5973 conftest$ac_exeext conftest.$ac_ext
5974 LIBS=$ac_save_LIBS
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5978 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5979 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5981 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5984 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5988 if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5990 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5995 else
5996 if test -n "$RANLIB"; then
5997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6002 IFS=$as_save_IFS
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 break 2
6010 done
6011 done
6012 IFS=$as_save_IFS
6016 RANLIB=$ac_cv_prog_RANLIB
6017 if test -n "$RANLIB"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6019 $as_echo "$RANLIB" >&6; }
6020 else
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6027 if test -z "$ac_cv_prog_RANLIB"; then
6028 ac_ct_RANLIB=$RANLIB
6029 # Extract the first word of "ranlib", so it can be a program name with args.
6030 set dummy ranlib; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$ac_ct_RANLIB"; then
6037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_ac_ct_RANLIB="ranlib"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6050 done
6051 done
6052 IFS=$as_save_IFS
6056 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6057 if test -n "$ac_ct_RANLIB"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6059 $as_echo "$ac_ct_RANLIB" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6065 if test "x$ac_ct_RANLIB" = x; then
6066 RANLIB=":"
6067 else
6068 case $cross_compiling:$ac_tool_warned in
6069 yes:)
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072 ac_tool_warned=yes ;;
6073 esac
6074 RANLIB=$ac_ct_RANLIB
6076 else
6077 RANLIB="$ac_cv_prog_RANLIB"
6080 for ac_prog in 'bison -y' byacc
6082 # Extract the first word of "$ac_prog", so it can be a program name with args.
6083 set dummy $ac_prog; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if test "${ac_cv_prog_YACC+set}" = set; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 if test -n "$YACC"; then
6090 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6091 else
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 for as_dir in $PATH
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6099 ac_cv_prog_YACC="$ac_prog"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6101 break 2
6103 done
6104 done
6105 IFS=$as_save_IFS
6109 YACC=$ac_cv_prog_YACC
6110 if test -n "$YACC"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6112 $as_echo "$YACC" >&6; }
6113 else
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6119 test -n "$YACC" && break
6120 done
6121 test -n "$YACC" || YACC="yacc"
6124 if test -n "$ac_tool_prefix"; then
6125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 if test -n "$RANLIB"; then
6133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6138 IFS=$as_save_IFS
6139 test -z "$as_dir" && as_dir=.
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144 break 2
6146 done
6147 done
6148 IFS=$as_save_IFS
6152 RANLIB=$ac_cv_prog_RANLIB
6153 if test -n "$RANLIB"; then
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6155 $as_echo "$RANLIB" >&6; }
6156 else
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6163 if test -z "$ac_cv_prog_RANLIB"; then
6164 ac_ct_RANLIB=$RANLIB
6165 # Extract the first word of "ranlib", so it can be a program name with args.
6166 set dummy ranlib; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 if test -n "$ac_ct_RANLIB"; then
6173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182 ac_cv_prog_ac_ct_RANLIB="ranlib"
6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 break 2
6186 done
6187 done
6188 IFS=$as_save_IFS
6192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6193 if test -n "$ac_ct_RANLIB"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6195 $as_echo "$ac_ct_RANLIB" >&6; }
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6201 if test "x$ac_ct_RANLIB" = x; then
6202 RANLIB=""
6203 else
6204 case $cross_compiling:$ac_tool_warned in
6205 yes:)
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208 ac_tool_warned=yes ;;
6209 esac
6210 RANLIB=$ac_ct_RANLIB
6212 else
6213 RANLIB="$ac_cv_prog_RANLIB"
6216 if test -n "$ac_tool_prefix"; then
6217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6218 set dummy ${ac_tool_prefix}strip; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if test "${ac_cv_prog_STRIP+set}" = set; then :
6222 $as_echo_n "(cached) " >&6
6223 else
6224 if test -n "$STRIP"; then
6225 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6238 done
6239 done
6240 IFS=$as_save_IFS
6244 STRIP=$ac_cv_prog_STRIP
6245 if test -n "$STRIP"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6247 $as_echo "$STRIP" >&6; }
6248 else
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6255 if test -z "$ac_cv_prog_STRIP"; then
6256 ac_ct_STRIP=$STRIP
6257 # Extract the first word of "strip", so it can be a program name with args.
6258 set dummy strip; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 if test -n "$ac_ct_STRIP"; then
6265 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_prog_ac_ct_STRIP="strip"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6278 done
6279 done
6280 IFS=$as_save_IFS
6284 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6285 if test -n "$ac_ct_STRIP"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6287 $as_echo "$ac_ct_STRIP" >&6; }
6288 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6293 if test "x$ac_ct_STRIP" = x; then
6294 STRIP=""
6295 else
6296 case $cross_compiling:$ac_tool_warned in
6297 yes:)
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned=yes ;;
6301 esac
6302 STRIP=$ac_ct_STRIP
6304 else
6305 STRIP="$ac_cv_prog_STRIP"
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}ar; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if test "${ac_cv_prog_AR+set}" = set; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if test -n "$AR"; then
6317 ac_cv_prog_AR="$AR" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_prog_AR="${ac_tool_prefix}ar"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6330 done
6331 done
6332 IFS=$as_save_IFS
6336 AR=$ac_cv_prog_AR
6337 if test -n "$AR"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6339 $as_echo "$AR" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6347 if test -z "$ac_cv_prog_AR"; then
6348 ac_ct_AR=$AR
6349 # Extract the first word of "ar", so it can be a program name with args.
6350 set dummy ar; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 if test -n "$ac_ct_AR"; then
6357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_ac_ct_AR="ar"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6370 done
6371 done
6372 IFS=$as_save_IFS
6376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6377 if test -n "$ac_ct_AR"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6379 $as_echo "$ac_ct_AR" >&6; }
6380 else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6385 if test "x$ac_ct_AR" = x; then
6386 AR=""
6387 else
6388 case $cross_compiling:$ac_tool_warned in
6389 yes:)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6393 esac
6394 AR=$ac_ct_AR
6396 else
6397 AR="$ac_cv_prog_AR"
6400 if test -n "$ac_tool_prefix"; then
6401 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6402 set dummy ${ac_tool_prefix}ld; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if test "${ac_cv_prog_LD+set}" = set; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 if test -n "$LD"; then
6409 ac_cv_prog_LD="$LD" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6418 ac_cv_prog_LD="${ac_tool_prefix}ld"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6422 done
6423 done
6424 IFS=$as_save_IFS
6428 LD=$ac_cv_prog_LD
6429 if test -n "$LD"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6431 $as_echo "$LD" >&6; }
6432 else
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6439 if test -z "$ac_cv_prog_LD"; then
6440 ac_ct_LD=$LD
6441 # Extract the first word of "ld", so it can be a program name with args.
6442 set dummy ld; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$ac_ct_LD"; then
6449 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_ac_ct_LD="ld"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6462 done
6463 done
6464 IFS=$as_save_IFS
6468 ac_ct_LD=$ac_cv_prog_ac_ct_LD
6469 if test -n "$ac_ct_LD"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6471 $as_echo "$ac_ct_LD" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6477 if test "x$ac_ct_LD" = x; then
6478 LD=""
6479 else
6480 case $cross_compiling:$ac_tool_warned in
6481 yes:)
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484 ac_tool_warned=yes ;;
6485 esac
6486 LD=$ac_ct_LD
6488 else
6489 LD="$ac_cv_prog_LD"
6493 # Check whether --enable-monolithic was given.
6494 if test "${enable_monolithic+set}" = set; then :
6495 enableval=$enable_monolithic;
6498 if test ${enable_monolithic:-yes} = yes; then
6499 MONOLITHIC_TRUE=
6500 MONOLITHIC_FALSE='#'
6501 else
6502 MONOLITHIC_TRUE='#'
6503 MONOLITHIC_FALSE=
6507 # Check whether --enable-amule-daemon was given.
6508 if test "${enable_amule_daemon+set}" = set; then :
6509 enableval=$enable_amule_daemon;
6512 if test ${enable_amule_daemon:-no} = yes; then
6513 AMULE_DAEMON_TRUE=
6514 AMULE_DAEMON_FALSE='#'
6515 else
6516 AMULE_DAEMON_TRUE='#'
6517 AMULE_DAEMON_FALSE=
6521 # Check whether --enable-amulecmd was given.
6522 if test "${enable_amulecmd+set}" = set; then :
6523 enableval=$enable_amulecmd;
6526 if test ${enable_amulecmd:-no} = yes; then
6527 COMPILE_CMD_TRUE=
6528 COMPILE_CMD_FALSE='#'
6529 else
6530 COMPILE_CMD_TRUE='#'
6531 COMPILE_CMD_FALSE=
6535 # Check whether --enable-webserver was given.
6536 if test "${enable_webserver+set}" = set; then :
6537 enableval=$enable_webserver;
6540 if test ${enable_webserver:-no} = yes; then
6541 WEB_TRUE=
6542 WEB_FALSE='#'
6543 else
6544 WEB_TRUE='#'
6545 WEB_FALSE=
6549 # Check whether --enable-amule-gui was given.
6550 if test "${enable_amule_gui+set}" = set; then :
6551 enableval=$enable_amule_gui;
6554 if test ${enable_amule_gui:-no} = yes; then
6555 AMULE_GUI_TRUE=
6556 AMULE_GUI_FALSE='#'
6557 else
6558 AMULE_GUI_TRUE='#'
6559 AMULE_GUI_FALSE=
6563 # Check whether --enable-cas was given.
6564 if test "${enable_cas+set}" = set; then :
6565 enableval=$enable_cas;
6568 if test ${enable_cas:-no} = yes; then
6569 CAS_TRUE=
6570 CAS_FALSE='#'
6571 else
6572 CAS_TRUE='#'
6573 CAS_FALSE=
6577 # Check whether --enable-wxcas was given.
6578 if test "${enable_wxcas+set}" = set; then :
6579 enableval=$enable_wxcas;
6582 if test ${enable_wxcas:-no} = yes; then
6583 WXCAS_TRUE=
6584 WXCAS_FALSE='#'
6585 else
6586 WXCAS_TRUE='#'
6587 WXCAS_FALSE=
6591 # Check whether --enable-ed2k was given.
6592 if test "${enable_ed2k+set}" = set; then :
6593 enableval=$enable_ed2k;
6596 if test ${enable_ed2k:-yes} = yes; then
6597 ED2K_TRUE=
6598 ED2K_FALSE='#'
6599 else
6600 ED2K_TRUE='#'
6601 ED2K_FALSE=
6605 # Check whether --enable-alc was given.
6606 if test "${enable_alc+set}" = set; then :
6607 enableval=$enable_alc;
6610 if test ${enable_alc:-no} = yes; then
6611 ALC_TRUE=
6612 ALC_FALSE='#'
6613 else
6614 ALC_TRUE='#'
6615 ALC_FALSE=
6619 # Check whether --enable-alcc was given.
6620 if test "${enable_alcc+set}" = set; then :
6621 enableval=$enable_alcc;
6624 if test ${enable_alcc:-no} = yes; then
6625 ALCC_TRUE=
6626 ALCC_FALSE='#'
6627 else
6628 ALCC_TRUE='#'
6629 ALCC_FALSE=
6633 # Check whether --enable-xas was given.
6634 if test "${enable_xas+set}" = set; then :
6635 enableval=$enable_xas;
6638 if test ${enable_xas:-no} = yes; then
6639 XAS_TRUE=
6640 XAS_FALSE='#'
6641 else
6642 XAS_TRUE='#'
6643 XAS_FALSE=
6647 # Check whether --enable-fileview was given.
6648 if test "${enable_fileview+set}" = set; then :
6649 enableval=$enable_fileview;
6652 if test ${enable_fileview:-no} = yes; then
6653 FILEVIEW_TRUE=
6654 FILEVIEW_FALSE='#'
6655 else
6656 FILEVIEW_TRUE='#'
6657 FILEVIEW_FALSE=
6661 # Check whether --enable-plasmamule was given.
6662 if test "${enable_plasmamule+set}" = set; then :
6663 enableval=$enable_plasmamule;
6668 # Run all the tests with static linkage if we want a statically linked binary
6669 # Check whether --enable-static was given.
6670 if test "${enable_static+set}" = set; then :
6671 enableval=$enable_static;
6675 if test ${enable_static:-no} = yes; then :
6676 LDFLAGS="$LDFLAGS -static"
6681 # Check whether --with-kde4-config was given.
6682 if test "${with_kde4_config+set}" = set; then :
6683 withval=$with_kde4_config; KDE4_CONFIG=$withval
6684 else
6685 KDE4_CONFIG=""
6688 # Check whether --enable-kde-in-home was given.
6689 if test "${enable_kde_in_home+set}" = set; then :
6690 enableval=$enable_kde_in_home; KDE_IN_HOME=$enableval
6691 else
6692 KDE_IN_HOME=no
6698 # Check whether --with-moc was given.
6699 if test "${with_moc+set}" = set; then :
6700 withval=$with_moc; QT_MOC=$withval
6701 else
6702 QT_MOC=""
6707 # Default is yes, because they're most likely compatible.
6708 # However, this is only used when cross-compiling.
6710 # Check whether --with-gnu-malloc was given.
6711 if test "${with_gnu_malloc+set}" = set; then :
6712 withval=$with_gnu_malloc; gnumalloc=$withval
6713 else
6714 gnumalloc=yes
6719 # Checking for libs before all other stuff to break
6720 # configure as soon as possible in case of a missing one
6721 # to avoid losing too much time
6723 # Check for zlib
6724 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 :
6727 # Check whether --with-zlib was given.
6728 if test "${with_zlib+set}" = set; then :
6729 withval=$with_zlib;
6733 case "${with_zlib:-yes}" in
6735 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6737 yes | sys)
6740 zlib_prefix="$with_zlib"
6741 esac
6743 mule_backup_CPPFLAGS="$CPPFLAGS"
6744 mule_backup_LDFLAGS="$LDFLAGS"
6745 mule_backup_LIBS="$LIBS"
6746 if test -n "$zlib_prefix"; then :
6748 ZLIB_CPPFLAGS="-I$zlib_prefix/include"
6749 ZLIB_LDFLAGS="-L$zlib_prefix/lib"
6750 CPPFLAGS="$CPPFLAGS $ZLIB_CPPFLAGS"
6751 LDFLAGS="$LDFLAGS $ZLIB_LDFLAGS"
6753 else
6755 ZLIB_CPPFLAGS=
6756 ZLIB_LDFLAGS=
6759 ZLIB_LIBS="-lz"
6760 LIBS="$ZLIB_LIBS $LIBS"
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.1.4" >&5
6763 $as_echo_n "checking for zlib >= 1.1.4... " >&6; }
6764 if test "$cross_compiling" = yes; then :
6766 result=no
6767 z_version=
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6772 #include <zlib.h>
6773 #include <stdio.h>
6776 main ()
6779 printf("\nZLIB_VERSION_START" ZLIB_VERSION "ZLIB_VERSION_END\n\n");
6780 zlibVersion();
6783 return 0;
6786 _ACEOF
6787 if ac_fn_c_try_link "$LINENO"; then :
6789 ZLIB_VERSION=`grep -a '^ZLIB_VERSION_START.*ZLIB_VERSION_END$' conftest$ac_exeext | sed 's/^ZLIB_VERSION_START\(.*\)ZLIB_VERSION_END$/\1/'`
6790 cross_zver_max="`echo $ZLIB_VERSION | cut -d. -f1`"
6791 cross_zver_mid="`echo $ZLIB_VERSION | cut -d. -f2`"
6792 cross_zver_min="`echo $ZLIB_VERSION | cut -d. -f3`"
6793 if test "$cross_zver_max" -gt "1"; then
6794 result=yes
6795 elif test "$cross_zver_max" -eq "1"; then
6797 if test "$cross_zver_mid" -gt "1"; then
6798 result=yes
6799 elif test "$cross_zver_mid" -eq "1"; then
6800 if test "$cross_zver_min" -ge "4"; then
6801 result=yes
6809 if test ${result:-no} = yes; then :
6810 z_version=" (version $ZLIB_VERSION)"
6814 rm -f core conftest.err conftest.$ac_objext \
6815 conftest$ac_exeext conftest.$ac_ext
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6817 $as_echo "$result$z_version" >&6; }
6819 else
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6824 #include <zlib.h>
6825 #include <stdio.h>
6828 main ()
6830 char *zver = zlibVersion();
6831 FILE *f=fopen("conftestval", "w");
6832 if (!f) return 1;
6833 fprintf(f, "%s",
6834 zver[0] > '1' ||
6835 (zver[0] == '1' &&
6836 (zver[2] > '1' ||
6837 (zver[2] == '1' &&
6838 zver[4] >= '4'))) ? "yes" : "no");
6839 fclose(f);
6840 f=fopen("conftestver", "w");
6841 if (f) {
6842 fprintf(f, "%s", ZLIB_VERSION);
6843 fclose(f);
6847 return 0;
6850 _ACEOF
6851 if ac_fn_c_try_run "$LINENO"; then :
6853 if test -f conftestval; then :
6854 result=`cat conftestval`
6855 else
6856 result=no
6858 if test ${result:-no} = yes; then :
6860 if test -f conftestver; then :
6862 ZLIB_VERSION=`cat conftestver`
6863 z_version=" (version $ZLIB_VERSION)"
6865 else
6866 z_version=
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$z_version" >&5
6871 $as_echo "$result$z_version" >&6; }
6873 else
6875 result=no
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6877 $as_echo "$result" >&6; }
6880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6881 conftest.$ac_objext conftest.beam conftest.$ac_ext
6885 CPPFLAGS="$mule_backup_CPPFLAGS"
6886 LDFLAGS="$mule_backup_LDFLAGS"
6887 LIBS="$mule_backup_LIBS"
6889 if test ${result:-no} = no; then :
6891 ZLIB_CPPFLAGS=
6892 ZLIB_LDFLAGS=
6893 ZLIB_LIBS=
6894 as_fn_error "zlib >= 1.1.4 is required for aMule" "$LINENO" 5
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6903 $as_echo_n "checking for ANSI C header files... " >&6; }
6904 if test "${ac_cv_header_stdc+set}" = set; then :
6905 $as_echo_n "(cached) " >&6
6906 else
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h. */
6909 #include <stdlib.h>
6910 #include <stdarg.h>
6911 #include <string.h>
6912 #include <float.h>
6915 main ()
6919 return 0;
6921 _ACEOF
6922 if ac_fn_c_try_compile "$LINENO"; then :
6923 ac_cv_header_stdc=yes
6924 else
6925 ac_cv_header_stdc=no
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 if test $ac_cv_header_stdc = yes; then
6930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 #include <string.h>
6935 _ACEOF
6936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6937 $EGREP "memchr" >/dev/null 2>&1; then :
6939 else
6940 ac_cv_header_stdc=no
6942 rm -f conftest*
6946 if test $ac_cv_header_stdc = yes; then
6947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950 #include <stdlib.h>
6952 _ACEOF
6953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6954 $EGREP "free" >/dev/null 2>&1; then :
6956 else
6957 ac_cv_header_stdc=no
6959 rm -f conftest*
6963 if test $ac_cv_header_stdc = yes; then
6964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6965 if test "$cross_compiling" = yes; then :
6967 else
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 #include <ctype.h>
6971 #include <stdlib.h>
6972 #if ((' ' & 0x0FF) == 0x020)
6973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6975 #else
6976 # define ISLOWER(c) \
6977 (('a' <= (c) && (c) <= 'i') \
6978 || ('j' <= (c) && (c) <= 'r') \
6979 || ('s' <= (c) && (c) <= 'z'))
6980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6981 #endif
6983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6985 main ()
6987 int i;
6988 for (i = 0; i < 256; i++)
6989 if (XOR (islower (i), ISLOWER (i))
6990 || toupper (i) != TOUPPER (i))
6991 return 2;
6992 return 0;
6994 _ACEOF
6995 if ac_fn_c_try_run "$LINENO"; then :
6997 else
6998 ac_cv_header_stdc=no
7000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7001 conftest.$ac_objext conftest.beam conftest.$ac_ext
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7007 $as_echo "$ac_cv_header_stdc" >&6; }
7008 if test $ac_cv_header_stdc = yes; then
7010 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7016 inttypes.h stdint.h unistd.h
7017 do :
7018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7019 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7021 eval as_val=\$$as_ac_Header
7022 if test "x$as_val" = x""yes; then :
7023 cat >>confdefs.h <<_ACEOF
7024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7025 _ACEOF
7029 done
7032 if test ${enable_cas:-no} = yes; then :
7034 # Check for gd
7037 # Check whether --with-gdlib-prefix was given.
7038 if test "${with_gdlib_prefix+set}" = set; then :
7039 withval=$with_gdlib_prefix;
7043 # Check whether --with-gdlib-config was given.
7044 if test "${with_gdlib_config+set}" = set; then :
7045 withval=$with_gdlib_config;
7049 GDLIB_VERSION=
7051 # do we have gdlib-config name: it can be gdlib-config or gd-config or ...
7052 if test x${GDLIB_CONFIG_NAME+set} != xset; then :
7053 GDLIB_CONFIG_NAME=gdlib-config
7055 if test -n "$with_gdlib_config"; then :
7056 GDLIB_CONFIG_NAME="$with_gdlib_config"
7059 # deal with optional prefix
7060 if test -n "$with_gdlib_prefix"; then :
7061 GDLIB_LOOKUP_PATH="$with_gdlib_prefix/bin"
7064 # don't search the PATH if GDLIB_CONFIG_NAME is absolute filename
7065 if test -x "$GDLIB_CONFIG_NAME"; then :
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib-config" >&5
7068 $as_echo_n "checking for gdlib-config... " >&6; }
7069 GDLIB_CONFIG_PATH="$GDLIB_CONFIG_NAME"
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7071 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7073 else
7074 # Extract the first word of "$GDLIB_CONFIG_NAME", so it can be a program name with args.
7075 set dummy $GDLIB_CONFIG_NAME; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if test "${ac_cv_path_GDLIB_CONFIG_PATH+set}" = set; then :
7079 $as_echo_n "(cached) " >&6
7080 else
7081 case $GDLIB_CONFIG_PATH in
7082 [\\/]* | ?:[\\/]*)
7083 ac_cv_path_GDLIB_CONFIG_PATH="$GDLIB_CONFIG_PATH" # Let the user override the test with a path.
7086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 as_dummy="$GDLIB_LOOKUP_PATH:$PATH"
7088 for as_dir in $as_dummy
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_path_GDLIB_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7098 done
7099 done
7100 IFS=$as_save_IFS
7102 test -z "$ac_cv_path_GDLIB_CONFIG_PATH" && ac_cv_path_GDLIB_CONFIG_PATH="no"
7104 esac
7106 GDLIB_CONFIG_PATH=$ac_cv_path_GDLIB_CONFIG_PATH
7107 if test -n "$GDLIB_CONFIG_PATH"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDLIB_CONFIG_PATH" >&5
7109 $as_echo "$GDLIB_CONFIG_PATH" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7118 if test ${GDLIB_CONFIG_PATH:-no} != no; then :
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdlib version >= 2.0.0" >&5
7121 $as_echo_n "checking for gdlib version >= 2.0.0... " >&6; }
7122 GDLIB_CONFIG_WITH_ARGS="$GDLIB_CONFIG_PATH $gdlib_config_args"
7124 GDLIB_VERSION=`$GDLIB_CONFIG_WITH_ARGS --version`
7125 gdlib_config_major_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7126 gdlib_config_minor_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7127 gdlib_config_micro_version=`echo $GDLIB_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7129 gdlib_ver_ok=
7130 if test $gdlib_config_major_version -gt 2; then
7131 gdlib_ver_ok=yes
7132 elif test $gdlib_config_major_version -eq 2; then
7134 if test $gdlib_config_minor_version -gt 0; then
7135 gdlib_ver_ok=yes
7136 elif test $gdlib_config_minor_version -eq 0; then
7137 if test $gdlib_config_micro_version -ge 0; then
7138 gdlib_ver_ok=yes
7147 if test -z "$gdlib_ver_ok"; then :
7149 if test -z "$GDLIB_VERSION"; then :
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 else
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $GDLIB_VERSION is not new enough)" >&5
7155 $as_echo "no (version $GDLIB_VERSION is not new enough)" >&6; }
7156 GDLIB_VERSION=
7160 else
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $GDLIB_VERSION)" >&5
7163 $as_echo "yes (version $GDLIB_VERSION)" >&6; }
7164 GDLIB_CFLAGS="`$GDLIB_CONFIG_WITH_ARGS --cflags`"
7165 GDLIB_LDFLAGS="`$GDLIB_CONFIG_WITH_ARGS --ldflags`"
7166 GDLIB_LIBS="`$GDLIB_CONFIG_WITH_ARGS --libs`"
7167 mule_backup_CFLAGS="$CFLAGS"
7168 CFLAGS="$CFLAGS $GDLIB_CFLAGS"
7169 ac_fn_c_check_header_mongrel "$LINENO" "gd.h" "ac_cv_header_gd_h" "$ac_includes_default"
7170 if test "x$ac_cv_header_gd_h" = x""yes; then :
7172 else
7173 GDLIB_VERSION=
7177 CFLAGS="$mule_backup_CFLAGS"
7183 if test -n "$GDLIB_VERSION"; then :
7185 CAS_DEFS="-D__GD__"
7186 GDLIB_LIBS="-lgd $GDLIB_LIBS"
7188 else
7189 CAS_DEFS=
7194 if test -z "$CAS_DEFS"; then :
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7196 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7197 Please check that gdlib-config is in your default path, check out
7198 LD_LIBRARY_PATH or equivalent variable.
7199 Or this might also be that your gdlib-config has other name.
7200 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7201 (replace /usr/bin/gdlib-config with a valid path to your
7202 gdlib-config).
7203 If you use compiled packages check if you have devel pack installed.
7204 To download the latest version check http://www.boutell.com/gd for
7205 sources." >&5
7206 $as_echo "$as_me: WARNING:
7207 gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
7208 Please check that gdlib-config is in your default path, check out
7209 LD_LIBRARY_PATH or equivalent variable.
7210 Or this might also be that your gdlib-config has other name.
7211 Please try again with --with-gdlib-config=/usr/bin/gdlib-config
7212 (replace /usr/bin/gdlib-config with a valid path to your
7213 gdlib-config).
7214 If you use compiled packages check if you have devel pack installed.
7215 To download the latest version check http://www.boutell.com/gd for
7216 sources." >&2;}
7217 _mule_warning_0=yes
7218 _mule_has_warnings=yes
7224 if test ${enable_webserver:-no} = yes; then :
7227 # Check whether --with-libpng-prefix was given.
7228 if test "${with_libpng_prefix+set}" = set; then :
7229 withval=$with_libpng_prefix;
7233 # Check whether --with-libpng-config was given.
7234 if test "${with_libpng_config+set}" = set; then :
7235 withval=$with_libpng_config;
7239 LIBPNG_VERSION=
7241 # do we have libpng-config name: it can be libpng-config or libpng12-config or ...
7242 if test x${LIBPNG_CONFIG_NAME+set} != xset; then :
7243 LIBPNG_CONFIG_NAME=libpng-config
7245 if test -n "$with_libpng_config"; then :
7246 LIBPNG_CONFIG_NAME="$with_libpng_config"
7249 # deal with optional prefix
7250 if test -n "$with_libpng_prefix"; then :
7251 LIBPNG_LOOKUP_PATH="$with_libpng_prefix/bin"
7254 # don't search the PATH if LIBPNG_CONFIG_NAME is absolute filename
7255 if test -x "$LIBPNG_CONFIG_NAME"; then :
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng-config" >&5
7258 $as_echo_n "checking for libpng-config... " >&6; }
7259 LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_NAME"
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7261 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7263 else
7264 # Extract the first word of "$LIBPNG_CONFIG_NAME", so it can be a program name with args.
7265 set dummy $LIBPNG_CONFIG_NAME; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if test "${ac_cv_path_LIBPNG_CONFIG_PATH+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 case $LIBPNG_CONFIG_PATH in
7272 [\\/]* | ?:[\\/]*)
7273 ac_cv_path_LIBPNG_CONFIG_PATH="$LIBPNG_CONFIG_PATH" # Let the user override the test with a path.
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 as_dummy="$LIBPNG_LOOKUP_PATH:$PATH"
7278 for as_dir in $as_dummy
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_path_LIBPNG_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7288 done
7289 done
7290 IFS=$as_save_IFS
7292 test -z "$ac_cv_path_LIBPNG_CONFIG_PATH" && ac_cv_path_LIBPNG_CONFIG_PATH="no"
7294 esac
7296 LIBPNG_CONFIG_PATH=$ac_cv_path_LIBPNG_CONFIG_PATH
7297 if test -n "$LIBPNG_CONFIG_PATH"; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG_PATH" >&5
7299 $as_echo "$LIBPNG_CONFIG_PATH" >&6; }
7300 else
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7308 if test ${LIBPNG_CONFIG_PATH:-no} != no; then :
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng version >= 1.2.0" >&5
7311 $as_echo_n "checking for libpng version >= 1.2.0... " >&6; }
7313 LIBPNG_CONFIG_WITH_ARGS="$LIBPNG_CONFIG_PATH $libpng_config_args"
7315 LIBPNG_VERSION=`$LIBPNG_CONFIG_WITH_ARGS --version`
7316 libpng_config_major_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
7317 libpng_config_minor_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
7318 libpng_config_micro_version=`echo $LIBPNG_VERSION | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
7320 libpng_ver_ok=
7321 if test $libpng_config_major_version -gt 1; then
7322 libpng_ver_ok=yes
7323 elif test $libpng_config_major_version -eq 1; then
7325 if test $libpng_config_minor_version -gt 2; then
7326 libpng_ver_ok=yes
7327 elif test $libpng_config_minor_version -eq 2; then
7328 if test $libpng_config_micro_version -ge 0; then
7329 libpng_ver_ok=yes
7338 if test -z "$libpng_ver_ok"; then :
7340 if test -z "$LIBPNG_VERSION"; then :
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $LIBPNG_VERSION is not new enough)" >&5
7346 $as_echo "no (version $LIBPNG_VERSION is not new enough)" >&6; }
7347 LIBPNG_VERSION=
7351 else
7353 LIBPNG_LIBS=`$LIBPNG_CONFIG_WITH_ARGS --libs`
7354 LIBPNG_LDFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --ldflags | sed -e "s/ *${LIBPNG_LIBS}$//"`
7355 LIBPNG_CFLAGS=`$LIBPNG_CONFIG_WITH_ARGS --cflags`
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $LIBPNG_VERSION)" >&5
7357 $as_echo "yes (version $LIBPNG_VERSION)" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libpng is usable" >&5
7360 $as_echo_n "checking if libpng is usable... " >&6; }
7362 SAVED_CFLAGS=$CFLAGS
7363 SAVED_LDFLAGS=$LDFLAGS
7364 SAVED_LIBS=$LIBS
7366 CFLAGS+=" $LIBPNG_CFLAGS"
7367 LDFLAGS+=" $LIBPNG_LDFLAGS"
7368 LIBS+=" $LIBPNG_LIBS"
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h. */
7374 #include <png.h>
7375 #include <stdio.h>
7378 main ()
7381 png_uint_32 libpng_vn = png_access_version_number()
7382 printf("\nlibpng version %i\n\n", libpng_vn);
7385 return 0;
7388 _ACEOF
7389 if ac_fn_c_try_link "$LINENO"; then :
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7392 $as_echo "yes" >&6; }
7394 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (failed to compile and link test program)" >&5
7397 $as_echo "no (failed to compile and link test program)" >&6; }
7398 LIBPNG_LIBS=
7399 LIBPNG_LDFLAGS=
7400 LIBPNG_CFLAGS=
7401 LIBPNG_VERSION=
7404 rm -f core conftest.err conftest.$ac_objext \
7405 conftest$ac_exeext conftest.$ac_ext
7407 CFLAGS=$SAVED_CFLAGS
7408 LDFLAGS=$SAVED_LDFLAGS
7409 LIBS=$SAVED_LIBS
7415 if test -n "$LIBPNG_VERSION"; then :
7416 AMULEWEB_DEFS="-DWITH_LIBPNG"
7417 else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7420 libpng >= 1.2.0 not found.
7421 amuleweb will be compiled but file download progress bar images will
7422 NOT be generated." >&5
7423 $as_echo "$as_me: WARNING:
7424 libpng >= 1.2.0 not found.
7425 amuleweb will be compiled but file download progress bar images will
7426 NOT be generated." >&2;}
7427 _mule_warning_1=yes
7428 _mule_has_warnings=yes
7438 # Check for perl File::Copy
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
7440 $as_echo_n "checking for File::Copy... " >&6; }
7441 if perl -e "require File::Copy" 2>/dev/null; then :
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7443 $as_echo "ok" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7446 File::Copy perl module is required by the mldonkey_importer script.
7447 If you want to use this script please install File::Copy from CPAN." >&5
7448 $as_echo "$as_me: WARNING:
7449 File::Copy perl module is required by the mldonkey_importer script.
7450 If you want to use this script please install File::Copy from CPAN." >&2;}
7451 _mule_warning_2=yes
7452 _mule_has_warnings=yes
7456 # Check if we need to install skins
7457 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7458 INSTALL_SKINS=yes
7459 else
7460 INSTALL_SKINS=no
7463 # Check for GeoIP (required for IP2Country capability)
7464 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7466 # Check whether --enable-geoip was given.
7467 if test "${enable_geoip+set}" = set; then :
7468 enableval=$enable_geoip;
7473 if test ${enable_geoip:-no} = yes; then :
7476 # Check whether --with-geoip-headers was given.
7477 if test "${with_geoip_headers+set}" = set; then :
7478 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
7482 # Check whether --with-geoip-lib was given.
7483 if test "${with_geoip_lib+set}" = set; then :
7484 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
7488 mule_backup_CPPFLAGS="$CPPFLAGS"
7489 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7490 mule_backup_LDFLAGS="$LDFLAGS"
7491 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7493 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
7494 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
7496 if test x$SYS = xwin32; then :
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
7499 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
7500 # Actually, we might not need any if GeoIP is linked as a .dll
7501 # - but that's even harder to check for
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7506 #include <GeoIP.h>
7507 #ifdef _WINSOCK2_H
7508 I do know it's not the best approach, but at least works with MinGW stock headers.
7509 (tested with w32api-3.12)
7510 #endif
7513 main ()
7517 return 0;
7520 _ACEOF
7521 if ac_fn_c_try_compile "$LINENO"; then :
7523 GEOIP_WINSOCK_LIB="-lwsock32"
7525 else
7527 GEOIP_WINSOCK_LIB="-lws2_32"
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
7532 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
7536 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
7537 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 ac_check_lib_save_LIBS=$LIBS
7541 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7545 /* Override any GCC internal prototype to avoid an error.
7546 Use char because int might match the return type of a GCC
7547 builtin and then its argument prototype would still apply. */
7548 #ifdef __cplusplus
7549 extern "C"
7550 #endif
7551 char GeoIP_open ();
7553 main ()
7555 return GeoIP_open ();
7557 return 0;
7559 _ACEOF
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 ac_cv_lib_GeoIP_GeoIP_open=yes
7562 else
7563 ac_cv_lib_GeoIP_GeoIP_open=no
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 LIBS=$ac_check_lib_save_LIBS
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7570 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
7571 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
7574 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
7576 GEOIP_LIBS="-lGeoIP"
7577 if test x$SYS = xwin32; then :
7578 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7580 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7582 # Check whether --with-geoip-static was given.
7583 if test "${with_geoip_static+set}" = set; then :
7584 withval=$with_geoip_static;
7585 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
7587 mule_backup_LIBS="$LIBS"
7588 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7593 #include <GeoIP.h>
7596 main ()
7599 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7602 return 0;
7605 _ACEOF
7606 if ac_fn_c_try_link "$LINENO"; then :
7608 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7610 else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7613 Cannot link GeoIP statically, because your linker ($LD) does not
7614 support it." >&5
7615 $as_echo "$as_me: WARNING:
7616 Cannot link GeoIP statically, because your linker ($LD) does not
7617 support it." >&2;}
7618 _mule_warning_3=yes
7619 _mule_has_warnings=yes
7623 rm -f core conftest.err conftest.$ac_objext \
7624 conftest$ac_exeext conftest.$ac_ext
7625 LIBS="$mule_backup_LIBS"
7632 else
7634 enable_geoip=disabled
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7636 GeoIP support has been disabled because the GeoIP libraries were not
7637 found" >&5
7638 $as_echo "$as_me: WARNING:
7639 GeoIP support has been disabled because the GeoIP libraries were not
7640 found" >&2;}
7641 _mule_warning_4=yes
7642 _mule_has_warnings=yes
7648 else
7650 enable_geoip=disabled
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7652 GeoIP support has been disabled because the GeoIP header files were
7653 not found" >&5
7654 $as_echo "$as_me: WARNING:
7655 GeoIP support has been disabled because the GeoIP header files were
7656 not found" >&2;}
7657 _mule_warning_5=yes
7658 _mule_has_warnings=yes
7665 CPPFLAGS="$mule_backup_CPPFLAGS"
7666 LDFLAGS="$mule_backup_LDFLAGS"
7672 # Check for wx
7673 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 :
7676 # Check whether --with-wxdir was given.
7677 if test "${with_wxdir+set}" = set; then :
7678 withval=$with_wxdir; wx_config_name="$withval/wx-config"
7679 wx_config_args="--inplace"
7683 # Check whether --with-wx-config was given.
7684 if test "${with_wx_config+set}" = set; then :
7685 withval=$with_wx_config; wx_config_name="$withval"
7689 # Check whether --with-wx-prefix was given.
7690 if test "${with_wx_prefix+set}" = set; then :
7691 withval=$with_wx_prefix; wx_config_prefix="$withval"
7692 else
7693 wx_config_prefix=""
7697 # Check whether --with-wx-exec-prefix was given.
7698 if test "${with_wx_exec_prefix+set}" = set; then :
7699 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
7700 else
7701 wx_config_exec_prefix=""
7716 # Check whether --with-toolkit was given.
7717 if test "${with_toolkit+set}" = set; then :
7718 withval=$with_toolkit;
7719 else
7720 withval="auto"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
7725 $as_echo_n "checking for the --with-toolkit option... " >&6; }
7726 if test "$withval" = "auto" ; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7728 $as_echo "will be automatically detected" >&6; }
7729 TOOLKIT="auto"
7730 else
7731 TOOLKIT="$withval"
7733 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7734 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7735 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7736 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7737 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7738 "$TOOLKIT" != "osx_cocoa"; then
7739 as_fn_error "
7740 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7741 " "$LINENO" 5
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
7745 $as_echo "$TOOLKIT" >&6; }
7752 # Check whether --with-wxshared was given.
7753 if test "${with_wxshared+set}" = set; then :
7754 withval=$with_wxshared;
7755 else
7756 withval="auto"
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
7761 $as_echo_n "checking for the --with-wxshared option... " >&6; }
7762 if test "$withval" = "yes" ; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7764 $as_echo "yes" >&6; }
7765 WX_SHARED=1
7767 elif test "1" = "1" -a "$withval" = "no" ; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 WX_SHARED=0
7771 elif test "$withval" = "auto" ; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7773 $as_echo "will be automatically detected" >&6; }
7774 WX_SHARED="auto"
7775 else
7776 as_fn_error "
7777 Unrecognized option value (allowed values: yes, auto)
7778 " "$LINENO" 5
7785 # Check whether --with-wxdebug was given.
7786 if test "${with_wxdebug+set}" = set; then :
7787 withval=$with_wxdebug;
7788 else
7789 withval="auto"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
7794 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
7795 if test "$withval" = "yes" ; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7797 $as_echo "yes" >&6; }
7798 WX_DEBUG=1
7800 elif test "1" = "1" -a "$withval" = "no" ; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 WX_DEBUG=0
7804 elif test "$withval" = "auto" ; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7806 $as_echo "will be automatically detected" >&6; }
7807 WX_DEBUG="auto"
7808 else
7809 as_fn_error "
7810 Unrecognized option value (allowed values: yes, auto)
7811 " "$LINENO" 5
7818 # Check whether --with-wxversion was given.
7819 if test "${with_wxversion+set}" = set; then :
7820 withval=$with_wxversion;
7821 else
7822 withval="auto"
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
7827 $as_echo_n "checking for the --with-wxversion option... " >&6; }
7828 if test "$withval" = "auto" ; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7830 $as_echo "will be automatically detected" >&6; }
7831 WX_VERSION="auto"
7832 else
7834 wx_requested_major_version=`echo $withval | \
7835 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7836 wx_requested_minor_version=`echo $withval | \
7837 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7839 if test "${#wx_requested_major_version}" != "1" -o \
7840 "${#wx_requested_minor_version}" != "1" ; then
7841 as_fn_error "
7842 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7843 " "$LINENO" 5
7846 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
7848 $as_echo "$WX_VERSION" >&6; }
7852 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7853 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7854 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7855 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7856 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7857 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7860 # Force using a static wxWidgets library if the executable is to be linked statically.
7861 if test ${enable_static:-no} = yes; then :
7862 WX_SHARED=0
7864 # Force using a unicode build of the library
7865 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 :
7866 WX_UNICODE=1
7868 DEBUG=$WX_DEBUG
7870 if test "$WX_SHARED" = "1" ; then
7871 WXCONFIG_FLAGS="--static=no "
7872 elif test "$WX_SHARED" = "0" ; then
7873 WXCONFIG_FLAGS="--static=yes "
7876 if test "$WX_DEBUG" = "1" ; then
7877 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7878 elif test "$WX_DEBUG" = "0" ; then
7879 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7882 if test "$WX_UNICODE" = "1" ; then
7883 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7884 elif test "$WX_UNICODE" = "0" ; then
7885 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7888 if test "$TOOLKIT" != "auto" ; then
7889 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7892 if test "$WX_VERSION" != "auto" ; then
7893 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7896 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7898 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7899 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7903 if test x${WX_CONFIG_NAME+set} != xset ; then
7904 WX_CONFIG_NAME=wx-config
7907 if test "x$wx_config_name" != x ; then
7908 WX_CONFIG_NAME="$wx_config_name"
7911 if test x$wx_config_exec_prefix != x ; then
7912 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7913 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7915 if test x$wx_config_prefix != x ; then
7916 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7917 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7919 if test "$cross_compiling" = "yes"; then
7920 wx_config_args="$wx_config_args --host=$host_alias"
7923 if test -x "$WX_CONFIG_NAME" ; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
7925 $as_echo_n "checking for wx-config... " >&6; }
7926 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7928 $as_echo "$WX_CONFIG_PATH" >&6; }
7929 else
7930 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7931 set dummy $WX_CONFIG_NAME; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 case $WX_CONFIG_PATH in
7938 [\\/]* | ?:[\\/]*)
7939 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7944 for as_dir in $as_dummy
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7954 done
7955 done
7956 IFS=$as_save_IFS
7958 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7960 esac
7962 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7963 if test -n "$WX_CONFIG_PATH"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7965 $as_echo "$WX_CONFIG_PATH" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7974 if test "$WX_CONFIG_PATH" != "no" ; then
7975 WX_VERSION_FULL=""
7977 min_wx_version=2.8.12
7978 if test -z "$WXCONFIG_FLAGS" ; then
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
7980 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
7981 else
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7983 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
7986 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7988 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7989 wx_config_major_version=`echo $WX_VERSION_FULL | \
7990 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7991 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7992 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7993 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7994 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7996 wx_requested_major_version=`echo $min_wx_version | \
7997 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7998 wx_requested_minor_version=`echo $min_wx_version | \
7999 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8000 wx_requested_micro_version=`echo $min_wx_version | \
8001 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8004 wx_ver_ok=""
8005 if test "x$WX_VERSION_FULL" != x ; then
8006 if test $wx_config_major_version -gt $wx_requested_major_version; then
8007 wx_ver_ok=yes
8008 else
8009 if test $wx_config_major_version -eq $wx_requested_major_version; then
8010 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
8011 wx_ver_ok=yes
8012 else
8013 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
8014 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
8015 wx_ver_ok=yes
8024 if test -n "$wx_ver_ok"; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
8027 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
8028 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
8030 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
8032 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
8033 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
8034 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
8036 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
8037 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
8039 wxWin=1
8041 else
8043 if test "x$WX_VERSION_FULL" = x; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
8048 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
8051 WX_CFLAGS=""
8052 WX_CPPFLAGS=""
8053 WX_CXXFLAGS=""
8054 WX_LIBS=""
8055 WX_RESCOMP=""
8057 if test ! -z "$WXCONFIG_FLAGS"; then
8059 wx_error_message="
8060 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8061 build with the following settings:
8062 $WXCONFIG_FLAGS
8063 but such build is not available.
8065 To see the wxWidgets builds available on this system, please use
8066 'wx-config --list' command. To use the default build, returned by
8067 'wx-config --selected-config', use the options with their 'auto'
8068 default values."
8072 wx_error_message="
8073 The requested wxWidgets build couldn't be found.
8074 $wx_error_message
8076 If you still get this error, then check that 'wx-config' is
8077 in path, the directory where wxWidgets libraries are installed
8078 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8079 or equivalent variable and wxWidgets version is 2.8.12 or above."
8081 as_fn_error "$wx_error_message" "$LINENO" 5
8084 else
8086 WX_CFLAGS=""
8087 WX_CPPFLAGS=""
8088 WX_CXXFLAGS=""
8089 WX_LIBS=""
8090 WX_RESCOMP=""
8105 WX_VERSION_MAJOR="$wx_config_major_version"
8106 WX_VERSION_MINOR="$wx_config_minor_version"
8110 if test "$wxWin" != 1; then :
8111 as_fn_error "
8112 wxWidgets must be installed on your system but wx-config
8113 script couldn't be found. Please check that wx-config is
8114 in path or specified by --with-wx-config=path flag, the
8115 directory where wxWidgets libraries are installed (returned
8116 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8117 equivalent variable and wxWidgets version is 2.8.12 or above.
8118 " "$LINENO" 5
8121 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8122 as_fn_error "
8123 This version of wxWidgets is known to not work with aMule.
8124 Please upgrade to a newer version.
8125 " "$LINENO" 5
8129 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8131 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8133 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8134 echo "[dbg] Using wx-config --selected-config"
8135 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8139 if test $WX_SHARED = "1"; then
8140 STATIC=0
8141 elif test $WX_SHARED = "0"; then
8142 STATIC=1
8143 elif test $WX_SHARED = "auto"; then
8144 STATIC="auto"
8148 if test "$UNICODE" = "auto" ; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8151 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8153 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8155 if test "$WX_UNICODE" != "0"; then
8156 WX_UNICODE=1
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8158 $as_echo "yes" >&6; }
8160 else
8161 WX_UNICODE=0
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8166 else
8168 WX_UNICODE=$UNICODE
8172 if test "$DEBUG" = "auto" ; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8175 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8177 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8179 if test "$WX_DEBUG" != "0"; then
8180 WX_DEBUG=1
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8182 $as_echo "yes" >&6; }
8184 else
8185 WX_DEBUG=0
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo "no" >&6; }
8190 else
8192 WX_DEBUG=$DEBUG
8196 if test "$STATIC" = "auto" ; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8199 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8201 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8203 if test "$WX_STATIC" != "0"; then
8204 WX_STATIC=1
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8206 $as_echo "yes" >&6; }
8208 else
8209 WX_STATIC=0
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211 $as_echo "no" >&6; }
8214 else
8216 WX_STATIC=$STATIC
8220 if test "$WX_STATIC" != "0"; then
8221 WX_SHARED=0
8222 else
8223 WX_SHARED=1
8230 if test "$TOOLKIT" = "auto" ; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8233 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8235 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8236 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8237 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8238 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8239 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8240 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8241 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8242 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8243 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8244 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8245 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8247 WX_PORT="unknown"
8248 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8249 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8250 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8251 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8252 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8253 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8254 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8255 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8256 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8257 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8258 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8261 if test "$WX_PORT" = "unknown" ; then
8262 as_fn_error "
8263 Cannot detect the currently installed wxWidgets port !
8264 Please check your 'wx-config --cxxflags'...
8265 " "$LINENO" 5
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8269 $as_echo "$WX_PORT" >&6; }
8270 else
8272 if test -n "$TOOLKIT" ; then
8273 WX_PORT=$TOOLKIT
8274 else
8275 WX_PORT=$PORT
8281 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8282 echo "[dbg] Values of all WX_* options after final detection:"
8283 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8284 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8285 echo "[dbg] WX_SHARED: $WX_SHARED"
8286 echo "[dbg] WX_VERSION: $WX_VERSION"
8287 echo "[dbg] WX_PORT: $WX_PORT"
8290 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8291 as_fn_error "
8292 Cannot build shared library against a static build of wxWidgets !
8293 This error happens because the wxWidgets build which was selected
8294 has been detected as static while you asked to build $PACKAGE_NAME
8295 as shared library and this is not possible.
8296 Use the '--disable-shared' option to build $PACKAGE_NAME
8297 as static library or '--with-wxshared' to use wxWidgets as shared library.
8298 " "$LINENO" 5
8301 if test "$DEBUG" = "auto"; then
8302 DEBUG=$WX_DEBUG
8304 if test "$DEBUG" = "1"; then
8305 BUILD="debug"
8306 elif test "$DEBUG" = ""; then
8307 BUILD="release"
8310 if test "$UNICODE" = "auto"; then
8311 UNICODE=$WX_UNICODE
8313 if test "$SHARED" = "auto"; then
8314 SHARED=$WX_SHARED
8316 if test "$TOOLKIT" = "auto"; then
8317 TOOLKIT=$WX_PORT
8321 # We also need wxBase
8322 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8323 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8324 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8326 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8330 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8331 if test "${WX_PORT}" = base; then :
8332 as_fn_error "
8333 The selected components need a wxWidgets library with GUI,
8334 but your installation is base-only. Please install a GUI
8335 enabled version of wxWidgets and then retry.
8336 " "$LINENO" 5
8341 if test ${SYS:-unknown} = win32; then :
8342 if test -n "$ac_tool_prefix"; then
8343 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8344 set dummy ${ac_tool_prefix}windres; ac_word=$2
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346 $as_echo_n "checking for $ac_word... " >&6; }
8347 if test "${ac_cv_prog_RC+set}" = set; then :
8348 $as_echo_n "(cached) " >&6
8349 else
8350 if test -n "$RC"; then
8351 ac_cv_prog_RC="$RC" # Let the user override the test.
8352 else
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 for as_dir in $PATH
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
8358 for ac_exec_ext in '' $ac_executable_extensions; do
8359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8360 ac_cv_prog_RC="${ac_tool_prefix}windres"
8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 break 2
8364 done
8365 done
8366 IFS=$as_save_IFS
8370 RC=$ac_cv_prog_RC
8371 if test -n "$RC"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8373 $as_echo "$RC" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8381 if test -z "$ac_cv_prog_RC"; then
8382 ac_ct_RC=$RC
8383 # Extract the first word of "windres", so it can be a program name with args.
8384 set dummy windres; ac_word=$2
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386 $as_echo_n "checking for $ac_word... " >&6; }
8387 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 if test -n "$ac_ct_RC"; then
8391 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8392 else
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 for as_dir in $PATH
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_prog_ac_ct_RC="windres"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 break 2
8404 done
8405 done
8406 IFS=$as_save_IFS
8410 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8411 if test -n "$ac_ct_RC"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
8413 $as_echo "$ac_ct_RC" >&6; }
8414 else
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8419 if test "x$ac_ct_RC" = x; then
8420 RC=":"
8421 else
8422 case $cross_compiling:$ac_tool_warned in
8423 yes:)
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8426 ac_tool_warned=yes ;;
8427 esac
8428 RC=$ac_ct_RC
8430 else
8431 RC="$ac_cv_prog_RC"
8437 # Check for libupnp
8438 # Check whether --enable-upnp was given.
8439 if test "${enable_upnp+set}" = set; then :
8440 enableval=$enable_upnp;
8444 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
8446 else
8447 enable_upnp=no
8451 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8452 if test -n "$ac_tool_prefix"; then
8453 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8454 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 case $PKG_CONFIG in
8461 [\\/]* | ?:[\\/]*)
8462 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 for as_dir in $PATH
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8472 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 break 2
8476 done
8477 done
8478 IFS=$as_save_IFS
8481 esac
8483 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8484 if test -n "$PKG_CONFIG"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8486 $as_echo "$PKG_CONFIG" >&6; }
8487 else
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489 $as_echo "no" >&6; }
8494 if test -z "$ac_cv_path_PKG_CONFIG"; then
8495 ac_pt_PKG_CONFIG=$PKG_CONFIG
8496 # Extract the first word of "pkg-config", so it can be a program name with args.
8497 set dummy pkg-config; ac_word=$2
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 $as_echo_n "checking for $ac_word... " >&6; }
8500 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 case $ac_pt_PKG_CONFIG in
8504 [\\/]* | ?:[\\/]*)
8505 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 break 2
8519 done
8520 done
8521 IFS=$as_save_IFS
8524 esac
8526 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8527 if test -n "$ac_pt_PKG_CONFIG"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8529 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8530 else
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532 $as_echo "no" >&6; }
8535 if test "x$ac_pt_PKG_CONFIG" = x; then
8536 PKG_CONFIG=""
8537 else
8538 case $cross_compiling:$ac_tool_warned in
8539 yes:)
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8542 ac_tool_warned=yes ;;
8543 esac
8544 PKG_CONFIG=$ac_pt_PKG_CONFIG
8546 else
8547 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8551 if test -n "$PKG_CONFIG"; then
8552 _pkg_min_version=0.9.0
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8554 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8555 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8557 $as_echo "yes" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8561 PKG_CONFIG=""
8565 if test ${enable_upnp:-yes} = yes; then :
8569 # Check whether --with-libupnp-prefix was given.
8570 if test "${with_libupnp_prefix+set}" = set; then :
8571 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8575 if test $cross_compiling = no; then :
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
8578 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
8579 if test -n "$PKG_CONFIG"; then :
8581 if $PKG_CONFIG libupnp --exists; then :
8583 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8584 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
8586 result=yes
8587 resultstr=" (version $LIBUPNP_VERSION)"
8588 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8589 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8590 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8591 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8592 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8594 else
8596 result=no
8597 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8601 else
8603 result=no
8604 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8608 else
8610 result=no
8611 resultstr=" (pkg-config not found)"
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8615 $as_echo "$result$resultstr" >&6; }
8616 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8618 else
8620 result=no
8621 libupnp_error="cross compiling"
8625 if test ${result:-no} = yes; then :
8626 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8627 else
8628 enable_upnp=disabled
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8630 UPnP code has been disabled because ${libupnp_error}." >&5
8631 $as_echo "$as_me: WARNING:
8632 UPnP code has been disabled because ${libupnp_error}." >&2;}
8633 _mule_warning_6=yes
8634 _mule_has_warnings=yes
8643 # Check for Crypto++
8644 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8647 # Check whether --with-crypto-prefix was given.
8648 if test "${with_crypto_prefix+set}" = set; then :
8649 withval=$with_crypto_prefix;
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
8654 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
8656 cryptopp_file_with_version="cryptlib.h"
8658 CRYPTOPP_STYLE="unknown"
8659 CRYPTOPP_LIB_NAME="unknown"
8660 cryptopp_includedir="unknown"
8661 CRYPTOPP_INCLUDE_PREFIX="unknown"
8662 cryptopp_libdir="unknown"
8664 if test -n "$with_crypto_prefix"; then :
8666 CRYPTOPP_PREFIX="$with_crypto_prefix"
8667 # Find the Cryptopp header in the user-provided location
8668 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8670 CRYPTOPP_STYLE="sources"
8671 CRYPTOPP_LIB_NAME="cryptopp"
8672 cryptopp_includedir=
8673 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8674 cryptopp_libdir=
8676 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8678 CRYPTOPP_STYLE="installed"
8679 CRYPTOPP_LIB_NAME="cryptopp"
8680 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8681 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8682 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8684 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8686 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8687 CRYPTOPP_STYLE="gentoo_debian"
8688 CRYPTOPP_LIB_NAME="crypto++"
8689 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8690 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8691 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8696 else
8698 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8699 # Find the Cryptopp header in system locations
8700 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8702 CRYPTOPP_STYLE="sources"
8703 CRYPTOPP_LIB_NAME="cryptopp"
8704 cryptopp_includedir=
8705 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8706 cryptopp_libdir=
8707 break
8709 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8711 CRYPTOPP_STYLE="installed"
8712 CRYPTOPP_LIB_NAME="cryptopp"
8713 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8714 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8715 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8716 break
8718 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8720 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8721 CRYPTOPP_STYLE="gentoo_debian"
8722 CRYPTOPP_LIB_NAME="crypto++"
8723 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8724 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8725 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8726 break
8730 done
8734 if test $CRYPTOPP_STYLE = "unknown"; then :
8735 result=no; resultstr=""
8736 else
8738 # Find out the crypto++ version and check against the minimum required
8739 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8740 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8741 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8742 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8744 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
8746 result=yes
8747 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8748 if test -n "$cryptopp_includedir"; then :
8749 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8750 else
8751 CRYPTOPP_CPPFLAGS=
8753 if test -n "$cryptopp_libdir"; then :
8755 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8756 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8758 else
8760 CRYPTOPP_LDFLAGS=
8761 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8765 cat >>confdefs.h <<_ACEOF
8766 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8767 _ACEOF
8770 else
8772 result=no
8773 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8780 $as_echo "$result$resultstr" >&6; }
8782 if test ${result:-no} = yes; then :
8784 # Check for CryptoPP >= 5.5
8785 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
8786 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8789 else
8791 as_fn_error "
8792 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8793 Please try again with --with-crypto-prefix=/my_crypto_prefix
8794 (replace /my_crypto_prefix with a valid path to your crypto++
8795 installation directory)." "$LINENO" 5
8804 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 :
8805 ac_ext=cpp
8806 ac_cpp='$CXXCPP $CPPFLAGS'
8807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're using the GNU C++ library" >&5
8813 $as_echo_n "checking if we're using the GNU C++ library... " >&6; }
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8818 #include <string>
8819 #ifndef __GLIBCXX__
8820 #error Non-GNU C++ library found.
8821 #endif
8824 _ACEOF
8825 if ac_fn_cxx_try_cpp "$LINENO"; then :
8826 GLIBCXX=yes
8827 else
8828 GLIBCXX=no
8830 rm -f conftest.err conftest.$ac_ext
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBCXX" >&5
8832 $as_echo "$GLIBCXX" >&6; }
8834 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
8836 mule_backup_CPPFLAGS="$CPPFLAGS"
8837 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
8840 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8845 #include <wx/wx.h>
8846 #include <wx/filefn.h>
8847 #ifndef wxHAS_LARGE_FILES
8848 #error No LargeFile support!
8849 #endif
8852 _ACEOF
8853 if ac_fn_cxx_try_cpp "$LINENO"; then :
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8856 $as_echo "yes" >&6; }
8858 else
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8862 as_fn_error "
8863 Support for large files in wxWidgets is required by aMule.
8864 To continue you must recompile wxWidgets with support for
8865 large files enabled." "$LINENO" 5
8868 rm -f conftest.err conftest.$ac_ext
8870 CPPFLAGS="$mule_backup_CPPFLAGS"
8874 # Check if the compiler is broken, wrt. exceptions.
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
8877 $as_echo_n "checking for exception-handling... " >&6; }
8878 if test "$cross_compiling" = yes; then :
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
8881 $as_echo "undeterminable" >&6; }
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8883 Cross-compilation detected, so exception handling cannot be tested.
8884 Note that broken exception handling in your compiler may lead to
8885 unexpected crashes." >&5
8886 $as_echo "$as_me: WARNING:
8887 Cross-compilation detected, so exception handling cannot be tested.
8888 Note that broken exception handling in your compiler may lead to
8889 unexpected crashes." >&2;}
8890 _mule_warning_7=yes
8891 _mule_has_warnings=yes
8894 else
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8900 main ()
8903 try {
8904 throw 1;
8905 } catch (int) {
8906 return 0;
8908 return 1;
8911 return 0;
8914 _ACEOF
8915 if ac_fn_cxx_try_run "$LINENO"; then :
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8918 $as_echo "yes" >&6; }
8920 else
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8924 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
8927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8928 conftest.$ac_objext conftest.beam conftest.$ac_ext
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
8935 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8940 #include <cxxabi.h>
8943 main ()
8946 int status;
8947 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8948 std::type_info *ti = abi::__cxa_current_exception_type();
8951 return 0;
8954 _ACEOF
8955 if ac_fn_cxx_try_link "$LINENO"; then :
8958 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8961 $as_echo "yes" >&6; }
8963 else
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 $as_echo "no" >&6; }
8969 rm -f core conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8972 ac_ext=c
8973 ac_cpp='$CPP $CPPFLAGS'
8974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8981 # Ok, we have all needed libs, now checking for other stuff
8982 if test "$LEX" = "flex"; then :
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
8985 $as_echo_n "checking for extended flex capabilities... " >&6; }
8987 extended_flex=`flex --help | grep header-file`
8988 if test -n "$extended_flex"; then :
8989 HAVE_FLEX_EXTENDED=yes
8990 else
8991 HAVE_FLEX_EXTENDED=no
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
8994 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
8996 if test $HAVE_FLEX_EXTENDED = no; then :
8997 { $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
8998 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
9001 else
9002 HAVE_FLEX_EXTENDED=no
9005 # Flush standard test results for speeding cache
9006 cat >confcache <<\_ACEOF
9007 # This file is a shell script that caches the results of configure
9008 # tests run on this system so they can be shared between configure
9009 # scripts and configure runs, see configure's option --config-cache.
9010 # It is not useful on other systems. If it contains results you don't
9011 # want to keep, you may remove or edit it.
9013 # config.status only pays attention to the cache file if you give it
9014 # the --recheck option to rerun configure.
9016 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9017 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9018 # following values.
9020 _ACEOF
9022 # The following way of writing the cache mishandles newlines in values,
9023 # but we know of no workaround that is simple, portable, and efficient.
9024 # So, we kill variables containing newlines.
9025 # Ultrix sh set writes to stderr and can't be redirected directly,
9026 # and sets the high bit in the cache file unless we assign to the vars.
9028 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9029 eval ac_val=\$$ac_var
9030 case $ac_val in #(
9031 *${as_nl}*)
9032 case $ac_var in #(
9033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9035 esac
9036 case $ac_var in #(
9037 _ | IFS | as_nl) ;; #(
9038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9039 *) { eval $ac_var=; unset $ac_var;} ;;
9040 esac ;;
9041 esac
9042 done
9044 (set) 2>&1 |
9045 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9046 *${as_nl}ac_space=\ *)
9047 # `set' does not quote correctly, so add quotes: double-quote
9048 # substitution turns \\\\ into \\, and sed turns \\ into \.
9049 sed -n \
9050 "s/'/'\\\\''/g;
9051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9052 ;; #(
9054 # `set' quotes correctly as required by POSIX, so do not add quotes.
9055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9057 esac |
9058 sort
9060 sed '
9061 /^ac_cv_env_/b end
9062 t clear
9063 :clear
9064 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9065 t end
9066 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9067 :end' >>confcache
9068 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9069 if test -w "$cache_file"; then
9070 test "x$cache_file" != "x/dev/null" &&
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9072 $as_echo "$as_me: updating cache $cache_file" >&6;}
9073 cat confcache >$cache_file
9074 else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9076 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9079 rm -f confcache
9081 # Checks for header files.
9082 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9083 # for constant arguments. Useless!
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9085 $as_echo_n "checking for working alloca.h... " >&6; }
9086 if test "${ac_cv_working_alloca_h+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9091 #include <alloca.h>
9093 main ()
9095 char *p = (char *) alloca (2 * sizeof (int));
9096 if (p) return 0;
9098 return 0;
9100 _ACEOF
9101 if ac_fn_c_try_link "$LINENO"; then :
9102 ac_cv_working_alloca_h=yes
9103 else
9104 ac_cv_working_alloca_h=no
9106 rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9110 $as_echo "$ac_cv_working_alloca_h" >&6; }
9111 if test $ac_cv_working_alloca_h = yes; then
9113 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9118 $as_echo_n "checking for alloca... " >&6; }
9119 if test "${ac_cv_func_alloca_works+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9124 #ifdef __GNUC__
9125 # define alloca __builtin_alloca
9126 #else
9127 # ifdef _MSC_VER
9128 # include <malloc.h>
9129 # define alloca _alloca
9130 # else
9131 # ifdef HAVE_ALLOCA_H
9132 # include <alloca.h>
9133 # else
9134 # ifdef _AIX
9135 #pragma alloca
9136 # else
9137 # ifndef alloca /* predefined by HP cc +Olibcalls */
9138 char *alloca ();
9139 # endif
9140 # endif
9141 # endif
9142 # endif
9143 #endif
9146 main ()
9148 char *p = (char *) alloca (1);
9149 if (p) return 0;
9151 return 0;
9153 _ACEOF
9154 if ac_fn_c_try_link "$LINENO"; then :
9155 ac_cv_func_alloca_works=yes
9156 else
9157 ac_cv_func_alloca_works=no
9159 rm -f core conftest.err conftest.$ac_objext \
9160 conftest$ac_exeext conftest.$ac_ext
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9163 $as_echo "$ac_cv_func_alloca_works" >&6; }
9165 if test $ac_cv_func_alloca_works = yes; then
9167 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9169 else
9170 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9171 # that cause trouble. Some versions do not even contain alloca or
9172 # contain a buggy version. If you still want to use their alloca,
9173 # use ar to extract alloca.o from them instead of compiling alloca.c.
9175 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9177 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9181 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9182 if test "${ac_cv_os_cray+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 #if defined CRAY && ! defined CRAY2
9188 webecray
9189 #else
9190 wenotbecray
9191 #endif
9193 _ACEOF
9194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9195 $EGREP "webecray" >/dev/null 2>&1; then :
9196 ac_cv_os_cray=yes
9197 else
9198 ac_cv_os_cray=no
9200 rm -f conftest*
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9204 $as_echo "$ac_cv_os_cray" >&6; }
9205 if test $ac_cv_os_cray = yes; then
9206 for ac_func in _getb67 GETB67 getb67; do
9207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9209 eval as_val=\$$as_ac_var
9210 if test "x$as_val" = x""yes; then :
9212 cat >>confdefs.h <<_ACEOF
9213 #define CRAY_STACKSEG_END $ac_func
9214 _ACEOF
9216 break
9219 done
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9223 $as_echo_n "checking stack direction for C alloca... " >&6; }
9224 if test "${ac_cv_c_stack_direction+set}" = set; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 if test "$cross_compiling" = yes; then :
9228 ac_cv_c_stack_direction=0
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 $ac_includes_default
9234 find_stack_direction ()
9236 static char *addr = 0;
9237 auto char dummy;
9238 if (addr == 0)
9240 addr = &dummy;
9241 return find_stack_direction ();
9243 else
9244 return (&dummy > addr) ? 1 : -1;
9248 main ()
9250 return find_stack_direction () < 0;
9252 _ACEOF
9253 if ac_fn_c_try_run "$LINENO"; then :
9254 ac_cv_c_stack_direction=1
9255 else
9256 ac_cv_c_stack_direction=-1
9258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9259 conftest.$ac_objext conftest.beam conftest.$ac_ext
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9264 $as_echo "$ac_cv_c_stack_direction" >&6; }
9265 cat >>confdefs.h <<_ACEOF
9266 #define STACK_DIRECTION $ac_cv_c_stack_direction
9267 _ACEOF
9272 ac_header_dirent=no
9273 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9274 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9276 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 #include <sys/types.h>
9283 #include <$ac_hdr>
9286 main ()
9288 if ((DIR *) 0)
9289 return 0;
9291 return 0;
9293 _ACEOF
9294 if ac_fn_c_try_compile "$LINENO"; then :
9295 eval "$as_ac_Header=yes"
9296 else
9297 eval "$as_ac_Header=no"
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9301 eval ac_res=\$$as_ac_Header
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9303 $as_echo "$ac_res" >&6; }
9304 eval as_val=\$$as_ac_Header
9305 if test "x$as_val" = x""yes; then :
9306 cat >>confdefs.h <<_ACEOF
9307 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9308 _ACEOF
9310 ac_header_dirent=$ac_hdr; break
9313 done
9314 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9315 if test $ac_header_dirent = dirent.h; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9317 $as_echo_n "checking for library containing opendir... " >&6; }
9318 if test "${ac_cv_search_opendir+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 ac_func_search_save_LIBS=$LIBS
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9325 /* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 char opendir ();
9333 main ()
9335 return opendir ();
9337 return 0;
9339 _ACEOF
9340 for ac_lib in '' dir; do
9341 if test -z "$ac_lib"; then
9342 ac_res="none required"
9343 else
9344 ac_res=-l$ac_lib
9345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9347 if ac_fn_c_try_link "$LINENO"; then :
9348 ac_cv_search_opendir=$ac_res
9350 rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext
9352 if test "${ac_cv_search_opendir+set}" = set; then :
9353 break
9355 done
9356 if test "${ac_cv_search_opendir+set}" = set; then :
9358 else
9359 ac_cv_search_opendir=no
9361 rm conftest.$ac_ext
9362 LIBS=$ac_func_search_save_LIBS
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9365 $as_echo "$ac_cv_search_opendir" >&6; }
9366 ac_res=$ac_cv_search_opendir
9367 if test "$ac_res" != no; then :
9368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9372 else
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9374 $as_echo_n "checking for library containing opendir... " >&6; }
9375 if test "${ac_cv_search_opendir+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 ac_func_search_save_LIBS=$LIBS
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9382 /* Override any GCC internal prototype to avoid an error.
9383 Use char because int might match the return type of a GCC
9384 builtin and then its argument prototype would still apply. */
9385 #ifdef __cplusplus
9386 extern "C"
9387 #endif
9388 char opendir ();
9390 main ()
9392 return opendir ();
9394 return 0;
9396 _ACEOF
9397 for ac_lib in '' x; do
9398 if test -z "$ac_lib"; then
9399 ac_res="none required"
9400 else
9401 ac_res=-l$ac_lib
9402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9404 if ac_fn_c_try_link "$LINENO"; then :
9405 ac_cv_search_opendir=$ac_res
9407 rm -f core conftest.err conftest.$ac_objext \
9408 conftest$ac_exeext
9409 if test "${ac_cv_search_opendir+set}" = set; then :
9410 break
9412 done
9413 if test "${ac_cv_search_opendir+set}" = set; then :
9415 else
9416 ac_cv_search_opendir=no
9418 rm conftest.$ac_ext
9419 LIBS=$ac_func_search_save_LIBS
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9422 $as_echo "$ac_cv_search_opendir" >&6; }
9423 ac_res=$ac_cv_search_opendir
9424 if test "$ac_res" != no; then :
9425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9432 $as_echo_n "checking for ANSI C header files... " >&6; }
9433 if test "${ac_cv_header_stdc+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 #include <stdlib.h>
9439 #include <stdarg.h>
9440 #include <string.h>
9441 #include <float.h>
9444 main ()
9448 return 0;
9450 _ACEOF
9451 if ac_fn_c_try_compile "$LINENO"; then :
9452 ac_cv_header_stdc=yes
9453 else
9454 ac_cv_header_stdc=no
9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458 if test $ac_cv_header_stdc = yes; then
9459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 #include <string.h>
9464 _ACEOF
9465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9466 $EGREP "memchr" >/dev/null 2>&1; then :
9468 else
9469 ac_cv_header_stdc=no
9471 rm -f conftest*
9475 if test $ac_cv_header_stdc = yes; then
9476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 #include <stdlib.h>
9481 _ACEOF
9482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9483 $EGREP "free" >/dev/null 2>&1; then :
9485 else
9486 ac_cv_header_stdc=no
9488 rm -f conftest*
9492 if test $ac_cv_header_stdc = yes; then
9493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9494 if test "$cross_compiling" = yes; then :
9496 else
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9499 #include <ctype.h>
9500 #include <stdlib.h>
9501 #if ((' ' & 0x0FF) == 0x020)
9502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9504 #else
9505 # define ISLOWER(c) \
9506 (('a' <= (c) && (c) <= 'i') \
9507 || ('j' <= (c) && (c) <= 'r') \
9508 || ('s' <= (c) && (c) <= 'z'))
9509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9510 #endif
9512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9514 main ()
9516 int i;
9517 for (i = 0; i < 256; i++)
9518 if (XOR (islower (i), ISLOWER (i))
9519 || toupper (i) != TOUPPER (i))
9520 return 2;
9521 return 0;
9523 _ACEOF
9524 if ac_fn_c_try_run "$LINENO"; then :
9526 else
9527 ac_cv_header_stdc=no
9529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9530 conftest.$ac_objext conftest.beam conftest.$ac_ext
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9536 $as_echo "$ac_cv_header_stdc" >&6; }
9537 if test $ac_cv_header_stdc = yes; then
9539 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9543 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
9544 do :
9545 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9546 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9547 eval as_val=\$$as_ac_Header
9548 if test "x$as_val" = x""yes; then :
9549 cat >>confdefs.h <<_ACEOF
9550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9551 _ACEOF
9555 done
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9558 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9559 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563 /* end confdefs.h. */
9564 #include <sys/types.h>
9565 #include <sys/wait.h>
9566 #ifndef WEXITSTATUS
9567 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9568 #endif
9569 #ifndef WIFEXITED
9570 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9571 #endif
9574 main ()
9576 int s;
9577 wait (&s);
9578 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9580 return 0;
9582 _ACEOF
9583 if ac_fn_c_try_compile "$LINENO"; then :
9584 ac_cv_header_sys_wait_h=yes
9585 else
9586 ac_cv_header_sys_wait_h=no
9588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9591 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9592 if test $ac_cv_header_sys_wait_h = yes; then
9594 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9599 # Checks for typedefs, structures, and compiler characteristics.
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9601 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9602 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9604 else
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9608 #include <stdbool.h>
9609 #ifndef bool
9610 "error: bool is not defined"
9611 #endif
9612 #ifndef false
9613 "error: false is not defined"
9614 #endif
9615 #if false
9616 "error: false is not 0"
9617 #endif
9618 #ifndef true
9619 "error: true is not defined"
9620 #endif
9621 #if true != 1
9622 "error: true is not 1"
9623 #endif
9624 #ifndef __bool_true_false_are_defined
9625 "error: __bool_true_false_are_defined is not defined"
9626 #endif
9628 struct s { _Bool s: 1; _Bool t; } s;
9630 char a[true == 1 ? 1 : -1];
9631 char b[false == 0 ? 1 : -1];
9632 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9633 char d[(bool) 0.5 == true ? 1 : -1];
9634 bool e = &s;
9635 char f[(_Bool) 0.0 == false ? 1 : -1];
9636 char g[true];
9637 char h[sizeof (_Bool)];
9638 char i[sizeof s.t];
9639 enum { j = false, k = true, l = false * true, m = true * 256 };
9640 /* The following fails for
9641 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9642 _Bool n[m];
9643 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9644 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9645 # if defined __xlc__ || defined __GNUC__
9646 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9647 reported by James Lemley on 2005-10-05; see
9648 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9649 This test is not quite right, since xlc is allowed to
9650 reject this program, as the initializer for xlcbug is
9651 not one of the forms that C requires support for.
9652 However, doing the test right would require a runtime
9653 test, and that would make cross-compilation harder.
9654 Let us hope that IBM fixes the xlc bug, and also adds
9655 support for this kind of constant expression. In the
9656 meantime, this test will reject xlc, which is OK, since
9657 our stdbool.h substitute should suffice. We also test
9658 this with GCC, where it should work, to detect more
9659 quickly whether someone messes up the test in the
9660 future. */
9661 char digs[] = "0123456789";
9662 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9663 # endif
9664 /* Catch a bug in an HP-UX C compiler. See
9665 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9666 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9668 _Bool q = true;
9669 _Bool *pq = &q;
9672 main ()
9675 *pq |= q;
9676 *pq |= ! q;
9677 /* Refer to every declared value, to avoid compiler optimizations. */
9678 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9679 + !m + !n + !o + !p + !q + !pq);
9682 return 0;
9684 _ACEOF
9685 if ac_fn_c_try_compile "$LINENO"; then :
9686 ac_cv_header_stdbool_h=yes
9687 else
9688 ac_cv_header_stdbool_h=no
9690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9693 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9694 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9695 if test "x$ac_cv_type__Bool" = x""yes; then :
9697 cat >>confdefs.h <<_ACEOF
9698 #define HAVE__BOOL 1
9699 _ACEOF
9704 if test $ac_cv_header_stdbool_h = yes; then
9706 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9711 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9712 if test "${ac_cv_c_const+set}" = set; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9719 main ()
9721 /* FIXME: Include the comments suggested by Paul. */
9722 #ifndef __cplusplus
9723 /* Ultrix mips cc rejects this. */
9724 typedef int charset[2];
9725 const charset cs;
9726 /* SunOS 4.1.1 cc rejects this. */
9727 char const *const *pcpcc;
9728 char **ppc;
9729 /* NEC SVR4.0.2 mips cc rejects this. */
9730 struct point {int x, y;};
9731 static struct point const zero = {0,0};
9732 /* AIX XL C 1.02.0.0 rejects this.
9733 It does not let you subtract one const X* pointer from another in
9734 an arm of an if-expression whose if-part is not a constant
9735 expression */
9736 const char *g = "string";
9737 pcpcc = &g + (g ? g-g : 0);
9738 /* HPUX 7.0 cc rejects these. */
9739 ++pcpcc;
9740 ppc = (char**) pcpcc;
9741 pcpcc = (char const *const *) ppc;
9742 { /* SCO 3.2v4 cc rejects this. */
9743 char *t;
9744 char const *s = 0 ? (char *) 0 : (char const *) 0;
9746 *t++ = 0;
9747 if (s) return 0;
9749 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9750 int x[] = {25, 17};
9751 const int *foo = &x[0];
9752 ++foo;
9754 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9755 typedef const int *iptr;
9756 iptr p = 0;
9757 ++p;
9759 { /* AIX XL C 1.02.0.0 rejects this saying
9760 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9761 struct s { int j; const int *ap[3]; };
9762 struct s *b; b->j = 5;
9764 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9765 const int foo = 10;
9766 if (!foo) return 0;
9768 return !cs[0] && !zero.x;
9769 #endif
9772 return 0;
9774 _ACEOF
9775 if ac_fn_c_try_compile "$LINENO"; then :
9776 ac_cv_c_const=yes
9777 else
9778 ac_cv_c_const=no
9780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9783 $as_echo "$ac_cv_c_const" >&6; }
9784 if test $ac_cv_c_const = no; then
9786 $as_echo "#define const /**/" >>confdefs.h
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9791 $as_echo_n "checking for inline... " >&6; }
9792 if test "${ac_cv_c_inline+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 ac_cv_c_inline=no
9796 for ac_kw in inline __inline__ __inline; do
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799 #ifndef __cplusplus
9800 typedef int foo_t;
9801 static $ac_kw foo_t static_foo () {return 0; }
9802 $ac_kw foo_t foo () {return 0; }
9803 #endif
9805 _ACEOF
9806 if ac_fn_c_try_compile "$LINENO"; then :
9807 ac_cv_c_inline=$ac_kw
9809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9810 test "$ac_cv_c_inline" != no && break
9811 done
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9815 $as_echo "$ac_cv_c_inline" >&6; }
9817 case $ac_cv_c_inline in
9818 inline | yes) ;;
9820 case $ac_cv_c_inline in
9821 no) ac_val=;;
9822 *) ac_val=$ac_cv_c_inline;;
9823 esac
9824 cat >>confdefs.h <<_ACEOF
9825 #ifndef __cplusplus
9826 #define inline $ac_val
9827 #endif
9828 _ACEOF
9830 esac
9832 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9833 if test "x$ac_cv_type_mode_t" = x""yes; then :
9835 else
9837 cat >>confdefs.h <<_ACEOF
9838 #define mode_t int
9839 _ACEOF
9843 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9844 if test "x$ac_cv_type_off_t" = x""yes; then :
9846 else
9848 cat >>confdefs.h <<_ACEOF
9849 #define off_t long int
9850 _ACEOF
9854 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9855 if test "x$ac_cv_type_size_t" = x""yes; then :
9857 else
9859 cat >>confdefs.h <<_ACEOF
9860 #define size_t unsigned int
9861 _ACEOF
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9866 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9867 if test "${ac_cv_header_time+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9872 #include <sys/types.h>
9873 #include <sys/time.h>
9874 #include <time.h>
9877 main ()
9879 if ((struct tm *) 0)
9880 return 0;
9882 return 0;
9884 _ACEOF
9885 if ac_fn_c_try_compile "$LINENO"; then :
9886 ac_cv_header_time=yes
9887 else
9888 ac_cv_header_time=no
9890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9893 $as_echo "$ac_cv_header_time" >&6; }
9894 if test $ac_cv_header_time = yes; then
9896 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9901 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9902 if test "${ac_cv_struct_tm+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9907 #include <sys/types.h>
9908 #include <time.h>
9911 main ()
9913 struct tm tm;
9914 int *p = &tm.tm_sec;
9915 return !p;
9917 return 0;
9919 _ACEOF
9920 if ac_fn_c_try_compile "$LINENO"; then :
9921 ac_cv_struct_tm=time.h
9922 else
9923 ac_cv_struct_tm=sys/time.h
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9928 $as_echo "$ac_cv_struct_tm" >&6; }
9929 if test $ac_cv_struct_tm = sys/time.h; then
9931 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9936 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9937 if test "${ac_cv_type_uid_t+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9939 else
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 #include <sys/types.h>
9944 _ACEOF
9945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9946 $EGREP "uid_t" >/dev/null 2>&1; then :
9947 ac_cv_type_uid_t=yes
9948 else
9949 ac_cv_type_uid_t=no
9951 rm -f conftest*
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9955 $as_echo "$ac_cv_type_uid_t" >&6; }
9956 if test $ac_cv_type_uid_t = no; then
9958 $as_echo "#define uid_t int" >>confdefs.h
9961 $as_echo "#define gid_t int" >>confdefs.h
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9966 $as_echo_n "checking for working volatile... " >&6; }
9967 if test "${ac_cv_c_volatile+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9974 main ()
9977 volatile int x;
9978 int * volatile y = (int *) 0;
9979 return !x && !y;
9981 return 0;
9983 _ACEOF
9984 if ac_fn_c_try_compile "$LINENO"; then :
9985 ac_cv_c_volatile=yes
9986 else
9987 ac_cv_c_volatile=no
9989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9992 $as_echo "$ac_cv_c_volatile" >&6; }
9993 if test $ac_cv_c_volatile = no; then
9995 $as_echo "#define volatile /**/" >>confdefs.h
9999 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10000 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
10002 cat >>confdefs.h <<_ACEOF
10003 #define HAVE_PTRDIFF_T 1
10004 _ACEOF
10010 # Checks for library functions.
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
10012 $as_echo_n "checking whether closedir returns void... " >&6; }
10013 if test "${ac_cv_func_closedir_void+set}" = set; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 if test "$cross_compiling" = yes; then :
10017 ac_cv_func_closedir_void=yes
10018 else
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10021 $ac_includes_default
10022 #include <$ac_header_dirent>
10023 #ifndef __cplusplus
10024 int closedir ();
10025 #endif
10028 main ()
10030 return closedir (opendir (".")) != 0;
10032 return 0;
10034 _ACEOF
10035 if ac_fn_c_try_run "$LINENO"; then :
10036 ac_cv_func_closedir_void=no
10037 else
10038 ac_cv_func_closedir_void=yes
10040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10041 conftest.$ac_objext conftest.beam conftest.$ac_ext
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
10046 $as_echo "$ac_cv_func_closedir_void" >&6; }
10047 if test $ac_cv_func_closedir_void = yes; then
10049 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10053 if test $ac_cv_c_compiler_gnu = yes; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10055 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10056 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 ac_pattern="Autoconf.*'x'"
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10062 #include <sgtty.h>
10063 Autoconf TIOCGETP
10064 _ACEOF
10065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10066 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10067 ac_cv_prog_gcc_traditional=yes
10068 else
10069 ac_cv_prog_gcc_traditional=no
10071 rm -f conftest*
10074 if test $ac_cv_prog_gcc_traditional = no; then
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10077 #include <termio.h>
10078 Autoconf TCGETA
10079 _ACEOF
10080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10081 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10082 ac_cv_prog_gcc_traditional=yes
10084 rm -f conftest*
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10089 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10090 if test $ac_cv_prog_gcc_traditional = yes; then
10091 CC="$CC -traditional"
10095 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10096 if test "x$ac_cv_type_pid_t" = x""yes; then :
10098 else
10100 cat >>confdefs.h <<_ACEOF
10101 #define pid_t int
10102 _ACEOF
10106 for ac_header in vfork.h
10107 do :
10108 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10109 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10110 cat >>confdefs.h <<_ACEOF
10111 #define HAVE_VFORK_H 1
10112 _ACEOF
10116 done
10118 for ac_func in fork vfork
10119 do :
10120 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10121 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10122 eval as_val=\$$as_ac_var
10123 if test "x$as_val" = x""yes; then :
10124 cat >>confdefs.h <<_ACEOF
10125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10126 _ACEOF
10129 done
10131 if test "x$ac_cv_func_fork" = xyes; then
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10133 $as_echo_n "checking for working fork... " >&6; }
10134 if test "${ac_cv_func_fork_works+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 if test "$cross_compiling" = yes; then :
10138 ac_cv_func_fork_works=cross
10139 else
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10142 $ac_includes_default
10144 main ()
10147 /* By Ruediger Kuhlmann. */
10148 return fork () < 0;
10151 return 0;
10153 _ACEOF
10154 if ac_fn_c_try_run "$LINENO"; then :
10155 ac_cv_func_fork_works=yes
10156 else
10157 ac_cv_func_fork_works=no
10159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10160 conftest.$ac_objext conftest.beam conftest.$ac_ext
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10165 $as_echo "$ac_cv_func_fork_works" >&6; }
10167 else
10168 ac_cv_func_fork_works=$ac_cv_func_fork
10170 if test "x$ac_cv_func_fork_works" = xcross; then
10171 case $host in
10172 *-*-amigaos* | *-*-msdosdjgpp*)
10173 # Override, as these systems have only a dummy fork() stub
10174 ac_cv_func_fork_works=no
10177 ac_cv_func_fork_works=yes
10179 esac
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10181 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10183 ac_cv_func_vfork_works=$ac_cv_func_vfork
10184 if test "x$ac_cv_func_vfork" = xyes; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10186 $as_echo_n "checking for working vfork... " >&6; }
10187 if test "${ac_cv_func_vfork_works+set}" = set; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 if test "$cross_compiling" = yes; then :
10191 ac_cv_func_vfork_works=cross
10192 else
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 /* Thanks to Paul Eggert for this test. */
10196 $ac_includes_default
10197 #include <sys/wait.h>
10198 #ifdef HAVE_VFORK_H
10199 # include <vfork.h>
10200 #endif
10201 /* On some sparc systems, changes by the child to local and incoming
10202 argument registers are propagated back to the parent. The compiler
10203 is told about this with #include <vfork.h>, but some compilers
10204 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10205 static variable whose address is put into a register that is
10206 clobbered by the vfork. */
10207 static void
10208 #ifdef __cplusplus
10209 sparc_address_test (int arg)
10210 # else
10211 sparc_address_test (arg) int arg;
10212 #endif
10214 static pid_t child;
10215 if (!child) {
10216 child = vfork ();
10217 if (child < 0) {
10218 perror ("vfork");
10219 _exit(2);
10221 if (!child) {
10222 arg = getpid();
10223 write(-1, "", 0);
10224 _exit (arg);
10230 main ()
10232 pid_t parent = getpid ();
10233 pid_t child;
10235 sparc_address_test (0);
10237 child = vfork ();
10239 if (child == 0) {
10240 /* Here is another test for sparc vfork register problems. This
10241 test uses lots of local variables, at least as many local
10242 variables as main has allocated so far including compiler
10243 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10244 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10245 reuse the register of parent for one of the local variables,
10246 since it will think that parent can't possibly be used any more
10247 in this routine. Assigning to the local variable will thus
10248 munge parent in the parent process. */
10249 pid_t
10250 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10251 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10252 /* Convince the compiler that p..p7 are live; otherwise, it might
10253 use the same hardware register for all 8 local variables. */
10254 if (p != p1 || p != p2 || p != p3 || p != p4
10255 || p != p5 || p != p6 || p != p7)
10256 _exit(1);
10258 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10259 from child file descriptors. If the child closes a descriptor
10260 before it execs or exits, this munges the parent's descriptor
10261 as well. Test for this by closing stdout in the child. */
10262 _exit(close(fileno(stdout)) != 0);
10263 } else {
10264 int status;
10265 struct stat st;
10267 while (wait(&status) != child)
10269 return (
10270 /* Was there some problem with vforking? */
10271 child < 0
10273 /* Did the child fail? (This shouldn't happen.) */
10274 || status
10276 /* Did the vfork/compiler bug occur? */
10277 || parent != getpid()
10279 /* Did the file descriptor bug occur? */
10280 || fstat(fileno(stdout), &st) != 0
10284 _ACEOF
10285 if ac_fn_c_try_run "$LINENO"; then :
10286 ac_cv_func_vfork_works=yes
10287 else
10288 ac_cv_func_vfork_works=no
10290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10291 conftest.$ac_objext conftest.beam conftest.$ac_ext
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10296 $as_echo "$ac_cv_func_vfork_works" >&6; }
10299 if test "x$ac_cv_func_fork_works" = xcross; then
10300 ac_cv_func_vfork_works=$ac_cv_func_vfork
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10302 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10305 if test "x$ac_cv_func_vfork_works" = xyes; then
10307 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10309 else
10311 $as_echo "#define vfork fork" >>confdefs.h
10314 if test "x$ac_cv_func_fork_works" = xyes; then
10316 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10321 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10322 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 rm -f conftest.sym conftest.file
10326 echo >conftest.file
10327 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10328 if test "$cross_compiling" = yes; then :
10329 ac_cv_func_lstat_dereferences_slashed_symlink=no
10330 else
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 $ac_includes_default
10335 main ()
10337 struct stat sbuf;
10338 /* Linux will dereference the symlink and fail, as required by POSIX.
10339 That is better in the sense that it means we will not
10340 have to compile and use the lstat wrapper. */
10341 return lstat ("conftest.sym/", &sbuf) == 0;
10343 return 0;
10345 _ACEOF
10346 if ac_fn_c_try_run "$LINENO"; then :
10347 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10348 else
10349 ac_cv_func_lstat_dereferences_slashed_symlink=no
10351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10352 conftest.$ac_objext conftest.beam conftest.$ac_ext
10355 else
10356 # If the `ln -s' command failed, then we probably don't even
10357 # have an lstat function.
10358 ac_cv_func_lstat_dereferences_slashed_symlink=no
10360 rm -f conftest.sym conftest.file
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10364 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10366 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10368 cat >>confdefs.h <<_ACEOF
10369 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10370 _ACEOF
10373 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10374 case " $LIBOBJS " in
10375 *" lstat.$ac_objext "* ) ;;
10376 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10378 esac
10382 if test x$SYS != xwin32; then :
10384 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10385 # -lseq on Dynix/PTX, -lgen on Unixware.
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
10387 $as_echo_n "checking for library containing getmntent... " >&6; }
10388 if test "${ac_cv_search_getmntent+set}" = set; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 ac_func_search_save_LIBS=$LIBS
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10395 /* Override any GCC internal prototype to avoid an error.
10396 Use char because int might match the return type of a GCC
10397 builtin and then its argument prototype would still apply. */
10398 #ifdef __cplusplus
10399 extern "C"
10400 #endif
10401 char getmntent ();
10403 main ()
10405 return getmntent ();
10407 return 0;
10409 _ACEOF
10410 for ac_lib in '' sun seq gen; do
10411 if test -z "$ac_lib"; then
10412 ac_res="none required"
10413 else
10414 ac_res=-l$ac_lib
10415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10417 if ac_fn_c_try_link "$LINENO"; then :
10418 ac_cv_search_getmntent=$ac_res
10420 rm -f core conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext
10422 if test "${ac_cv_search_getmntent+set}" = set; then :
10423 break
10425 done
10426 if test "${ac_cv_search_getmntent+set}" = set; then :
10428 else
10429 ac_cv_search_getmntent=no
10431 rm conftest.$ac_ext
10432 LIBS=$ac_func_search_save_LIBS
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10435 $as_echo "$ac_cv_search_getmntent" >&6; }
10436 ac_res=$ac_cv_search_getmntent
10437 if test "$ac_res" != no; then :
10438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10439 ac_cv_func_getmntent=yes
10441 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
10443 else
10444 ac_cv_func_getmntent=no
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
10449 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
10450 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 if test "$cross_compiling" = yes; then :
10454 ac_cv_func_lstat_empty_string_bug=yes
10455 else
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10458 $ac_includes_default
10460 main ()
10462 struct stat sbuf;
10463 return lstat ("", &sbuf) == 0;
10465 return 0;
10467 _ACEOF
10468 if ac_fn_c_try_run "$LINENO"; then :
10469 ac_cv_func_lstat_empty_string_bug=no
10470 else
10471 ac_cv_func_lstat_empty_string_bug=yes
10473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10474 conftest.$ac_objext conftest.beam conftest.$ac_ext
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
10479 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
10480 if test $ac_cv_func_lstat_empty_string_bug = yes; then
10481 case " $LIBOBJS " in
10482 *" lstat.$ac_objext "* ) ;;
10483 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10485 esac
10488 cat >>confdefs.h <<_ACEOF
10489 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
10490 _ACEOF
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10495 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10496 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10498 else
10499 rm -f conftest.sym conftest.file
10500 echo >conftest.file
10501 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10502 if test "$cross_compiling" = yes; then :
10503 ac_cv_func_lstat_dereferences_slashed_symlink=no
10504 else
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507 $ac_includes_default
10509 main ()
10511 struct stat sbuf;
10512 /* Linux will dereference the symlink and fail, as required by POSIX.
10513 That is better in the sense that it means we will not
10514 have to compile and use the lstat wrapper. */
10515 return lstat ("conftest.sym/", &sbuf) == 0;
10517 return 0;
10519 _ACEOF
10520 if ac_fn_c_try_run "$LINENO"; then :
10521 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10522 else
10523 ac_cv_func_lstat_dereferences_slashed_symlink=no
10525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10526 conftest.$ac_objext conftest.beam conftest.$ac_ext
10529 else
10530 # If the `ln -s' command failed, then we probably don't even
10531 # have an lstat function.
10532 ac_cv_func_lstat_dereferences_slashed_symlink=no
10534 rm -f conftest.sym conftest.file
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10538 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10540 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10542 cat >>confdefs.h <<_ACEOF
10543 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10544 _ACEOF
10547 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10548 case " $LIBOBJS " in
10549 *" lstat.$ac_objext "* ) ;;
10550 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10552 esac
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
10559 $as_echo_n "checking for working memcmp... " >&6; }
10560 if test "${ac_cv_func_memcmp_working+set}" = set; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 if test "$cross_compiling" = yes; then :
10564 ac_cv_func_memcmp_working=no
10565 else
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10568 $ac_includes_default
10570 main ()
10573 /* Some versions of memcmp are not 8-bit clean. */
10574 char c0 = '\100', c1 = '\200', c2 = '\201';
10575 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10576 return 1;
10578 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10579 or more and with at least one buffer not starting on a 4-byte boundary.
10580 William Lewis provided this test program. */
10582 char foo[21];
10583 char bar[21];
10584 int i;
10585 for (i = 0; i < 4; i++)
10587 char *a = foo + i;
10588 char *b = bar + i;
10589 strcpy (a, "--------01111111");
10590 strcpy (b, "--------10000000");
10591 if (memcmp (a, b, 16) >= 0)
10592 return 1;
10594 return 0;
10598 return 0;
10600 _ACEOF
10601 if ac_fn_c_try_run "$LINENO"; then :
10602 ac_cv_func_memcmp_working=yes
10603 else
10604 ac_cv_func_memcmp_working=no
10606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10607 conftest.$ac_objext conftest.beam conftest.$ac_ext
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
10612 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10613 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10614 *" memcmp.$ac_objext "* ) ;;
10615 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10617 esac
10620 for ac_header in sys/select.h sys/socket.h
10621 do :
10622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10623 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10624 eval as_val=\$$as_ac_Header
10625 if test "x$as_val" = x""yes; then :
10626 cat >>confdefs.h <<_ACEOF
10627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10628 _ACEOF
10632 done
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10635 $as_echo_n "checking types of arguments for select... " >&6; }
10636 if test "${ac_cv_func_select_args+set}" = set; then :
10637 $as_echo_n "(cached) " >&6
10638 else
10639 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10640 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10641 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10644 $ac_includes_default
10645 #ifdef HAVE_SYS_SELECT_H
10646 # include <sys/select.h>
10647 #endif
10648 #ifdef HAVE_SYS_SOCKET_H
10649 # include <sys/socket.h>
10650 #endif
10653 main ()
10655 extern int select ($ac_arg1,
10656 $ac_arg234, $ac_arg234, $ac_arg234,
10657 $ac_arg5);
10659 return 0;
10661 _ACEOF
10662 if ac_fn_c_try_compile "$LINENO"; then :
10663 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10666 done
10667 done
10668 done
10669 # Provide a safe default value.
10670 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10674 $as_echo "$ac_cv_func_select_args" >&6; }
10675 ac_save_IFS=$IFS; IFS=','
10676 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10677 IFS=$ac_save_IFS
10678 shift
10680 cat >>confdefs.h <<_ACEOF
10681 #define SELECT_TYPE_ARG1 $1
10682 _ACEOF
10685 cat >>confdefs.h <<_ACEOF
10686 #define SELECT_TYPE_ARG234 ($2)
10687 _ACEOF
10690 cat >>confdefs.h <<_ACEOF
10691 #define SELECT_TYPE_ARG5 ($3)
10692 _ACEOF
10694 rm -f conftest*
10696 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
10697 $as_echo_n "(cached) " >&6
10698 else
10699 ac_cv_func_setvbuf_reversed=no
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10704 $as_echo_n "checking return type of signal handlers... " >&6; }
10705 if test "${ac_cv_type_signal+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
10707 else
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 #include <sys/types.h>
10711 #include <signal.h>
10714 main ()
10716 return *(signal (0, 0)) (0) == 1;
10718 return 0;
10720 _ACEOF
10721 if ac_fn_c_try_compile "$LINENO"; then :
10722 ac_cv_type_signal=int
10723 else
10724 ac_cv_type_signal=void
10726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10729 $as_echo "$ac_cv_type_signal" >&6; }
10731 cat >>confdefs.h <<_ACEOF
10732 #define RETSIGTYPE $ac_cv_type_signal
10733 _ACEOF
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
10737 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10738 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 if test "$cross_compiling" = yes; then :
10742 ac_cv_func_stat_empty_string_bug=yes
10743 else
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746 $ac_includes_default
10748 main ()
10750 struct stat sbuf;
10751 return stat ("", &sbuf) == 0;
10753 return 0;
10755 _ACEOF
10756 if ac_fn_c_try_run "$LINENO"; then :
10757 ac_cv_func_stat_empty_string_bug=no
10758 else
10759 ac_cv_func_stat_empty_string_bug=yes
10761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10762 conftest.$ac_objext conftest.beam conftest.$ac_ext
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
10767 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10768 if test $ac_cv_func_stat_empty_string_bug = yes; then
10769 case " $LIBOBJS " in
10770 *" stat.$ac_objext "* ) ;;
10771 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10773 esac
10776 cat >>confdefs.h <<_ACEOF
10777 #define HAVE_STAT_EMPTY_STRING_BUG 1
10778 _ACEOF
10782 for ac_func in strftime
10783 do :
10784 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
10785 if test "x$ac_cv_func_strftime" = x""yes; then :
10786 cat >>confdefs.h <<_ACEOF
10787 #define HAVE_STRFTIME 1
10788 _ACEOF
10790 else
10791 # strftime is in -lintl on SCO UNIX.
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
10793 $as_echo_n "checking for strftime in -lintl... " >&6; }
10794 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10796 else
10797 ac_check_lib_save_LIBS=$LIBS
10798 LIBS="-lintl $LIBS"
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 char strftime ();
10810 main ()
10812 return strftime ();
10814 return 0;
10816 _ACEOF
10817 if ac_fn_c_try_link "$LINENO"; then :
10818 ac_cv_lib_intl_strftime=yes
10819 else
10820 ac_cv_lib_intl_strftime=no
10822 rm -f core conftest.err conftest.$ac_objext \
10823 conftest$ac_exeext conftest.$ac_ext
10824 LIBS=$ac_check_lib_save_LIBS
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
10827 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
10828 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
10829 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10831 LIBS="-lintl $LIBS"
10835 done
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
10838 $as_echo_n "checking for working strtod... " >&6; }
10839 if test "${ac_cv_func_strtod+set}" = set; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 if test "$cross_compiling" = yes; then :
10843 ac_cv_func_strtod=no
10844 else
10845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10848 $ac_includes_default
10849 #ifndef strtod
10850 double strtod ();
10851 #endif
10853 main()
10856 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10857 char *string = " +69";
10858 char *term;
10859 double value;
10860 value = strtod (string, &term);
10861 if (value != 69 || term != (string + 4))
10862 return 1;
10866 /* Under Solaris 2.4, strtod returns the wrong value for the
10867 terminating character under some conditions. */
10868 char *string = "NaN";
10869 char *term;
10870 strtod (string, &term);
10871 if (term != string && *(term - 1) == 0)
10872 return 1;
10874 return 0;
10877 _ACEOF
10878 if ac_fn_c_try_run "$LINENO"; then :
10879 ac_cv_func_strtod=yes
10880 else
10881 ac_cv_func_strtod=no
10883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10884 conftest.$ac_objext conftest.beam conftest.$ac_ext
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
10889 $as_echo "$ac_cv_func_strtod" >&6; }
10890 if test $ac_cv_func_strtod = no; then
10891 case " $LIBOBJS " in
10892 *" strtod.$ac_objext "* ) ;;
10893 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10895 esac
10897 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
10898 if test "x$ac_cv_func_pow" = x""yes; then :
10902 if test $ac_cv_func_pow = no; then
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
10904 $as_echo_n "checking for pow in -lm... " >&6; }
10905 if test "${ac_cv_lib_m_pow+set}" = set; then :
10906 $as_echo_n "(cached) " >&6
10907 else
10908 ac_check_lib_save_LIBS=$LIBS
10909 LIBS="-lm $LIBS"
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 char pow ();
10921 main ()
10923 return pow ();
10925 return 0;
10927 _ACEOF
10928 if ac_fn_c_try_link "$LINENO"; then :
10929 ac_cv_lib_m_pow=yes
10930 else
10931 ac_cv_lib_m_pow=no
10933 rm -f core conftest.err conftest.$ac_objext \
10934 conftest$ac_exeext conftest.$ac_ext
10935 LIBS=$ac_check_lib_save_LIBS
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
10938 $as_echo "$ac_cv_lib_m_pow" >&6; }
10939 if test "x$ac_cv_lib_m_pow" = x""yes; then :
10940 POW_LIB=-lm
10941 else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
10943 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10950 for ac_func in vprintf
10951 do :
10952 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10953 if test "x$ac_cv_func_vprintf" = x""yes; then :
10954 cat >>confdefs.h <<_ACEOF
10955 #define HAVE_VPRINTF 1
10956 _ACEOF
10958 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10959 if test "x$ac_cv_func__doprnt" = x""yes; then :
10961 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10966 done
10969 if test $cross_compiling = yes -a $gnumalloc = yes; then :
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10972 configure cannot check whether malloc() and realloc() are GNU libc
10973 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10974 run configure with the --without-gnu-malloc switch." >&5
10975 $as_echo "$as_me: WARNING:
10976 configure cannot check whether malloc() and realloc() are GNU libc
10977 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10978 run configure with the --without-gnu-malloc switch." >&2;}
10979 _mule_warning_8=yes
10980 _mule_has_warnings=yes
10982 ac_cv_func_malloc_0_nonnull=yes
10983 ac_cv_func_realloc_0_nonnull=yes
10986 for ac_header in stdlib.h
10987 do :
10988 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10989 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10990 cat >>confdefs.h <<_ACEOF
10991 #define HAVE_STDLIB_H 1
10992 _ACEOF
10996 done
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10999 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11000 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 if test "$cross_compiling" = yes; then :
11004 ac_cv_func_malloc_0_nonnull=no
11005 else
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11009 # include <stdlib.h>
11010 #else
11011 char *malloc ();
11012 #endif
11015 main ()
11017 return ! malloc (0);
11019 return 0;
11021 _ACEOF
11022 if ac_fn_c_try_run "$LINENO"; then :
11023 ac_cv_func_malloc_0_nonnull=yes
11024 else
11025 ac_cv_func_malloc_0_nonnull=no
11027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11028 conftest.$ac_objext conftest.beam conftest.$ac_ext
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11033 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11034 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11036 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11038 else
11039 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11041 case " $LIBOBJS " in
11042 *" malloc.$ac_objext "* ) ;;
11043 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11045 esac
11048 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11053 for ac_header in stdlib.h
11054 do :
11055 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11056 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11057 cat >>confdefs.h <<_ACEOF
11058 #define HAVE_STDLIB_H 1
11059 _ACEOF
11063 done
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11066 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11067 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 if test "$cross_compiling" = yes; then :
11071 ac_cv_func_realloc_0_nonnull=no
11072 else
11073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074 /* end confdefs.h. */
11075 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11076 # include <stdlib.h>
11077 #else
11078 char *realloc ();
11079 #endif
11082 main ()
11084 return ! realloc (0, 0);
11086 return 0;
11088 _ACEOF
11089 if ac_fn_c_try_run "$LINENO"; then :
11090 ac_cv_func_realloc_0_nonnull=yes
11091 else
11092 ac_cv_func_realloc_0_nonnull=no
11094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11095 conftest.$ac_objext conftest.beam conftest.$ac_ext
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11100 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11101 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11103 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11105 else
11106 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11108 case " $LIBOBJS " in
11109 *" realloc.$ac_objext "* ) ;;
11110 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11112 esac
11115 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11120 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
11121 do :
11122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11123 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11124 eval as_val=\$$as_ac_var
11125 if test "x$as_val" = x""yes; then :
11126 cat >>confdefs.h <<_ACEOF
11127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11128 _ACEOF
11131 done
11133 #-------------------------------------------------------------------------------
11134 # End of autoscan stuff
11135 #-------------------------------------------------------------------------------
11137 for ac_func in mkdir getrlimit setrlimit getopt_long
11138 do :
11139 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11140 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11141 eval as_val=\$$as_ac_var
11142 if test "x$as_val" = x""yes; then :
11143 cat >>confdefs.h <<_ACEOF
11144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11145 _ACEOF
11148 done
11154 for ac_header in $ac_header_list
11155 do :
11156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11157 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11159 eval as_val=\$$as_ac_Header
11160 if test "x$as_val" = x""yes; then :
11161 cat >>confdefs.h <<_ACEOF
11162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11163 _ACEOF
11167 done
11175 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11177 # Check whether --enable-mmap was given.
11178 if test "${enable_mmap+set}" = set; then :
11179 enableval=$enable_mmap;
11184 if test ${enable_mmap:-no} = yes; then :
11186 for ac_header in sys/mman.h
11187 do :
11188 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11189 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_SYS_MMAN_H 1
11192 _ACEOF
11196 done
11199 for ac_func in getpagesize
11200 do :
11201 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11202 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11203 cat >>confdefs.h <<_ACEOF
11204 #define HAVE_GETPAGESIZE 1
11205 _ACEOF
11208 done
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11211 $as_echo_n "checking for working mmap... " >&6; }
11212 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11213 $as_echo_n "(cached) " >&6
11214 else
11215 if test "$cross_compiling" = yes; then :
11216 ac_cv_func_mmap_fixed_mapped=no
11217 else
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11220 $ac_includes_default
11221 /* malloc might have been renamed as rpl_malloc. */
11222 #undef malloc
11224 /* Thanks to Mike Haertel and Jim Avera for this test.
11225 Here is a matrix of mmap possibilities:
11226 mmap private not fixed
11227 mmap private fixed at somewhere currently unmapped
11228 mmap private fixed at somewhere already mapped
11229 mmap shared not fixed
11230 mmap shared fixed at somewhere currently unmapped
11231 mmap shared fixed at somewhere already mapped
11232 For private mappings, we should verify that changes cannot be read()
11233 back from the file, nor mmap's back from the file at a different
11234 address. (There have been systems where private was not correctly
11235 implemented like the infamous i386 svr4.0, and systems where the
11236 VM page cache was not coherent with the file system buffer cache
11237 like early versions of FreeBSD and possibly contemporary NetBSD.)
11238 For shared mappings, we should conversely verify that changes get
11239 propagated back to all the places they're supposed to be.
11241 Grep wants private fixed already mapped.
11242 The main things grep needs to know about mmap are:
11243 * does it exist and is it safe to write into the mmap'd area
11244 * how to use it (BSD variants) */
11246 #include <fcntl.h>
11247 #include <sys/mman.h>
11249 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11250 char *malloc ();
11251 #endif
11253 /* This mess was copied from the GNU getpagesize.h. */
11254 #ifndef HAVE_GETPAGESIZE
11255 # ifdef _SC_PAGESIZE
11256 # define getpagesize() sysconf(_SC_PAGESIZE)
11257 # else /* no _SC_PAGESIZE */
11258 # ifdef HAVE_SYS_PARAM_H
11259 # include <sys/param.h>
11260 # ifdef EXEC_PAGESIZE
11261 # define getpagesize() EXEC_PAGESIZE
11262 # else /* no EXEC_PAGESIZE */
11263 # ifdef NBPG
11264 # define getpagesize() NBPG * CLSIZE
11265 # ifndef CLSIZE
11266 # define CLSIZE 1
11267 # endif /* no CLSIZE */
11268 # else /* no NBPG */
11269 # ifdef NBPC
11270 # define getpagesize() NBPC
11271 # else /* no NBPC */
11272 # ifdef PAGESIZE
11273 # define getpagesize() PAGESIZE
11274 # endif /* PAGESIZE */
11275 # endif /* no NBPC */
11276 # endif /* no NBPG */
11277 # endif /* no EXEC_PAGESIZE */
11278 # else /* no HAVE_SYS_PARAM_H */
11279 # define getpagesize() 8192 /* punt totally */
11280 # endif /* no HAVE_SYS_PARAM_H */
11281 # endif /* no _SC_PAGESIZE */
11283 #endif /* no HAVE_GETPAGESIZE */
11286 main ()
11288 char *data, *data2, *data3;
11289 int i, pagesize;
11290 int fd, fd2;
11292 pagesize = getpagesize ();
11294 /* First, make a file with some known garbage in it. */
11295 data = (char *) malloc (pagesize);
11296 if (!data)
11297 return 1;
11298 for (i = 0; i < pagesize; ++i)
11299 *(data + i) = rand ();
11300 umask (0);
11301 fd = creat ("conftest.mmap", 0600);
11302 if (fd < 0)
11303 return 2;
11304 if (write (fd, data, pagesize) != pagesize)
11305 return 3;
11306 close (fd);
11308 /* Next, check that the tail of a page is zero-filled. File must have
11309 non-zero length, otherwise we risk SIGBUS for entire page. */
11310 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11311 if (fd2 < 0)
11312 return 4;
11313 data2 = "";
11314 if (write (fd2, data2, 1) != 1)
11315 return 5;
11316 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11317 if (data2 == MAP_FAILED)
11318 return 6;
11319 for (i = 0; i < pagesize; ++i)
11320 if (*(data2 + i))
11321 return 7;
11322 close (fd2);
11323 if (munmap (data2, pagesize))
11324 return 8;
11326 /* Next, try to mmap the file at a fixed address which already has
11327 something else allocated at it. If we can, also make sure that
11328 we see the same garbage. */
11329 fd = open ("conftest.mmap", O_RDWR);
11330 if (fd < 0)
11331 return 9;
11332 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11333 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11334 return 10;
11335 for (i = 0; i < pagesize; ++i)
11336 if (*(data + i) != *(data2 + i))
11337 return 11;
11339 /* Finally, make sure that changes to the mapped area do not
11340 percolate back to the file as seen by read(). (This is a bug on
11341 some variants of i386 svr4.0.) */
11342 for (i = 0; i < pagesize; ++i)
11343 *(data2 + i) = *(data2 + i) + 1;
11344 data3 = (char *) malloc (pagesize);
11345 if (!data3)
11346 return 12;
11347 if (read (fd, data3, pagesize) != pagesize)
11348 return 13;
11349 for (i = 0; i < pagesize; ++i)
11350 if (*(data + i) != *(data3 + i))
11351 return 14;
11352 close (fd);
11353 return 0;
11355 _ACEOF
11356 if ac_fn_c_try_run "$LINENO"; then :
11357 ac_cv_func_mmap_fixed_mapped=yes
11358 else
11359 ac_cv_func_mmap_fixed_mapped=no
11361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11362 conftest.$ac_objext conftest.beam conftest.$ac_ext
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11367 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11368 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11370 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11373 rm -f conftest.mmap conftest.txt
11375 for ac_func in munmap sysconf
11376 do :
11377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11379 eval as_val=\$$as_ac_var
11380 if test "x$as_val" = x""yes; then :
11381 cat >>confdefs.h <<_ACEOF
11382 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11383 _ACEOF
11386 done
11388 if test $ac_cv_func_sysconf = yes; then :
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
11391 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11396 #include <unistd.h>
11399 main ()
11402 return sysconf(_SC_PAGESIZE);
11405 return 0;
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
11412 $as_echo "_SC_PAGESIZE" >&6; }
11414 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
11417 else
11419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h. */
11423 #include <unistd.h>
11426 main ()
11429 return sysconf(_SC_PAGE_SIZE);
11432 return 0;
11435 _ACEOF
11436 if ac_fn_c_try_link "$LINENO"; then :
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
11439 $as_echo "_SC_PAGE_SIZE" >&6; }
11441 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
11444 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11447 $as_echo "none" >&6; }
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11454 rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11459 else
11461 # fake the result of the test for munmap() for the gettext macros
11462 ac_cv_func_munmap=no
11468 mule_backup_CPPFLAGS="$CPPFLAGS"
11469 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
11470 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11471 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
11472 ac_have_decl=1
11473 else
11474 ac_have_decl=0
11477 cat >>confdefs.h <<_ACEOF
11478 #define HAVE_DECL_STRERROR_R $ac_have_decl
11479 _ACEOF
11481 for ac_func in strerror_r
11482 do :
11483 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11484 if test "x$ac_cv_func_strerror_r" = x""yes; then :
11485 cat >>confdefs.h <<_ACEOF
11486 #define HAVE_STRERROR_R 1
11487 _ACEOF
11490 done
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11493 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11494 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11498 ac_cv_func_strerror_r_char_p=no
11499 if test $ac_cv_have_decl_strerror_r = yes; then
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502 $ac_includes_default
11504 main ()
11507 char buf[100];
11508 char x = *strerror_r (0, buf, sizeof buf);
11509 char *p = strerror_r (0, buf, sizeof buf);
11510 return !p || x;
11513 return 0;
11515 _ACEOF
11516 if ac_fn_c_try_compile "$LINENO"; then :
11517 ac_cv_func_strerror_r_char_p=yes
11519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520 else
11521 # strerror_r is not declared. Choose between
11522 # systems that have relatively inaccessible declarations for the
11523 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11524 # former has a strerror_r that returns char*, while the latter
11525 # has a strerror_r that returns `int'.
11526 # This test should segfault on the DEC system.
11527 if test "$cross_compiling" = yes; then :
11529 else
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11532 $ac_includes_default
11533 extern char *strerror_r ();
11535 main ()
11537 char buf[100];
11538 char x = *strerror_r (0, buf, sizeof buf);
11539 return ! isalpha (x);
11541 return 0;
11543 _ACEOF
11544 if ac_fn_c_try_run "$LINENO"; then :
11545 ac_cv_func_strerror_r_char_p=yes
11547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11548 conftest.$ac_objext conftest.beam conftest.$ac_ext
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11555 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11556 if test $ac_cv_func_strerror_r_char_p = yes; then
11558 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11562 CPPFLAGS="$mule_backup_CPPFLAGS"
11564 # Look for a way to preallocate disk space for files.
11565 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
11568 $as_echo_n "checking for fallocate... " >&6; }
11569 mule_backup_CPPFLAGS="$CPPFLAGS"
11570 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11575 #define _GNU_SOURCE
11576 #ifdef HAVE_FCNTL_H
11577 # include <fcntl.h>
11578 #endif
11579 #include <linux/falloc.h>
11582 main ()
11585 fallocate(0, 0, 0, 0);
11588 return 0;
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"; then :
11595 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11598 $as_echo "yes" >&6; }
11600 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 CPPFLAGS="$mule_backup_CPPFLAGS"
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
11612 $as_echo_n "checking for SYS_fallocate... " >&6; }
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11617 #include <sys/syscall.h>
11618 #include <sys/types.h>
11619 #include <unistd.h>
11622 main ()
11625 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
11628 return 0;
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11635 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638 $as_echo "yes" >&6; }
11640 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643 $as_echo "no" >&6; }
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
11650 $as_echo_n "checking for posix_fallocate... " >&6; }
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h. */
11655 #define _XOPEN_SOURCE 600
11656 #include <stdlib.h>
11657 #ifdef HAVE_FCNTL_H
11658 # include <fcntl.h>
11659 #endif
11662 main ()
11665 posix_fallocate(0, 0, 0);
11668 return 0;
11671 _ACEOF
11672 if ac_fn_c_try_link "$LINENO"; then :
11675 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11678 $as_echo "yes" >&6; }
11680 else
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11686 rm -f core conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11691 # Checking Native Language Support
11694 MKINSTALLDIRS=
11695 if test -n "$ac_aux_dir"; then
11696 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11698 if test -z "$MKINSTALLDIRS"; then
11699 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11706 # Extract the first word of "msgfmt", so it can be a program name with args.
11707 set dummy msgfmt; ac_word=$2
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709 $as_echo_n "checking for $ac_word... " >&6; }
11710 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 case "$MSGFMT" in
11715 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11719 for ac_dir in $PATH; do
11720 test -z "$ac_dir" && ac_dir=.
11721 if test -f $ac_dir/$ac_word; then
11722 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11723 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11724 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11725 break
11728 done
11729 IFS="$ac_save_ifs"
11730 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11732 esac
11734 MSGFMT="$ac_cv_path_MSGFMT"
11735 if test "$MSGFMT" != ":"; then
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11737 $as_echo "$MSGFMT" >&6; }
11738 else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740 $as_echo "no" >&6; }
11743 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11744 set dummy gmsgfmt; ac_word=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11748 $as_echo_n "(cached) " >&6
11749 else
11750 case $GMSGFMT in
11751 [\\/]* | ?:[\\/]*)
11752 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756 for as_dir in $PATH
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
11760 for ac_exec_ext in '' $ac_executable_extensions; do
11761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11762 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 break 2
11766 done
11767 done
11768 IFS=$as_save_IFS
11770 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11772 esac
11774 GMSGFMT=$ac_cv_path_GMSGFMT
11775 if test -n "$GMSGFMT"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11777 $as_echo "$GMSGFMT" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11785 # Extract the first word of "xgettext", so it can be a program name with args.
11786 set dummy xgettext; ac_word=$2
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788 $as_echo_n "checking for $ac_word... " >&6; }
11789 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 case "$XGETTEXT" in
11794 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11798 for ac_dir in $PATH; do
11799 test -z "$ac_dir" && ac_dir=.
11800 if test -f $ac_dir/$ac_word; then
11801 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11802 (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
11803 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11804 break
11807 done
11808 IFS="$ac_save_ifs"
11809 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11811 esac
11813 XGETTEXT="$ac_cv_path_XGETTEXT"
11814 if test "$XGETTEXT" != ":"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11816 $as_echo "$XGETTEXT" >&6; }
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11822 rm -f messages.po
11824 # Extract the first word of "msgmerge", so it can be a program name with args.
11825 set dummy msgmerge; ac_word=$2
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11827 $as_echo_n "checking for $ac_word... " >&6; }
11828 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 case "$MSGMERGE" in
11833 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11837 for ac_dir in $PATH; do
11838 test -z "$ac_dir" && ac_dir=.
11839 if test -f $ac_dir/$ac_word; then
11840 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11841 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
11842 break
11845 done
11846 IFS="$ac_save_ifs"
11847 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11849 esac
11851 MSGMERGE="$ac_cv_path_MSGMERGE"
11852 if test "$MSGMERGE" != ":"; then
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11854 $as_echo "$MSGMERGE" >&6; }
11855 else
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11861 if test "$GMSGFMT" != ":"; then
11862 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11863 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11865 else
11866 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11868 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11869 GMSGFMT=":"
11873 if test "$XGETTEXT" != ":"; then
11874 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11875 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11879 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11880 XGETTEXT=":"
11882 rm -f messages.po
11885 ac_config_commands="$ac_config_commands default-1"
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
11890 $as_echo_n "checking for strerror in -lcposix... " >&6; }
11891 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-lcposix $LIBS"
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11899 /* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11902 #ifdef __cplusplus
11903 extern "C"
11904 #endif
11905 char strerror ();
11907 main ()
11909 return strerror ();
11911 return 0;
11913 _ACEOF
11914 if ac_fn_c_try_link "$LINENO"; then :
11915 ac_cv_lib_cposix_strerror=yes
11916 else
11917 ac_cv_lib_cposix_strerror=no
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921 LIBS=$ac_check_lib_save_LIBS
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
11924 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
11925 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
11926 LIBS="$LIBS -lcposix"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11933 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11934 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11940 #include <features.h>
11941 #ifdef __GNU_LIBRARY__
11942 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11943 Lucky GNU user
11944 #endif
11945 #endif
11947 _ACEOF
11948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11949 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11950 ac_cv_gnu_library_2_1=yes
11951 else
11952 ac_cv_gnu_library_2_1=no
11954 rm -f conftest*
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11960 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11962 GLIBC21="$ac_cv_gnu_library_2_1"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
11968 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
11969 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
11970 $as_echo_n "(cached) " >&6
11971 else
11973 if test "$cross_compiling" = yes; then :
11975 # Guess based on the CPU.
11976 case "$host_cpu" in
11977 alpha* | i3456786 | m68k | s390*)
11978 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11980 gt_cv_int_divbyzero_sigfpe="guessing no";;
11981 esac
11983 else
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11987 #include <stdlib.h>
11988 #include <signal.h>
11990 static void
11991 #ifdef __cplusplus
11992 sigfpe_handler (int sig)
11993 #else
11994 sigfpe_handler (sig) int sig;
11995 #endif
11997 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11998 exit (sig != SIGFPE);
12001 int x = 1;
12002 int y = 0;
12003 int z;
12004 int nan;
12006 int main ()
12008 signal (SIGFPE, sigfpe_handler);
12009 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
12010 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
12011 signal (SIGTRAP, sigfpe_handler);
12012 #endif
12013 /* Linux/SPARC yields signal SIGILL. */
12014 #if defined (__sparc__) && defined (__linux__)
12015 signal (SIGILL, sigfpe_handler);
12016 #endif
12018 z = x / y;
12019 nan = y / y;
12020 exit (1);
12023 _ACEOF
12024 if ac_fn_c_try_run "$LINENO"; then :
12025 gt_cv_int_divbyzero_sigfpe=yes
12026 else
12027 gt_cv_int_divbyzero_sigfpe=no
12029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12030 conftest.$ac_objext conftest.beam conftest.$ac_ext
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
12036 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
12037 case "$gt_cv_int_divbyzero_sigfpe" in
12038 *yes) value=1;;
12039 *) value=0;;
12040 esac
12042 cat >>confdefs.h <<_ACEOF
12043 #define INTDIV0_RAISES_SIGFPE $value
12044 _ACEOF
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12049 $as_echo_n "checking for inttypes.h... " >&6; }
12050 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12055 #include <sys/types.h>
12056 #include <inttypes.h>
12058 main ()
12060 uintmax_t i = (uintmax_t) -1;
12062 return 0;
12064 _ACEOF
12065 if ac_fn_c_try_compile "$LINENO"; then :
12066 jm_ac_cv_header_inttypes_h=yes
12067 else
12068 jm_ac_cv_header_inttypes_h=no
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
12073 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12074 if test $jm_ac_cv_header_inttypes_h = yes; then
12076 cat >>confdefs.h <<_ACEOF
12077 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12078 _ACEOF
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12084 $as_echo_n "checking for stdint.h... " >&6; }
12085 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090 #include <sys/types.h>
12091 #include <stdint.h>
12093 main ()
12095 uintmax_t i = (uintmax_t) -1;
12097 return 0;
12099 _ACEOF
12100 if ac_fn_c_try_compile "$LINENO"; then :
12101 jm_ac_cv_header_stdint_h=yes
12102 else
12103 jm_ac_cv_header_stdint_h=no
12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12108 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12109 if test $jm_ac_cv_header_stdint_h = yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define HAVE_STDINT_H_WITH_UINTMAX 1
12113 _ACEOF
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12119 $as_echo_n "checking for unsigned long long... " >&6; }
12120 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 unsigned long long ull = 1; int i = 63;
12127 main ()
12129 unsigned long long ullmax = (unsigned long long) -1;
12130 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12132 return 0;
12134 _ACEOF
12135 if ac_fn_c_try_link "$LINENO"; then :
12136 ac_cv_type_unsigned_long_long=yes
12137 else
12138 ac_cv_type_unsigned_long_long=no
12140 rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12144 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12145 if test $ac_cv_type_unsigned_long_long = yes; then
12147 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12154 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
12156 test $ac_cv_type_unsigned_long_long = yes \
12157 && ac_type='unsigned long long' \
12158 || ac_type='unsigned long'
12160 cat >>confdefs.h <<_ACEOF
12161 #define uintmax_t $ac_type
12162 _ACEOF
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12168 $as_echo_n "checking for inttypes.h... " >&6; }
12169 if test "${gt_cv_header_inttypes_h+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12175 #include <sys/types.h>
12176 #include <inttypes.h>
12178 main ()
12182 return 0;
12184 _ACEOF
12185 if ac_fn_c_try_compile "$LINENO"; then :
12186 gt_cv_header_inttypes_h=yes
12187 else
12188 gt_cv_header_inttypes_h=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12194 $as_echo "$gt_cv_header_inttypes_h" >&6; }
12195 if test $gt_cv_header_inttypes_h = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198 #define HAVE_INTTYPES_H 1
12199 _ACEOF
12205 if test $gt_cv_header_inttypes_h = yes; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12207 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12208 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
12210 else
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12214 #include <inttypes.h>
12215 #ifdef PRId32
12216 char *p = PRId32;
12217 #endif
12220 main ()
12224 return 0;
12226 _ACEOF
12227 if ac_fn_c_try_compile "$LINENO"; then :
12228 gt_cv_inttypes_pri_broken=no
12229 else
12230 gt_cv_inttypes_pri_broken=yes
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12236 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12238 if test "$gt_cv_inttypes_pri_broken" = yes; then
12240 cat >>confdefs.h <<_ACEOF
12241 #define PRI_MACROS_BROKEN 1
12242 _ACEOF
12247 if test "X$prefix" = "XNONE"; then
12248 acl_final_prefix="$ac_default_prefix"
12249 else
12250 acl_final_prefix="$prefix"
12252 if test "X$exec_prefix" = "XNONE"; then
12253 acl_final_exec_prefix='${prefix}'
12254 else
12255 acl_final_exec_prefix="$exec_prefix"
12257 acl_save_prefix="$prefix"
12258 prefix="$acl_final_prefix"
12259 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12260 prefix="$acl_save_prefix"
12263 # Check whether --with-gnu-ld was given.
12264 if test "${with_gnu_ld+set}" = set; then :
12265 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12266 else
12267 with_gnu_ld=no
12270 ac_prog=ld
12271 if test "$GCC" = yes; then
12272 # Check if gcc -print-prog-name=ld gives a path.
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12274 $as_echo_n "checking for ld used by GCC... " >&6; }
12275 case $host in
12276 *-*-mingw*)
12277 # gcc leaves a trailing carriage return which upsets mingw
12278 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12280 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12281 esac
12282 case $ac_prog in
12283 # Accept absolute paths.
12284 [\\/]* | [A-Za-z]:[\\/]*)
12285 re_direlt='/[^/][^/]*/\.\./'
12286 # Canonicalize the path of ld
12287 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12288 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12289 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12290 done
12291 test -z "$LD" && LD="$ac_prog"
12294 # If it fails, then pretend we aren't using GCC.
12295 ac_prog=ld
12298 # If it is relative, then search for the first ld in PATH.
12299 with_gnu_ld=unknown
12301 esac
12302 elif test "$with_gnu_ld" = yes; then
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12304 $as_echo_n "checking for GNU ld... " >&6; }
12305 else
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12307 $as_echo_n "checking for non-GNU ld... " >&6; }
12309 if test "${acl_cv_path_LD+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 if test -z "$LD"; then
12313 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12314 for ac_dir in $PATH; do
12315 test -z "$ac_dir" && ac_dir=.
12316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12317 acl_cv_path_LD="$ac_dir/$ac_prog"
12318 # Check to see if the program is GNU ld. I'd rather use --version,
12319 # but apparently some GNU ld's only accept -v.
12320 # Break only if it was the GNU/non-GNU ld that we prefer.
12321 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12322 test "$with_gnu_ld" != no && break
12323 else
12324 test "$with_gnu_ld" != yes && break
12327 done
12328 IFS="$ac_save_ifs"
12329 else
12330 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12334 LD="$acl_cv_path_LD"
12335 if test -n "$LD"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12337 $as_echo "$LD" >&6; }
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12342 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12344 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12345 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12346 $as_echo_n "(cached) " >&6
12347 else
12348 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12349 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12350 acl_cv_prog_gnu_ld=yes
12351 else
12352 acl_cv_prog_gnu_ld=no
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12356 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12357 with_gnu_ld=$acl_cv_prog_gnu_ld
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12362 $as_echo_n "checking for shared library run path origin... " >&6; }
12363 if test "${acl_cv_rpath+set}" = set; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12367 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12368 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12369 . ./conftest.sh
12370 rm -f ./conftest.sh
12371 acl_cv_rpath=done
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12375 $as_echo "$acl_cv_rpath" >&6; }
12376 wl="$acl_cv_wl"
12377 libext="$acl_cv_libext"
12378 shlibext="$acl_cv_shlibext"
12379 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12380 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12381 hardcode_direct="$acl_cv_hardcode_direct"
12382 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12383 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
12384 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
12385 # Check whether --enable-rpath was given.
12386 if test "${enable_rpath+set}" = set; then :
12387 enableval=$enable_rpath; :
12388 else
12389 enable_rpath=yes
12399 use_additional=yes
12401 acl_save_prefix="$prefix"
12402 prefix="$acl_final_prefix"
12403 acl_save_exec_prefix="$exec_prefix"
12404 exec_prefix="$acl_final_exec_prefix"
12406 eval additional_includedir=\"$includedir\"
12407 eval additional_libdir=\"$libdir\"
12409 exec_prefix="$acl_save_exec_prefix"
12410 prefix="$acl_save_prefix"
12413 # Check whether --with-libiconv-prefix was given.
12414 if test "${with_libiconv_prefix+set}" = set; then :
12415 withval=$with_libiconv_prefix;
12416 if test "X$withval" = "Xno"; then
12417 use_additional=no
12418 else
12419 if test "X$withval" = "X"; then
12421 acl_save_prefix="$prefix"
12422 prefix="$acl_final_prefix"
12423 acl_save_exec_prefix="$exec_prefix"
12424 exec_prefix="$acl_final_exec_prefix"
12426 eval additional_includedir=\"$includedir\"
12427 eval additional_libdir=\"$libdir\"
12429 exec_prefix="$acl_save_exec_prefix"
12430 prefix="$acl_save_prefix"
12432 else
12433 additional_includedir="$withval/include"
12434 additional_libdir="$withval/lib"
12440 LIBICONV=
12441 LTLIBICONV=
12442 INCICONV=
12443 rpathdirs=
12444 ltrpathdirs=
12445 names_already_handled=
12446 names_next_round='iconv '
12447 while test -n "$names_next_round"; do
12448 names_this_round="$names_next_round"
12449 names_next_round=
12450 for name in $names_this_round; do
12451 already_handled=
12452 for n in $names_already_handled; do
12453 if test "$n" = "$name"; then
12454 already_handled=yes
12455 break
12457 done
12458 if test -z "$already_handled"; then
12459 names_already_handled="$names_already_handled $name"
12460 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12461 eval value=\"\$HAVE_LIB$uppername\"
12462 if test -n "$value"; then
12463 if test "$value" = yes; then
12464 eval value=\"\$LIB$uppername\"
12465 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12466 eval value=\"\$LTLIB$uppername\"
12467 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12468 else
12471 else
12472 found_dir=
12473 found_la=
12474 found_so=
12475 found_a=
12476 if test $use_additional = yes; then
12477 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12478 found_dir="$additional_libdir"
12479 found_so="$additional_libdir/lib$name.$shlibext"
12480 if test -f "$additional_libdir/lib$name.la"; then
12481 found_la="$additional_libdir/lib$name.la"
12483 else
12484 if test -f "$additional_libdir/lib$name.$libext"; then
12485 found_dir="$additional_libdir"
12486 found_a="$additional_libdir/lib$name.$libext"
12487 if test -f "$additional_libdir/lib$name.la"; then
12488 found_la="$additional_libdir/lib$name.la"
12493 if test "X$found_dir" = "X"; then
12494 for x in $LDFLAGS $LTLIBICONV; do
12496 acl_save_prefix="$prefix"
12497 prefix="$acl_final_prefix"
12498 acl_save_exec_prefix="$exec_prefix"
12499 exec_prefix="$acl_final_exec_prefix"
12500 eval x=\"$x\"
12501 exec_prefix="$acl_save_exec_prefix"
12502 prefix="$acl_save_prefix"
12504 case "$x" in
12505 -L*)
12506 dir=`echo "X$x" | sed -e 's/^X-L//'`
12507 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12508 found_dir="$dir"
12509 found_so="$dir/lib$name.$shlibext"
12510 if test -f "$dir/lib$name.la"; then
12511 found_la="$dir/lib$name.la"
12513 else
12514 if test -f "$dir/lib$name.$libext"; then
12515 found_dir="$dir"
12516 found_a="$dir/lib$name.$libext"
12517 if test -f "$dir/lib$name.la"; then
12518 found_la="$dir/lib$name.la"
12523 esac
12524 if test "X$found_dir" != "X"; then
12525 break
12527 done
12529 if test "X$found_dir" != "X"; then
12530 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12531 if test "X$found_so" != "X"; then
12532 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12533 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12534 else
12535 haveit=
12536 for x in $ltrpathdirs; do
12537 if test "X$x" = "X$found_dir"; then
12538 haveit=yes
12539 break
12541 done
12542 if test -z "$haveit"; then
12543 ltrpathdirs="$ltrpathdirs $found_dir"
12545 if test "$hardcode_direct" = yes; then
12546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12547 else
12548 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12549 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12550 haveit=
12551 for x in $rpathdirs; do
12552 if test "X$x" = "X$found_dir"; then
12553 haveit=yes
12554 break
12556 done
12557 if test -z "$haveit"; then
12558 rpathdirs="$rpathdirs $found_dir"
12560 else
12561 haveit=
12562 for x in $LDFLAGS $LIBICONV; do
12564 acl_save_prefix="$prefix"
12565 prefix="$acl_final_prefix"
12566 acl_save_exec_prefix="$exec_prefix"
12567 exec_prefix="$acl_final_exec_prefix"
12568 eval x=\"$x\"
12569 exec_prefix="$acl_save_exec_prefix"
12570 prefix="$acl_save_prefix"
12572 if test "X$x" = "X-L$found_dir"; then
12573 haveit=yes
12574 break
12576 done
12577 if test -z "$haveit"; then
12578 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12580 if test "$hardcode_minus_L" != no; then
12581 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12582 else
12583 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12588 else
12589 if test "X$found_a" != "X"; then
12590 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12591 else
12592 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12595 additional_includedir=
12596 case "$found_dir" in
12597 */lib | */lib/)
12598 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12599 additional_includedir="$basedir/include"
12601 esac
12602 if test "X$additional_includedir" != "X"; then
12603 if test "X$additional_includedir" != "X/usr/include"; then
12604 haveit=
12605 if test "X$additional_includedir" = "X/usr/local/include"; then
12606 if test -n "$GCC"; then
12607 case $host_os in
12608 linux*) haveit=yes;;
12609 esac
12612 if test -z "$haveit"; then
12613 for x in $CPPFLAGS $INCICONV; do
12615 acl_save_prefix="$prefix"
12616 prefix="$acl_final_prefix"
12617 acl_save_exec_prefix="$exec_prefix"
12618 exec_prefix="$acl_final_exec_prefix"
12619 eval x=\"$x\"
12620 exec_prefix="$acl_save_exec_prefix"
12621 prefix="$acl_save_prefix"
12623 if test "X$x" = "X-I$additional_includedir"; then
12624 haveit=yes
12625 break
12627 done
12628 if test -z "$haveit"; then
12629 if test -d "$additional_includedir"; then
12630 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12636 if test -n "$found_la"; then
12637 save_libdir="$libdir"
12638 case "$found_la" in
12639 */* | *\\*) . "$found_la" ;;
12640 *) . "./$found_la" ;;
12641 esac
12642 libdir="$save_libdir"
12643 for dep in $dependency_libs; do
12644 case "$dep" in
12645 -L*)
12646 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12647 if test "X$additional_libdir" != "X/usr/lib"; then
12648 haveit=
12649 if test "X$additional_libdir" = "X/usr/local/lib"; then
12650 if test -n "$GCC"; then
12651 case $host_os in
12652 linux*) haveit=yes;;
12653 esac
12656 if test -z "$haveit"; then
12657 haveit=
12658 for x in $LDFLAGS $LIBICONV; do
12660 acl_save_prefix="$prefix"
12661 prefix="$acl_final_prefix"
12662 acl_save_exec_prefix="$exec_prefix"
12663 exec_prefix="$acl_final_exec_prefix"
12664 eval x=\"$x\"
12665 exec_prefix="$acl_save_exec_prefix"
12666 prefix="$acl_save_prefix"
12668 if test "X$x" = "X-L$additional_libdir"; then
12669 haveit=yes
12670 break
12672 done
12673 if test -z "$haveit"; then
12674 if test -d "$additional_libdir"; then
12675 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12678 haveit=
12679 for x in $LDFLAGS $LTLIBICONV; do
12681 acl_save_prefix="$prefix"
12682 prefix="$acl_final_prefix"
12683 acl_save_exec_prefix="$exec_prefix"
12684 exec_prefix="$acl_final_exec_prefix"
12685 eval x=\"$x\"
12686 exec_prefix="$acl_save_exec_prefix"
12687 prefix="$acl_save_prefix"
12689 if test "X$x" = "X-L$additional_libdir"; then
12690 haveit=yes
12691 break
12693 done
12694 if test -z "$haveit"; then
12695 if test -d "$additional_libdir"; then
12696 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12702 -R*)
12703 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12704 if test "$enable_rpath" != no; then
12705 haveit=
12706 for x in $rpathdirs; do
12707 if test "X$x" = "X$dir"; then
12708 haveit=yes
12709 break
12711 done
12712 if test -z "$haveit"; then
12713 rpathdirs="$rpathdirs $dir"
12715 haveit=
12716 for x in $ltrpathdirs; do
12717 if test "X$x" = "X$dir"; then
12718 haveit=yes
12719 break
12721 done
12722 if test -z "$haveit"; then
12723 ltrpathdirs="$ltrpathdirs $dir"
12727 -l*)
12728 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12730 *.la)
12731 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12734 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12735 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12737 esac
12738 done
12740 else
12741 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12746 done
12747 done
12748 if test "X$rpathdirs" != "X"; then
12749 if test -n "$hardcode_libdir_separator"; then
12750 alldirs=
12751 for found_dir in $rpathdirs; do
12752 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12753 done
12754 acl_save_libdir="$libdir"
12755 libdir="$alldirs"
12756 eval flag=\"$hardcode_libdir_flag_spec\"
12757 libdir="$acl_save_libdir"
12758 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12759 else
12760 for found_dir in $rpathdirs; do
12761 acl_save_libdir="$libdir"
12762 libdir="$found_dir"
12763 eval flag=\"$hardcode_libdir_flag_spec\"
12764 libdir="$acl_save_libdir"
12765 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12766 done
12769 if test "X$ltrpathdirs" != "X"; then
12770 for found_dir in $ltrpathdirs; do
12771 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12772 done
12778 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12779 stdlib.h string.h unistd.h sys/param.h
12780 do :
12781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12782 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12783 eval as_val=\$$as_ac_Header
12784 if test "x$as_val" = x""yes; then :
12785 cat >>confdefs.h <<_ACEOF
12786 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12787 _ACEOF
12791 done
12793 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12794 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12795 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12796 do :
12797 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12798 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12799 eval as_val=\$$as_ac_var
12800 if test "x$as_val" = x""yes; then :
12801 cat >>confdefs.h <<_ACEOF
12802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12803 _ACEOF
12806 done
12814 am_save_CPPFLAGS="$CPPFLAGS"
12816 for element in $INCICONV; do
12817 haveit=
12818 for x in $CPPFLAGS; do
12820 acl_save_prefix="$prefix"
12821 prefix="$acl_final_prefix"
12822 acl_save_exec_prefix="$exec_prefix"
12823 exec_prefix="$acl_final_exec_prefix"
12824 eval x=\"$x\"
12825 exec_prefix="$acl_save_exec_prefix"
12826 prefix="$acl_save_prefix"
12828 if test "X$x" = "X$element"; then
12829 haveit=yes
12830 break
12832 done
12833 if test -z "$haveit"; then
12834 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12836 done
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12840 $as_echo_n "checking for iconv... " >&6; }
12841 if test "${am_cv_func_iconv+set}" = set; then :
12842 $as_echo_n "(cached) " >&6
12843 else
12845 am_cv_func_iconv="no, consider installing GNU libiconv"
12846 am_cv_lib_iconv=no
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12849 #include <stdlib.h>
12850 #include <iconv.h>
12852 main ()
12854 iconv_t cd = iconv_open("","");
12855 iconv(cd,NULL,NULL,NULL,NULL);
12856 iconv_close(cd);
12858 return 0;
12860 _ACEOF
12861 if ac_fn_c_try_link "$LINENO"; then :
12862 am_cv_func_iconv=yes
12864 rm -f core conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12866 if test "$am_cv_func_iconv" != yes; then
12867 am_save_LIBS="$LIBS"
12868 LIBS="$LIBS $LIBICONV"
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 #include <stdlib.h>
12872 #include <iconv.h>
12874 main ()
12876 iconv_t cd = iconv_open("","");
12877 iconv(cd,NULL,NULL,NULL,NULL);
12878 iconv_close(cd);
12880 return 0;
12882 _ACEOF
12883 if ac_fn_c_try_link "$LINENO"; then :
12884 am_cv_lib_iconv=yes
12885 am_cv_func_iconv=yes
12887 rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
12889 LIBS="$am_save_LIBS"
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12894 $as_echo "$am_cv_func_iconv" >&6; }
12895 if test "$am_cv_func_iconv" = yes; then
12897 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12900 if test "$am_cv_lib_iconv" = yes; then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12902 $as_echo_n "checking how to link with libiconv... " >&6; }
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12904 $as_echo "$LIBICONV" >&6; }
12905 else
12906 CPPFLAGS="$am_save_CPPFLAGS"
12907 LIBICONV=
12908 LTLIBICONV=
12913 if test "$am_cv_func_iconv" = yes; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12915 $as_echo_n "checking for iconv declaration... " >&6; }
12916 if test "${am_cv_proto_iconv+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12923 #include <stdlib.h>
12924 #include <iconv.h>
12925 extern
12926 #ifdef __cplusplus
12928 #endif
12929 #if defined(__STDC__) || defined(__cplusplus)
12930 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12931 #else
12932 size_t iconv();
12933 #endif
12936 main ()
12940 return 0;
12942 _ACEOF
12943 if ac_fn_c_try_compile "$LINENO"; then :
12944 am_cv_proto_iconv_arg1=""
12945 else
12946 am_cv_proto_iconv_arg1="const"
12948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949 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);"
12952 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12954 }$am_cv_proto_iconv" >&5
12955 $as_echo "${ac_t:-
12956 }$am_cv_proto_iconv" >&6; }
12958 cat >>confdefs.h <<_ACEOF
12959 #define ICONV_CONST $am_cv_proto_iconv_arg1
12960 _ACEOF
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12966 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12967 if test "${am_cv_langinfo_codeset+set}" = set; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972 #include <langinfo.h>
12974 main ()
12976 char* cs = nl_langinfo(CODESET);
12978 return 0;
12980 _ACEOF
12981 if ac_fn_c_try_link "$LINENO"; then :
12982 am_cv_langinfo_codeset=yes
12983 else
12984 am_cv_langinfo_codeset=no
12986 rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12991 $as_echo "$am_cv_langinfo_codeset" >&6; }
12992 if test $am_cv_langinfo_codeset = yes; then
12994 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12998 if test $ac_cv_header_locale_h = yes; then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13001 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13002 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13003 $as_echo_n "(cached) " >&6
13004 else
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007 #include <locale.h>
13009 main ()
13011 return LC_MESSAGES
13013 return 0;
13015 _ACEOF
13016 if ac_fn_c_try_link "$LINENO"; then :
13017 am_cv_val_LC_MESSAGES=yes
13018 else
13019 am_cv_val_LC_MESSAGES=no
13021 rm -f core conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13025 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13026 if test $am_cv_val_LC_MESSAGES = yes; then
13028 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13034 for ac_prog in bison
13036 # Extract the first word of "$ac_prog", so it can be a program name with args.
13037 set dummy $ac_prog; ac_word=$2
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039 $as_echo_n "checking for $ac_word... " >&6; }
13040 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 if test -n "$INTLBISON"; then
13044 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13045 else
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047 for as_dir in $PATH
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13053 ac_cv_prog_INTLBISON="$ac_prog"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13057 done
13058 done
13059 IFS=$as_save_IFS
13063 INTLBISON=$ac_cv_prog_INTLBISON
13064 if test -n "$INTLBISON"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
13066 $as_echo "$INTLBISON" >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13073 test -n "$INTLBISON" && break
13074 done
13076 if test -z "$INTLBISON"; then
13077 ac_verc_fail=yes
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13080 $as_echo_n "checking version of bison... " >&6; }
13081 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13082 case $ac_prog_version in
13083 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13084 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13085 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13086 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13087 esac
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13089 $as_echo "$ac_prog_version" >&6; }
13091 if test $ac_verc_fail = yes; then
13092 INTLBISON=:
13097 # Check whether --with-language was given.
13098 if test "${with_language+set}" = set; then :
13099 withval=$with_language; if test "$withval" != "all"; then :
13100 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13120 $as_echo_n "checking whether NLS is requested... " >&6; }
13121 # Check whether --enable-nls was given.
13122 if test "${enable_nls+set}" = set; then :
13123 enableval=$enable_nls; USE_NLS=$enableval
13124 else
13125 USE_NLS=yes
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13129 $as_echo "$USE_NLS" >&6; }
13133 BUILD_INCLUDED_LIBINTL=no
13134 USE_INCLUDED_LIBINTL=no
13136 LIBINTL=
13137 LTLIBINTL=
13138 POSUB=
13140 if test "$USE_NLS" = "yes"; then
13141 gt_use_preinstalled_gnugettext=no
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13144 $as_echo_n "checking whether included gettext is requested... " >&6; }
13146 # Check whether --with-included-gettext was given.
13147 if test "${with_included_gettext+set}" = set; then :
13148 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13149 else
13150 nls_cv_force_use_gnu_gettext=no
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13154 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13156 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13157 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13165 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13166 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
13167 $as_echo_n "(cached) " >&6
13168 else
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171 #include <libintl.h>
13172 extern int _nl_msg_cat_cntr;
13173 extern int *_nl_domain_bindings;
13175 main ()
13177 bindtextdomain ("", "");
13178 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13180 return 0;
13182 _ACEOF
13183 if ac_fn_c_try_link "$LINENO"; then :
13184 gt_cv_func_gnugettext2_libc=yes
13185 else
13186 gt_cv_func_gnugettext2_libc=no
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext conftest.$ac_ext
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
13192 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
13194 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13198 use_additional=yes
13200 acl_save_prefix="$prefix"
13201 prefix="$acl_final_prefix"
13202 acl_save_exec_prefix="$exec_prefix"
13203 exec_prefix="$acl_final_exec_prefix"
13205 eval additional_includedir=\"$includedir\"
13206 eval additional_libdir=\"$libdir\"
13208 exec_prefix="$acl_save_exec_prefix"
13209 prefix="$acl_save_prefix"
13212 # Check whether --with-libintl-prefix was given.
13213 if test "${with_libintl_prefix+set}" = set; then :
13214 withval=$with_libintl_prefix;
13215 if test "X$withval" = "Xno"; then
13216 use_additional=no
13217 else
13218 if test "X$withval" = "X"; then
13220 acl_save_prefix="$prefix"
13221 prefix="$acl_final_prefix"
13222 acl_save_exec_prefix="$exec_prefix"
13223 exec_prefix="$acl_final_exec_prefix"
13225 eval additional_includedir=\"$includedir\"
13226 eval additional_libdir=\"$libdir\"
13228 exec_prefix="$acl_save_exec_prefix"
13229 prefix="$acl_save_prefix"
13231 else
13232 additional_includedir="$withval/include"
13233 additional_libdir="$withval/lib"
13239 LIBINTL=
13240 LTLIBINTL=
13241 INCINTL=
13242 rpathdirs=
13243 ltrpathdirs=
13244 names_already_handled=
13245 names_next_round='intl '
13246 while test -n "$names_next_round"; do
13247 names_this_round="$names_next_round"
13248 names_next_round=
13249 for name in $names_this_round; do
13250 already_handled=
13251 for n in $names_already_handled; do
13252 if test "$n" = "$name"; then
13253 already_handled=yes
13254 break
13256 done
13257 if test -z "$already_handled"; then
13258 names_already_handled="$names_already_handled $name"
13259 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13260 eval value=\"\$HAVE_LIB$uppername\"
13261 if test -n "$value"; then
13262 if test "$value" = yes; then
13263 eval value=\"\$LIB$uppername\"
13264 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13265 eval value=\"\$LTLIB$uppername\"
13266 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13267 else
13270 else
13271 found_dir=
13272 found_la=
13273 found_so=
13274 found_a=
13275 if test $use_additional = yes; then
13276 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13277 found_dir="$additional_libdir"
13278 found_so="$additional_libdir/lib$name.$shlibext"
13279 if test -f "$additional_libdir/lib$name.la"; then
13280 found_la="$additional_libdir/lib$name.la"
13282 else
13283 if test -f "$additional_libdir/lib$name.$libext"; then
13284 found_dir="$additional_libdir"
13285 found_a="$additional_libdir/lib$name.$libext"
13286 if test -f "$additional_libdir/lib$name.la"; then
13287 found_la="$additional_libdir/lib$name.la"
13292 if test "X$found_dir" = "X"; then
13293 for x in $LDFLAGS $LTLIBINTL; do
13295 acl_save_prefix="$prefix"
13296 prefix="$acl_final_prefix"
13297 acl_save_exec_prefix="$exec_prefix"
13298 exec_prefix="$acl_final_exec_prefix"
13299 eval x=\"$x\"
13300 exec_prefix="$acl_save_exec_prefix"
13301 prefix="$acl_save_prefix"
13303 case "$x" in
13304 -L*)
13305 dir=`echo "X$x" | sed -e 's/^X-L//'`
13306 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13307 found_dir="$dir"
13308 found_so="$dir/lib$name.$shlibext"
13309 if test -f "$dir/lib$name.la"; then
13310 found_la="$dir/lib$name.la"
13312 else
13313 if test -f "$dir/lib$name.$libext"; then
13314 found_dir="$dir"
13315 found_a="$dir/lib$name.$libext"
13316 if test -f "$dir/lib$name.la"; then
13317 found_la="$dir/lib$name.la"
13322 esac
13323 if test "X$found_dir" != "X"; then
13324 break
13326 done
13328 if test "X$found_dir" != "X"; then
13329 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13330 if test "X$found_so" != "X"; then
13331 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13332 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13333 else
13334 haveit=
13335 for x in $ltrpathdirs; do
13336 if test "X$x" = "X$found_dir"; then
13337 haveit=yes
13338 break
13340 done
13341 if test -z "$haveit"; then
13342 ltrpathdirs="$ltrpathdirs $found_dir"
13344 if test "$hardcode_direct" = yes; then
13345 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13346 else
13347 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13348 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13349 haveit=
13350 for x in $rpathdirs; do
13351 if test "X$x" = "X$found_dir"; then
13352 haveit=yes
13353 break
13355 done
13356 if test -z "$haveit"; then
13357 rpathdirs="$rpathdirs $found_dir"
13359 else
13360 haveit=
13361 for x in $LDFLAGS $LIBINTL; do
13363 acl_save_prefix="$prefix"
13364 prefix="$acl_final_prefix"
13365 acl_save_exec_prefix="$exec_prefix"
13366 exec_prefix="$acl_final_exec_prefix"
13367 eval x=\"$x\"
13368 exec_prefix="$acl_save_exec_prefix"
13369 prefix="$acl_save_prefix"
13371 if test "X$x" = "X-L$found_dir"; then
13372 haveit=yes
13373 break
13375 done
13376 if test -z "$haveit"; then
13377 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13379 if test "$hardcode_minus_L" != no; then
13380 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13381 else
13382 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13387 else
13388 if test "X$found_a" != "X"; then
13389 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13390 else
13391 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13394 additional_includedir=
13395 case "$found_dir" in
13396 */lib | */lib/)
13397 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13398 additional_includedir="$basedir/include"
13400 esac
13401 if test "X$additional_includedir" != "X"; then
13402 if test "X$additional_includedir" != "X/usr/include"; then
13403 haveit=
13404 if test "X$additional_includedir" = "X/usr/local/include"; then
13405 if test -n "$GCC"; then
13406 case $host_os in
13407 linux*) haveit=yes;;
13408 esac
13411 if test -z "$haveit"; then
13412 for x in $CPPFLAGS $INCINTL; do
13414 acl_save_prefix="$prefix"
13415 prefix="$acl_final_prefix"
13416 acl_save_exec_prefix="$exec_prefix"
13417 exec_prefix="$acl_final_exec_prefix"
13418 eval x=\"$x\"
13419 exec_prefix="$acl_save_exec_prefix"
13420 prefix="$acl_save_prefix"
13422 if test "X$x" = "X-I$additional_includedir"; then
13423 haveit=yes
13424 break
13426 done
13427 if test -z "$haveit"; then
13428 if test -d "$additional_includedir"; then
13429 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13435 if test -n "$found_la"; then
13436 save_libdir="$libdir"
13437 case "$found_la" in
13438 */* | *\\*) . "$found_la" ;;
13439 *) . "./$found_la" ;;
13440 esac
13441 libdir="$save_libdir"
13442 for dep in $dependency_libs; do
13443 case "$dep" in
13444 -L*)
13445 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13446 if test "X$additional_libdir" != "X/usr/lib"; then
13447 haveit=
13448 if test "X$additional_libdir" = "X/usr/local/lib"; then
13449 if test -n "$GCC"; then
13450 case $host_os in
13451 linux*) haveit=yes;;
13452 esac
13455 if test -z "$haveit"; then
13456 haveit=
13457 for x in $LDFLAGS $LIBINTL; do
13459 acl_save_prefix="$prefix"
13460 prefix="$acl_final_prefix"
13461 acl_save_exec_prefix="$exec_prefix"
13462 exec_prefix="$acl_final_exec_prefix"
13463 eval x=\"$x\"
13464 exec_prefix="$acl_save_exec_prefix"
13465 prefix="$acl_save_prefix"
13467 if test "X$x" = "X-L$additional_libdir"; then
13468 haveit=yes
13469 break
13471 done
13472 if test -z "$haveit"; then
13473 if test -d "$additional_libdir"; then
13474 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13477 haveit=
13478 for x in $LDFLAGS $LTLIBINTL; do
13480 acl_save_prefix="$prefix"
13481 prefix="$acl_final_prefix"
13482 acl_save_exec_prefix="$exec_prefix"
13483 exec_prefix="$acl_final_exec_prefix"
13484 eval x=\"$x\"
13485 exec_prefix="$acl_save_exec_prefix"
13486 prefix="$acl_save_prefix"
13488 if test "X$x" = "X-L$additional_libdir"; then
13489 haveit=yes
13490 break
13492 done
13493 if test -z "$haveit"; then
13494 if test -d "$additional_libdir"; then
13495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13501 -R*)
13502 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13503 if test "$enable_rpath" != no; then
13504 haveit=
13505 for x in $rpathdirs; do
13506 if test "X$x" = "X$dir"; then
13507 haveit=yes
13508 break
13510 done
13511 if test -z "$haveit"; then
13512 rpathdirs="$rpathdirs $dir"
13514 haveit=
13515 for x in $ltrpathdirs; do
13516 if test "X$x" = "X$dir"; then
13517 haveit=yes
13518 break
13520 done
13521 if test -z "$haveit"; then
13522 ltrpathdirs="$ltrpathdirs $dir"
13526 -l*)
13527 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13529 *.la)
13530 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13533 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13534 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13536 esac
13537 done
13539 else
13540 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13541 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13545 done
13546 done
13547 if test "X$rpathdirs" != "X"; then
13548 if test -n "$hardcode_libdir_separator"; then
13549 alldirs=
13550 for found_dir in $rpathdirs; do
13551 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13552 done
13553 acl_save_libdir="$libdir"
13554 libdir="$alldirs"
13555 eval flag=\"$hardcode_libdir_flag_spec\"
13556 libdir="$acl_save_libdir"
13557 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13558 else
13559 for found_dir in $rpathdirs; do
13560 acl_save_libdir="$libdir"
13561 libdir="$found_dir"
13562 eval flag=\"$hardcode_libdir_flag_spec\"
13563 libdir="$acl_save_libdir"
13564 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13565 done
13568 if test "X$ltrpathdirs" != "X"; then
13569 for found_dir in $ltrpathdirs; do
13570 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13571 done
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13575 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13576 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 gt_save_CPPFLAGS="$CPPFLAGS"
13580 CPPFLAGS="$CPPFLAGS $INCINTL"
13581 gt_save_LIBS="$LIBS"
13582 LIBS="$LIBS $LIBINTL"
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 #include <libintl.h>
13586 extern int _nl_msg_cat_cntr;
13587 extern
13588 #ifdef __cplusplus
13590 #endif
13591 const char *_nl_expand_alias ();
13593 main ()
13595 bindtextdomain ("", "");
13596 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13598 return 0;
13600 _ACEOF
13601 if ac_fn_c_try_link "$LINENO"; then :
13602 gt_cv_func_gnugettext2_libintl=yes
13603 else
13604 gt_cv_func_gnugettext2_libintl=no
13606 rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13608 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
13609 LIBS="$LIBS $LIBICONV"
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612 #include <libintl.h>
13613 extern int _nl_msg_cat_cntr;
13614 extern
13615 #ifdef __cplusplus
13617 #endif
13618 const char *_nl_expand_alias ();
13620 main ()
13622 bindtextdomain ("", "");
13623 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13625 return 0;
13627 _ACEOF
13628 if ac_fn_c_try_link "$LINENO"; then :
13629 LIBINTL="$LIBINTL $LIBICONV"
13630 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13631 gt_cv_func_gnugettext2_libintl=yes
13634 rm -f core conftest.err conftest.$ac_objext \
13635 conftest$ac_exeext conftest.$ac_ext
13637 CPPFLAGS="$gt_save_CPPFLAGS"
13638 LIBS="$gt_save_LIBS"
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
13641 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
13644 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
13645 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
13646 && test "$PACKAGE" != gettext; }; then
13647 gt_use_preinstalled_gnugettext=yes
13648 else
13649 LIBINTL=
13650 LTLIBINTL=
13651 INCINTL=
13655 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13656 nls_cv_use_gnu_gettext=yes
13660 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13661 INTLOBJS="\$(GETTOBJS)"
13662 BUILD_INCLUDED_LIBINTL=yes
13663 USE_INCLUDED_LIBINTL=yes
13664 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13665 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13666 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13669 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13670 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13671 CATOBJEXT=.gmo
13675 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13676 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13678 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13680 else
13681 USE_NLS=no
13685 if test "$USE_NLS" = "yes"; then
13687 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13688 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13690 $as_echo_n "checking how to link with libintl... " >&6; }
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13692 $as_echo "$LIBINTL" >&6; }
13694 for element in $INCINTL; do
13695 haveit=
13696 for x in $CPPFLAGS; do
13698 acl_save_prefix="$prefix"
13699 prefix="$acl_final_prefix"
13700 acl_save_exec_prefix="$exec_prefix"
13701 exec_prefix="$acl_final_exec_prefix"
13702 eval x=\"$x\"
13703 exec_prefix="$acl_save_exec_prefix"
13704 prefix="$acl_save_prefix"
13706 if test "X$x" = "X$element"; then
13707 haveit=yes
13708 break
13710 done
13711 if test -z "$haveit"; then
13712 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13714 done
13719 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13722 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13726 POSUB=po
13730 if test "$PACKAGE" = gettext; then
13731 BUILD_INCLUDED_LIBINTL=yes
13739 nls_cv_header_intl=
13740 nls_cv_header_libgt=
13742 DATADIRNAME=share
13745 INSTOBJEXT=.mo
13748 GENCAT=gencat
13751 INTL_LIBTOOL_SUFFIX_PREFIX=
13755 INTLLIBS="$LIBINTL"
13762 if test $USE_INCLUDED_LIBINTL = yes; then :
13763 INCINTL=-I\${top_builddir}/intl
13766 if test x$USE_NLS = xyes; then :
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
13769 $as_echo_n "checking for autopoint... " >&6; }
13770 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
13771 if test -n "$autopoint_version"; then :
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
13774 $as_echo "yes ($autopoint_version)" >&6; }
13777 else
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780 $as_echo "no" >&6; }
13781 USE_NLS=no
13786 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13788 You need to install GNU gettext/gettext-tools to compile aMule with
13789 i18n support." >&5
13790 $as_echo "$as_me: WARNING:
13791 You need to install GNU gettext/gettext-tools to compile aMule with
13792 i18n support." >&2;}
13793 _mule_warning_9=yes
13794 _mule_has_warnings=yes
13798 if test ${USE_NLS:-no} = yes; then :
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
13801 $as_echo_n "checking for requested languages... " >&6; }
13802 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
13804 if test ${enable_amule_daemon:-no} = yes; then :
13806 if test -z "$LINGUAS"; then :
13807 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
13808 else
13810 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13811 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
13814 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
13816 else
13817 AMULE_DAEMON_MANPAGES=
13822 if test ${enable_amulecmd:-no} = yes; then :
13824 if test -z "$LINGUAS"; then :
13825 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
13826 else
13828 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13829 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
13832 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
13834 else
13835 AMULECMD_MANPAGES=
13840 if test ${enable_webserver:-no} = yes; then :
13842 if test -z "$LINGUAS"; then :
13843 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
13844 else
13846 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13847 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
13850 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
13852 else
13853 WEBSERVER_MANPAGES=
13858 if test ${enable_amule_gui:-no} = yes; then :
13860 if test -z "$LINGUAS"; then :
13861 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
13862 else
13864 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13865 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
13868 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
13870 else
13871 AMULE_GUI_MANPAGES=
13876 if test ${enable_cas:-no} = yes; then :
13878 if test -z "$LINGUAS"; then :
13879 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
13880 else
13882 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13883 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
13886 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
13888 else
13889 CAS_MANPAGES=
13894 if test ${enable_wxcas:-no} = yes; then :
13896 if test -z "$LINGUAS"; then :
13897 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
13898 else
13900 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13901 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
13904 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
13906 else
13907 WXCAS_MANPAGES=
13912 if test ${enable_ed2k:-yes} = yes; then :
13914 if test -z "$LINGUAS"; then :
13915 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
13916 else
13918 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13919 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
13922 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
13924 else
13925 ED2K_MANPAGES=
13930 if test ${enable_alc:-no} = yes; then :
13932 if test -z "$LINGUAS"; then :
13933 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
13934 else
13936 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13937 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
13940 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
13942 else
13943 ALC_MANPAGES=
13948 if test ${enable_alcc:-no} = yes; then :
13950 if test -z "$LINGUAS"; then :
13951 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
13952 else
13954 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13955 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
13958 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
13960 else
13961 ALCC_MANPAGES=
13966 if test ${enable_monolithic:-yes} = yes; then :
13968 if test -z "$LINGUAS"; then :
13969 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
13970 else
13972 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13973 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
13976 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
13978 else
13979 MONOLITHIC_MANPAGES=
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
13984 $as_echo "${LINGUAS:-all}" >&6; }
13990 # Check for bfd.h (to have proper backtraces without using wxExecute)
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
13993 $as_echo_n "checking for bfd... " >&6; }
13994 result=no
13995 for bfd_ldadd in "" "${LIBINTL}" "-ldl" "-ldl ${LIBINTL}"; do
13996 mule_backup_LIBS="$LIBS"
13997 mule_backup_LDFLAGS="$LDFLAGS"
13998 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
13999 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14004 #include <ansidecl.h>
14005 #include <bfd.h>
14008 main ()
14011 char *dummy = bfd_errmsg(bfd_get_error());
14014 return 0;
14017 _ACEOF
14018 if ac_fn_c_try_link "$LINENO"; then :
14020 result=yes
14021 BFD_CPPFLAGS="-DHAVE_BFD"
14022 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
14023 LIBS="$mule_backup_LIBS"
14024 LDFLAGS="$mule_backup_LDFLAGS"
14025 break
14028 rm -f core conftest.err conftest.$ac_objext \
14029 conftest$ac_exeext conftest.$ac_ext
14030 LIBS="$mule_backup_LIBS"
14031 LDFLAGS="$mule_backup_LDFLAGS"
14032 done
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
14035 $as_echo "$result" >&6; }
14037 if test $result = no; then :
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14039 bfd.h not found or unusable, please install binutils development
14040 package if you are a developer or want to help testing aMule" >&5
14041 $as_echo "$as_me: WARNING:
14042 bfd.h not found or unusable, please install binutils development
14043 package if you are a developer or want to help testing aMule" >&2;}
14044 _mule_warning_10=yes
14045 _mule_has_warnings=yes
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
14052 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14057 #include <execinfo.h>
14060 main ()
14063 void *bt[1];
14064 int n = backtrace(&bt, 1);
14065 const char **bt_syms = backtrace_symbols(bt, n);
14068 return 0;
14071 _ACEOF
14072 if ac_fn_c_try_link "$LINENO"; then :
14075 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14078 $as_echo "yes" >&6; }
14080 else
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 $as_echo "no" >&6; }
14086 rm -f core conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
14090 # Flush standard test results for speeding cache
14091 cat >confcache <<\_ACEOF
14092 # This file is a shell script that caches the results of configure
14093 # tests run on this system so they can be shared between configure
14094 # scripts and configure runs, see configure's option --config-cache.
14095 # It is not useful on other systems. If it contains results you don't
14096 # want to keep, you may remove or edit it.
14098 # config.status only pays attention to the cache file if you give it
14099 # the --recheck option to rerun configure.
14101 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14102 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14103 # following values.
14105 _ACEOF
14107 # The following way of writing the cache mishandles newlines in values,
14108 # but we know of no workaround that is simple, portable, and efficient.
14109 # So, we kill variables containing newlines.
14110 # Ultrix sh set writes to stderr and can't be redirected directly,
14111 # and sets the high bit in the cache file unless we assign to the vars.
14113 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14114 eval ac_val=\$$ac_var
14115 case $ac_val in #(
14116 *${as_nl}*)
14117 case $ac_var in #(
14118 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14119 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14120 esac
14121 case $ac_var in #(
14122 _ | IFS | as_nl) ;; #(
14123 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14124 *) { eval $ac_var=; unset $ac_var;} ;;
14125 esac ;;
14126 esac
14127 done
14129 (set) 2>&1 |
14130 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14131 *${as_nl}ac_space=\ *)
14132 # `set' does not quote correctly, so add quotes: double-quote
14133 # substitution turns \\\\ into \\, and sed turns \\ into \.
14134 sed -n \
14135 "s/'/'\\\\''/g;
14136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14137 ;; #(
14139 # `set' quotes correctly as required by POSIX, so do not add quotes.
14140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14142 esac |
14143 sort
14145 sed '
14146 /^ac_cv_env_/b end
14147 t clear
14148 :clear
14149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14150 t end
14151 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14152 :end' >>confcache
14153 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14154 if test -w "$cache_file"; then
14155 test "x$cache_file" != "x/dev/null" &&
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14157 $as_echo "$as_me: updating cache $cache_file" >&6;}
14158 cat confcache >$cache_file
14159 else
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14161 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14164 rm -f confcache
14166 # Other tests
14167 # aMule options
14169 # Check whether --enable-debug was given.
14170 if test "${enable_debug+set}" = set; then :
14171 enableval=$enable_debug;
14175 # Check whether --enable-profile was given.
14176 if test "${enable_profile+set}" = set; then :
14177 enableval=$enable_profile;
14181 # Check whether --enable-optimize was given.
14182 if test "${enable_optimize+set}" = set; then :
14183 enableval=$enable_optimize;
14188 if test ${enable_debug:-yes} = yes; then :
14190 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
14192 MULECFLAGS="$MULECFLAGS -g"
14193 MULECXXFLAGS="$MULECXXFLAGS -g"
14195 if test ${GCC:-no} = yes; then :
14197 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14198 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14201 if test ${SYS:-unknown} = win32; then :
14202 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
14205 else
14207 if test ${GCC:-no} = yes; then :
14209 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
14210 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
14216 if test ${enable_profile:-no} = yes; then :
14219 MULECFLAGS="$MULECFLAGS -pg"
14220 MULECXXFLAGS="$MULECXXFLAGS -pg"
14222 MULELDFLAGS="$MULELDFLAGS -pg"
14226 if test ${enable_optimize:-no} = yes; then :
14228 MULECFLAGS="$MULECFLAGS -O2"
14229 MULECXXFLAGS="$MULECXXFLAGS -O2"
14233 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
14236 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
14238 $as_echo_n "checking for docdir... " >&6; }
14239 if test -z "$docdir"; then :
14240 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
14243 $as_echo "$docdir" >&6; }
14245 # Try to set the SVN checkout-date
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
14247 $as_echo_n "checking for SVNDATE... " >&6; }
14248 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
14249 then
14250 svndate="rev. `cat $srcdir/.svn-revision`"
14251 elif test -d $srcdir/.svn # SVNDATE for svn
14252 then
14253 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
14256 $as_echo "${svndate:-None required}" >&6; }
14257 if test -n "$svndate"; then :
14260 cat >>confdefs.h <<_ACEOF
14261 #define SVNDATE "$svndate"
14262 _ACEOF
14264 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
14267 SVNDATE=$svndate
14271 # Check whether --with-denoise-level was given.
14272 if test "${with_denoise_level+set}" = set; then :
14273 withval=$with_denoise_level;
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
14278 $as_echo_n "checking denoising level... " >&6; }
14279 if test ${with_denoise_level:-5} = yes; then :
14280 with_denoise_level=5
14282 if test ${with_denoise_level:-5} = no; then :
14283 with_denoise_level=0
14285 if test ${with_denoise_level:-5} -gt 4; then :
14286 if test "${svndate:+set}" = "set"; then :
14287 with_denoise_level=0
14288 else
14289 with_denoise_level=4
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
14293 $as_echo "$with_denoise_level" >&6; }
14295 ac_config_commands="$ac_config_commands denoiser"
14299 if test ${enable_plasmamule:-no} = yes; then :
14302 if test -z ${QT_MOC}; then :
14304 for ac_prog in moc-qt4 moc
14306 # Extract the first word of "$ac_prog", so it can be a program name with args.
14307 set dummy $ac_prog; ac_word=$2
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14309 $as_echo_n "checking for $ac_word... " >&6; }
14310 if test "${ac_cv_path_QT_MOC+set}" = set; then :
14311 $as_echo_n "(cached) " >&6
14312 else
14313 case $QT_MOC in
14314 [\\/]* | ?:[\\/]*)
14315 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
14318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14319 for as_dir in $PATH
14321 IFS=$as_save_IFS
14322 test -z "$as_dir" && as_dir=.
14323 for ac_exec_ext in '' $ac_executable_extensions; do
14324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14325 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
14326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14327 break 2
14329 done
14330 done
14331 IFS=$as_save_IFS
14334 esac
14336 QT_MOC=$ac_cv_path_QT_MOC
14337 if test -n "$QT_MOC"; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
14339 $as_echo "$QT_MOC" >&6; }
14340 else
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14346 test -n "$QT_MOC" && break
14347 done
14349 if test -z ${QT_MOC}; then :
14351 echo moc not found
14352 exit 1
14356 else
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
14359 $as_echo_n "checking for moc... " >&6; }
14360 if test -x ${QT_MOC}; then :
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
14363 $as_echo "${QT_MOC}" >&6; }
14366 else
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
14369 $as_echo "\"not found\"" >&6; }
14370 QT_MOC="not found"
14371 exit 1
14378 if test "${QT_MOC}" != "not found"; then :
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
14381 $as_echo_n "checking for moc version >= 4... " >&6; }
14382 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
14383 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
14386 $as_echo "found ${QT_MOC_VERSION}" >&6; }
14388 else
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
14391 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
14392 QT_MOC="not found"
14393 exit 1
14399 if test "${QT_MOC}" = "not found"; then :
14400 enable_plasmamule=disabled
14403 if test ${enable_plasmamule:-no} = yes; then :
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
14408 $as_echo_n "checking for qt... " >&6; }
14409 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14412 $as_echo "found" >&6; }
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
14414 $as_echo_n "checking for qt core cflags... " >&6; }
14415 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
14417 $as_echo "$QT_CORE_CFLAGS" >&6; }
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
14419 $as_echo_n "checking for qt core libs... " >&6; }
14420 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
14422 $as_echo "$QT_CORE_LIBS" >&6; }
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
14424 $as_echo_n "checking for qt gui cflags... " >&6; }
14425 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
14427 $as_echo "$QT_GUI_CFLAGS" >&6; }
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
14429 $as_echo_n "checking for qt gui libs... " >&6; }
14430 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
14432 $as_echo "$QT_GUI_LIBS" >&6; }
14434 else
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14436 $as_echo "not found" >&6; }
14437 exit 1
14441 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
14443 QT_DBUS_LDFLAGS="-lQtDBus"
14453 if test -z "${QT_CORE_CXXFLAGS}"; then :
14454 enable_plasmamule=disabled
14459 if test ${enable_plasmamule:-no} = yes; then :
14462 if test -z ${KDE4_CONFIG}; then :
14464 # Extract the first word of "kde4-config", so it can be a program name with args.
14465 set dummy kde4-config; ac_word=$2
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14467 $as_echo_n "checking for $ac_word... " >&6; }
14468 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
14469 $as_echo_n "(cached) " >&6
14470 else
14471 case $KDE4_CONFIG in
14472 [\\/]* | ?:[\\/]*)
14473 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
14476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14477 for as_dir in $PATH
14479 IFS=$as_save_IFS
14480 test -z "$as_dir" && as_dir=.
14481 for ac_exec_ext in '' $ac_executable_extensions; do
14482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14483 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14485 break 2
14487 done
14488 done
14489 IFS=$as_save_IFS
14492 esac
14494 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
14495 if test -n "$KDE4_CONFIG"; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
14497 $as_echo "$KDE4_CONFIG" >&6; }
14498 else
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14500 $as_echo "no" >&6; }
14505 else
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
14508 $as_echo_n "checking for kde4-config... " >&6; }
14509 if test ! -x KDE4_CONFIG; then :
14511 KDE4_CONFIG="not found"
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14513 $as_echo "not found" >&6; }
14514 exit 1
14520 if test "${KDE4_CONFIG}" != "not found"; then :
14522 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
14523 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
14526 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
14528 else
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
14531 $as_echo "at least version 4 required" >&6; }
14532 exit 1
14536 else
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14539 $as_echo "not found" >&6; }
14540 exit 1
14545 if test "${KDE4_CONFIG}" = "not found"; then :
14546 enable_plasmamule=disabled
14551 if test ${enable_plasmamule:-no} = yes; then :
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
14555 $as_echo_n "checking for kde4 headers... " >&6; }
14556 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
14558 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
14560 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
14563 $as_echo "${KDE_HEADER_DIR}" >&6; }
14565 else
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
14568 $as_echo "dataengine.h not found" >&6; }
14569 exit 1
14573 else
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
14576 $as_echo "kdirwatch.h not found" >&6; }
14577 exit 1
14582 if test -z ${KDE_HEADER_DIR}; then :
14583 enable_plasmamule=disabled
14588 if test ${enable_plasmamule:-no} = yes; then :
14590 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
14591 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
14596 $as_echo_n "checking for kde4 applinks Path... " >&6; }
14597 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14599 KDE_IN_HOME="yes"
14602 if test ${KDE_IN_HOME} = "yes"; then :
14604 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14606 else
14608 if test -n ${prefix}; then :
14610 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
14611 if test -n ${KDE_APPLNK_PATH}; then :
14613 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14617 else
14619 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
14625 $as_echo "${KDE_APPLNK_PATH}" >&6; }
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
14631 $as_echo_n "checking for kde4 services Path... " >&6; }
14632 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14634 KDE_IN_HOME="yes"
14637 if test ${KDE_IN_HOME} = "yes"; then :
14639 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14641 else
14643 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
14647 $as_echo "${KDE_SERVICE_PATH}" >&6; }
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
14653 $as_echo_n "checking for kde4 plugins Path... " >&6; }
14654 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14656 KDE_IN_HOME="yes"
14659 if test ${KDE_IN_HOME} = "yes"; then :
14661 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14663 else
14665 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
14669 $as_echo "${KDE_MODULE_PATH}" >&6; }
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
14675 $as_echo_n "checking for kde4 icons Path... " >&6; }
14676 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14678 KDE_IN_HOME="yes"
14681 if test ${KDE_IN_HOME} = "yes"; then :
14683 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14685 else
14687 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
14690 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
14692 $as_echo "${KDE_ICON_PATH}" >&6; }
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
14698 $as_echo_n "checking for location for mime-type installation... " >&6; }
14699 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14701 KDE_IN_HOME="yes"
14704 if test ${KDE_IN_HOME} = "yes"; then :
14706 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14708 else
14710 if test -n ${prefix}; then :
14712 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
14713 if test -n ${KDE_MIME_PATH}; then :
14715 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14719 else
14721 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
14727 $as_echo "${KDE_MIME_PATH}" >&6; }
14731 else
14732 enable_plasmamule=disabled
14737 if test ${enable_plasmamule:-no} = yes; then :
14739 if test -z ${DEB_HOST_ARCH}; then :
14742 for ac_prog in kbuildsycoca4 kbuildsycoca
14744 # Extract the first word of "$ac_prog", so it can be a program name with args.
14745 set dummy $ac_prog; ac_word=$2
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14747 $as_echo_n "checking for $ac_word... " >&6; }
14748 if test "${ac_cv_path_KBUILDSYCOCA+set}" = set; then :
14749 $as_echo_n "(cached) " >&6
14750 else
14751 case $KBUILDSYCOCA in
14752 [\\/]* | ?:[\\/]*)
14753 ac_cv_path_KBUILDSYCOCA="$KBUILDSYCOCA" # Let the user override the test with a path.
14756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757 for as_dir in $PATH
14759 IFS=$as_save_IFS
14760 test -z "$as_dir" && as_dir=.
14761 for ac_exec_ext in '' $ac_executable_extensions; do
14762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14763 ac_cv_path_KBUILDSYCOCA="$as_dir/$ac_word$ac_exec_ext"
14764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14765 break 2
14767 done
14768 done
14769 IFS=$as_save_IFS
14772 esac
14774 KBUILDSYCOCA=$ac_cv_path_KBUILDSYCOCA
14775 if test -n "$KBUILDSYCOCA"; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KBUILDSYCOCA" >&5
14777 $as_echo "$KBUILDSYCOCA" >&6; }
14778 else
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780 $as_echo "no" >&6; }
14784 test -n "$KBUILDSYCOCA" && break
14785 done
14788 if test -z ${KBUILDSYCOCA}; then :
14790 echo "No tool for KDE Systemcache Management found"
14791 exit 1
14797 # Extract the first word of "update-mime-database", so it can be a program name with args.
14798 set dummy update-mime-database; ac_word=$2
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14800 $as_echo_n "checking for $ac_word... " >&6; }
14801 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
14802 $as_echo_n "(cached) " >&6
14803 else
14804 case $UPDATE_MIME_DATABASE in
14805 [\\/]* | ?:[\\/]*)
14806 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
14809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14810 for as_dir in $PATH
14812 IFS=$as_save_IFS
14813 test -z "$as_dir" && as_dir=.
14814 for ac_exec_ext in '' $ac_executable_extensions; do
14815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14816 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
14817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14818 break 2
14820 done
14821 done
14822 IFS=$as_save_IFS
14825 esac
14827 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
14828 if test -n "$UPDATE_MIME_DATABASE"; then
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
14830 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
14831 else
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833 $as_echo "no" >&6; }
14838 if test -z ${UPDATE_MIME_DATABASE}; then :
14840 echo "No tool for MIME Datanase Management found"
14841 exit 1
14847 USER_INSTALL_HOOK="USER_INSTALL"
14855 if test ${enable_debug:-yes} = yes; then :
14857 DEBUGFLAG="-D__DEBUG__"
14864 if test x$SYS = xwin32; then
14865 SYS_WIN32_TRUE=
14866 SYS_WIN32_FALSE='#'
14867 else
14868 SYS_WIN32_TRUE='#'
14869 SYS_WIN32_FALSE=
14872 if test x$SYS = xwin32 -a "$RC" != ":"; then
14873 NEED_RC_TRUE=
14874 NEED_RC_FALSE='#'
14875 else
14876 NEED_RC_TRUE='#'
14877 NEED_RC_FALSE=
14880 if test x$SYS = xdarwin; then
14881 NEED_CORESERVICES_TRUE=
14882 NEED_CORESERVICES_FALSE='#'
14883 else
14884 NEED_CORESERVICES_TRUE='#'
14885 NEED_CORESERVICES_FALSE=
14888 if test x$USE_NLS = xyes; then
14889 COMPILE_NLS_TRUE=
14890 COMPILE_NLS_FALSE='#'
14891 else
14892 COMPILE_NLS_TRUE='#'
14893 COMPILE_NLS_FALSE=
14896 if test x$HAVE_FLEX_EXTENDED = xyes; then
14897 GENERATE_FLEX_HEADER_TRUE=
14898 GENERATE_FLEX_HEADER_FALSE='#'
14899 else
14900 GENERATE_FLEX_HEADER_TRUE='#'
14901 GENERATE_FLEX_HEADER_FALSE=
14904 if test x$INSTALL_SKINS = xyes; then
14905 INSTALL_SKINS_TRUE=
14906 INSTALL_SKINS_FALSE='#'
14907 else
14908 INSTALL_SKINS_TRUE='#'
14909 INSTALL_SKINS_FALSE=
14912 if test ${enable_plasmamule:-no} = yes; then
14913 PLASMAMULE_TRUE=
14914 PLASMAMULE_FALSE='#'
14915 else
14916 PLASMAMULE_TRUE='#'
14917 PLASMAMULE_FALSE=
14921 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
14922 COMPILE_LIB_COMMON_TRUE=
14923 COMPILE_LIB_COMMON_FALSE='#'
14924 else
14925 COMPILE_LIB_COMMON_TRUE='#'
14926 COMPILE_LIB_COMMON_FALSE=
14929 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
14930 COMPILE_LIB_EC_TRUE=
14931 COMPILE_LIB_EC_FALSE='#'
14932 else
14933 COMPILE_LIB_EC_TRUE='#'
14934 COMPILE_LIB_EC_FALSE=
14938 # Check for readline library
14939 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14942 $as_echo_n "checking for a readline compatible library... " >&6; }
14943 if test "${vl_cv_lib_readline+set}" = set; then :
14944 $as_echo_n "(cached) " >&6
14945 else
14947 ORIG_LIBS="$LIBS"
14948 for readline_lib in readline edit editline; do
14949 for termcap_lib in "" termcap curses ncurses; do
14950 if test -z "$termcap_lib"; then
14951 TRY_LIB="-l$readline_lib"
14952 else
14953 TRY_LIB="-l$readline_lib -l$termcap_lib"
14955 LIBS="$ORIG_LIBS $TRY_LIB"
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14959 /* Override any GCC internal prototype to avoid an error.
14960 Use char because int might match the return type of a GCC
14961 builtin and then its argument prototype would still apply. */
14962 #ifdef __cplusplus
14963 extern "C"
14964 #endif
14965 char readline ();
14967 main ()
14969 return readline ();
14971 return 0;
14973 _ACEOF
14974 if ac_fn_c_try_link "$LINENO"; then :
14975 vl_cv_lib_readline="$TRY_LIB"
14977 rm -f core conftest.err conftest.$ac_objext \
14978 conftest$ac_exeext conftest.$ac_ext
14979 if test -n "$vl_cv_lib_readline"; then
14980 break
14982 done
14983 if test -n "$vl_cv_lib_readline"; then
14984 break
14986 done
14987 if test -z "$vl_cv_lib_readline"; then
14988 vl_cv_lib_readline="no"
14989 LIBS="$ORIG_LIBS"
14990 READLINE_LIBS=""
14991 else
14992 READLINE_LIBS="$vl_cv_lib_readline"
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14997 $as_echo "$vl_cv_lib_readline" >&6; }
14999 if test "$vl_cv_lib_readline" != "no"; then
15001 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15003 for ac_header in readline.h readline/readline.h
15004 do :
15005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15006 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15007 eval as_val=\$$as_ac_Header
15008 if test "x$as_val" = x""yes; then :
15009 cat >>confdefs.h <<_ACEOF
15010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15011 _ACEOF
15015 done
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
15018 $as_echo_n "checking whether readline supports history... " >&6; }
15019 if test "${vl_cv_lib_readline_history+set}" = set; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15023 vl_cv_lib_readline_history="no"
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply. */
15030 #ifdef __cplusplus
15031 extern "C"
15032 #endif
15033 char add_history ();
15035 main ()
15037 return add_history ();
15039 return 0;
15041 _ACEOF
15042 if ac_fn_c_try_link "$LINENO"; then :
15043 vl_cv_lib_readline_history="yes"
15045 rm -f core conftest.err conftest.$ac_objext \
15046 conftest$ac_exeext conftest.$ac_ext
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
15050 $as_echo "$vl_cv_lib_readline_history" >&6; }
15051 if test "$vl_cv_lib_readline_history" = "yes"; then
15053 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15055 for ac_header in history.h readline/history.h
15056 do :
15057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15058 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15059 eval as_val=\$$as_ac_Header
15060 if test "x$as_val" = x""yes; then :
15061 cat >>confdefs.h <<_ACEOF
15062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15063 _ACEOF
15067 done
15072 LIBS="$ORIG_LIBS"
15076 if test ${PLASMAMULE:-no} = yes; then :
15079 if test -z ${QT_MOC}; then :
15081 for ac_prog in moc-qt4 moc
15083 # Extract the first word of "$ac_prog", so it can be a program name with args.
15084 set dummy $ac_prog; ac_word=$2
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15086 $as_echo_n "checking for $ac_word... " >&6; }
15087 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15088 $as_echo_n "(cached) " >&6
15089 else
15090 case $QT_MOC in
15091 [\\/]* | ?:[\\/]*)
15092 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15096 for as_dir in $PATH
15098 IFS=$as_save_IFS
15099 test -z "$as_dir" && as_dir=.
15100 for ac_exec_ext in '' $ac_executable_extensions; do
15101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15102 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15104 break 2
15106 done
15107 done
15108 IFS=$as_save_IFS
15111 esac
15113 QT_MOC=$ac_cv_path_QT_MOC
15114 if test -n "$QT_MOC"; then
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15116 $as_echo "$QT_MOC" >&6; }
15117 else
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15123 test -n "$QT_MOC" && break
15124 done
15126 if test -z ${QT_MOC}; then :
15128 echo moc not found
15129 exit 1
15133 else
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15136 $as_echo_n "checking for moc... " >&6; }
15137 if test -x ${QT_MOC}; then :
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15140 $as_echo "${QT_MOC}" >&6; }
15143 else
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15146 $as_echo "\"not found\"" >&6; }
15147 QT_MOC="not found"
15148 exit 1
15155 if test "${QT_MOC}" != "not found"; then :
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15158 $as_echo_n "checking for moc version >= 4... " >&6; }
15159 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15160 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15163 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15165 else
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15168 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15169 QT_MOC="not found"
15170 exit 1
15176 if test "${QT_MOC}" = "not found"; then :
15177 enable_plasmamule=disabled
15180 if test ${enable_plasmamule:-no} = yes; then :
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15185 $as_echo_n "checking for qt... " >&6; }
15186 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15189 $as_echo "found" >&6; }
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15191 $as_echo_n "checking for qt core cflags... " >&6; }
15192 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15194 $as_echo "$QT_CORE_CFLAGS" >&6; }
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15196 $as_echo_n "checking for qt core libs... " >&6; }
15197 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15199 $as_echo "$QT_CORE_LIBS" >&6; }
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15201 $as_echo_n "checking for qt gui cflags... " >&6; }
15202 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15204 $as_echo "$QT_GUI_CFLAGS" >&6; }
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15206 $as_echo_n "checking for qt gui libs... " >&6; }
15207 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15209 $as_echo "$QT_GUI_LIBS" >&6; }
15211 else
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15213 $as_echo "not found" >&6; }
15214 exit 1
15218 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15220 QT_DBUS_LDFLAGS="-lQtDBus"
15230 if test -z "${QT_CORE_CXXFLAGS}"; then :
15231 enable_plasmamule=disabled
15236 if test ${enable_plasmamule:-no} = yes; then :
15239 if test -z ${KDE4_CONFIG}; then :
15241 # Extract the first word of "kde4-config", so it can be a program name with args.
15242 set dummy kde4-config; ac_word=$2
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15244 $as_echo_n "checking for $ac_word... " >&6; }
15245 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15246 $as_echo_n "(cached) " >&6
15247 else
15248 case $KDE4_CONFIG in
15249 [\\/]* | ?:[\\/]*)
15250 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $PATH
15256 IFS=$as_save_IFS
15257 test -z "$as_dir" && as_dir=.
15258 for ac_exec_ext in '' $ac_executable_extensions; do
15259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15260 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15262 break 2
15264 done
15265 done
15266 IFS=$as_save_IFS
15269 esac
15271 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15272 if test -n "$KDE4_CONFIG"; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15274 $as_echo "$KDE4_CONFIG" >&6; }
15275 else
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15277 $as_echo "no" >&6; }
15282 else
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15285 $as_echo_n "checking for kde4-config... " >&6; }
15286 if test ! -x KDE4_CONFIG; then :
15288 KDE4_CONFIG="not found"
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15290 $as_echo "not found" >&6; }
15291 exit 1
15297 if test "${KDE4_CONFIG}" != "not found"; then :
15299 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15300 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15303 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15305 else
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15308 $as_echo "at least version 4 required" >&6; }
15309 exit 1
15313 else
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15316 $as_echo "not found" >&6; }
15317 exit 1
15322 if test "${KDE4_CONFIG}" = "not found"; then :
15323 enable_plasmamule=disabled
15328 if test ${enable_plasmamule:-no} = yes; then :
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15332 $as_echo_n "checking for kde4 headers... " >&6; }
15333 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15335 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15337 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15340 $as_echo "${KDE_HEADER_DIR}" >&6; }
15342 else
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15345 $as_echo "dataengine.h not found" >&6; }
15346 exit 1
15350 else
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15353 $as_echo "kdirwatch.h not found" >&6; }
15354 exit 1
15359 if test -z ${KDE_HEADER_DIR}; then :
15360 enable_plasmamule=disabled
15365 if test ${enable_plasmamule:-no} = yes; then :
15367 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15368 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15373 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15374 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15376 KDE_IN_HOME="yes"
15379 if test ${KDE_IN_HOME} = "yes"; then :
15381 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15383 else
15385 if test -n ${prefix}; then :
15387 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15388 if test -n ${KDE_APPLNK_PATH}; then :
15390 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15394 else
15396 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15402 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15408 $as_echo_n "checking for kde4 services Path... " >&6; }
15409 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15411 KDE_IN_HOME="yes"
15414 if test ${KDE_IN_HOME} = "yes"; then :
15416 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15418 else
15420 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15424 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15430 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15431 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15433 KDE_IN_HOME="yes"
15436 if test ${KDE_IN_HOME} = "yes"; then :
15438 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15440 else
15442 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15446 $as_echo "${KDE_MODULE_PATH}" >&6; }
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15452 $as_echo_n "checking for kde4 icons Path... " >&6; }
15453 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15455 KDE_IN_HOME="yes"
15458 if test ${KDE_IN_HOME} = "yes"; then :
15460 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15462 else
15464 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15467 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15469 $as_echo "${KDE_ICON_PATH}" >&6; }
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15475 $as_echo_n "checking for location for mime-type installation... " >&6; }
15476 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15478 KDE_IN_HOME="yes"
15481 if test ${KDE_IN_HOME} = "yes"; then :
15483 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15485 else
15487 if test -n ${prefix}; then :
15489 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15490 if test -n ${KDE_MIME_PATH}; then :
15492 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15496 else
15498 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15504 $as_echo "${KDE_MIME_PATH}" >&6; }
15508 else
15509 enable_plasmamule=disabled
15514 if test ${enable_plasmamule:-no} = yes; then :
15516 if test -z ${DEB_HOST_ARCH}; then :
15519 for ac_prog in kbuildsycoca4 kbuildsycoca
15521 # Extract the first word of "$ac_prog", so it can be a program name with args.
15522 set dummy $ac_prog; ac_word=$2
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15524 $as_echo_n "checking for $ac_word... " >&6; }
15525 if test "${ac_cv_path_KBUILDSYCOCA+set}" = set; then :
15526 $as_echo_n "(cached) " >&6
15527 else
15528 case $KBUILDSYCOCA in
15529 [\\/]* | ?:[\\/]*)
15530 ac_cv_path_KBUILDSYCOCA="$KBUILDSYCOCA" # Let the user override the test with a path.
15533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15534 for as_dir in $PATH
15536 IFS=$as_save_IFS
15537 test -z "$as_dir" && as_dir=.
15538 for ac_exec_ext in '' $ac_executable_extensions; do
15539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15540 ac_cv_path_KBUILDSYCOCA="$as_dir/$ac_word$ac_exec_ext"
15541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15542 break 2
15544 done
15545 done
15546 IFS=$as_save_IFS
15549 esac
15551 KBUILDSYCOCA=$ac_cv_path_KBUILDSYCOCA
15552 if test -n "$KBUILDSYCOCA"; then
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KBUILDSYCOCA" >&5
15554 $as_echo "$KBUILDSYCOCA" >&6; }
15555 else
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557 $as_echo "no" >&6; }
15561 test -n "$KBUILDSYCOCA" && break
15562 done
15565 if test -z ${KBUILDSYCOCA}; then :
15567 echo "No tool for KDE Systemcache Management found"
15568 exit 1
15574 # Extract the first word of "update-mime-database", so it can be a program name with args.
15575 set dummy update-mime-database; ac_word=$2
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15577 $as_echo_n "checking for $ac_word... " >&6; }
15578 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
15579 $as_echo_n "(cached) " >&6
15580 else
15581 case $UPDATE_MIME_DATABASE in
15582 [\\/]* | ?:[\\/]*)
15583 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
15586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15587 for as_dir in $PATH
15589 IFS=$as_save_IFS
15590 test -z "$as_dir" && as_dir=.
15591 for ac_exec_ext in '' $ac_executable_extensions; do
15592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15593 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
15594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15595 break 2
15597 done
15598 done
15599 IFS=$as_save_IFS
15602 esac
15604 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
15605 if test -n "$UPDATE_MIME_DATABASE"; then
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
15607 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
15608 else
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15610 $as_echo "no" >&6; }
15615 if test -z ${UPDATE_MIME_DATABASE}; then :
15617 echo "No tool for MIME Datanase Management found"
15618 exit 1
15624 USER_INSTALL_HOOK="USER_INSTALL"
15632 if test ${enable_debug:-yes} = yes; then :
15634 DEBUGFLAG="-D__DEBUG__"
15641 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15644 # Check whether --enable-ccache was given.
15645 if test "${enable_ccache+set}" = set; then :
15646 enableval=$enable_ccache;
15652 # Check whether --with-ccache-prefix was given.
15653 if test "${with_ccache_prefix+set}" = set; then :
15654 withval=$with_ccache_prefix;
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
15659 $as_echo_n "checking whether ccache support should be added... " >&6; }
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15661 $as_echo "${enable_ccache:-no}" >&6; }
15663 if test ${enable_ccache:-no} = yes; then :
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
15666 $as_echo_n "checking for ccache presence... " >&6; }
15667 if test -z "$with_ccache_prefix"; then :
15669 ccache_full=`which ccache`
15670 with_ccache_prefix=`dirname ${ccache_full}`
15673 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
15675 CC="$with_ccache_prefix/ccache $CC"
15676 CXX="$with_ccache_prefix/ccache $CXX"
15677 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
15679 else
15680 enable_ccache=no
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15683 $as_echo "${enable_ccache:-no}" >&6; }
15688 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"
15690 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
15692 if test x$SYS = xwin32; then :
15693 ac_config_files="$ac_config_files version.rc"
15696 cat >confcache <<\_ACEOF
15697 # This file is a shell script that caches the results of configure
15698 # tests run on this system so they can be shared between configure
15699 # scripts and configure runs, see configure's option --config-cache.
15700 # It is not useful on other systems. If it contains results you don't
15701 # want to keep, you may remove or edit it.
15703 # config.status only pays attention to the cache file if you give it
15704 # the --recheck option to rerun configure.
15706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15708 # following values.
15710 _ACEOF
15712 # The following way of writing the cache mishandles newlines in values,
15713 # but we know of no workaround that is simple, portable, and efficient.
15714 # So, we kill variables containing newlines.
15715 # Ultrix sh set writes to stderr and can't be redirected directly,
15716 # and sets the high bit in the cache file unless we assign to the vars.
15718 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15719 eval ac_val=\$$ac_var
15720 case $ac_val in #(
15721 *${as_nl}*)
15722 case $ac_var in #(
15723 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15724 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15725 esac
15726 case $ac_var in #(
15727 _ | IFS | as_nl) ;; #(
15728 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15729 *) { eval $ac_var=; unset $ac_var;} ;;
15730 esac ;;
15731 esac
15732 done
15734 (set) 2>&1 |
15735 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15736 *${as_nl}ac_space=\ *)
15737 # `set' does not quote correctly, so add quotes: double-quote
15738 # substitution turns \\\\ into \\, and sed turns \\ into \.
15739 sed -n \
15740 "s/'/'\\\\''/g;
15741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15742 ;; #(
15744 # `set' quotes correctly as required by POSIX, so do not add quotes.
15745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15747 esac |
15748 sort
15750 sed '
15751 /^ac_cv_env_/b end
15752 t clear
15753 :clear
15754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15755 t end
15756 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15757 :end' >>confcache
15758 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15759 if test -w "$cache_file"; then
15760 test "x$cache_file" != "x/dev/null" &&
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15762 $as_echo "$as_me: updating cache $cache_file" >&6;}
15763 cat confcache >$cache_file
15764 else
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15769 rm -f confcache
15771 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15772 # Let make expand exec_prefix.
15773 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15775 DEFS=-DHAVE_CONFIG_H
15777 ac_libobjs=
15778 ac_ltlibobjs=
15779 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15780 # 1. Remove the extension, and $U if already installed.
15781 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15782 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15783 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15784 # will be set to the directory where LIBOBJS objects are built.
15785 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15786 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15787 done
15788 LIBOBJS=$ac_libobjs
15790 LTLIBOBJS=$ac_ltlibobjs
15793 if test -n "$EXEEXT"; then
15794 am__EXEEXT_TRUE=
15795 am__EXEEXT_FALSE='#'
15796 else
15797 am__EXEEXT_TRUE='#'
15798 am__EXEEXT_FALSE=
15801 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15802 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15805 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15806 as_fn_error "conditional \"AMDEP\" was never defined.
15807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15809 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15810 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15813 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15814 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15817 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
15818 as_fn_error "conditional \"MONOLITHIC\" was never defined.
15819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15821 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
15822 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
15823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15825 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
15826 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
15827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15829 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
15830 as_fn_error "conditional \"WEB\" was never defined.
15831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15833 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
15834 as_fn_error "conditional \"AMULE_GUI\" was never defined.
15835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15837 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
15838 as_fn_error "conditional \"CAS\" was never defined.
15839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15841 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
15842 as_fn_error "conditional \"WXCAS\" was never defined.
15843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15845 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
15846 as_fn_error "conditional \"ED2K\" was never defined.
15847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15849 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
15850 as_fn_error "conditional \"ALC\" was never defined.
15851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15853 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
15854 as_fn_error "conditional \"ALCC\" was never defined.
15855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15857 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
15858 as_fn_error "conditional \"XAS\" was never defined.
15859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15861 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
15862 as_fn_error "conditional \"FILEVIEW\" was never defined.
15863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15865 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
15866 as_fn_error "conditional \"SYS_WIN32\" was never defined.
15867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15869 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
15870 as_fn_error "conditional \"NEED_RC\" was never defined.
15871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15873 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
15874 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
15875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15877 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
15878 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
15879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15881 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
15882 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
15883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15885 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
15886 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
15887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15889 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
15890 as_fn_error "conditional \"PLASMAMULE\" was never defined.
15891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15893 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
15894 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
15895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15897 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
15898 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
15899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15902 : ${CONFIG_STATUS=./config.status}
15903 ac_write_fail=0
15904 ac_clean_files_save=$ac_clean_files
15905 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15907 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15908 as_write_fail=0
15909 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15910 #! $SHELL
15911 # Generated by $as_me.
15912 # Run this file to recreate the current configuration.
15913 # Compiler output produced by configure, useful for debugging
15914 # configure, is in config.log if it exists.
15916 debug=false
15917 ac_cs_recheck=false
15918 ac_cs_silent=false
15920 SHELL=\${CONFIG_SHELL-$SHELL}
15921 export SHELL
15922 _ASEOF
15923 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15924 ## -------------------- ##
15925 ## M4sh Initialization. ##
15926 ## -------------------- ##
15928 # Be more Bourne compatible
15929 DUALCASE=1; export DUALCASE # for MKS sh
15930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15931 emulate sh
15932 NULLCMD=:
15933 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15934 # is contrary to our usage. Disable this feature.
15935 alias -g '${1+"$@"}'='"$@"'
15936 setopt NO_GLOB_SUBST
15937 else
15938 case `(set -o) 2>/dev/null` in #(
15939 *posix*) :
15940 set -o posix ;; #(
15941 *) :
15943 esac
15947 as_nl='
15949 export as_nl
15950 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15951 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15952 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15953 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15954 # Prefer a ksh shell builtin over an external printf program on Solaris,
15955 # but without wasting forks for bash or zsh.
15956 if test -z "$BASH_VERSION$ZSH_VERSION" \
15957 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15958 as_echo='print -r --'
15959 as_echo_n='print -rn --'
15960 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15961 as_echo='printf %s\n'
15962 as_echo_n='printf %s'
15963 else
15964 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15965 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15966 as_echo_n='/usr/ucb/echo -n'
15967 else
15968 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15969 as_echo_n_body='eval
15970 arg=$1;
15971 case $arg in #(
15972 *"$as_nl"*)
15973 expr "X$arg" : "X\\(.*\\)$as_nl";
15974 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15975 esac;
15976 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15978 export as_echo_n_body
15979 as_echo_n='sh -c $as_echo_n_body as_echo'
15981 export as_echo_body
15982 as_echo='sh -c $as_echo_body as_echo'
15985 # The user is always right.
15986 if test "${PATH_SEPARATOR+set}" != set; then
15987 PATH_SEPARATOR=:
15988 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15989 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15990 PATH_SEPARATOR=';'
15995 # IFS
15996 # We need space, tab and new line, in precisely that order. Quoting is
15997 # there to prevent editors from complaining about space-tab.
15998 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15999 # splitting by setting IFS to empty value.)
16000 IFS=" "" $as_nl"
16002 # Find who we are. Look in the path if we contain no directory separator.
16003 case $0 in #((
16004 *[\\/]* ) as_myself=$0 ;;
16005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16006 for as_dir in $PATH
16008 IFS=$as_save_IFS
16009 test -z "$as_dir" && as_dir=.
16010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16011 done
16012 IFS=$as_save_IFS
16015 esac
16016 # We did not find ourselves, most probably we were run as `sh COMMAND'
16017 # in which case we are not to be found in the path.
16018 if test "x$as_myself" = x; then
16019 as_myself=$0
16021 if test ! -f "$as_myself"; then
16022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16023 exit 1
16026 # Unset variables that we do not need and which cause bugs (e.g. in
16027 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16028 # suppresses any "Segmentation fault" message there. '((' could
16029 # trigger a bug in pdksh 5.2.14.
16030 for as_var in BASH_ENV ENV MAIL MAILPATH
16031 do eval test x\${$as_var+set} = xset \
16032 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16033 done
16034 PS1='$ '
16035 PS2='> '
16036 PS4='+ '
16038 # NLS nuisances.
16039 LC_ALL=C
16040 export LC_ALL
16041 LANGUAGE=C
16042 export LANGUAGE
16044 # CDPATH.
16045 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16048 # as_fn_error ERROR [LINENO LOG_FD]
16049 # ---------------------------------
16050 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16051 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16052 # script with status $?, using 1 if that was 0.
16053 as_fn_error ()
16055 as_status=$?; test $as_status -eq 0 && as_status=1
16056 if test "$3"; then
16057 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16060 $as_echo "$as_me: error: $1" >&2
16061 as_fn_exit $as_status
16062 } # as_fn_error
16065 # as_fn_set_status STATUS
16066 # -----------------------
16067 # Set $? to STATUS, without forking.
16068 as_fn_set_status ()
16070 return $1
16071 } # as_fn_set_status
16073 # as_fn_exit STATUS
16074 # -----------------
16075 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16076 as_fn_exit ()
16078 set +e
16079 as_fn_set_status $1
16080 exit $1
16081 } # as_fn_exit
16083 # as_fn_unset VAR
16084 # ---------------
16085 # Portably unset VAR.
16086 as_fn_unset ()
16088 { eval $1=; unset $1;}
16090 as_unset=as_fn_unset
16091 # as_fn_append VAR VALUE
16092 # ----------------------
16093 # Append the text in VALUE to the end of the definition contained in VAR. Take
16094 # advantage of any shell optimizations that allow amortized linear growth over
16095 # repeated appends, instead of the typical quadratic growth present in naive
16096 # implementations.
16097 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16098 eval 'as_fn_append ()
16100 eval $1+=\$2
16102 else
16103 as_fn_append ()
16105 eval $1=\$$1\$2
16107 fi # as_fn_append
16109 # as_fn_arith ARG...
16110 # ------------------
16111 # Perform arithmetic evaluation on the ARGs, and store the result in the
16112 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16113 # must be portable across $(()) and expr.
16114 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16115 eval 'as_fn_arith ()
16117 as_val=$(( $* ))
16119 else
16120 as_fn_arith ()
16122 as_val=`expr "$@" || test $? -eq 1`
16124 fi # as_fn_arith
16127 if expr a : '\(a\)' >/dev/null 2>&1 &&
16128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16129 as_expr=expr
16130 else
16131 as_expr=false
16134 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16135 as_basename=basename
16136 else
16137 as_basename=false
16140 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16141 as_dirname=dirname
16142 else
16143 as_dirname=false
16146 as_me=`$as_basename -- "$0" ||
16147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16148 X"$0" : 'X\(//\)$' \| \
16149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16150 $as_echo X/"$0" |
16151 sed '/^.*\/\([^/][^/]*\)\/*$/{
16152 s//\1/
16155 /^X\/\(\/\/\)$/{
16156 s//\1/
16159 /^X\/\(\/\).*/{
16160 s//\1/
16163 s/.*/./; q'`
16165 # Avoid depending upon Character Ranges.
16166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16169 as_cr_digits='0123456789'
16170 as_cr_alnum=$as_cr_Letters$as_cr_digits
16172 ECHO_C= ECHO_N= ECHO_T=
16173 case `echo -n x` in #(((((
16174 -n*)
16175 case `echo 'xy\c'` in
16176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16177 xy) ECHO_C='\c';;
16178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16179 ECHO_T=' ';;
16180 esac;;
16182 ECHO_N='-n';;
16183 esac
16185 rm -f conf$$ conf$$.exe conf$$.file
16186 if test -d conf$$.dir; then
16187 rm -f conf$$.dir/conf$$.file
16188 else
16189 rm -f conf$$.dir
16190 mkdir conf$$.dir 2>/dev/null
16192 if (echo >conf$$.file) 2>/dev/null; then
16193 if ln -s conf$$.file conf$$ 2>/dev/null; then
16194 as_ln_s='ln -s'
16195 # ... but there are two gotchas:
16196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16198 # In both cases, we have to default to `cp -p'.
16199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16200 as_ln_s='cp -p'
16201 elif ln conf$$.file conf$$ 2>/dev/null; then
16202 as_ln_s=ln
16203 else
16204 as_ln_s='cp -p'
16206 else
16207 as_ln_s='cp -p'
16209 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16210 rmdir conf$$.dir 2>/dev/null
16213 # as_fn_mkdir_p
16214 # -------------
16215 # Create "$as_dir" as a directory, including parents if necessary.
16216 as_fn_mkdir_p ()
16219 case $as_dir in #(
16220 -*) as_dir=./$as_dir;;
16221 esac
16222 test -d "$as_dir" || eval $as_mkdir_p || {
16223 as_dirs=
16224 while :; do
16225 case $as_dir in #(
16226 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16227 *) as_qdir=$as_dir;;
16228 esac
16229 as_dirs="'$as_qdir' $as_dirs"
16230 as_dir=`$as_dirname -- "$as_dir" ||
16231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16232 X"$as_dir" : 'X\(//\)[^/]' \| \
16233 X"$as_dir" : 'X\(//\)$' \| \
16234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16235 $as_echo X"$as_dir" |
16236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16237 s//\1/
16240 /^X\(\/\/\)[^/].*/{
16241 s//\1/
16244 /^X\(\/\/\)$/{
16245 s//\1/
16248 /^X\(\/\).*/{
16249 s//\1/
16252 s/.*/./; q'`
16253 test -d "$as_dir" && break
16254 done
16255 test -z "$as_dirs" || eval "mkdir $as_dirs"
16256 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16259 } # as_fn_mkdir_p
16260 if mkdir -p . 2>/dev/null; then
16261 as_mkdir_p='mkdir -p "$as_dir"'
16262 else
16263 test -d ./-p && rmdir ./-p
16264 as_mkdir_p=false
16267 if test -x / >/dev/null 2>&1; then
16268 as_test_x='test -x'
16269 else
16270 if ls -dL / >/dev/null 2>&1; then
16271 as_ls_L_option=L
16272 else
16273 as_ls_L_option=
16275 as_test_x='
16276 eval sh -c '\''
16277 if test -d "$1"; then
16278 test -d "$1/.";
16279 else
16280 case $1 in #(
16281 -*)set "./$1";;
16282 esac;
16283 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16284 ???[sx]*):;;*)false;;esac;fi
16285 '\'' sh
16288 as_executable_p=$as_test_x
16290 # Sed expression to map a string onto a valid CPP name.
16291 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16293 # Sed expression to map a string onto a valid variable name.
16294 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16297 exec 6>&1
16298 ## ----------------------------------- ##
16299 ## Main body of $CONFIG_STATUS script. ##
16300 ## ----------------------------------- ##
16301 _ASEOF
16302 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16305 # Save the log message, to keep $0 and so on meaningful, and to
16306 # report actual input values of CONFIG_FILES etc. instead of their
16307 # values after options handling.
16308 ac_log="
16309 This file was extended by aMule $as_me SVN, which was
16310 generated by GNU Autoconf 2.65. Invocation command line was
16312 CONFIG_FILES = $CONFIG_FILES
16313 CONFIG_HEADERS = $CONFIG_HEADERS
16314 CONFIG_LINKS = $CONFIG_LINKS
16315 CONFIG_COMMANDS = $CONFIG_COMMANDS
16316 $ $0 $@
16318 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16321 _ACEOF
16323 case $ac_config_files in *"
16324 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16325 esac
16327 case $ac_config_headers in *"
16328 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16329 esac
16332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16333 # Files that config.status was made for.
16334 config_files="$ac_config_files"
16335 config_headers="$ac_config_headers"
16336 config_commands="$ac_config_commands"
16338 _ACEOF
16340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16341 ac_cs_usage="\
16342 \`$as_me' instantiates files and other configuration actions
16343 from templates according to the current configuration. Unless the files
16344 and actions are specified as TAGs, all are instantiated by default.
16346 Usage: $0 [OPTION]... [TAG]...
16348 -h, --help print this help, then exit
16349 -V, --version print version number and configuration settings, then exit
16350 --config print configuration, then exit
16351 -q, --quiet, --silent
16352 do not print progress messages
16353 -d, --debug don't remove temporary files
16354 --recheck update $as_me by reconfiguring in the same conditions
16355 --file=FILE[:TEMPLATE]
16356 instantiate the configuration file FILE
16357 --header=FILE[:TEMPLATE]
16358 instantiate the configuration header FILE
16360 Configuration files:
16361 $config_files
16363 Configuration headers:
16364 $config_headers
16366 Configuration commands:
16367 $config_commands
16369 Report bugs to <admin@amule.org>."
16371 _ACEOF
16372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16373 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16374 ac_cs_version="\\
16375 aMule config.status SVN
16376 configured by $0, generated by GNU Autoconf 2.65,
16377 with options \\"\$ac_cs_config\\"
16379 Copyright (C) 2009 Free Software Foundation, Inc.
16380 This config.status script is free software; the Free Software Foundation
16381 gives unlimited permission to copy, distribute and modify it."
16383 ac_pwd='$ac_pwd'
16384 srcdir='$srcdir'
16385 INSTALL='$INSTALL'
16386 MKDIR_P='$MKDIR_P'
16387 AWK='$AWK'
16388 test -n "\$AWK" || AWK=awk
16389 _ACEOF
16391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16392 # The default lists apply if the user does not specify any file.
16393 ac_need_defaults=:
16394 while test $# != 0
16396 case $1 in
16397 --*=*)
16398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16399 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16400 ac_shift=:
16403 ac_option=$1
16404 ac_optarg=$2
16405 ac_shift=shift
16407 esac
16409 case $ac_option in
16410 # Handling of the options.
16411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16412 ac_cs_recheck=: ;;
16413 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16414 $as_echo "$ac_cs_version"; exit ;;
16415 --config | --confi | --conf | --con | --co | --c )
16416 $as_echo "$ac_cs_config"; exit ;;
16417 --debug | --debu | --deb | --de | --d | -d )
16418 debug=: ;;
16419 --file | --fil | --fi | --f )
16420 $ac_shift
16421 case $ac_optarg in
16422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16423 esac
16424 as_fn_append CONFIG_FILES " '$ac_optarg'"
16425 ac_need_defaults=false;;
16426 --header | --heade | --head | --hea )
16427 $ac_shift
16428 case $ac_optarg in
16429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16430 esac
16431 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16432 ac_need_defaults=false;;
16433 --he | --h)
16434 # Conflict between --help and --header
16435 as_fn_error "ambiguous option: \`$1'
16436 Try \`$0 --help' for more information.";;
16437 --help | --hel | -h )
16438 $as_echo "$ac_cs_usage"; exit ;;
16439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16441 ac_cs_silent=: ;;
16443 # This is an error.
16444 -*) as_fn_error "unrecognized option: \`$1'
16445 Try \`$0 --help' for more information." ;;
16447 *) as_fn_append ac_config_targets " $1"
16448 ac_need_defaults=false ;;
16450 esac
16451 shift
16452 done
16454 ac_configure_extra_args=
16456 if $ac_cs_silent; then
16457 exec 6>/dev/null
16458 ac_configure_extra_args="$ac_configure_extra_args --silent"
16461 _ACEOF
16462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16463 if \$ac_cs_recheck; then
16464 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16465 shift
16466 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16467 CONFIG_SHELL='$SHELL'
16468 export CONFIG_SHELL
16469 exec "\$@"
16472 _ACEOF
16473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16474 exec 5>>config.log
16476 echo
16477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16478 ## Running $as_me. ##
16479 _ASBOX
16480 $as_echo "$ac_log"
16481 } >&5
16483 _ACEOF
16484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16486 # INIT-COMMANDS
16488 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16489 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16490 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16491 # from automake.
16492 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
16493 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16494 LINGUAS="${LINGUAS-%UNSET%}"
16496 denoiserlevel=$with_denoise_level
16498 _ACEOF
16500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16502 # Handling of arguments.
16503 for ac_config_target in $ac_config_targets
16505 case $ac_config_target in
16506 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16507 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16508 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16509 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
16510 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16511 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16512 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
16513 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16514 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16515 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
16516 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
16517 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
16518 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
16519 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
16520 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
16521 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
16522 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
16523 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
16524 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
16525 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
16526 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
16527 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
16528 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
16529 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
16530 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
16531 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
16532 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
16533 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
16534 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
16535 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
16536 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
16537 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
16538 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
16539 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
16540 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
16541 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
16542 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16543 "Compilation.flags") CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
16544 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
16546 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16547 esac
16548 done
16551 # If the user did not use the arguments to specify the items to instantiate,
16552 # then the envvar interface is used. Set only those that are not.
16553 # We use the long form for the default assignment because of an extremely
16554 # bizarre bug on SunOS 4.1.3.
16555 if $ac_need_defaults; then
16556 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16557 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16558 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16561 # Have a temporary directory for convenience. Make it in the build tree
16562 # simply because there is no reason against having it here, and in addition,
16563 # creating and moving files from /tmp can sometimes cause problems.
16564 # Hook for its removal unless debugging.
16565 # Note that there is a small window in which the directory will not be cleaned:
16566 # after its creation but before its name has been assigned to `$tmp'.
16567 $debug ||
16569 tmp=
16570 trap 'exit_status=$?
16571 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16573 trap 'as_fn_exit 1' 1 2 13 15
16575 # Create a (secure) tmp directory for tmp files.
16578 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16579 test -n "$tmp" && test -d "$tmp"
16580 } ||
16582 tmp=./conf$$-$RANDOM
16583 (umask 077 && mkdir "$tmp")
16584 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16586 # Set up the scripts for CONFIG_FILES section.
16587 # No need to generate them if there are no CONFIG_FILES.
16588 # This happens for instance with `./config.status config.h'.
16589 if test -n "$CONFIG_FILES"; then
16592 ac_cr=`echo X | tr X '\015'`
16593 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16594 # But we know of no other shell where ac_cr would be empty at this
16595 # point, so we can use a bashism as a fallback.
16596 if test "x$ac_cr" = x; then
16597 eval ac_cr=\$\'\\r\'
16599 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16600 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16601 ac_cs_awk_cr='\r'
16602 else
16603 ac_cs_awk_cr=$ac_cr
16606 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16607 _ACEOF
16611 echo "cat >conf$$subs.awk <<_ACEOF" &&
16612 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16613 echo "_ACEOF"
16614 } >conf$$subs.sh ||
16615 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16616 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16617 ac_delim='%!_!# '
16618 for ac_last_try in false false false false false :; do
16619 . ./conf$$subs.sh ||
16620 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16622 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16623 if test $ac_delim_n = $ac_delim_num; then
16624 break
16625 elif $ac_last_try; then
16626 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16627 else
16628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16630 done
16631 rm -f conf$$subs.sh
16633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16634 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16635 _ACEOF
16636 sed -n '
16638 s/^/S["/; s/!.*/"]=/
16641 s/^[^!]*!//
16642 :repl
16643 t repl
16644 s/'"$ac_delim"'$//
16645 t delim
16648 s/\(.\{148\}\)..*/\1/
16649 t more1
16650 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16653 b repl
16654 :more1
16655 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16658 s/.\{148\}//
16659 t nl
16660 :delim
16662 s/\(.\{148\}\)..*/\1/
16663 t more2
16664 s/["\\]/\\&/g; s/^/"/; s/$/"/
16667 :more2
16668 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16671 s/.\{148\}//
16672 t delim
16673 ' <conf$$subs.awk | sed '
16674 /^[^""]/{
16676 s/\n//
16678 ' >>$CONFIG_STATUS || ac_write_fail=1
16679 rm -f conf$$subs.awk
16680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16681 _ACAWK
16682 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16683 for (key in S) S_is_set[key] = 1
16684 FS = "\a"
16688 line = $ 0
16689 nfields = split(line, field, "@")
16690 substed = 0
16691 len = length(field[1])
16692 for (i = 2; i < nfields; i++) {
16693 key = field[i]
16694 keylen = length(key)
16695 if (S_is_set[key]) {
16696 value = S[key]
16697 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16698 len += length(value) + length(field[++i])
16699 substed = 1
16700 } else
16701 len += 1 + keylen
16704 print line
16707 _ACAWK
16708 _ACEOF
16709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16710 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16711 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16712 else
16714 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16715 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16716 _ACEOF
16718 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16719 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16720 # trailing colons and then remove the whole line if VPATH becomes empty
16721 # (actually we leave an empty line to preserve line numbers).
16722 if test "x$srcdir" = x.; then
16723 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16724 s/:*\$(srcdir):*/:/
16725 s/:*\${srcdir}:*/:/
16726 s/:*@srcdir@:*/:/
16727 s/^\([^=]*=[ ]*\):*/\1/
16728 s/:*$//
16729 s/^[^=]*=[ ]*$//
16733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16734 fi # test -n "$CONFIG_FILES"
16736 # Set up the scripts for CONFIG_HEADERS section.
16737 # No need to generate them if there are no CONFIG_HEADERS.
16738 # This happens for instance with `./config.status Makefile'.
16739 if test -n "$CONFIG_HEADERS"; then
16740 cat >"$tmp/defines.awk" <<\_ACAWK ||
16741 BEGIN {
16742 _ACEOF
16744 # Transform confdefs.h into an awk script `defines.awk', embedded as
16745 # here-document in config.status, that substitutes the proper values into
16746 # config.h.in to produce config.h.
16748 # Create a delimiter string that does not exist in confdefs.h, to ease
16749 # handling of long lines.
16750 ac_delim='%!_!# '
16751 for ac_last_try in false false :; do
16752 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16753 if test -z "$ac_t"; then
16754 break
16755 elif $ac_last_try; then
16756 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16757 else
16758 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16760 done
16762 # For the awk script, D is an array of macro values keyed by name,
16763 # likewise P contains macro parameters if any. Preserve backslash
16764 # newline sequences.
16766 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16767 sed -n '
16768 s/.\{148\}/&'"$ac_delim"'/g
16769 t rset
16770 :rset
16771 s/^[ ]*#[ ]*define[ ][ ]*/ /
16772 t def
16774 :def
16775 s/\\$//
16776 t bsnl
16777 s/["\\]/\\&/g
16778 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16779 D["\1"]=" \3"/p
16780 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16782 :bsnl
16783 s/["\\]/\\&/g
16784 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16785 D["\1"]=" \3\\\\\\n"\\/p
16786 t cont
16787 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16788 t cont
16790 :cont
16792 s/.\{148\}/&'"$ac_delim"'/g
16793 t clear
16794 :clear
16795 s/\\$//
16796 t bsnlc
16797 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16799 :bsnlc
16800 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16801 b cont
16802 ' <confdefs.h | sed '
16803 s/'"$ac_delim"'/"\\\
16804 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16807 for (key in D) D_is_set[key] = 1
16808 FS = "\a"
16810 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16811 line = \$ 0
16812 split(line, arg, " ")
16813 if (arg[1] == "#") {
16814 defundef = arg[2]
16815 mac1 = arg[3]
16816 } else {
16817 defundef = substr(arg[1], 2)
16818 mac1 = arg[2]
16820 split(mac1, mac2, "(") #)
16821 macro = mac2[1]
16822 prefix = substr(line, 1, index(line, defundef) - 1)
16823 if (D_is_set[macro]) {
16824 # Preserve the white space surrounding the "#".
16825 print prefix "define", macro P[macro] D[macro]
16826 next
16827 } else {
16828 # Replace #undef with comments. This is necessary, for example,
16829 # in the case of _POSIX_SOURCE, which is predefined and required
16830 # on some systems where configure will not decide to define it.
16831 if (defundef == "undef") {
16832 print "/*", prefix defundef, macro, "*/"
16833 next
16837 { print }
16838 _ACAWK
16839 _ACEOF
16840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16841 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16842 fi # test -n "$CONFIG_HEADERS"
16845 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16846 shift
16847 for ac_tag
16849 case $ac_tag in
16850 :[FHLC]) ac_mode=$ac_tag; continue;;
16851 esac
16852 case $ac_mode$ac_tag in
16853 :[FHL]*:*);;
16854 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16855 :[FH]-) ac_tag=-:-;;
16856 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16857 esac
16858 ac_save_IFS=$IFS
16859 IFS=:
16860 set x $ac_tag
16861 IFS=$ac_save_IFS
16862 shift
16863 ac_file=$1
16864 shift
16866 case $ac_mode in
16867 :L) ac_source=$1;;
16868 :[FH])
16869 ac_file_inputs=
16870 for ac_f
16872 case $ac_f in
16873 -) ac_f="$tmp/stdin";;
16874 *) # Look for the file first in the build tree, then in the source tree
16875 # (if the path is not absolute). The absolute path cannot be DOS-style,
16876 # because $ac_f cannot contain `:'.
16877 test -f "$ac_f" ||
16878 case $ac_f in
16879 [\\/$]*) false;;
16880 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16881 esac ||
16882 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16883 esac
16884 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16885 as_fn_append ac_file_inputs " '$ac_f'"
16886 done
16888 # Let's still pretend it is `configure' which instantiates (i.e., don't
16889 # use $as_me), people would be surprised to read:
16890 # /* config.h. Generated by config.status. */
16891 configure_input='Generated from '`
16892 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16893 `' by configure.'
16894 if test x"$ac_file" != x-; then
16895 configure_input="$ac_file. $configure_input"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16897 $as_echo "$as_me: creating $ac_file" >&6;}
16899 # Neutralize special characters interpreted by sed in replacement strings.
16900 case $configure_input in #(
16901 *\&* | *\|* | *\\* )
16902 ac_sed_conf_input=`$as_echo "$configure_input" |
16903 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16904 *) ac_sed_conf_input=$configure_input;;
16905 esac
16907 case $ac_tag in
16908 *:-:* | *:-) cat >"$tmp/stdin" \
16909 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16910 esac
16912 esac
16914 ac_dir=`$as_dirname -- "$ac_file" ||
16915 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16916 X"$ac_file" : 'X\(//\)[^/]' \| \
16917 X"$ac_file" : 'X\(//\)$' \| \
16918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16919 $as_echo X"$ac_file" |
16920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16921 s//\1/
16924 /^X\(\/\/\)[^/].*/{
16925 s//\1/
16928 /^X\(\/\/\)$/{
16929 s//\1/
16932 /^X\(\/\).*/{
16933 s//\1/
16936 s/.*/./; q'`
16937 as_dir="$ac_dir"; as_fn_mkdir_p
16938 ac_builddir=.
16940 case "$ac_dir" in
16941 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16943 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16944 # A ".." for each directory in $ac_dir_suffix.
16945 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16946 case $ac_top_builddir_sub in
16947 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16948 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16949 esac ;;
16950 esac
16951 ac_abs_top_builddir=$ac_pwd
16952 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16953 # for backward compatibility:
16954 ac_top_builddir=$ac_top_build_prefix
16956 case $srcdir in
16957 .) # We are building in place.
16958 ac_srcdir=.
16959 ac_top_srcdir=$ac_top_builddir_sub
16960 ac_abs_top_srcdir=$ac_pwd ;;
16961 [\\/]* | ?:[\\/]* ) # Absolute name.
16962 ac_srcdir=$srcdir$ac_dir_suffix;
16963 ac_top_srcdir=$srcdir
16964 ac_abs_top_srcdir=$srcdir ;;
16965 *) # Relative name.
16966 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16967 ac_top_srcdir=$ac_top_build_prefix$srcdir
16968 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16969 esac
16970 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16973 case $ac_mode in
16976 # CONFIG_FILE
16979 case $INSTALL in
16980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16981 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16982 esac
16983 ac_MKDIR_P=$MKDIR_P
16984 case $MKDIR_P in
16985 [\\/$]* | ?:[\\/]* ) ;;
16986 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16987 esac
16988 _ACEOF
16990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16991 # If the template does not know about datarootdir, expand it.
16992 # FIXME: This hack should be removed a few years after 2.60.
16993 ac_datarootdir_hack=; ac_datarootdir_seen=
16994 ac_sed_dataroot='
16995 /datarootdir/ {
16999 /@datadir@/p
17000 /@docdir@/p
17001 /@infodir@/p
17002 /@localedir@/p
17003 /@mandir@/p'
17004 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17005 *datarootdir*) ac_datarootdir_seen=yes;;
17006 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17008 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17009 _ACEOF
17010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17011 ac_datarootdir_hack='
17012 s&@datadir@&$datadir&g
17013 s&@docdir@&$docdir&g
17014 s&@infodir@&$infodir&g
17015 s&@localedir@&$localedir&g
17016 s&@mandir@&$mandir&g
17017 s&\\\${datarootdir}&$datarootdir&g' ;;
17018 esac
17019 _ACEOF
17021 # Neutralize VPATH when `$srcdir' = `.'.
17022 # Shell code in configure.ac might set extrasub.
17023 # FIXME: do we really want to maintain this feature?
17024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17025 ac_sed_extra="$ac_vpsub
17026 $extrasub
17027 _ACEOF
17028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17031 s|@configure_input@|$ac_sed_conf_input|;t t
17032 s&@top_builddir@&$ac_top_builddir_sub&;t t
17033 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17034 s&@srcdir@&$ac_srcdir&;t t
17035 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17036 s&@top_srcdir@&$ac_top_srcdir&;t t
17037 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17038 s&@builddir@&$ac_builddir&;t t
17039 s&@abs_builddir@&$ac_abs_builddir&;t t
17040 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17041 s&@INSTALL@&$ac_INSTALL&;t t
17042 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17043 $ac_datarootdir_hack
17045 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17046 || as_fn_error "could not create $ac_file" "$LINENO" 5
17048 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17049 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17050 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17052 which seems to be undefined. Please make sure it is defined." >&5
17053 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17054 which seems to be undefined. Please make sure it is defined." >&2;}
17056 rm -f "$tmp/stdin"
17057 case $ac_file in
17058 -) cat "$tmp/out" && rm -f "$tmp/out";;
17059 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17060 esac \
17061 || as_fn_error "could not create $ac_file" "$LINENO" 5
17065 # CONFIG_HEADER
17067 if test x"$ac_file" != x-; then
17069 $as_echo "/* $configure_input */" \
17070 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17071 } >"$tmp/config.h" \
17072 || as_fn_error "could not create $ac_file" "$LINENO" 5
17073 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17075 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17076 else
17077 rm -f "$ac_file"
17078 mv "$tmp/config.h" "$ac_file" \
17079 || as_fn_error "could not create $ac_file" "$LINENO" 5
17081 else
17082 $as_echo "/* $configure_input */" \
17083 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17084 || as_fn_error "could not create -" "$LINENO" 5
17086 # Compute "$ac_file"'s index in $config_headers.
17087 _am_arg="$ac_file"
17088 _am_stamp_count=1
17089 for _am_header in $config_headers :; do
17090 case $_am_header in
17091 $_am_arg | $_am_arg:* )
17092 break ;;
17094 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17095 esac
17096 done
17097 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17098 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17099 X"$_am_arg" : 'X\(//\)[^/]' \| \
17100 X"$_am_arg" : 'X\(//\)$' \| \
17101 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17102 $as_echo X"$_am_arg" |
17103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17104 s//\1/
17107 /^X\(\/\/\)[^/].*/{
17108 s//\1/
17111 /^X\(\/\/\)$/{
17112 s//\1/
17115 /^X\(\/\).*/{
17116 s//\1/
17119 s/.*/./; q'`/stamp-h$_am_stamp_count
17122 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17123 $as_echo "$as_me: executing $ac_file commands" >&6;}
17125 esac
17128 case $ac_file$ac_mode in
17129 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17130 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17131 # are listed without --file. Let's play safe and only enable the eval
17132 # if we detect the quoting.
17133 case $CONFIG_FILES in
17134 *\'*) eval set x "$CONFIG_FILES" ;;
17135 *) set x $CONFIG_FILES ;;
17136 esac
17137 shift
17138 for mf
17140 # Strip MF so we end up with the name of the file.
17141 mf=`echo "$mf" | sed -e 's/:.*$//'`
17142 # Check whether this is an Automake generated Makefile or not.
17143 # We used to match only the files named `Makefile.in', but
17144 # some people rename them; so instead we look at the file content.
17145 # Grep'ing the first line is not enough: some people post-process
17146 # each Makefile.in and add a new line on top of each file to say so.
17147 # Grep'ing the whole file is not good either: AIX grep has a line
17148 # limit of 2048, but all sed's we know have understand at least 4000.
17149 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17150 dirpart=`$as_dirname -- "$mf" ||
17151 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17152 X"$mf" : 'X\(//\)[^/]' \| \
17153 X"$mf" : 'X\(//\)$' \| \
17154 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17155 $as_echo X"$mf" |
17156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17157 s//\1/
17160 /^X\(\/\/\)[^/].*/{
17161 s//\1/
17164 /^X\(\/\/\)$/{
17165 s//\1/
17168 /^X\(\/\).*/{
17169 s//\1/
17172 s/.*/./; q'`
17173 else
17174 continue
17176 # Extract the definition of DEPDIR, am__include, and am__quote
17177 # from the Makefile without running `make'.
17178 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17179 test -z "$DEPDIR" && continue
17180 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17181 test -z "am__include" && continue
17182 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17183 # When using ansi2knr, U may be empty or an underscore; expand it
17184 U=`sed -n 's/^U = //p' < "$mf"`
17185 # Find all dependency output files, they are included files with
17186 # $(DEPDIR) in their names. We invoke sed twice because it is the
17187 # simplest approach to changing $(DEPDIR) to its actual value in the
17188 # expansion.
17189 for file in `sed -n "
17190 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17191 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17192 # Make sure the directory exists.
17193 test -f "$dirpart/$file" && continue
17194 fdir=`$as_dirname -- "$file" ||
17195 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17196 X"$file" : 'X\(//\)[^/]' \| \
17197 X"$file" : 'X\(//\)$' \| \
17198 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17199 $as_echo X"$file" |
17200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17201 s//\1/
17204 /^X\(\/\/\)[^/].*/{
17205 s//\1/
17208 /^X\(\/\/\)$/{
17209 s//\1/
17212 /^X\(\/\).*/{
17213 s//\1/
17216 s/.*/./; q'`
17217 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17218 # echo "creating $dirpart/$file"
17219 echo '# dummy' > "$dirpart/$file"
17220 done
17221 done
17224 "default-1":C)
17225 for ac_file in $CONFIG_FILES; do
17226 # Support "outfile[:infile[:infile...]]"
17227 case "$ac_file" in
17228 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17229 esac
17230 # PO directories have a Makefile.in generated from Makefile.in.in.
17231 case "$ac_file" in */Makefile.in)
17232 # Adjust a relative srcdir.
17233 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17234 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17235 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17236 # In autoconf-2.13 it is called $ac_given_srcdir.
17237 # In autoconf-2.50 it is called $srcdir.
17238 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17239 case "$ac_given_srcdir" in
17240 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17241 /*) top_srcdir="$ac_given_srcdir" ;;
17242 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17243 esac
17244 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17245 rm -f "$ac_dir/POTFILES"
17246 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17247 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17248 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17249 # on $ac_dir but don't depend on user-specified configuration
17250 # parameters.
17251 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17252 # The LINGUAS file contains the set of available languages.
17253 if test -n "$ALL_LINGUAS"; then
17254 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17256 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17257 # Hide the ALL_LINGUAS assigment from automake.
17258 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17260 case "$ac_given_srcdir" in
17261 .) srcdirpre= ;;
17262 *) srcdirpre='$(srcdir)/' ;;
17263 esac
17264 POFILES=
17265 GMOFILES=
17266 UPDATEPOFILES=
17267 DUMMYPOFILES=
17268 for lang in $ALL_LINGUAS; do
17269 POFILES="$POFILES $srcdirpre$lang.po"
17270 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17271 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17272 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17273 done
17274 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17275 # environment variable.
17276 INST_LINGUAS=
17277 if test -n "$ALL_LINGUAS"; then
17278 for presentlang in $ALL_LINGUAS; do
17279 useit=no
17280 if test "%UNSET%" != "$LINGUAS"; then
17281 desiredlanguages="$LINGUAS"
17282 else
17283 desiredlanguages="$ALL_LINGUAS"
17285 for desiredlang in $desiredlanguages; do
17286 # Use the presentlang catalog if desiredlang is
17287 # a. equal to presentlang, or
17288 # b. a variant of presentlang (because in this case,
17289 # presentlang can be used as a fallback for messages
17290 # which are not translated in the desiredlang catalog).
17291 case "$desiredlang" in
17292 "$presentlang"*) useit=yes;;
17293 esac
17294 done
17295 if test $useit = yes; then
17296 INST_LINGUAS="$INST_LINGUAS $presentlang"
17298 done
17300 CATALOGS=
17301 if test -n "$INST_LINGUAS"; then
17302 for lang in $INST_LINGUAS; do
17303 CATALOGS="$CATALOGS $lang.gmo"
17304 done
17306 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17307 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"
17308 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17309 if test -f "$f"; then
17310 case "$f" in
17311 *.orig | *.bak | *~) ;;
17312 *) cat "$f" >> "$ac_dir/Makefile" ;;
17313 esac
17315 done
17318 esac
17319 done ;;
17320 "denoiser":C) if test $denoiserlevel -gt 0; then
17321 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
17322 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" \
17323 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
17324 for i in `find . -name 'Makefile' -print`; do
17325 if test -n "`head -n 1 $i | grep '^#'`"; then
17326 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
17328 done
17329 fi ;;
17331 esac
17332 done # for ac_tag
17335 as_fn_exit 0
17336 _ACEOF
17337 ac_clean_files=$ac_clean_files_save
17339 test $ac_write_fail = 0 ||
17340 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17343 # configure is writing to config.log, and then calls config.status.
17344 # config.status does its own redirection, appending to config.log.
17345 # Unfortunately, on DOS this fails, as config.log is still kept open
17346 # by configure, so config.status won't be able to write to it; its
17347 # output is simply discarded. So we exec the FD to /dev/null,
17348 # effectively closing config.log, so it can be properly (re)opened and
17349 # appended to by config.status. When coming back to configure, we
17350 # need to make the FD available again.
17351 if test "$no_create" != yes; then
17352 ac_cs_success=:
17353 ac_config_status_args=
17354 test "$silent" = yes &&
17355 ac_config_status_args="$ac_config_status_args --quiet"
17356 exec 5>/dev/null
17357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17358 exec 5>>config.log
17359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17360 # would make configure fail if this is the last instruction.
17361 $ac_cs_success || as_fn_exit $?
17363 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17365 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17369 if test -n "$svndate"; then :
17370 SVN_REVISION=" ($svndate)"
17371 else
17372 SVN_REVISION=
17375 echo
17376 echo
17377 echo " Configure script has finished system check."
17378 echo
17379 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17380 echo
17381 echo " aMule enabled options:"
17382 echo
17383 echo " **** aMule Core ****"
17384 echo " Prefix where aMule should be installed? ${prefix:-none}"
17385 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17386 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17387 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17388 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17389 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17390 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17391 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17392 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
17393 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
17394 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
17396 echo
17397 echo " **** aMule TextClient ****"
17398 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
17399 echo
17400 echo " **** aMule WebServer ****"
17401 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
17402 echo
17403 echo " **** aMule ED2K Links Handler ****"
17404 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
17405 echo
17406 echo " **** aMuleLinkCreator ****"
17407 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
17408 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
17409 echo
17410 echo " **** aMule Statistics ****"
17411 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
17412 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
17413 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
17414 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
17416 echo
17417 echo " **** General Libraries and Tools ****"
17418 echo " Should ccache support be enabled? ${enable_ccache:-no}"
17419 echo " Libraries aMule will use to build:"
17420 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 :
17422 wxinfo="$WX_PORT"
17423 if test $WX_DEBUG -eq 1; then :
17424 wxinfo="$wxinfo,debug"
17426 if test $WX_SHARED -eq 1; then :
17427 wxinfo="$wxinfo,shared"
17428 else
17429 wxinfo="$wxinfo,static"
17431 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
17434 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17435 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
17437 if test ${enable_upnp:-yes} = yes; then :
17439 if test -n "$with_libupnp_prefix"; then :
17440 libupnp_place=" (in $with_libupnp_prefix)"
17442 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
17445 if test ${enable_nls:-yes} = yes; then
17446 if test x$USE_NLS = xno; then :
17447 libintl_found="Not detected"
17448 else
17449 if test x$USE_INCLUDED_LIBINTL = xyes; then :
17450 libintl_found="included"
17451 else
17452 libintl_found="system"
17455 echo " libintl $libintl_found"
17457 if test ${enable_geoip:-no} = yes; then :
17458 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
17459 geoip_style=system
17460 else
17461 geoip_style=user
17463 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
17464 echo " libGeoIP ${geoip_style}"
17467 if test ${enable_webserver:-no} = yes; then :
17468 echo " libpng ${LIBPNG_VERSION:-Not detected}"
17470 if test ${enable_cas:-no} = yes; then :
17471 echo " libgd ${GDLIB_VERSION:-Not detected}"
17473 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 :
17474 echo " zlib ${ZLIB_VERSION:-Not detected}"
17476 if test ${enable_plasmamule:-no} = yes; then :
17477 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
17478 echo " qt-core-libs ${QT_CORE_LIBS}"
17479 echo " qt-gui-libs ${QT_GUI_LIBS}"
17480 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
17481 echo " kde-headers ${KDE_HEADER_DIR}"
17482 echo " kde-services-path ${KDE_SERVICE_PATH}"
17483 echo " kde-module-path ${KDE_MODULE_PATH}"
17484 echo " kde-icon-path ${KDE_ICON_PATH}"
17485 echo " kde-mime-path ${KDE_MIME_PATH}"
17486 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
17489 if test ${_mule_has_warnings:-no} = yes; then
17490 echo ""
17491 echo ""
17492 echo " *** Warnings during configuration ***"
17494 if test ${_mule_warning_0:-no} = yes; then
17495 cat <<_MULEEOT
17497 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
17498 Please check that gdlib-config is in your default path, check out
17499 LD_LIBRARY_PATH or equivalent variable.
17500 Or this might also be that your gdlib-config has other name.
17501 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
17502 /usr/bin/gdlib-config with a valid path to your gdlib-config).
17503 If you use compiled packages check if you have devel pack installed.
17504 To download the latest version check http://www.boutell.com/gd for sources.
17505 _MULEEOT
17507 if test ${_mule_warning_1:-no} = yes; then
17508 cat <<_MULEEOT
17510 * libpng >= 1.2.0 not found.
17511 amuleweb will be compiled but file download progress bar images will NOT be
17512 generated.
17513 _MULEEOT
17515 if test ${_mule_warning_2:-no} = yes; then
17516 cat <<_MULEEOT
17518 * File::Copy perl module is required by the mldonkey_importer script.
17519 If you want to use this script please install File::Copy from CPAN.
17520 _MULEEOT
17522 if test ${_mule_warning_3:-no} = yes; then
17523 cat <<_MULEEOT
17525 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
17526 _MULEEOT
17528 if test ${_mule_warning_4:-no} = yes; then
17529 cat <<_MULEEOT
17531 * GeoIP support has been disabled because the GeoIP libraries were not found
17532 _MULEEOT
17534 if test ${_mule_warning_5:-no} = yes; then
17535 cat <<_MULEEOT
17537 * GeoIP support has been disabled because the GeoIP header files were not
17538 found
17539 _MULEEOT
17541 if test ${_mule_warning_6:-no} = yes; then
17542 cat <<_MULEEOT
17544 * UPnP code has been disabled because ${libupnp_error}.
17545 _MULEEOT
17547 if test ${_mule_warning_7:-no} = yes; then
17548 cat <<_MULEEOT
17550 * Cross-compilation detected, so exception handling cannot be tested.
17551 Note that broken exception handling in your compiler may lead to unexpected
17552 crashes.
17553 _MULEEOT
17555 if test ${_mule_warning_8:-no} = yes; then
17556 cat <<_MULEEOT
17558 * configure cannot check whether malloc() and realloc() are GNU libc
17559 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17560 configure with the --without-gnu-malloc switch.
17561 _MULEEOT
17563 if test ${_mule_warning_9:-no} = yes; then
17564 cat <<_MULEEOT
17566 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17567 support.
17568 _MULEEOT
17570 if test ${_mule_warning_10:-no} = yes; then
17571 cat <<_MULEEOT
17573 * bfd.h not found or unusable, please install binutils development package if
17574 you are a developer or want to help testing aMule
17575 _MULEEOT