Bypass maximum number of TCP connections limitation in amuled
[amule.git] / configure
blob3f5497fcd97a751356b01bc45ae5155c8ba18eab
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; }
7363 if test -n "$LIBPNG_VERSION"; then :
7364 AMULEWEB_DEFS="-DWITH_LIBPNG"
7365 else
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7368 libpng >= 1.2.0 not found.
7369 amuleweb will be compiled but file download progress bar images will
7370 NOT be generated." >&5
7371 $as_echo "$as_me: WARNING:
7372 libpng >= 1.2.0 not found.
7373 amuleweb will be compiled but file download progress bar images will
7374 NOT be generated." >&2;}
7375 _mule_warning_1=yes
7376 _mule_has_warnings=yes
7386 # Check for perl File::Copy
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for File::Copy" >&5
7388 $as_echo_n "checking for File::Copy... " >&6; }
7389 if perl -e "require File::Copy" 2>/dev/null; then :
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7391 $as_echo "ok" >&6; }
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7394 File::Copy perl module is required by the mldonkey_importer script.
7395 If you want to use this script please install File::Copy from CPAN." >&5
7396 $as_echo "$as_me: WARNING:
7397 File::Copy perl module is required by the mldonkey_importer script.
7398 If you want to use this script please install File::Copy from CPAN." >&2;}
7399 _mule_warning_2=yes
7400 _mule_has_warnings=yes
7404 # Check if we need to install skins
7405 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7406 INSTALL_SKINS=yes
7407 else
7408 INSTALL_SKINS=no
7411 # Check for GeoIP (required for IP2Country capability)
7412 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
7414 # Check whether --enable-geoip was given.
7415 if test "${enable_geoip+set}" = set; then :
7416 enableval=$enable_geoip;
7421 if test ${enable_geoip:-no} = yes; then :
7424 # Check whether --with-geoip-headers was given.
7425 if test "${with_geoip_headers+set}" = set; then :
7426 withval=$with_geoip_headers; GEOIP_CPPFLAGS="-I$withval"
7430 # Check whether --with-geoip-lib was given.
7431 if test "${with_geoip_lib+set}" = set; then :
7432 withval=$with_geoip_lib; GEOIP_LDFLAGS="-L$withval"
7436 mule_backup_CPPFLAGS="$CPPFLAGS"
7437 CPPFLAGS="$CPPFLAGS $GEOIP_CPPFLAGS"
7438 mule_backup_LDFLAGS="$LDFLAGS"
7439 LDFLAGS="$LDFLAGS $GEOIP_LDFLAGS"
7441 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
7442 if test "x$ac_cv_header_GeoIP_h" = x""yes; then :
7444 if test x$SYS = xwin32; then :
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WinSock library needed by GeoIP" >&5
7447 $as_echo_n "checking for WinSock library needed by GeoIP... " >&6; }
7448 # Actually, we might not need any if GeoIP is linked as a .dll
7449 # - but that's even harder to check for
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7454 #include <GeoIP.h>
7455 #ifdef _WINSOCK2_H
7456 I do know it's not the best approach, but at least works with MinGW stock headers.
7457 (tested with w32api-3.12)
7458 #endif
7461 main ()
7465 return 0;
7468 _ACEOF
7469 if ac_fn_c_try_compile "$LINENO"; then :
7471 GEOIP_WINSOCK_LIB="-lwsock32"
7473 else
7475 GEOIP_WINSOCK_LIB="-lws2_32"
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEOIP_WINSOCK_LIB" >&5
7480 $as_echo "$GEOIP_WINSOCK_LIB" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GeoIP_open in -lGeoIP" >&5
7484 $as_echo_n "checking for GeoIP_open in -lGeoIP... " >&6; }
7485 if test "${ac_cv_lib_GeoIP_GeoIP_open+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 ac_check_lib_save_LIBS=$LIBS
7489 LIBS="-lGeoIP ${GEOIP_WINSOCK_LIB:-} $LIBS"
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7493 /* Override any GCC internal prototype to avoid an error.
7494 Use char because int might match the return type of a GCC
7495 builtin and then its argument prototype would still apply. */
7496 #ifdef __cplusplus
7497 extern "C"
7498 #endif
7499 char GeoIP_open ();
7501 main ()
7503 return GeoIP_open ();
7505 return 0;
7507 _ACEOF
7508 if ac_fn_c_try_link "$LINENO"; then :
7509 ac_cv_lib_GeoIP_GeoIP_open=yes
7510 else
7511 ac_cv_lib_GeoIP_GeoIP_open=no
7513 rm -f core conftest.err conftest.$ac_objext \
7514 conftest$ac_exeext conftest.$ac_ext
7515 LIBS=$ac_check_lib_save_LIBS
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GeoIP_GeoIP_open" >&5
7518 $as_echo "$ac_cv_lib_GeoIP_GeoIP_open" >&6; }
7519 if test "x$ac_cv_lib_GeoIP_GeoIP_open" = x""yes; then :
7522 $as_echo "#define SUPPORT_GEOIP 1" >>confdefs.h
7524 GEOIP_LIBS="-lGeoIP"
7525 if test x$SYS = xwin32; then :
7526 GEOIP_LIBS="$GEOIP_LIBS $GEOIP_WINSOCK_LIB"
7528 GEOIP_CPPFLAGS="$GEOIP_CPPFLAGS -DENABLE_IP2COUNTRY=1"
7530 # Check whether --with-geoip-static was given.
7531 if test "${with_geoip_static+set}" = set; then :
7532 withval=$with_geoip_static;
7533 if test "$withval" != "no" -a ${enable_static:-no} = no; then :
7535 mule_backup_LIBS="$LIBS"
7536 LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic $LIBS"
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7541 #include <GeoIP.h>
7544 main ()
7547 GeoIP *g = GeoIP_new(GEOIP_STANDARD);
7550 return 0;
7553 _ACEOF
7554 if ac_fn_c_try_link "$LINENO"; then :
7556 GEOIP_LIBS="-Wl,-Bstatic $GEOIP_LIBS -Wl,-Bdynamic"
7558 else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7561 Cannot link GeoIP statically, because your linker ($LD) does not
7562 support it." >&5
7563 $as_echo "$as_me: WARNING:
7564 Cannot link GeoIP statically, because your linker ($LD) does not
7565 support it." >&2;}
7566 _mule_warning_3=yes
7567 _mule_has_warnings=yes
7571 rm -f core conftest.err conftest.$ac_objext \
7572 conftest$ac_exeext conftest.$ac_ext
7573 LIBS="$mule_backup_LIBS"
7580 else
7582 enable_geoip=disabled
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7584 GeoIP support has been disabled because the GeoIP libraries were not
7585 found" >&5
7586 $as_echo "$as_me: WARNING:
7587 GeoIP support has been disabled because the GeoIP libraries were not
7588 found" >&2;}
7589 _mule_warning_4=yes
7590 _mule_has_warnings=yes
7596 else
7598 enable_geoip=disabled
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7600 GeoIP support has been disabled because the GeoIP header files were
7601 not found" >&5
7602 $as_echo "$as_me: WARNING:
7603 GeoIP support has been disabled because the GeoIP header files were
7604 not found" >&2;}
7605 _mule_warning_5=yes
7606 _mule_has_warnings=yes
7613 CPPFLAGS="$mule_backup_CPPFLAGS"
7614 LDFLAGS="$mule_backup_LDFLAGS"
7620 # Check for wx
7621 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 :
7624 # Check whether --with-wxdir was given.
7625 if test "${with_wxdir+set}" = set; then :
7626 withval=$with_wxdir; wx_config_name="$withval/wx-config"
7627 wx_config_args="--inplace"
7631 # Check whether --with-wx-config was given.
7632 if test "${with_wx_config+set}" = set; then :
7633 withval=$with_wx_config; wx_config_name="$withval"
7637 # Check whether --with-wx-prefix was given.
7638 if test "${with_wx_prefix+set}" = set; then :
7639 withval=$with_wx_prefix; wx_config_prefix="$withval"
7640 else
7641 wx_config_prefix=""
7645 # Check whether --with-wx-exec-prefix was given.
7646 if test "${with_wx_exec_prefix+set}" = set; then :
7647 withval=$with_wx_exec_prefix; wx_config_exec_prefix="$withval"
7648 else
7649 wx_config_exec_prefix=""
7664 # Check whether --with-toolkit was given.
7665 if test "${with_toolkit+set}" = set; then :
7666 withval=$with_toolkit;
7667 else
7668 withval="auto"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-toolkit option" >&5
7673 $as_echo_n "checking for the --with-toolkit option... " >&6; }
7674 if test "$withval" = "auto" ; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7676 $as_echo "will be automatically detected" >&6; }
7677 TOOLKIT="auto"
7678 else
7679 TOOLKIT="$withval"
7681 if test "$TOOLKIT" != "gtk1" -a "$TOOLKIT" != "gtk2" -a \
7682 "$TOOLKIT" != "msw" -a "$TOOLKIT" != "motif" -a \
7683 "$TOOLKIT" != "x11" -a "$TOOLKIT" != "mac" -a \
7684 "$TOOLKIT" != "mgl" -a "$TOOLKIT" != "dfb" -a \
7685 "$TOOLKIT" != "base" -a "$TOOLKIT" != "cocoa" -a \
7686 "$TOOLKIT" != "osx_cocoa"; then
7687 as_fn_error "
7688 Unrecognized option value (allowed values: auto, gtk1, gtk2, msw, motif, x11, mac, mgl, dfb, base, cocoa, osx_cocoa)
7689 " "$LINENO" 5
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLKIT" >&5
7693 $as_echo "$TOOLKIT" >&6; }
7700 # Check whether --with-wxshared was given.
7701 if test "${with_wxshared+set}" = set; then :
7702 withval=$with_wxshared;
7703 else
7704 withval="auto"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxshared option" >&5
7709 $as_echo_n "checking for the --with-wxshared option... " >&6; }
7710 if test "$withval" = "yes" ; then
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7712 $as_echo "yes" >&6; }
7713 WX_SHARED=1
7715 elif test "1" = "1" -a "$withval" = "no" ; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7718 WX_SHARED=0
7719 elif test "$withval" = "auto" ; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7721 $as_echo "will be automatically detected" >&6; }
7722 WX_SHARED="auto"
7723 else
7724 as_fn_error "
7725 Unrecognized option value (allowed values: yes, auto)
7726 " "$LINENO" 5
7733 # Check whether --with-wxdebug was given.
7734 if test "${with_wxdebug+set}" = set; then :
7735 withval=$with_wxdebug;
7736 else
7737 withval="auto"
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxdebug option" >&5
7742 $as_echo_n "checking for the --with-wxdebug option... " >&6; }
7743 if test "$withval" = "yes" ; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7745 $as_echo "yes" >&6; }
7746 WX_DEBUG=1
7748 elif test "1" = "1" -a "$withval" = "no" ; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 WX_DEBUG=0
7752 elif test "$withval" = "auto" ; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7754 $as_echo "will be automatically detected" >&6; }
7755 WX_DEBUG="auto"
7756 else
7757 as_fn_error "
7758 Unrecognized option value (allowed values: yes, auto)
7759 " "$LINENO" 5
7766 # Check whether --with-wxversion was given.
7767 if test "${with_wxversion+set}" = set; then :
7768 withval=$with_wxversion;
7769 else
7770 withval="auto"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the --with-wxversion option" >&5
7775 $as_echo_n "checking for the --with-wxversion option... " >&6; }
7776 if test "$withval" = "auto" ; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: will be automatically detected" >&5
7778 $as_echo "will be automatically detected" >&6; }
7779 WX_VERSION="auto"
7780 else
7782 wx_requested_major_version=`echo $withval | \
7783 sed 's/\([0-9]*\).\([0-9]*\).*/\1/'`
7784 wx_requested_minor_version=`echo $withval | \
7785 sed 's/\([0-9]*\).\([0-9]*\).*/\2/'`
7787 if test "${#wx_requested_major_version}" != "1" -o \
7788 "${#wx_requested_minor_version}" != "1" ; then
7789 as_fn_error "
7790 Unrecognized option value (allowed values: auto, 2.8, 2.9)
7791 " "$LINENO" 5
7794 WX_VERSION="$wx_requested_major_version"".""$wx_requested_minor_version"
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_VERSION" >&5
7796 $as_echo "$WX_VERSION" >&6; }
7800 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7801 echo "[dbg] DEBUG: $DEBUG, WX_DEBUG: $WX_DEBUG"
7802 echo "[dbg] UNICODE: $UNICODE, WX_UNICODE: $WX_UNICODE"
7803 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
7804 echo "[dbg] TOOLKIT: $TOOLKIT, WX_TOOLKIT: $WX_TOOLKIT"
7805 echo "[dbg] VERSION: $VERSION, WX_VERSION: $WX_VERSION"
7808 # Force using a static wxWidgets library if the executable is to be linked statically.
7809 if test ${enable_static:-no} = yes; then :
7810 WX_SHARED=0
7812 # Force using a unicode build of the library
7813 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 :
7814 WX_UNICODE=1
7816 DEBUG=$WX_DEBUG
7818 if test "$WX_SHARED" = "1" ; then
7819 WXCONFIG_FLAGS="--static=no "
7820 elif test "$WX_SHARED" = "0" ; then
7821 WXCONFIG_FLAGS="--static=yes "
7824 if test "$WX_DEBUG" = "1" ; then
7825 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=yes "
7826 elif test "$WX_DEBUG" = "0" ; then
7827 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--debug=no "
7830 if test "$WX_UNICODE" = "1" ; then
7831 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=yes "
7832 elif test "$WX_UNICODE" = "0" ; then
7833 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--unicode=no "
7836 if test "$TOOLKIT" != "auto" ; then
7837 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--toolkit=$TOOLKIT "
7840 if test "$WX_VERSION" != "auto" ; then
7841 WXCONFIG_FLAGS="$WXCONFIG_FLAGS""--version=$WX_VERSION "
7844 WXCONFIG_FLAGS=${WXCONFIG_FLAGS% }
7846 if test "$WX_DEBUG_CONFIGURE" = "1"; then
7847 echo "[dbg] WXCONFIG_FLAGS: $WXCONFIG_FLAGS"
7851 if test x${WX_CONFIG_NAME+set} != xset ; then
7852 WX_CONFIG_NAME=wx-config
7855 if test "x$wx_config_name" != x ; then
7856 WX_CONFIG_NAME="$wx_config_name"
7859 if test x$wx_config_exec_prefix != x ; then
7860 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
7861 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
7863 if test x$wx_config_prefix != x ; then
7864 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
7865 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
7867 if test "$cross_compiling" = "yes"; then
7868 wx_config_args="$wx_config_args --host=$host_alias"
7871 if test -x "$WX_CONFIG_NAME" ; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
7873 $as_echo_n "checking for wx-config... " >&6; }
7874 WX_CONFIG_PATH="$WX_CONFIG_NAME"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7876 $as_echo "$WX_CONFIG_PATH" >&6; }
7877 else
7878 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
7879 set dummy $WX_CONFIG_NAME; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 case $WX_CONFIG_PATH in
7886 [\\/]* | ?:[\\/]*)
7887 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
7890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7891 as_dummy=""$WX_LOOKUP_PATH:$PATH""
7892 for as_dir in $as_dummy
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7898 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7902 done
7903 done
7904 IFS=$as_save_IFS
7906 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
7908 esac
7910 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
7911 if test -n "$WX_CONFIG_PATH"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_CONFIG_PATH" >&5
7913 $as_echo "$WX_CONFIG_PATH" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7922 if test "$WX_CONFIG_PATH" != "no" ; then
7923 WX_VERSION_FULL=""
7925 min_wx_version=2.8.12
7926 if test -z "$WXCONFIG_FLAGS" ; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version" >&5
7928 $as_echo_n "checking for wxWidgets version >= $min_wx_version... " >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)" >&5
7931 $as_echo_n "checking for wxWidgets version >= $min_wx_version ($WXCONFIG_FLAGS)... " >&6; }
7934 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCONFIG_FLAGS "
7936 WX_VERSION_FULL=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
7937 wx_config_major_version=`echo $WX_VERSION_FULL | \
7938 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7939 wx_config_minor_version=`echo $WX_VERSION_FULL | \
7940 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7941 wx_config_micro_version=`echo $WX_VERSION_FULL | \
7942 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7944 wx_requested_major_version=`echo $min_wx_version | \
7945 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7946 wx_requested_minor_version=`echo $min_wx_version | \
7947 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7948 wx_requested_micro_version=`echo $min_wx_version | \
7949 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7952 wx_ver_ok=""
7953 if test "x$WX_VERSION_FULL" != x ; then
7954 if test $wx_config_major_version -gt $wx_requested_major_version; then
7955 wx_ver_ok=yes
7956 else
7957 if test $wx_config_major_version -eq $wx_requested_major_version; then
7958 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
7959 wx_ver_ok=yes
7960 else
7961 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
7962 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
7963 wx_ver_ok=yes
7972 if test -n "$wx_ver_ok"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $WX_VERSION_FULL)" >&5
7975 $as_echo "yes (version $WX_VERSION_FULL)" >&6; }
7976 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
7978 WX_RESCOMP=`$WX_CONFIG_WITH_ARGS --rescomp`
7980 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
7981 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
7982 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
7984 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
7985 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
7987 wxWin=1
7989 else
7991 if test "x$WX_VERSION_FULL" = x; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (version $WX_VERSION_FULL is not new enough)" >&5
7996 $as_echo "no (version $WX_VERSION_FULL is not new enough)" >&6; }
7999 WX_CFLAGS=""
8000 WX_CPPFLAGS=""
8001 WX_CXXFLAGS=""
8002 WX_LIBS=""
8003 WX_RESCOMP=""
8005 if test ! -z "$WXCONFIG_FLAGS"; then
8007 wx_error_message="
8008 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
8009 build with the following settings:
8010 $WXCONFIG_FLAGS
8011 but such build is not available.
8013 To see the wxWidgets builds available on this system, please use
8014 'wx-config --list' command. To use the default build, returned by
8015 'wx-config --selected-config', use the options with their 'auto'
8016 default values."
8020 wx_error_message="
8021 The requested wxWidgets build couldn't be found.
8022 $wx_error_message
8024 If you still get this error, then check that 'wx-config' is
8025 in path, the directory where wxWidgets libraries are installed
8026 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
8027 or equivalent variable and wxWidgets version is 2.8.12 or above."
8029 as_fn_error "$wx_error_message" "$LINENO" 5
8032 else
8034 WX_CFLAGS=""
8035 WX_CPPFLAGS=""
8036 WX_CXXFLAGS=""
8037 WX_LIBS=""
8038 WX_RESCOMP=""
8053 WX_VERSION_MAJOR="$wx_config_major_version"
8054 WX_VERSION_MINOR="$wx_config_minor_version"
8058 if test "$wxWin" != 1; then :
8059 as_fn_error "
8060 wxWidgets must be installed on your system but wx-config
8061 script couldn't be found. Please check that wx-config is
8062 in path or specified by --with-wx-config=path flag, the
8063 directory where wxWidgets libraries are installed (returned
8064 by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
8065 equivalent variable and wxWidgets version is 2.8.12 or above.
8066 " "$LINENO" 5
8069 if test "${WX_VERSION_FULL}" = "2.9.0"; then :
8070 as_fn_error "
8071 This version of wxWidgets is known to not work with aMule.
8072 Please upgrade to a newer version.
8073 " "$LINENO" 5
8077 WX_VERSION="$WX_VERSION_MAJOR""$WX_VERSION_MINOR"
8079 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
8081 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8082 echo "[dbg] Using wx-config --selected-config"
8083 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
8087 if test $WX_SHARED = "1"; then
8088 STATIC=0
8089 elif test $WX_SHARED = "0"; then
8090 STATIC=1
8091 elif test $WX_SHARED = "auto"; then
8092 STATIC="auto"
8096 if test "$UNICODE" = "auto" ; then
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built with UNICODE enabled" >&5
8099 $as_echo_n "checking if wxWidgets was built with UNICODE enabled... " >&6; }
8101 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
8103 if test "$WX_UNICODE" != "0"; then
8104 WX_UNICODE=1
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8106 $as_echo "yes" >&6; }
8108 else
8109 WX_UNICODE=0
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8114 else
8116 WX_UNICODE=$UNICODE
8120 if test "$DEBUG" = "auto" ; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in DEBUG mode" >&5
8123 $as_echo_n "checking if wxWidgets was built in DEBUG mode... " >&6; }
8125 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
8127 if test "$WX_DEBUG" != "0"; then
8128 WX_DEBUG=1
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8132 else
8133 WX_DEBUG=0
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8138 else
8140 WX_DEBUG=$DEBUG
8144 if test "$STATIC" = "auto" ; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wxWidgets was built in STATIC mode" >&5
8147 $as_echo_n "checking if wxWidgets was built in STATIC mode... " >&6; }
8149 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
8151 if test "$WX_STATIC" != "0"; then
8152 WX_STATIC=1
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8154 $as_echo "yes" >&6; }
8156 else
8157 WX_STATIC=0
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8162 else
8164 WX_STATIC=$STATIC
8168 if test "$WX_STATIC" != "0"; then
8169 WX_SHARED=0
8170 else
8171 WX_SHARED=1
8178 if test "$TOOLKIT" = "auto" ; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which wxWidgets toolkit was selected" >&5
8181 $as_echo_n "checking which wxWidgets toolkit was selected... " >&6; }
8183 WX_GTKPORT1=$(expr "$WX_SELECTEDCONFIG" : ".*gtk1.*")
8184 WX_GTKPORT2=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
8185 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
8186 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
8187 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
8188 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
8189 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
8190 WX_DFBPORT=$(expr "$WX_SELECTEDCONFIG" : ".*dfb.*")
8191 WX_BASEPORT=$(expr "$WX_SELECTEDCONFIG" : ".*base.*")
8192 WX_COCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*cocoa.*")
8193 WX_OSXCOCOAPORT=$(expr "$WX_SELECTEDCONFIG" : ".*osx_cocoa.*")
8195 WX_PORT="unknown"
8196 if test "$WX_GTKPORT1" != "0"; then WX_PORT="gtk1"; fi
8197 if test "$WX_GTKPORT2" != "0"; then WX_PORT="gtk2"; fi
8198 if test "$WX_MSWPORT" != "0"; then WX_PORT="msw"; fi
8199 if test "$WX_MOTIFPORT" != "0"; then WX_PORT="motif"; fi
8200 if test "$WX_MACPORT" != "0"; then WX_PORT="mac"; fi
8201 if test "$WX_X11PORT" != "0"; then WX_PORT="x11"; fi
8202 if test "$WX_MGLPORT" != "0"; then WX_PORT="mgl"; fi
8203 if test "$WX_DFBPORT" != "0"; then WX_PORT="dfb"; fi
8204 if test "$WX_BASEPORT" != "0"; then WX_PORT="base"; fi
8205 if test "$WX_COCOAPORT" != "0"; then WX_PORT="cocoa"; fi
8206 if test "$WX_OSXCOCOAPORT" != "0"; then WX_PORT="osx_cocoa"; fi
8209 if test "$WX_PORT" = "unknown" ; then
8210 as_fn_error "
8211 Cannot detect the currently installed wxWidgets port !
8212 Please check your 'wx-config --cxxflags'...
8213 " "$LINENO" 5
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WX_PORT" >&5
8217 $as_echo "$WX_PORT" >&6; }
8218 else
8220 if test -n "$TOOLKIT" ; then
8221 WX_PORT=$TOOLKIT
8222 else
8223 WX_PORT=$PORT
8229 if test "$WX_DEBUG_CONFIGURE" = "1"; then
8230 echo "[dbg] Values of all WX_* options after final detection:"
8231 echo "[dbg] WX_DEBUG: $WX_DEBUG"
8232 echo "[dbg] WX_UNICODE: $WX_UNICODE"
8233 echo "[dbg] WX_SHARED: $WX_SHARED"
8234 echo "[dbg] WX_VERSION: $WX_VERSION"
8235 echo "[dbg] WX_PORT: $WX_PORT"
8238 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
8239 as_fn_error "
8240 Cannot build shared library against a static build of wxWidgets !
8241 This error happens because the wxWidgets build which was selected
8242 has been detected as static while you asked to build $PACKAGE_NAME
8243 as shared library and this is not possible.
8244 Use the '--disable-shared' option to build $PACKAGE_NAME
8245 as static library or '--with-wxshared' to use wxWidgets as shared library.
8246 " "$LINENO" 5
8249 if test "$DEBUG" = "auto"; then
8250 DEBUG=$WX_DEBUG
8252 if test "$DEBUG" = "1"; then
8253 BUILD="debug"
8254 elif test "$DEBUG" = ""; then
8255 BUILD="release"
8258 if test "$UNICODE" = "auto"; then
8259 UNICODE=$WX_UNICODE
8261 if test "$SHARED" = "auto"; then
8262 SHARED=$WX_SHARED
8264 if test "$TOOLKIT" = "auto"; then
8265 TOOLKIT=$WX_PORT
8269 # We also need wxBase
8270 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs adv,core,net`
8271 WXBASE_LIBS=`$WX_CONFIG_WITH_ARGS --libs net`
8272 WXBASE_CPPFLAGS="$WX_CPPFLAGS -DwxUSE_GUI=0"
8274 MULERCFLAGS=`$WX_CONFIG_WITH_ARGS --cflags | $AWK '{ for (i = 1; i <= NF; i++) if (index($i, "-I") != 1 && index($i, "-D") != 1) $i = ""; print }'`
8278 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_wxcas:-no} = yes -o ${enable_alc:-no} = yes ; then :
8279 if test "${WX_PORT}" = base; then :
8280 as_fn_error "
8281 The selected components need a wxWidgets library with GUI,
8282 but your installation is base-only. Please install a GUI
8283 enabled version of wxWidgets and then retry.
8284 " "$LINENO" 5
8289 if test ${SYS:-unknown} = win32; then :
8290 if test -n "$ac_tool_prefix"; then
8291 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8292 set dummy ${ac_tool_prefix}windres; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_prog_RC+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 if test -n "$RC"; then
8299 ac_cv_prog_RC="$RC" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_prog_RC="${ac_tool_prefix}windres"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8312 done
8313 done
8314 IFS=$as_save_IFS
8318 RC=$ac_cv_prog_RC
8319 if test -n "$RC"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
8321 $as_echo "$RC" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8329 if test -z "$ac_cv_prog_RC"; then
8330 ac_ct_RC=$RC
8331 # Extract the first word of "windres", so it can be a program name with args.
8332 set dummy windres; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 if test -n "$ac_ct_RC"; then
8339 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_ac_ct_RC="windres"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 break 2
8352 done
8353 done
8354 IFS=$as_save_IFS
8358 ac_ct_RC=$ac_cv_prog_ac_ct_RC
8359 if test -n "$ac_ct_RC"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
8361 $as_echo "$ac_ct_RC" >&6; }
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8367 if test "x$ac_ct_RC" = x; then
8368 RC=":"
8369 else
8370 case $cross_compiling:$ac_tool_warned in
8371 yes:)
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8374 ac_tool_warned=yes ;;
8375 esac
8376 RC=$ac_ct_RC
8378 else
8379 RC="$ac_cv_prog_RC"
8385 # Check for libupnp
8386 # Check whether --enable-upnp was given.
8387 if test "${enable_upnp+set}" = set; then :
8388 enableval=$enable_upnp;
8392 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
8394 else
8395 enable_upnp=no
8399 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8400 if test -n "$ac_tool_prefix"; then
8401 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8402 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 case $PKG_CONFIG in
8409 [\\/]* | ?:[\\/]*)
8410 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8420 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8424 done
8425 done
8426 IFS=$as_save_IFS
8429 esac
8431 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8432 if test -n "$PKG_CONFIG"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8434 $as_echo "$PKG_CONFIG" >&6; }
8435 else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8442 if test -z "$ac_cv_path_PKG_CONFIG"; then
8443 ac_pt_PKG_CONFIG=$PKG_CONFIG
8444 # Extract the first word of "pkg-config", so it can be a program name with args.
8445 set dummy pkg-config; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 case $ac_pt_PKG_CONFIG in
8452 [\\/]* | ?:[\\/]*)
8453 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8463 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8467 done
8468 done
8469 IFS=$as_save_IFS
8472 esac
8474 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8475 if test -n "$ac_pt_PKG_CONFIG"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8477 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8478 else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8483 if test "x$ac_pt_PKG_CONFIG" = x; then
8484 PKG_CONFIG=""
8485 else
8486 case $cross_compiling:$ac_tool_warned in
8487 yes:)
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490 ac_tool_warned=yes ;;
8491 esac
8492 PKG_CONFIG=$ac_pt_PKG_CONFIG
8494 else
8495 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8499 if test -n "$PKG_CONFIG"; then
8500 _pkg_min_version=0.9.0
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8502 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8503 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8505 $as_echo "yes" >&6; }
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8508 $as_echo "no" >&6; }
8509 PKG_CONFIG=""
8513 if test ${enable_upnp:-yes} = yes; then :
8517 # Check whether --with-libupnp-prefix was given.
8518 if test "${with_libupnp_prefix+set}" = set; then :
8519 withval=$with_libupnp_prefix; export PKG_CONFIG_PATH=$withval/lib/pkgconfig
8523 if test $cross_compiling = no; then :
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libupnp version >= 1.6.6" >&5
8526 $as_echo_n "checking for libupnp version >= 1.6.6... " >&6; }
8527 if test -n "$PKG_CONFIG"; then :
8529 if $PKG_CONFIG libupnp --exists; then :
8531 LIBUPNP_VERSION=`$PKG_CONFIG libupnp --modversion`
8532 if $PKG_CONFIG libupnp --atleast-version=1.6.6; then :
8534 result=yes
8535 resultstr=" (version $LIBUPNP_VERSION)"
8536 LIBUPNP_CPPFLAGS=`$PKG_CONFIG libupnp --cflags-only-I`
8537 LIBUPNP_CFLAGS=`$PKG_CONFIG libupnp --cflags-only-other`
8538 LIBUPNP_LDFLAGS=`$PKG_CONFIG libupnp --libs-only-L`
8539 LIBUPNP_LIBS=`$PKG_CONFIG libupnp --libs-only-other`
8540 LIBUPNP_LIBS="$LIBUPNP_LIBS `$PKG_CONFIG libupnp --libs-only-l`"
8542 else
8544 result=no
8545 resultstr=" (version $LIBUPNP_VERSION is not new enough)"
8549 else
8551 result=no
8552 resultstr=" (try to use --with-libupnp-prefix=PREFIX)"
8556 else
8558 result=no
8559 resultstr=" (pkg-config not found)"
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8563 $as_echo "$result$resultstr" >&6; }
8564 libupnp_error="libupnp >= 1.6.6 not found$resultstr"
8566 else
8568 result=no
8569 libupnp_error="cross compiling"
8573 if test ${result:-no} = yes; then :
8574 LIBUPNP_CPPFLAGS="$LIBUPNP_CPPFLAGS -DENABLE_UPNP=1"
8575 else
8576 enable_upnp=disabled
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8578 UPnP code has been disabled because ${libupnp_error}." >&5
8579 $as_echo "$as_me: WARNING:
8580 UPnP code has been disabled because ${libupnp_error}." >&2;}
8581 _mule_warning_6=yes
8582 _mule_has_warnings=yes
8591 # Check for Crypto++
8592 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
8595 # Check whether --with-crypto-prefix was given.
8596 if test "${with_crypto_prefix+set}" = set; then :
8597 withval=$with_crypto_prefix;
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto++ version >= 5.1" >&5
8602 $as_echo_n "checking for crypto++ version >= 5.1... " >&6; }
8604 cryptopp_file_with_version="cryptlib.h"
8606 CRYPTOPP_STYLE="unknown"
8607 CRYPTOPP_LIB_NAME="unknown"
8608 cryptopp_includedir="unknown"
8609 CRYPTOPP_INCLUDE_PREFIX="unknown"
8610 cryptopp_libdir="unknown"
8612 if test -n "$with_crypto_prefix"; then :
8614 CRYPTOPP_PREFIX="$with_crypto_prefix"
8615 # Find the Cryptopp header in the user-provided location
8616 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8618 CRYPTOPP_STYLE="sources"
8619 CRYPTOPP_LIB_NAME="cryptopp"
8620 cryptopp_includedir=
8621 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8622 cryptopp_libdir=
8624 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8626 CRYPTOPP_STYLE="installed"
8627 CRYPTOPP_LIB_NAME="cryptopp"
8628 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8629 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8630 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8632 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8634 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8635 CRYPTOPP_STYLE="gentoo_debian"
8636 CRYPTOPP_LIB_NAME="crypto++"
8637 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8638 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8639 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8644 else
8646 for CRYPTOPP_PREFIX in /usr /usr/local /opt /opt/local /usr/pkg /mingw ; do
8647 # Find the Cryptopp header in system locations
8648 if test -f $CRYPTOPP_PREFIX/$cryptopp_file_with_version; then
8650 CRYPTOPP_STYLE="sources"
8651 CRYPTOPP_LIB_NAME="cryptopp"
8652 cryptopp_includedir=
8653 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_PREFIX"
8654 cryptopp_libdir=
8655 break
8657 elif test -f $CRYPTOPP_PREFIX/include/cryptopp/$cryptopp_file_with_version; then
8659 CRYPTOPP_STYLE="installed"
8660 CRYPTOPP_LIB_NAME="cryptopp"
8661 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8662 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8663 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8664 break
8666 elif test -f $CRYPTOPP_PREFIX/include/crypto++/$cryptopp_file_with_version; then
8668 # Debian uses libcrypto++5.1 - it's not my fault, please soda patch the package
8669 CRYPTOPP_STYLE="gentoo_debian"
8670 CRYPTOPP_LIB_NAME="crypto++"
8671 cryptopp_includedir="$CRYPTOPP_PREFIX/include"
8672 CRYPTOPP_INCLUDE_PREFIX="$CRYPTOPP_LIB_NAME"
8673 cryptopp_libdir="$CRYPTOPP_PREFIX/lib"
8674 break
8678 done
8682 if test $CRYPTOPP_STYLE = "unknown"; then :
8683 result=no; resultstr=""
8684 else
8686 # Find out the crypto++ version and check against the minimum required
8687 cryptopp_header_path="${cryptopp_includedir+$cryptopp_includedir/}$CRYPTOPP_INCLUDE_PREFIX/$cryptopp_file_with_version"
8688 CRYPTOPP_VERSION_STRING=`$EGREP "Reference Manual|API Reference" $cryptopp_header_path | sed -e 's/[^0-9]*\([0-9.]*\).*/\1/'`
8689 CRYPTOPP_VERSION_NUMBER=`echo $CRYPTOPP_VERSION_STRING | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8690 minvers=`echo 5.1 | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
8692 if test -n "$CRYPTOPP_VERSION_NUMBER" && test "$CRYPTOPP_VERSION_NUMBER" -ge $minvers; then :
8694 result=yes
8695 resultstr=" (version $CRYPTOPP_VERSION_STRING, $CRYPTOPP_STYLE)"
8696 if test -n "$cryptopp_includedir"; then :
8697 CRYPTOPP_CPPFLAGS="-I$cryptopp_includedir"
8698 else
8699 CRYPTOPP_CPPFLAGS=
8701 if test -n "$cryptopp_libdir"; then :
8703 CRYPTOPP_LDFLAGS="-L$cryptopp_libdir"
8704 CRYPTOPP_LIBS="-l$CRYPTOPP_LIB_NAME"
8706 else
8708 CRYPTOPP_LDFLAGS=
8709 CRYPTOPP_LIBS="${CRYPTOPP_INCLUDE_PREFIX}/lib${CRYPTOPP_LIB_NAME}.a"
8713 cat >>confdefs.h <<_ACEOF
8714 #define CRYPTOPP_INCLUDE_PREFIX $CRYPTOPP_INCLUDE_PREFIX
8715 _ACEOF
8718 else
8720 result=no
8721 resultstr=" (version $CRYPTOPP_VERSION_STRING is not new enough)"
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result$resultstr" >&5
8728 $as_echo "$result$resultstr" >&6; }
8730 if test ${result:-no} = yes; then :
8732 # Check for CryptoPP >= 5.5
8733 if test $CRYPTOPP_VERSION_NUMBER -ge "5005000"; then :
8734 CRYPTOPP_CPPFLAGS="$CRYPTOPP_CPPFLAGS -D__WEAK_CRYPTO__"
8737 else
8739 as_fn_error "
8740 Could not find crypto++ header file \"$cryptopp_file_with_version\".
8741 Please try again with --with-crypto-prefix=/my_crypto_prefix
8742 (replace /my_crypto_prefix with a valid path to your crypto++
8743 installation directory)." "$LINENO" 5
8752 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 :
8753 ac_ext=cpp
8754 ac_cpp='$CXXCPP $CPPFLAGS'
8755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're using the GNU C++ library" >&5
8761 $as_echo_n "checking if we're using the GNU C++ library... " >&6; }
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8763 /* end confdefs.h. */
8766 #include <string>
8767 #ifndef __GLIBCXX__
8768 #error Non-GNU C++ library found.
8769 #endif
8772 _ACEOF
8773 if ac_fn_cxx_try_cpp "$LINENO"; then :
8774 GLIBCXX=yes
8775 else
8776 GLIBCXX=no
8778 rm -f conftest.err conftest.$ac_ext
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBCXX" >&5
8780 $as_echo "$GLIBCXX" >&6; }
8782 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_alc:-no} = yes -o ${enable_alcc:-no} = yes ; then :
8784 mule_backup_CPPFLAGS="$CPPFLAGS"
8785 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that wxWidgets has support for large files" >&5
8788 $as_echo_n "checking that wxWidgets has support for large files... " >&6; }
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8793 #include <wx/wx.h>
8794 #include <wx/filefn.h>
8795 #ifndef wxHAS_LARGE_FILES
8796 #error No LargeFile support!
8797 #endif
8800 _ACEOF
8801 if ac_fn_cxx_try_cpp "$LINENO"; then :
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8804 $as_echo "yes" >&6; }
8806 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8810 as_fn_error "
8811 Support for large files in wxWidgets is required by aMule.
8812 To continue you must recompile wxWidgets with support for
8813 large files enabled." "$LINENO" 5
8816 rm -f conftest.err conftest.$ac_ext
8818 CPPFLAGS="$mule_backup_CPPFLAGS"
8822 # Check if the compiler is broken, wrt. exceptions.
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception-handling" >&5
8825 $as_echo_n "checking for exception-handling... " >&6; }
8826 if test "$cross_compiling" = yes; then :
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5
8829 $as_echo "undeterminable" >&6; }
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8831 Cross-compilation detected, so exception handling cannot be tested.
8832 Note that broken exception handling in your compiler may lead to
8833 unexpected crashes." >&5
8834 $as_echo "$as_me: WARNING:
8835 Cross-compilation detected, so exception handling cannot be tested.
8836 Note that broken exception handling in your compiler may lead to
8837 unexpected crashes." >&2;}
8838 _mule_warning_7=yes
8839 _mule_has_warnings=yes
8842 else
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8848 main ()
8851 try {
8852 throw 1;
8853 } catch (int) {
8854 return 0;
8856 return 1;
8859 return 0;
8862 _ACEOF
8863 if ac_fn_cxx_try_run "$LINENO"; then :
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8866 $as_echo "yes" >&6; }
8868 else
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8872 as_fn_error "Exception handling does not work. Broken compiler?" "$LINENO" 5
8875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8876 conftest.$ac_objext conftest.beam conftest.$ac_ext
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <cxxabi.h> and __cxa_demangle()" >&5
8883 $as_echo_n "checking for <cxxabi.h> and __cxa_demangle()... " >&6; }
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8888 #include <cxxabi.h>
8891 main ()
8894 int status;
8895 char * demangled = abi::__cxa_demangle("", 0, 0, &status);
8896 std::type_info *ti = abi::__cxa_current_exception_type();
8899 return 0;
8902 _ACEOF
8903 if ac_fn_cxx_try_link "$LINENO"; then :
8906 $as_echo "#define HAVE_CXXABI 1" >>confdefs.h
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8909 $as_echo "yes" >&6; }
8911 else
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 $as_echo "no" >&6; }
8917 rm -f core conftest.err conftest.$ac_objext \
8918 conftest$ac_exeext conftest.$ac_ext
8920 ac_ext=c
8921 ac_cpp='$CPP $CPPFLAGS'
8922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8929 # Ok, we have all needed libs, now checking for other stuff
8930 if test "$LEX" = "flex"; then :
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended flex capabilities" >&5
8933 $as_echo_n "checking for extended flex capabilities... " >&6; }
8935 extended_flex=`flex --help | grep header-file`
8936 if test -n "$extended_flex"; then :
8937 HAVE_FLEX_EXTENDED=yes
8938 else
8939 HAVE_FLEX_EXTENDED=no
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FLEX_EXTENDED" >&5
8942 $as_echo "$HAVE_FLEX_EXTENDED" >&6; }
8944 if test $HAVE_FLEX_EXTENDED = no; then :
8945 { $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
8946 $as_echo "$as_me: Your flex version doesn't support --header-file flag. This is not critical, but an upgrade is recommended" >&6;}
8949 else
8950 HAVE_FLEX_EXTENDED=no
8953 # Flush standard test results for speeding cache
8954 cat >confcache <<\_ACEOF
8955 # This file is a shell script that caches the results of configure
8956 # tests run on this system so they can be shared between configure
8957 # scripts and configure runs, see configure's option --config-cache.
8958 # It is not useful on other systems. If it contains results you don't
8959 # want to keep, you may remove or edit it.
8961 # config.status only pays attention to the cache file if you give it
8962 # the --recheck option to rerun configure.
8964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8966 # following values.
8968 _ACEOF
8970 # The following way of writing the cache mishandles newlines in values,
8971 # but we know of no workaround that is simple, portable, and efficient.
8972 # So, we kill variables containing newlines.
8973 # Ultrix sh set writes to stderr and can't be redirected directly,
8974 # and sets the high bit in the cache file unless we assign to the vars.
8976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8977 eval ac_val=\$$ac_var
8978 case $ac_val in #(
8979 *${as_nl}*)
8980 case $ac_var in #(
8981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8983 esac
8984 case $ac_var in #(
8985 _ | IFS | as_nl) ;; #(
8986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8987 *) { eval $ac_var=; unset $ac_var;} ;;
8988 esac ;;
8989 esac
8990 done
8992 (set) 2>&1 |
8993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8994 *${as_nl}ac_space=\ *)
8995 # `set' does not quote correctly, so add quotes: double-quote
8996 # substitution turns \\\\ into \\, and sed turns \\ into \.
8997 sed -n \
8998 "s/'/'\\\\''/g;
8999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9000 ;; #(
9002 # `set' quotes correctly as required by POSIX, so do not add quotes.
9003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9005 esac |
9006 sort
9008 sed '
9009 /^ac_cv_env_/b end
9010 t clear
9011 :clear
9012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9013 t end
9014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9015 :end' >>confcache
9016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9017 if test -w "$cache_file"; then
9018 test "x$cache_file" != "x/dev/null" &&
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9020 $as_echo "$as_me: updating cache $cache_file" >&6;}
9021 cat confcache >$cache_file
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9024 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9027 rm -f confcache
9029 # Checks for header files.
9030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9031 # for constant arguments. Useless!
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9033 $as_echo_n "checking for working alloca.h... " >&6; }
9034 if test "${ac_cv_working_alloca_h+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039 #include <alloca.h>
9041 main ()
9043 char *p = (char *) alloca (2 * sizeof (int));
9044 if (p) return 0;
9046 return 0;
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050 ac_cv_working_alloca_h=yes
9051 else
9052 ac_cv_working_alloca_h=no
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9058 $as_echo "$ac_cv_working_alloca_h" >&6; }
9059 if test $ac_cv_working_alloca_h = yes; then
9061 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9066 $as_echo_n "checking for alloca... " >&6; }
9067 if test "${ac_cv_func_alloca_works+set}" = set; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9072 #ifdef __GNUC__
9073 # define alloca __builtin_alloca
9074 #else
9075 # ifdef _MSC_VER
9076 # include <malloc.h>
9077 # define alloca _alloca
9078 # else
9079 # ifdef HAVE_ALLOCA_H
9080 # include <alloca.h>
9081 # else
9082 # ifdef _AIX
9083 #pragma alloca
9084 # else
9085 # ifndef alloca /* predefined by HP cc +Olibcalls */
9086 char *alloca ();
9087 # endif
9088 # endif
9089 # endif
9090 # endif
9091 #endif
9094 main ()
9096 char *p = (char *) alloca (1);
9097 if (p) return 0;
9099 return 0;
9101 _ACEOF
9102 if ac_fn_c_try_link "$LINENO"; then :
9103 ac_cv_func_alloca_works=yes
9104 else
9105 ac_cv_func_alloca_works=no
9107 rm -f core conftest.err conftest.$ac_objext \
9108 conftest$ac_exeext conftest.$ac_ext
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9111 $as_echo "$ac_cv_func_alloca_works" >&6; }
9113 if test $ac_cv_func_alloca_works = yes; then
9115 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9117 else
9118 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9119 # that cause trouble. Some versions do not even contain alloca or
9120 # contain a buggy version. If you still want to use their alloca,
9121 # use ar to extract alloca.o from them instead of compiling alloca.c.
9123 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9125 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9129 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9130 if test "${ac_cv_os_cray+set}" = set; then :
9131 $as_echo_n "(cached) " >&6
9132 else
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #if defined CRAY && ! defined CRAY2
9136 webecray
9137 #else
9138 wenotbecray
9139 #endif
9141 _ACEOF
9142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9143 $EGREP "webecray" >/dev/null 2>&1; then :
9144 ac_cv_os_cray=yes
9145 else
9146 ac_cv_os_cray=no
9148 rm -f conftest*
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9152 $as_echo "$ac_cv_os_cray" >&6; }
9153 if test $ac_cv_os_cray = yes; then
9154 for ac_func in _getb67 GETB67 getb67; do
9155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9157 eval as_val=\$$as_ac_var
9158 if test "x$as_val" = x""yes; then :
9160 cat >>confdefs.h <<_ACEOF
9161 #define CRAY_STACKSEG_END $ac_func
9162 _ACEOF
9164 break
9167 done
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9171 $as_echo_n "checking stack direction for C alloca... " >&6; }
9172 if test "${ac_cv_c_stack_direction+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 if test "$cross_compiling" = yes; then :
9176 ac_cv_c_stack_direction=0
9177 else
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 $ac_includes_default
9182 find_stack_direction ()
9184 static char *addr = 0;
9185 auto char dummy;
9186 if (addr == 0)
9188 addr = &dummy;
9189 return find_stack_direction ();
9191 else
9192 return (&dummy > addr) ? 1 : -1;
9196 main ()
9198 return find_stack_direction () < 0;
9200 _ACEOF
9201 if ac_fn_c_try_run "$LINENO"; then :
9202 ac_cv_c_stack_direction=1
9203 else
9204 ac_cv_c_stack_direction=-1
9206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9207 conftest.$ac_objext conftest.beam conftest.$ac_ext
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9212 $as_echo "$ac_cv_c_stack_direction" >&6; }
9213 cat >>confdefs.h <<_ACEOF
9214 #define STACK_DIRECTION $ac_cv_c_stack_direction
9215 _ACEOF
9220 ac_header_dirent=no
9221 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9222 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9224 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #include <sys/types.h>
9231 #include <$ac_hdr>
9234 main ()
9236 if ((DIR *) 0)
9237 return 0;
9239 return 0;
9241 _ACEOF
9242 if ac_fn_c_try_compile "$LINENO"; then :
9243 eval "$as_ac_Header=yes"
9244 else
9245 eval "$as_ac_Header=no"
9247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249 eval ac_res=\$$as_ac_Header
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9251 $as_echo "$ac_res" >&6; }
9252 eval as_val=\$$as_ac_Header
9253 if test "x$as_val" = x""yes; then :
9254 cat >>confdefs.h <<_ACEOF
9255 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9256 _ACEOF
9258 ac_header_dirent=$ac_hdr; break
9261 done
9262 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9263 if test $ac_header_dirent = dirent.h; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9265 $as_echo_n "checking for library containing opendir... " >&6; }
9266 if test "${ac_cv_search_opendir+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 ac_func_search_save_LIBS=$LIBS
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9273 /* Override any GCC internal prototype to avoid an error.
9274 Use char because int might match the return type of a GCC
9275 builtin and then its argument prototype would still apply. */
9276 #ifdef __cplusplus
9277 extern "C"
9278 #endif
9279 char opendir ();
9281 main ()
9283 return opendir ();
9285 return 0;
9287 _ACEOF
9288 for ac_lib in '' dir; do
9289 if test -z "$ac_lib"; then
9290 ac_res="none required"
9291 else
9292 ac_res=-l$ac_lib
9293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9295 if ac_fn_c_try_link "$LINENO"; then :
9296 ac_cv_search_opendir=$ac_res
9298 rm -f core conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext
9300 if test "${ac_cv_search_opendir+set}" = set; then :
9301 break
9303 done
9304 if test "${ac_cv_search_opendir+set}" = set; then :
9306 else
9307 ac_cv_search_opendir=no
9309 rm conftest.$ac_ext
9310 LIBS=$ac_func_search_save_LIBS
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9313 $as_echo "$ac_cv_search_opendir" >&6; }
9314 ac_res=$ac_cv_search_opendir
9315 if test "$ac_res" != no; then :
9316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9320 else
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9322 $as_echo_n "checking for library containing opendir... " >&6; }
9323 if test "${ac_cv_search_opendir+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 ac_func_search_save_LIBS=$LIBS
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9330 /* Override any GCC internal prototype to avoid an error.
9331 Use char because int might match the return type of a GCC
9332 builtin and then its argument prototype would still apply. */
9333 #ifdef __cplusplus
9334 extern "C"
9335 #endif
9336 char opendir ();
9338 main ()
9340 return opendir ();
9342 return 0;
9344 _ACEOF
9345 for ac_lib in '' x; do
9346 if test -z "$ac_lib"; then
9347 ac_res="none required"
9348 else
9349 ac_res=-l$ac_lib
9350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9352 if ac_fn_c_try_link "$LINENO"; then :
9353 ac_cv_search_opendir=$ac_res
9355 rm -f core conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext
9357 if test "${ac_cv_search_opendir+set}" = set; then :
9358 break
9360 done
9361 if test "${ac_cv_search_opendir+set}" = set; then :
9363 else
9364 ac_cv_search_opendir=no
9366 rm conftest.$ac_ext
9367 LIBS=$ac_func_search_save_LIBS
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9370 $as_echo "$ac_cv_search_opendir" >&6; }
9371 ac_res=$ac_cv_search_opendir
9372 if test "$ac_res" != no; then :
9373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9380 $as_echo_n "checking for ANSI C header files... " >&6; }
9381 if test "${ac_cv_header_stdc+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9383 else
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 #include <stdlib.h>
9387 #include <stdarg.h>
9388 #include <string.h>
9389 #include <float.h>
9392 main ()
9396 return 0;
9398 _ACEOF
9399 if ac_fn_c_try_compile "$LINENO"; then :
9400 ac_cv_header_stdc=yes
9401 else
9402 ac_cv_header_stdc=no
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 if test $ac_cv_header_stdc = yes; then
9407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410 #include <string.h>
9412 _ACEOF
9413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9414 $EGREP "memchr" >/dev/null 2>&1; then :
9416 else
9417 ac_cv_header_stdc=no
9419 rm -f conftest*
9423 if test $ac_cv_header_stdc = yes; then
9424 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427 #include <stdlib.h>
9429 _ACEOF
9430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9431 $EGREP "free" >/dev/null 2>&1; then :
9433 else
9434 ac_cv_header_stdc=no
9436 rm -f conftest*
9440 if test $ac_cv_header_stdc = yes; then
9441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9442 if test "$cross_compiling" = yes; then :
9444 else
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9447 #include <ctype.h>
9448 #include <stdlib.h>
9449 #if ((' ' & 0x0FF) == 0x020)
9450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9452 #else
9453 # define ISLOWER(c) \
9454 (('a' <= (c) && (c) <= 'i') \
9455 || ('j' <= (c) && (c) <= 'r') \
9456 || ('s' <= (c) && (c) <= 'z'))
9457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9458 #endif
9460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9462 main ()
9464 int i;
9465 for (i = 0; i < 256; i++)
9466 if (XOR (islower (i), ISLOWER (i))
9467 || toupper (i) != TOUPPER (i))
9468 return 2;
9469 return 0;
9471 _ACEOF
9472 if ac_fn_c_try_run "$LINENO"; then :
9474 else
9475 ac_cv_header_stdc=no
9477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9478 conftest.$ac_objext conftest.beam conftest.$ac_ext
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9484 $as_echo "$ac_cv_header_stdc" >&6; }
9485 if test $ac_cv_header_stdc = yes; then
9487 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9491 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 poll.h
9492 do :
9493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9494 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9495 eval as_val=\$$as_ac_Header
9496 if test "x$as_val" = x""yes; then :
9497 cat >>confdefs.h <<_ACEOF
9498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9499 _ACEOF
9503 done
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9506 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9507 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
9508 $as_echo_n "(cached) " >&6
9509 else
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9512 #include <sys/types.h>
9513 #include <sys/wait.h>
9514 #ifndef WEXITSTATUS
9515 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9516 #endif
9517 #ifndef WIFEXITED
9518 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9519 #endif
9522 main ()
9524 int s;
9525 wait (&s);
9526 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9528 return 0;
9530 _ACEOF
9531 if ac_fn_c_try_compile "$LINENO"; then :
9532 ac_cv_header_sys_wait_h=yes
9533 else
9534 ac_cv_header_sys_wait_h=no
9536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9539 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9540 if test $ac_cv_header_sys_wait_h = yes; then
9542 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9547 # Checks for typedefs, structures, and compiler characteristics.
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9549 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9550 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9556 #include <stdbool.h>
9557 #ifndef bool
9558 "error: bool is not defined"
9559 #endif
9560 #ifndef false
9561 "error: false is not defined"
9562 #endif
9563 #if false
9564 "error: false is not 0"
9565 #endif
9566 #ifndef true
9567 "error: true is not defined"
9568 #endif
9569 #if true != 1
9570 "error: true is not 1"
9571 #endif
9572 #ifndef __bool_true_false_are_defined
9573 "error: __bool_true_false_are_defined is not defined"
9574 #endif
9576 struct s { _Bool s: 1; _Bool t; } s;
9578 char a[true == 1 ? 1 : -1];
9579 char b[false == 0 ? 1 : -1];
9580 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9581 char d[(bool) 0.5 == true ? 1 : -1];
9582 bool e = &s;
9583 char f[(_Bool) 0.0 == false ? 1 : -1];
9584 char g[true];
9585 char h[sizeof (_Bool)];
9586 char i[sizeof s.t];
9587 enum { j = false, k = true, l = false * true, m = true * 256 };
9588 /* The following fails for
9589 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9590 _Bool n[m];
9591 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9592 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9593 # if defined __xlc__ || defined __GNUC__
9594 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9595 reported by James Lemley on 2005-10-05; see
9596 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
9597 This test is not quite right, since xlc is allowed to
9598 reject this program, as the initializer for xlcbug is
9599 not one of the forms that C requires support for.
9600 However, doing the test right would require a runtime
9601 test, and that would make cross-compilation harder.
9602 Let us hope that IBM fixes the xlc bug, and also adds
9603 support for this kind of constant expression. In the
9604 meantime, this test will reject xlc, which is OK, since
9605 our stdbool.h substitute should suffice. We also test
9606 this with GCC, where it should work, to detect more
9607 quickly whether someone messes up the test in the
9608 future. */
9609 char digs[] = "0123456789";
9610 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9611 # endif
9612 /* Catch a bug in an HP-UX C compiler. See
9613 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9614 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9616 _Bool q = true;
9617 _Bool *pq = &q;
9620 main ()
9623 *pq |= q;
9624 *pq |= ! q;
9625 /* Refer to every declared value, to avoid compiler optimizations. */
9626 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9627 + !m + !n + !o + !p + !q + !pq);
9630 return 0;
9632 _ACEOF
9633 if ac_fn_c_try_compile "$LINENO"; then :
9634 ac_cv_header_stdbool_h=yes
9635 else
9636 ac_cv_header_stdbool_h=no
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9641 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9642 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9643 if test "x$ac_cv_type__Bool" = x""yes; then :
9645 cat >>confdefs.h <<_ACEOF
9646 #define HAVE__BOOL 1
9647 _ACEOF
9652 if test $ac_cv_header_stdbool_h = yes; then
9654 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9659 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9660 if test "${ac_cv_c_const+set}" = set; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h. */
9667 main ()
9669 /* FIXME: Include the comments suggested by Paul. */
9670 #ifndef __cplusplus
9671 /* Ultrix mips cc rejects this. */
9672 typedef int charset[2];
9673 const charset cs;
9674 /* SunOS 4.1.1 cc rejects this. */
9675 char const *const *pcpcc;
9676 char **ppc;
9677 /* NEC SVR4.0.2 mips cc rejects this. */
9678 struct point {int x, y;};
9679 static struct point const zero = {0,0};
9680 /* AIX XL C 1.02.0.0 rejects this.
9681 It does not let you subtract one const X* pointer from another in
9682 an arm of an if-expression whose if-part is not a constant
9683 expression */
9684 const char *g = "string";
9685 pcpcc = &g + (g ? g-g : 0);
9686 /* HPUX 7.0 cc rejects these. */
9687 ++pcpcc;
9688 ppc = (char**) pcpcc;
9689 pcpcc = (char const *const *) ppc;
9690 { /* SCO 3.2v4 cc rejects this. */
9691 char *t;
9692 char const *s = 0 ? (char *) 0 : (char const *) 0;
9694 *t++ = 0;
9695 if (s) return 0;
9697 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9698 int x[] = {25, 17};
9699 const int *foo = &x[0];
9700 ++foo;
9702 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9703 typedef const int *iptr;
9704 iptr p = 0;
9705 ++p;
9707 { /* AIX XL C 1.02.0.0 rejects this saying
9708 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9709 struct s { int j; const int *ap[3]; };
9710 struct s *b; b->j = 5;
9712 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9713 const int foo = 10;
9714 if (!foo) return 0;
9716 return !cs[0] && !zero.x;
9717 #endif
9720 return 0;
9722 _ACEOF
9723 if ac_fn_c_try_compile "$LINENO"; then :
9724 ac_cv_c_const=yes
9725 else
9726 ac_cv_c_const=no
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9731 $as_echo "$ac_cv_c_const" >&6; }
9732 if test $ac_cv_c_const = no; then
9734 $as_echo "#define const /**/" >>confdefs.h
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9739 $as_echo_n "checking for inline... " >&6; }
9740 if test "${ac_cv_c_inline+set}" = set; then :
9741 $as_echo_n "(cached) " >&6
9742 else
9743 ac_cv_c_inline=no
9744 for ac_kw in inline __inline__ __inline; do
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 #ifndef __cplusplus
9748 typedef int foo_t;
9749 static $ac_kw foo_t static_foo () {return 0; }
9750 $ac_kw foo_t foo () {return 0; }
9751 #endif
9753 _ACEOF
9754 if ac_fn_c_try_compile "$LINENO"; then :
9755 ac_cv_c_inline=$ac_kw
9757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9758 test "$ac_cv_c_inline" != no && break
9759 done
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9763 $as_echo "$ac_cv_c_inline" >&6; }
9765 case $ac_cv_c_inline in
9766 inline | yes) ;;
9768 case $ac_cv_c_inline in
9769 no) ac_val=;;
9770 *) ac_val=$ac_cv_c_inline;;
9771 esac
9772 cat >>confdefs.h <<_ACEOF
9773 #ifndef __cplusplus
9774 #define inline $ac_val
9775 #endif
9776 _ACEOF
9778 esac
9780 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9781 if test "x$ac_cv_type_mode_t" = x""yes; then :
9783 else
9785 cat >>confdefs.h <<_ACEOF
9786 #define mode_t int
9787 _ACEOF
9791 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9792 if test "x$ac_cv_type_off_t" = x""yes; then :
9794 else
9796 cat >>confdefs.h <<_ACEOF
9797 #define off_t long int
9798 _ACEOF
9802 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9803 if test "x$ac_cv_type_size_t" = x""yes; then :
9805 else
9807 cat >>confdefs.h <<_ACEOF
9808 #define size_t unsigned int
9809 _ACEOF
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9814 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9815 if test "${ac_cv_header_time+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 #include <sys/types.h>
9821 #include <sys/time.h>
9822 #include <time.h>
9825 main ()
9827 if ((struct tm *) 0)
9828 return 0;
9830 return 0;
9832 _ACEOF
9833 if ac_fn_c_try_compile "$LINENO"; then :
9834 ac_cv_header_time=yes
9835 else
9836 ac_cv_header_time=no
9838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9841 $as_echo "$ac_cv_header_time" >&6; }
9842 if test $ac_cv_header_time = yes; then
9844 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9849 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9850 if test "${ac_cv_struct_tm+set}" = set; then :
9851 $as_echo_n "(cached) " >&6
9852 else
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854 /* end confdefs.h. */
9855 #include <sys/types.h>
9856 #include <time.h>
9859 main ()
9861 struct tm tm;
9862 int *p = &tm.tm_sec;
9863 return !p;
9865 return 0;
9867 _ACEOF
9868 if ac_fn_c_try_compile "$LINENO"; then :
9869 ac_cv_struct_tm=time.h
9870 else
9871 ac_cv_struct_tm=sys/time.h
9873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9876 $as_echo "$ac_cv_struct_tm" >&6; }
9877 if test $ac_cv_struct_tm = sys/time.h; then
9879 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9884 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9885 if test "${ac_cv_type_uid_t+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890 #include <sys/types.h>
9892 _ACEOF
9893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9894 $EGREP "uid_t" >/dev/null 2>&1; then :
9895 ac_cv_type_uid_t=yes
9896 else
9897 ac_cv_type_uid_t=no
9899 rm -f conftest*
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9903 $as_echo "$ac_cv_type_uid_t" >&6; }
9904 if test $ac_cv_type_uid_t = no; then
9906 $as_echo "#define uid_t int" >>confdefs.h
9909 $as_echo "#define gid_t int" >>confdefs.h
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9914 $as_echo_n "checking for working volatile... " >&6; }
9915 if test "${ac_cv_c_volatile+set}" = set; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9922 main ()
9925 volatile int x;
9926 int * volatile y = (int *) 0;
9927 return !x && !y;
9929 return 0;
9931 _ACEOF
9932 if ac_fn_c_try_compile "$LINENO"; then :
9933 ac_cv_c_volatile=yes
9934 else
9935 ac_cv_c_volatile=no
9937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9940 $as_echo "$ac_cv_c_volatile" >&6; }
9941 if test $ac_cv_c_volatile = no; then
9943 $as_echo "#define volatile /**/" >>confdefs.h
9947 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
9948 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
9950 cat >>confdefs.h <<_ACEOF
9951 #define HAVE_PTRDIFF_T 1
9952 _ACEOF
9958 # Checks for library functions.
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9960 $as_echo_n "checking whether closedir returns void... " >&6; }
9961 if test "${ac_cv_func_closedir_void+set}" = set; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 if test "$cross_compiling" = yes; then :
9965 ac_cv_func_closedir_void=yes
9966 else
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9969 $ac_includes_default
9970 #include <$ac_header_dirent>
9971 #ifndef __cplusplus
9972 int closedir ();
9973 #endif
9976 main ()
9978 return closedir (opendir (".")) != 0;
9980 return 0;
9982 _ACEOF
9983 if ac_fn_c_try_run "$LINENO"; then :
9984 ac_cv_func_closedir_void=no
9985 else
9986 ac_cv_func_closedir_void=yes
9988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9989 conftest.$ac_objext conftest.beam conftest.$ac_ext
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9994 $as_echo "$ac_cv_func_closedir_void" >&6; }
9995 if test $ac_cv_func_closedir_void = yes; then
9997 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
10001 if test $ac_cv_c_compiler_gnu = yes; then
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10003 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10004 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10005 $as_echo_n "(cached) " >&6
10006 else
10007 ac_pattern="Autoconf.*'x'"
10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h. */
10010 #include <sgtty.h>
10011 Autoconf TIOCGETP
10012 _ACEOF
10013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10014 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10015 ac_cv_prog_gcc_traditional=yes
10016 else
10017 ac_cv_prog_gcc_traditional=no
10019 rm -f conftest*
10022 if test $ac_cv_prog_gcc_traditional = no; then
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 #include <termio.h>
10026 Autoconf TCGETA
10027 _ACEOF
10028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10029 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10030 ac_cv_prog_gcc_traditional=yes
10032 rm -f conftest*
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10037 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10038 if test $ac_cv_prog_gcc_traditional = yes; then
10039 CC="$CC -traditional"
10043 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10044 if test "x$ac_cv_type_pid_t" = x""yes; then :
10046 else
10048 cat >>confdefs.h <<_ACEOF
10049 #define pid_t int
10050 _ACEOF
10054 for ac_header in vfork.h
10055 do :
10056 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10057 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10058 cat >>confdefs.h <<_ACEOF
10059 #define HAVE_VFORK_H 1
10060 _ACEOF
10064 done
10066 for ac_func in fork vfork
10067 do :
10068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10069 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10070 eval as_val=\$$as_ac_var
10071 if test "x$as_val" = x""yes; then :
10072 cat >>confdefs.h <<_ACEOF
10073 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10074 _ACEOF
10077 done
10079 if test "x$ac_cv_func_fork" = xyes; then
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10081 $as_echo_n "checking for working fork... " >&6; }
10082 if test "${ac_cv_func_fork_works+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 if test "$cross_compiling" = yes; then :
10086 ac_cv_func_fork_works=cross
10087 else
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 $ac_includes_default
10092 main ()
10095 /* By Ruediger Kuhlmann. */
10096 return fork () < 0;
10099 return 0;
10101 _ACEOF
10102 if ac_fn_c_try_run "$LINENO"; then :
10103 ac_cv_func_fork_works=yes
10104 else
10105 ac_cv_func_fork_works=no
10107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10108 conftest.$ac_objext conftest.beam conftest.$ac_ext
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10113 $as_echo "$ac_cv_func_fork_works" >&6; }
10115 else
10116 ac_cv_func_fork_works=$ac_cv_func_fork
10118 if test "x$ac_cv_func_fork_works" = xcross; then
10119 case $host in
10120 *-*-amigaos* | *-*-msdosdjgpp*)
10121 # Override, as these systems have only a dummy fork() stub
10122 ac_cv_func_fork_works=no
10125 ac_cv_func_fork_works=yes
10127 esac
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10129 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10131 ac_cv_func_vfork_works=$ac_cv_func_vfork
10132 if test "x$ac_cv_func_vfork" = xyes; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10134 $as_echo_n "checking for working vfork... " >&6; }
10135 if test "${ac_cv_func_vfork_works+set}" = set; then :
10136 $as_echo_n "(cached) " >&6
10137 else
10138 if test "$cross_compiling" = yes; then :
10139 ac_cv_func_vfork_works=cross
10140 else
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143 /* Thanks to Paul Eggert for this test. */
10144 $ac_includes_default
10145 #include <sys/wait.h>
10146 #ifdef HAVE_VFORK_H
10147 # include <vfork.h>
10148 #endif
10149 /* On some sparc systems, changes by the child to local and incoming
10150 argument registers are propagated back to the parent. The compiler
10151 is told about this with #include <vfork.h>, but some compilers
10152 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10153 static variable whose address is put into a register that is
10154 clobbered by the vfork. */
10155 static void
10156 #ifdef __cplusplus
10157 sparc_address_test (int arg)
10158 # else
10159 sparc_address_test (arg) int arg;
10160 #endif
10162 static pid_t child;
10163 if (!child) {
10164 child = vfork ();
10165 if (child < 0) {
10166 perror ("vfork");
10167 _exit(2);
10169 if (!child) {
10170 arg = getpid();
10171 write(-1, "", 0);
10172 _exit (arg);
10178 main ()
10180 pid_t parent = getpid ();
10181 pid_t child;
10183 sparc_address_test (0);
10185 child = vfork ();
10187 if (child == 0) {
10188 /* Here is another test for sparc vfork register problems. This
10189 test uses lots of local variables, at least as many local
10190 variables as main has allocated so far including compiler
10191 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10192 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10193 reuse the register of parent for one of the local variables,
10194 since it will think that parent can't possibly be used any more
10195 in this routine. Assigning to the local variable will thus
10196 munge parent in the parent process. */
10197 pid_t
10198 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10199 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10200 /* Convince the compiler that p..p7 are live; otherwise, it might
10201 use the same hardware register for all 8 local variables. */
10202 if (p != p1 || p != p2 || p != p3 || p != p4
10203 || p != p5 || p != p6 || p != p7)
10204 _exit(1);
10206 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10207 from child file descriptors. If the child closes a descriptor
10208 before it execs or exits, this munges the parent's descriptor
10209 as well. Test for this by closing stdout in the child. */
10210 _exit(close(fileno(stdout)) != 0);
10211 } else {
10212 int status;
10213 struct stat st;
10215 while (wait(&status) != child)
10217 return (
10218 /* Was there some problem with vforking? */
10219 child < 0
10221 /* Did the child fail? (This shouldn't happen.) */
10222 || status
10224 /* Did the vfork/compiler bug occur? */
10225 || parent != getpid()
10227 /* Did the file descriptor bug occur? */
10228 || fstat(fileno(stdout), &st) != 0
10232 _ACEOF
10233 if ac_fn_c_try_run "$LINENO"; then :
10234 ac_cv_func_vfork_works=yes
10235 else
10236 ac_cv_func_vfork_works=no
10238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10239 conftest.$ac_objext conftest.beam conftest.$ac_ext
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10244 $as_echo "$ac_cv_func_vfork_works" >&6; }
10247 if test "x$ac_cv_func_fork_works" = xcross; then
10248 ac_cv_func_vfork_works=$ac_cv_func_vfork
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10250 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10253 if test "x$ac_cv_func_vfork_works" = xyes; then
10255 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10257 else
10259 $as_echo "#define vfork fork" >>confdefs.h
10262 if test "x$ac_cv_func_fork_works" = xyes; then
10264 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10269 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10270 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 rm -f conftest.sym conftest.file
10274 echo >conftest.file
10275 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10276 if test "$cross_compiling" = yes; then :
10277 ac_cv_func_lstat_dereferences_slashed_symlink=no
10278 else
10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 $ac_includes_default
10283 main ()
10285 struct stat sbuf;
10286 /* Linux will dereference the symlink and fail, as required by POSIX.
10287 That is better in the sense that it means we will not
10288 have to compile and use the lstat wrapper. */
10289 return lstat ("conftest.sym/", &sbuf) == 0;
10291 return 0;
10293 _ACEOF
10294 if ac_fn_c_try_run "$LINENO"; then :
10295 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10296 else
10297 ac_cv_func_lstat_dereferences_slashed_symlink=no
10299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10300 conftest.$ac_objext conftest.beam conftest.$ac_ext
10303 else
10304 # If the `ln -s' command failed, then we probably don't even
10305 # have an lstat function.
10306 ac_cv_func_lstat_dereferences_slashed_symlink=no
10308 rm -f conftest.sym conftest.file
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10312 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10314 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10316 cat >>confdefs.h <<_ACEOF
10317 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10318 _ACEOF
10321 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10322 case " $LIBOBJS " in
10323 *" lstat.$ac_objext "* ) ;;
10324 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10326 esac
10330 if test x$SYS != xwin32; then :
10332 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
10333 # -lseq on Dynix/PTX, -lgen on Unixware.
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
10335 $as_echo_n "checking for library containing getmntent... " >&6; }
10336 if test "${ac_cv_search_getmntent+set}" = set; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 ac_func_search_save_LIBS=$LIBS
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10343 /* Override any GCC internal prototype to avoid an error.
10344 Use char because int might match the return type of a GCC
10345 builtin and then its argument prototype would still apply. */
10346 #ifdef __cplusplus
10347 extern "C"
10348 #endif
10349 char getmntent ();
10351 main ()
10353 return getmntent ();
10355 return 0;
10357 _ACEOF
10358 for ac_lib in '' sun seq gen; do
10359 if test -z "$ac_lib"; then
10360 ac_res="none required"
10361 else
10362 ac_res=-l$ac_lib
10363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10365 if ac_fn_c_try_link "$LINENO"; then :
10366 ac_cv_search_getmntent=$ac_res
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext
10370 if test "${ac_cv_search_getmntent+set}" = set; then :
10371 break
10373 done
10374 if test "${ac_cv_search_getmntent+set}" = set; then :
10376 else
10377 ac_cv_search_getmntent=no
10379 rm conftest.$ac_ext
10380 LIBS=$ac_func_search_save_LIBS
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10383 $as_echo "$ac_cv_search_getmntent" >&6; }
10384 ac_res=$ac_cv_search_getmntent
10385 if test "$ac_res" != no; then :
10386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10387 ac_cv_func_getmntent=yes
10389 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
10391 else
10392 ac_cv_func_getmntent=no
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
10397 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
10398 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
10399 $as_echo_n "(cached) " >&6
10400 else
10401 if test "$cross_compiling" = yes; then :
10402 ac_cv_func_lstat_empty_string_bug=yes
10403 else
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406 $ac_includes_default
10408 main ()
10410 struct stat sbuf;
10411 return lstat ("", &sbuf) == 0;
10413 return 0;
10415 _ACEOF
10416 if ac_fn_c_try_run "$LINENO"; then :
10417 ac_cv_func_lstat_empty_string_bug=no
10418 else
10419 ac_cv_func_lstat_empty_string_bug=yes
10421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10422 conftest.$ac_objext conftest.beam conftest.$ac_ext
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
10427 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
10428 if test $ac_cv_func_lstat_empty_string_bug = yes; then
10429 case " $LIBOBJS " in
10430 *" lstat.$ac_objext "* ) ;;
10431 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10433 esac
10436 cat >>confdefs.h <<_ACEOF
10437 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
10438 _ACEOF
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10443 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10444 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10445 $as_echo_n "(cached) " >&6
10446 else
10447 rm -f conftest.sym conftest.file
10448 echo >conftest.file
10449 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
10450 if test "$cross_compiling" = yes; then :
10451 ac_cv_func_lstat_dereferences_slashed_symlink=no
10452 else
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 $ac_includes_default
10457 main ()
10459 struct stat sbuf;
10460 /* Linux will dereference the symlink and fail, as required by POSIX.
10461 That is better in the sense that it means we will not
10462 have to compile and use the lstat wrapper. */
10463 return lstat ("conftest.sym/", &sbuf) == 0;
10465 return 0;
10467 _ACEOF
10468 if ac_fn_c_try_run "$LINENO"; then :
10469 ac_cv_func_lstat_dereferences_slashed_symlink=yes
10470 else
10471 ac_cv_func_lstat_dereferences_slashed_symlink=no
10473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10474 conftest.$ac_objext conftest.beam conftest.$ac_ext
10477 else
10478 # If the `ln -s' command failed, then we probably don't even
10479 # have an lstat function.
10480 ac_cv_func_lstat_dereferences_slashed_symlink=no
10482 rm -f conftest.sym conftest.file
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
10486 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10488 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
10490 cat >>confdefs.h <<_ACEOF
10491 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10492 _ACEOF
10495 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
10496 case " $LIBOBJS " in
10497 *" lstat.$ac_objext "* ) ;;
10498 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
10500 esac
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
10507 $as_echo_n "checking for working memcmp... " >&6; }
10508 if test "${ac_cv_func_memcmp_working+set}" = set; then :
10509 $as_echo_n "(cached) " >&6
10510 else
10511 if test "$cross_compiling" = yes; then :
10512 ac_cv_func_memcmp_working=no
10513 else
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10516 $ac_includes_default
10518 main ()
10521 /* Some versions of memcmp are not 8-bit clean. */
10522 char c0 = '\100', c1 = '\200', c2 = '\201';
10523 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10524 return 1;
10526 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10527 or more and with at least one buffer not starting on a 4-byte boundary.
10528 William Lewis provided this test program. */
10530 char foo[21];
10531 char bar[21];
10532 int i;
10533 for (i = 0; i < 4; i++)
10535 char *a = foo + i;
10536 char *b = bar + i;
10537 strcpy (a, "--------01111111");
10538 strcpy (b, "--------10000000");
10539 if (memcmp (a, b, 16) >= 0)
10540 return 1;
10542 return 0;
10546 return 0;
10548 _ACEOF
10549 if ac_fn_c_try_run "$LINENO"; then :
10550 ac_cv_func_memcmp_working=yes
10551 else
10552 ac_cv_func_memcmp_working=no
10554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10555 conftest.$ac_objext conftest.beam conftest.$ac_ext
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
10560 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10561 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10562 *" memcmp.$ac_objext "* ) ;;
10563 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10565 esac
10568 for ac_header in sys/select.h sys/socket.h
10569 do :
10570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10571 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10572 eval as_val=\$$as_ac_Header
10573 if test "x$as_val" = x""yes; then :
10574 cat >>confdefs.h <<_ACEOF
10575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10576 _ACEOF
10580 done
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10583 $as_echo_n "checking types of arguments for select... " >&6; }
10584 if test "${ac_cv_func_select_args+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10588 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10589 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592 $ac_includes_default
10593 #ifdef HAVE_SYS_SELECT_H
10594 # include <sys/select.h>
10595 #endif
10596 #ifdef HAVE_SYS_SOCKET_H
10597 # include <sys/socket.h>
10598 #endif
10601 main ()
10603 extern int select ($ac_arg1,
10604 $ac_arg234, $ac_arg234, $ac_arg234,
10605 $ac_arg5);
10607 return 0;
10609 _ACEOF
10610 if ac_fn_c_try_compile "$LINENO"; then :
10611 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614 done
10615 done
10616 done
10617 # Provide a safe default value.
10618 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10622 $as_echo "$ac_cv_func_select_args" >&6; }
10623 ac_save_IFS=$IFS; IFS=','
10624 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10625 IFS=$ac_save_IFS
10626 shift
10628 cat >>confdefs.h <<_ACEOF
10629 #define SELECT_TYPE_ARG1 $1
10630 _ACEOF
10633 cat >>confdefs.h <<_ACEOF
10634 #define SELECT_TYPE_ARG234 ($2)
10635 _ACEOF
10638 cat >>confdefs.h <<_ACEOF
10639 #define SELECT_TYPE_ARG5 ($3)
10640 _ACEOF
10642 rm -f conftest*
10644 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 ac_cv_func_setvbuf_reversed=no
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10652 $as_echo_n "checking return type of signal handlers... " >&6; }
10653 if test "${ac_cv_type_signal+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658 #include <sys/types.h>
10659 #include <signal.h>
10662 main ()
10664 return *(signal (0, 0)) (0) == 1;
10666 return 0;
10668 _ACEOF
10669 if ac_fn_c_try_compile "$LINENO"; then :
10670 ac_cv_type_signal=int
10671 else
10672 ac_cv_type_signal=void
10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10677 $as_echo "$ac_cv_type_signal" >&6; }
10679 cat >>confdefs.h <<_ACEOF
10680 #define RETSIGTYPE $ac_cv_type_signal
10681 _ACEOF
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
10685 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
10686 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 if test "$cross_compiling" = yes; then :
10690 ac_cv_func_stat_empty_string_bug=yes
10691 else
10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10694 $ac_includes_default
10696 main ()
10698 struct stat sbuf;
10699 return stat ("", &sbuf) == 0;
10701 return 0;
10703 _ACEOF
10704 if ac_fn_c_try_run "$LINENO"; then :
10705 ac_cv_func_stat_empty_string_bug=no
10706 else
10707 ac_cv_func_stat_empty_string_bug=yes
10709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10710 conftest.$ac_objext conftest.beam conftest.$ac_ext
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
10715 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
10716 if test $ac_cv_func_stat_empty_string_bug = yes; then
10717 case " $LIBOBJS " in
10718 *" stat.$ac_objext "* ) ;;
10719 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10721 esac
10724 cat >>confdefs.h <<_ACEOF
10725 #define HAVE_STAT_EMPTY_STRING_BUG 1
10726 _ACEOF
10730 for ac_func in strftime
10731 do :
10732 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
10733 if test "x$ac_cv_func_strftime" = x""yes; then :
10734 cat >>confdefs.h <<_ACEOF
10735 #define HAVE_STRFTIME 1
10736 _ACEOF
10738 else
10739 # strftime is in -lintl on SCO UNIX.
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
10741 $as_echo_n "checking for strftime in -lintl... " >&6; }
10742 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-lintl $LIBS"
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10750 /* Override any GCC internal prototype to avoid an error.
10751 Use char because int might match the return type of a GCC
10752 builtin and then its argument prototype would still apply. */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 char strftime ();
10758 main ()
10760 return strftime ();
10762 return 0;
10764 _ACEOF
10765 if ac_fn_c_try_link "$LINENO"; then :
10766 ac_cv_lib_intl_strftime=yes
10767 else
10768 ac_cv_lib_intl_strftime=no
10770 rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
10775 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
10776 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
10777 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
10779 LIBS="-lintl $LIBS"
10783 done
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
10786 $as_echo_n "checking for working strtod... " >&6; }
10787 if test "${ac_cv_func_strtod+set}" = set; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 if test "$cross_compiling" = yes; then :
10791 ac_cv_func_strtod=no
10792 else
10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10796 $ac_includes_default
10797 #ifndef strtod
10798 double strtod ();
10799 #endif
10801 main()
10804 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10805 char *string = " +69";
10806 char *term;
10807 double value;
10808 value = strtod (string, &term);
10809 if (value != 69 || term != (string + 4))
10810 return 1;
10814 /* Under Solaris 2.4, strtod returns the wrong value for the
10815 terminating character under some conditions. */
10816 char *string = "NaN";
10817 char *term;
10818 strtod (string, &term);
10819 if (term != string && *(term - 1) == 0)
10820 return 1;
10822 return 0;
10825 _ACEOF
10826 if ac_fn_c_try_run "$LINENO"; then :
10827 ac_cv_func_strtod=yes
10828 else
10829 ac_cv_func_strtod=no
10831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10832 conftest.$ac_objext conftest.beam conftest.$ac_ext
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
10837 $as_echo "$ac_cv_func_strtod" >&6; }
10838 if test $ac_cv_func_strtod = no; then
10839 case " $LIBOBJS " in
10840 *" strtod.$ac_objext "* ) ;;
10841 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10843 esac
10845 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
10846 if test "x$ac_cv_func_pow" = x""yes; then :
10850 if test $ac_cv_func_pow = no; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
10852 $as_echo_n "checking for pow in -lm... " >&6; }
10853 if test "${ac_cv_lib_m_pow+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
10855 else
10856 ac_check_lib_save_LIBS=$LIBS
10857 LIBS="-lm $LIBS"
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10861 /* Override any GCC internal prototype to avoid an error.
10862 Use char because int might match the return type of a GCC
10863 builtin and then its argument prototype would still apply. */
10864 #ifdef __cplusplus
10865 extern "C"
10866 #endif
10867 char pow ();
10869 main ()
10871 return pow ();
10873 return 0;
10875 _ACEOF
10876 if ac_fn_c_try_link "$LINENO"; then :
10877 ac_cv_lib_m_pow=yes
10878 else
10879 ac_cv_lib_m_pow=no
10881 rm -f core conftest.err conftest.$ac_objext \
10882 conftest$ac_exeext conftest.$ac_ext
10883 LIBS=$ac_check_lib_save_LIBS
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
10886 $as_echo "$ac_cv_lib_m_pow" >&6; }
10887 if test "x$ac_cv_lib_m_pow" = x""yes; then :
10888 POW_LIB=-lm
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
10891 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
10898 for ac_func in vprintf
10899 do :
10900 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10901 if test "x$ac_cv_func_vprintf" = x""yes; then :
10902 cat >>confdefs.h <<_ACEOF
10903 #define HAVE_VPRINTF 1
10904 _ACEOF
10906 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10907 if test "x$ac_cv_func__doprnt" = x""yes; then :
10909 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10914 done
10917 if test $cross_compiling = yes -a $gnumalloc = yes; then :
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10920 configure cannot check whether malloc() and realloc() are GNU libc
10921 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10922 run configure with the --without-gnu-malloc switch." >&5
10923 $as_echo "$as_me: WARNING:
10924 configure cannot check whether malloc() and realloc() are GNU libc
10925 compatible. You have to be ABSOLUTELY sure that they are, otherwise
10926 run configure with the --without-gnu-malloc switch." >&2;}
10927 _mule_warning_8=yes
10928 _mule_has_warnings=yes
10930 ac_cv_func_malloc_0_nonnull=yes
10931 ac_cv_func_realloc_0_nonnull=yes
10934 for ac_header in stdlib.h
10935 do :
10936 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10937 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10938 cat >>confdefs.h <<_ACEOF
10939 #define HAVE_STDLIB_H 1
10940 _ACEOF
10944 done
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10947 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10948 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 if test "$cross_compiling" = yes; then :
10952 ac_cv_func_malloc_0_nonnull=no
10953 else
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10956 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10957 # include <stdlib.h>
10958 #else
10959 char *malloc ();
10960 #endif
10963 main ()
10965 return ! malloc (0);
10967 return 0;
10969 _ACEOF
10970 if ac_fn_c_try_run "$LINENO"; then :
10971 ac_cv_func_malloc_0_nonnull=yes
10972 else
10973 ac_cv_func_malloc_0_nonnull=no
10975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10976 conftest.$ac_objext conftest.beam conftest.$ac_ext
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10981 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10982 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10984 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
10986 else
10987 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
10989 case " $LIBOBJS " in
10990 *" malloc.$ac_objext "* ) ;;
10991 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
10993 esac
10996 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11001 for ac_header in stdlib.h
11002 do :
11003 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11004 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11005 cat >>confdefs.h <<_ACEOF
11006 #define HAVE_STDLIB_H 1
11007 _ACEOF
11011 done
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
11014 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
11015 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 if test "$cross_compiling" = yes; then :
11019 ac_cv_func_realloc_0_nonnull=no
11020 else
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11023 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11024 # include <stdlib.h>
11025 #else
11026 char *realloc ();
11027 #endif
11030 main ()
11032 return ! realloc (0, 0);
11034 return 0;
11036 _ACEOF
11037 if ac_fn_c_try_run "$LINENO"; then :
11038 ac_cv_func_realloc_0_nonnull=yes
11039 else
11040 ac_cv_func_realloc_0_nonnull=no
11042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11043 conftest.$ac_objext conftest.beam conftest.$ac_ext
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
11048 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
11049 if test $ac_cv_func_realloc_0_nonnull = yes; then :
11051 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
11053 else
11054 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
11056 case " $LIBOBJS " in
11057 *" realloc.$ac_objext "* ) ;;
11058 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
11060 esac
11063 $as_echo "#define realloc rpl_realloc" >>confdefs.h
11068 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 poll
11069 do :
11070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11071 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11072 eval as_val=\$$as_ac_var
11073 if test "x$as_val" = x""yes; then :
11074 cat >>confdefs.h <<_ACEOF
11075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11076 _ACEOF
11079 done
11081 #-------------------------------------------------------------------------------
11082 # End of autoscan stuff
11083 #-------------------------------------------------------------------------------
11085 for ac_func in mkdir getrlimit setrlimit getopt_long
11086 do :
11087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11088 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11089 eval as_val=\$$as_ac_var
11090 if test "x$as_val" = x""yes; then :
11091 cat >>confdefs.h <<_ACEOF
11092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11093 _ACEOF
11096 done
11102 for ac_header in $ac_header_list
11103 do :
11104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11105 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11107 eval as_val=\$$as_ac_Header
11108 if test "x$as_val" = x""yes; then :
11109 cat >>confdefs.h <<_ACEOF
11110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11111 _ACEOF
11115 done
11123 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11125 # Check whether --enable-mmap was given.
11126 if test "${enable_mmap+set}" = set; then :
11127 enableval=$enable_mmap;
11132 if test ${enable_mmap:-no} = yes; then :
11134 for ac_header in sys/mman.h
11135 do :
11136 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11137 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11138 cat >>confdefs.h <<_ACEOF
11139 #define HAVE_SYS_MMAN_H 1
11140 _ACEOF
11144 done
11147 for ac_func in getpagesize
11148 do :
11149 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11150 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11151 cat >>confdefs.h <<_ACEOF
11152 #define HAVE_GETPAGESIZE 1
11153 _ACEOF
11156 done
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11159 $as_echo_n "checking for working mmap... " >&6; }
11160 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11161 $as_echo_n "(cached) " >&6
11162 else
11163 if test "$cross_compiling" = yes; then :
11164 ac_cv_func_mmap_fixed_mapped=no
11165 else
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11168 $ac_includes_default
11169 /* malloc might have been renamed as rpl_malloc. */
11170 #undef malloc
11172 /* Thanks to Mike Haertel and Jim Avera for this test.
11173 Here is a matrix of mmap possibilities:
11174 mmap private not fixed
11175 mmap private fixed at somewhere currently unmapped
11176 mmap private fixed at somewhere already mapped
11177 mmap shared not fixed
11178 mmap shared fixed at somewhere currently unmapped
11179 mmap shared fixed at somewhere already mapped
11180 For private mappings, we should verify that changes cannot be read()
11181 back from the file, nor mmap's back from the file at a different
11182 address. (There have been systems where private was not correctly
11183 implemented like the infamous i386 svr4.0, and systems where the
11184 VM page cache was not coherent with the file system buffer cache
11185 like early versions of FreeBSD and possibly contemporary NetBSD.)
11186 For shared mappings, we should conversely verify that changes get
11187 propagated back to all the places they're supposed to be.
11189 Grep wants private fixed already mapped.
11190 The main things grep needs to know about mmap are:
11191 * does it exist and is it safe to write into the mmap'd area
11192 * how to use it (BSD variants) */
11194 #include <fcntl.h>
11195 #include <sys/mman.h>
11197 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11198 char *malloc ();
11199 #endif
11201 /* This mess was copied from the GNU getpagesize.h. */
11202 #ifndef HAVE_GETPAGESIZE
11203 # ifdef _SC_PAGESIZE
11204 # define getpagesize() sysconf(_SC_PAGESIZE)
11205 # else /* no _SC_PAGESIZE */
11206 # ifdef HAVE_SYS_PARAM_H
11207 # include <sys/param.h>
11208 # ifdef EXEC_PAGESIZE
11209 # define getpagesize() EXEC_PAGESIZE
11210 # else /* no EXEC_PAGESIZE */
11211 # ifdef NBPG
11212 # define getpagesize() NBPG * CLSIZE
11213 # ifndef CLSIZE
11214 # define CLSIZE 1
11215 # endif /* no CLSIZE */
11216 # else /* no NBPG */
11217 # ifdef NBPC
11218 # define getpagesize() NBPC
11219 # else /* no NBPC */
11220 # ifdef PAGESIZE
11221 # define getpagesize() PAGESIZE
11222 # endif /* PAGESIZE */
11223 # endif /* no NBPC */
11224 # endif /* no NBPG */
11225 # endif /* no EXEC_PAGESIZE */
11226 # else /* no HAVE_SYS_PARAM_H */
11227 # define getpagesize() 8192 /* punt totally */
11228 # endif /* no HAVE_SYS_PARAM_H */
11229 # endif /* no _SC_PAGESIZE */
11231 #endif /* no HAVE_GETPAGESIZE */
11234 main ()
11236 char *data, *data2, *data3;
11237 int i, pagesize;
11238 int fd, fd2;
11240 pagesize = getpagesize ();
11242 /* First, make a file with some known garbage in it. */
11243 data = (char *) malloc (pagesize);
11244 if (!data)
11245 return 1;
11246 for (i = 0; i < pagesize; ++i)
11247 *(data + i) = rand ();
11248 umask (0);
11249 fd = creat ("conftest.mmap", 0600);
11250 if (fd < 0)
11251 return 2;
11252 if (write (fd, data, pagesize) != pagesize)
11253 return 3;
11254 close (fd);
11256 /* Next, check that the tail of a page is zero-filled. File must have
11257 non-zero length, otherwise we risk SIGBUS for entire page. */
11258 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11259 if (fd2 < 0)
11260 return 4;
11261 data2 = "";
11262 if (write (fd2, data2, 1) != 1)
11263 return 5;
11264 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11265 if (data2 == MAP_FAILED)
11266 return 6;
11267 for (i = 0; i < pagesize; ++i)
11268 if (*(data2 + i))
11269 return 7;
11270 close (fd2);
11271 if (munmap (data2, pagesize))
11272 return 8;
11274 /* Next, try to mmap the file at a fixed address which already has
11275 something else allocated at it. If we can, also make sure that
11276 we see the same garbage. */
11277 fd = open ("conftest.mmap", O_RDWR);
11278 if (fd < 0)
11279 return 9;
11280 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11281 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11282 return 10;
11283 for (i = 0; i < pagesize; ++i)
11284 if (*(data + i) != *(data2 + i))
11285 return 11;
11287 /* Finally, make sure that changes to the mapped area do not
11288 percolate back to the file as seen by read(). (This is a bug on
11289 some variants of i386 svr4.0.) */
11290 for (i = 0; i < pagesize; ++i)
11291 *(data2 + i) = *(data2 + i) + 1;
11292 data3 = (char *) malloc (pagesize);
11293 if (!data3)
11294 return 12;
11295 if (read (fd, data3, pagesize) != pagesize)
11296 return 13;
11297 for (i = 0; i < pagesize; ++i)
11298 if (*(data + i) != *(data3 + i))
11299 return 14;
11300 close (fd);
11301 return 0;
11303 _ACEOF
11304 if ac_fn_c_try_run "$LINENO"; then :
11305 ac_cv_func_mmap_fixed_mapped=yes
11306 else
11307 ac_cv_func_mmap_fixed_mapped=no
11309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11310 conftest.$ac_objext conftest.beam conftest.$ac_ext
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11315 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11316 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11318 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11321 rm -f conftest.mmap conftest.txt
11323 for ac_func in munmap sysconf
11324 do :
11325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11327 eval as_val=\$$as_ac_var
11328 if test "x$as_val" = x""yes; then :
11329 cat >>confdefs.h <<_ACEOF
11330 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11331 _ACEOF
11334 done
11336 if test $ac_cv_func_sysconf = yes; then :
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pagesize constant for sysconf" >&5
11339 $as_echo_n "checking for pagesize constant for sysconf... " >&6; }
11340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341 /* end confdefs.h. */
11344 #include <unistd.h>
11347 main ()
11350 return sysconf(_SC_PAGESIZE);
11353 return 0;
11356 _ACEOF
11357 if ac_fn_c_try_link "$LINENO"; then :
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGESIZE" >&5
11360 $as_echo "_SC_PAGESIZE" >&6; }
11362 $as_echo "#define HAVE__SC_PAGESIZE 1" >>confdefs.h
11365 else
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11371 #include <unistd.h>
11374 main ()
11377 return sysconf(_SC_PAGE_SIZE);
11380 return 0;
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: _SC_PAGE_SIZE" >&5
11387 $as_echo "_SC_PAGE_SIZE" >&6; }
11389 $as_echo "#define HAVE__SC_PAGE_SIZE 1" >>confdefs.h
11392 else
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11395 $as_echo "none" >&6; }
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11407 else
11409 # fake the result of the test for munmap() for the gettext macros
11410 ac_cv_func_munmap=no
11416 mule_backup_CPPFLAGS="$CPPFLAGS"
11417 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
11418 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
11419 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then :
11420 ac_have_decl=1
11421 else
11422 ac_have_decl=0
11425 cat >>confdefs.h <<_ACEOF
11426 #define HAVE_DECL_STRERROR_R $ac_have_decl
11427 _ACEOF
11429 for ac_func in strerror_r
11430 do :
11431 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11432 if test "x$ac_cv_func_strerror_r" = x""yes; then :
11433 cat >>confdefs.h <<_ACEOF
11434 #define HAVE_STRERROR_R 1
11435 _ACEOF
11438 done
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
11441 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
11442 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11446 ac_cv_func_strerror_r_char_p=no
11447 if test $ac_cv_have_decl_strerror_r = yes; then
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11450 $ac_includes_default
11452 main ()
11455 char buf[100];
11456 char x = *strerror_r (0, buf, sizeof buf);
11457 char *p = strerror_r (0, buf, sizeof buf);
11458 return !p || x;
11461 return 0;
11463 _ACEOF
11464 if ac_fn_c_try_compile "$LINENO"; then :
11465 ac_cv_func_strerror_r_char_p=yes
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 else
11469 # strerror_r is not declared. Choose between
11470 # systems that have relatively inaccessible declarations for the
11471 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11472 # former has a strerror_r that returns char*, while the latter
11473 # has a strerror_r that returns `int'.
11474 # This test should segfault on the DEC system.
11475 if test "$cross_compiling" = yes; then :
11477 else
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11480 $ac_includes_default
11481 extern char *strerror_r ();
11483 main ()
11485 char buf[100];
11486 char x = *strerror_r (0, buf, sizeof buf);
11487 return ! isalpha (x);
11489 return 0;
11491 _ACEOF
11492 if ac_fn_c_try_run "$LINENO"; then :
11493 ac_cv_func_strerror_r_char_p=yes
11495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11496 conftest.$ac_objext conftest.beam conftest.$ac_ext
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
11503 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
11504 if test $ac_cv_func_strerror_r_char_p = yes; then
11506 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
11510 CPPFLAGS="$mule_backup_CPPFLAGS"
11512 # Look for a way to preallocate disk space for files.
11513 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes ; then :
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
11516 $as_echo_n "checking for fallocate... " >&6; }
11517 mule_backup_CPPFLAGS="$CPPFLAGS"
11518 CPPFLAGS="$CPPFLAGS $WX_CPPFLAGS"
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11523 #define _GNU_SOURCE
11524 #ifdef HAVE_FCNTL_H
11525 # include <fcntl.h>
11526 #endif
11527 #include <linux/falloc.h>
11530 main ()
11533 fallocate(0, 0, 0, 0);
11536 return 0;
11539 _ACEOF
11540 if ac_fn_c_try_link "$LINENO"; then :
11543 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11546 $as_echo "yes" >&6; }
11548 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11554 rm -f core conftest.err conftest.$ac_objext \
11555 conftest$ac_exeext conftest.$ac_ext
11556 CPPFLAGS="$mule_backup_CPPFLAGS"
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
11560 $as_echo_n "checking for SYS_fallocate... " >&6; }
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11565 #include <sys/syscall.h>
11566 #include <sys/types.h>
11567 #include <unistd.h>
11570 main ()
11573 syscall(SYS_fallocate, 0, (loff_t)0, (loff_t)0);
11576 return 0;
11579 _ACEOF
11580 if ac_fn_c_try_link "$LINENO"; then :
11583 $as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11586 $as_echo "yes" >&6; }
11588 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate" >&5
11598 $as_echo_n "checking for posix_fallocate... " >&6; }
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11603 #define _XOPEN_SOURCE 600
11604 #include <stdlib.h>
11605 #ifdef HAVE_FCNTL_H
11606 # include <fcntl.h>
11607 #endif
11610 main ()
11613 posix_fallocate(0, 0, 0);
11616 return 0;
11619 _ACEOF
11620 if ac_fn_c_try_link "$LINENO"; then :
11623 $as_echo "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626 $as_echo "yes" >&6; }
11628 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11634 rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11639 # Checking Native Language Support
11642 MKINSTALLDIRS=
11643 if test -n "$ac_aux_dir"; then
11644 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11646 if test -z "$MKINSTALLDIRS"; then
11647 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11654 # Extract the first word of "msgfmt", so it can be a program name with args.
11655 set dummy msgfmt; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if test "${ac_cv_path_MSGFMT+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 case "$MSGFMT" in
11663 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11667 for ac_dir in $PATH; do
11668 test -z "$ac_dir" && ac_dir=.
11669 if test -f $ac_dir/$ac_word; then
11670 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11671 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11672 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
11673 break
11676 done
11677 IFS="$ac_save_ifs"
11678 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11680 esac
11682 MSGFMT="$ac_cv_path_MSGFMT"
11683 if test "$MSGFMT" != ":"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11685 $as_echo "$MSGFMT" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11691 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11692 set dummy gmsgfmt; ac_word=$2
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694 $as_echo_n "checking for $ac_word... " >&6; }
11695 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11697 else
11698 case $GMSGFMT in
11699 [\\/]* | ?:[\\/]*)
11700 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
11709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11710 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 break 2
11714 done
11715 done
11716 IFS=$as_save_IFS
11718 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11720 esac
11722 GMSGFMT=$ac_cv_path_GMSGFMT
11723 if test -n "$GMSGFMT"; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11725 $as_echo "$GMSGFMT" >&6; }
11726 else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728 $as_echo "no" >&6; }
11733 # Extract the first word of "xgettext", so it can be a program name with args.
11734 set dummy xgettext; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 case "$XGETTEXT" in
11742 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11746 for ac_dir in $PATH; do
11747 test -z "$ac_dir" && ac_dir=.
11748 if test -f $ac_dir/$ac_word; then
11749 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11750 (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
11751 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
11752 break
11755 done
11756 IFS="$ac_save_ifs"
11757 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11759 esac
11761 XGETTEXT="$ac_cv_path_XGETTEXT"
11762 if test "$XGETTEXT" != ":"; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11764 $as_echo "$XGETTEXT" >&6; }
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767 $as_echo "no" >&6; }
11770 rm -f messages.po
11772 # Extract the first word of "msgmerge", so it can be a program name with args.
11773 set dummy msgmerge; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11777 $as_echo_n "(cached) " >&6
11778 else
11779 case "$MSGMERGE" in
11781 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11785 for ac_dir in $PATH; do
11786 test -z "$ac_dir" && ac_dir=.
11787 if test -f $ac_dir/$ac_word; then
11788 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11789 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
11790 break
11793 done
11794 IFS="$ac_save_ifs"
11795 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11797 esac
11799 MSGMERGE="$ac_cv_path_MSGMERGE"
11800 if test "$MSGMERGE" != ":"; then
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11802 $as_echo "$MSGMERGE" >&6; }
11803 else
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11809 if test "$GMSGFMT" != ":"; then
11810 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11811 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11813 else
11814 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11816 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
11817 GMSGFMT=":"
11821 if test "$XGETTEXT" != ":"; then
11822 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
11823 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
11827 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
11828 XGETTEXT=":"
11830 rm -f messages.po
11833 ac_config_commands="$ac_config_commands default-1"
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
11838 $as_echo_n "checking for strerror in -lcposix... " >&6; }
11839 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 ac_check_lib_save_LIBS=$LIBS
11843 LIBS="-lcposix $LIBS"
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845 /* end confdefs.h. */
11847 /* Override any GCC internal prototype to avoid an error.
11848 Use char because int might match the return type of a GCC
11849 builtin and then its argument prototype would still apply. */
11850 #ifdef __cplusplus
11851 extern "C"
11852 #endif
11853 char strerror ();
11855 main ()
11857 return strerror ();
11859 return 0;
11861 _ACEOF
11862 if ac_fn_c_try_link "$LINENO"; then :
11863 ac_cv_lib_cposix_strerror=yes
11864 else
11865 ac_cv_lib_cposix_strerror=no
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
11872 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
11873 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
11874 LIBS="$LIBS -lcposix"
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11881 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11882 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 #include <features.h>
11889 #ifdef __GNU_LIBRARY__
11890 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11891 Lucky GNU user
11892 #endif
11893 #endif
11895 _ACEOF
11896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11897 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11898 ac_cv_gnu_library_2_1=yes
11899 else
11900 ac_cv_gnu_library_2_1=no
11902 rm -f conftest*
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11908 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11910 GLIBC21="$ac_cv_gnu_library_2_1"
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
11916 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
11917 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11919 else
11921 if test "$cross_compiling" = yes; then :
11923 # Guess based on the CPU.
11924 case "$host_cpu" in
11925 alpha* | i3456786 | m68k | s390*)
11926 gt_cv_int_divbyzero_sigfpe="guessing yes";;
11928 gt_cv_int_divbyzero_sigfpe="guessing no";;
11929 esac
11931 else
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11935 #include <stdlib.h>
11936 #include <signal.h>
11938 static void
11939 #ifdef __cplusplus
11940 sigfpe_handler (int sig)
11941 #else
11942 sigfpe_handler (sig) int sig;
11943 #endif
11945 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
11946 exit (sig != SIGFPE);
11949 int x = 1;
11950 int y = 0;
11951 int z;
11952 int nan;
11954 int main ()
11956 signal (SIGFPE, sigfpe_handler);
11957 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
11958 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
11959 signal (SIGTRAP, sigfpe_handler);
11960 #endif
11961 /* Linux/SPARC yields signal SIGILL. */
11962 #if defined (__sparc__) && defined (__linux__)
11963 signal (SIGILL, sigfpe_handler);
11964 #endif
11966 z = x / y;
11967 nan = y / y;
11968 exit (1);
11971 _ACEOF
11972 if ac_fn_c_try_run "$LINENO"; then :
11973 gt_cv_int_divbyzero_sigfpe=yes
11974 else
11975 gt_cv_int_divbyzero_sigfpe=no
11977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11978 conftest.$ac_objext conftest.beam conftest.$ac_ext
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
11984 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
11985 case "$gt_cv_int_divbyzero_sigfpe" in
11986 *yes) value=1;;
11987 *) value=0;;
11988 esac
11990 cat >>confdefs.h <<_ACEOF
11991 #define INTDIV0_RAISES_SIGFPE $value
11992 _ACEOF
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
11997 $as_echo_n "checking for inttypes.h... " >&6; }
11998 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12003 #include <sys/types.h>
12004 #include <inttypes.h>
12006 main ()
12008 uintmax_t i = (uintmax_t) -1;
12010 return 0;
12012 _ACEOF
12013 if ac_fn_c_try_compile "$LINENO"; then :
12014 jm_ac_cv_header_inttypes_h=yes
12015 else
12016 jm_ac_cv_header_inttypes_h=no
12018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
12021 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
12022 if test $jm_ac_cv_header_inttypes_h = yes; then
12024 cat >>confdefs.h <<_ACEOF
12025 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
12026 _ACEOF
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
12032 $as_echo_n "checking for stdint.h... " >&6; }
12033 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038 #include <sys/types.h>
12039 #include <stdint.h>
12041 main ()
12043 uintmax_t i = (uintmax_t) -1;
12045 return 0;
12047 _ACEOF
12048 if ac_fn_c_try_compile "$LINENO"; then :
12049 jm_ac_cv_header_stdint_h=yes
12050 else
12051 jm_ac_cv_header_stdint_h=no
12053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
12056 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
12057 if test $jm_ac_cv_header_stdint_h = yes; then
12059 cat >>confdefs.h <<_ACEOF
12060 #define HAVE_STDINT_H_WITH_UINTMAX 1
12061 _ACEOF
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
12067 $as_echo_n "checking for unsigned long long... " >&6; }
12068 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073 unsigned long long ull = 1; int i = 63;
12075 main ()
12077 unsigned long long ullmax = (unsigned long long) -1;
12078 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
12080 return 0;
12082 _ACEOF
12083 if ac_fn_c_try_link "$LINENO"; then :
12084 ac_cv_type_unsigned_long_long=yes
12085 else
12086 ac_cv_type_unsigned_long_long=no
12088 rm -f core conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
12092 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
12093 if test $ac_cv_type_unsigned_long_long = yes; then
12095 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
12102 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
12104 test $ac_cv_type_unsigned_long_long = yes \
12105 && ac_type='unsigned long long' \
12106 || ac_type='unsigned long'
12108 cat >>confdefs.h <<_ACEOF
12109 #define uintmax_t $ac_type
12110 _ACEOF
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
12116 $as_echo_n "checking for inttypes.h... " >&6; }
12117 if test "${gt_cv_header_inttypes_h+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123 #include <sys/types.h>
12124 #include <inttypes.h>
12126 main ()
12130 return 0;
12132 _ACEOF
12133 if ac_fn_c_try_compile "$LINENO"; then :
12134 gt_cv_header_inttypes_h=yes
12135 else
12136 gt_cv_header_inttypes_h=no
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
12142 $as_echo "$gt_cv_header_inttypes_h" >&6; }
12143 if test $gt_cv_header_inttypes_h = yes; then
12145 cat >>confdefs.h <<_ACEOF
12146 #define HAVE_INTTYPES_H 1
12147 _ACEOF
12153 if test $gt_cv_header_inttypes_h = yes; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
12155 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
12156 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12162 #include <inttypes.h>
12163 #ifdef PRId32
12164 char *p = PRId32;
12165 #endif
12168 main ()
12172 return 0;
12174 _ACEOF
12175 if ac_fn_c_try_compile "$LINENO"; then :
12176 gt_cv_inttypes_pri_broken=no
12177 else
12178 gt_cv_inttypes_pri_broken=yes
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
12184 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
12186 if test "$gt_cv_inttypes_pri_broken" = yes; then
12188 cat >>confdefs.h <<_ACEOF
12189 #define PRI_MACROS_BROKEN 1
12190 _ACEOF
12195 if test "X$prefix" = "XNONE"; then
12196 acl_final_prefix="$ac_default_prefix"
12197 else
12198 acl_final_prefix="$prefix"
12200 if test "X$exec_prefix" = "XNONE"; then
12201 acl_final_exec_prefix='${prefix}'
12202 else
12203 acl_final_exec_prefix="$exec_prefix"
12205 acl_save_prefix="$prefix"
12206 prefix="$acl_final_prefix"
12207 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12208 prefix="$acl_save_prefix"
12211 # Check whether --with-gnu-ld was given.
12212 if test "${with_gnu_ld+set}" = set; then :
12213 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12214 else
12215 with_gnu_ld=no
12218 ac_prog=ld
12219 if test "$GCC" = yes; then
12220 # Check if gcc -print-prog-name=ld gives a path.
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12222 $as_echo_n "checking for ld used by GCC... " >&6; }
12223 case $host in
12224 *-*-mingw*)
12225 # gcc leaves a trailing carriage return which upsets mingw
12226 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12228 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12229 esac
12230 case $ac_prog in
12231 # Accept absolute paths.
12232 [\\/]* | [A-Za-z]:[\\/]*)
12233 re_direlt='/[^/][^/]*/\.\./'
12234 # Canonicalize the path of ld
12235 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12236 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12237 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12238 done
12239 test -z "$LD" && LD="$ac_prog"
12242 # If it fails, then pretend we aren't using GCC.
12243 ac_prog=ld
12246 # If it is relative, then search for the first ld in PATH.
12247 with_gnu_ld=unknown
12249 esac
12250 elif test "$with_gnu_ld" = yes; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12252 $as_echo_n "checking for GNU ld... " >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12255 $as_echo_n "checking for non-GNU ld... " >&6; }
12257 if test "${acl_cv_path_LD+set}" = set; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 if test -z "$LD"; then
12261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12262 for ac_dir in $PATH; do
12263 test -z "$ac_dir" && ac_dir=.
12264 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12265 acl_cv_path_LD="$ac_dir/$ac_prog"
12266 # Check to see if the program is GNU ld. I'd rather use --version,
12267 # but apparently some GNU ld's only accept -v.
12268 # Break only if it was the GNU/non-GNU ld that we prefer.
12269 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
12270 test "$with_gnu_ld" != no && break
12271 else
12272 test "$with_gnu_ld" != yes && break
12275 done
12276 IFS="$ac_save_ifs"
12277 else
12278 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12282 LD="$acl_cv_path_LD"
12283 if test -n "$LD"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12285 $as_echo "$LD" >&6; }
12286 else
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12290 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12292 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12293 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12297 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12298 acl_cv_prog_gnu_ld=yes
12299 else
12300 acl_cv_prog_gnu_ld=no
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12304 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12305 with_gnu_ld=$acl_cv_prog_gnu_ld
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12310 $as_echo_n "checking for shared library run path origin... " >&6; }
12311 if test "${acl_cv_rpath+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12315 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12316 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12317 . ./conftest.sh
12318 rm -f ./conftest.sh
12319 acl_cv_rpath=done
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12323 $as_echo "$acl_cv_rpath" >&6; }
12324 wl="$acl_cv_wl"
12325 libext="$acl_cv_libext"
12326 shlibext="$acl_cv_shlibext"
12327 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12328 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12329 hardcode_direct="$acl_cv_hardcode_direct"
12330 hardcode_minus_L="$acl_cv_hardcode_minus_L"
12331 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
12332 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
12333 # Check whether --enable-rpath was given.
12334 if test "${enable_rpath+set}" = set; then :
12335 enableval=$enable_rpath; :
12336 else
12337 enable_rpath=yes
12347 use_additional=yes
12349 acl_save_prefix="$prefix"
12350 prefix="$acl_final_prefix"
12351 acl_save_exec_prefix="$exec_prefix"
12352 exec_prefix="$acl_final_exec_prefix"
12354 eval additional_includedir=\"$includedir\"
12355 eval additional_libdir=\"$libdir\"
12357 exec_prefix="$acl_save_exec_prefix"
12358 prefix="$acl_save_prefix"
12361 # Check whether --with-libiconv-prefix was given.
12362 if test "${with_libiconv_prefix+set}" = set; then :
12363 withval=$with_libiconv_prefix;
12364 if test "X$withval" = "Xno"; then
12365 use_additional=no
12366 else
12367 if test "X$withval" = "X"; then
12369 acl_save_prefix="$prefix"
12370 prefix="$acl_final_prefix"
12371 acl_save_exec_prefix="$exec_prefix"
12372 exec_prefix="$acl_final_exec_prefix"
12374 eval additional_includedir=\"$includedir\"
12375 eval additional_libdir=\"$libdir\"
12377 exec_prefix="$acl_save_exec_prefix"
12378 prefix="$acl_save_prefix"
12380 else
12381 additional_includedir="$withval/include"
12382 additional_libdir="$withval/lib"
12388 LIBICONV=
12389 LTLIBICONV=
12390 INCICONV=
12391 rpathdirs=
12392 ltrpathdirs=
12393 names_already_handled=
12394 names_next_round='iconv '
12395 while test -n "$names_next_round"; do
12396 names_this_round="$names_next_round"
12397 names_next_round=
12398 for name in $names_this_round; do
12399 already_handled=
12400 for n in $names_already_handled; do
12401 if test "$n" = "$name"; then
12402 already_handled=yes
12403 break
12405 done
12406 if test -z "$already_handled"; then
12407 names_already_handled="$names_already_handled $name"
12408 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12409 eval value=\"\$HAVE_LIB$uppername\"
12410 if test -n "$value"; then
12411 if test "$value" = yes; then
12412 eval value=\"\$LIB$uppername\"
12413 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12414 eval value=\"\$LTLIB$uppername\"
12415 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12416 else
12419 else
12420 found_dir=
12421 found_la=
12422 found_so=
12423 found_a=
12424 if test $use_additional = yes; then
12425 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12426 found_dir="$additional_libdir"
12427 found_so="$additional_libdir/lib$name.$shlibext"
12428 if test -f "$additional_libdir/lib$name.la"; then
12429 found_la="$additional_libdir/lib$name.la"
12431 else
12432 if test -f "$additional_libdir/lib$name.$libext"; then
12433 found_dir="$additional_libdir"
12434 found_a="$additional_libdir/lib$name.$libext"
12435 if test -f "$additional_libdir/lib$name.la"; then
12436 found_la="$additional_libdir/lib$name.la"
12441 if test "X$found_dir" = "X"; then
12442 for x in $LDFLAGS $LTLIBICONV; do
12444 acl_save_prefix="$prefix"
12445 prefix="$acl_final_prefix"
12446 acl_save_exec_prefix="$exec_prefix"
12447 exec_prefix="$acl_final_exec_prefix"
12448 eval x=\"$x\"
12449 exec_prefix="$acl_save_exec_prefix"
12450 prefix="$acl_save_prefix"
12452 case "$x" in
12453 -L*)
12454 dir=`echo "X$x" | sed -e 's/^X-L//'`
12455 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12456 found_dir="$dir"
12457 found_so="$dir/lib$name.$shlibext"
12458 if test -f "$dir/lib$name.la"; then
12459 found_la="$dir/lib$name.la"
12461 else
12462 if test -f "$dir/lib$name.$libext"; then
12463 found_dir="$dir"
12464 found_a="$dir/lib$name.$libext"
12465 if test -f "$dir/lib$name.la"; then
12466 found_la="$dir/lib$name.la"
12471 esac
12472 if test "X$found_dir" != "X"; then
12473 break
12475 done
12477 if test "X$found_dir" != "X"; then
12478 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12479 if test "X$found_so" != "X"; then
12480 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12481 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12482 else
12483 haveit=
12484 for x in $ltrpathdirs; do
12485 if test "X$x" = "X$found_dir"; then
12486 haveit=yes
12487 break
12489 done
12490 if test -z "$haveit"; then
12491 ltrpathdirs="$ltrpathdirs $found_dir"
12493 if test "$hardcode_direct" = yes; then
12494 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12495 else
12496 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12498 haveit=
12499 for x in $rpathdirs; do
12500 if test "X$x" = "X$found_dir"; then
12501 haveit=yes
12502 break
12504 done
12505 if test -z "$haveit"; then
12506 rpathdirs="$rpathdirs $found_dir"
12508 else
12509 haveit=
12510 for x in $LDFLAGS $LIBICONV; do
12512 acl_save_prefix="$prefix"
12513 prefix="$acl_final_prefix"
12514 acl_save_exec_prefix="$exec_prefix"
12515 exec_prefix="$acl_final_exec_prefix"
12516 eval x=\"$x\"
12517 exec_prefix="$acl_save_exec_prefix"
12518 prefix="$acl_save_prefix"
12520 if test "X$x" = "X-L$found_dir"; then
12521 haveit=yes
12522 break
12524 done
12525 if test -z "$haveit"; then
12526 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12528 if test "$hardcode_minus_L" != no; then
12529 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12530 else
12531 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12536 else
12537 if test "X$found_a" != "X"; then
12538 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12539 else
12540 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12543 additional_includedir=
12544 case "$found_dir" in
12545 */lib | */lib/)
12546 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12547 additional_includedir="$basedir/include"
12549 esac
12550 if test "X$additional_includedir" != "X"; then
12551 if test "X$additional_includedir" != "X/usr/include"; then
12552 haveit=
12553 if test "X$additional_includedir" = "X/usr/local/include"; then
12554 if test -n "$GCC"; then
12555 case $host_os in
12556 linux*) haveit=yes;;
12557 esac
12560 if test -z "$haveit"; then
12561 for x in $CPPFLAGS $INCICONV; do
12563 acl_save_prefix="$prefix"
12564 prefix="$acl_final_prefix"
12565 acl_save_exec_prefix="$exec_prefix"
12566 exec_prefix="$acl_final_exec_prefix"
12567 eval x=\"$x\"
12568 exec_prefix="$acl_save_exec_prefix"
12569 prefix="$acl_save_prefix"
12571 if test "X$x" = "X-I$additional_includedir"; then
12572 haveit=yes
12573 break
12575 done
12576 if test -z "$haveit"; then
12577 if test -d "$additional_includedir"; then
12578 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12584 if test -n "$found_la"; then
12585 save_libdir="$libdir"
12586 case "$found_la" in
12587 */* | *\\*) . "$found_la" ;;
12588 *) . "./$found_la" ;;
12589 esac
12590 libdir="$save_libdir"
12591 for dep in $dependency_libs; do
12592 case "$dep" in
12593 -L*)
12594 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12595 if test "X$additional_libdir" != "X/usr/lib"; then
12596 haveit=
12597 if test "X$additional_libdir" = "X/usr/local/lib"; then
12598 if test -n "$GCC"; then
12599 case $host_os in
12600 linux*) haveit=yes;;
12601 esac
12604 if test -z "$haveit"; then
12605 haveit=
12606 for x in $LDFLAGS $LIBICONV; do
12608 acl_save_prefix="$prefix"
12609 prefix="$acl_final_prefix"
12610 acl_save_exec_prefix="$exec_prefix"
12611 exec_prefix="$acl_final_exec_prefix"
12612 eval x=\"$x\"
12613 exec_prefix="$acl_save_exec_prefix"
12614 prefix="$acl_save_prefix"
12616 if test "X$x" = "X-L$additional_libdir"; then
12617 haveit=yes
12618 break
12620 done
12621 if test -z "$haveit"; then
12622 if test -d "$additional_libdir"; then
12623 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12626 haveit=
12627 for x in $LDFLAGS $LTLIBICONV; do
12629 acl_save_prefix="$prefix"
12630 prefix="$acl_final_prefix"
12631 acl_save_exec_prefix="$exec_prefix"
12632 exec_prefix="$acl_final_exec_prefix"
12633 eval x=\"$x\"
12634 exec_prefix="$acl_save_exec_prefix"
12635 prefix="$acl_save_prefix"
12637 if test "X$x" = "X-L$additional_libdir"; then
12638 haveit=yes
12639 break
12641 done
12642 if test -z "$haveit"; then
12643 if test -d "$additional_libdir"; then
12644 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12650 -R*)
12651 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12652 if test "$enable_rpath" != no; then
12653 haveit=
12654 for x in $rpathdirs; do
12655 if test "X$x" = "X$dir"; then
12656 haveit=yes
12657 break
12659 done
12660 if test -z "$haveit"; then
12661 rpathdirs="$rpathdirs $dir"
12663 haveit=
12664 for x in $ltrpathdirs; do
12665 if test "X$x" = "X$dir"; then
12666 haveit=yes
12667 break
12669 done
12670 if test -z "$haveit"; then
12671 ltrpathdirs="$ltrpathdirs $dir"
12675 -l*)
12676 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12678 *.la)
12679 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12682 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12683 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12685 esac
12686 done
12688 else
12689 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12690 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12694 done
12695 done
12696 if test "X$rpathdirs" != "X"; then
12697 if test -n "$hardcode_libdir_separator"; then
12698 alldirs=
12699 for found_dir in $rpathdirs; do
12700 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12701 done
12702 acl_save_libdir="$libdir"
12703 libdir="$alldirs"
12704 eval flag=\"$hardcode_libdir_flag_spec\"
12705 libdir="$acl_save_libdir"
12706 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12707 else
12708 for found_dir in $rpathdirs; do
12709 acl_save_libdir="$libdir"
12710 libdir="$found_dir"
12711 eval flag=\"$hardcode_libdir_flag_spec\"
12712 libdir="$acl_save_libdir"
12713 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12714 done
12717 if test "X$ltrpathdirs" != "X"; then
12718 for found_dir in $ltrpathdirs; do
12719 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12720 done
12726 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12727 stdlib.h string.h unistd.h sys/param.h
12728 do :
12729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12730 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12731 eval as_val=\$$as_ac_Header
12732 if test "x$as_val" = x""yes; then :
12733 cat >>confdefs.h <<_ACEOF
12734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12735 _ACEOF
12739 done
12741 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
12742 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
12743 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12744 do :
12745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12747 eval as_val=\$$as_ac_var
12748 if test "x$as_val" = x""yes; then :
12749 cat >>confdefs.h <<_ACEOF
12750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12751 _ACEOF
12754 done
12762 am_save_CPPFLAGS="$CPPFLAGS"
12764 for element in $INCICONV; do
12765 haveit=
12766 for x in $CPPFLAGS; do
12768 acl_save_prefix="$prefix"
12769 prefix="$acl_final_prefix"
12770 acl_save_exec_prefix="$exec_prefix"
12771 exec_prefix="$acl_final_exec_prefix"
12772 eval x=\"$x\"
12773 exec_prefix="$acl_save_exec_prefix"
12774 prefix="$acl_save_prefix"
12776 if test "X$x" = "X$element"; then
12777 haveit=yes
12778 break
12780 done
12781 if test -z "$haveit"; then
12782 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12784 done
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12788 $as_echo_n "checking for iconv... " >&6; }
12789 if test "${am_cv_func_iconv+set}" = set; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12793 am_cv_func_iconv="no, consider installing GNU libiconv"
12794 am_cv_lib_iconv=no
12795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* end confdefs.h. */
12797 #include <stdlib.h>
12798 #include <iconv.h>
12800 main ()
12802 iconv_t cd = iconv_open("","");
12803 iconv(cd,NULL,NULL,NULL,NULL);
12804 iconv_close(cd);
12806 return 0;
12808 _ACEOF
12809 if ac_fn_c_try_link "$LINENO"; then :
12810 am_cv_func_iconv=yes
12812 rm -f core conftest.err conftest.$ac_objext \
12813 conftest$ac_exeext conftest.$ac_ext
12814 if test "$am_cv_func_iconv" != yes; then
12815 am_save_LIBS="$LIBS"
12816 LIBS="$LIBS $LIBICONV"
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12819 #include <stdlib.h>
12820 #include <iconv.h>
12822 main ()
12824 iconv_t cd = iconv_open("","");
12825 iconv(cd,NULL,NULL,NULL,NULL);
12826 iconv_close(cd);
12828 return 0;
12830 _ACEOF
12831 if ac_fn_c_try_link "$LINENO"; then :
12832 am_cv_lib_iconv=yes
12833 am_cv_func_iconv=yes
12835 rm -f core conftest.err conftest.$ac_objext \
12836 conftest$ac_exeext conftest.$ac_ext
12837 LIBS="$am_save_LIBS"
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12842 $as_echo "$am_cv_func_iconv" >&6; }
12843 if test "$am_cv_func_iconv" = yes; then
12845 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12848 if test "$am_cv_lib_iconv" = yes; then
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12850 $as_echo_n "checking how to link with libiconv... " >&6; }
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12852 $as_echo "$LIBICONV" >&6; }
12853 else
12854 CPPFLAGS="$am_save_CPPFLAGS"
12855 LIBICONV=
12856 LTLIBICONV=
12861 if test "$am_cv_func_iconv" = yes; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12863 $as_echo_n "checking for iconv declaration... " >&6; }
12864 if test "${am_cv_proto_iconv+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12871 #include <stdlib.h>
12872 #include <iconv.h>
12873 extern
12874 #ifdef __cplusplus
12876 #endif
12877 #if defined(__STDC__) || defined(__cplusplus)
12878 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12879 #else
12880 size_t iconv();
12881 #endif
12884 main ()
12888 return 0;
12890 _ACEOF
12891 if ac_fn_c_try_compile "$LINENO"; then :
12892 am_cv_proto_iconv_arg1=""
12893 else
12894 am_cv_proto_iconv_arg1="const"
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897 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);"
12900 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
12902 }$am_cv_proto_iconv" >&5
12903 $as_echo "${ac_t:-
12904 }$am_cv_proto_iconv" >&6; }
12906 cat >>confdefs.h <<_ACEOF
12907 #define ICONV_CONST $am_cv_proto_iconv_arg1
12908 _ACEOF
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12914 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12915 if test "${am_cv_langinfo_codeset+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12919 /* end confdefs.h. */
12920 #include <langinfo.h>
12922 main ()
12924 char* cs = nl_langinfo(CODESET);
12926 return 0;
12928 _ACEOF
12929 if ac_fn_c_try_link "$LINENO"; then :
12930 am_cv_langinfo_codeset=yes
12931 else
12932 am_cv_langinfo_codeset=no
12934 rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12939 $as_echo "$am_cv_langinfo_codeset" >&6; }
12940 if test $am_cv_langinfo_codeset = yes; then
12942 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12946 if test $ac_cv_header_locale_h = yes; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12949 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12950 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
12952 else
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12955 #include <locale.h>
12957 main ()
12959 return LC_MESSAGES
12961 return 0;
12963 _ACEOF
12964 if ac_fn_c_try_link "$LINENO"; then :
12965 am_cv_val_LC_MESSAGES=yes
12966 else
12967 am_cv_val_LC_MESSAGES=no
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12973 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12974 if test $am_cv_val_LC_MESSAGES = yes; then
12976 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12982 for ac_prog in bison
12984 # Extract the first word of "$ac_prog", so it can be a program name with args.
12985 set dummy $ac_prog; ac_word=$2
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12987 $as_echo_n "checking for $ac_word... " >&6; }
12988 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
12989 $as_echo_n "(cached) " >&6
12990 else
12991 if test -n "$INTLBISON"; then
12992 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12993 else
12994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12997 IFS=$as_save_IFS
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
13000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13001 ac_cv_prog_INTLBISON="$ac_prog"
13002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13003 break 2
13005 done
13006 done
13007 IFS=$as_save_IFS
13011 INTLBISON=$ac_cv_prog_INTLBISON
13012 if test -n "$INTLBISON"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
13014 $as_echo "$INTLBISON" >&6; }
13015 else
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13017 $as_echo "no" >&6; }
13021 test -n "$INTLBISON" && break
13022 done
13024 if test -z "$INTLBISON"; then
13025 ac_verc_fail=yes
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
13028 $as_echo_n "checking version of bison... " >&6; }
13029 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13030 case $ac_prog_version in
13031 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13032 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13033 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13034 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13035 esac
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
13037 $as_echo "$ac_prog_version" >&6; }
13039 if test $ac_verc_fail = yes; then
13040 INTLBISON=:
13045 # Check whether --with-language was given.
13046 if test "${with_language+set}" = set; then :
13047 withval=$with_language; if test "$withval" != "all"; then :
13048 LINGUAS="`echo $withval | sed -e 's/,/ /g'`"
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13068 $as_echo_n "checking whether NLS is requested... " >&6; }
13069 # Check whether --enable-nls was given.
13070 if test "${enable_nls+set}" = set; then :
13071 enableval=$enable_nls; USE_NLS=$enableval
13072 else
13073 USE_NLS=yes
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13077 $as_echo "$USE_NLS" >&6; }
13081 BUILD_INCLUDED_LIBINTL=no
13082 USE_INCLUDED_LIBINTL=no
13084 LIBINTL=
13085 LTLIBINTL=
13086 POSUB=
13088 if test "$USE_NLS" = "yes"; then
13089 gt_use_preinstalled_gnugettext=no
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
13092 $as_echo_n "checking whether included gettext is requested... " >&6; }
13094 # Check whether --with-included-gettext was given.
13095 if test "${with_included_gettext+set}" = set; then :
13096 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13097 else
13098 nls_cv_force_use_gnu_gettext=no
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
13102 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
13104 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13105 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13113 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13114 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then :
13115 $as_echo_n "(cached) " >&6
13116 else
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 #include <libintl.h>
13120 extern int _nl_msg_cat_cntr;
13121 extern int *_nl_domain_bindings;
13123 main ()
13125 bindtextdomain ("", "");
13126 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
13128 return 0;
13130 _ACEOF
13131 if ac_fn_c_try_link "$LINENO"; then :
13132 gt_cv_func_gnugettext2_libc=yes
13133 else
13134 gt_cv_func_gnugettext2_libc=no
13136 rm -f core conftest.err conftest.$ac_objext \
13137 conftest$ac_exeext conftest.$ac_ext
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
13140 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
13142 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
13146 use_additional=yes
13148 acl_save_prefix="$prefix"
13149 prefix="$acl_final_prefix"
13150 acl_save_exec_prefix="$exec_prefix"
13151 exec_prefix="$acl_final_exec_prefix"
13153 eval additional_includedir=\"$includedir\"
13154 eval additional_libdir=\"$libdir\"
13156 exec_prefix="$acl_save_exec_prefix"
13157 prefix="$acl_save_prefix"
13160 # Check whether --with-libintl-prefix was given.
13161 if test "${with_libintl_prefix+set}" = set; then :
13162 withval=$with_libintl_prefix;
13163 if test "X$withval" = "Xno"; then
13164 use_additional=no
13165 else
13166 if test "X$withval" = "X"; then
13168 acl_save_prefix="$prefix"
13169 prefix="$acl_final_prefix"
13170 acl_save_exec_prefix="$exec_prefix"
13171 exec_prefix="$acl_final_exec_prefix"
13173 eval additional_includedir=\"$includedir\"
13174 eval additional_libdir=\"$libdir\"
13176 exec_prefix="$acl_save_exec_prefix"
13177 prefix="$acl_save_prefix"
13179 else
13180 additional_includedir="$withval/include"
13181 additional_libdir="$withval/lib"
13187 LIBINTL=
13188 LTLIBINTL=
13189 INCINTL=
13190 rpathdirs=
13191 ltrpathdirs=
13192 names_already_handled=
13193 names_next_round='intl '
13194 while test -n "$names_next_round"; do
13195 names_this_round="$names_next_round"
13196 names_next_round=
13197 for name in $names_this_round; do
13198 already_handled=
13199 for n in $names_already_handled; do
13200 if test "$n" = "$name"; then
13201 already_handled=yes
13202 break
13204 done
13205 if test -z "$already_handled"; then
13206 names_already_handled="$names_already_handled $name"
13207 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13208 eval value=\"\$HAVE_LIB$uppername\"
13209 if test -n "$value"; then
13210 if test "$value" = yes; then
13211 eval value=\"\$LIB$uppername\"
13212 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13213 eval value=\"\$LTLIB$uppername\"
13214 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13215 else
13218 else
13219 found_dir=
13220 found_la=
13221 found_so=
13222 found_a=
13223 if test $use_additional = yes; then
13224 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13225 found_dir="$additional_libdir"
13226 found_so="$additional_libdir/lib$name.$shlibext"
13227 if test -f "$additional_libdir/lib$name.la"; then
13228 found_la="$additional_libdir/lib$name.la"
13230 else
13231 if test -f "$additional_libdir/lib$name.$libext"; then
13232 found_dir="$additional_libdir"
13233 found_a="$additional_libdir/lib$name.$libext"
13234 if test -f "$additional_libdir/lib$name.la"; then
13235 found_la="$additional_libdir/lib$name.la"
13240 if test "X$found_dir" = "X"; then
13241 for x in $LDFLAGS $LTLIBINTL; do
13243 acl_save_prefix="$prefix"
13244 prefix="$acl_final_prefix"
13245 acl_save_exec_prefix="$exec_prefix"
13246 exec_prefix="$acl_final_exec_prefix"
13247 eval x=\"$x\"
13248 exec_prefix="$acl_save_exec_prefix"
13249 prefix="$acl_save_prefix"
13251 case "$x" in
13252 -L*)
13253 dir=`echo "X$x" | sed -e 's/^X-L//'`
13254 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13255 found_dir="$dir"
13256 found_so="$dir/lib$name.$shlibext"
13257 if test -f "$dir/lib$name.la"; then
13258 found_la="$dir/lib$name.la"
13260 else
13261 if test -f "$dir/lib$name.$libext"; then
13262 found_dir="$dir"
13263 found_a="$dir/lib$name.$libext"
13264 if test -f "$dir/lib$name.la"; then
13265 found_la="$dir/lib$name.la"
13270 esac
13271 if test "X$found_dir" != "X"; then
13272 break
13274 done
13276 if test "X$found_dir" != "X"; then
13277 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13278 if test "X$found_so" != "X"; then
13279 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13280 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13281 else
13282 haveit=
13283 for x in $ltrpathdirs; do
13284 if test "X$x" = "X$found_dir"; then
13285 haveit=yes
13286 break
13288 done
13289 if test -z "$haveit"; then
13290 ltrpathdirs="$ltrpathdirs $found_dir"
13292 if test "$hardcode_direct" = yes; then
13293 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13294 else
13295 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13296 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13297 haveit=
13298 for x in $rpathdirs; do
13299 if test "X$x" = "X$found_dir"; then
13300 haveit=yes
13301 break
13303 done
13304 if test -z "$haveit"; then
13305 rpathdirs="$rpathdirs $found_dir"
13307 else
13308 haveit=
13309 for x in $LDFLAGS $LIBINTL; do
13311 acl_save_prefix="$prefix"
13312 prefix="$acl_final_prefix"
13313 acl_save_exec_prefix="$exec_prefix"
13314 exec_prefix="$acl_final_exec_prefix"
13315 eval x=\"$x\"
13316 exec_prefix="$acl_save_exec_prefix"
13317 prefix="$acl_save_prefix"
13319 if test "X$x" = "X-L$found_dir"; then
13320 haveit=yes
13321 break
13323 done
13324 if test -z "$haveit"; then
13325 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13327 if test "$hardcode_minus_L" != no; then
13328 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13329 else
13330 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13335 else
13336 if test "X$found_a" != "X"; then
13337 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13338 else
13339 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13342 additional_includedir=
13343 case "$found_dir" in
13344 */lib | */lib/)
13345 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13346 additional_includedir="$basedir/include"
13348 esac
13349 if test "X$additional_includedir" != "X"; then
13350 if test "X$additional_includedir" != "X/usr/include"; then
13351 haveit=
13352 if test "X$additional_includedir" = "X/usr/local/include"; then
13353 if test -n "$GCC"; then
13354 case $host_os in
13355 linux*) haveit=yes;;
13356 esac
13359 if test -z "$haveit"; then
13360 for x in $CPPFLAGS $INCINTL; do
13362 acl_save_prefix="$prefix"
13363 prefix="$acl_final_prefix"
13364 acl_save_exec_prefix="$exec_prefix"
13365 exec_prefix="$acl_final_exec_prefix"
13366 eval x=\"$x\"
13367 exec_prefix="$acl_save_exec_prefix"
13368 prefix="$acl_save_prefix"
13370 if test "X$x" = "X-I$additional_includedir"; then
13371 haveit=yes
13372 break
13374 done
13375 if test -z "$haveit"; then
13376 if test -d "$additional_includedir"; then
13377 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13383 if test -n "$found_la"; then
13384 save_libdir="$libdir"
13385 case "$found_la" in
13386 */* | *\\*) . "$found_la" ;;
13387 *) . "./$found_la" ;;
13388 esac
13389 libdir="$save_libdir"
13390 for dep in $dependency_libs; do
13391 case "$dep" in
13392 -L*)
13393 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13394 if test "X$additional_libdir" != "X/usr/lib"; then
13395 haveit=
13396 if test "X$additional_libdir" = "X/usr/local/lib"; then
13397 if test -n "$GCC"; then
13398 case $host_os in
13399 linux*) haveit=yes;;
13400 esac
13403 if test -z "$haveit"; then
13404 haveit=
13405 for x in $LDFLAGS $LIBINTL; do
13407 acl_save_prefix="$prefix"
13408 prefix="$acl_final_prefix"
13409 acl_save_exec_prefix="$exec_prefix"
13410 exec_prefix="$acl_final_exec_prefix"
13411 eval x=\"$x\"
13412 exec_prefix="$acl_save_exec_prefix"
13413 prefix="$acl_save_prefix"
13415 if test "X$x" = "X-L$additional_libdir"; then
13416 haveit=yes
13417 break
13419 done
13420 if test -z "$haveit"; then
13421 if test -d "$additional_libdir"; then
13422 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13425 haveit=
13426 for x in $LDFLAGS $LTLIBINTL; do
13428 acl_save_prefix="$prefix"
13429 prefix="$acl_final_prefix"
13430 acl_save_exec_prefix="$exec_prefix"
13431 exec_prefix="$acl_final_exec_prefix"
13432 eval x=\"$x\"
13433 exec_prefix="$acl_save_exec_prefix"
13434 prefix="$acl_save_prefix"
13436 if test "X$x" = "X-L$additional_libdir"; then
13437 haveit=yes
13438 break
13440 done
13441 if test -z "$haveit"; then
13442 if test -d "$additional_libdir"; then
13443 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13449 -R*)
13450 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13451 if test "$enable_rpath" != no; then
13452 haveit=
13453 for x in $rpathdirs; do
13454 if test "X$x" = "X$dir"; then
13455 haveit=yes
13456 break
13458 done
13459 if test -z "$haveit"; then
13460 rpathdirs="$rpathdirs $dir"
13462 haveit=
13463 for x in $ltrpathdirs; do
13464 if test "X$x" = "X$dir"; then
13465 haveit=yes
13466 break
13468 done
13469 if test -z "$haveit"; then
13470 ltrpathdirs="$ltrpathdirs $dir"
13474 -l*)
13475 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13477 *.la)
13478 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13481 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13482 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13484 esac
13485 done
13487 else
13488 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13489 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13493 done
13494 done
13495 if test "X$rpathdirs" != "X"; then
13496 if test -n "$hardcode_libdir_separator"; then
13497 alldirs=
13498 for found_dir in $rpathdirs; do
13499 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13500 done
13501 acl_save_libdir="$libdir"
13502 libdir="$alldirs"
13503 eval flag=\"$hardcode_libdir_flag_spec\"
13504 libdir="$acl_save_libdir"
13505 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13506 else
13507 for found_dir in $rpathdirs; do
13508 acl_save_libdir="$libdir"
13509 libdir="$found_dir"
13510 eval flag=\"$hardcode_libdir_flag_spec\"
13511 libdir="$acl_save_libdir"
13512 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13513 done
13516 if test "X$ltrpathdirs" != "X"; then
13517 for found_dir in $ltrpathdirs; do
13518 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13519 done
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13523 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13524 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13527 gt_save_CPPFLAGS="$CPPFLAGS"
13528 CPPFLAGS="$CPPFLAGS $INCINTL"
13529 gt_save_LIBS="$LIBS"
13530 LIBS="$LIBS $LIBINTL"
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533 #include <libintl.h>
13534 extern int _nl_msg_cat_cntr;
13535 extern
13536 #ifdef __cplusplus
13538 #endif
13539 const char *_nl_expand_alias ();
13541 main ()
13543 bindtextdomain ("", "");
13544 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13546 return 0;
13548 _ACEOF
13549 if ac_fn_c_try_link "$LINENO"; then :
13550 gt_cv_func_gnugettext2_libintl=yes
13551 else
13552 gt_cv_func_gnugettext2_libintl=no
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13556 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
13557 LIBS="$LIBS $LIBICONV"
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13560 #include <libintl.h>
13561 extern int _nl_msg_cat_cntr;
13562 extern
13563 #ifdef __cplusplus
13565 #endif
13566 const char *_nl_expand_alias ();
13568 main ()
13570 bindtextdomain ("", "");
13571 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
13573 return 0;
13575 _ACEOF
13576 if ac_fn_c_try_link "$LINENO"; then :
13577 LIBINTL="$LIBINTL $LIBICONV"
13578 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13579 gt_cv_func_gnugettext2_libintl=yes
13582 rm -f core conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext conftest.$ac_ext
13585 CPPFLAGS="$gt_save_CPPFLAGS"
13586 LIBS="$gt_save_LIBS"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
13589 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
13592 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
13593 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
13594 && test "$PACKAGE" != gettext; }; then
13595 gt_use_preinstalled_gnugettext=yes
13596 else
13597 LIBINTL=
13598 LTLIBINTL=
13599 INCINTL=
13603 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13604 nls_cv_use_gnu_gettext=yes
13608 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13609 INTLOBJS="\$(GETTOBJS)"
13610 BUILD_INCLUDED_LIBINTL=yes
13611 USE_INCLUDED_LIBINTL=yes
13612 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13613 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13614 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13617 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13618 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13619 CATOBJEXT=.gmo
13623 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13624 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13626 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13628 else
13629 USE_NLS=no
13633 if test "$USE_NLS" = "yes"; then
13635 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13636 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13638 $as_echo_n "checking how to link with libintl... " >&6; }
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13640 $as_echo "$LIBINTL" >&6; }
13642 for element in $INCINTL; do
13643 haveit=
13644 for x in $CPPFLAGS; do
13646 acl_save_prefix="$prefix"
13647 prefix="$acl_final_prefix"
13648 acl_save_exec_prefix="$exec_prefix"
13649 exec_prefix="$acl_final_exec_prefix"
13650 eval x=\"$x\"
13651 exec_prefix="$acl_save_exec_prefix"
13652 prefix="$acl_save_prefix"
13654 if test "X$x" = "X$element"; then
13655 haveit=yes
13656 break
13658 done
13659 if test -z "$haveit"; then
13660 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13662 done
13667 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13670 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13674 POSUB=po
13678 if test "$PACKAGE" = gettext; then
13679 BUILD_INCLUDED_LIBINTL=yes
13687 nls_cv_header_intl=
13688 nls_cv_header_libgt=
13690 DATADIRNAME=share
13693 INSTOBJEXT=.mo
13696 GENCAT=gencat
13699 INTL_LIBTOOL_SUFFIX_PREFIX=
13703 INTLLIBS="$LIBINTL"
13710 if test $USE_INCLUDED_LIBINTL = yes; then :
13711 INCINTL=-I\${top_builddir}/intl
13714 if test x$USE_NLS = xyes; then :
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for autopoint" >&5
13717 $as_echo_n "checking for autopoint... " >&6; }
13718 autopoint_version=`autopoint --version | head -n 1 | sed -e 's/.*[^0-9.]\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,2\}\)[^0-9.]*/\1/'`
13719 if test -n "$autopoint_version"; then :
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($autopoint_version)" >&5
13722 $as_echo "yes ($autopoint_version)" >&6; }
13725 else
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 $as_echo "no" >&6; }
13729 USE_NLS=no
13734 if test x$USE_NLS = xno -a x${enable_nls:-yes} = xyes; then :
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13736 You need to install GNU gettext/gettext-tools to compile aMule with
13737 i18n support." >&5
13738 $as_echo "$as_me: WARNING:
13739 You need to install GNU gettext/gettext-tools to compile aMule with
13740 i18n support." >&2;}
13741 _mule_warning_9=yes
13742 _mule_has_warnings=yes
13746 if test ${USE_NLS:-no} = yes; then :
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for requested languages" >&5
13749 $as_echo_n "checking for requested languages... " >&6; }
13750 Generate_Langs=`echo $LINGUAS | $AWK 'OFS="\\\\|" { for (i = 1; i <= NF; ++i) $i = "\\\\." $i; print }'`
13752 if test ${enable_amule_daemon:-no} = yes; then :
13754 if test -z "$LINGUAS"; then :
13755 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g'`
13756 else
13758 AMULE_DAEMON_MANPAGES=`ls -1 ${srcdir}/docs/man/amuled.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13759 AMULE_DAEMON_MANPAGES="`basename docs/man/amuled.1` $AMULE_DAEMON_MANPAGES"
13762 AMULE_DAEMON_MANPAGES=`echo $AMULE_DAEMON_MANPAGES | tr -d '\n'`
13764 else
13765 AMULE_DAEMON_MANPAGES=
13770 if test ${enable_amulecmd:-no} = yes; then :
13772 if test -z "$LINGUAS"; then :
13773 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g'`
13774 else
13776 AMULECMD_MANPAGES=`ls -1 ${srcdir}/docs/man/amulecmd.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13777 AMULECMD_MANPAGES="`basename docs/man/amulecmd.1` $AMULECMD_MANPAGES"
13780 AMULECMD_MANPAGES=`echo $AMULECMD_MANPAGES | tr -d '\n'`
13782 else
13783 AMULECMD_MANPAGES=
13788 if test ${enable_webserver:-no} = yes; then :
13790 if test -z "$LINGUAS"; then :
13791 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g'`
13792 else
13794 WEBSERVER_MANPAGES=`ls -1 ${srcdir}/docs/man/amuleweb.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13795 WEBSERVER_MANPAGES="`basename docs/man/amuleweb.1` $WEBSERVER_MANPAGES"
13798 WEBSERVER_MANPAGES=`echo $WEBSERVER_MANPAGES | tr -d '\n'`
13800 else
13801 WEBSERVER_MANPAGES=
13806 if test ${enable_amule_gui:-no} = yes; then :
13808 if test -z "$LINGUAS"; then :
13809 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g'`
13810 else
13812 AMULE_GUI_MANPAGES=`ls -1 ${srcdir}/docs/man/amulegui.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13813 AMULE_GUI_MANPAGES="`basename docs/man/amulegui.1` $AMULE_GUI_MANPAGES"
13816 AMULE_GUI_MANPAGES=`echo $AMULE_GUI_MANPAGES | tr -d '\n'`
13818 else
13819 AMULE_GUI_MANPAGES=
13824 if test ${enable_cas:-no} = yes; then :
13826 if test -z "$LINGUAS"; then :
13827 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g'`
13828 else
13830 CAS_MANPAGES=`ls -1 ${srcdir}/src/utils/cas/docs/cas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13831 CAS_MANPAGES="`basename src/utils/cas/docs/cas.1` $CAS_MANPAGES"
13834 CAS_MANPAGES=`echo $CAS_MANPAGES | tr -d '\n'`
13836 else
13837 CAS_MANPAGES=
13842 if test ${enable_wxcas:-no} = yes; then :
13844 if test -z "$LINGUAS"; then :
13845 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g'`
13846 else
13848 WXCAS_MANPAGES=`ls -1 ${srcdir}/src/utils/wxCas/docs/wxcas.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13849 WXCAS_MANPAGES="`basename src/utils/wxCas/docs/wxcas.1` $WXCAS_MANPAGES"
13852 WXCAS_MANPAGES=`echo $WXCAS_MANPAGES | tr -d '\n'`
13854 else
13855 WXCAS_MANPAGES=
13860 if test ${enable_ed2k:-yes} = yes; then :
13862 if test -z "$LINGUAS"; then :
13863 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g'`
13864 else
13866 ED2K_MANPAGES=`ls -1 ${srcdir}/docs/man/ed2k.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13867 ED2K_MANPAGES="`basename docs/man/ed2k.1` $ED2K_MANPAGES"
13870 ED2K_MANPAGES=`echo $ED2K_MANPAGES | tr -d '\n'`
13872 else
13873 ED2K_MANPAGES=
13878 if test ${enable_alc:-no} = yes; then :
13880 if test -z "$LINGUAS"; then :
13881 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g'`
13882 else
13884 ALC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13885 ALC_MANPAGES="`basename src/utils/aLinkCreator/docs/alc.1` $ALC_MANPAGES"
13888 ALC_MANPAGES=`echo $ALC_MANPAGES | tr -d '\n'`
13890 else
13891 ALC_MANPAGES=
13896 if test ${enable_alcc:-no} = yes; then :
13898 if test -z "$LINGUAS"; then :
13899 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g'`
13900 else
13902 ALCC_MANPAGES=`ls -1 ${srcdir}/src/utils/aLinkCreator/docs/alcc.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13903 ALCC_MANPAGES="`basename src/utils/aLinkCreator/docs/alcc.1` $ALCC_MANPAGES"
13906 ALCC_MANPAGES=`echo $ALCC_MANPAGES | tr -d '\n'`
13908 else
13909 ALCC_MANPAGES=
13914 if test ${enable_monolithic:-yes} = yes; then :
13916 if test -z "$LINGUAS"; then :
13917 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g'`
13918 else
13920 MONOLITHIC_MANPAGES=`ls -1 ${srcdir}/docs/man/amule.* | sed -e 's:.*/::g' | grep $Generate_Langs`
13921 MONOLITHIC_MANPAGES="`basename docs/man/amule.1` $MONOLITHIC_MANPAGES"
13924 MONOLITHIC_MANPAGES=`echo $MONOLITHIC_MANPAGES | tr -d '\n'`
13926 else
13927 MONOLITHIC_MANPAGES=
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LINGUAS:-all}" >&5
13932 $as_echo "${LINGUAS:-all}" >&6; }
13938 # Check for bfd.h (to have proper backtraces without using wxExecute)
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd" >&5
13941 $as_echo_n "checking for bfd... " >&6; }
13942 result=no
13943 for bfd_ldadd in "" "${LIBINTL}" "-ldl" "-ldl ${LIBINTL}"; do
13944 mule_backup_LIBS="$LIBS"
13945 mule_backup_LDFLAGS="$LDFLAGS"
13946 LIBS="-lbfd -liberty ${bfd_ldadd} ${ZLIB_LIBS} $LIBS"
13947 LDFLAGS="$LDFLAGS ${ZLIB_LDFLAGS}"
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13952 #include <ansidecl.h>
13953 #include <bfd.h>
13956 main ()
13959 char *dummy = bfd_errmsg(bfd_get_error());
13962 return 0;
13965 _ACEOF
13966 if ac_fn_c_try_link "$LINENO"; then :
13968 result=yes
13969 BFD_CPPFLAGS="-DHAVE_BFD"
13970 BFD_LIBS="-lbfd -liberty ${bfd_ldadd}"
13971 LIBS="$mule_backup_LIBS"
13972 LDFLAGS="$mule_backup_LDFLAGS"
13973 break
13976 rm -f core conftest.err conftest.$ac_objext \
13977 conftest$ac_exeext conftest.$ac_ext
13978 LIBS="$mule_backup_LIBS"
13979 LDFLAGS="$mule_backup_LDFLAGS"
13980 done
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
13983 $as_echo "$result" >&6; }
13985 if test $result = no; then :
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13987 bfd.h not found or unusable, please install binutils development
13988 package if you are a developer or want to help testing aMule" >&5
13989 $as_echo "$as_me: WARNING:
13990 bfd.h not found or unusable, please install binutils development
13991 package if you are a developer or want to help testing aMule" >&2;}
13992 _mule_warning_10=yes
13993 _mule_has_warnings=yes
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for <execinfo.h> and backtrace()" >&5
14000 $as_echo_n "checking for <execinfo.h> and backtrace()... " >&6; }
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14005 #include <execinfo.h>
14008 main ()
14011 void *bt[1];
14012 int n = backtrace(&bt, 1);
14013 const char **bt_syms = backtrace_symbols(bt, n);
14016 return 0;
14019 _ACEOF
14020 if ac_fn_c_try_link "$LINENO"; then :
14023 $as_echo "#define HAVE_EXECINFO 1" >>confdefs.h
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14026 $as_echo "yes" >&6; }
14028 else
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14034 rm -f core conftest.err conftest.$ac_objext \
14035 conftest$ac_exeext conftest.$ac_ext
14038 # Flush standard test results for speeding cache
14039 cat >confcache <<\_ACEOF
14040 # This file is a shell script that caches the results of configure
14041 # tests run on this system so they can be shared between configure
14042 # scripts and configure runs, see configure's option --config-cache.
14043 # It is not useful on other systems. If it contains results you don't
14044 # want to keep, you may remove or edit it.
14046 # config.status only pays attention to the cache file if you give it
14047 # the --recheck option to rerun configure.
14049 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14050 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14051 # following values.
14053 _ACEOF
14055 # The following way of writing the cache mishandles newlines in values,
14056 # but we know of no workaround that is simple, portable, and efficient.
14057 # So, we kill variables containing newlines.
14058 # Ultrix sh set writes to stderr and can't be redirected directly,
14059 # and sets the high bit in the cache file unless we assign to the vars.
14061 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14062 eval ac_val=\$$ac_var
14063 case $ac_val in #(
14064 *${as_nl}*)
14065 case $ac_var in #(
14066 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14067 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14068 esac
14069 case $ac_var in #(
14070 _ | IFS | as_nl) ;; #(
14071 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14072 *) { eval $ac_var=; unset $ac_var;} ;;
14073 esac ;;
14074 esac
14075 done
14077 (set) 2>&1 |
14078 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14079 *${as_nl}ac_space=\ *)
14080 # `set' does not quote correctly, so add quotes: double-quote
14081 # substitution turns \\\\ into \\, and sed turns \\ into \.
14082 sed -n \
14083 "s/'/'\\\\''/g;
14084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14085 ;; #(
14087 # `set' quotes correctly as required by POSIX, so do not add quotes.
14088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14090 esac |
14091 sort
14093 sed '
14094 /^ac_cv_env_/b end
14095 t clear
14096 :clear
14097 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14098 t end
14099 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14100 :end' >>confcache
14101 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14102 if test -w "$cache_file"; then
14103 test "x$cache_file" != "x/dev/null" &&
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14105 $as_echo "$as_me: updating cache $cache_file" >&6;}
14106 cat confcache >$cache_file
14107 else
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14109 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14112 rm -f confcache
14114 # Other tests
14115 # aMule options
14117 # Check whether --enable-debug was given.
14118 if test "${enable_debug+set}" = set; then :
14119 enableval=$enable_debug;
14123 # Check whether --enable-profile was given.
14124 if test "${enable_profile+set}" = set; then :
14125 enableval=$enable_profile;
14129 # Check whether --enable-optimize was given.
14130 if test "${enable_optimize+set}" = set; then :
14131 enableval=$enable_optimize;
14136 if test ${enable_debug:-yes} = yes; then :
14138 MULECPPFLAGS="$MULECPPFLAGS -D__DEBUG__"
14140 MULECFLAGS="$MULECFLAGS -g"
14141 MULECXXFLAGS="$MULECXXFLAGS -g"
14143 if test ${GCC:-no} = yes; then :
14145 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14146 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef -ggdb -fno-inline -fmessage-length=0"
14149 if test ${SYS:-unknown} = win32; then :
14150 MULERCFLAGS="$MULERCFLAGS -D__DEBUG__"
14153 else
14155 if test ${GCC:-no} = yes; then :
14157 MULECFLAGS="$MULECFLAGS -W -Wall -Wshadow -Wundef"
14158 MULECXXFLAGS="$MULECXXFLAGS -W -Wall -Wshadow -Wundef"
14164 if test ${enable_profile:-no} = yes; then :
14167 MULECFLAGS="$MULECFLAGS -pg"
14168 MULECXXFLAGS="$MULECXXFLAGS -pg"
14170 MULELDFLAGS="$MULELDFLAGS -pg"
14174 if test ${enable_optimize:-no} = yes; then :
14176 MULECFLAGS="$MULECFLAGS -O2"
14177 MULECXXFLAGS="$MULECXXFLAGS -O2"
14181 MULECPPFLAGS="$MULECPPFLAGS -DUSE_WX_EXTENSIONS"
14184 # autoconf >= 2.60 already defines ${docdir}, but we always need it.
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docdir" >&5
14186 $as_echo_n "checking for docdir... " >&6; }
14187 if test -z "$docdir"; then :
14188 docdir="${datadir}/doc/${PACKAGE_NAME}-${PACKAGE_VERSION}"
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $docdir" >&5
14191 $as_echo "$docdir" >&6; }
14193 # Try to set the SVN checkout-date
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVNDATE" >&5
14195 $as_echo_n "checking for SVNDATE... " >&6; }
14196 if test -f "$srcdir/.svn-revision" # SVNDATE for tarballs
14197 then
14198 svndate="rev. `cat $srcdir/.svn-revision`"
14199 elif test -d $srcdir/.svn # SVNDATE for svn
14200 then
14201 svndate="rev. `svnversion $srcdir | sed -e 's/[0-9][0-9]*:\(.*\)/\1/' -e 's/\([0-9][0-9]*\).*/\1/'`"
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svndate:-None required}" >&5
14204 $as_echo "${svndate:-None required}" >&6; }
14205 if test -n "$svndate"; then :
14208 cat >>confdefs.h <<_ACEOF
14209 #define SVNDATE "$svndate"
14210 _ACEOF
14212 MULERCFLAGS="$MULERCFLAGS -D__PRERELEASE__"
14215 SVNDATE=$svndate
14219 # Check whether --with-denoise-level was given.
14220 if test "${with_denoise_level+set}" = set; then :
14221 withval=$with_denoise_level;
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking denoising level" >&5
14226 $as_echo_n "checking denoising level... " >&6; }
14227 if test ${with_denoise_level:-5} = yes; then :
14228 with_denoise_level=5
14230 if test ${with_denoise_level:-5} = no; then :
14231 with_denoise_level=0
14233 if test ${with_denoise_level:-5} -gt 4; then :
14234 if test "${svndate:+set}" = "set"; then :
14235 with_denoise_level=0
14236 else
14237 with_denoise_level=4
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_denoise_level" >&5
14241 $as_echo "$with_denoise_level" >&6; }
14243 ac_config_commands="$ac_config_commands denoiser"
14247 if test ${enable_plasmamule:-no} = yes; then :
14250 if test -z ${QT_MOC}; then :
14252 for ac_prog in moc-qt4 moc
14254 # Extract the first word of "$ac_prog", so it can be a program name with args.
14255 set dummy $ac_prog; ac_word=$2
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14257 $as_echo_n "checking for $ac_word... " >&6; }
14258 if test "${ac_cv_path_QT_MOC+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 case $QT_MOC in
14262 [\\/]* | ?:[\\/]*)
14263 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
14266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267 for as_dir in $PATH
14269 IFS=$as_save_IFS
14270 test -z "$as_dir" && as_dir=.
14271 for ac_exec_ext in '' $ac_executable_extensions; do
14272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14273 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
14274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14275 break 2
14277 done
14278 done
14279 IFS=$as_save_IFS
14282 esac
14284 QT_MOC=$ac_cv_path_QT_MOC
14285 if test -n "$QT_MOC"; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
14287 $as_echo "$QT_MOC" >&6; }
14288 else
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14294 test -n "$QT_MOC" && break
14295 done
14297 if test -z ${QT_MOC}; then :
14299 echo moc not found
14300 exit 1
14304 else
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
14307 $as_echo_n "checking for moc... " >&6; }
14308 if test -x ${QT_MOC}; then :
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
14311 $as_echo "${QT_MOC}" >&6; }
14314 else
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
14317 $as_echo "\"not found\"" >&6; }
14318 QT_MOC="not found"
14319 exit 1
14326 if test "${QT_MOC}" != "not found"; then :
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
14329 $as_echo_n "checking for moc version >= 4... " >&6; }
14330 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
14331 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
14334 $as_echo "found ${QT_MOC_VERSION}" >&6; }
14336 else
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
14339 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
14340 QT_MOC="not found"
14341 exit 1
14347 if test "${QT_MOC}" = "not found"; then :
14348 enable_plasmamule=disabled
14351 if test ${enable_plasmamule:-no} = yes; then :
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
14356 $as_echo_n "checking for qt... " >&6; }
14357 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14360 $as_echo "found" >&6; }
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
14362 $as_echo_n "checking for qt core cflags... " >&6; }
14363 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
14365 $as_echo "$QT_CORE_CFLAGS" >&6; }
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
14367 $as_echo_n "checking for qt core libs... " >&6; }
14368 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
14370 $as_echo "$QT_CORE_LIBS" >&6; }
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
14372 $as_echo_n "checking for qt gui cflags... " >&6; }
14373 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
14375 $as_echo "$QT_GUI_CFLAGS" >&6; }
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
14377 $as_echo_n "checking for qt gui libs... " >&6; }
14378 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
14380 $as_echo "$QT_GUI_LIBS" >&6; }
14382 else
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14384 $as_echo "not found" >&6; }
14385 exit 1
14389 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
14391 QT_DBUS_LDFLAGS="-lQtDBus"
14401 if test -z "${QT_CORE_CXXFLAGS}"; then :
14402 enable_plasmamule=disabled
14407 if test ${enable_plasmamule:-no} = yes; then :
14410 if test -z ${KDE4_CONFIG}; then :
14412 # Extract the first word of "kde4-config", so it can be a program name with args.
14413 set dummy kde4-config; ac_word=$2
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14415 $as_echo_n "checking for $ac_word... " >&6; }
14416 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419 case $KDE4_CONFIG in
14420 [\\/]* | ?:[\\/]*)
14421 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
14424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14425 for as_dir in $PATH
14427 IFS=$as_save_IFS
14428 test -z "$as_dir" && as_dir=.
14429 for ac_exec_ext in '' $ac_executable_extensions; do
14430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14431 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14433 break 2
14435 done
14436 done
14437 IFS=$as_save_IFS
14440 esac
14442 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
14443 if test -n "$KDE4_CONFIG"; then
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
14445 $as_echo "$KDE4_CONFIG" >&6; }
14446 else
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14448 $as_echo "no" >&6; }
14453 else
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
14456 $as_echo_n "checking for kde4-config... " >&6; }
14457 if test ! -x KDE4_CONFIG; then :
14459 KDE4_CONFIG="not found"
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14461 $as_echo "not found" >&6; }
14462 exit 1
14468 if test "${KDE4_CONFIG}" != "not found"; then :
14470 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
14471 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
14474 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
14476 else
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
14479 $as_echo "at least version 4 required" >&6; }
14480 exit 1
14484 else
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14487 $as_echo "not found" >&6; }
14488 exit 1
14493 if test "${KDE4_CONFIG}" = "not found"; then :
14494 enable_plasmamule=disabled
14499 if test ${enable_plasmamule:-no} = yes; then :
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
14503 $as_echo_n "checking for kde4 headers... " >&6; }
14504 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
14506 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
14508 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
14511 $as_echo "${KDE_HEADER_DIR}" >&6; }
14513 else
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
14516 $as_echo "dataengine.h not found" >&6; }
14517 exit 1
14521 else
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
14524 $as_echo "kdirwatch.h not found" >&6; }
14525 exit 1
14530 if test -z ${KDE_HEADER_DIR}; then :
14531 enable_plasmamule=disabled
14536 if test ${enable_plasmamule:-no} = yes; then :
14538 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
14539 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
14544 $as_echo_n "checking for kde4 applinks Path... " >&6; }
14545 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14547 KDE_IN_HOME="yes"
14550 if test ${KDE_IN_HOME} = "yes"; then :
14552 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14554 else
14556 if test -n ${prefix}; then :
14558 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
14559 if test -n ${KDE_APPLNK_PATH}; then :
14561 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14565 else
14567 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
14573 $as_echo "${KDE_APPLNK_PATH}" >&6; }
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
14579 $as_echo_n "checking for kde4 services Path... " >&6; }
14580 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14582 KDE_IN_HOME="yes"
14585 if test ${KDE_IN_HOME} = "yes"; then :
14587 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14589 else
14591 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
14595 $as_echo "${KDE_SERVICE_PATH}" >&6; }
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
14601 $as_echo_n "checking for kde4 plugins Path... " >&6; }
14602 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14604 KDE_IN_HOME="yes"
14607 if test ${KDE_IN_HOME} = "yes"; then :
14609 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14611 else
14613 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
14617 $as_echo "${KDE_MODULE_PATH}" >&6; }
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
14623 $as_echo_n "checking for kde4 icons Path... " >&6; }
14624 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14626 KDE_IN_HOME="yes"
14629 if test ${KDE_IN_HOME} = "yes"; then :
14631 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14633 else
14635 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
14638 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
14640 $as_echo "${KDE_ICON_PATH}" >&6; }
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
14646 $as_echo_n "checking for location for mime-type installation... " >&6; }
14647 if test `echo ${prefix} | grep home | wc -l` == 1; then :
14649 KDE_IN_HOME="yes"
14652 if test ${KDE_IN_HOME} = "yes"; then :
14654 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
14656 else
14658 if test -n ${prefix}; then :
14660 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
14661 if test -n ${KDE_MIME_PATH}; then :
14663 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14667 else
14669 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
14675 $as_echo "${KDE_MIME_PATH}" >&6; }
14679 else
14680 enable_plasmamule=disabled
14685 if test ${enable_plasmamule:-no} = yes; then :
14687 if test -z ${DEB_HOST_ARCH}; then :
14690 for ac_prog in kbuildsycoca4 kbuildsycoca
14692 # Extract the first word of "$ac_prog", so it can be a program name with args.
14693 set dummy $ac_prog; ac_word=$2
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14695 $as_echo_n "checking for $ac_word... " >&6; }
14696 if test "${ac_cv_path_KBUILDSYCOCA+set}" = set; then :
14697 $as_echo_n "(cached) " >&6
14698 else
14699 case $KBUILDSYCOCA in
14700 [\\/]* | ?:[\\/]*)
14701 ac_cv_path_KBUILDSYCOCA="$KBUILDSYCOCA" # Let the user override the test with a path.
14704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14705 for as_dir in $PATH
14707 IFS=$as_save_IFS
14708 test -z "$as_dir" && as_dir=.
14709 for ac_exec_ext in '' $ac_executable_extensions; do
14710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14711 ac_cv_path_KBUILDSYCOCA="$as_dir/$ac_word$ac_exec_ext"
14712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14713 break 2
14715 done
14716 done
14717 IFS=$as_save_IFS
14720 esac
14722 KBUILDSYCOCA=$ac_cv_path_KBUILDSYCOCA
14723 if test -n "$KBUILDSYCOCA"; then
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KBUILDSYCOCA" >&5
14725 $as_echo "$KBUILDSYCOCA" >&6; }
14726 else
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728 $as_echo "no" >&6; }
14732 test -n "$KBUILDSYCOCA" && break
14733 done
14736 if test -z ${KBUILDSYCOCA}; then :
14738 echo "No tool for KDE Systemcache Management found"
14739 exit 1
14745 # Extract the first word of "update-mime-database", so it can be a program name with args.
14746 set dummy update-mime-database; ac_word=$2
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14748 $as_echo_n "checking for $ac_word... " >&6; }
14749 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
14750 $as_echo_n "(cached) " >&6
14751 else
14752 case $UPDATE_MIME_DATABASE in
14753 [\\/]* | ?:[\\/]*)
14754 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
14757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758 for as_dir in $PATH
14760 IFS=$as_save_IFS
14761 test -z "$as_dir" && as_dir=.
14762 for ac_exec_ext in '' $ac_executable_extensions; do
14763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14764 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
14765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14766 break 2
14768 done
14769 done
14770 IFS=$as_save_IFS
14773 esac
14775 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
14776 if test -n "$UPDATE_MIME_DATABASE"; then
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
14778 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
14779 else
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14781 $as_echo "no" >&6; }
14786 if test -z ${UPDATE_MIME_DATABASE}; then :
14788 echo "No tool for MIME Datanase Management found"
14789 exit 1
14795 USER_INSTALL_HOOK="USER_INSTALL"
14803 if test ${enable_debug:-yes} = yes; then :
14805 DEBUGFLAG="-D__DEBUG__"
14812 if test x$SYS = xwin32; then
14813 SYS_WIN32_TRUE=
14814 SYS_WIN32_FALSE='#'
14815 else
14816 SYS_WIN32_TRUE='#'
14817 SYS_WIN32_FALSE=
14820 if test x$SYS = xwin32 -a "$RC" != ":"; then
14821 NEED_RC_TRUE=
14822 NEED_RC_FALSE='#'
14823 else
14824 NEED_RC_TRUE='#'
14825 NEED_RC_FALSE=
14828 if test x$SYS = xdarwin; then
14829 NEED_CORESERVICES_TRUE=
14830 NEED_CORESERVICES_FALSE='#'
14831 else
14832 NEED_CORESERVICES_TRUE='#'
14833 NEED_CORESERVICES_FALSE=
14836 if test x$USE_NLS = xyes; then
14837 COMPILE_NLS_TRUE=
14838 COMPILE_NLS_FALSE='#'
14839 else
14840 COMPILE_NLS_TRUE='#'
14841 COMPILE_NLS_FALSE=
14844 if test x$HAVE_FLEX_EXTENDED = xyes; then
14845 GENERATE_FLEX_HEADER_TRUE=
14846 GENERATE_FLEX_HEADER_FALSE='#'
14847 else
14848 GENERATE_FLEX_HEADER_TRUE='#'
14849 GENERATE_FLEX_HEADER_FALSE=
14852 if test x$INSTALL_SKINS = xyes; then
14853 INSTALL_SKINS_TRUE=
14854 INSTALL_SKINS_FALSE='#'
14855 else
14856 INSTALL_SKINS_TRUE='#'
14857 INSTALL_SKINS_FALSE=
14860 if test ${enable_plasmamule:-no} = yes; then
14861 PLASMAMULE_TRUE=
14862 PLASMAMULE_FALSE='#'
14863 else
14864 PLASMAMULE_TRUE='#'
14865 PLASMAMULE_FALSE=
14869 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
14870 COMPILE_LIB_COMMON_TRUE=
14871 COMPILE_LIB_COMMON_FALSE='#'
14872 else
14873 COMPILE_LIB_COMMON_TRUE='#'
14874 COMPILE_LIB_COMMON_FALSE=
14877 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
14878 COMPILE_LIB_EC_TRUE=
14879 COMPILE_LIB_EC_FALSE='#'
14880 else
14881 COMPILE_LIB_EC_TRUE='#'
14882 COMPILE_LIB_EC_FALSE=
14886 # Check for readline library
14887 if test ${enable_amulecmd:-no} = yes -o ${enable_webserver:-no} = yes ; then :
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
14890 $as_echo_n "checking for a readline compatible library... " >&6; }
14891 if test "${vl_cv_lib_readline+set}" = set; then :
14892 $as_echo_n "(cached) " >&6
14893 else
14895 ORIG_LIBS="$LIBS"
14896 for readline_lib in readline edit editline; do
14897 for termcap_lib in "" termcap curses ncurses; do
14898 if test -z "$termcap_lib"; then
14899 TRY_LIB="-l$readline_lib"
14900 else
14901 TRY_LIB="-l$readline_lib -l$termcap_lib"
14903 LIBS="$ORIG_LIBS $TRY_LIB"
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14907 /* Override any GCC internal prototype to avoid an error.
14908 Use char because int might match the return type of a GCC
14909 builtin and then its argument prototype would still apply. */
14910 #ifdef __cplusplus
14911 extern "C"
14912 #endif
14913 char readline ();
14915 main ()
14917 return readline ();
14919 return 0;
14921 _ACEOF
14922 if ac_fn_c_try_link "$LINENO"; then :
14923 vl_cv_lib_readline="$TRY_LIB"
14925 rm -f core conftest.err conftest.$ac_objext \
14926 conftest$ac_exeext conftest.$ac_ext
14927 if test -n "$vl_cv_lib_readline"; then
14928 break
14930 done
14931 if test -n "$vl_cv_lib_readline"; then
14932 break
14934 done
14935 if test -z "$vl_cv_lib_readline"; then
14936 vl_cv_lib_readline="no"
14937 LIBS="$ORIG_LIBS"
14938 READLINE_LIBS=""
14939 else
14940 READLINE_LIBS="$vl_cv_lib_readline"
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline" >&5
14945 $as_echo "$vl_cv_lib_readline" >&6; }
14947 if test "$vl_cv_lib_readline" != "no"; then
14949 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
14951 for ac_header in readline.h readline/readline.h
14952 do :
14953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14954 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14955 eval as_val=\$$as_ac_Header
14956 if test "x$as_val" = x""yes; then :
14957 cat >>confdefs.h <<_ACEOF
14958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14959 _ACEOF
14963 done
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
14966 $as_echo_n "checking whether readline supports history... " >&6; }
14967 if test "${vl_cv_lib_readline_history+set}" = set; then :
14968 $as_echo_n "(cached) " >&6
14969 else
14971 vl_cv_lib_readline_history="no"
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14975 /* Override any GCC internal prototype to avoid an error.
14976 Use char because int might match the return type of a GCC
14977 builtin and then its argument prototype would still apply. */
14978 #ifdef __cplusplus
14979 extern "C"
14980 #endif
14981 char add_history ();
14983 main ()
14985 return add_history ();
14987 return 0;
14989 _ACEOF
14990 if ac_fn_c_try_link "$LINENO"; then :
14991 vl_cv_lib_readline_history="yes"
14993 rm -f core conftest.err conftest.$ac_objext \
14994 conftest$ac_exeext conftest.$ac_ext
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_lib_readline_history" >&5
14998 $as_echo "$vl_cv_lib_readline_history" >&6; }
14999 if test "$vl_cv_lib_readline_history" = "yes"; then
15001 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
15003 for ac_header in history.h readline/history.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
15020 LIBS="$ORIG_LIBS"
15024 if test ${PLASMAMULE:-no} = yes; then :
15027 if test -z ${QT_MOC}; then :
15029 for ac_prog in moc-qt4 moc
15031 # Extract the first word of "$ac_prog", so it can be a program name with args.
15032 set dummy $ac_prog; ac_word=$2
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15034 $as_echo_n "checking for $ac_word... " >&6; }
15035 if test "${ac_cv_path_QT_MOC+set}" = set; then :
15036 $as_echo_n "(cached) " >&6
15037 else
15038 case $QT_MOC in
15039 [\\/]* | ?:[\\/]*)
15040 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
15043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15044 for as_dir in $PATH
15046 IFS=$as_save_IFS
15047 test -z "$as_dir" && as_dir=.
15048 for ac_exec_ext in '' $ac_executable_extensions; do
15049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15050 ac_cv_path_QT_MOC="$as_dir/$ac_word$ac_exec_ext"
15051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15052 break 2
15054 done
15055 done
15056 IFS=$as_save_IFS
15059 esac
15061 QT_MOC=$ac_cv_path_QT_MOC
15062 if test -n "$QT_MOC"; then
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
15064 $as_echo "$QT_MOC" >&6; }
15065 else
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15067 $as_echo "no" >&6; }
15071 test -n "$QT_MOC" && break
15072 done
15074 if test -z ${QT_MOC}; then :
15076 echo moc not found
15077 exit 1
15081 else
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5
15084 $as_echo_n "checking for moc... " >&6; }
15085 if test -x ${QT_MOC}; then :
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${QT_MOC}" >&5
15088 $as_echo "${QT_MOC}" >&6; }
15091 else
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"not found\"" >&5
15094 $as_echo "\"not found\"" >&6; }
15095 QT_MOC="not found"
15096 exit 1
15103 if test "${QT_MOC}" != "not found"; then :
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc version >= 4" >&5
15106 $as_echo_n "checking for moc version >= 4... " >&6; }
15107 QT_MOC_VERSION=`${QT_MOC} -v 2>&1 | sed -e 's/^.* (/(/'`
15108 if test `echo ${QT_MOC_VERSION} | sed -e 's/^.* //' -e 's/\..*$//'` = 4; then :
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${QT_MOC_VERSION}" >&5
15111 $as_echo "found ${QT_MOC_VERSION}" >&6; }
15113 else
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found ${QT_MOC_VERSION} is too old" >&5
15116 $as_echo "not found ${QT_MOC_VERSION} is too old" >&6; }
15117 QT_MOC="not found"
15118 exit 1
15124 if test "${QT_MOC}" = "not found"; then :
15125 enable_plasmamule=disabled
15128 if test ${enable_plasmamule:-no} = yes; then :
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt" >&5
15133 $as_echo_n "checking for qt... " >&6; }
15134 if test `${PKG_CONFIG} QtCore` --exists && `${PKG_CONFIG} QtGui --exists`; then :
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15137 $as_echo "found" >&6; }
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core cflags" >&5
15139 $as_echo_n "checking for qt core cflags... " >&6; }
15140 QT_CORE_CXXFLAGS=`${PKG_CONFIG} --cflags QtCore`
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_CFLAGS" >&5
15142 $as_echo "$QT_CORE_CFLAGS" >&6; }
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt core libs" >&5
15144 $as_echo_n "checking for qt core libs... " >&6; }
15145 QT_CORE_LIBS=`${PKG_CONFIG} --libs QtCore`
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CORE_LIBS" >&5
15147 $as_echo "$QT_CORE_LIBS" >&6; }
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui cflags" >&5
15149 $as_echo_n "checking for qt gui cflags... " >&6; }
15150 QT_GUI_CXXFLAGS=`${PKG_CONFIG} --cflags QtGui`
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_CFLAGS" >&5
15152 $as_echo "$QT_GUI_CFLAGS" >&6; }
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qt gui libs" >&5
15154 $as_echo_n "checking for qt gui libs... " >&6; }
15155 QT_GUI_LIBS=`${PKG_CONFIG} --libs QtGui`
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_GUI_LIBS" >&5
15157 $as_echo "$QT_GUI_LIBS" >&6; }
15159 else
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15161 $as_echo "not found" >&6; }
15162 exit 1
15166 if test `${PKG_CONFIG} QtDBus --modversion | sed -e 's/\.//g'` -ge 470 ; then :
15168 QT_DBUS_LDFLAGS="-lQtDBus"
15178 if test -z "${QT_CORE_CXXFLAGS}"; then :
15179 enable_plasmamule=disabled
15184 if test ${enable_plasmamule:-no} = yes; then :
15187 if test -z ${KDE4_CONFIG}; then :
15189 # Extract the first word of "kde4-config", so it can be a program name with args.
15190 set dummy kde4-config; ac_word=$2
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15192 $as_echo_n "checking for $ac_word... " >&6; }
15193 if test "${ac_cv_path_KDE4_CONFIG+set}" = set; then :
15194 $as_echo_n "(cached) " >&6
15195 else
15196 case $KDE4_CONFIG in
15197 [\\/]* | ?:[\\/]*)
15198 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path.
15201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15202 for as_dir in $PATH
15204 IFS=$as_save_IFS
15205 test -z "$as_dir" && as_dir=.
15206 for ac_exec_ext in '' $ac_executable_extensions; do
15207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15208 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15210 break 2
15212 done
15213 done
15214 IFS=$as_save_IFS
15217 esac
15219 KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG
15220 if test -n "$KDE4_CONFIG"; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5
15222 $as_echo "$KDE4_CONFIG" >&6; }
15223 else
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225 $as_echo "no" >&6; }
15230 else
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5
15233 $as_echo_n "checking for kde4-config... " >&6; }
15234 if test ! -x KDE4_CONFIG; then :
15236 KDE4_CONFIG="not found"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15238 $as_echo "not found" >&6; }
15239 exit 1
15245 if test "${KDE4_CONFIG}" != "not found"; then :
15247 KDE_CONF_VER=`${KDE4_CONFIG} --version | grep KDE | sed -e 's/^.*: //' -e 's/ (.*$//'`
15248 if test `echo ${KDE_CONF_VER} | sed -e 's/\..*$//'` = 4; then :
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&5
15251 $as_echo "found ${KDE4_CONFIG} with version ${KDE_CONF_VER}" >&6; }
15253 else
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: at least version 4 required" >&5
15256 $as_echo "at least version 4 required" >&6; }
15257 exit 1
15261 else
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15264 $as_echo "not found" >&6; }
15265 exit 1
15270 if test "${KDE4_CONFIG}" = "not found"; then :
15271 enable_plasmamule=disabled
15276 if test ${enable_plasmamule:-no} = yes; then :
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 headers" >&5
15280 $as_echo_n "checking for kde4 headers... " >&6; }
15281 KDE_HEADER_DIR=`${KDE4_CONFIG} --path include`
15283 if test -f ${KDE_HEADER_DIR}kdirwatch.h; then :
15285 if test -f ${KDE_HEADER_DIR}plasma/dataengine.h; then :
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_HEADER_DIR}" >&5
15288 $as_echo "${KDE_HEADER_DIR}" >&6; }
15290 else
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dataengine.h not found" >&5
15293 $as_echo "dataengine.h not found" >&6; }
15294 exit 1
15298 else
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: kdirwatch.h not found" >&5
15301 $as_echo "kdirwatch.h not found" >&6; }
15302 exit 1
15307 if test -z ${KDE_HEADER_DIR}; then :
15308 enable_plasmamule=disabled
15313 if test ${enable_plasmamule:-no} = yes; then :
15315 if test -e `$BUILD_CC -print-file-name=libplasma.so` &&
15316 test -e `$BUILD_CC -print-file-name=libkdecore.so`; then :
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 applinks Path" >&5
15321 $as_echo_n "checking for kde4 applinks Path... " >&6; }
15322 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15324 KDE_IN_HOME="yes"
15327 if test ${KDE_IN_HOME} = "yes"; then :
15329 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15331 else
15333 if test -n ${prefix}; then :
15335 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep ${prefix} | head -1`
15336 if test -n ${KDE_APPLNK_PATH}; then :
15338 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15342 else
15344 KDE_APPLNK_PATH=`${KDE4_CONFIG} --path xdgdata-apps | tr ":" "\n" | grep -vE '(/home|/root)' | head -1`
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_APPLNK_PATH}" >&5
15350 $as_echo "${KDE_APPLNK_PATH}" >&6; }
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 services Path" >&5
15356 $as_echo_n "checking for kde4 services Path... " >&6; }
15357 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15359 KDE_IN_HOME="yes"
15362 if test ${KDE_IN_HOME} = "yes"; then :
15364 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15366 else
15368 KDE_SERVICE_PATH=`${KDE4_CONFIG} --path services | tr ":" "\n" | grep /usr | head -1`
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_SERVICE_PATH}" >&5
15372 $as_echo "${KDE_SERVICE_PATH}" >&6; }
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 plugins Path" >&5
15378 $as_echo_n "checking for kde4 plugins Path... " >&6; }
15379 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15381 KDE_IN_HOME="yes"
15384 if test ${KDE_IN_HOME} = "yes"; then :
15386 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15388 else
15390 KDE_MODULE_PATH=`${KDE4_CONFIG} --path module | tr ":" "\n" | grep /usr | head -1`
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MODULE_PATH}" >&5
15394 $as_echo "${KDE_MODULE_PATH}" >&6; }
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4 icons Path" >&5
15400 $as_echo_n "checking for kde4 icons Path... " >&6; }
15401 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15403 KDE_IN_HOME="yes"
15406 if test ${KDE_IN_HOME} = "yes"; then :
15408 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15410 else
15412 KDE_ICON_PATH=`${KDE4_CONFIG} --path icon | tr ":" "\n" | grep /usr | head -1`
15415 KDE_ICON_PATH=${KDE_ICON_PATH}hicolor/scalable/mimetypes/
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_ICON_PATH}" >&5
15417 $as_echo "${KDE_ICON_PATH}" >&6; }
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location for mime-type installation" >&5
15423 $as_echo_n "checking for location for mime-type installation... " >&6; }
15424 if test `echo ${prefix} | grep home | wc -l` == 1; then :
15426 KDE_IN_HOME="yes"
15429 if test ${KDE_IN_HOME} = "yes"; then :
15431 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP '(/home|/root)' | head -1`
15433 else
15435 if test -n ${prefix}; then :
15437 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | grep ${prefix} | head -1`
15438 if test -n ${KDE_MIME_PATH}; then :
15440 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15444 else
15446 KDE_MIME_PATH=`${KDE4_CONFIG} --path xdgdata-mime | tr ":" "\n" | $EGREP -v '(/home|/root)' | head -1`
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${KDE_MIME_PATH}" >&5
15452 $as_echo "${KDE_MIME_PATH}" >&6; }
15456 else
15457 enable_plasmamule=disabled
15462 if test ${enable_plasmamule:-no} = yes; then :
15464 if test -z ${DEB_HOST_ARCH}; then :
15467 for ac_prog in kbuildsycoca4 kbuildsycoca
15469 # Extract the first word of "$ac_prog", so it can be a program name with args.
15470 set dummy $ac_prog; ac_word=$2
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15472 $as_echo_n "checking for $ac_word... " >&6; }
15473 if test "${ac_cv_path_KBUILDSYCOCA+set}" = set; then :
15474 $as_echo_n "(cached) " >&6
15475 else
15476 case $KBUILDSYCOCA in
15477 [\\/]* | ?:[\\/]*)
15478 ac_cv_path_KBUILDSYCOCA="$KBUILDSYCOCA" # Let the user override the test with a path.
15481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15482 for as_dir in $PATH
15484 IFS=$as_save_IFS
15485 test -z "$as_dir" && as_dir=.
15486 for ac_exec_ext in '' $ac_executable_extensions; do
15487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15488 ac_cv_path_KBUILDSYCOCA="$as_dir/$ac_word$ac_exec_ext"
15489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15490 break 2
15492 done
15493 done
15494 IFS=$as_save_IFS
15497 esac
15499 KBUILDSYCOCA=$ac_cv_path_KBUILDSYCOCA
15500 if test -n "$KBUILDSYCOCA"; then
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KBUILDSYCOCA" >&5
15502 $as_echo "$KBUILDSYCOCA" >&6; }
15503 else
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15505 $as_echo "no" >&6; }
15509 test -n "$KBUILDSYCOCA" && break
15510 done
15513 if test -z ${KBUILDSYCOCA}; then :
15515 echo "No tool for KDE Systemcache Management found"
15516 exit 1
15522 # Extract the first word of "update-mime-database", so it can be a program name with args.
15523 set dummy update-mime-database; ac_word=$2
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15525 $as_echo_n "checking for $ac_word... " >&6; }
15526 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
15527 $as_echo_n "(cached) " >&6
15528 else
15529 case $UPDATE_MIME_DATABASE in
15530 [\\/]* | ?:[\\/]*)
15531 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
15534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15535 for as_dir in $PATH
15537 IFS=$as_save_IFS
15538 test -z "$as_dir" && as_dir=.
15539 for ac_exec_ext in '' $ac_executable_extensions; do
15540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15541 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
15542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15543 break 2
15545 done
15546 done
15547 IFS=$as_save_IFS
15550 esac
15552 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
15553 if test -n "$UPDATE_MIME_DATABASE"; then
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
15555 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
15556 else
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15558 $as_echo "no" >&6; }
15563 if test -z ${UPDATE_MIME_DATABASE}; then :
15565 echo "No tool for MIME Datanase Management found"
15566 exit 1
15572 USER_INSTALL_HOOK="USER_INSTALL"
15580 if test ${enable_debug:-yes} = yes; then :
15582 DEBUGFLAG="-D__DEBUG__"
15589 # DO NOT MOVE UP... THERE'S A REASON TO BE HERE!!
15592 # Check whether --enable-ccache was given.
15593 if test "${enable_ccache+set}" = set; then :
15594 enableval=$enable_ccache;
15600 # Check whether --with-ccache-prefix was given.
15601 if test "${with_ccache_prefix+set}" = set; then :
15602 withval=$with_ccache_prefix;
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache support should be added" >&5
15607 $as_echo_n "checking whether ccache support should be added... " >&6; }
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15609 $as_echo "${enable_ccache:-no}" >&6; }
15611 if test ${enable_ccache:-no} = yes; then :
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache presence" >&5
15614 $as_echo_n "checking for ccache presence... " >&6; }
15615 if test -z "$with_ccache_prefix"; then :
15617 ccache_full=`which ccache`
15618 with_ccache_prefix=`dirname ${ccache_full}`
15621 if $with_ccache_prefix/ccache -V >/dev/null 2>&1; then :
15623 CC="$with_ccache_prefix/ccache $CC"
15624 CXX="$with_ccache_prefix/ccache $CXX"
15625 BUILD_CC="$with_ccache_prefix/ccache $BUILD_CC"
15627 else
15628 enable_ccache=no
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_ccache:-no}" >&5
15631 $as_echo "${enable_ccache:-no}" >&6; }
15636 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"
15638 ac_config_files="$ac_config_files po/Makefile.in Compilation.flags"
15640 if test x$SYS = xwin32; then :
15641 ac_config_files="$ac_config_files version.rc"
15644 cat >confcache <<\_ACEOF
15645 # This file is a shell script that caches the results of configure
15646 # tests run on this system so they can be shared between configure
15647 # scripts and configure runs, see configure's option --config-cache.
15648 # It is not useful on other systems. If it contains results you don't
15649 # want to keep, you may remove or edit it.
15651 # config.status only pays attention to the cache file if you give it
15652 # the --recheck option to rerun configure.
15654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15656 # following values.
15658 _ACEOF
15660 # The following way of writing the cache mishandles newlines in values,
15661 # but we know of no workaround that is simple, portable, and efficient.
15662 # So, we kill variables containing newlines.
15663 # Ultrix sh set writes to stderr and can't be redirected directly,
15664 # and sets the high bit in the cache file unless we assign to the vars.
15666 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15667 eval ac_val=\$$ac_var
15668 case $ac_val in #(
15669 *${as_nl}*)
15670 case $ac_var in #(
15671 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15672 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15673 esac
15674 case $ac_var in #(
15675 _ | IFS | as_nl) ;; #(
15676 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15677 *) { eval $ac_var=; unset $ac_var;} ;;
15678 esac ;;
15679 esac
15680 done
15682 (set) 2>&1 |
15683 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15684 *${as_nl}ac_space=\ *)
15685 # `set' does not quote correctly, so add quotes: double-quote
15686 # substitution turns \\\\ into \\, and sed turns \\ into \.
15687 sed -n \
15688 "s/'/'\\\\''/g;
15689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15690 ;; #(
15692 # `set' quotes correctly as required by POSIX, so do not add quotes.
15693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15695 esac |
15696 sort
15698 sed '
15699 /^ac_cv_env_/b end
15700 t clear
15701 :clear
15702 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15703 t end
15704 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15705 :end' >>confcache
15706 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15707 if test -w "$cache_file"; then
15708 test "x$cache_file" != "x/dev/null" &&
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15710 $as_echo "$as_me: updating cache $cache_file" >&6;}
15711 cat confcache >$cache_file
15712 else
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15714 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15717 rm -f confcache
15719 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15720 # Let make expand exec_prefix.
15721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15723 DEFS=-DHAVE_CONFIG_H
15725 ac_libobjs=
15726 ac_ltlibobjs=
15727 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15728 # 1. Remove the extension, and $U if already installed.
15729 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15730 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15731 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15732 # will be set to the directory where LIBOBJS objects are built.
15733 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15734 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15735 done
15736 LIBOBJS=$ac_libobjs
15738 LTLIBOBJS=$ac_ltlibobjs
15741 if test -n "$EXEEXT"; then
15742 am__EXEEXT_TRUE=
15743 am__EXEEXT_FALSE='#'
15744 else
15745 am__EXEEXT_TRUE='#'
15746 am__EXEEXT_FALSE=
15749 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15750 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15753 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15754 as_fn_error "conditional \"AMDEP\" was never defined.
15755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15757 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15758 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15761 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15762 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15765 if test -z "${MONOLITHIC_TRUE}" && test -z "${MONOLITHIC_FALSE}"; then
15766 as_fn_error "conditional \"MONOLITHIC\" was never defined.
15767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15769 if test -z "${AMULE_DAEMON_TRUE}" && test -z "${AMULE_DAEMON_FALSE}"; then
15770 as_fn_error "conditional \"AMULE_DAEMON\" was never defined.
15771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15773 if test -z "${COMPILE_CMD_TRUE}" && test -z "${COMPILE_CMD_FALSE}"; then
15774 as_fn_error "conditional \"COMPILE_CMD\" was never defined.
15775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15777 if test -z "${WEB_TRUE}" && test -z "${WEB_FALSE}"; then
15778 as_fn_error "conditional \"WEB\" was never defined.
15779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15781 if test -z "${AMULE_GUI_TRUE}" && test -z "${AMULE_GUI_FALSE}"; then
15782 as_fn_error "conditional \"AMULE_GUI\" was never defined.
15783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15785 if test -z "${CAS_TRUE}" && test -z "${CAS_FALSE}"; then
15786 as_fn_error "conditional \"CAS\" was never defined.
15787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15789 if test -z "${WXCAS_TRUE}" && test -z "${WXCAS_FALSE}"; then
15790 as_fn_error "conditional \"WXCAS\" was never defined.
15791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15793 if test -z "${ED2K_TRUE}" && test -z "${ED2K_FALSE}"; then
15794 as_fn_error "conditional \"ED2K\" was never defined.
15795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15797 if test -z "${ALC_TRUE}" && test -z "${ALC_FALSE}"; then
15798 as_fn_error "conditional \"ALC\" was never defined.
15799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15801 if test -z "${ALCC_TRUE}" && test -z "${ALCC_FALSE}"; then
15802 as_fn_error "conditional \"ALCC\" was never defined.
15803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15805 if test -z "${XAS_TRUE}" && test -z "${XAS_FALSE}"; then
15806 as_fn_error "conditional \"XAS\" was never defined.
15807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15809 if test -z "${FILEVIEW_TRUE}" && test -z "${FILEVIEW_FALSE}"; then
15810 as_fn_error "conditional \"FILEVIEW\" was never defined.
15811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15813 if test -z "${SYS_WIN32_TRUE}" && test -z "${SYS_WIN32_FALSE}"; then
15814 as_fn_error "conditional \"SYS_WIN32\" was never defined.
15815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15817 if test -z "${NEED_RC_TRUE}" && test -z "${NEED_RC_FALSE}"; then
15818 as_fn_error "conditional \"NEED_RC\" was never defined.
15819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15821 if test -z "${NEED_CORESERVICES_TRUE}" && test -z "${NEED_CORESERVICES_FALSE}"; then
15822 as_fn_error "conditional \"NEED_CORESERVICES\" was never defined.
15823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15825 if test -z "${COMPILE_NLS_TRUE}" && test -z "${COMPILE_NLS_FALSE}"; then
15826 as_fn_error "conditional \"COMPILE_NLS\" was never defined.
15827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15829 if test -z "${GENERATE_FLEX_HEADER_TRUE}" && test -z "${GENERATE_FLEX_HEADER_FALSE}"; then
15830 as_fn_error "conditional \"GENERATE_FLEX_HEADER\" was never defined.
15831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15833 if test -z "${INSTALL_SKINS_TRUE}" && test -z "${INSTALL_SKINS_FALSE}"; then
15834 as_fn_error "conditional \"INSTALL_SKINS\" was never defined.
15835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15837 if test -z "${PLASMAMULE_TRUE}" && test -z "${PLASMAMULE_FALSE}"; then
15838 as_fn_error "conditional \"PLASMAMULE\" was never defined.
15839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15841 if test -z "${COMPILE_LIB_COMMON_TRUE}" && test -z "${COMPILE_LIB_COMMON_FALSE}"; then
15842 as_fn_error "conditional \"COMPILE_LIB_COMMON\" was never defined.
15843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15845 if test -z "${COMPILE_LIB_EC_TRUE}" && test -z "${COMPILE_LIB_EC_FALSE}"; then
15846 as_fn_error "conditional \"COMPILE_LIB_EC\" was never defined.
15847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15850 : ${CONFIG_STATUS=./config.status}
15851 ac_write_fail=0
15852 ac_clean_files_save=$ac_clean_files
15853 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15855 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15856 as_write_fail=0
15857 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15858 #! $SHELL
15859 # Generated by $as_me.
15860 # Run this file to recreate the current configuration.
15861 # Compiler output produced by configure, useful for debugging
15862 # configure, is in config.log if it exists.
15864 debug=false
15865 ac_cs_recheck=false
15866 ac_cs_silent=false
15868 SHELL=\${CONFIG_SHELL-$SHELL}
15869 export SHELL
15870 _ASEOF
15871 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15872 ## -------------------- ##
15873 ## M4sh Initialization. ##
15874 ## -------------------- ##
15876 # Be more Bourne compatible
15877 DUALCASE=1; export DUALCASE # for MKS sh
15878 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15879 emulate sh
15880 NULLCMD=:
15881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15882 # is contrary to our usage. Disable this feature.
15883 alias -g '${1+"$@"}'='"$@"'
15884 setopt NO_GLOB_SUBST
15885 else
15886 case `(set -o) 2>/dev/null` in #(
15887 *posix*) :
15888 set -o posix ;; #(
15889 *) :
15891 esac
15895 as_nl='
15897 export as_nl
15898 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15899 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15900 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15902 # Prefer a ksh shell builtin over an external printf program on Solaris,
15903 # but without wasting forks for bash or zsh.
15904 if test -z "$BASH_VERSION$ZSH_VERSION" \
15905 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15906 as_echo='print -r --'
15907 as_echo_n='print -rn --'
15908 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15909 as_echo='printf %s\n'
15910 as_echo_n='printf %s'
15911 else
15912 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15913 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15914 as_echo_n='/usr/ucb/echo -n'
15915 else
15916 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15917 as_echo_n_body='eval
15918 arg=$1;
15919 case $arg in #(
15920 *"$as_nl"*)
15921 expr "X$arg" : "X\\(.*\\)$as_nl";
15922 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15923 esac;
15924 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15926 export as_echo_n_body
15927 as_echo_n='sh -c $as_echo_n_body as_echo'
15929 export as_echo_body
15930 as_echo='sh -c $as_echo_body as_echo'
15933 # The user is always right.
15934 if test "${PATH_SEPARATOR+set}" != set; then
15935 PATH_SEPARATOR=:
15936 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15937 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15938 PATH_SEPARATOR=';'
15943 # IFS
15944 # We need space, tab and new line, in precisely that order. Quoting is
15945 # there to prevent editors from complaining about space-tab.
15946 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15947 # splitting by setting IFS to empty value.)
15948 IFS=" "" $as_nl"
15950 # Find who we are. Look in the path if we contain no directory separator.
15951 case $0 in #((
15952 *[\\/]* ) as_myself=$0 ;;
15953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15954 for as_dir in $PATH
15956 IFS=$as_save_IFS
15957 test -z "$as_dir" && as_dir=.
15958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15959 done
15960 IFS=$as_save_IFS
15963 esac
15964 # We did not find ourselves, most probably we were run as `sh COMMAND'
15965 # in which case we are not to be found in the path.
15966 if test "x$as_myself" = x; then
15967 as_myself=$0
15969 if test ! -f "$as_myself"; then
15970 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15971 exit 1
15974 # Unset variables that we do not need and which cause bugs (e.g. in
15975 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15976 # suppresses any "Segmentation fault" message there. '((' could
15977 # trigger a bug in pdksh 5.2.14.
15978 for as_var in BASH_ENV ENV MAIL MAILPATH
15979 do eval test x\${$as_var+set} = xset \
15980 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15981 done
15982 PS1='$ '
15983 PS2='> '
15984 PS4='+ '
15986 # NLS nuisances.
15987 LC_ALL=C
15988 export LC_ALL
15989 LANGUAGE=C
15990 export LANGUAGE
15992 # CDPATH.
15993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15996 # as_fn_error ERROR [LINENO LOG_FD]
15997 # ---------------------------------
15998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16000 # script with status $?, using 1 if that was 0.
16001 as_fn_error ()
16003 as_status=$?; test $as_status -eq 0 && as_status=1
16004 if test "$3"; then
16005 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16006 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16008 $as_echo "$as_me: error: $1" >&2
16009 as_fn_exit $as_status
16010 } # as_fn_error
16013 # as_fn_set_status STATUS
16014 # -----------------------
16015 # Set $? to STATUS, without forking.
16016 as_fn_set_status ()
16018 return $1
16019 } # as_fn_set_status
16021 # as_fn_exit STATUS
16022 # -----------------
16023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16024 as_fn_exit ()
16026 set +e
16027 as_fn_set_status $1
16028 exit $1
16029 } # as_fn_exit
16031 # as_fn_unset VAR
16032 # ---------------
16033 # Portably unset VAR.
16034 as_fn_unset ()
16036 { eval $1=; unset $1;}
16038 as_unset=as_fn_unset
16039 # as_fn_append VAR VALUE
16040 # ----------------------
16041 # Append the text in VALUE to the end of the definition contained in VAR. Take
16042 # advantage of any shell optimizations that allow amortized linear growth over
16043 # repeated appends, instead of the typical quadratic growth present in naive
16044 # implementations.
16045 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16046 eval 'as_fn_append ()
16048 eval $1+=\$2
16050 else
16051 as_fn_append ()
16053 eval $1=\$$1\$2
16055 fi # as_fn_append
16057 # as_fn_arith ARG...
16058 # ------------------
16059 # Perform arithmetic evaluation on the ARGs, and store the result in the
16060 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16061 # must be portable across $(()) and expr.
16062 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16063 eval 'as_fn_arith ()
16065 as_val=$(( $* ))
16067 else
16068 as_fn_arith ()
16070 as_val=`expr "$@" || test $? -eq 1`
16072 fi # as_fn_arith
16075 if expr a : '\(a\)' >/dev/null 2>&1 &&
16076 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16077 as_expr=expr
16078 else
16079 as_expr=false
16082 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16083 as_basename=basename
16084 else
16085 as_basename=false
16088 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16089 as_dirname=dirname
16090 else
16091 as_dirname=false
16094 as_me=`$as_basename -- "$0" ||
16095 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16096 X"$0" : 'X\(//\)$' \| \
16097 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16098 $as_echo X/"$0" |
16099 sed '/^.*\/\([^/][^/]*\)\/*$/{
16100 s//\1/
16103 /^X\/\(\/\/\)$/{
16104 s//\1/
16107 /^X\/\(\/\).*/{
16108 s//\1/
16111 s/.*/./; q'`
16113 # Avoid depending upon Character Ranges.
16114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16117 as_cr_digits='0123456789'
16118 as_cr_alnum=$as_cr_Letters$as_cr_digits
16120 ECHO_C= ECHO_N= ECHO_T=
16121 case `echo -n x` in #(((((
16122 -n*)
16123 case `echo 'xy\c'` in
16124 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16125 xy) ECHO_C='\c';;
16126 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16127 ECHO_T=' ';;
16128 esac;;
16130 ECHO_N='-n';;
16131 esac
16133 rm -f conf$$ conf$$.exe conf$$.file
16134 if test -d conf$$.dir; then
16135 rm -f conf$$.dir/conf$$.file
16136 else
16137 rm -f conf$$.dir
16138 mkdir conf$$.dir 2>/dev/null
16140 if (echo >conf$$.file) 2>/dev/null; then
16141 if ln -s conf$$.file conf$$ 2>/dev/null; then
16142 as_ln_s='ln -s'
16143 # ... but there are two gotchas:
16144 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16145 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16146 # In both cases, we have to default to `cp -p'.
16147 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16148 as_ln_s='cp -p'
16149 elif ln conf$$.file conf$$ 2>/dev/null; then
16150 as_ln_s=ln
16151 else
16152 as_ln_s='cp -p'
16154 else
16155 as_ln_s='cp -p'
16157 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16158 rmdir conf$$.dir 2>/dev/null
16161 # as_fn_mkdir_p
16162 # -------------
16163 # Create "$as_dir" as a directory, including parents if necessary.
16164 as_fn_mkdir_p ()
16167 case $as_dir in #(
16168 -*) as_dir=./$as_dir;;
16169 esac
16170 test -d "$as_dir" || eval $as_mkdir_p || {
16171 as_dirs=
16172 while :; do
16173 case $as_dir in #(
16174 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16175 *) as_qdir=$as_dir;;
16176 esac
16177 as_dirs="'$as_qdir' $as_dirs"
16178 as_dir=`$as_dirname -- "$as_dir" ||
16179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16180 X"$as_dir" : 'X\(//\)[^/]' \| \
16181 X"$as_dir" : 'X\(//\)$' \| \
16182 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16183 $as_echo X"$as_dir" |
16184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16185 s//\1/
16188 /^X\(\/\/\)[^/].*/{
16189 s//\1/
16192 /^X\(\/\/\)$/{
16193 s//\1/
16196 /^X\(\/\).*/{
16197 s//\1/
16200 s/.*/./; q'`
16201 test -d "$as_dir" && break
16202 done
16203 test -z "$as_dirs" || eval "mkdir $as_dirs"
16204 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16207 } # as_fn_mkdir_p
16208 if mkdir -p . 2>/dev/null; then
16209 as_mkdir_p='mkdir -p "$as_dir"'
16210 else
16211 test -d ./-p && rmdir ./-p
16212 as_mkdir_p=false
16215 if test -x / >/dev/null 2>&1; then
16216 as_test_x='test -x'
16217 else
16218 if ls -dL / >/dev/null 2>&1; then
16219 as_ls_L_option=L
16220 else
16221 as_ls_L_option=
16223 as_test_x='
16224 eval sh -c '\''
16225 if test -d "$1"; then
16226 test -d "$1/.";
16227 else
16228 case $1 in #(
16229 -*)set "./$1";;
16230 esac;
16231 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16232 ???[sx]*):;;*)false;;esac;fi
16233 '\'' sh
16236 as_executable_p=$as_test_x
16238 # Sed expression to map a string onto a valid CPP name.
16239 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16241 # Sed expression to map a string onto a valid variable name.
16242 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16245 exec 6>&1
16246 ## ----------------------------------- ##
16247 ## Main body of $CONFIG_STATUS script. ##
16248 ## ----------------------------------- ##
16249 _ASEOF
16250 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16253 # Save the log message, to keep $0 and so on meaningful, and to
16254 # report actual input values of CONFIG_FILES etc. instead of their
16255 # values after options handling.
16256 ac_log="
16257 This file was extended by aMule $as_me SVN, which was
16258 generated by GNU Autoconf 2.65. Invocation command line was
16260 CONFIG_FILES = $CONFIG_FILES
16261 CONFIG_HEADERS = $CONFIG_HEADERS
16262 CONFIG_LINKS = $CONFIG_LINKS
16263 CONFIG_COMMANDS = $CONFIG_COMMANDS
16264 $ $0 $@
16266 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16269 _ACEOF
16271 case $ac_config_files in *"
16272 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16273 esac
16275 case $ac_config_headers in *"
16276 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16277 esac
16280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16281 # Files that config.status was made for.
16282 config_files="$ac_config_files"
16283 config_headers="$ac_config_headers"
16284 config_commands="$ac_config_commands"
16286 _ACEOF
16288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16289 ac_cs_usage="\
16290 \`$as_me' instantiates files and other configuration actions
16291 from templates according to the current configuration. Unless the files
16292 and actions are specified as TAGs, all are instantiated by default.
16294 Usage: $0 [OPTION]... [TAG]...
16296 -h, --help print this help, then exit
16297 -V, --version print version number and configuration settings, then exit
16298 --config print configuration, then exit
16299 -q, --quiet, --silent
16300 do not print progress messages
16301 -d, --debug don't remove temporary files
16302 --recheck update $as_me by reconfiguring in the same conditions
16303 --file=FILE[:TEMPLATE]
16304 instantiate the configuration file FILE
16305 --header=FILE[:TEMPLATE]
16306 instantiate the configuration header FILE
16308 Configuration files:
16309 $config_files
16311 Configuration headers:
16312 $config_headers
16314 Configuration commands:
16315 $config_commands
16317 Report bugs to <admin@amule.org>."
16319 _ACEOF
16320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16322 ac_cs_version="\\
16323 aMule config.status SVN
16324 configured by $0, generated by GNU Autoconf 2.65,
16325 with options \\"\$ac_cs_config\\"
16327 Copyright (C) 2009 Free Software Foundation, Inc.
16328 This config.status script is free software; the Free Software Foundation
16329 gives unlimited permission to copy, distribute and modify it."
16331 ac_pwd='$ac_pwd'
16332 srcdir='$srcdir'
16333 INSTALL='$INSTALL'
16334 MKDIR_P='$MKDIR_P'
16335 AWK='$AWK'
16336 test -n "\$AWK" || AWK=awk
16337 _ACEOF
16339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16340 # The default lists apply if the user does not specify any file.
16341 ac_need_defaults=:
16342 while test $# != 0
16344 case $1 in
16345 --*=*)
16346 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16347 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16348 ac_shift=:
16351 ac_option=$1
16352 ac_optarg=$2
16353 ac_shift=shift
16355 esac
16357 case $ac_option in
16358 # Handling of the options.
16359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16360 ac_cs_recheck=: ;;
16361 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16362 $as_echo "$ac_cs_version"; exit ;;
16363 --config | --confi | --conf | --con | --co | --c )
16364 $as_echo "$ac_cs_config"; exit ;;
16365 --debug | --debu | --deb | --de | --d | -d )
16366 debug=: ;;
16367 --file | --fil | --fi | --f )
16368 $ac_shift
16369 case $ac_optarg in
16370 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16371 esac
16372 as_fn_append CONFIG_FILES " '$ac_optarg'"
16373 ac_need_defaults=false;;
16374 --header | --heade | --head | --hea )
16375 $ac_shift
16376 case $ac_optarg in
16377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16378 esac
16379 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16380 ac_need_defaults=false;;
16381 --he | --h)
16382 # Conflict between --help and --header
16383 as_fn_error "ambiguous option: \`$1'
16384 Try \`$0 --help' for more information.";;
16385 --help | --hel | -h )
16386 $as_echo "$ac_cs_usage"; exit ;;
16387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16389 ac_cs_silent=: ;;
16391 # This is an error.
16392 -*) as_fn_error "unrecognized option: \`$1'
16393 Try \`$0 --help' for more information." ;;
16395 *) as_fn_append ac_config_targets " $1"
16396 ac_need_defaults=false ;;
16398 esac
16399 shift
16400 done
16402 ac_configure_extra_args=
16404 if $ac_cs_silent; then
16405 exec 6>/dev/null
16406 ac_configure_extra_args="$ac_configure_extra_args --silent"
16409 _ACEOF
16410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16411 if \$ac_cs_recheck; then
16412 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16413 shift
16414 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16415 CONFIG_SHELL='$SHELL'
16416 export CONFIG_SHELL
16417 exec "\$@"
16420 _ACEOF
16421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16422 exec 5>>config.log
16424 echo
16425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16426 ## Running $as_me. ##
16427 _ASBOX
16428 $as_echo "$ac_log"
16429 } >&5
16431 _ACEOF
16432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16434 # INIT-COMMANDS
16436 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16437 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16438 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16439 # from automake.
16440 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
16441 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16442 LINGUAS="${LINGUAS-%UNSET%}"
16444 denoiserlevel=$with_denoise_level
16446 _ACEOF
16448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16450 # Handling of arguments.
16451 for ac_config_target in $ac_config_targets
16453 case $ac_config_target in
16454 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16455 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16456 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16457 "denoiser") CONFIG_COMMANDS="$CONFIG_COMMANDS denoiser" ;;
16458 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16459 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16460 "docs/man/Makefile") CONFIG_FILES="$CONFIG_FILES docs/man/Makefile" ;;
16461 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16462 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16463 "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;;
16464 "src/pixmaps/flags_xpm/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/flags_xpm/Makefile" ;;
16465 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;;
16466 "src/libs/ec/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/Makefile" ;;
16467 "src/libs/ec/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/ec/cpp/Makefile" ;;
16468 "src/libs/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/common/Makefile" ;;
16469 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
16470 "src/utils/aLinkCreator/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/Makefile" ;;
16471 "src/utils/aLinkCreator/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/docs/Makefile" ;;
16472 "src/utils/aLinkCreator/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/aLinkCreator/src/Makefile" ;;
16473 "src/utils/cas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/Makefile" ;;
16474 "src/utils/cas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/cas/docs/Makefile" ;;
16475 "src/utils/fileview/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/fileview/Makefile" ;;
16476 "src/utils/plasmamule/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/plasmamule/Makefile" ;;
16477 "src/utils/wxCas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/Makefile" ;;
16478 "src/utils/wxCas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/docs/Makefile" ;;
16479 "src/utils/wxCas/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/wxCas/src/Makefile" ;;
16480 "src/utils/xas/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/Makefile" ;;
16481 "src/utils/xas/autostart-xas") CONFIG_FILES="$CONFIG_FILES src/utils/xas/autostart-xas" ;;
16482 "src/utils/xas/docs/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/xas/docs/Makefile" ;;
16483 "src/skins/Makefile") CONFIG_FILES="$CONFIG_FILES src/skins/Makefile" ;;
16484 "src/webserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/Makefile" ;;
16485 "src/webserver/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/src/Makefile" ;;
16486 "src/webserver/default/Makefile") CONFIG_FILES="$CONFIG_FILES src/webserver/default/Makefile" ;;
16487 "unittests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/Makefile" ;;
16488 "unittests/muleunit/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/muleunit/Makefile" ;;
16489 "unittests/tests/Makefile") CONFIG_FILES="$CONFIG_FILES unittests/tests/Makefile" ;;
16490 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16491 "Compilation.flags") CONFIG_FILES="$CONFIG_FILES Compilation.flags" ;;
16492 "version.rc") CONFIG_FILES="$CONFIG_FILES version.rc" ;;
16494 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16495 esac
16496 done
16499 # If the user did not use the arguments to specify the items to instantiate,
16500 # then the envvar interface is used. Set only those that are not.
16501 # We use the long form for the default assignment because of an extremely
16502 # bizarre bug on SunOS 4.1.3.
16503 if $ac_need_defaults; then
16504 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16505 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16506 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16509 # Have a temporary directory for convenience. Make it in the build tree
16510 # simply because there is no reason against having it here, and in addition,
16511 # creating and moving files from /tmp can sometimes cause problems.
16512 # Hook for its removal unless debugging.
16513 # Note that there is a small window in which the directory will not be cleaned:
16514 # after its creation but before its name has been assigned to `$tmp'.
16515 $debug ||
16517 tmp=
16518 trap 'exit_status=$?
16519 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16521 trap 'as_fn_exit 1' 1 2 13 15
16523 # Create a (secure) tmp directory for tmp files.
16526 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16527 test -n "$tmp" && test -d "$tmp"
16528 } ||
16530 tmp=./conf$$-$RANDOM
16531 (umask 077 && mkdir "$tmp")
16532 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16534 # Set up the scripts for CONFIG_FILES section.
16535 # No need to generate them if there are no CONFIG_FILES.
16536 # This happens for instance with `./config.status config.h'.
16537 if test -n "$CONFIG_FILES"; then
16540 ac_cr=`echo X | tr X '\015'`
16541 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16542 # But we know of no other shell where ac_cr would be empty at this
16543 # point, so we can use a bashism as a fallback.
16544 if test "x$ac_cr" = x; then
16545 eval ac_cr=\$\'\\r\'
16547 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16548 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16549 ac_cs_awk_cr='\r'
16550 else
16551 ac_cs_awk_cr=$ac_cr
16554 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16555 _ACEOF
16559 echo "cat >conf$$subs.awk <<_ACEOF" &&
16560 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16561 echo "_ACEOF"
16562 } >conf$$subs.sh ||
16563 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16564 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16565 ac_delim='%!_!# '
16566 for ac_last_try in false false false false false :; do
16567 . ./conf$$subs.sh ||
16568 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16570 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16571 if test $ac_delim_n = $ac_delim_num; then
16572 break
16573 elif $ac_last_try; then
16574 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16575 else
16576 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16578 done
16579 rm -f conf$$subs.sh
16581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16582 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16583 _ACEOF
16584 sed -n '
16586 s/^/S["/; s/!.*/"]=/
16589 s/^[^!]*!//
16590 :repl
16591 t repl
16592 s/'"$ac_delim"'$//
16593 t delim
16596 s/\(.\{148\}\)..*/\1/
16597 t more1
16598 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16601 b repl
16602 :more1
16603 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16606 s/.\{148\}//
16607 t nl
16608 :delim
16610 s/\(.\{148\}\)..*/\1/
16611 t more2
16612 s/["\\]/\\&/g; s/^/"/; s/$/"/
16615 :more2
16616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16619 s/.\{148\}//
16620 t delim
16621 ' <conf$$subs.awk | sed '
16622 /^[^""]/{
16624 s/\n//
16626 ' >>$CONFIG_STATUS || ac_write_fail=1
16627 rm -f conf$$subs.awk
16628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16629 _ACAWK
16630 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16631 for (key in S) S_is_set[key] = 1
16632 FS = "\a"
16636 line = $ 0
16637 nfields = split(line, field, "@")
16638 substed = 0
16639 len = length(field[1])
16640 for (i = 2; i < nfields; i++) {
16641 key = field[i]
16642 keylen = length(key)
16643 if (S_is_set[key]) {
16644 value = S[key]
16645 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16646 len += length(value) + length(field[++i])
16647 substed = 1
16648 } else
16649 len += 1 + keylen
16652 print line
16655 _ACAWK
16656 _ACEOF
16657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16658 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16659 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16660 else
16662 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16663 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16664 _ACEOF
16666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16668 # trailing colons and then remove the whole line if VPATH becomes empty
16669 # (actually we leave an empty line to preserve line numbers).
16670 if test "x$srcdir" = x.; then
16671 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16672 s/:*\$(srcdir):*/:/
16673 s/:*\${srcdir}:*/:/
16674 s/:*@srcdir@:*/:/
16675 s/^\([^=]*=[ ]*\):*/\1/
16676 s/:*$//
16677 s/^[^=]*=[ ]*$//
16681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16682 fi # test -n "$CONFIG_FILES"
16684 # Set up the scripts for CONFIG_HEADERS section.
16685 # No need to generate them if there are no CONFIG_HEADERS.
16686 # This happens for instance with `./config.status Makefile'.
16687 if test -n "$CONFIG_HEADERS"; then
16688 cat >"$tmp/defines.awk" <<\_ACAWK ||
16689 BEGIN {
16690 _ACEOF
16692 # Transform confdefs.h into an awk script `defines.awk', embedded as
16693 # here-document in config.status, that substitutes the proper values into
16694 # config.h.in to produce config.h.
16696 # Create a delimiter string that does not exist in confdefs.h, to ease
16697 # handling of long lines.
16698 ac_delim='%!_!# '
16699 for ac_last_try in false false :; do
16700 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16701 if test -z "$ac_t"; then
16702 break
16703 elif $ac_last_try; then
16704 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16705 else
16706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16708 done
16710 # For the awk script, D is an array of macro values keyed by name,
16711 # likewise P contains macro parameters if any. Preserve backslash
16712 # newline sequences.
16714 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16715 sed -n '
16716 s/.\{148\}/&'"$ac_delim"'/g
16717 t rset
16718 :rset
16719 s/^[ ]*#[ ]*define[ ][ ]*/ /
16720 t def
16722 :def
16723 s/\\$//
16724 t bsnl
16725 s/["\\]/\\&/g
16726 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16727 D["\1"]=" \3"/p
16728 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16730 :bsnl
16731 s/["\\]/\\&/g
16732 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16733 D["\1"]=" \3\\\\\\n"\\/p
16734 t cont
16735 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16736 t cont
16738 :cont
16740 s/.\{148\}/&'"$ac_delim"'/g
16741 t clear
16742 :clear
16743 s/\\$//
16744 t bsnlc
16745 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16747 :bsnlc
16748 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16749 b cont
16750 ' <confdefs.h | sed '
16751 s/'"$ac_delim"'/"\\\
16752 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16755 for (key in D) D_is_set[key] = 1
16756 FS = "\a"
16758 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16759 line = \$ 0
16760 split(line, arg, " ")
16761 if (arg[1] == "#") {
16762 defundef = arg[2]
16763 mac1 = arg[3]
16764 } else {
16765 defundef = substr(arg[1], 2)
16766 mac1 = arg[2]
16768 split(mac1, mac2, "(") #)
16769 macro = mac2[1]
16770 prefix = substr(line, 1, index(line, defundef) - 1)
16771 if (D_is_set[macro]) {
16772 # Preserve the white space surrounding the "#".
16773 print prefix "define", macro P[macro] D[macro]
16774 next
16775 } else {
16776 # Replace #undef with comments. This is necessary, for example,
16777 # in the case of _POSIX_SOURCE, which is predefined and required
16778 # on some systems where configure will not decide to define it.
16779 if (defundef == "undef") {
16780 print "/*", prefix defundef, macro, "*/"
16781 next
16785 { print }
16786 _ACAWK
16787 _ACEOF
16788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16789 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16790 fi # test -n "$CONFIG_HEADERS"
16793 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16794 shift
16795 for ac_tag
16797 case $ac_tag in
16798 :[FHLC]) ac_mode=$ac_tag; continue;;
16799 esac
16800 case $ac_mode$ac_tag in
16801 :[FHL]*:*);;
16802 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16803 :[FH]-) ac_tag=-:-;;
16804 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16805 esac
16806 ac_save_IFS=$IFS
16807 IFS=:
16808 set x $ac_tag
16809 IFS=$ac_save_IFS
16810 shift
16811 ac_file=$1
16812 shift
16814 case $ac_mode in
16815 :L) ac_source=$1;;
16816 :[FH])
16817 ac_file_inputs=
16818 for ac_f
16820 case $ac_f in
16821 -) ac_f="$tmp/stdin";;
16822 *) # Look for the file first in the build tree, then in the source tree
16823 # (if the path is not absolute). The absolute path cannot be DOS-style,
16824 # because $ac_f cannot contain `:'.
16825 test -f "$ac_f" ||
16826 case $ac_f in
16827 [\\/$]*) false;;
16828 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16829 esac ||
16830 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16831 esac
16832 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16833 as_fn_append ac_file_inputs " '$ac_f'"
16834 done
16836 # Let's still pretend it is `configure' which instantiates (i.e., don't
16837 # use $as_me), people would be surprised to read:
16838 # /* config.h. Generated by config.status. */
16839 configure_input='Generated from '`
16840 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16841 `' by configure.'
16842 if test x"$ac_file" != x-; then
16843 configure_input="$ac_file. $configure_input"
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16845 $as_echo "$as_me: creating $ac_file" >&6;}
16847 # Neutralize special characters interpreted by sed in replacement strings.
16848 case $configure_input in #(
16849 *\&* | *\|* | *\\* )
16850 ac_sed_conf_input=`$as_echo "$configure_input" |
16851 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16852 *) ac_sed_conf_input=$configure_input;;
16853 esac
16855 case $ac_tag in
16856 *:-:* | *:-) cat >"$tmp/stdin" \
16857 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16858 esac
16860 esac
16862 ac_dir=`$as_dirname -- "$ac_file" ||
16863 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16864 X"$ac_file" : 'X\(//\)[^/]' \| \
16865 X"$ac_file" : 'X\(//\)$' \| \
16866 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16867 $as_echo X"$ac_file" |
16868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16869 s//\1/
16872 /^X\(\/\/\)[^/].*/{
16873 s//\1/
16876 /^X\(\/\/\)$/{
16877 s//\1/
16880 /^X\(\/\).*/{
16881 s//\1/
16884 s/.*/./; q'`
16885 as_dir="$ac_dir"; as_fn_mkdir_p
16886 ac_builddir=.
16888 case "$ac_dir" in
16889 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16891 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16892 # A ".." for each directory in $ac_dir_suffix.
16893 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16894 case $ac_top_builddir_sub in
16895 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16896 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16897 esac ;;
16898 esac
16899 ac_abs_top_builddir=$ac_pwd
16900 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16901 # for backward compatibility:
16902 ac_top_builddir=$ac_top_build_prefix
16904 case $srcdir in
16905 .) # We are building in place.
16906 ac_srcdir=.
16907 ac_top_srcdir=$ac_top_builddir_sub
16908 ac_abs_top_srcdir=$ac_pwd ;;
16909 [\\/]* | ?:[\\/]* ) # Absolute name.
16910 ac_srcdir=$srcdir$ac_dir_suffix;
16911 ac_top_srcdir=$srcdir
16912 ac_abs_top_srcdir=$srcdir ;;
16913 *) # Relative name.
16914 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16915 ac_top_srcdir=$ac_top_build_prefix$srcdir
16916 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16917 esac
16918 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16921 case $ac_mode in
16924 # CONFIG_FILE
16927 case $INSTALL in
16928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16929 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16930 esac
16931 ac_MKDIR_P=$MKDIR_P
16932 case $MKDIR_P in
16933 [\\/$]* | ?:[\\/]* ) ;;
16934 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16935 esac
16936 _ACEOF
16938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16939 # If the template does not know about datarootdir, expand it.
16940 # FIXME: This hack should be removed a few years after 2.60.
16941 ac_datarootdir_hack=; ac_datarootdir_seen=
16942 ac_sed_dataroot='
16943 /datarootdir/ {
16947 /@datadir@/p
16948 /@docdir@/p
16949 /@infodir@/p
16950 /@localedir@/p
16951 /@mandir@/p'
16952 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16953 *datarootdir*) ac_datarootdir_seen=yes;;
16954 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16956 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16957 _ACEOF
16958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16959 ac_datarootdir_hack='
16960 s&@datadir@&$datadir&g
16961 s&@docdir@&$docdir&g
16962 s&@infodir@&$infodir&g
16963 s&@localedir@&$localedir&g
16964 s&@mandir@&$mandir&g
16965 s&\\\${datarootdir}&$datarootdir&g' ;;
16966 esac
16967 _ACEOF
16969 # Neutralize VPATH when `$srcdir' = `.'.
16970 # Shell code in configure.ac might set extrasub.
16971 # FIXME: do we really want to maintain this feature?
16972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16973 ac_sed_extra="$ac_vpsub
16974 $extrasub
16975 _ACEOF
16976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16979 s|@configure_input@|$ac_sed_conf_input|;t t
16980 s&@top_builddir@&$ac_top_builddir_sub&;t t
16981 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16982 s&@srcdir@&$ac_srcdir&;t t
16983 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16984 s&@top_srcdir@&$ac_top_srcdir&;t t
16985 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16986 s&@builddir@&$ac_builddir&;t t
16987 s&@abs_builddir@&$ac_abs_builddir&;t t
16988 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16989 s&@INSTALL@&$ac_INSTALL&;t t
16990 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16991 $ac_datarootdir_hack
16993 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16994 || as_fn_error "could not create $ac_file" "$LINENO" 5
16996 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16997 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16998 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17000 which seems to be undefined. Please make sure it is defined." >&5
17001 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17002 which seems to be undefined. Please make sure it is defined." >&2;}
17004 rm -f "$tmp/stdin"
17005 case $ac_file in
17006 -) cat "$tmp/out" && rm -f "$tmp/out";;
17007 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17008 esac \
17009 || as_fn_error "could not create $ac_file" "$LINENO" 5
17013 # CONFIG_HEADER
17015 if test x"$ac_file" != x-; then
17017 $as_echo "/* $configure_input */" \
17018 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17019 } >"$tmp/config.h" \
17020 || as_fn_error "could not create $ac_file" "$LINENO" 5
17021 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17023 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17024 else
17025 rm -f "$ac_file"
17026 mv "$tmp/config.h" "$ac_file" \
17027 || as_fn_error "could not create $ac_file" "$LINENO" 5
17029 else
17030 $as_echo "/* $configure_input */" \
17031 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17032 || as_fn_error "could not create -" "$LINENO" 5
17034 # Compute "$ac_file"'s index in $config_headers.
17035 _am_arg="$ac_file"
17036 _am_stamp_count=1
17037 for _am_header in $config_headers :; do
17038 case $_am_header in
17039 $_am_arg | $_am_arg:* )
17040 break ;;
17042 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17043 esac
17044 done
17045 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17046 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17047 X"$_am_arg" : 'X\(//\)[^/]' \| \
17048 X"$_am_arg" : 'X\(//\)$' \| \
17049 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17050 $as_echo X"$_am_arg" |
17051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17052 s//\1/
17055 /^X\(\/\/\)[^/].*/{
17056 s//\1/
17059 /^X\(\/\/\)$/{
17060 s//\1/
17063 /^X\(\/\).*/{
17064 s//\1/
17067 s/.*/./; q'`/stamp-h$_am_stamp_count
17070 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17071 $as_echo "$as_me: executing $ac_file commands" >&6;}
17073 esac
17076 case $ac_file$ac_mode in
17077 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17078 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17079 # are listed without --file. Let's play safe and only enable the eval
17080 # if we detect the quoting.
17081 case $CONFIG_FILES in
17082 *\'*) eval set x "$CONFIG_FILES" ;;
17083 *) set x $CONFIG_FILES ;;
17084 esac
17085 shift
17086 for mf
17088 # Strip MF so we end up with the name of the file.
17089 mf=`echo "$mf" | sed -e 's/:.*$//'`
17090 # Check whether this is an Automake generated Makefile or not.
17091 # We used to match only the files named `Makefile.in', but
17092 # some people rename them; so instead we look at the file content.
17093 # Grep'ing the first line is not enough: some people post-process
17094 # each Makefile.in and add a new line on top of each file to say so.
17095 # Grep'ing the whole file is not good either: AIX grep has a line
17096 # limit of 2048, but all sed's we know have understand at least 4000.
17097 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17098 dirpart=`$as_dirname -- "$mf" ||
17099 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17100 X"$mf" : 'X\(//\)[^/]' \| \
17101 X"$mf" : 'X\(//\)$' \| \
17102 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17103 $as_echo X"$mf" |
17104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17105 s//\1/
17108 /^X\(\/\/\)[^/].*/{
17109 s//\1/
17112 /^X\(\/\/\)$/{
17113 s//\1/
17116 /^X\(\/\).*/{
17117 s//\1/
17120 s/.*/./; q'`
17121 else
17122 continue
17124 # Extract the definition of DEPDIR, am__include, and am__quote
17125 # from the Makefile without running `make'.
17126 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17127 test -z "$DEPDIR" && continue
17128 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17129 test -z "am__include" && continue
17130 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17131 # When using ansi2knr, U may be empty or an underscore; expand it
17132 U=`sed -n 's/^U = //p' < "$mf"`
17133 # Find all dependency output files, they are included files with
17134 # $(DEPDIR) in their names. We invoke sed twice because it is the
17135 # simplest approach to changing $(DEPDIR) to its actual value in the
17136 # expansion.
17137 for file in `sed -n "
17138 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17139 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17140 # Make sure the directory exists.
17141 test -f "$dirpart/$file" && continue
17142 fdir=`$as_dirname -- "$file" ||
17143 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17144 X"$file" : 'X\(//\)[^/]' \| \
17145 X"$file" : 'X\(//\)$' \| \
17146 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17147 $as_echo X"$file" |
17148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17149 s//\1/
17152 /^X\(\/\/\)[^/].*/{
17153 s//\1/
17156 /^X\(\/\/\)$/{
17157 s//\1/
17160 /^X\(\/\).*/{
17161 s//\1/
17164 s/.*/./; q'`
17165 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17166 # echo "creating $dirpart/$file"
17167 echo '# dummy' > "$dirpart/$file"
17168 done
17169 done
17172 "default-1":C)
17173 for ac_file in $CONFIG_FILES; do
17174 # Support "outfile[:infile[:infile...]]"
17175 case "$ac_file" in
17176 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17177 esac
17178 # PO directories have a Makefile.in generated from Makefile.in.in.
17179 case "$ac_file" in */Makefile.in)
17180 # Adjust a relative srcdir.
17181 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17182 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17183 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17184 # In autoconf-2.13 it is called $ac_given_srcdir.
17185 # In autoconf-2.50 it is called $srcdir.
17186 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17187 case "$ac_given_srcdir" in
17188 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17189 /*) top_srcdir="$ac_given_srcdir" ;;
17190 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17191 esac
17192 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17193 rm -f "$ac_dir/POTFILES"
17194 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17195 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17196 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17197 # on $ac_dir but don't depend on user-specified configuration
17198 # parameters.
17199 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17200 # The LINGUAS file contains the set of available languages.
17201 if test -n "$ALL_LINGUAS"; then
17202 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17204 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17205 # Hide the ALL_LINGUAS assigment from automake.
17206 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17208 case "$ac_given_srcdir" in
17209 .) srcdirpre= ;;
17210 *) srcdirpre='$(srcdir)/' ;;
17211 esac
17212 POFILES=
17213 GMOFILES=
17214 UPDATEPOFILES=
17215 DUMMYPOFILES=
17216 for lang in $ALL_LINGUAS; do
17217 POFILES="$POFILES $srcdirpre$lang.po"
17218 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17219 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17220 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17221 done
17222 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17223 # environment variable.
17224 INST_LINGUAS=
17225 if test -n "$ALL_LINGUAS"; then
17226 for presentlang in $ALL_LINGUAS; do
17227 useit=no
17228 if test "%UNSET%" != "$LINGUAS"; then
17229 desiredlanguages="$LINGUAS"
17230 else
17231 desiredlanguages="$ALL_LINGUAS"
17233 for desiredlang in $desiredlanguages; do
17234 # Use the presentlang catalog if desiredlang is
17235 # a. equal to presentlang, or
17236 # b. a variant of presentlang (because in this case,
17237 # presentlang can be used as a fallback for messages
17238 # which are not translated in the desiredlang catalog).
17239 case "$desiredlang" in
17240 "$presentlang"*) useit=yes;;
17241 esac
17242 done
17243 if test $useit = yes; then
17244 INST_LINGUAS="$INST_LINGUAS $presentlang"
17246 done
17248 CATALOGS=
17249 if test -n "$INST_LINGUAS"; then
17250 for lang in $INST_LINGUAS; do
17251 CATALOGS="$CATALOGS $lang.gmo"
17252 done
17254 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17255 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"
17256 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17257 if test -f "$f"; then
17258 case "$f" in
17259 *.orig | *.bak | *~) ;;
17260 *) cat "$f" >> "$ac_dir/Makefile" ;;
17261 esac
17263 done
17266 esac
17267 done ;;
17268 "denoiser":C) if test $denoiserlevel -gt 0; then
17269 if test ! -d src/utils/scripts; then mkdir -p src/utils/scripts; fi
17270 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" \
17271 $srcdir/src/utils/scripts/denoiser.rules > src/utils/scripts/denoiser.sed
17272 for i in `find . -name 'Makefile' -print`; do
17273 if test -n "`head -n 1 $i | grep '^#'`"; then
17274 sed -f src/utils/scripts/denoiser.sed $i > $i.tmp && mv $i.tmp $i
17276 done
17277 fi ;;
17279 esac
17280 done # for ac_tag
17283 as_fn_exit 0
17284 _ACEOF
17285 ac_clean_files=$ac_clean_files_save
17287 test $ac_write_fail = 0 ||
17288 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17291 # configure is writing to config.log, and then calls config.status.
17292 # config.status does its own redirection, appending to config.log.
17293 # Unfortunately, on DOS this fails, as config.log is still kept open
17294 # by configure, so config.status won't be able to write to it; its
17295 # output is simply discarded. So we exec the FD to /dev/null,
17296 # effectively closing config.log, so it can be properly (re)opened and
17297 # appended to by config.status. When coming back to configure, we
17298 # need to make the FD available again.
17299 if test "$no_create" != yes; then
17300 ac_cs_success=:
17301 ac_config_status_args=
17302 test "$silent" = yes &&
17303 ac_config_status_args="$ac_config_status_args --quiet"
17304 exec 5>/dev/null
17305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17306 exec 5>>config.log
17307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17308 # would make configure fail if this is the last instruction.
17309 $ac_cs_success || as_fn_exit $?
17311 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17313 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17317 if test -n "$svndate"; then :
17318 SVN_REVISION=" ($svndate)"
17319 else
17320 SVN_REVISION=
17323 echo
17324 echo
17325 echo " Configure script has finished system check."
17326 echo
17327 echo " Configured aMule ${PACKAGE_VERSION}${SVN_REVISION} for '${host}'."
17328 echo
17329 echo " aMule enabled options:"
17330 echo
17331 echo " **** aMule Core ****"
17332 echo " Prefix where aMule should be installed? ${prefix:-none}"
17333 echo " Should aMule be compiled with i18n support? ${USE_NLS:-no}"
17334 echo " Should aMule be compiled in debug mode? ${enable_debug:-yes}"
17335 echo " Should aMule be compiled with profiling? ${enable_profile:-no}"
17336 echo " Should aMule be compiled with optimizations? ${enable_optimize:-no}"
17337 echo " Should aMule be compiled with UPnP support? ${enable_upnp:-yes}"
17338 echo " Should aMule be compiled with IP2country support? ${enable_geoip:-no}"
17339 echo " Should aMule monolithic application be built? ${enable_monolithic:-yes}"
17340 echo " Should aMule daemon version be built? ${enable_amule_daemon:-no}"
17341 echo " Should aMule remote gui be built? ${enable_amule_gui:-no}"
17342 echo " Crypto++ library/headers style? ${CRYPTOPP_STYLE:-not found}"
17344 echo
17345 echo " **** aMule TextClient ****"
17346 echo " Should aMule Command Line Client be built? ${enable_amulecmd:-no}"
17347 echo
17348 echo " **** aMule WebServer ****"
17349 echo " Should aMule WebServer be built? ${enable_webserver:-no}"
17350 echo
17351 echo " **** aMule ED2K Links Handler ****"
17352 echo " Should aMule ED2K Links Handler be built? ${enable_ed2k:-yes}"
17353 echo
17354 echo " **** aMuleLinkCreator ****"
17355 echo " Should aMuleLinkCreator GUI version (alc) be built? ${enable_alc:-no}"
17356 echo " Should aMuleLinkCreator for console (alcc) be built? ${enable_alcc:-no}"
17357 echo
17358 echo " **** aMule Statistics ****"
17359 echo " Should C aMule Statistics (CAS) be built? ${enable_cas:-no}"
17360 echo " Should aMule GUI Statistics (wxCas) be built? ${enable_wxcas:-no}"
17361 echo " Should xas XChat2 plugin be installed? ${enable_xas:-no}"
17362 echo " Should plasmaMule plasma-applet be build? ${enable_plasmamule:-no}"
17364 echo
17365 echo " **** General Libraries and Tools ****"
17366 echo " Should ccache support be enabled? ${enable_ccache:-no}"
17367 echo " Libraries aMule will use to build:"
17368 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 :
17370 wxinfo="$WX_PORT"
17371 if test $WX_DEBUG -eq 1; then :
17372 wxinfo="$wxinfo,debug"
17374 if test $WX_SHARED -eq 1; then :
17375 wxinfo="$wxinfo,shared"
17376 else
17377 wxinfo="$wxinfo,static"
17379 echo " wxWidgets ${WX_VERSION_FULL} ($wxinfo)"
17382 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_daemon:-no} = yes -o ${enable_amule_gui:-no} = yes -o ${enable_fileview:-no} = yes ; then :
17383 echo " crypto++ ${CRYPTOPP_VERSION_STRING} (${CRYPTOPP_STYLE}, in ${CRYPTOPP_PREFIX})"
17385 if test ${enable_upnp:-yes} = yes; then :
17387 if test -n "$with_libupnp_prefix"; then :
17388 libupnp_place=" (in $with_libupnp_prefix)"
17390 echo " libupnp ${LIBUPNP_VERSION:-Not detected}${libupnp_place:-}"
17393 if test ${enable_nls:-yes} = yes; then
17394 if test x$USE_NLS = xno; then :
17395 libintl_found="Not detected"
17396 else
17397 if test x$USE_INCLUDED_LIBINTL = xyes; then :
17398 libintl_found="included"
17399 else
17400 libintl_found="system"
17403 echo " libintl $libintl_found"
17405 if test ${enable_geoip:-no} = yes; then :
17406 if test -z "${with_geoip_headers:-}${with_geoip_lib:-}"; then :
17407 geoip_style=system
17408 else
17409 geoip_style=user
17411 if test ${enable_monolithic:-yes} = yes -o ${enable_amule_gui:-no} = yes ; then :
17412 echo " libGeoIP ${geoip_style}"
17415 if test ${enable_webserver:-no} = yes; then :
17416 echo " libpng ${LIBPNG_VERSION:-Not detected}"
17418 if test ${enable_cas:-no} = yes; then :
17419 echo " libgd ${GDLIB_VERSION:-Not detected}"
17421 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 :
17422 echo " zlib ${ZLIB_VERSION:-Not detected}"
17424 if test ${enable_plasmamule:-no} = yes; then :
17425 echo " qt-moc ${QT_MOC} ${QT_MOC_VERSION}"
17426 echo " qt-core-libs ${QT_CORE_LIBS}"
17427 echo " qt-gui-libs ${QT_GUI_LIBS}"
17428 echo " kde4-config ${KDE4_CONFIG} (${KDE_CONF_VER})"
17429 echo " kde-headers ${KDE_HEADER_DIR}"
17430 echo " kde-services-path ${KDE_SERVICE_PATH}"
17431 echo " kde-module-path ${KDE_MODULE_PATH}"
17432 echo " kde-icon-path ${KDE_ICON_PATH}"
17433 echo " kde-mime-path ${KDE_MIME_PATH}"
17434 echo " kde-applinks-path ${KDE_APPLNK_PATH}"
17437 if test ${_mule_has_warnings:-no} = yes; then
17438 echo ""
17439 echo ""
17440 echo " *** Warnings during configuration ***"
17442 if test ${_mule_warning_0:-no} = yes; then
17443 cat <<_MULEEOT
17445 * gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
17446 Please check that gdlib-config is in your default path, check out
17447 LD_LIBRARY_PATH or equivalent variable.
17448 Or this might also be that your gdlib-config has other name.
17449 Please try again with --with-gdlib-config=/usr/bin/gdlib-config (replace
17450 /usr/bin/gdlib-config with a valid path to your gdlib-config).
17451 If you use compiled packages check if you have devel pack installed.
17452 To download the latest version check http://www.boutell.com/gd for sources.
17453 _MULEEOT
17455 if test ${_mule_warning_1:-no} = yes; then
17456 cat <<_MULEEOT
17458 * libpng >= 1.2.0 not found.
17459 amuleweb will be compiled but file download progress bar images will NOT be
17460 generated.
17461 _MULEEOT
17463 if test ${_mule_warning_2:-no} = yes; then
17464 cat <<_MULEEOT
17466 * File::Copy perl module is required by the mldonkey_importer script.
17467 If you want to use this script please install File::Copy from CPAN.
17468 _MULEEOT
17470 if test ${_mule_warning_3:-no} = yes; then
17471 cat <<_MULEEOT
17473 * Cannot link GeoIP statically, because your linker ($LD) does not support it.
17474 _MULEEOT
17476 if test ${_mule_warning_4:-no} = yes; then
17477 cat <<_MULEEOT
17479 * GeoIP support has been disabled because the GeoIP libraries were not found
17480 _MULEEOT
17482 if test ${_mule_warning_5:-no} = yes; then
17483 cat <<_MULEEOT
17485 * GeoIP support has been disabled because the GeoIP header files were not
17486 found
17487 _MULEEOT
17489 if test ${_mule_warning_6:-no} = yes; then
17490 cat <<_MULEEOT
17492 * UPnP code has been disabled because ${libupnp_error}.
17493 _MULEEOT
17495 if test ${_mule_warning_7:-no} = yes; then
17496 cat <<_MULEEOT
17498 * Cross-compilation detected, so exception handling cannot be tested.
17499 Note that broken exception handling in your compiler may lead to unexpected
17500 crashes.
17501 _MULEEOT
17503 if test ${_mule_warning_8:-no} = yes; then
17504 cat <<_MULEEOT
17506 * configure cannot check whether malloc() and realloc() are GNU libc
17507 compatible. You have to be ABSOLUTELY sure that they are, otherwise run
17508 configure with the --without-gnu-malloc switch.
17509 _MULEEOT
17511 if test ${_mule_warning_9:-no} = yes; then
17512 cat <<_MULEEOT
17514 * You need to install GNU gettext/gettext-tools to compile aMule with i18n
17515 support.
17516 _MULEEOT
17518 if test ${_mule_warning_10:-no} = yes; then
17519 cat <<_MULEEOT
17521 * bfd.h not found or unusable, please install binutils development package if
17522 you are a developer or want to help testing aMule
17523 _MULEEOT