2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61a.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 echo "#! /bin/sh" >conf$$.sh
75 echo "exit 0" >>conf$$.sh
77 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
100 # Find who we are. Look in the path if we contain no directory separator.
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
135 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
138 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
139 eval $as_var=C; export $as_var
141 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
145 # Required to use basename.
146 if expr a : '\(a\)' >/dev/null 2>&1 &&
147 test "X`expr 00001 : '.*\(...\)'`" = X001; then
153 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
160 # Name of the executable.
161 as_me=`$as_basename -- "$0" ||
162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
163 X"$0" : 'X\(//\)$' \| \
164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
166 sed '/^.*\/\([^/][^/]*\)\/*$/{
184 if test "x$CONFIG_SHELL" = x; then
185 if (eval ":") 2>/dev/null; then
191 if test $as_have_required = yes && (eval ":
201 as_func_ret_success () {
204 as_func_ret_failure () {
209 if as_func_success; then
213 echo as_func_success failed.
216 if as_func_failure; then
218 echo as_func_failure succeeded.
221 if as_func_ret_success; then
225 echo as_func_ret_success failed.
228 if as_func_ret_failure; then
230 echo as_func_ret_failure succeeded.
233 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
237 echo positional parameters were not saved.
240 test \$exitcode = 0) || { (exit 1); exit 1; }
245 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
246 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
247 ") 2> /dev/null; then
251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
252 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
255 test -z "$as_dir" && as_dir=.
258 for as_base in sh bash ksh sh5; do
259 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
266 for as_shell in $as_candidate_shells $SHELL; do
267 # Try only shells that exist, to save several forks.
268 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
269 { ("$as_shell") 2> /dev/null <<\_ASEOF
270 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
273 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
274 # is contrary to our usage. Disable this feature.
275 alias -g '${1+"$@"}'='"$@"'
278 case `(set -o) 2>/dev/null` in
279 *posix*) set -o posix ;;
288 CONFIG_SHELL=$as_shell
290 if { "$as_shell" 2> /dev/null <<\_ASEOF
291 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
294 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
295 # is contrary to our usage. Disable this feature.
296 alias -g '${1+"$@"}'='"$@"'
299 case `(set -o) 2>/dev/null` in
300 *posix*) set -o posix ;;
316 as_func_ret_success () {
319 as_func_ret_failure () {
324 if as_func_success; then
328 echo as_func_success failed.
331 if as_func_failure; then
333 echo as_func_failure succeeded.
336 if as_func_ret_success; then
340 echo as_func_ret_success failed.
343 if as_func_ret_failure; then
345 echo as_func_ret_failure succeeded.
348 if ( set x; as_func_ret_success y && test x = "$1" ); then
352 echo positional parameters were not saved.
355 test $exitcode = 0) || { (exit 1); exit 1; }
360 test "x$as_lineno_1" != "x$as_lineno_2" &&
361 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
372 if test "x$CONFIG_SHELL" != x; then
373 for as_var in BASH_ENV ENV
374 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
377 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
381 if test $as_have_required = no; then
382 echo This script requires a shell more modern than all the
383 echo shells that I found on your system. Please install a
384 echo modern shell, or manually run the script under such a
385 echo shell if you do have one.
386 { (exit 1); exit 1; }
396 (eval "as_func_return () {
405 as_func_ret_success () {
408 as_func_ret_failure () {
413 if as_func_success; then
417 echo as_func_success failed.
420 if as_func_failure; then
422 echo as_func_failure succeeded.
425 if as_func_ret_success; then
429 echo as_func_ret_success failed.
432 if as_func_ret_failure; then
434 echo as_func_ret_failure succeeded.
437 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
441 echo positional parameters were not saved.
444 test \$exitcode = 0") || {
445 echo No shell found that supports shell functions.
446 echo Please tell autoconf@gnu.org about your system,
447 echo including any error possibly output before this
455 test "x$as_lineno_1" != "x$as_lineno_2" &&
456 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
458 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
459 # uniformly replaced by the line number. The first 'sed' inserts a
460 # line-number line after each line using $LINENO; the second 'sed'
461 # does the real work. The second script uses 'N' to pair each
462 # line-number line with the line containing $LINENO, and appends
463 # trailing '-' during substitution so that $LINENO is not a special
465 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
466 # scripts with optimization help from Paolo Bonzini. Blame Lee
467 # E. McMahon (1931-1989) for sed's syntax. :-)
479 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
483 chmod +x "$as_me.lineno" ||
484 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
485 { (exit 1); exit 1; }; }
487 # Don't try to exec as it changes $[0], causing all sort of problems
488 # (the dirname of $[0] is not the place where we might find the
489 # original and so on. Autoconf is especially sensitive to this).
491 # Exit status is that of the last command.
496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
502 ECHO_C= ECHO_N= ECHO_T=
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
512 if expr a : '\(a\)' >/dev/null 2>&1 &&
513 test "X`expr 00001 : '.*\(...\)'`" = X001; then
519 rm -f conf$$ conf$$.exe conf$$.file
520 if test -d conf$$.dir; then
521 rm -f conf$$.dir/conf$$.file
527 if ln -s conf$$.file conf$$ 2>/dev/null; then
529 # ... but there are two gotchas:
530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
532 # In both cases, we have to default to `cp -p'.
533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
535 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
546 test -d ./-p && rmdir ./-p
550 if test -x / >/dev/null 2>&1; then
553 if ls -dL / >/dev/null 2>&1; then
560 if test -d "$1"; then
566 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
567 ???[sx]*):;;*)false;;esac;fi
571 as_executable_p=$as_test_x
573 # Sed expression to map a string onto a valid CPP name.
574 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
576 # Sed expression to map a string onto a valid variable name.
577 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
581 # Find the correct PATH separator. Usually this is `:', but
582 # DJGPP uses `;' like DOS.
583 if test "X${PATH_SEPARATOR+set}" != Xset; then
584 UNAME=${UNAME-`uname 2>/dev/null`}
586 *-DOS) lt_cv_sys_path_separator=';' ;;
587 *) lt_cv_sys_path_separator=':' ;;
589 PATH_SEPARATOR=$lt_cv_sys_path_separator
593 # Check that we are running under the correct shell.
594 SHELL=${CONFIG_SHELL-/bin/sh}
598 # Remove one level of quotation (which was required for Make).
599 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
604 if test "X$1" = X--no-reexec; then
605 # Discard the --no-reexec flag, and continue.
607 elif test "X$1" = X--fallback-echo; then
608 # Avoid inline document here, it may be left over
610 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
611 # Yippee, $echo works!
614 # Restart under the correct shell.
615 exec $SHELL "$0" --no-reexec ${1+"$@"}
618 if test "X$1" = X--fallback-echo; then
619 # used as fallback echo
627 # The HP-UX ksh and POSIX shell print the target directory to stdout
629 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
631 if test -z "$ECHO"; then
632 if test "X${echo_test_string+set}" != Xset; then
633 # find a string as large as possible, as long as the shell can cope with it
634 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
635 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
636 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
637 echo_test_string="`eval $cmd`" &&
638 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
645 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # The Solaris, AIX, and Digital Unix default echo programs unquote
651 # backslashes. This makes it impossible to quote backslashes using
652 # echo "$something" | sed 's/\\/\\\\/g'
654 # So, first we look for a working echo in the user's PATH.
656 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
657 for dir in $PATH /usr/ucb; do
658 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
659 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
660 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
661 test "X$echo_testing_string" = "X$echo_test_string"; then
668 if test "X$echo" = Xecho; then
669 # We didn't find a better echo, so look for alternatives.
670 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # This shell has a builtin print -r that does the trick.
675 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
676 test "X$CONFIG_SHELL" != X/bin/ksh; then
677 # If we have ksh, try running configure again with it.
678 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
679 export ORIGINAL_CONFIG_SHELL
680 CONFIG_SHELL=/bin/ksh
682 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
686 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
687 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
691 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
692 test "X$echo_testing_string" = 'X\t' &&
693 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
694 test "X$echo_testing_string" = "X$echo_test_string"; then
695 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
697 SHELL="$CONFIG_SHELL"
699 echo="$CONFIG_SHELL $0 --fallback-echo"
700 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
701 test "X$echo_testing_string" = 'X\t' &&
702 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
703 test "X$echo_testing_string" = "X$echo_test_string"; then
704 echo="$CONFIG_SHELL $0 --fallback-echo"
706 # maybe with a smaller string...
709 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
710 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
717 if test "$prev" != 'sed 50q "$0"'; then
718 echo_test_string=`eval $prev`
719 export echo_test_string
720 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
722 # Oops. We lost completely, so just stick with echo.
731 # Copy echo and quote the copy suitably for passing to libtool from
732 # the Makefile, instead of quoting the original, which is used later.
734 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
735 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
740 exec 7<&0 </dev/null 6>&1
743 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
744 # so uname gets run too.
745 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
750 ac_default_prefix=/usr/local
752 ac_config_libobj_dir=.
758 SHELL=${CONFIG_SHELL-/bin/sh}
760 # Identity of this package.
767 ac_unique_file="pathsearch.c"
768 # Factoring default headers for most tests.
769 ac_includes_default="\
771 #ifdef HAVE_SYS_TYPES_H
772 # include <sys/types.h>
774 #ifdef HAVE_SYS_STAT_H
775 # include <sys/stat.h>
781 # ifdef HAVE_STDLIB_H
786 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
791 #ifdef HAVE_STRINGS_H
792 # include <strings.h>
794 #ifdef HAVE_INTTYPES_H
795 # include <inttypes.h>
813 program_transform_name
882 ac_precious_vars='build_alias
893 # Initialize some variables set by options.
895 ac_init_version=false
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
905 program_transform_name=s,x,x,
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
943 # If the previous option needs an argument, assign it.
944 if test -n "$ac_prev"; then
945 eval $ac_prev=\$ac_option
951 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 # Accept the important Cygnus configure options, so we can diagnose typos.
957 case $ac_dashdash$ac_option in
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
979 cache_file=config.cache ;;
981 -datadir | --datadir | --datadi | --datad)
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
993 -disable-* | --disable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998 { (exit 1); exit 1; }; }
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1000 eval enable_$ac_useropt=no ;;
1002 -docdir | --docdir | --docdi | --doc | --do)
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1017 { (exit 1); exit 1; }; }
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1019 eval enable_$ac_useropt=\$ac_optarg ;;
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 htmldir=$ac_optarg ;;
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1064 -libdir | --libdir | --libdi | --libd)
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1155 -psdir | --psdir | --psdi | --psd | --ps)
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1214 { (exit 1); exit 1; }; }
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1216 eval with_$ac_useropt=\$ac_optarg ;;
1218 -without-* | --without-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-.]/_/g'`
1225 eval with_$ac_useropt=no ;;
1228 # Obsolete; use --with-x.
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247 { (exit 1); exit 1; }; }
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255 { (exit 1); exit 1; }; }
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1273 { (exit 1); exit 1; }; }
1276 # Be sure to have absolute directory names.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288 { (exit 1); exit 1; }; }
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312 test "$silent" = yes && exec 6>/dev/null
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1319 { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1322 { (exit 1); exit 1; }; }
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$0" ||
1330 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$0" : 'X\(//\)[^/]' \| \
1332 X"$0" : 'X\(//\)$' \| \
1333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1357 ac_srcdir_defaulted=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362 { (exit 1); exit 1; }; }
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1367 { (exit 1); exit 1; }; }
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1393 \`configure' configures this package to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 if test -n "$ac_init_help"; then
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1463 --enable-shared=PKGS build shared libraries default=yes
1464 --enable-static=PKGS build static libraries default=yes
1465 --enable-fast-install=PKGS optimize for fast installation default=yes
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --enable-maintainer-mode enable make rules and dependencies not useful
1468 (and sometimes confusing) to the casual installer
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1473 --with-gnu-ld assume the C compiler uses GNU ld default=no
1474 --with-pic try to use only PIC/non-PIC objects default=use both
1475 --without-mktexmf-default do not run mktexmf if MF source missing
1476 --without-mktexpk-default do not run mktexpk if PK font missing
1477 --without-mktextfm-default do not run mktextfm if TFM file missing
1478 --without-mkocp-default do not run mkocp if OCP file missing
1479 --without-mkofm-default do not run mkofm if OFM file missing
1480 --with-mktexfmt-default run mktexfmt if format file missing
1481 --with-mktextex-default run mktextex if TeX source missing
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1523 .) # We are building in place.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1557 generated by GNU Autoconf 2.61a
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1566 cat >config.log <<_ACEOF
1567 This file contains any messages produced by compilers while
1568 running configure, to aid debugging if configure makes a mistake.
1570 It was created by $as_me, which was
1571 generated by GNU Autoconf 2.61a. Invocation command line was
1583 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1592 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1593 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1594 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1595 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1596 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1597 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1598 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir=.
1607 $as_echo "PATH: $as_dir"
1623 # Keep a trace of the command line.
1624 # Strip out --no-create and --no-recursion so they do not pile up.
1625 # Strip out --silent because we don't want to record it for future runs.
1626 # Also quote any args containing shell meta-characters.
1627 # Make two passes to allow for proper duplicate-argument suppression.
1631 ac_must_keep_next=false
1637 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639 | -silent | --silent | --silen | --sile | --sil)
1642 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1647 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1648 if test $ac_must_keep_next = true; then
1649 ac_must_keep_next=false # Got value, back to normal.
1652 *=* | --config-cache | -C | -disable-* | --disable-* \
1653 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1654 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1655 | -with-* | --with-* | -without-* | --without-* | --x)
1656 case "$ac_configure_args0 " in
1657 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 -* ) ac_must_keep_next=true ;;
1663 ac_configure_args="$ac_configure_args '$ac_arg'"
1668 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1669 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1671 # When interrupted or exit'd, cleanup temporary files, and complete
1672 # config.log. We remove comments because anyway the quotes in there
1673 # would cause problems or look ugly.
1674 # WARNING: Use '\'' to represent an apostrophe within the trap.
1675 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1676 trap 'exit_status=$?
1677 # Save into config.log some information that might help in debugging.
1682 ## ---------------- ##
1683 ## Cache variables. ##
1684 ## ---------------- ##
1687 # The following way of writing the cache mishandles newlines in values,
1689 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690 eval ac_val=\$$ac_var
1694 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1695 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698 _ | IFS | as_nl) ;; #(
1699 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1700 *) $as_unset $ac_var ;;
1705 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706 *${as_nl}ac_space=\ *)
1708 "s/'\''/'\''\\\\'\'''\''/g;
1709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720 ## ----------------- ##
1721 ## Output variables. ##
1722 ## ----------------- ##
1725 for ac_var in $ac_subst_vars
1727 eval ac_val=\$$ac_var
1729 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 $as_echo "$ac_var='\''$ac_val'\''"
1735 if test -n "$ac_subst_files"; then
1737 ## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##
1742 for ac_var in $ac_subst_files
1744 eval ac_val=\$$ac_var
1746 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 $as_echo "$ac_var='\''$ac_val'\''"
1753 if test -s confdefs.h; then
1763 test "$ac_signal" != 0 &&
1764 $as_echo "$as_me: caught signal $ac_signal"
1765 $as_echo "$as_me: exit $exit_status"
1767 rm -f core *.core core.conftest.* &&
1768 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1771 for ac_signal in 1 2 13 15; do
1772 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1777 rm -f -r conftest* confdefs.h
1779 # Predefined preprocessor variables.
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 # Let the site file select an alternate cache file if it wants to.
1807 # Prefer explicitly selected file to automatically selected ones.
1808 if test -n "$CONFIG_SITE"; then
1809 set x "$CONFIG_SITE"
1810 elif test "x$prefix" != xNONE; then
1811 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 set x "$ac_default_prefix/share/config.site" \
1814 "$ac_default_prefix/etc/config.site"
1819 if test -r "$ac_site_file"; then
1820 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1822 sed 's/^/| /' "$ac_site_file" >&5
1827 if test -r "$cache_file"; then
1828 # Some versions of bash will fail to source /dev/null (special
1829 # files actually), so we avoid doing that.
1830 if test -f "$cache_file"; then
1831 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832 $as_echo "$as_me: loading cache $cache_file" >&6;}
1834 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835 *) . "./$cache_file";;
1839 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840 $as_echo "$as_me: creating cache $cache_file" >&6;}
1844 # Check that the precious variables saved in the cache have kept the same
1846 ac_cache_corrupted=false
1847 for ac_var in $ac_precious_vars; do
1848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849 eval ac_new_set=\$ac_env_${ac_var}_set
1850 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851 eval ac_new_val=\$ac_env_${ac_var}_value
1852 case $ac_old_set,$ac_new_set in
1854 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856 ac_cache_corrupted=: ;;
1858 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860 ac_cache_corrupted=: ;;
1863 if test "x$ac_old_val" != "x$ac_new_val"; then
1864 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1865 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1866 { $as_echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1867 $as_echo "$as_me: former value: $ac_old_val" >&2;}
1868 { $as_echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1869 $as_echo "$as_me: current value: $ac_new_val" >&2;}
1870 ac_cache_corrupted=:
1873 # Pass precious variables to config.status.
1874 if test "$ac_new_set" = set; then
1876 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1877 *) ac_arg=$ac_var=$ac_new_val ;;
1879 case " $ac_configure_args " in
1880 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1881 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885 if $ac_cache_corrupted; then
1886 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890 { (exit 1); exit 1; }; }
1910 ac_cpp='$CPP $CPPFLAGS'
1911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917 KPSEVERSION=3.5.6dev
1919 cat >>confdefs.h <<_ACEOF
1920 #define KPSEVERSION "kpathsea version $KPSEVERSION"
1927 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 if test -n "$ac_tool_prefix"; then
1936 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 $as_echo_n "checking for $ac_word... " >&6; }
1940 if test "${ac_cv_prog_CC+set}" = set; then
1941 $as_echo_n "(cached) " >&6
1943 if test -n "$CC"; then
1944 ac_cv_prog_CC="$CC" # Let the user override the test.
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir=.
1951 for ac_exec_ext in '' $ac_executable_extensions; do
1952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1953 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1954 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 if test -n "$CC"; then
1965 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1966 $as_echo "$CC" >&6; }
1968 { $as_echo "$as_me:$LINENO: result: no" >&5
1969 $as_echo "no" >&6; }
1974 if test -z "$ac_cv_prog_CC"; then
1976 # Extract the first word of "gcc", so it can be a program name with args.
1977 set dummy gcc; ac_word=$2
1978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 $as_echo_n "checking for $ac_word... " >&6; }
1980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1981 $as_echo_n "(cached) " >&6
1983 if test -n "$ac_ct_CC"; then
1984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 for ac_exec_ext in '' $ac_executable_extensions; do
1992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1993 ac_cv_prog_ac_ct_CC="gcc"
1994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2004 if test -n "$ac_ct_CC"; then
2005 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2006 $as_echo "$ac_ct_CC" >&6; }
2008 { $as_echo "$as_me:$LINENO: result: no" >&5
2009 $as_echo "no" >&6; }
2012 if test "x$ac_ct_CC" = x; then
2015 case $cross_compiling:$ac_tool_warned in
2017 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2018 whose name does not start with the host triplet. If you think this
2019 configuration is useful to you, please write to autoconf@gnu.org." >&5
2020 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2021 whose name does not start with the host triplet. If you think this
2022 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2023 ac_tool_warned=yes ;;
2031 if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2034 set dummy ${ac_tool_prefix}cc; ac_word=$2
2035 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 $as_echo_n "checking for $ac_word... " >&6; }
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 $as_echo_n "(cached) " >&6
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2050 ac_cv_prog_CC="${ac_tool_prefix}cc"
2051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 if test -n "$CC"; then
2062 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2063 $as_echo "$CC" >&6; }
2065 { $as_echo "$as_me:$LINENO: result: no" >&5
2066 $as_echo "no" >&6; }
2072 if test -z "$CC"; then
2073 # Extract the first word of "cc", so it can be a program name with args.
2074 set dummy cc; ac_word=$2
2075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 $as_echo_n "checking for $ac_word... " >&6; }
2077 if test "${ac_cv_prog_CC+set}" = set; then
2078 $as_echo_n "(cached) " >&6
2080 if test -n "$CC"; then
2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2091 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2092 ac_prog_rejected=yes
2096 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 if test $ac_prog_rejected = yes; then
2104 # We found a bogon in the path, so make sure we never use it.
2105 set dummy $ac_cv_prog_CC
2107 if test $# != 0; then
2108 # We chose a different compiler from the bogus one.
2109 # However, it has the same basename, so the bogon will be chosen
2110 # first if we set CC to just the basename; use the full file name.
2112 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2118 if test -n "$CC"; then
2119 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2120 $as_echo "$CC" >&6; }
2122 { $as_echo "$as_me:$LINENO: result: no" >&5
2123 $as_echo "no" >&6; }
2128 if test -z "$CC"; then
2129 if test -n "$ac_tool_prefix"; then
2130 for ac_prog in cl.exe
2132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 $as_echo_n "checking for $ac_word... " >&6; }
2136 if test "${ac_cv_prog_CC+set}" = set; then
2137 $as_echo_n "(cached) " >&6
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 if test -n "$CC"; then
2161 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2162 $as_echo "$CC" >&6; }
2164 { $as_echo "$as_me:$LINENO: result: no" >&5
2165 $as_echo "no" >&6; }
2169 test -n "$CC" && break
2172 if test -z "$CC"; then
2174 for ac_prog in cl.exe
2176 # Extract the first word of "$ac_prog", so it can be a program name with args.
2177 set dummy $ac_prog; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2181 $as_echo_n "(cached) " >&6
2183 if test -n "$ac_ct_CC"; then
2184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_ac_ct_CC="$ac_prog"
2194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2204 if test -n "$ac_ct_CC"; then
2205 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2206 $as_echo "$ac_ct_CC" >&6; }
2208 { $as_echo "$as_me:$LINENO: result: no" >&5
2209 $as_echo "no" >&6; }
2213 test -n "$ac_ct_CC" && break
2216 if test "x$ac_ct_CC" = x; then
2219 case $cross_compiling:$ac_tool_warned in
2221 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet. If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&5
2224 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet. If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2227 ac_tool_warned=yes ;;
2236 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2237 See \`config.log' for more details." >&5
2238 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2242 # Provide some information about the compiler.
2243 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2246 { (ac_try="$ac_compiler --version >&5"
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2252 $as_echo "$ac_try_echo") >&5
2253 (eval "$ac_compiler --version >&5") 2>&5
2255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }
2257 { (ac_try="$ac_compiler -v >&5"
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2263 $as_echo "$ac_try_echo") >&5
2264 (eval "$ac_compiler -v >&5") 2>&5
2266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }
2268 { (ac_try="$ac_compiler -V >&5"
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2274 $as_echo "$ac_try_echo") >&5
2275 (eval "$ac_compiler -V >&5") 2>&5
2277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }
2280 cat >conftest.$ac_ext <<_ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2295 ac_clean_files_save=$ac_clean_files
2296 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2297 # Try to create an executable without -o first, disregard a.out.
2298 # It will help us diagnose broken compilers, and finding out an intuition
2300 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2301 $as_echo_n "checking for C compiler default output file name... " >&6; }
2302 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2304 # List of possible output files, starting from the most likely.
2305 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2306 # only as a last resort. b.out is created by i960 compilers.
2307 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2309 # The IRIX 6 linker writes into existing files which may not be
2310 # executable, retaining their permissions. Remove them first so a
2311 # subsequent execution test works.
2313 for ac_file in $ac_files
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2317 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2322 if { (ac_try="$ac_link_default"
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2328 $as_echo "$ac_try_echo") >&5
2329 (eval "$ac_link_default") 2>&5
2331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; then
2333 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2334 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2335 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2336 # so that the user can short-circuit this test for compilers unknown to
2338 for ac_file in $ac_files ''
2340 test -f "$ac_file" || continue
2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2345 # We found the default executable, but exeext='' is most
2349 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2351 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2353 # We set ac_cv_exeext here because the later test for it is not
2354 # safe: cross compilers may not add the suffix if given an `-o'
2355 # argument, so we may need to know it at that point already.
2356 # Even if this section looks crufty: it has the advantage of
2363 test "$ac_cv_exeext" = no && ac_cv_exeext=
2369 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2370 $as_echo "$ac_file" >&6; }
2371 if test -z "$ac_file"; then
2372 $as_echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2375 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2376 See \`config.log' for more details." >&5
2377 $as_echo "$as_me: error: C compiler cannot create executables
2378 See \`config.log' for more details." >&2;}
2379 { (exit 77); exit 77; }; }
2382 ac_exeext=$ac_cv_exeext
2384 # Check that the compiler produces executables we can run. If not, either
2385 # the compiler is broken, or we cross compile.
2386 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2387 $as_echo_n "checking whether the C compiler works... " >&6; }
2388 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2389 # If not cross compiling, check that we can run a simple program.
2390 if test "$cross_compiling" != yes; then
2391 if { ac_try='./$ac_file'
2392 { (case "(($ac_try" in
2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394 *) ac_try_echo=$ac_try;;
2396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2397 $as_echo "$ac_try_echo") >&5
2398 (eval "$ac_try") 2>&5
2400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2404 if test "$cross_compiling" = maybe; then
2407 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2408 If you meant to cross compile, use \`--host'.
2409 See \`config.log' for more details." >&5
2410 $as_echo "$as_me: error: cannot run C compiled programs.
2411 If you meant to cross compile, use \`--host'.
2412 See \`config.log' for more details." >&2;}
2413 { (exit 1); exit 1; }; }
2417 { $as_echo "$as_me:$LINENO: result: yes" >&5
2418 $as_echo "yes" >&6; }
2420 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2421 ac_clean_files=$ac_clean_files_save
2422 # Check that the compiler produces executables we can run. If not, either
2423 # the compiler is broken, or we cross compile.
2424 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2425 $as_echo_n "checking whether we are cross compiling... " >&6; }
2426 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2427 $as_echo "$cross_compiling" >&6; }
2429 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2430 $as_echo_n "checking for suffix of executables... " >&6; }
2431 if { (ac_try="$ac_link"
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2437 $as_echo "$ac_try_echo") >&5
2438 (eval "$ac_link") 2>&5
2440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; then
2442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2444 # work properly (i.e., refer to `conftest.exe'), while it won't with
2446 for ac_file in conftest.exe conftest conftest.*; do
2447 test -f "$ac_file" || continue
2449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2457 See \`config.log' for more details." >&5
2458 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2459 See \`config.log' for more details." >&2;}
2460 { (exit 1); exit 1; }; }
2463 rm -f conftest$ac_cv_exeext
2464 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2465 $as_echo "$ac_cv_exeext" >&6; }
2467 rm -f conftest.$ac_ext
2468 EXEEXT=$ac_cv_exeext
2470 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2471 $as_echo_n "checking for suffix of object files... " >&6; }
2472 if test "${ac_cv_objext+set}" = set; then
2473 $as_echo_n "(cached) " >&6
2475 cat >conftest.$ac_ext <<_ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2490 rm -f conftest.o conftest.obj
2491 if { (ac_try="$ac_compile"
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2497 $as_echo "$ac_try_echo") >&5
2498 (eval "$ac_compile") 2>&5
2500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; then
2502 for ac_file in conftest.o conftest.obj conftest.*; do
2503 test -f "$ac_file" || continue;
2505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2506 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2511 $as_echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2515 See \`config.log' for more details." >&5
2516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2517 See \`config.log' for more details." >&2;}
2518 { (exit 1); exit 1; }; }
2521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2524 $as_echo "$ac_cv_objext" >&6; }
2525 OBJEXT=$ac_cv_objext
2527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2530 $as_echo_n "(cached) " >&6
2532 cat >conftest.$ac_ext <<_ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2550 rm -f conftest.$ac_objext
2551 if { (ac_try="$ac_compile"
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2557 $as_echo "$ac_try_echo") >&5
2558 (eval "$ac_compile") 2>conftest.er1
2560 grep -v '^ *+' conftest.er1 >conftest.err
2562 cat conftest.err >&5
2563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } && {
2565 test -z "$ac_c_werror_flag" ||
2566 test ! -s conftest.err
2567 } && test -s conftest.$ac_objext; then
2570 $as_echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2582 if test $ac_compiler_gnu = yes; then
2587 ac_test_CFLAGS=${CFLAGS+set}
2588 ac_save_CFLAGS=$CFLAGS
2589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2591 if test "${ac_cv_prog_cc_g+set}" = set; then
2592 $as_echo_n "(cached) " >&6
2594 ac_save_c_werror_flag=$ac_c_werror_flag
2595 ac_c_werror_flag=yes
2598 cat >conftest.$ac_ext <<_ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2620 $as_echo "$ac_try_echo") >&5
2621 (eval "$ac_compile") 2>conftest.er1
2623 grep -v '^ *+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } && {
2628 test -z "$ac_c_werror_flag" ||
2629 test ! -s conftest.err
2630 } && test -s conftest.$ac_objext; then
2633 $as_echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2637 cat >conftest.$ac_ext <<_ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2652 rm -f conftest.$ac_objext
2653 if { (ac_try="$ac_compile"
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2659 $as_echo "$ac_try_echo") >&5
2660 (eval "$ac_compile") 2>conftest.er1
2662 grep -v '^ *+' conftest.er1 >conftest.err
2664 cat conftest.err >&5
2665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } && {
2667 test -z "$ac_c_werror_flag" ||
2668 test ! -s conftest.err
2669 } && test -s conftest.$ac_objext; then
2672 $as_echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2675 ac_c_werror_flag=$ac_save_c_werror_flag
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.$ac_objext
2693 if { (ac_try="$ac_compile"
2695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696 *) ac_try_echo=$ac_try;;
2698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2699 $as_echo "$ac_try_echo") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest.$ac_objext; then
2712 $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 ac_c_werror_flag=$ac_save_c_werror_flag
2727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2728 $as_echo "$ac_cv_prog_cc_g" >&6; }
2729 if test "$ac_test_CFLAGS" = set; then
2730 CFLAGS=$ac_save_CFLAGS
2731 elif test $ac_cv_prog_cc_g = yes; then
2732 if test "$GCC" = yes; then
2738 if test "$GCC" = yes; then
2744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2746 if test "${ac_cv_prog_cc_c89+set}" = set; then
2747 $as_echo_n "(cached) " >&6
2749 ac_cv_prog_cc_c89=no
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2759 #include <sys/types.h>
2760 #include <sys/stat.h>
2761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2762 struct buf { int x; };
2763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2764 static char *e (p, i)
2770 static char *f (char * (*g) (char **, int), char **p, ...)
2775 s = g (p, va_arg (v,int));
2780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2781 function prototypes and stuff, but not '\xHH' hex character constants.
2782 These don't provoke an error unfortunately, instead are silently treated
2783 as 'x'. The following induces an error, until -std is added to get
2784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2785 array size at least. It's necessary to write '\x00'==0 to get something
2786 that's true only with -std. */
2787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2790 inside strings and character constants. */
2792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2794 int test (int i, double x);
2795 struct s1 {int (*f) (int a);};
2796 struct s2 {int (*f) (double a);};
2797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2811 CC="$ac_save_CC $ac_arg"
2812 rm -f conftest.$ac_objext
2813 if { (ac_try="$ac_compile"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2819 $as_echo "$ac_try_echo") >&5
2820 (eval "$ac_compile") 2>conftest.er1
2822 grep -v '^ *+' conftest.er1 >conftest.err
2824 cat conftest.err >&5
2825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } && {
2827 test -z "$ac_c_werror_flag" ||
2828 test ! -s conftest.err
2829 } && test -s conftest.$ac_objext; then
2830 ac_cv_prog_cc_c89=$ac_arg
2832 $as_echo "$as_me: failed program was:" >&5
2833 sed 's/^/| /' conftest.$ac_ext >&5
2838 rm -f core conftest.err conftest.$ac_objext
2839 test "x$ac_cv_prog_cc_c89" != "xno" && break
2841 rm -f conftest.$ac_ext
2846 case "x$ac_cv_prog_cc_c89" in
2848 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2849 $as_echo "none needed" >&6; } ;;
2851 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2852 $as_echo "unsupported" >&6; } ;;
2854 CC="$CC $ac_cv_prog_cc_c89"
2855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2868 if test -f "$ac_dir/install-sh"; then
2870 ac_install_sh="$ac_aux_dir/install-sh -c"
2872 elif test -f "$ac_dir/install.sh"; then
2874 ac_install_sh="$ac_aux_dir/install.sh -c"
2876 elif test -f "$ac_dir/shtool"; then
2878 ac_install_sh="$ac_aux_dir/shtool install -c"
2882 if test -z "$ac_aux_dir"; then
2883 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2884 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2885 { (exit 1); exit 1; }; }
2888 # These three variables are undocumented and unsupported,
2889 # and are intended to be withdrawn in a future Autoconf release.
2890 # They can cause serious problems if a builder's source tree is in a directory
2891 # whose full name contains unusual characters.
2892 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2893 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2894 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2897 # Find a good install program. We prefer a C program (faster),
2898 # so one script is as good as another. But avoid the broken or
2899 # incompatible versions:
2900 # SysV /etc/install, /usr/sbin/install
2901 # SunOS /usr/etc/install
2902 # IRIX /sbin/install
2904 # AmigaOS /C/install, which installs bootblocks on floppy discs
2905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2908 # OS/2's system install, which has a completely different semantic
2909 # ./install, which can be erroneously created by make from ./install.sh.
2910 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2911 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2912 if test -z "$INSTALL"; then
2913 if test "${ac_cv_path_install+set}" = set; then
2914 $as_echo_n "(cached) " >&6
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 # Account for people who put trailing slashes in PATH elements.
2923 ./ | .// | /cC/* | \
2924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2925 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2928 # OSF1 and SCO ODT 3.0 have their own names for install.
2929 # Don't use installbsd from OSF since it installs stuff as root
2931 for ac_prog in ginstall scoinst install; do
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2934 if test $ac_prog = install &&
2935 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2936 # AIX install. It has an incompatible calling convention.
2938 elif test $ac_prog = install &&
2939 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2940 # program-specific install script used by HP pwplus--don't use.
2943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2956 if test "${ac_cv_path_install+set}" = set; then
2957 INSTALL=$ac_cv_path_install
2959 # As a last resort, use the slow shell script. Don't cache a
2960 # value for INSTALL within a source directory, because that will
2961 # break other packages using the cache if that directory is
2962 # removed, or if the value is a relative name.
2963 INSTALL=$ac_install_sh
2966 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2967 $as_echo "$INSTALL" >&6; }
2969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2970 # It thinks the first close brace ends the variable substitution.
2971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2977 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
2978 $as_echo_n "checking whether ln -s works... " >&6; }
2980 if test "$LN_S" = "ln -s"; then
2981 { $as_echo "$as_me:$LINENO: result: yes" >&5
2982 $as_echo "yes" >&6; }
2984 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2985 $as_echo "no, using $LN_S" >&6; }
2988 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2989 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2991 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2992 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2993 $as_echo_n "(cached) " >&6
2995 cat >conftest.make <<\_ACEOF
2998 @echo '@@@%%%=$(MAKE)=@@@%%%'
3000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3001 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3003 eval ac_cv_prog_make_${ac_make}_set=yes;;
3005 eval ac_cv_prog_make_${ac_make}_set=no;;
3009 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3010 { $as_echo "$as_me:$LINENO: result: yes" >&5
3011 $as_echo "yes" >&6; }
3014 { $as_echo "$as_me:$LINENO: result: no" >&5
3015 $as_echo "no" >&6; }
3016 SET_MAKE="MAKE=${MAKE-make}"
3020 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
3021 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
3022 ## Free Software Foundation, Inc.
3023 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3025 ## This program is free software; you can redistribute it and/or modify
3026 ## it under the terms of the GNU General Public License as published by
3027 ## the Free Software Foundation; either version 2 of the License, or
3028 ## (at your option) any later version.
3030 ## This program is distributed in the hope that it will be useful, but
3031 ## WITHOUT ANY WARRANTY; without even the implied warranty of
3032 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3033 ## General Public License for more details.
3035 ## You should have received a copy of the GNU General Public License
3036 ## along with this program; if not, write to the Free Software
3037 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3039 ## As a special exception to the GNU General Public License, if you
3040 ## distribute this file as part of a program that contains a
3041 ## configuration script generated by Autoconf, you may include it under
3042 ## the same distribution terms that you use for the rest of that program.
3044 # serial 46 AC_PROG_LIBTOOL
3050 # AC_LIBTOOL_HEADER_ASSERT
3051 # ------------------------
3052 # AC_LIBTOOL_HEADER_ASSERT
3054 # _LT_AC_CHECK_DLFCN
3055 # --------------------
3056 # _LT_AC_CHECK_DLFCN
3058 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3059 # ---------------------------------
3060 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3062 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
3063 # ---------------------------------
3064 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
3066 # _LT_AC_PROG_ECHO_BACKSLASH
3067 # --------------------------
3068 # Add some code to the start of the generated configure script which
3069 # will find an echo command which doesn't interpret backslashes.
3070 # _LT_AC_PROG_ECHO_BACKSLASH
3072 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3073 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3074 # ------------------------------------------------------------------
3075 # _LT_AC_TRY_DLOPEN_SELF
3077 # AC_LIBTOOL_DLOPEN_SELF
3078 # -------------------
3079 # AC_LIBTOOL_DLOPEN_SELF
3081 # _LT_AC_LTCONFIG_HACK
3083 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3086 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3089 # AC_ENABLE_SHARED - implement the --enable-shared flag
3090 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
3091 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3095 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
3098 # AC_ENABLE_STATIC - implement the --enable-static flag
3099 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
3100 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3104 # AC_DISABLE_STATIC - set the default static flag to --disable-static
3108 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
3109 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3110 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3114 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
3117 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
3118 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
3119 # Where MODE is either `yes' or `no'. If omitted, it defaults to
3124 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
3128 # AC_PATH_MAGIC - find a file program which can recognise a shared library
3132 # AC_PROG_LD - find the path to the GNU or non-GNU linker
3138 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
3139 # -- PORTME Some linkers may need a different reload flag.
3142 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3143 # -- PORTME fill in with the dynamic library characteristics
3147 # AC_PROG_NM - find the path to a BSD-compatible name lister
3150 # AC_CHECK_LIBM - check for math library
3153 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
3154 # the libltdl convenience library and LTDLINCL to the include flags for
3155 # the libltdl header and adds --enable-ltdl-convenience to the
3156 # configure arguments. Note that LIBLTDL and LTDLINCL are not
3157 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
3158 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
3159 # with '${top_builddir}/' and LTDLINCL will be prefixed with
3160 # '${top_srcdir}/' (note the single quotes!). If your package is not
3161 # flat and you're not using automake, define top_builddir and
3162 # top_srcdir appropriately in the Makefiles.
3165 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
3166 # the libltdl installable library and LTDLINCL to the include flags for
3167 # the libltdl header and adds --enable-ltdl-install to the configure
3168 # arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
3169 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
3170 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
3171 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
3172 # with '${top_srcdir}/' (note the single quotes!). If your package is
3173 # not flat and you're not using automake, define top_builddir and
3174 # top_srcdir appropriately in the Makefiles.
3175 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3187 # This is just to silence aclocal about the macro not being used
3190 ############################################################
3191 # NOTE: This macro has been submitted for inclusion into #
3192 # GNU Autoconf as AC_PROG_SED. When it is available in #
3193 # a released version of Autoconf we should remove this #
3194 # macro and use it instead. #
3195 ############################################################
3198 # Check for a fully-functional sed program, that truncates
3199 # as few characters as possible. Prefer GNU sed if found.
3203 # Check whether --enable-shared was given.
3204 if test "${enable_shared+set}" = set; then
3205 enableval=$enable_shared; p=${PACKAGE-default}
3207 yes) enable_shared=yes ;;
3208 no) enable_shared=no ;;
3211 # Look at the argument we got. We use all the common list separators.
3212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3213 for pkg in $enableval; do
3214 if test "X$pkg" = "X$p"; then
3225 # Check whether --enable-static was given.
3226 if test "${enable_static+set}" = set; then
3227 enableval=$enable_static; p=${PACKAGE-default}
3229 yes) enable_static=yes ;;
3230 no) enable_static=no ;;
3233 # Look at the argument we got. We use all the common list separators.
3234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3235 for pkg in $enableval; do
3236 if test "X$pkg" = "X$p"; then
3247 # Check whether --enable-fast-install was given.
3248 if test "${enable_fast_install+set}" = set; then
3249 enableval=$enable_fast_install; p=${PACKAGE-default}
3251 yes) enable_fast_install=yes ;;
3252 no) enable_fast_install=no ;;
3254 enable_fast_install=no
3255 # Look at the argument we got. We use all the common list separators.
3256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3257 for pkg in $enableval; do
3258 if test "X$pkg" = "X$p"; then
3259 enable_fast_install=yes
3266 enable_fast_install=yes
3269 # Make sure we can run config.sub.
3270 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3271 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3272 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3273 { (exit 1); exit 1; }; }
3275 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3276 $as_echo_n "checking build system type... " >&6; }
3277 if test "${ac_cv_build+set}" = set; then
3278 $as_echo_n "(cached) " >&6
3280 ac_build_alias=$build_alias
3281 test "x$ac_build_alias" = x &&
3282 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3283 test "x$ac_build_alias" = x &&
3284 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3285 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3286 { (exit 1); exit 1; }; }
3287 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3288 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3289 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3290 { (exit 1); exit 1; }; }
3293 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3294 $as_echo "$ac_cv_build" >&6; }
3295 case $ac_cv_build in
3297 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3298 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3299 { (exit 1); exit 1; }; };;
3302 ac_save_IFS=$IFS; IFS='-'
3308 # Remember, the first character of IFS is used to create $*,
3309 # except with old shells:
3312 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3315 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3316 $as_echo_n "checking host system type... " >&6; }
3317 if test "${ac_cv_host+set}" = set; then
3318 $as_echo_n "(cached) " >&6
3320 if test "x$host_alias" = x; then
3321 ac_cv_host=$ac_cv_build
3323 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3324 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3325 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3326 { (exit 1); exit 1; }; }
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3331 $as_echo "$ac_cv_host" >&6; }
3334 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3335 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3336 { (exit 1); exit 1; }; };;
3339 ac_save_IFS=$IFS; IFS='-'
3345 # Remember, the first character of IFS is used to create $*,
3346 # except with old shells:
3349 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3352 # Find the correct PATH separator. Usually this is `:', but
3353 # DJGPP uses `;' like DOS.
3354 if test "X${PATH_SEPARATOR+set}" != Xset; then
3355 UNAME=${UNAME-`uname 2>/dev/null`}
3357 *-DOS) lt_cv_sys_path_separator=';' ;;
3358 *) lt_cv_sys_path_separator=':' ;;
3360 PATH_SEPARATOR=$lt_cv_sys_path_separator
3364 # Check whether --with-gnu-ld was given.
3365 if test "${with_gnu_ld+set}" = set; then
3366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3372 if test "$GCC" = yes; then
3373 # Check if gcc -print-prog-name=ld gives a path.
3374 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3375 $as_echo_n "checking for ld used by GCC... " >&6; }
3378 # gcc leaves a trailing carriage return which upsets mingw
3379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3384 # Accept absolute paths.
3385 [\\/]* | [A-Za-z]:[\\/]*)
3386 re_direlt='/[^/][^/]*/\.\./'
3387 # Canonicalize the path of ld
3388 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3389 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3390 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3392 test -z "$LD" && LD="$ac_prog"
3395 # If it fails, then pretend we aren't using GCC.
3399 # If it is relative, then search for the first ld in PATH.
3403 elif test "$with_gnu_ld" = yes; then
3404 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3405 $as_echo_n "checking for GNU ld... " >&6; }
3407 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3408 $as_echo_n "checking for non-GNU ld... " >&6; }
3410 if test "${lt_cv_path_LD+set}" = set; then
3411 $as_echo_n "(cached) " >&6
3413 if test -z "$LD"; then
3414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3415 for ac_dir in $PATH; do
3416 test -z "$ac_dir" && ac_dir=.
3417 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3418 lt_cv_path_LD="$ac_dir/$ac_prog"
3419 # Check to see if the program is GNU ld. I'd rather use --version,
3420 # but apparently some GNU ld's only accept -v.
3421 # Break only if it was the GNU/non-GNU ld that we prefer.
3422 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3423 test "$with_gnu_ld" != no && break
3425 test "$with_gnu_ld" != yes && break
3431 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3436 if test -n "$LD"; then
3437 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3438 $as_echo "$LD" >&6; }
3440 { $as_echo "$as_me:$LINENO: result: no" >&5
3441 $as_echo "no" >&6; }
3443 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3444 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3445 { (exit 1); exit 1; }; }
3446 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3447 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3448 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3449 $as_echo_n "(cached) " >&6
3451 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3452 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3453 lt_cv_prog_gnu_ld=yes
3455 lt_cv_prog_gnu_ld=no
3458 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3459 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3460 with_gnu_ld=$lt_cv_prog_gnu_ld
3463 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3464 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3465 if test "${lt_cv_ld_reload_flag+set}" = set; then
3466 $as_echo_n "(cached) " >&6
3468 lt_cv_ld_reload_flag='-r'
3470 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3471 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3472 reload_flag=$lt_cv_ld_reload_flag
3473 test -n "$reload_flag" && reload_flag=" $reload_flag"
3475 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3476 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3477 if test "${lt_cv_path_NM+set}" = set; then
3478 $as_echo_n "(cached) " >&6
3480 if test -n "$NM"; then
3481 # Let the user override the test.
3484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3485 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3486 test -z "$ac_dir" && ac_dir=.
3487 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3488 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3489 # Check to see if the nm accepts a BSD-compat flag.
3490 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3491 # nm: unknown option "B" ignored
3492 # Tru64's nm complains that /dev/null is an invalid object file
3493 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3494 lt_cv_path_NM="$tmp_nm -B"
3496 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3497 lt_cv_path_NM="$tmp_nm -p"
3500 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3501 continue # so that we can try to find one that supports BSD flags
3506 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3511 { $as_echo "$as_me:$LINENO: result: $NM" >&5
3512 $as_echo "$NM" >&6; }
3514 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3515 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3516 if test "${lt_cv_path_SED+set}" = set; then
3517 $as_echo_n "(cached) " >&6
3519 # Loop through the user's path and test for sed and gsed.
3520 # Then use that list of sed's as ones to test for truncation.
3521 as_executable_p="test -f"
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_prog in sed gsed; do
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3530 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3536 # Create a temporary directory, and hook for its removal unless debugging.
3539 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3540 trap '{ (exit 1); exit 1; }' 1 2 13 15
3543 # Create a (secure) tmp directory for tmp files.
3546 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3547 test -n "$tmp" && test -d "$tmp"
3550 tmp=$TMPDIR/sed$$-$RANDOM
3551 (umask 077 && mkdir $tmp)
3554 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3555 { (exit 1); exit 1; }
3559 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3560 # along with /bin/sed that truncates output.
3561 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3562 test ! -f ${_sed} && break
3563 cat /dev/null > "$tmp/sed.in"
3565 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3566 # Check for GNU sed and select it if it is found.
3567 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3568 lt_cv_path_SED=${_sed}
3572 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3573 mv "$tmp/sed.tmp" "$tmp/sed.in"
3574 cp "$tmp/sed.in" "$tmp/sed.nl"
3575 echo >>"$tmp/sed.nl"
3576 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3577 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3578 # 40000 chars as input seems more than enough
3579 test $_count -gt 10 && break
3580 _count=`expr $_count + 1`
3581 if test $_count -gt $_max; then
3583 lt_cv_path_SED=$_sed
3591 if test "X$SED" != "X"; then
3596 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3597 $as_echo "$SED" >&6; }
3599 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3600 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
3601 if test "${lt_cv_deplibs_check_method+set}" = set; then
3602 $as_echo_n "(cached) " >&6
3604 lt_cv_file_magic_cmd='$MAGIC_CMD'
3605 lt_cv_file_magic_test_file=
3606 lt_cv_deplibs_check_method='unknown'
3607 # Need to set the preceding variable on all platforms that support
3608 # interlibrary dependencies.
3609 # 'none' -- dependencies not supported.
3610 # `unknown' -- same as none, but documents that we really don't know.
3611 # 'pass_all' -- all dependencies passed with no checks.
3612 # 'test_compile' -- check by making test program.
3613 # 'file_magic [[regex]]' -- check by looking for files in library path
3614 # which responds to the $file_magic_cmd with a given egrep regex.
3615 # If you have `file' or equivalent on your system and you're not sure
3616 # whether `pass_all' will *always* work, you probably want this one.
3620 lt_cv_deplibs_check_method=pass_all
3624 lt_cv_deplibs_check_method=pass_all
3628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3629 lt_cv_file_magic_cmd='/usr/bin/file -L'
3630 lt_cv_file_magic_test_file=/shlib/libc.so
3633 cygwin* | mingw* | pw32*)
3634 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3635 lt_cv_file_magic_cmd='$OBJDUMP -f'
3638 darwin* | rhapsody*)
3639 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3640 lt_cv_file_magic_cmd='/usr/bin/file -L'
3642 rhapsody* | darwin1.[012])
3643 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3646 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3651 freebsd* | kfreebsd*-gnu)
3652 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3655 # Not sure whether the presence of OpenBSD here was a mistake.
3656 # Let's accept both of them until this is cleared up.
3657 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3658 lt_cv_file_magic_cmd=/usr/bin/file
3659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3663 lt_cv_deplibs_check_method=pass_all
3668 lt_cv_deplibs_check_method=pass_all
3672 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3673 lt_cv_file_magic_cmd=/usr/bin/file
3674 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3677 irix5* | irix6* | nonstopux*)
3679 irix5* | nonstopux*)
3680 # this will be overridden with pass_all, but let us keep it just in case
3681 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3685 *-32|*"-32 ") libmagic=32-bit;;
3686 *-n32|*"-n32 ") libmagic=N32;;
3687 *-64|*"-64 ") libmagic=64-bit;;
3688 *) libmagic=never-match;;
3690 # this will be overridden with pass_all, but let us keep it just in case
3691 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3694 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3695 lt_cv_deplibs_check_method=pass_all
3698 # This must be Linux ELF.
3701 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3702 lt_cv_deplibs_check_method=pass_all ;;
3704 # glibc up to 2.1.1 does not perform some relocations on ARM
3705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3707 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3711 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3712 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3714 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3720 lt_cv_file_magic_cmd=/usr/bin/file
3721 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3725 lt_cv_file_magic_cmd=/usr/bin/file
3726 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3728 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3730 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3734 osf3* | osf4* | osf5*)
3735 # this will be overridden with pass_all, but let us keep it just in case
3736 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3737 lt_cv_file_magic_test_file=/shlib/libc.so
3738 lt_cv_deplibs_check_method=pass_all
3742 lt_cv_deplibs_check_method=pass_all
3746 lt_cv_deplibs_check_method=pass_all
3747 lt_cv_file_magic_test_file=/lib/libc.so
3750 sysv5uw[78]* | sysv4*uw2*)
3751 lt_cv_deplibs_check_method=pass_all
3754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3755 case $host_vendor in
3757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3761 lt_cv_deplibs_check_method=pass_all
3764 lt_cv_file_magic_cmd='/bin/file'
3765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3768 lt_cv_file_magic_cmd='/bin/file'
3769 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3770 lt_cv_file_magic_test_file=/lib/libc.so
3773 lt_cv_deplibs_check_method=pass_all
3780 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3781 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3782 file_magic_cmd=$lt_cv_file_magic_cmd
3783 deplibs_check_method=$lt_cv_deplibs_check_method
3792 # Check for command to grab the raw symbol name followed by C symbol from nm.
3793 { $as_echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3794 $as_echo_n "checking command to parse $NM output... " >&6; }
3795 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3796 $as_echo_n "(cached) " >&6
3799 # These are sane defaults that work on at least a few old systems.
3800 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3802 # Character class describing NM global symbol codes.
3803 symcode='[BCDEGRST]'
3805 # Regexp to match symbols that can be accessed directly from C.
3806 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3808 # Transform the above into a raw symbol and a C symbol.
3809 symxfrm='\1 \2\3 \3'
3811 # Transform an extracted symbol line into a proper C declaration
3812 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3814 # Transform an extracted symbol line into symbol name and symbol address
3815 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3817 # Define system-specific variables.
3822 cygwin* | mingw* | pw32*)
3823 symcode='[ABCDGISTW]'
3825 hpux*) # Its linker distinguishes data from code symbols
3826 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3827 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3830 symcode='[BCDEGRST]'
3833 symcode='[BCDEGQRST]'
3843 # Handle CRLF in mingw tool chain
3847 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3851 # If we're using GNU nm, then use its standard symbol codes.
3852 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3853 symcode='[ABCDGISTW]'
3856 # Try without a prefix undercore, then with it.
3857 for ac_symprfx in "" "_"; do
3859 # Write the raw and C identifiers.
3860 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3862 # Check to see that the pipe works correctly.
3865 cat > conftest.$ac_ext <<EOF
3870 void nm_test_func(){}
3874 int main(){nm_test_var='a';nm_test_func();return(0);}
3877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878 (eval $ac_compile) 2>&5
3880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; then
3882 # Now try to grab the symbols.
3884 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3885 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && test -s "$nlist"; then
3889 # Try sorting and uniquifying the output.
3890 if sort "$nlist" | uniq > "$nlist"T; then
3891 mv -f "$nlist"T "$nlist"
3896 # Make sure that we snagged all the symbols we need.
3897 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3898 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3899 cat <<EOF > conftest.$ac_ext
3905 # Now generate the symbol file.
3906 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3908 cat <<EOF >> conftest.$ac_ext
3909 #if defined (__STDC__) && __STDC__
3910 # define lt_ptr void *
3912 # define lt_ptr char *
3916 /* The mapping between symbol names and symbols. */
3921 lt_preloaded_symbols[] =
3924 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3925 cat <<\EOF >> conftest.$ac_ext
3933 # Now try linking the two files.
3934 mv conftest.$ac_objext conftstm.$ac_objext
3936 save_CFLAGS="$CFLAGS"
3937 LIBS="conftstm.$ac_objext"
3938 CFLAGS="$CFLAGS$no_builtin_flag"
3939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940 (eval $ac_link) 2>&5
3942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } && test -s conftest$ac_exeext; then
3947 CFLAGS="$save_CFLAGS"
3949 echo "cannot find nm_test_func in $nlist" >&5
3952 echo "cannot find nm_test_var in $nlist" >&5
3955 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3958 echo "$progname: failed program was:" >&5
3959 cat conftest.$ac_ext >&5
3961 rm -f conftest* conftst*
3963 # Do not use the global_symbol_pipe unless it works.
3964 if test "$pipe_works" = yes; then
3967 lt_cv_sys_global_symbol_pipe=
3973 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3974 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3975 global_symbol_to_cdecl=
3976 global_symbol_to_c_name_address=
3978 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3979 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3981 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3983 { $as_echo "$as_me:$LINENO: result: failed" >&5
3984 $as_echo "failed" >&6; }
3986 { $as_echo "$as_me:$LINENO: result: ok" >&5
3987 $as_echo "ok" >&6; }
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3996 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3997 # On Suns, sometimes $CPP names a directory.
3998 if test -n "$CPP" && test -d "$CPP"; then
4001 if test -z "$CPP"; then
4002 if test "${ac_cv_prog_CPP+set}" = set; then
4003 $as_echo_n "(cached) " >&6
4005 # Double quotes because CPP needs to be expanded
4006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4009 for ac_c_preproc_warn_flag in '' yes
4011 # Use a header file that comes with gcc, so configuring glibc
4012 # with a fresh cross-compiler works.
4013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014 # <limits.h> exists even on freestanding compilers.
4015 # On the NeXT, cc -E runs the code through the compiler's parser,
4016 # not just through cpp. "Syntax error" is here to catch this case.
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4024 # include <limits.h>
4026 # include <assert.h>
4030 if { (ac_try="$ac_cpp conftest.$ac_ext"
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4036 $as_echo "$ac_try_echo") >&5
4037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4039 grep -v '^ *+' conftest.er1 >conftest.err
4041 cat conftest.err >&5
4042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } >/dev/null && {
4044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4045 test ! -s conftest.err
4049 $as_echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.$ac_ext >&5
4052 # Broken: fails on valid input.
4056 rm -f conftest.err conftest.$ac_ext
4058 # OK, works on sane cases. Now check whether nonexistent headers
4059 # can be detected and how.
4060 cat >conftest.$ac_ext <<_ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #include <ac_nonexistent.h>
4068 if { (ac_try="$ac_cpp conftest.$ac_ext"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4077 grep -v '^ *+' conftest.er1 >conftest.err
4079 cat conftest.err >&5
4080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } >/dev/null && {
4082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4085 # Broken: success on invalid input.
4088 $as_echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 # Passes both tests.
4096 rm -f conftest.err conftest.$ac_ext
4099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4100 rm -f conftest.err conftest.$ac_ext
4101 if $ac_preproc_ok; then
4113 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4114 $as_echo "$CPP" >&6; }
4116 for ac_c_preproc_warn_flag in '' yes
4118 # Use a header file that comes with gcc, so configuring glibc
4119 # with a fresh cross-compiler works.
4120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121 # <limits.h> exists even on freestanding compilers.
4122 # On the NeXT, cc -E runs the code through the compiler's parser,
4123 # not just through cpp. "Syntax error" is here to catch this case.
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 # include <limits.h>
4133 # include <assert.h>
4137 if { (ac_try="$ac_cpp conftest.$ac_ext"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4143 $as_echo "$ac_try_echo") >&5
4144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } >/dev/null && {
4151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4152 test ! -s conftest.err
4156 $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 # Broken: fails on valid input.
4163 rm -f conftest.err conftest.$ac_ext
4165 # OK, works on sane cases. Now check whether nonexistent headers
4166 # can be detected and how.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 #include <ac_nonexistent.h>
4175 if { (ac_try="$ac_cpp conftest.$ac_ext"
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4181 $as_echo "$ac_try_echo") >&5
4182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4184 grep -v '^ *+' conftest.er1 >conftest.err
4186 cat conftest.err >&5
4187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } >/dev/null && {
4189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4190 test ! -s conftest.err
4192 # Broken: success on invalid input.
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 # Passes both tests.
4203 rm -f conftest.err conftest.$ac_ext
4206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4207 rm -f conftest.err conftest.$ac_ext
4208 if $ac_preproc_ok; then
4211 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4212 See \`config.log' for more details." >&5
4213 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4214 See \`config.log' for more details." >&2;}
4215 { (exit 1); exit 1; }; }
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4226 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4227 if test "${ac_cv_path_GREP+set}" = set; then
4228 $as_echo_n "(cached) " >&6
4230 # Extract the first word of "grep ggrep" to use in msg output
4231 if test -z "$GREP"; then
4232 set dummy grep ggrep; ac_prog_name=$2
4233 if test "${ac_cv_path_GREP+set}" = set; then
4234 $as_echo_n "(cached) " >&6
4236 ac_path_GREP_found=false
4237 # Loop through the user's path and test for each of PROGNAME-LIST
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4242 test -z "$as_dir" && as_dir=.
4243 for ac_prog in grep ggrep; do
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4246 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4247 # Check for GNU ac_path_GREP and select it if it is found.
4248 # Check for GNU $ac_path_GREP
4249 case `"$ac_path_GREP" --version 2>&1` in
4251 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4254 $as_echo_n 0123456789 >"conftest.in"
4257 cat "conftest.in" "conftest.in" >"conftest.tmp"
4258 mv "conftest.tmp" "conftest.in"
4259 cp "conftest.in" "conftest.nl"
4260 $as_echo 'GREP' >> "conftest.nl"
4261 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4263 ac_count=`expr $ac_count + 1`
4264 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4265 # Best one so far, save it but keep looking for a better one
4266 ac_cv_path_GREP="$ac_path_GREP"
4267 ac_path_GREP_max=$ac_count
4269 # 10*(2^10) chars as input seems more than enough
4270 test $ac_count -gt 10 && break
4272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276 $ac_path_GREP_found && break 3
4286 GREP="$ac_cv_path_GREP"
4287 if test -z "$GREP"; then
4288 { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4289 $as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4290 { (exit 1); exit 1; }; }
4294 ac_cv_path_GREP=$GREP
4299 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4300 $as_echo "$ac_cv_path_GREP" >&6; }
4301 GREP="$ac_cv_path_GREP"
4304 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4305 $as_echo_n "checking for egrep... " >&6; }
4306 if test "${ac_cv_path_EGREP+set}" = set; then
4307 $as_echo_n "(cached) " >&6
4309 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4310 then ac_cv_path_EGREP="$GREP -E"
4312 # Extract the first word of "egrep" to use in msg output
4313 if test -z "$EGREP"; then
4314 set dummy egrep; ac_prog_name=$2
4315 if test "${ac_cv_path_EGREP+set}" = set; then
4316 $as_echo_n "(cached) " >&6
4318 ac_path_EGREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4324 test -z "$as_dir" && as_dir=.
4325 for ac_prog in egrep; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4328 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4329 # Check for GNU ac_path_EGREP and select it if it is found.
4330 # Check for GNU $ac_path_EGREP
4331 case `"$ac_path_EGREP" --version 2>&1` in
4333 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4336 $as_echo_n 0123456789 >"conftest.in"
4339 cat "conftest.in" "conftest.in" >"conftest.tmp"
4340 mv "conftest.tmp" "conftest.in"
4341 cp "conftest.in" "conftest.nl"
4342 $as_echo 'EGREP' >> "conftest.nl"
4343 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345 ac_count=`expr $ac_count + 1`
4346 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4347 # Best one so far, save it but keep looking for a better one
4348 ac_cv_path_EGREP="$ac_path_EGREP"
4349 ac_path_EGREP_max=$ac_count
4351 # 10*(2^10) chars as input seems more than enough
4352 test $ac_count -gt 10 && break
4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358 $ac_path_EGREP_found && break 3
4368 EGREP="$ac_cv_path_EGREP"
4369 if test -z "$EGREP"; then
4370 { { $as_echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4371 $as_echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4372 { (exit 1); exit 1; }; }
4376 ac_cv_path_EGREP=$EGREP
4382 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4383 $as_echo "$ac_cv_path_EGREP" >&6; }
4384 EGREP="$ac_cv_path_EGREP"
4387 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4388 $as_echo_n "checking for ANSI C header files... " >&6; }
4389 if test "${ac_cv_header_stdc+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4418 $as_echo "$ac_try_echo") >&5
4419 (eval "$ac_compile") 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && {
4426 test -z "$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4428 } && test -s conftest.$ac_objext; then
4429 ac_cv_header_stdc=yes
4431 $as_echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 ac_cv_header_stdc=no
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 if test $ac_cv_header_stdc = yes; then
4440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4441 cat >conftest.$ac_ext <<_ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4451 $EGREP "memchr" >/dev/null 2>&1; then
4454 ac_cv_header_stdc=no
4460 if test $ac_cv_header_stdc = yes; then
4461 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4472 $EGREP "free" >/dev/null 2>&1; then
4475 ac_cv_header_stdc=no
4481 if test $ac_cv_header_stdc = yes; then
4482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4483 if test "$cross_compiling" = yes; then
4486 cat >conftest.$ac_ext <<_ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4494 #if ((' ' & 0x0FF) == 0x020)
4495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4498 # define ISLOWER(c) \
4499 (('a' <= (c) && (c) <= 'i') \
4500 || ('j' <= (c) && (c) <= 'r') \
4501 || ('s' <= (c) && (c) <= 'z'))
4502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4510 for (i = 0; i < 256; i++)
4511 if (XOR (islower (i), ISLOWER (i))
4512 || toupper (i) != TOUPPER (i))
4517 rm -f conftest$ac_exeext
4518 if { (ac_try="$ac_link"
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4524 $as_echo "$ac_try_echo") >&5
4525 (eval "$ac_link") 2>&5
4527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4529 { (case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4534 $as_echo "$ac_try_echo") >&5
4535 (eval "$ac_try") 2>&5
4537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4541 $as_echo "$as_me: program exited with status $ac_status" >&5
4542 $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4546 ac_cv_header_stdc=no
4548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4554 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4555 $as_echo "$ac_cv_header_stdc" >&6; }
4556 if test $ac_cv_header_stdc = yes; then
4558 cat >>confdefs.h <<\_ACEOF
4559 #define STDC_HEADERS 1
4564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575 inttypes.h stdint.h unistd.h
4577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4579 $as_echo_n "checking for $ac_header... " >&6; }
4580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4581 $as_echo_n "(cached) " >&6
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 $ac_includes_default
4591 #include <$ac_header>
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601 (eval "$ac_compile") 2>conftest.er1
4603 grep -v '^ *+' conftest.er1 >conftest.err
4605 cat conftest.err >&5
4606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && {
4608 test -z "$ac_c_werror_flag" ||
4609 test ! -s conftest.err
4610 } && test -s conftest.$ac_objext; then
4611 eval "$as_ac_Header=yes"
4613 $as_echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4616 eval "$as_ac_Header=no"
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 ac_res=`eval 'as_val=${'$as_ac_Header'}
4622 $as_echo "$as_val"'`
4623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4624 $as_echo "$ac_res" >&6; }
4625 if test `eval 'as_val=${'$as_ac_Header'}
4626 $as_echo "$as_val"'` = yes; then
4627 cat >>confdefs.h <<_ACEOF
4628 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4637 for ac_header in dlfcn.h
4639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4642 $as_echo_n "checking for $ac_header... " >&6; }
4643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4644 $as_echo_n "(cached) " >&6
4646 ac_res=`eval 'as_val=${'$as_ac_Header'}
4647 $as_echo "$as_val"'`
4648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4649 $as_echo "$ac_res" >&6; }
4651 # Is the header compilable?
4652 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4653 $as_echo_n "checking $ac_header usability... " >&6; }
4654 cat >conftest.$ac_ext <<_ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660 $ac_includes_default
4661 #include <$ac_header>
4663 rm -f conftest.$ac_objext
4664 if { (ac_try="$ac_compile"
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671 (eval "$ac_compile") 2>conftest.er1
4673 grep -v '^ *+' conftest.er1 >conftest.err
4675 cat conftest.err >&5
4676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } && {
4678 test -z "$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4680 } && test -s conftest.$ac_objext; then
4681 ac_header_compiler=yes
4683 $as_echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4686 ac_header_compiler=no
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4691 $as_echo "$ac_header_compiler" >&6; }
4693 # Is the header present?
4694 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4695 $as_echo_n "checking $ac_header presence... " >&6; }
4696 cat >conftest.$ac_ext <<_ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 #include <$ac_header>
4704 if { (ac_try="$ac_cpp conftest.$ac_ext"
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4710 $as_echo "$ac_try_echo") >&5
4711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4713 grep -v '^ *+' conftest.er1 >conftest.err
4715 cat conftest.err >&5
4716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } >/dev/null && {
4718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4719 test ! -s conftest.err
4721 ac_header_preproc=yes
4723 $as_echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 ac_header_preproc=no
4729 rm -f conftest.err conftest.$ac_ext
4730 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4731 $as_echo "$ac_header_preproc" >&6; }
4733 # So? What about this header?
4734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4737 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4739 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4740 ac_header_preproc=yes
4743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4744 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4746 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4748 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4750 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4752 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4754 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4758 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 $as_echo_n "checking for $ac_header... " >&6; }
4760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4761 $as_echo_n "(cached) " >&6
4763 eval "$as_ac_Header=\$ac_header_preproc"
4765 ac_res=`eval 'as_val=${'$as_ac_Header'}
4766 $as_echo "$as_val"'`
4767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4768 $as_echo "$ac_res" >&6; }
4771 if test `eval 'as_val=${'$as_ac_Header'}
4772 $as_echo "$as_val"'` = yes; then
4773 cat >>confdefs.h <<_ACEOF
4774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4786 # Only perform the check for file, if the check method requires it
4787 case $deplibs_check_method in
4789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4790 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4791 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
4792 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4793 $as_echo_n "(cached) " >&6
4797 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4803 ac_save_MAGIC_CMD="$MAGIC_CMD"
4804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4805 ac_dummy="/usr/bin:$PATH"
4806 for ac_dir in $ac_dummy; do
4807 test -z "$ac_dir" && ac_dir=.
4808 if test -f $ac_dir/${ac_tool_prefix}file; then
4809 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4810 if test -n "$file_magic_test_file"; then
4811 case $deplibs_check_method in
4813 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4816 egrep "$file_magic_regex" > /dev/null; then
4821 *** Warning: the command libtool uses to detect shared libraries,
4822 *** $file_magic_cmd, produces output that libtool cannot recognize.
4823 *** The result is that libtool may fail to recognize shared libraries
4824 *** as such. This will affect the creation of libtool libraries that
4825 *** depend on shared libraries, but programs linked with such libtool
4826 *** libraries will work regardless of this problem. Nevertheless, you
4827 *** may want to report the problem to your system manager and/or to
4828 *** bug-libtool@gnu.org
4838 MAGIC_CMD="$ac_save_MAGIC_CMD"
4843 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4844 if test -n "$MAGIC_CMD"; then
4845 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4846 $as_echo "$MAGIC_CMD" >&6; }
4848 { $as_echo "$as_me:$LINENO: result: no" >&5
4849 $as_echo "no" >&6; }
4852 if test -z "$lt_cv_path_MAGIC_CMD"; then
4853 if test -n "$ac_tool_prefix"; then
4854 { $as_echo "$as_me:$LINENO: checking for file" >&5
4855 $as_echo_n "checking for file... " >&6; }
4856 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4857 $as_echo_n "(cached) " >&6
4861 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4864 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4867 ac_save_MAGIC_CMD="$MAGIC_CMD"
4868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4869 ac_dummy="/usr/bin:$PATH"
4870 for ac_dir in $ac_dummy; do
4871 test -z "$ac_dir" && ac_dir=.
4872 if test -f $ac_dir/file; then
4873 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4874 if test -n "$file_magic_test_file"; then
4875 case $deplibs_check_method in
4877 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4879 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4880 egrep "$file_magic_regex" > /dev/null; then
4885 *** Warning: the command libtool uses to detect shared libraries,
4886 *** $file_magic_cmd, produces output that libtool cannot recognize.
4887 *** The result is that libtool may fail to recognize shared libraries
4888 *** as such. This will affect the creation of libtool libraries that
4889 *** depend on shared libraries, but programs linked with such libtool
4890 *** libraries will work regardless of this problem. Nevertheless, you
4891 *** may want to report the problem to your system manager and/or to
4892 *** bug-libtool@gnu.org
4902 MAGIC_CMD="$ac_save_MAGIC_CMD"
4907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4908 if test -n "$MAGIC_CMD"; then
4909 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4910 $as_echo "$MAGIC_CMD" >&6; }
4912 { $as_echo "$as_me:$LINENO: result: no" >&5
4913 $as_echo "no" >&6; }
4925 if test -n "$ac_tool_prefix"; then
4926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if test "${ac_cv_prog_RANLIB+set}" = set; then
4931 $as_echo_n "(cached) " >&6
4933 if test -n "$RANLIB"; then
4934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953 RANLIB=$ac_cv_prog_RANLIB
4954 if test -n "$RANLIB"; then
4955 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4956 $as_echo "$RANLIB" >&6; }
4958 { $as_echo "$as_me:$LINENO: result: no" >&5
4959 $as_echo "no" >&6; }
4964 if test -z "$ac_cv_prog_RANLIB"; then
4965 ac_ct_RANLIB=$RANLIB
4966 # Extract the first word of "ranlib", so it can be a program name with args.
4967 set dummy ranlib; ac_word=$2
4968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4971 $as_echo_n "(cached) " >&6
4973 if test -n "$ac_ct_RANLIB"; then
4974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_ac_ct_RANLIB="ranlib"
4984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4994 if test -n "$ac_ct_RANLIB"; then
4995 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4996 $as_echo "$ac_ct_RANLIB" >&6; }
4998 { $as_echo "$as_me:$LINENO: result: no" >&5
4999 $as_echo "no" >&6; }
5002 if test "x$ac_ct_RANLIB" = x; then
5005 case $cross_compiling:$ac_tool_warned in
5007 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5008 whose name does not start with the host triplet. If you think this
5009 configuration is useful to you, please write to autoconf@gnu.org." >&5
5010 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5011 whose name does not start with the host triplet. If you think this
5012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5013 ac_tool_warned=yes ;;
5015 RANLIB=$ac_ct_RANLIB
5018 RANLIB="$ac_cv_prog_RANLIB"
5021 if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}strip; ac_word=$2
5024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_STRIP+set}" = set; then
5027 $as_echo_n "(cached) " >&6
5029 if test -n "$STRIP"; then
5030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 STRIP=$ac_cv_prog_STRIP
5050 if test -n "$STRIP"; then
5051 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5052 $as_echo "$STRIP" >&6; }
5054 { $as_echo "$as_me:$LINENO: result: no" >&5
5055 $as_echo "no" >&6; }
5060 if test -z "$ac_cv_prog_STRIP"; then
5062 # Extract the first word of "strip", so it can be a program name with args.
5063 set dummy strip; ac_word=$2
5064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5067 $as_echo_n "(cached) " >&6
5069 if test -n "$ac_ct_STRIP"; then
5070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_ac_ct_STRIP="strip"
5080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5090 if test -n "$ac_ct_STRIP"; then
5091 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5092 $as_echo "$ac_ct_STRIP" >&6; }
5094 { $as_echo "$as_me:$LINENO: result: no" >&5
5095 $as_echo "no" >&6; }
5098 if test "x$ac_ct_STRIP" = x; then
5101 case $cross_compiling:$ac_tool_warned in
5103 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5104 whose name does not start with the host triplet. If you think this
5105 configuration is useful to you, please write to autoconf@gnu.org." >&5
5106 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5107 whose name does not start with the host triplet. If you think this
5108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5109 ac_tool_warned=yes ;;
5114 STRIP="$ac_cv_prog_STRIP"
5121 # Check whether --enable-libtool-lock was given.
5122 if test "${enable_libtool_lock+set}" = set; then
5123 enableval=$enable_libtool_lock;
5126 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5128 # Some flags need to be propagated to the compiler or linker for good
5132 # Find out which ABI we are using.
5133 echo '#line 5133 "configure"' > conftest.$ac_ext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135 (eval $ac_compile) 2>&5
5137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; then
5139 case `/usr/bin/file conftest.$ac_objext` in
5155 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5156 SAVE_CFLAGS="$CFLAGS"
5157 CFLAGS="$CFLAGS -belf"
5158 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5159 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5160 if test "${lt_cv_cc_needs_belf+set}" = set; then
5161 $as_echo_n "(cached) " >&6
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5170 cat >conftest.$ac_ext <<_ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5185 rm -f conftest.$ac_objext conftest$ac_exeext
5186 if { (ac_try="$ac_link"
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5192 $as_echo "$ac_try_echo") >&5
5193 (eval "$ac_link") 2>conftest.er1
5195 grep -v '^ *+' conftest.er1 >conftest.err
5197 cat conftest.err >&5
5198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } && {
5200 test -z "$ac_c_werror_flag" ||
5201 test ! -s conftest.err
5202 } && test -s conftest$ac_exeext &&
5203 $as_test_x conftest$ac_exeext; then
5204 lt_cv_cc_needs_belf=yes
5206 $as_echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 lt_cv_cc_needs_belf=no
5212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5213 conftest$ac_exeext conftest.$ac_ext
5215 ac_cpp='$CPP $CPPFLAGS'
5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5221 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5222 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5223 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5224 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5225 CFLAGS="$SAVE_CFLAGS"
5232 # Sed substitution that helps us do robust quoting. It backslashifies
5233 # metacharacters that are still active within double-quoted strings.
5234 Xsed='sed -e s/^X//'
5235 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5237 # Same as above, but do not quote variable references.
5238 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5240 # Sed substitution to delay expansion of an escaped shell variable in a
5241 # double_quote_subst'ed string.
5242 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5248 default_ofile=libtool
5249 can_build_shared=yes
5251 # All known linkers require a `.a' archive for static linking (except M$VC,
5252 # which needs '.lib').
5254 ltmain="$ac_aux_dir/ltmain.sh"
5255 ofile="$default_ofile"
5256 with_gnu_ld="$lt_cv_prog_gnu_ld"
5257 need_locks="$enable_libtool_lock"
5260 old_CFLAGS="$CFLAGS"
5262 # Set sane defaults for various variables
5263 test -z "$AR" && AR=ar
5264 test -z "$AR_FLAGS" && AR_FLAGS=cru
5265 test -z "$AS" && AS=as
5266 test -z "$CC" && CC=cc
5267 test -z "$DLLTOOL" && DLLTOOL=dlltool
5268 test -z "$LD" && LD=ld
5269 test -z "$LN_S" && LN_S="ln -s"
5270 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5271 test -z "$NM" && NM=nm
5272 test -z "$OBJDUMP" && OBJDUMP=objdump
5273 test -z "$RANLIB" && RANLIB=:
5274 test -z "$STRIP" && STRIP=:
5275 test -z "$ac_objext" && ac_objext=o
5277 if test x"$host" != x"$build"; then
5278 ac_tool_prefix=${host_alias}-
5283 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5286 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5291 # AIX sometimes has problems with the GCC collect2 program. For some
5292 # reason, if we set the COLLECT_NAMES environment variable, the problems
5293 # vanish in a puff of smoke.
5294 if test "X${COLLECT_NAMES+set}" != Xset; then
5296 export COLLECT_NAMES
5301 # Determine commands to create old-style static archives.
5302 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5303 old_postinstall_cmds='chmod 644 $oldlib'
5304 old_postuninstall_cmds=
5306 if test -n "$RANLIB"; then
5309 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5312 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5315 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5318 # Allow CC to be a program name with arguments.
5322 ## FIXME: this should be a separate macro
5324 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
5325 $as_echo_n "checking for objdir... " >&6; }
5326 rm -f .libs 2>/dev/null
5327 mkdir .libs 2>/dev/null
5328 if test -d .libs; then
5331 # MS-DOS does not allow filenames that begin with a dot.
5334 rmdir .libs 2>/dev/null
5335 { $as_echo "$as_me:$LINENO: result: $objdir" >&5
5336 $as_echo "$objdir" >&6; }
5341 ## FIXME: this should be a separate macro
5344 # Check whether --with-pic was given.
5345 if test "${with_pic+set}" = set; then
5346 withval=$with_pic; pic_mode="$withval"
5351 test -z "$pic_mode" && pic_mode=default
5353 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5354 # in isolation, and that seeing it set (from the cache) indicates that
5355 # the associated values are set (in the cache) correctly too.
5356 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5357 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
5358 if test "${lt_cv_prog_cc_pic+set}" = set; then
5359 $as_echo_n "(cached) " >&6
5362 lt_cv_prog_cc_shlib=
5364 lt_cv_prog_cc_static=
5365 lt_cv_prog_cc_no_builtin=
5366 lt_cv_prog_cc_can_build_shared=$can_build_shared
5368 if test "$GCC" = yes; then
5369 lt_cv_prog_cc_wl='-Wl,'
5370 lt_cv_prog_cc_static='-static'
5374 # Below there is a dirty hack to force normal static linking with -ldl
5375 # The problem is because libdl dynamically linked with both libc and
5376 # libC (AIX C++ library), which obviously doesn't included in libraries
5377 # list by gcc. This cause undefined symbols with -static flags.
5378 # This hack allows C programs to be linked with "-static -ldl", but
5379 # not sure about C++ programs.
5380 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5383 # FIXME: we need at least 68020 code to build shared libraries, but
5384 # adding the `-m68020' flag to GCC prevents building anything better,
5386 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5389 # PIC is the default for these OSes.
5391 darwin* | rhapsody*)
5392 # PIC is the default on this platform
5393 # Common symbols not allowed in MH_DYLIB files
5394 lt_cv_prog_cc_pic='-fno-common'
5396 cygwin* | mingw* | pw32* | os2*)
5397 # This hack is so that the source file can tell whether it is being
5398 # built for inclusion in a dll (and should export symbols for example).
5399 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5402 if test -d /usr/nec; then
5403 lt_cv_prog_cc_pic=-Kconform_pic
5407 lt_cv_prog_cc_pic='-fPIC'
5411 # PORTME Check for PIC flags for the system compiler.
5413 aix3* | aix4* | aix5*)
5414 lt_cv_prog_cc_wl='-Wl,'
5415 # All AIX code is PIC.
5416 if test "$host_cpu" = ia64; then
5417 # AIX 5 now supports IA64 processor
5418 lt_cv_prog_cc_static='-Bstatic'
5420 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5424 hpux9* | hpux10* | hpux11*)
5425 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5426 lt_cv_prog_cc_wl='-Wl,'
5427 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5428 lt_cv_prog_cc_pic='+Z'
5431 irix5* | irix6* | nonstopux*)
5432 lt_cv_prog_cc_wl='-Wl,'
5433 lt_cv_prog_cc_static='-non_shared'
5434 # PIC (with -KPIC) is the default.
5437 cygwin* | mingw* | pw32* | os2*)
5438 # This hack is so that the source file can tell whether it is being
5439 # built for inclusion in a dll (and should export symbols for example).
5440 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5444 lt_cv_prog_cc_pic='-KPIC'
5445 lt_cv_prog_cc_static='-Bstatic'
5448 osf3* | osf4* | osf5*)
5449 # All OSF/1 code is PIC.
5450 lt_cv_prog_cc_wl='-Wl,'
5451 lt_cv_prog_cc_static='-non_shared'
5455 lt_cv_prog_cc_pic='-Kpic'
5456 lt_cv_prog_cc_static='-dn'
5457 lt_cv_prog_cc_shlib='-belf'
5461 lt_cv_prog_cc_pic='-KPIC'
5462 lt_cv_prog_cc_static='-Bstatic'
5463 lt_cv_prog_cc_wl='-Wl,'
5467 lt_cv_prog_cc_pic='-PIC'
5468 lt_cv_prog_cc_static='-Bstatic'
5469 lt_cv_prog_cc_wl='-Qoption ld '
5472 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5473 lt_cv_prog_cc_pic='-KPIC'
5474 lt_cv_prog_cc_static='-Bstatic'
5475 lt_cv_prog_cc_wl='-Wl,'
5479 lt_cv_prog_cc_pic='-pic'
5480 lt_cv_prog_cc_static='-Bstatic'
5484 if test -d /usr/nec ;then
5485 lt_cv_prog_cc_pic='-Kconform_pic'
5486 lt_cv_prog_cc_static='-Bstatic'
5491 lt_cv_prog_cc_can_build_shared=no
5498 if test -z "$lt_cv_prog_cc_pic"; then
5499 { $as_echo "$as_me:$LINENO: result: none" >&5
5500 $as_echo "none" >&6; }
5502 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5503 $as_echo "$lt_cv_prog_cc_pic" >&6; }
5505 # Check to make sure the pic_flag actually works.
5506 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5507 $as_echo_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... " >&6; }
5508 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5509 $as_echo_n "(cached) " >&6
5511 save_CFLAGS="$CFLAGS"
5512 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5535 $as_echo "$ac_try_echo") >&5
5536 (eval "$ac_compile") 2>conftest.er1
5538 grep -v '^ *+' conftest.er1 >conftest.err
5540 cat conftest.err >&5
5541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } && {
5543 test -z "$ac_c_werror_flag" ||
5544 test ! -s conftest.err
5545 } && test -s conftest.$ac_objext; then
5547 hpux9* | hpux10* | hpux11*)
5548 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5549 # they create non-PIC objects. So, if there were any warnings, we
5550 # assume that PIC is not supported.
5551 if test -s conftest.err; then
5552 lt_cv_prog_cc_pic_works=no
5554 lt_cv_prog_cc_pic_works=yes
5558 lt_cv_prog_cc_pic_works=yes
5563 $as_echo "$as_me: failed program was:" >&5
5564 sed 's/^/| /' conftest.$ac_ext >&5
5566 lt_cv_prog_cc_pic_works=no
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571 CFLAGS="$save_CFLAGS"
5576 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5578 lt_cv_prog_cc_can_build_shared=no
5580 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5583 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5584 $as_echo "$lt_cv_prog_cc_pic_works" >&6; }
5589 # Check for any special shared library compilation flags.
5590 if test -n "$lt_cv_prog_cc_shlib"; then
5591 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5592 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5593 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5595 { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5596 $as_echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5597 lt_cv_prog_cc_can_build_shared=no
5601 ## FIXME: this should be a separate macro
5603 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5604 $as_echo_n "checking if $compiler static flag $lt_cv_prog_cc_static works... " >&6; }
5605 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5606 $as_echo_n "(cached) " >&6
5608 lt_cv_prog_cc_static_works=no
5609 save_LDFLAGS="$LDFLAGS"
5610 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5611 cat >conftest.$ac_ext <<_ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5626 rm -f conftest.$ac_objext conftest$ac_exeext
5627 if { (ac_try="$ac_link"
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5633 $as_echo "$ac_try_echo") >&5
5634 (eval "$ac_link") 2>conftest.er1
5636 grep -v '^ *+' conftest.er1 >conftest.err
5638 cat conftest.err >&5
5639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_c_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest$ac_exeext &&
5644 $as_test_x conftest$ac_exeext; then
5645 lt_cv_prog_cc_static_works=yes
5647 $as_echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5654 conftest$ac_exeext conftest.$ac_ext
5655 LDFLAGS="$save_LDFLAGS"
5660 # Belt *and* braces to stop my trousers falling down:
5661 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5662 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5663 $as_echo "$lt_cv_prog_cc_static_works" >&6; }
5665 pic_flag="$lt_cv_prog_cc_pic"
5666 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5667 wl="$lt_cv_prog_cc_wl"
5668 link_static_flag="$lt_cv_prog_cc_static"
5669 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5670 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5675 ## FIXME: this should be a separate macro
5677 # Check to see if options -o and -c are simultaneously supported by compiler
5678 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5679 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
5680 if test "${lt_cv_compiler_c_o+set}" = set; then
5681 $as_echo_n "(cached) " >&6
5684 $rm -r conftest 2>/dev/null
5687 echo "int some_variable = 0;" > conftest.$ac_ext
5689 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5690 # that will create temporary files in the current directory regardless of
5691 # the output directory. Thus, making CWD read-only will cause this test
5692 # to fail, enabling locking or at least warning the user not to do parallel
5695 save_CFLAGS="$CFLAGS"
5696 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5698 if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5699 # The compiler can only warn and ignore the option if not recognized
5700 # So say no if there are warnings
5701 if test -s out/conftest.err; then
5702 lt_cv_compiler_c_o=no
5704 lt_cv_compiler_c_o=yes
5707 # Append any errors to the config.log.
5708 cat out/conftest.err 1>&5
5709 lt_cv_compiler_c_o=no
5711 CFLAGS="$save_CFLAGS"
5717 $rm -r conftest 2>/dev/null
5721 compiler_c_o=$lt_cv_compiler_c_o
5722 { $as_echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5723 $as_echo "$compiler_c_o" >&6; }
5725 if test x"$compiler_c_o" = x"yes"; then
5726 # Check to see if we can write to a .lo
5727 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5728 $as_echo_n "checking if $compiler supports -c -o file.lo... " >&6; }
5729 if test "${lt_cv_compiler_o_lo+set}" = set; then
5730 $as_echo_n "(cached) " >&6
5733 lt_cv_compiler_o_lo=no
5734 save_CFLAGS="$CFLAGS"
5735 CFLAGS="$CFLAGS -c -o conftest.lo"
5736 save_objext="$ac_objext"
5738 cat >conftest.$ac_ext <<_ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5748 int some_variable = 0;
5753 rm -f conftest.$ac_objext
5754 if { (ac_try="$ac_compile"
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5760 $as_echo "$ac_try_echo") >&5
5761 (eval "$ac_compile") 2>conftest.er1
5763 grep -v '^ *+' conftest.er1 >conftest.err
5765 cat conftest.err >&5
5766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } && {
5768 test -z "$ac_c_werror_flag" ||
5769 test ! -s conftest.err
5770 } && test -s conftest.$ac_objext; then
5771 # The compiler can only warn and ignore the option if not recognized
5772 # So say no if there are warnings
5773 if test -s conftest.err; then
5774 lt_cv_compiler_o_lo=no
5776 lt_cv_compiler_o_lo=yes
5780 $as_echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 ac_objext="$save_objext"
5788 CFLAGS="$save_CFLAGS"
5792 compiler_o_lo=$lt_cv_compiler_o_lo
5793 { $as_echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5794 $as_echo "$compiler_o_lo" >&6; }
5801 ## FIXME: this should be a separate macro
5803 # Check to see if we can do hard links to lock some files if needed
5804 hard_links="nottested"
5805 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5806 # do not overwrite the value of need_locks provided by the user
5807 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5808 $as_echo_n "checking if we can lock with hard links... " >&6; }
5811 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5813 ln conftest.a conftest.b 2>&5 || hard_links=no
5814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5815 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
5816 $as_echo "$hard_links" >&6; }
5817 if test "$hard_links" = no; then
5818 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5819 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5828 ## FIXME: this should be a separate macro
5830 if test "$GCC" = yes; then
5831 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5832 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5833 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
5834 echo "int some_variable = 0;" > conftest.$ac_ext
5835 save_CFLAGS="$CFLAGS"
5836 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5837 compiler_rtti_exceptions=no
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5848 int some_variable = 0;
5853 rm -f conftest.$ac_objext
5854 if { (ac_try="$ac_compile"
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5860 $as_echo "$ac_try_echo") >&5
5861 (eval "$ac_compile") 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } && {
5868 test -z "$ac_c_werror_flag" ||
5869 test ! -s conftest.err
5870 } && test -s conftest.$ac_objext; then
5871 # The compiler can only warn and ignore the option if not recognized
5872 # So say no if there are warnings
5873 if test -s conftest.err; then
5874 compiler_rtti_exceptions=no
5876 compiler_rtti_exceptions=yes
5880 $as_echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 CFLAGS="$save_CFLAGS"
5888 { $as_echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5889 $as_echo "$compiler_rtti_exceptions" >&6; }
5891 if test "$compiler_rtti_exceptions" = "yes"; then
5892 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5894 no_builtin_flag=' -fno-builtin'
5900 ## FIXME: this should be a separate macro
5902 # See if the linker supports building shared libraries.
5903 { $as_echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5904 $as_echo_n "checking whether the linker ($LD) supports shared libraries... " >&6; }
5906 allow_undefined_flag=
5908 need_lib_prefix=unknown
5909 need_version=unknown
5910 # when you set need_version to no, make sure it does not cause -set_version
5911 # flags to be left without arguments
5913 archive_expsym_cmds=
5914 old_archive_from_new_cmds=
5915 old_archive_from_expsyms_cmds=
5916 export_dynamic_flag_spec=
5917 whole_archive_flag_spec=
5918 thread_safe_flag_spec=
5919 hardcode_into_libs=no
5920 hardcode_libdir_flag_spec=
5921 hardcode_libdir_separator=
5924 hardcode_shlibpath_var=unsupported
5926 link_all_deplibs=unknown
5927 always_export_symbols=no
5928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5929 # include_expsyms should be a list of space-separated symbols to be *always*
5930 # included in the symbol list
5932 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5933 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5934 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5935 # as well as any symbol that contains `d'.
5936 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5937 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5938 # platforms (ab)use it in PIC code, but their linkers get confused if
5939 # the symbol is explicitly referenced. Since portable code cannot
5940 # rely on this symbol name, it's probably fine to never include it in
5941 # preloaded symbol tables.
5942 extract_expsyms_cmds=
5945 cygwin* | mingw* | pw32*)
5946 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5947 # When not using gcc, we currently assume that we are using
5948 # Microsoft Visual C++.
5949 if test "$GCC" != yes; then
5959 if test "$with_gnu_ld" = yes; then
5960 # If archive_cmds runs LD, not CC, wlarc should be empty
5963 # See if GNU ld supports shared libraries.
5965 aix3* | aix4* | aix5*)
5966 # On AIX, the GNU linker is very broken
5967 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5972 *** to be unable to reliably create shared libraries on AIX.
5973 *** Therefore, libtool is disabling shared libraries support. If you
5974 *** really care for shared libraries, you may want to modify your PATH
5975 *** so that a non-GNU linker is found, and then restart.
5981 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5982 hardcode_libdir_flag_spec='-L$libdir'
5983 hardcode_minus_L=yes
5985 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5986 # that the semantics of dynamic libraries on AmigaOS, at least up
5987 # to version 4, is to share data among multiple programs linked
5988 # with the same dynamic library. Since this doesn't match the
5989 # behavior of shared libraries on other platforms, we can use
5995 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5996 allow_undefined_flag=unsupported
5997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5998 # support --undefined. This deserves some investigation. FIXME
5999 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6005 cygwin* | mingw* | pw32*)
6006 # hardcode_libdir_flag_spec is actually meaningless, as there is
6007 # no search path for DLLs.
6008 hardcode_libdir_flag_spec='-L$libdir'
6009 allow_undefined_flag=unsupported
6010 always_export_symbols=yes
6012 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6013 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6014 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6015 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6016 else $CC -o impgen impgen.c ; fi)~
6017 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6019 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6021 # cygwin and mingw dlls have different entry points and sets of symbols
6023 # FIXME: what about values for MSVC?
6024 dll_entry=__cygwin_dll_entry@12
6025 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6029 dll_entry=_DllMainCRTStartup@12
6030 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6034 # mingw and cygwin differ, and it's simplest to just exclude the union
6035 # of the two symbol sets.
6036 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6038 # recent cygwin and mingw systems supply a stub DllMain which the user
6039 # can override, but on older systems we have to supply one (in ltdll.c)
6040 if test "x$lt_cv_need_dllmain" = "xyes"; then
6041 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6042 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6043 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6049 # Extract the symbol export list from an `--export-all' def file,
6050 # then regenerate the def file from the symbol export list, so that
6051 # the compiled dll only exports the symbol export list.
6052 # Be careful not to strip the DATA tag left be newer dlltools.
6053 export_symbols_cmds="$ltdll_cmds"'
6054 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6055 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6057 # If the export-symbols file already is a .def file (1st line
6058 # is EXPORTS), use it as is.
6059 # If DATA tags from a recent dlltool are present, honour them!
6060 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6061 cp $export_symbols $output_objdir/$soname-def;
6063 echo EXPORTS > $output_objdir/$soname-def;
6065 cat $export_symbols | while read symbol; do
6068 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6069 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6070 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6072 _lt_hint=`expr 1 + \$_lt_hint`;
6076 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6077 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6078 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6079 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6080 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6084 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6085 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6088 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6089 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6094 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6098 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6099 *** create shared libraries on Solaris systems. Therefore, libtool
6100 *** is disabling shared libraries support. We urge you to upgrade GNU
6101 *** binutils to release 2.9.1 or newer. Another option is to modify
6102 *** your PATH or compiler configuration so that the native linker is
6103 *** used, and then restart.
6106 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6115 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6118 hardcode_shlibpath_var=no
6122 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6131 if test "$ld_shlibs" = yes; then
6132 runpath_var=LD_RUN_PATH
6133 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6134 export_dynamic_flag_spec='${wl}--export-dynamic'
6136 cygwin* | mingw* | pw32*)
6137 # dlltool doesn't understand --whole-archive et. al.
6138 whole_archive_flag_spec=
6141 # ancient GNU ld didn't support --whole-archive et. al.
6142 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6143 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6145 whole_archive_flag_spec=
6151 # PORTME fill in a description of your system's linker (not GNU ld)
6154 allow_undefined_flag=unsupported
6155 always_export_symbols=yes
6156 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6157 # Note: this linker hardcodes the directories in LIBPATH if there
6158 # are no directories specified by -L.
6159 hardcode_minus_L=yes
6160 if test "$GCC" = yes && test -z "$link_static_flag"; then
6161 # Neither direct hardcoding nor static linking is supported with a
6163 hardcode_direct=unsupported
6168 if test "$host_cpu" = ia64; then
6169 # On IA64, the linker does run time linking by default, so we don't
6170 # have to do anything special.
6171 aix_use_runtimelinking=no
6172 exp_sym_flag='-Bexport'
6175 aix_use_runtimelinking=no
6177 # Test if we are trying to use run time linking or normal
6178 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6179 # need to do runtime linking.
6180 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6181 for ld_flag in $LDFLAGS; do
6184 aix_use_runtimelinking=yes
6191 exp_sym_flag='-bexport'
6192 no_entry_flag='-bnoentry'
6195 # When large executables or shared objects are built, AIX ld can
6196 # have problems creating the table of contents. If linking a library
6197 # or program results in "error TOC overflow" add -mminimal-toc to
6198 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6199 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6203 hardcode_libdir_separator=':'
6204 if test "$GCC" = yes; then
6205 case $host_os in aix4.[012]|aix4.[012].*)
6206 collect2name=`${CC} -print-prog-name=collect2`
6207 if test -f "$collect2name" && \
6208 strings "$collect2name" | grep resolve_lib_name >/dev/null
6210 # We have reworked collect2
6213 # We have old collect2
6214 hardcode_direct=unsupported
6215 # It fails to find uninstalled libraries when the uninstalled
6216 # path is not listed in the libpath. Setting hardcode_minus_L
6217 # to unsupported forces relinking
6218 hardcode_minus_L=yes
6219 hardcode_libdir_flag_spec='-L$libdir'
6220 hardcode_libdir_separator=
6224 shared_flag='-shared'
6227 if test "$host_cpu" = ia64; then
6228 shared_flag='${wl}-G'
6230 if test "$aix_use_runtimelinking" = yes; then
6231 shared_flag='${wl}-G'
6233 shared_flag='${wl}-bM:SRE'
6238 # It seems that -bexpall can do strange things, so it is better to
6239 # generate a list of symbols to export.
6240 always_export_symbols=yes
6241 if test "$aix_use_runtimelinking" = yes; then
6242 # Warning - without using the other runtime loading flags (-brtl),
6243 # -berok will link without error, but may produce a broken library.
6244 allow_undefined_flag='-berok'
6245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6246 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6248 if test "$host_cpu" = ia64; then
6249 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6250 allow_undefined_flag="-z nodefs"
6251 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6253 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6254 # Warning - without using the other run time loading flags,
6255 # -berok will link without error, but may produce a broken library.
6256 allow_undefined_flag='${wl}-berok'
6257 # This is a bit strange, but is similar to how AIX traditionally builds
6258 # it's shared libraries.
6259 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6265 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6266 hardcode_libdir_flag_spec='-L$libdir'
6267 hardcode_minus_L=yes
6268 # see comment about different semantics on the GNU ld section
6272 cygwin* | mingw* | pw32*)
6273 # When not using gcc, we currently assume that we are using
6274 # Microsoft Visual C++.
6275 # hardcode_libdir_flag_spec is actually meaningless, as there is
6276 # no search path for DLLs.
6277 hardcode_libdir_flag_spec=' '
6278 allow_undefined_flag=unsupported
6279 # Tell ltmain to make .lib files, not .a files.
6281 # FIXME: Setting linknames here is a bad hack.
6282 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6283 # The linker will automatically build a .lib file if we build a DLL.
6284 old_archive_from_new_cmds='true'
6285 # FIXME: Should let the user specify the lib program.
6286 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6287 fix_srcfile_path='`cygpath -w "$srcfile"`'
6290 darwin* | rhapsody*)
6292 rhapsody* | darwin1.[012])
6293 allow_undefined_flag='-undefined suppress'
6296 allow_undefined_flag='-flat_namespace -undefined suppress'
6299 # FIXME: Relying on posixy $() will cause problems for
6300 # cross-compilation, but unfortunately the echo tests do not
6301 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6302 # `"' quotes if we put them in here... so don't!
6303 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6304 # We need to add '_' to the symbols in $export_symbols first
6305 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6307 hardcode_shlibpath_var=no
6308 whole_archive_flag_spec='-all_load $convenience'
6315 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6316 # support. Future versions do this automatically, but an explicit c++rt0.o
6317 # does not break anything, and helps significantly (at the cost of a little
6320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6321 hardcode_libdir_flag_spec='-R$libdir'
6323 hardcode_shlibpath_var=no
6326 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6330 hardcode_minus_L=yes
6331 hardcode_shlibpath_var=no
6334 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6335 freebsd* | kfreebsd*-gnu)
6336 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6337 hardcode_libdir_flag_spec='-R$libdir'
6339 hardcode_shlibpath_var=no
6342 hpux9* | hpux10* | hpux11*)
6344 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6345 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6347 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6348 hardcode_libdir_separator=:
6350 hardcode_minus_L=yes # Not in the search PATH, but as the default
6351 # location of the library.
6352 export_dynamic_flag_spec='${wl}-E'
6355 irix5* | irix6* | nonstopux*)
6356 if test "$GCC" = yes; then
6357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6360 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6361 hardcode_libdir_flag_spec='-rpath $libdir'
6363 hardcode_libdir_separator=:
6364 link_all_deplibs=yes
6368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6371 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6373 hardcode_libdir_flag_spec='-R$libdir'
6375 hardcode_shlibpath_var=no
6379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6382 hardcode_libdir_separator=:
6383 hardcode_shlibpath_var=no
6388 hardcode_shlibpath_var=no
6389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6392 export_dynamic_flag_spec='${wl}-E'
6395 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6397 hardcode_libdir_flag_spec='-R$libdir'
6400 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6401 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6408 hardcode_libdir_flag_spec='-L$libdir'
6409 hardcode_minus_L=yes
6410 allow_undefined_flag=unsupported
6411 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6412 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6416 if test "$GCC" = yes; then
6417 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6418 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6420 allow_undefined_flag=' -expect_unresolved \*'
6421 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6424 hardcode_libdir_separator=:
6427 osf4* | osf5*) # as osf3* with the addition of -msym flag
6428 if test "$GCC" = yes; then
6429 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6430 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6433 allow_undefined_flag=' -expect_unresolved \*'
6434 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6435 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6436 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6438 #Both c and cxx compiler support -rpath directly
6439 hardcode_libdir_flag_spec='-rpath $libdir'
6441 hardcode_libdir_separator=:
6445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6446 hardcode_shlibpath_var=no
6447 runpath_var=LD_RUN_PATH
6448 hardcode_runpath_var=yes
6449 export_dynamic_flag_spec='${wl}-Bexport'
6453 # gcc --version < 3.0 without binutils cannot create self contained
6454 # shared libraries reliably, requiring libgcc.a to resolve some of
6455 # the object symbols generated in some cases. Libraries that use
6456 # assert need libgcc.a to resolve __eprintf, for example. Linking
6457 # a copy of libgcc.a into every shared library to guarantee resolving
6458 # such symbols causes other problems: According to Tim Van Holder
6459 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6460 # (to the application) exception stack for one thing.
6461 no_undefined_flag=' -z defs'
6462 if test "$GCC" = yes; then
6463 case `$CC --version 2>/dev/null` in
6467 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6468 *** create self contained shared libraries on Solaris systems, without
6469 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6470 *** -no-undefined support, which will at least allow you to build shared
6471 *** libraries. However, you may find that when you link such libraries
6472 *** into an application without using GCC, you have to manually add
6473 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6474 *** upgrade to a newer version of GCC. Another option is to rebuild your
6475 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6482 # $CC -shared without GNU ld will not create a library from C++
6483 # object files and a static libstdc++, better avoid it by now
6484 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6485 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6486 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6487 hardcode_libdir_flag_spec='-R$libdir'
6488 hardcode_shlibpath_var=no
6490 solaris2.[0-5] | solaris2.[0-5].*) ;;
6491 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6492 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6494 link_all_deplibs=yes
6498 if test "x$host_vendor" = xsequent; then
6499 # Use $CC to link under sequent, because it throws in some extra .o
6500 # files that make .init and .fini sections work.
6501 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6503 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6505 hardcode_libdir_flag_spec='-L$libdir'
6507 hardcode_minus_L=yes
6508 hardcode_shlibpath_var=no
6512 case $host_vendor in
6514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6515 hardcode_direct=yes # is this really true???
6518 ## LD is ld it makes a PLAMLIB
6519 ## CC just makes a GrossModule.
6520 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6521 reload_cmds='$CC -r -o $output$reload_objs'
6525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6526 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6529 runpath_var='LD_RUN_PATH'
6530 hardcode_shlibpath_var=no
6534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6535 hardcode_shlibpath_var=no
6536 export_dynamic_flag_spec='-Bexport'
6540 no_undefined_flag=' -z text'
6541 # $CC -shared without GNU ld will not create a library from C++
6542 # object files and a static libstdc++, better avoid it by now
6543 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6544 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6545 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6546 hardcode_libdir_flag_spec=
6547 hardcode_shlibpath_var=no
6548 runpath_var='LD_RUN_PATH'
6552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6553 hardcode_libdir_flag_spec='-L$libdir'
6554 hardcode_shlibpath_var=no
6558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6559 hardcode_libdir_flag_spec='-L$libdir'
6560 hardcode_shlibpath_var=no
6564 if test -d /usr/nec; then
6565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6566 hardcode_shlibpath_var=no
6567 runpath_var=LD_RUN_PATH
6568 hardcode_runpath_var=yes
6574 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6577 hardcode_shlibpath_var=no
6578 hardcode_runpath_var=yes
6579 runpath_var=LD_RUN_PATH
6582 sysv5uw7* | unixware7*)
6583 no_undefined_flag='${wl}-z ${wl}text'
6584 if test "$GCC" = yes; then
6585 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6587 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6589 runpath_var='LD_RUN_PATH'
6590 hardcode_shlibpath_var=no
6598 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6599 $as_echo "$ld_shlibs" >&6; }
6600 test "$ld_shlibs" = no && can_build_shared=no
6604 ## FIXME: this should be a separate macro
6606 # Check hardcoding attributes.
6607 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6608 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
6610 if test -n "$hardcode_libdir_flag_spec" || \
6611 test -n "$runpath_var"; then
6613 # We can hardcode non-existant directories.
6614 if test "$hardcode_direct" != no &&
6615 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6616 # have to relink, otherwise we might link with an installed library
6617 # when we should be linking with a yet-to-be-installed one
6618 ## test "$hardcode_shlibpath_var" != no &&
6619 test "$hardcode_minus_L" != no; then
6620 # Linking always hardcodes the temporary library directory.
6621 hardcode_action=relink
6623 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6624 hardcode_action=immediate
6627 # We cannot hardcode anything, or else we can only hardcode existing
6629 hardcode_action=unsupported
6631 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
6632 $as_echo "$hardcode_action" >&6; }
6636 ## FIXME: this should be a separate macro
6640 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6641 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
6642 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6645 { $as_echo "$as_me:$LINENO: result: yes" >&5
6646 $as_echo "yes" >&6; }
6648 { $as_echo "$as_me:$LINENO: result: no" >&5
6649 $as_echo "no" >&6; }
6654 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6655 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6657 ## FIXME: this should be a separate macro
6659 # PORTME Fill in your ld.so characteristics
6660 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6661 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6663 libname_spec='lib$name'
6670 shlibpath_overrides_runpath=unknown
6672 dynamic_linker="$host_os ld.so"
6673 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6679 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6680 shlibpath_var=LIBPATH
6682 # AIX has no versioning support, so we append a major version to the name.
6683 soname_spec='${libname}${release}.so$major'
6690 hardcode_into_libs=yes
6691 if test "$host_cpu" = ia64; then
6692 # AIX 5 supports IA64
6693 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6694 shlibpath_var=LD_LIBRARY_PATH
6696 # With GCC up to 2.95.x, collect2 would create an import file
6697 # for dependence libraries. The import file would start with
6698 # the line `#! .'. This would cause the generated library to
6699 # depend on `.', always an invalid library. This was fixed in
6700 # development snapshots of GCC prior to 3.0.
6702 aix4 | aix4.[01] | aix4.[01].*)
6703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6705 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6712 # AIX (on Power*) has no versioning support, so currently we can
6713 # not hardcode correct soname into executable. Probably we can
6714 # add versioning support to collect2, so additional links can
6715 # be useful in future.
6716 if test "$aix_use_runtimelinking" = yes; then
6717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6718 # instead of lib<name>.a to let people know that these are not
6719 # typical AIX shared libraries.
6720 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6722 # We preserve .a as extension for shared libraries through AIX4.2
6723 # and later when we are not doing run time linking.
6724 library_names_spec='${libname}${release}.a $libname.a'
6725 soname_spec='${libname}${release}.so$major'
6727 shlibpath_var=LIBPATH
6729 hardcode_into_libs=yes
6733 library_names_spec='$libname.ixlibrary $libname.a'
6734 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6735 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6739 library_names_spec='${libname}.so'
6740 dynamic_linker="$host_os ld.so"
6741 shlibpath_var=LIBRARY_PATH
6747 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6748 soname_spec='${libname}${release}.so$major'
6749 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6750 shlibpath_var=LD_LIBRARY_PATH
6751 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6752 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6753 export_dynamic_flag_spec=-rdynamic
6754 # the default ld.so.conf also contains /usr/contrib/lib and
6755 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6756 # libtool to hard-code these into programs
6759 cygwin* | mingw* | pw32*)
6760 version_type=windows
6763 case $GCC,$host_os in
6765 library_names_spec='$libname.dll.a'
6766 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6767 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6768 dldir=$destdir/`dirname \$dlpath`~
6769 test -d \$dldir || mkdir -p \$dldir~
6770 $install_prog .libs/$dlname \$dldir/$dlname'
6771 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6772 dlpath=$dir/\$dldll~
6776 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6777 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6783 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6786 dynamic_linker='Win32 ld.exe'
6787 # FIXME: first we should search . and the directory the executable is in
6791 darwin* | rhapsody*)
6792 dynamic_linker="$host_os dyld"
6796 # FIXME: Relying on posixy $() will cause problems for
6797 # cross-compilation, but unfortunately the echo tests do not
6798 # yet detect zsh echo's removal of \ escapes.
6799 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6800 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6801 shlibpath_overrides_runpath=yes
6802 shlibpath_var=DYLD_LIBRARY_PATH
6813 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6814 soname_spec='${libname}${release}.so$major'
6815 shlibpath_var=LD_LIBRARY_PATH
6816 shlibpath_overrides_runpath=no
6817 hardcode_into_libs=yes
6818 dynamic_linker='GNU/FreeBSD ld.so'
6822 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6823 version_type=freebsd-$objformat
6824 case $version_type in
6826 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6831 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6835 shlibpath_var=LD_LIBRARY_PATH
6838 shlibpath_overrides_runpath=yes
6841 shlibpath_overrides_runpath=no
6842 hardcode_into_libs=yes
6851 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6852 soname_spec='${libname}${release}.so$major'
6853 shlibpath_var=LD_LIBRARY_PATH
6854 hardcode_into_libs=yes
6857 hpux9* | hpux10* | hpux11*)
6858 # Give a soname corresponding to the major version so that dld.sl refuses to
6859 # link against other versions.
6860 dynamic_linker="$host_os dld.sl"
6864 shlibpath_var=SHLIB_PATH
6865 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6866 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6867 soname_spec='${libname}${release}.sl$major'
6868 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6869 postinstall_cmds='chmod 555 $lib'
6872 irix5* | irix6* | nonstopux*)
6874 nonstopux*) version_type=nonstopux ;;
6875 *) version_type=irix ;;
6879 soname_spec='${libname}${release}.so$major'
6880 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6882 irix5* | nonstopux*)
6886 case $LD in # libtool.m4 will add one of these switches to LD
6887 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6888 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6889 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6890 *) libsuff= shlibsuff= libmagic=never-match;;
6894 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6895 shlibpath_overrides_runpath=no
6896 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6897 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6900 # No shared lib support for Linux oldld, aout, or coff.
6901 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6905 # This must be Linux ELF.
6910 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6911 soname_spec='${libname}${release}.so$major'
6912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6913 shlibpath_var=LD_LIBRARY_PATH
6914 shlibpath_overrides_runpath=no
6915 # This implies no fast_install, which is unacceptable.
6916 # Some rework will be needed to allow for fast_install
6917 # before this can be enabled.
6918 hardcode_into_libs=yes
6920 # We used to test for /lib/ld.so.1 and disable shared libraries on
6921 # powerpc, because MkLinux only supported shared libraries with the
6922 # GNU dynamic linker. Since this was broken with cross compilers,
6923 # most powerpc-linux boxes support dynamic linking these days and
6924 # people can always --disable-shared, the test was removed, and we
6925 # assume the GNU/Linux dynamic linker is in use.
6926 dynamic_linker='GNU/Linux ld.so'
6933 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6934 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6936 dynamic_linker='NetBSD (a.out) ld.so'
6938 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6939 soname_spec='${libname}${release}.so$major'
6940 dynamic_linker='NetBSD ld.elf_so'
6942 shlibpath_var=LD_LIBRARY_PATH
6943 shlibpath_overrides_runpath=yes
6944 hardcode_into_libs=yes
6949 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6950 shlibpath_var=LD_LIBRARY_PATH
6951 shlibpath_overrides_runpath=yes
6958 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6960 openbsd2.[89] | openbsd2.[89].*)
6961 shlibpath_overrides_runpath=no
6964 shlibpath_overrides_runpath=yes
6968 shlibpath_overrides_runpath=yes
6970 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6972 shlibpath_var=LD_LIBRARY_PATH
6976 libname_spec='$name'
6978 library_names_spec='$libname.dll $libname.a'
6979 dynamic_linker='OS/2 ld.exe'
6980 shlibpath_var=LIBPATH
6983 osf3* | osf4* | osf5*)
6987 soname_spec='${libname}${release}.so$major'
6988 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6989 shlibpath_var=LD_LIBRARY_PATH
6990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6991 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6992 hardcode_into_libs=yes
6997 soname_spec='${libname}${release}.so$major'
6998 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6999 shlibpath_var=LD_LIBRARY_PATH
7006 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7007 soname_spec='${libname}${release}.so$major'
7008 shlibpath_var=LD_LIBRARY_PATH
7009 shlibpath_overrides_runpath=yes
7010 hardcode_into_libs=yes
7011 # ldd complains unless libraries are executable
7012 postinstall_cmds='chmod +x $lib'
7017 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7018 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7019 shlibpath_var=LD_LIBRARY_PATH
7020 shlibpath_overrides_runpath=yes
7021 if test "$with_gnu_ld" = yes; then
7027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7029 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7030 soname_spec='${libname}${release}.so$major'
7031 shlibpath_var=LD_LIBRARY_PATH
7032 case $host_vendor in
7034 shlibpath_overrides_runpath=no
7036 export_dynamic_flag_spec='${wl}-Blargedynsym'
7037 runpath_var=LD_RUN_PATH
7045 shlibpath_overrides_runpath=no
7046 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7053 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7054 soname_spec='${libname}${release}.so$major'
7055 shlibpath_var=LD_LIBRARY_PATH
7062 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7063 soname_spec='${libname}${release}.so$major'
7064 shlibpath_var=LD_LIBRARY_PATH
7068 if test -d /usr/nec ;then
7070 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7071 soname_spec='$libname.so.$major'
7072 shlibpath_var=LD_LIBRARY_PATH
7080 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7081 $as_echo "$dynamic_linker" >&6; }
7082 test "$dynamic_linker" = no && can_build_shared=no
7086 ## FIXME: this should be a separate macro
7088 # Report the final consequences.
7089 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7090 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
7091 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
7092 $as_echo "$can_build_shared" >&6; }
7096 ## FIXME: this should be a separate macro
7098 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7099 $as_echo_n "checking whether to build shared libraries... " >&6; }
7100 test "$can_build_shared" = "no" && enable_shared=no
7102 # On AIX, shared libraries and static libraries use the same namespace, and
7103 # are all built from PIC.
7106 test "$enable_shared" = yes && enable_static=no
7107 if test -n "$RANLIB"; then
7108 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7109 postinstall_cmds='$RANLIB $lib'
7114 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7115 test "$enable_shared" = yes && enable_static=no
7119 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
7120 $as_echo "$enable_shared" >&6; }
7124 ## FIXME: this should be a separate macro
7126 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7127 $as_echo_n "checking whether to build static libraries... " >&6; }
7128 # Make sure either enable_shared or enable_static is yes.
7129 test "$enable_shared" = yes || enable_static=yes
7130 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
7131 $as_echo "$enable_static" >&6; }
7135 if test "$hardcode_action" = relink; then
7136 # Fast installation is not supported
7137 enable_fast_install=no
7138 elif test "$shlibpath_overrides_runpath" = yes ||
7139 test "$enable_shared" = no; then
7140 # Fast installation is not necessary
7141 enable_fast_install=needless
7144 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7145 if test "$GCC" = yes; then
7146 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7149 if test "x$enable_dlopen" != xyes; then
7150 enable_dlopen=unknown
7151 enable_dlopen_self=unknown
7152 enable_dlopen_self_static=unknown
7159 lt_cv_dlopen="load_add_on"
7161 lt_cv_dlopen_self=yes
7164 cygwin* | mingw* | pw32*)
7165 lt_cv_dlopen="LoadLibrary"
7170 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
7171 $as_echo_n "checking for shl_load... " >&6; }
7172 if test "${ac_cv_func_shl_load+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7175 cat >conftest.$ac_ext <<_ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7183 #define shl_load innocuous_shl_load
7185 /* System header to define __stub macros and hopefully few prototypes,
7186 which can conflict with char shl_load (); below.
7187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7188 <limits.h> exists even on freestanding compilers. */
7191 # include <limits.h>
7193 # include <assert.h>
7198 /* Override any GCC internal prototype to avoid an error.
7199 Use char because int might match the return type of a GCC
7200 builtin and then its argument prototype would still apply. */
7205 /* The GNU C library defines this for functions which it implements
7206 to always fail with ENOSYS. Some functions are actually named
7207 something starting with __ and the normal name is an alias. */
7208 #if defined __stub_shl_load || defined __stub___shl_load
7220 rm -f conftest.$ac_objext conftest$ac_exeext
7221 if { (ac_try="$ac_link"
7223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7224 *) ac_try_echo=$ac_try;;
7226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7227 $as_echo "$ac_try_echo") >&5
7228 (eval "$ac_link") 2>conftest.er1
7230 grep -v '^ *+' conftest.er1 >conftest.err
7232 cat conftest.err >&5
7233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } && {
7235 test -z "$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 } && test -s conftest$ac_exeext &&
7238 $as_test_x conftest$ac_exeext; then
7239 ac_cv_func_shl_load=yes
7241 $as_echo "$as_me: failed program was:" >&5
7242 sed 's/^/| /' conftest.$ac_ext >&5
7244 ac_cv_func_shl_load=no
7247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7248 conftest$ac_exeext conftest.$ac_ext
7250 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7251 $as_echo "$ac_cv_func_shl_load" >&6; }
7252 if test $ac_cv_func_shl_load = yes; then
7253 lt_cv_dlopen="shl_load"
7255 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7256 $as_echo_n "checking for shl_load in -ldld... " >&6; }
7257 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7258 $as_echo_n "(cached) " >&6
7260 ac_check_lib_save_LIBS=$LIBS
7262 cat >conftest.$ac_ext <<_ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7269 /* Override any GCC internal prototype to avoid an error.
7270 Use char because int might match the return type of a GCC
7271 builtin and then its argument prototype would still apply. */
7284 rm -f conftest.$ac_objext conftest$ac_exeext
7285 if { (ac_try="$ac_link"
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292 (eval "$ac_link") 2>conftest.er1
7294 grep -v '^ *+' conftest.er1 >conftest.err
7296 cat conftest.err >&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest$ac_exeext &&
7302 $as_test_x conftest$ac_exeext; then
7303 ac_cv_lib_dld_shl_load=yes
7305 $as_echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_cv_lib_dld_shl_load=no
7311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7312 conftest$ac_exeext conftest.$ac_ext
7313 LIBS=$ac_check_lib_save_LIBS
7315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7316 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7317 if test $ac_cv_lib_dld_shl_load = yes; then
7318 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7320 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
7321 $as_echo_n "checking for dlopen... " >&6; }
7322 if test "${ac_cv_func_dlopen+set}" = set; then
7323 $as_echo_n "(cached) " >&6
7325 cat >conftest.$ac_ext <<_ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7333 #define dlopen innocuous_dlopen
7335 /* System header to define __stub macros and hopefully few prototypes,
7336 which can conflict with char dlopen (); below.
7337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7338 <limits.h> exists even on freestanding compilers. */
7341 # include <limits.h>
7343 # include <assert.h>
7348 /* Override any GCC internal prototype to avoid an error.
7349 Use char because int might match the return type of a GCC
7350 builtin and then its argument prototype would still apply. */
7355 /* The GNU C library defines this for functions which it implements
7356 to always fail with ENOSYS. Some functions are actually named
7357 something starting with __ and the normal name is an alias. */
7358 #if defined __stub_dlopen || defined __stub___dlopen
7370 rm -f conftest.$ac_objext conftest$ac_exeext
7371 if { (ac_try="$ac_link"
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7377 $as_echo "$ac_try_echo") >&5
7378 (eval "$ac_link") 2>conftest.er1
7380 grep -v '^ *+' conftest.er1 >conftest.err
7382 cat conftest.err >&5
7383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } && {
7385 test -z "$ac_c_werror_flag" ||
7386 test ! -s conftest.err
7387 } && test -s conftest$ac_exeext &&
7388 $as_test_x conftest$ac_exeext; then
7389 ac_cv_func_dlopen=yes
7391 $as_echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394 ac_cv_func_dlopen=no
7397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7398 conftest$ac_exeext conftest.$ac_ext
7400 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7401 $as_echo "$ac_cv_func_dlopen" >&6; }
7402 if test $ac_cv_func_dlopen = yes; then
7403 lt_cv_dlopen="dlopen"
7405 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7406 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7407 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7408 $as_echo_n "(cached) " >&6
7410 ac_check_lib_save_LIBS=$LIBS
7412 cat >conftest.$ac_ext <<_ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h. */
7419 /* Override any GCC internal prototype to avoid an error.
7420 Use char because int might match the return type of a GCC
7421 builtin and then its argument prototype would still apply. */
7434 rm -f conftest.$ac_objext conftest$ac_exeext
7435 if { (ac_try="$ac_link"
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7441 $as_echo "$ac_try_echo") >&5
7442 (eval "$ac_link") 2>conftest.er1
7444 grep -v '^ *+' conftest.er1 >conftest.err
7446 cat conftest.err >&5
7447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest$ac_exeext &&
7452 $as_test_x conftest$ac_exeext; then
7453 ac_cv_lib_dl_dlopen=yes
7455 $as_echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7458 ac_cv_lib_dl_dlopen=no
7461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7462 conftest$ac_exeext conftest.$ac_ext
7463 LIBS=$ac_check_lib_save_LIBS
7465 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7466 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7467 if test $ac_cv_lib_dl_dlopen = yes; then
7468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7470 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7471 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
7472 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7473 $as_echo_n "(cached) " >&6
7475 ac_check_lib_save_LIBS=$LIBS
7477 cat >conftest.$ac_ext <<_ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7484 /* Override any GCC internal prototype to avoid an error.
7485 Use char because int might match the return type of a GCC
7486 builtin and then its argument prototype would still apply. */
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (ac_try="$ac_link"
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507 (eval "$ac_link") 2>conftest.er1
7509 grep -v '^ *+' conftest.er1 >conftest.err
7511 cat conftest.err >&5
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest$ac_exeext &&
7517 $as_test_x conftest$ac_exeext; then
7518 ac_cv_lib_svld_dlopen=yes
7520 $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7523 ac_cv_lib_svld_dlopen=no
7526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7527 conftest$ac_exeext conftest.$ac_ext
7528 LIBS=$ac_check_lib_save_LIBS
7530 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7531 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
7532 if test $ac_cv_lib_svld_dlopen = yes; then
7533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7535 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7536 $as_echo_n "checking for dld_link in -ldld... " >&6; }
7537 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7538 $as_echo_n "(cached) " >&6
7540 ac_check_lib_save_LIBS=$LIBS
7542 cat >conftest.$ac_ext <<_ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7549 /* Override any GCC internal prototype to avoid an error.
7550 Use char because int might match the return type of a GCC
7551 builtin and then its argument prototype would still apply. */
7564 rm -f conftest.$ac_objext conftest$ac_exeext
7565 if { (ac_try="$ac_link"
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7571 $as_echo "$ac_try_echo") >&5
7572 (eval "$ac_link") 2>conftest.er1
7574 grep -v '^ *+' conftest.er1 >conftest.err
7576 cat conftest.err >&5
7577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } && {
7579 test -z "$ac_c_werror_flag" ||
7580 test ! -s conftest.err
7581 } && test -s conftest$ac_exeext &&
7582 $as_test_x conftest$ac_exeext; then
7583 ac_cv_lib_dld_dld_link=yes
7585 $as_echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_cv_lib_dld_dld_link=no
7591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7592 conftest$ac_exeext conftest.$ac_ext
7593 LIBS=$ac_check_lib_save_LIBS
7595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7596 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
7597 if test $ac_cv_lib_dld_dld_link = yes; then
7598 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7619 if test "x$lt_cv_dlopen" != xno; then
7625 case $lt_cv_dlopen in
7627 save_CPPFLAGS="$CPPFLAGS"
7628 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7630 save_LDFLAGS="$LDFLAGS"
7631 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7634 LIBS="$lt_cv_dlopen_libs $LIBS"
7636 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7637 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
7638 if test "${lt_cv_dlopen_self+set}" = set; then
7639 $as_echo_n "(cached) " >&6
7641 if test "$cross_compiling" = yes; then :
7642 lt_cv_dlopen_self=cross
7644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7645 lt_status=$lt_dlunknown
7646 cat > conftest.$ac_ext <<EOF
7647 #line 7647 "configure"
7648 #include "confdefs.h"
7657 # define LT_DLGLOBAL RTLD_GLOBAL
7660 # define LT_DLGLOBAL DL_GLOBAL
7662 # define LT_DLGLOBAL 0
7666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7667 find out it does not work in some platform. */
7668 #ifndef LT_DLLAZY_OR_NOW
7670 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7673 # define LT_DLLAZY_OR_NOW DL_LAZY
7676 # define LT_DLLAZY_OR_NOW RTLD_NOW
7679 # define LT_DLLAZY_OR_NOW DL_NOW
7681 # define LT_DLLAZY_OR_NOW 0
7689 extern "C" void exit (int);
7692 void fnord() { int i=42;}
7695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7696 int status = $lt_dlunknown;
7700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7701 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7702 /* dlclose (self); */
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>&5
7711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7713 (./conftest; exit; ) 2>/dev/null
7716 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7717 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7718 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7721 # compilation failed
7722 lt_cv_dlopen_self=no
7729 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7730 $as_echo "$lt_cv_dlopen_self" >&6; }
7732 if test "x$lt_cv_dlopen_self" = xyes; then
7733 LDFLAGS="$LDFLAGS $link_static_flag"
7734 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7735 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
7736 if test "${lt_cv_dlopen_self_static+set}" = set; then
7737 $as_echo_n "(cached) " >&6
7739 if test "$cross_compiling" = yes; then :
7740 lt_cv_dlopen_self_static=cross
7742 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7743 lt_status=$lt_dlunknown
7744 cat > conftest.$ac_ext <<EOF
7745 #line 7745 "configure"
7746 #include "confdefs.h"
7755 # define LT_DLGLOBAL RTLD_GLOBAL
7758 # define LT_DLGLOBAL DL_GLOBAL
7760 # define LT_DLGLOBAL 0
7764 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7765 find out it does not work in some platform. */
7766 #ifndef LT_DLLAZY_OR_NOW
7768 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7771 # define LT_DLLAZY_OR_NOW DL_LAZY
7774 # define LT_DLLAZY_OR_NOW RTLD_NOW
7777 # define LT_DLLAZY_OR_NOW DL_NOW
7779 # define LT_DLLAZY_OR_NOW 0
7787 extern "C" void exit (int);
7790 void fnord() { int i=42;}
7793 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7794 int status = $lt_dlunknown;
7798 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7799 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7800 /* dlclose (self); */
7806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7807 (eval $ac_link) 2>&5
7809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7811 (./conftest; exit; ) 2>/dev/null
7814 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7815 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7816 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7819 # compilation failed
7820 lt_cv_dlopen_self_static=no
7827 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7828 $as_echo "$lt_cv_dlopen_self_static" >&6; }
7831 CPPFLAGS="$save_CPPFLAGS"
7832 LDFLAGS="$save_LDFLAGS"
7837 case $lt_cv_dlopen_self in
7838 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7839 *) enable_dlopen_self=unknown ;;
7842 case $lt_cv_dlopen_self_static in
7843 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7844 *) enable_dlopen_self_static=unknown ;;
7849 ## FIXME: this should be a separate macro
7851 if test "$enable_shared" = yes && test "$GCC" = yes; then
7852 case $archive_cmds in
7854 # FIXME: we may have to deal with multi-command sequences.
7857 # Test whether the compiler implicitly links with -lc since on some
7858 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7859 # to ld, don't add -lc before -lgcc.
7860 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7861 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7862 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7863 $as_echo_n "(cached) " >&6
7866 echo 'static int dummy;' > conftest.$ac_ext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869 (eval $ac_compile) 2>&5
7871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; then
7875 libobjs=conftest.$ac_objext
7877 wl=$lt_cv_prog_cc_wl
7883 save_allow_undefined_flag=$allow_undefined_flag
7884 allow_undefined_flag=
7885 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7886 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }
7891 lt_cv_archive_cmds_need_lc=no
7893 lt_cv_archive_cmds_need_lc=yes
7895 allow_undefined_flag=$save_allow_undefined_flag
7897 cat conftest.err 1>&5
7901 { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7902 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
7906 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7910 ## FIXME: this should be a separate macro
7912 # The second clause should only fire when bootstrapping the
7913 # libtool distribution, otherwise you forgot to ship ltmain.sh
7914 # with your package, and you will get complaints that there are
7915 # no rules to generate ltmain.sh.
7916 if test -f "$ltmain"; then
7919 # If there is no Makefile yet, we rely on a make rule to execute
7920 # `config.status --recheck' to rerun these tests and create the
7921 # libtool script then.
7922 test -f Makefile && make "$ltmain"
7925 if test -f "$ltmain"; then
7926 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7929 echo creating $ofile
7931 # Now quote all the things that may contain metacharacters while being
7932 # careful not to overquote the AC_SUBSTed values. We take copies of the
7933 # variables and quote the copies for generation of the libtool script.
7934 for var in echo old_CC old_CFLAGS SED \
7935 AR AR_FLAGS CC LD LN_S NM SHELL \
7936 reload_flag reload_cmds wl \
7937 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7938 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7939 library_names_spec soname_spec \
7940 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7941 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7942 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7943 old_striplib striplib file_magic_cmd export_symbols_cmds \
7944 deplibs_check_method allow_undefined_flag no_undefined_flag \
7945 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7946 global_symbol_to_c_name_address \
7947 hardcode_libdir_flag_spec hardcode_libdir_separator \
7948 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7949 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7952 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7953 old_postinstall_cmds | old_postuninstall_cmds | \
7954 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7955 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7956 postinstall_cmds | postuninstall_cmds | \
7957 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7958 # Double-quote double-evaled strings.
7959 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7962 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7967 cat <<__EOF__ > "${ofile}T"
7970 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7971 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7972 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7974 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7975 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7977 # This program is free software; you can redistribute it and/or modify
7978 # it under the terms of the GNU General Public License as published by
7979 # the Free Software Foundation; either version 2 of the License, or
7980 # (at your option) any later version.
7982 # This program is distributed in the hope that it will be useful, but
7983 # WITHOUT ANY WARRANTY; without even the implied warranty of
7984 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7985 # General Public License for more details.
7987 # You should have received a copy of the GNU General Public License
7988 # along with this program; if not, write to the Free Software
7989 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7991 # As a special exception to the GNU General Public License, if you
7992 # distribute this file as part of a program that contains a
7993 # configuration script generated by Autoconf, you may include it under
7994 # the same distribution terms that you use for the rest of that program.
7996 # A sed that does not truncate output.
7999 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8000 Xsed="${SED} -e s/^X//"
8002 # The HP-UX ksh and POSIX shell print the target directory to stdout
8004 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8006 # ### BEGIN LIBTOOL CONFIG
8008 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8010 # Shell to use when invoking shell scripts.
8013 # Whether or not to build shared libraries.
8014 build_libtool_libs=$enable_shared
8016 # Whether or not to build static libraries.
8017 build_old_libs=$enable_static
8019 # Whether or not to add -lc for building shared libraries.
8020 build_libtool_need_lc=$need_lc
8022 # Whether or not to optimize for fast installation.
8023 fast_install=$enable_fast_install
8026 host_alias=$host_alias
8029 # An echo program that does not interpret backslashes.
8034 AR_FLAGS=$lt_AR_FLAGS
8036 # The default C compiler.
8039 # Is the compiler the GNU C compiler?
8042 # The linker used to build libraries.
8045 # Whether we need hard or soft links.
8048 # A BSD-compatible nm program.
8051 # A symbol stripping program
8054 # Used to examine libraries when file_magic_cmd begins "file"
8055 MAGIC_CMD=$MAGIC_CMD
8057 # Used on cygwin: DLL creation program.
8060 # Used on cygwin: object dumper.
8063 # Used on cygwin: assembler.
8066 # The name of the directory that contains temporary libtool files.
8069 # How to create reloadable object files.
8070 reload_flag=$lt_reload_flag
8071 reload_cmds=$lt_reload_cmds
8073 # How to pass a linker flag through the compiler.
8076 # Object file suffix (normally "o").
8079 # Old archive suffix (normally "a").
8082 # Executable file suffix (normally "").
8085 # Additional compiler flags for building library objects.
8086 pic_flag=$lt_pic_flag
8089 # Does compiler simultaneously support -c and -o options?
8090 compiler_c_o=$lt_compiler_c_o
8092 # Can we write directly to a .lo ?
8093 compiler_o_lo=$lt_compiler_o_lo
8095 # Must we lock files when doing compilation ?
8096 need_locks=$lt_need_locks
8098 # Do we need the lib prefix for modules?
8099 need_lib_prefix=$need_lib_prefix
8101 # Do we need a version for libraries?
8102 need_version=$need_version
8104 # Whether dlopen is supported.
8105 dlopen_support=$enable_dlopen
8107 # Whether dlopen of programs is supported.
8108 dlopen_self=$enable_dlopen_self
8110 # Whether dlopen of statically linked programs is supported.
8111 dlopen_self_static=$enable_dlopen_self_static
8113 # Compiler flag to prevent dynamic linking.
8114 link_static_flag=$lt_link_static_flag
8116 # Compiler flag to turn off builtin functions.
8117 no_builtin_flag=$lt_no_builtin_flag
8119 # Compiler flag to allow reflexive dlopens.
8120 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8122 # Compiler flag to generate shared objects directly from archives.
8123 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8125 # Compiler flag to generate thread-safe objects.
8126 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8128 # Library versioning type.
8129 version_type=$version_type
8131 # Format of library name prefix.
8132 libname_spec=$lt_libname_spec
8134 # List of archive names. First name is the real one, the rest are links.
8135 # The last name is the one that the linker finds with -lNAME.
8136 library_names_spec=$lt_library_names_spec
8138 # The coded name of the library, if different from the real name.
8139 soname_spec=$lt_soname_spec
8141 # Commands used to build and install an old-style archive.
8143 old_archive_cmds=$lt_old_archive_cmds
8144 old_postinstall_cmds=$lt_old_postinstall_cmds
8145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8147 # Create an old-style archive from a shared archive.
8148 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8150 # Create a temporary old-style archive to link instead of a shared archive.
8151 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8153 # Commands used to build and install a shared archive.
8154 archive_cmds=$lt_archive_cmds
8155 archive_expsym_cmds=$lt_archive_expsym_cmds
8156 postinstall_cmds=$lt_postinstall_cmds
8157 postuninstall_cmds=$lt_postuninstall_cmds
8159 # Commands to strip libraries.
8160 old_striplib=$lt_old_striplib
8161 striplib=$lt_striplib
8163 # Method to check whether dependent libraries are shared objects.
8164 deplibs_check_method=$lt_deplibs_check_method
8166 # Command to use when deplibs_check_method == file_magic.
8167 file_magic_cmd=$lt_file_magic_cmd
8169 # Flag that allows shared libraries with undefined symbols to be built.
8170 allow_undefined_flag=$lt_allow_undefined_flag
8172 # Flag that forces no undefined symbols.
8173 no_undefined_flag=$lt_no_undefined_flag
8175 # Commands used to finish a libtool library installation in a directory.
8176 finish_cmds=$lt_finish_cmds
8178 # Same as above, but a single script fragment to be evaled but not shown.
8179 finish_eval=$lt_finish_eval
8181 # Take the output of nm and produce a listing of raw symbols and C names.
8182 global_symbol_pipe=$lt_global_symbol_pipe
8184 # Transform the output of nm in a proper C declaration
8185 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8187 # Transform the output of nm in a C name address pair
8188 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8190 # This is the shared library runtime path variable.
8191 runpath_var=$runpath_var
8193 # This is the shared library path variable.
8194 shlibpath_var=$shlibpath_var
8196 # Is shlibpath searched before the hard-coded library search path?
8197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8199 # How to hardcode a shared library path into an executable.
8200 hardcode_action=$hardcode_action
8202 # Whether we should hardcode library paths into libraries.
8203 hardcode_into_libs=$hardcode_into_libs
8205 # Flag to hardcode \$libdir into a binary during linking.
8206 # This must work even if \$libdir does not exist.
8207 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8209 # Whether we need a single -rpath flag with a separated argument.
8210 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8212 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8214 hardcode_direct=$hardcode_direct
8216 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8218 hardcode_minus_L=$hardcode_minus_L
8220 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8221 # the resulting binary.
8222 hardcode_shlibpath_var=$hardcode_shlibpath_var
8224 # Variables whose values should be saved in libtool wrapper scripts and
8225 # restored at relink time.
8226 variables_saved_for_relink="$variables_saved_for_relink"
8228 # Whether libtool must link a program against all its dependency libraries.
8229 link_all_deplibs=$link_all_deplibs
8231 # Compile-time system search path for libraries
8232 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8234 # Run-time system search path for libraries
8235 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8237 # Fix the shell variable \$srcfile for the compiler.
8238 fix_srcfile_path="$fix_srcfile_path"
8240 # Set to yes if exported symbols are required.
8241 always_export_symbols=$always_export_symbols
8243 # The commands to list exported symbols.
8244 export_symbols_cmds=$lt_export_symbols_cmds
8246 # The commands to extract the exported symbol list from a shared archive.
8247 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8249 # Symbols that should not be listed in the preloaded symbols.
8250 exclude_expsyms=$lt_exclude_expsyms
8252 # Symbols that must always be exported.
8253 include_expsyms=$lt_include_expsyms
8255 # ### END LIBTOOL CONFIG
8261 cat <<\EOF >> "${ofile}T"
8263 # AIX sometimes has problems with the GCC collect2 program. For some
8264 # reason, if we set the COLLECT_NAMES environment variable, the problems
8265 # vanish in a puff of smoke.
8266 if test "X${COLLECT_NAMES+set}" != Xset; then
8268 export COLLECT_NAMES
8275 cygwin* | mingw* | pw32* | os2*)
8276 cat <<'EOF' >> "${ofile}T"
8277 # This is a source program that is used to create dlls on Windows
8278 # Don't remove nor modify the starting and closing comments
8279 # /* ltdll.c starts here */
8280 # #define WIN32_LEAN_AND_MEAN
8281 # #include <windows.h>
8282 # #undef WIN32_LEAN_AND_MEAN
8283 # #include <stdio.h>
8285 # #ifndef __CYGWIN__
8286 # # ifdef __CYGWIN32__
8287 # # define __CYGWIN__ __CYGWIN32__
8291 # #ifdef __cplusplus
8294 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8295 # #ifdef __cplusplus
8300 # #include <cygwin/cygwin_dll.h>
8301 # DECLARE_CYGWIN_DLL( DllMain );
8303 # HINSTANCE __hDllInstance_base;
8306 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8308 # __hDllInstance_base = hInst;
8311 # /* ltdll.c ends here */
8312 # This is a source program that is used to create import libraries
8313 # on Windows for dlls which lack them. Don't remove nor modify the
8314 # starting and closing comments
8315 # /* impgen.c starts here */
8316 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8318 # This file is part of GNU libtool.
8320 # This program is free software; you can redistribute it and/or modify
8321 # it under the terms of the GNU General Public License as published by
8322 # the Free Software Foundation; either version 2 of the License, or
8323 # (at your option) any later version.
8325 # This program is distributed in the hope that it will be useful,
8326 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8327 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8328 # GNU General Public License for more details.
8330 # You should have received a copy of the GNU General Public License
8331 # along with this program; if not, write to the Free Software
8332 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8335 # #include <stdio.h> /* for printf() */
8336 # #include <unistd.h> /* for open(), lseek(), read() */
8337 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8338 # #include <string.h> /* for strdup() */
8340 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8342 # #define O_BINARY 0
8345 # static unsigned int
8346 # pe_get16 (fd, offset)
8350 # unsigned char b[2];
8351 # lseek (fd, offset, SEEK_SET);
8353 # return b[0] + (b[1]<<8);
8356 # static unsigned int
8357 # pe_get32 (fd, offset)
8361 # unsigned char b[4];
8362 # lseek (fd, offset, SEEK_SET);
8364 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8367 # static unsigned int
8371 # unsigned char *b = ptr;
8372 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8381 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8382 # unsigned long export_rva, export_size, nsections, secptr, expptr;
8383 # unsigned long name_rvas, nexp;
8384 # unsigned char *expdata, *erva;
8385 # char *filename, *dll_name;
8387 # filename = argv[1];
8389 # dll = open(filename, O_RDONLY|O_BINARY);
8393 # dll_name = filename;
8395 # for (i=0; filename[i]; i++)
8396 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8397 # dll_name = filename + i +1;
8399 # pe_header_offset = pe_get32 (dll, 0x3c);
8400 # opthdr_ofs = pe_header_offset + 4 + 20;
8401 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
8403 # if (num_entries < 1) /* no exports */
8406 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
8407 # export_size = pe_get32 (dll, opthdr_ofs + 100);
8408 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8409 # secptr = (pe_header_offset + 4 + 20 +
8410 # pe_get16 (dll, pe_header_offset + 4 + 16));
8413 # for (i = 0; i < nsections; i++)
8416 # unsigned long secptr1 = secptr + 40 * i;
8417 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8418 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8419 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8420 # lseek(dll, secptr1, SEEK_SET);
8421 # read(dll, sname, 8);
8422 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
8424 # expptr = fptr + (export_rva - vaddr);
8425 # if (export_rva + export_size > vaddr + vsize)
8426 # export_size = vsize - (export_rva - vaddr);
8431 # expdata = (unsigned char*)malloc(export_size);
8432 # lseek (dll, expptr, SEEK_SET);
8433 # read (dll, expdata, export_size);
8434 # erva = expdata - export_rva;
8436 # nexp = pe_as32 (expdata+24);
8437 # name_rvas = pe_as32 (expdata+32);
8439 # printf ("EXPORTS\n");
8440 # for (i = 0; i<nexp; i++)
8442 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8443 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8448 # /* impgen.c ends here */
8454 # We use sed instead of cat because bash on DJGPP gets confused if
8455 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8456 # text mode, it properly converts lines to CR/LF. This bash problem
8457 # is reportedly fixed, but why not run on old versions too?
8458 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8460 mv -f "${ofile}T" "$ofile" || \
8461 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8471 # This can be used to rebuild libtool when needed
8472 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8474 # Always use our own libtool.
8475 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8477 # Prevent multiple expansion
8487 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8488 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8489 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8490 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8492 $as_echo_n "(cached) " >&6
8494 cat >conftest.$ac_ext <<_ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 #include <sys/types.h>
8512 rm -f conftest.$ac_objext
8513 if { (ac_try="$ac_compile"
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8519 $as_echo "$ac_try_echo") >&5
8520 (eval "$ac_compile") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest.$ac_objext; then
8530 eval "$as_ac_Header=yes"
8532 $as_echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8535 eval "$as_ac_Header=no"
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540 ac_res=`eval 'as_val=${'$as_ac_Header'}
8541 $as_echo "$as_val"'`
8542 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8543 $as_echo "$ac_res" >&6; }
8544 if test `eval 'as_val=${'$as_ac_Header'}
8545 $as_echo "$as_val"'` = yes; then
8546 cat >>confdefs.h <<_ACEOF
8547 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8550 ac_header_dirent=$ac_hdr; break
8554 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8555 if test $ac_header_dirent = dirent.h; then
8556 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
8557 $as_echo_n "checking for library containing opendir... " >&6; }
8558 if test "${ac_cv_search_opendir+set}" = set; then
8559 $as_echo_n "(cached) " >&6
8561 ac_func_search_save_LIBS=$LIBS
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8569 /* Override any GCC internal prototype to avoid an error.
8570 Use char because int might match the return type of a GCC
8571 builtin and then its argument prototype would still apply. */
8584 for ac_lib in '' dir; do
8585 if test -z "$ac_lib"; then
8586 ac_res="none required"
8589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (ac_try="$ac_link"
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8598 $as_echo "$ac_try_echo") >&5
8599 (eval "$ac_link") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest$ac_exeext &&
8609 $as_test_x conftest$ac_exeext; then
8610 ac_cv_search_opendir=$ac_res
8612 $as_echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8620 if test "${ac_cv_search_opendir+set}" = set; then
8624 if test "${ac_cv_search_opendir+set}" = set; then
8627 ac_cv_search_opendir=no
8630 LIBS=$ac_func_search_save_LIBS
8632 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8633 $as_echo "$ac_cv_search_opendir" >&6; }
8634 ac_res=$ac_cv_search_opendir
8635 if test "$ac_res" != no; then
8636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8641 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
8642 $as_echo_n "checking for library containing opendir... " >&6; }
8643 if test "${ac_cv_search_opendir+set}" = set; then
8644 $as_echo_n "(cached) " >&6
8646 ac_func_search_save_LIBS=$LIBS
8647 cat >conftest.$ac_ext <<_ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8654 /* Override any GCC internal prototype to avoid an error.
8655 Use char because int might match the return type of a GCC
8656 builtin and then its argument prototype would still apply. */
8669 for ac_lib in '' x; do
8670 if test -z "$ac_lib"; then
8671 ac_res="none required"
8674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (ac_try="$ac_link"
8679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680 *) ac_try_echo=$ac_try;;
8682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8683 $as_echo "$ac_try_echo") >&5
8684 (eval "$ac_link") 2>conftest.er1
8686 grep -v '^ *+' conftest.er1 >conftest.err
8688 cat conftest.err >&5
8689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest$ac_exeext &&
8694 $as_test_x conftest$ac_exeext; then
8695 ac_cv_search_opendir=$ac_res
8697 $as_echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8705 if test "${ac_cv_search_opendir+set}" = set; then
8709 if test "${ac_cv_search_opendir+set}" = set; then
8712 ac_cv_search_opendir=no
8715 LIBS=$ac_func_search_save_LIBS
8717 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8718 $as_echo "$ac_cv_search_opendir" >&6; }
8719 ac_res=$ac_cv_search_opendir
8720 if test "$ac_res" != no; then
8721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8727 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8728 $as_echo_n "checking for ANSI C header files... " >&6; }
8729 if test "${ac_cv_header_stdc+set}" = set; then
8730 $as_echo_n "(cached) " >&6
8732 cat >conftest.$ac_ext <<_ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8751 rm -f conftest.$ac_objext
8752 if { (ac_try="$ac_compile"
8754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755 *) ac_try_echo=$ac_try;;
8757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759 (eval "$ac_compile") 2>conftest.er1
8761 grep -v '^ *+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest.$ac_objext; then
8769 ac_cv_header_stdc=yes
8771 $as_echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 ac_cv_header_stdc=no
8777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 if test $ac_cv_header_stdc = yes; then
8780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8781 cat >conftest.$ac_ext <<_ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8791 $EGREP "memchr" >/dev/null 2>&1; then
8794 ac_cv_header_stdc=no
8800 if test $ac_cv_header_stdc = yes; then
8801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8802 cat >conftest.$ac_ext <<_ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h. */
8811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8812 $EGREP "free" >/dev/null 2>&1; then
8815 ac_cv_header_stdc=no
8821 if test $ac_cv_header_stdc = yes; then
8822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8823 if test "$cross_compiling" = yes; then
8826 cat >conftest.$ac_ext <<_ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8834 #if ((' ' & 0x0FF) == 0x020)
8835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8838 # define ISLOWER(c) \
8839 (('a' <= (c) && (c) <= 'i') \
8840 || ('j' <= (c) && (c) <= 'r') \
8841 || ('s' <= (c) && (c) <= 'z'))
8842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8850 for (i = 0; i < 256; i++)
8851 if (XOR (islower (i), ISLOWER (i))
8852 || toupper (i) != TOUPPER (i))
8857 rm -f conftest$ac_exeext
8858 if { (ac_try="$ac_link"
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8864 $as_echo "$ac_try_echo") >&5
8865 (eval "$ac_link") 2>&5
8867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8869 { (case "(($ac_try" in
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8874 $as_echo "$ac_try_echo") >&5
8875 (eval "$ac_try") 2>&5
8877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8881 $as_echo "$as_me: program exited with status $ac_status" >&5
8882 $as_echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8886 ac_cv_header_stdc=no
8888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8894 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8895 $as_echo "$ac_cv_header_stdc" >&6; }
8896 if test $ac_cv_header_stdc = yes; then
8898 cat >>confdefs.h <<\_ACEOF
8899 #define STDC_HEADERS 1
8904 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8905 $as_echo_n "checking whether closedir returns void... " >&6; }
8906 if test "${ac_cv_func_closedir_void+set}" = set; then
8907 $as_echo_n "(cached) " >&6
8909 if test "$cross_compiling" = yes; then
8910 ac_cv_func_closedir_void=yes
8912 cat >conftest.$ac_ext <<_ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 $ac_includes_default
8919 #include <$ac_header_dirent>
8927 return closedir (opendir (".")) != 0;
8932 rm -f conftest$ac_exeext
8933 if { (ac_try="$ac_link"
8935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8939 $as_echo "$ac_try_echo") >&5
8940 (eval "$ac_link") 2>&5
8942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8944 { (case "(($ac_try" in
8945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946 *) ac_try_echo=$ac_try;;
8948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8949 $as_echo "$ac_try_echo") >&5
8950 (eval "$ac_try") 2>&5
8952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; }; then
8954 ac_cv_func_closedir_void=no
8956 $as_echo "$as_me: program exited with status $ac_status" >&5
8957 $as_echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8961 ac_cv_func_closedir_void=yes
8963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8968 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8969 $as_echo "$ac_cv_func_closedir_void" >&6; }
8970 if test $ac_cv_func_closedir_void = yes; then
8972 cat >>confdefs.h <<\_ACEOF
8973 #define CLOSEDIR_VOID 1
8988 for ac_header in assert.h float.h limits.h memory.h pwd.h stdlib.h \
8989 string.h strings.h sys/param.h unistd.h
8991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8994 $as_echo_n "checking for $ac_header... " >&6; }
8995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8996 $as_echo_n "(cached) " >&6
8998 ac_res=`eval 'as_val=${'$as_ac_Header'}
8999 $as_echo "$as_val"'`
9000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9001 $as_echo "$ac_res" >&6; }
9003 # Is the header compilable?
9004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9005 $as_echo_n "checking $ac_header usability... " >&6; }
9006 cat >conftest.$ac_ext <<_ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 $ac_includes_default
9013 #include <$ac_header>
9015 rm -f conftest.$ac_objext
9016 if { (ac_try="$ac_compile"
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9022 $as_echo "$ac_try_echo") >&5
9023 (eval "$ac_compile") 2>conftest.er1
9025 grep -v '^ *+' conftest.er1 >conftest.err
9027 cat conftest.err >&5
9028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } && {
9030 test -z "$ac_c_werror_flag" ||
9031 test ! -s conftest.err
9032 } && test -s conftest.$ac_objext; then
9033 ac_header_compiler=yes
9035 $as_echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9038 ac_header_compiler=no
9041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9043 $as_echo "$ac_header_compiler" >&6; }
9045 # Is the header present?
9046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9047 $as_echo_n "checking $ac_header presence... " >&6; }
9048 cat >conftest.$ac_ext <<_ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9054 #include <$ac_header>
9056 if { (ac_try="$ac_cpp conftest.$ac_ext"
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9062 $as_echo "$ac_try_echo") >&5
9063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9065 grep -v '^ *+' conftest.er1 >conftest.err
9067 cat conftest.err >&5
9068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } >/dev/null && {
9070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9073 ac_header_preproc=yes
9075 $as_echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_header_preproc=no
9081 rm -f conftest.err conftest.$ac_ext
9082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9083 $as_echo "$ac_header_preproc" >&6; }
9085 # So? What about this header?
9086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9092 ac_header_preproc=yes
9095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9098 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9102 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9111 $as_echo_n "checking for $ac_header... " >&6; }
9112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9113 $as_echo_n "(cached) " >&6
9115 eval "$as_ac_Header=\$ac_header_preproc"
9117 ac_res=`eval 'as_val=${'$as_ac_Header'}
9118 $as_echo "$as_val"'`
9119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9120 $as_echo "$ac_res" >&6; }
9123 if test `eval 'as_val=${'$as_ac_Header'}
9124 $as_echo "$as_val"'` = yes; then
9125 cat >>confdefs.h <<_ACEOF
9126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9135 for ac_func in putenv
9137 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9138 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9139 $as_echo_n "checking for $ac_func... " >&6; }
9140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9141 $as_echo_n "(cached) " >&6
9143 cat >conftest.$ac_ext <<_ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9151 #define $ac_func innocuous_$ac_func
9153 /* System header to define __stub macros and hopefully few prototypes,
9154 which can conflict with char $ac_func (); below.
9155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9156 <limits.h> exists even on freestanding compilers. */
9159 # include <limits.h>
9161 # include <assert.h>
9166 /* Override any GCC internal prototype to avoid an error.
9167 Use char because int might match the return type of a GCC
9168 builtin and then its argument prototype would still apply. */
9173 /* The GNU C library defines this for functions which it implements
9174 to always fail with ENOSYS. Some functions are actually named
9175 something starting with __ and the normal name is an alias. */
9176 #if defined __stub_$ac_func || defined __stub___$ac_func
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (ac_try="$ac_link"
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9195 $as_echo "$ac_try_echo") >&5
9196 (eval "$ac_link") 2>conftest.er1
9198 grep -v '^ *+' conftest.er1 >conftest.err
9200 cat conftest.err >&5
9201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } && {
9203 test -z "$ac_c_werror_flag" ||
9204 test ! -s conftest.err
9205 } && test -s conftest$ac_exeext &&
9206 $as_test_x conftest$ac_exeext; then
9207 eval "$as_ac_var=yes"
9209 $as_echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 eval "$as_ac_var=no"
9215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9216 conftest$ac_exeext conftest.$ac_ext
9218 ac_res=`eval 'as_val=${'$as_ac_var'}
9219 $as_echo "$as_val"'`
9220 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9221 $as_echo "$ac_res" >&6; }
9222 if test `eval 'as_val=${'$as_ac_var'}
9223 $as_echo "$as_val"'` = yes; then
9224 cat >>confdefs.h <<_ACEOF
9225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9229 LTLIBOBJS="$LTLIBOBJS putenv.lo"
9234 for ac_func in strcasecmp
9236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9238 $as_echo_n "checking for $ac_func... " >&6; }
9239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9240 $as_echo_n "(cached) " >&6
9242 cat >conftest.$ac_ext <<_ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h. */
9248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9250 #define $ac_func innocuous_$ac_func
9252 /* System header to define __stub macros and hopefully few prototypes,
9253 which can conflict with char $ac_func (); below.
9254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9255 <limits.h> exists even on freestanding compilers. */
9258 # include <limits.h>
9260 # include <assert.h>
9265 /* Override any GCC internal prototype to avoid an error.
9266 Use char because int might match the return type of a GCC
9267 builtin and then its argument prototype would still apply. */
9272 /* The GNU C library defines this for functions which it implements
9273 to always fail with ENOSYS. Some functions are actually named
9274 something starting with __ and the normal name is an alias. */
9275 #if defined __stub_$ac_func || defined __stub___$ac_func
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (ac_try="$ac_link"
9290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291 *) ac_try_echo=$ac_try;;
9293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9294 $as_echo "$ac_try_echo") >&5
9295 (eval "$ac_link") 2>conftest.er1
9297 grep -v '^ *+' conftest.er1 >conftest.err
9299 cat conftest.err >&5
9300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } && {
9302 test -z "$ac_c_werror_flag" ||
9303 test ! -s conftest.err
9304 } && test -s conftest$ac_exeext &&
9305 $as_test_x conftest$ac_exeext; then
9306 eval "$as_ac_var=yes"
9308 $as_echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9311 eval "$as_ac_var=no"
9314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9315 conftest$ac_exeext conftest.$ac_ext
9317 ac_res=`eval 'as_val=${'$as_ac_var'}
9318 $as_echo "$as_val"'`
9319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9320 $as_echo "$ac_res" >&6; }
9321 if test `eval 'as_val=${'$as_ac_var'}
9322 $as_echo "$as_val"'` = yes; then
9323 cat >>confdefs.h <<_ACEOF
9324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9328 LTLIBOBJS="$LTLIBOBJS strcasecmp.lo"
9333 for ac_func in strtol
9335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9336 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9337 $as_echo_n "checking for $ac_func... " >&6; }
9338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9339 $as_echo_n "(cached) " >&6
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9349 #define $ac_func innocuous_$ac_func
9351 /* System header to define __stub macros and hopefully few prototypes,
9352 which can conflict with char $ac_func (); below.
9353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9354 <limits.h> exists even on freestanding compilers. */
9357 # include <limits.h>
9359 # include <assert.h>
9364 /* Override any GCC internal prototype to avoid an error.
9365 Use char because int might match the return type of a GCC
9366 builtin and then its argument prototype would still apply. */
9371 /* The GNU C library defines this for functions which it implements
9372 to always fail with ENOSYS. Some functions are actually named
9373 something starting with __ and the normal name is an alias. */
9374 #if defined __stub_$ac_func || defined __stub___$ac_func
9386 rm -f conftest.$ac_objext conftest$ac_exeext
9387 if { (ac_try="$ac_link"
9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390 *) ac_try_echo=$ac_try;;
9392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9393 $as_echo "$ac_try_echo") >&5
9394 (eval "$ac_link") 2>conftest.er1
9396 grep -v '^ *+' conftest.er1 >conftest.err
9398 cat conftest.err >&5
9399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && {
9401 test -z "$ac_c_werror_flag" ||
9402 test ! -s conftest.err
9403 } && test -s conftest$ac_exeext &&
9404 $as_test_x conftest$ac_exeext; then
9405 eval "$as_ac_var=yes"
9407 $as_echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9410 eval "$as_ac_var=no"
9413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9414 conftest$ac_exeext conftest.$ac_ext
9416 ac_res=`eval 'as_val=${'$as_ac_var'}
9417 $as_echo "$as_val"'`
9418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9419 $as_echo "$ac_res" >&6; }
9420 if test `eval 'as_val=${'$as_ac_var'}
9421 $as_echo "$as_val"'` = yes; then
9422 cat >>confdefs.h <<_ACEOF
9423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9427 LTLIBOBJS="$LTLIBOBJS strtol.lo"
9432 for ac_func in strstr
9434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9435 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9436 $as_echo_n "checking for $ac_func... " >&6; }
9437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9438 $as_echo_n "(cached) " >&6
9440 cat >conftest.$ac_ext <<_ACEOF
9443 cat confdefs.h >>conftest.$ac_ext
9444 cat >>conftest.$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9448 #define $ac_func innocuous_$ac_func
9450 /* System header to define __stub macros and hopefully few prototypes,
9451 which can conflict with char $ac_func (); below.
9452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9453 <limits.h> exists even on freestanding compilers. */
9456 # include <limits.h>
9458 # include <assert.h>
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9470 /* The GNU C library defines this for functions which it implements
9471 to always fail with ENOSYS. Some functions are actually named
9472 something starting with __ and the normal name is an alias. */
9473 #if defined __stub_$ac_func || defined __stub___$ac_func
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9492 $as_echo "$ac_try_echo") >&5
9493 (eval "$ac_link") 2>conftest.er1
9495 grep -v '^ *+' conftest.er1 >conftest.err
9497 cat conftest.err >&5
9498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } && {
9500 test -z "$ac_c_werror_flag" ||
9501 test ! -s conftest.err
9502 } && test -s conftest$ac_exeext &&
9503 $as_test_x conftest$ac_exeext; then
9504 eval "$as_ac_var=yes"
9506 $as_echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 eval "$as_ac_var=no"
9512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9513 conftest$ac_exeext conftest.$ac_ext
9515 ac_res=`eval 'as_val=${'$as_ac_var'}
9516 $as_echo "$as_val"'`
9517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9518 $as_echo "$ac_res" >&6; }
9519 if test `eval 'as_val=${'$as_ac_var'}
9520 $as_echo "$as_val"'` = yes; then
9521 cat >>confdefs.h <<_ACEOF
9522 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9526 LTLIBOBJS="$LTLIBOBJS strstr.lo"
9543 for ac_func in bcmp bcopy bzero getcwd getwd index memcmp memcpy rindex strchr strrchr
9545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9546 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9547 $as_echo_n "checking for $ac_func... " >&6; }
9548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9549 $as_echo_n "(cached) " >&6
9551 cat >conftest.$ac_ext <<_ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9559 #define $ac_func innocuous_$ac_func
9561 /* System header to define __stub macros and hopefully few prototypes,
9562 which can conflict with char $ac_func (); below.
9563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564 <limits.h> exists even on freestanding compilers. */
9567 # include <limits.h>
9569 # include <assert.h>
9574 /* Override any GCC internal prototype to avoid an error.
9575 Use char because int might match the return type of a GCC
9576 builtin and then its argument prototype would still apply. */
9581 /* The GNU C library defines this for functions which it implements
9582 to always fail with ENOSYS. Some functions are actually named
9583 something starting with __ and the normal name is an alias. */
9584 #if defined __stub_$ac_func || defined __stub___$ac_func
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9603 $as_echo "$ac_try_echo") >&5
9604 (eval "$ac_link") 2>conftest.er1
9606 grep -v '^ *+' conftest.er1 >conftest.err
9608 cat conftest.err >&5
9609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } && {
9611 test -z "$ac_c_werror_flag" ||
9612 test ! -s conftest.err
9613 } && test -s conftest$ac_exeext &&
9614 $as_test_x conftest$ac_exeext; then
9615 eval "$as_ac_var=yes"
9617 $as_echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 eval "$as_ac_var=no"
9623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9624 conftest$ac_exeext conftest.$ac_ext
9626 ac_res=`eval 'as_val=${'$as_ac_var'}
9627 $as_echo "$as_val"'`
9628 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9629 $as_echo "$ac_res" >&6; }
9630 if test `eval 'as_val=${'$as_ac_var'}
9631 $as_echo "$as_val"'` = yes; then
9632 cat >>confdefs.h <<_ACEOF
9633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9640 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9641 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9642 if test "${ac_cv_c_const+set}" = set; then
9643 $as_echo_n "(cached) " >&6
9645 cat >conftest.$ac_ext <<_ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9655 /* FIXME: Include the comments suggested by Paul. */
9657 /* Ultrix mips cc rejects this. */
9658 typedef int charset[2];
9660 /* SunOS 4.1.1 cc rejects this. */
9661 char const *const *pcpcc;
9663 /* NEC SVR4.0.2 mips cc rejects this. */
9664 struct point {int x, y;};
9665 static struct point const zero = {0,0};
9666 /* AIX XL C 1.02.0.0 rejects this.
9667 It does not let you subtract one const X* pointer from another in
9668 an arm of an if-expression whose if-part is not a constant
9670 const char *g = "string";
9671 pcpcc = &g + (g ? g-g : 0);
9672 /* HPUX 7.0 cc rejects these. */
9674 ppc = (char**) pcpcc;
9675 pcpcc = (char const *const *) ppc;
9676 { /* SCO 3.2v4 cc rejects this. */
9678 char const *s = 0 ? (char *) 0 : (char const *) 0;
9683 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9685 const int *foo = &x[0];
9688 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9689 typedef const int *iptr;
9693 { /* AIX XL C 1.02.0.0 rejects this saying
9694 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9695 struct s { int j; const int *ap[3]; };
9696 struct s *b; b->j = 5;
9698 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9702 return !cs[0] && !zero.x;
9709 rm -f conftest.$ac_objext
9710 if { (ac_try="$ac_compile"
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9716 $as_echo "$ac_try_echo") >&5
9717 (eval "$ac_compile") 2>conftest.er1
9719 grep -v '^ *+' conftest.er1 >conftest.err
9721 cat conftest.err >&5
9722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest.$ac_objext; then
9729 $as_echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9738 $as_echo "$ac_cv_c_const" >&6; }
9739 if test $ac_cv_c_const = no; then
9741 cat >>confdefs.h <<\_ACEOF
9748 # Check whether struct stat provides high-res time.
9749 { $as_echo "$as_me:$LINENO: checking for st_mtim in struct stat" >&5
9750 $as_echo_n "checking for st_mtim in struct stat... " >&6; }
9751 if test "${ac_cv_struct_st_mtim+set}" = set; then
9752 $as_echo_n "(cached) " >&6
9754 cat >conftest.$ac_ext <<_ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 #include <sys/types.h>
9761 #include <sys/stat.h>
9765 struct stat s; s.st_mtim;
9770 rm -f conftest.$ac_objext
9771 if { (ac_try="$ac_compile"
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9777 $as_echo "$ac_try_echo") >&5
9778 (eval "$ac_compile") 2>conftest.er1
9780 grep -v '^ *+' conftest.er1 >conftest.err
9782 cat conftest.err >&5
9783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } && {
9785 test -z "$ac_c_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest.$ac_objext; then
9788 ac_cv_struct_st_mtim=yes
9790 $as_echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 ac_cv_struct_st_mtim=no
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim" >&5
9799 $as_echo "$ac_cv_struct_st_mtim" >&6; }
9800 if test $ac_cv_struct_st_mtim = yes; then
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_ST_MTIM 1
9808 # Check whether prototypes work.
9809 { $as_echo "$as_me:$LINENO: checking whether the compiler accepts prototypes" >&5
9810 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
9811 if test "${kb_cv_c_prototypes+set}" = set; then
9812 $as_echo_n "(cached) " >&6
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9824 extern void foo(int i,...);
9829 rm -f conftest.$ac_objext
9830 if { (ac_try="$ac_compile"
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836 $as_echo "$ac_try_echo") >&5
9837 (eval "$ac_compile") 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest.$ac_objext; then
9847 kb_cv_c_prototypes=yes
9849 $as_echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 kb_cv_c_prototypes=no
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857 { $as_echo "$as_me:$LINENO: result: $kb_cv_c_prototypes" >&5
9858 $as_echo "$kb_cv_c_prototypes" >&6; }
9859 if test "$kb_cv_c_prototypes" = yes; then
9860 cat >>confdefs.h <<\_ACEOF
9861 #define HAVE_PROTOTYPES 1
9866 # This is a GNU libc invention.
9867 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is predefined" >&5
9868 $as_echo_n "checking whether program_invocation_name is predefined... " >&6; }
9869 if test "${kb_cv_var_program_inv_name+set}" = set; then
9870 $as_echo_n "(cached) " >&6
9872 cat >conftest.$ac_ext <<_ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9882 extern char *program_invocation_name; program_invocation_name = "love";
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9894 $as_echo "$ac_try_echo") >&5
9895 (eval "$ac_link") 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest$ac_exeext &&
9905 $as_test_x conftest$ac_exeext; then
9906 kb_cv_var_program_inv_name=yes
9908 $as_echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 kb_cv_var_program_inv_name=no
9914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9915 conftest$ac_exeext conftest.$ac_ext
9917 { $as_echo "$as_me:$LINENO: result: $kb_cv_var_program_inv_name" >&5
9918 $as_echo "$kb_cv_var_program_inv_name" >&6; }
9919 if test "$kb_cv_var_program_inv_name" = yes; then
9920 cat >>confdefs.h <<\_ACEOF
9921 #define HAVE_PROGRAM_INVOCATION_NAME 1
9926 if test $ac_cv_func_getcwd = yes; then
9927 # We only need to run this if we have getcwd.
9928 { $as_echo "$as_me:$LINENO: checking whether getcwd uses fork or vfork" >&5
9929 $as_echo_n "checking whether getcwd uses fork or vfork... " >&6; }
9930 if test "${kb_cv_func_getcwd_forks+set}" = set; then
9931 $as_echo_n "(cached) " >&6
9933 if test "$cross_compiling" = yes; then
9934 kb_cv_func_getcwd_forks=no
9936 cat >conftest.$ac_ext <<_ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9943 int fork() { exit(1); }
9944 int vfork() { exit(1); }
9945 extern char *getcwd();
9952 rm -f conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9959 $as_echo "$ac_try_echo") >&5
9960 (eval "$ac_link") 2>&5
9962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9964 { (case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9969 $as_echo "$ac_try_echo") >&5
9970 (eval "$ac_try") 2>&5
9972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 kb_cv_func_getcwd_forks=no
9976 $as_echo "$as_me: program exited with status $ac_status" >&5
9977 $as_echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9981 kb_cv_func_getcwd_forks=yes
9983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9988 { $as_echo "$as_me:$LINENO: result: $kb_cv_func_getcwd_forks" >&5
9989 $as_echo "$kb_cv_func_getcwd_forks" >&6; }
9990 if test $kb_cv_func_getcwd_forks = yes; then
9991 cat >>confdefs.h <<\_ACEOF
9992 #define GETCWD_FORKS 1
9998 # Common --with and --enable options.
10000 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10001 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10002 # Check whether --enable-maintainer-mode was given.
10003 if test "${enable_maintainer_mode+set}" = set; then
10004 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10006 USE_MAINTAINER_MODE=no
10009 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10010 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10011 if test "x$USE_MAINTAINER_MODE" = xyes; then
10019 { $as_echo "$as_me:$LINENO: checking for loader (symbol LD)" >&5
10020 $as_echo_n "checking for loader (symbol LD)... " >&6; }
10021 if test "${cf_cv_subst_LD+set}" = set; then
10022 $as_echo_n "(cached) " >&6
10025 test -z "$LD" && LD=ld
10029 LD=${cf_cv_subst_LD}
10030 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10031 $as_echo "$LD" >&6; }
10034 { $as_echo "$as_me:$LINENO: checking for archiver (symbol AR)" >&5
10035 $as_echo_n "checking for archiver (symbol AR)... " >&6; }
10036 if test "${cf_cv_subst_AR+set}" = set; then
10037 $as_echo_n "(cached) " >&6
10040 test -z "$AR" && AR=ar
10044 AR=${cf_cv_subst_AR}
10045 { $as_echo "$as_me:$LINENO: result: $AR" >&5
10046 $as_echo "$AR" >&6; }
10049 { $as_echo "$as_me:$LINENO: checking for archiver options (symbol ARFLAGS)" >&5
10050 $as_echo_n "checking for archiver options (symbol ARFLAGS)... " >&6; }
10051 if test "${cf_cv_subst_ARFLAGS+set}" = set; then
10052 $as_echo_n "(cached) " >&6
10055 test -z "$ARFLAGS" && ARFLAGS=rc
10056 cf_cv_subst_ARFLAGS=$ARFLAGS
10059 ARFLAGS=${cf_cv_subst_ARFLAGS}
10060 { $as_echo "$as_me:$LINENO: result: $ARFLAGS" >&5
10061 $as_echo "$ARFLAGS" >&6; }
10066 # Check whether --with-mktexmf-default was given.
10067 if test "${with_mktexmf_default+set}" = set; then
10068 withval=$with_mktexmf_default;
10070 with_mktexmf_default=yes
10074 # Check whether --with-mktexpk-default was given.
10075 if test "${with_mktexpk_default+set}" = set; then
10076 withval=$with_mktexpk_default;
10078 with_mktexpk_default=yes
10082 # Check whether --with-mktextfm-default was given.
10083 if test "${with_mktextfm_default+set}" = set; then
10084 withval=$with_mktextfm_default;
10086 with_mktextfm_default=yes
10090 # Check whether --with-mkocp-default was given.
10091 if test "${with_mkocp_default+set}" = set; then
10092 withval=$with_mkocp_default;
10094 with_mkocp_default=yes
10098 # Check whether --with-mkofm-default was given.
10099 if test "${with_mkofm_default+set}" = set; then
10100 withval=$with_mkofm_default;
10102 with_mkofm_default=yes
10106 # Check whether --with-mktexfmt-default was given.
10107 if test "${with_mktexfmt_default+set}" = set; then
10108 withval=$with_mktexfmt_default;
10112 # Check whether --with-mktextex-default was given.
10113 if test "${with_mktextex_default+set}" = set; then
10114 withval=$with_mktextex_default; with_mktextex_default=yes
10116 with_mktextex_default=no
10120 { $as_echo "$as_me:$LINENO: checking where the main texmf tree is located" >&5
10121 $as_echo_n "checking where the main texmf tree is located... " >&6; }
10123 */) prefix=`echo "$prefix" | sed 's@/*$@@'`;;
10126 if test "x$datadir" != 'x${prefix}/share'; then
10127 # First case, datadir is defined...
10128 eval p=\"$datadir\"
10129 # Unconditionally set the directory, but...
10130 texmfmain=`echo "$p/texmf" | sed 's,//*,/,g'`
10131 # ... do complain if it wasn't found.
10132 if test -d "$texmfmain"; then
10133 { $as_echo "$as_me:$LINENO: result: \"$texmfmain\"" >&5
10134 $as_echo "\"$texmfmain\"" >&6; }
10136 { $as_echo "$as_me:$LINENO: result: not found" >&5
10137 $as_echo "not found" >&6; }
10138 { $as_echo "$as_me:$LINENO: WARNING: No texmf tree found at $texmfmain.
10139 *****************************************************************
10140 * Error: The main texmf tree was not found. *
10141 * If you do not have the files, you should be able to them from *
10142 * the same place you got these sources from, or from one of the *
10144 *****************************************************************
10146 $as_echo "$as_me: WARNING: No texmf tree found at $texmfmain.
10147 *****************************************************************
10148 * Error: The main texmf tree was not found. *
10149 * If you do not have the files, you should be able to them from *
10150 * the same place you got these sources from, or from one of the *
10152 *****************************************************************
10156 # Second case, datadir is default...
10157 if test "x$prefix" = "xNONE"; then
10158 p="$ac_default_prefix"
10162 for e in share/texmf lib/texmf texmf; do
10163 if test -d "$p/$e"; then
10164 texmfmain='${prefix}'/"$e"
10168 if test -z "$texmfmain" && test "x$prefix" = "xNONE"; then
10169 # Still no texmfmain found, no prefix set, perhaps kpsewhich is
10170 # installed and can help us out.
10171 texmfmain=`kpsewhich --expand-path='$TEXMFMAIN'` 2>/dev/null
10173 texmfmain=`echo "$texmfmain" | sed 's,//*,/,g'`
10174 if test -n "$texmfmain"; then
10175 { $as_echo "$as_me:$LINENO: result: \"$texmfmain\"" >&5
10176 $as_echo "\"$texmfmain\"" >&6; }
10178 eval texmfmain="$datadir/texmf"
10179 { $as_echo "$as_me:$LINENO: result: not found" >&5
10180 $as_echo "not found" >&6; }
10181 { $as_echo "$as_me:$LINENO: WARNING: The main texmf tree was not found at $texmfmain.
10182 *****************************************************************
10183 * Error: The main texmf tree was not found. *
10184 * Use the --datadir option to specify its parent directory. *
10185 * If you do not have the files, you should be able to them from *
10186 * the same place you got these sources from, or from one of the *
10188 *****************************************************************
10189 Winging it by pretending $texmfmain is correct." >&5
10190 $as_echo "$as_me: WARNING: The main texmf tree was not found at $texmfmain.
10191 *****************************************************************
10192 * Error: The main texmf tree was not found. *
10193 * Use the --datadir option to specify its parent directory. *
10194 * If you do not have the files, you should be able to them from *
10195 * the same place you got these sources from, or from one of the *
10197 *****************************************************************
10198 Winging it by pretending $texmfmain is correct." >&2;}
10204 # Implementation of those options.
10205 if test "x$with_mktexmf_default" = xyes; then
10206 cat >>confdefs.h <<\_ACEOF
10207 #define MAKE_TEX_MF_BY_DEFAULT 1
10211 if test "x$with_mktexpk_default" = xyes; then
10212 cat >>confdefs.h <<\_ACEOF
10213 #define MAKE_TEX_PK_BY_DEFAULT 1
10217 if test "x$with_mktextex_default" = xyes; then
10218 cat >>confdefs.h <<\_ACEOF
10219 #define MAKE_TEX_TEX_BY_DEFAULT 1
10223 if test "x$with_mktexfmt_default" = xyes; then
10224 cat >>confdefs.h <<\_ACEOF
10225 #define MAKE_TEX_FMT_BY_DEFAULT 1
10229 if test "x$with_mktextfm_default" = xyes; then
10230 cat >>confdefs.h <<\_ACEOF
10231 #define MAKE_TEX_TFM_BY_DEFAULT 1
10235 if test "x$with_mkocp_default" = xyes; then
10236 cat >>confdefs.h <<\_ACEOF
10237 #define MAKE_OMEGA_OCP_BY_DEFAULT 1
10241 if test "x$with_mkofm_default" = xyes; then
10242 cat >>confdefs.h <<\_ACEOF
10243 #define MAKE_OMEGA_OFM_BY_DEFAULT 1
10248 # Is libm present. FIXME: do we need it at all?
10250 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
10251 $as_echo_n "checking for main in -lm... " >&6; }
10252 if test "${ac_cv_lib_m_main+set}" = set; then
10253 $as_echo_n "(cached) " >&6
10255 ac_check_lib_save_LIBS=$LIBS
10257 cat >conftest.$ac_ext <<_ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10273 rm -f conftest.$ac_objext conftest$ac_exeext
10274 if { (ac_try="$ac_link"
10275 case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10280 $as_echo "$ac_try_echo") >&5
10281 (eval "$ac_link") 2>conftest.er1
10283 grep -v '^ *+' conftest.er1 >conftest.err
10285 cat conftest.err >&5
10286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); } && {
10288 test -z "$ac_c_werror_flag" ||
10289 test ! -s conftest.err
10290 } && test -s conftest$ac_exeext &&
10291 $as_test_x conftest$ac_exeext; then
10292 ac_cv_lib_m_main=yes
10294 $as_echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_cv_lib_m_main=no
10300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10301 conftest$ac_exeext conftest.$ac_ext
10302 LIBS=$ac_check_lib_save_LIBS
10304 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10305 $as_echo "$ac_cv_lib_m_main" >&6; }
10306 if test $ac_cv_lib_m_main = yes; then
10307 cat >>confdefs.h <<_ACEOF
10308 #define HAVE_LIBM 1
10316 # If you're cross-compiling, these macros set up the variables in
10317 # ../make/cross.mk: BUILDCC, BUILDCFLAGS, BUILDCCLD etc.
10318 if test "$cross_compiling" = yes; then
10319 if test -z "${BUILDCC}"; then
10322 { $as_echo "$as_me:$LINENO: result: setting \$BUILDCC to ${BUILDCC}" >&5
10323 $as_echo "setting \$BUILDCC to ${BUILDCC}" >&6; }
10325 if test -n "${BUILDCC}"; then
10326 { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCC set but not cross-compiling." >&5
10327 $as_echo "$as_me: WARNING: \$BUILDCC set but not cross-compiling." >&2;}
10333 if test "$cross_compiling" = yes; then
10334 if test -z "${BUILDCFLAGS}"; then
10335 BUILDCFLAGS='$(BUILDXCFLAGS)'
10337 { $as_echo "$as_me:$LINENO: result: setting \$BUILDCFLAGS to ${BUILDCFLAGS}" >&5
10338 $as_echo "setting \$BUILDCFLAGS to ${BUILDCFLAGS}" >&6; }
10340 if test -n "${BUILDCFLAGS}"; then
10341 { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCFLAGS set but not cross-compiling." >&5
10342 $as_echo "$as_me: WARNING: \$BUILDCFLAGS set but not cross-compiling." >&2;}
10344 BUILDCFLAGS='$(CFLAGS)'
10348 if test "$cross_compiling" = yes; then
10349 if test -z "${BUILDCPPFLAGS}"; then
10350 BUILDCPPFLAGS='$(BUILDXCPPFLAGS)'
10352 { $as_echo "$as_me:$LINENO: result: setting \$BUILDCPPFLAGS to ${BUILDCPPFLAGS}" >&5
10353 $as_echo "setting \$BUILDCPPFLAGS to ${BUILDCPPFLAGS}" >&6; }
10355 if test -n "${BUILDCPPFLAGS}"; then
10356 { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCPPFLAGS set but not cross-compiling." >&5
10357 $as_echo "$as_me: WARNING: \$BUILDCPPFLAGS set but not cross-compiling." >&2;}
10359 BUILDCPPFLAGS='$(CPPFLAGS)'
10363 if test "$cross_compiling" = yes; then
10364 if test -z "${BUILDLDFLAGS}"; then
10365 BUILDLDFLAGS='$(BUILDXLDFLAGS)'
10367 { $as_echo "$as_me:$LINENO: result: setting \$BUILDLDFLAGS to ${BUILDLDFLAGS}" >&5
10368 $as_echo "setting \$BUILDLDFLAGS to ${BUILDLDFLAGS}" >&6; }
10370 if test -n "${BUILDLDFLAGS}"; then
10371 { $as_echo "$as_me:$LINENO: WARNING: \$BUILDLDFLAGS set but not cross-compiling." >&5
10372 $as_echo "$as_me: WARNING: \$BUILDLDFLAGS set but not cross-compiling." >&2;}
10374 BUILDLDFLAGS='$(LDFLAGS)'
10378 if test "$cross_compiling" = yes; then
10379 if test -z "${BUILDCCLD}"; then
10380 BUILDCCLD='$(BUILDCC)'
10382 { $as_echo "$as_me:$LINENO: result: setting \$BUILDCCLD to ${BUILDCCLD}" >&5
10383 $as_echo "setting \$BUILDCCLD to ${BUILDCCLD}" >&6; }
10385 if test -n "${BUILDCCLD}"; then
10386 { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCCLD set but not cross-compiling." >&5
10387 $as_echo "$as_me: WARNING: \$BUILDCCLD set but not cross-compiling." >&2;}
10389 BUILDCCLD='$(CCLD)'
10395 ac_config_files="$ac_config_files Makefile.aux:Makefile.in"
10396 ac_config_files="$ac_config_files Makefile:Makefile.aux"
10398 cat >confcache <<\_ACEOF
10399 # This file is a shell script that caches the results of configure
10400 # tests run on this system so they can be shared between configure
10401 # scripts and configure runs, see configure's option --config-cache.
10402 # It is not useful on other systems. If it contains results you don't
10403 # want to keep, you may remove or edit it.
10405 # config.status only pays attention to the cache file if you give it
10406 # the --recheck option to rerun configure.
10408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10410 # following values.
10414 # The following way of writing the cache mishandles newlines in values,
10415 # but we know of no workaround that is simple, portable, and efficient.
10416 # So, we kill variables containing newlines.
10417 # Ultrix sh set writes to stderr and can't be redirected directly,
10418 # and sets the high bit in the cache file unless we assign to the vars.
10420 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10421 eval ac_val=\$$ac_var
10425 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10426 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10429 _ | IFS | as_nl) ;; #(
10430 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10431 *) $as_unset $ac_var ;;
10437 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10438 *${as_nl}ac_space=\ *)
10439 # `set' does not quote correctly, so add quotes (double-quote
10440 # substitution turns \\\\ into \\, and sed turns \\ into \).
10443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10446 # `set' quotes correctly as required by POSIX, so do not add quotes.
10447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10458 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10460 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10461 if test -w "$cache_file"; then
10462 test "x$cache_file" != "x/dev/null" &&
10463 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10464 $as_echo "$as_me: updating cache $cache_file" >&6;}
10465 cat confcache >$cache_file
10467 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10474 # Let make expand exec_prefix.
10475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10477 DEFS=-DHAVE_CONFIG_H
10481 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10482 # 1. Remove the extension, and $U if already installed.
10483 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10484 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10486 # will be set to the directory where LIBOBJS objects are built.
10487 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10488 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10490 LIBOBJS=$ac_libobjs
10492 LTLIBOBJS=$ac_ltlibobjs
10496 : ${CONFIG_STATUS=./config.status}
10497 ac_clean_files_save=$ac_clean_files
10498 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10499 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10500 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10501 cat >$CONFIG_STATUS <<_ACEOF
10503 # Generated by $as_me.
10504 # Run this file to recreate the current configuration.
10505 # Compiler output produced by configure, useful for debugging
10506 # configure, is in config.log if it exists.
10509 ac_cs_recheck=false
10511 SHELL=\${CONFIG_SHELL-$SHELL}
10514 cat >>$CONFIG_STATUS <<\_ACEOF
10515 ## --------------------- ##
10516 ## M4sh Initialization. ##
10517 ## --------------------- ##
10519 # Be more Bourne compatible
10520 DUALCASE=1; export DUALCASE # for MKS sh
10521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10524 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10525 # is contrary to our usage. Disable this feature.
10526 alias -g '${1+"$@"}'='"$@"'
10527 setopt NO_GLOB_SUBST
10529 case `(set -o) 2>/dev/null` in
10530 *posix*) set -o posix ;;
10539 # Avoid depending upon Character Ranges.
10540 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10541 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10542 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10543 as_cr_digits='0123456789'
10544 as_cr_alnum=$as_cr_Letters$as_cr_digits
10549 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10550 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10551 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10552 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10553 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10554 as_echo='printf %s\n'
10555 as_echo_n='printf %s'
10557 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10558 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10559 as_echo_n='/usr/ucb/echo -n'
10561 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10562 as_echo_n_body='eval
10566 expr "X$arg" : "X\\(.*\\)$as_nl";
10567 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10569 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10571 export as_echo_n_body
10572 as_echo_n='sh -c $as_echo_n_body as_echo'
10574 export as_echo_body
10575 as_echo='sh -c $as_echo_body as_echo'
10578 # The user is always right.
10579 if test "${PATH_SEPARATOR+set}" != set; then
10580 echo "#! /bin/sh" >conf$$.sh
10581 echo "exit 0" >>conf$$.sh
10583 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10591 # Support unset when possible.
10592 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10600 # We need space, tab and new line, in precisely that order. Quoting is
10601 # there to prevent editors from complaining about space-tab.
10602 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10603 # splitting by setting IFS to empty value.)
10606 # Find who we are. Look in the path if we contain no directory separator.
10608 *[\\/]* ) as_myself=$0 ;;
10609 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10613 test -z "$as_dir" && as_dir=.
10614 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10620 # We did not find ourselves, most probably we were run as `sh COMMAND'
10621 # in which case we are not to be found in the path.
10622 if test "x$as_myself" = x; then
10625 if test ! -f "$as_myself"; then
10626 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10627 { (exit 1); exit 1; }
10630 # Work around bugs in pre-3.0 UWIN ksh.
10631 for as_var in ENV MAIL MAILPATH
10632 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10640 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10641 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10642 LC_TELEPHONE LC_TIME
10644 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10645 eval $as_var=C; export $as_var
10647 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10651 # Required to use basename.
10652 if expr a : '\(a\)' >/dev/null 2>&1 &&
10653 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10659 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10660 as_basename=basename
10666 # Name of the executable.
10667 as_me=`$as_basename -- "$0" ||
10668 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10669 X"$0" : 'X\(//\)$' \| \
10670 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10672 sed '/^.*\/\([^/][^/]*\)\/*$/{
10691 as_lineno_1=$LINENO
10692 as_lineno_2=$LINENO
10693 test "x$as_lineno_1" != "x$as_lineno_2" &&
10694 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10696 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10697 # uniformly replaced by the line number. The first 'sed' inserts a
10698 # line-number line after each line using $LINENO; the second 'sed'
10699 # does the real work. The second script uses 'N' to pair each
10700 # line-number line with the line containing $LINENO, and appends
10701 # trailing '-' during substitution so that $LINENO is not a special
10702 # case at line end.
10703 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10704 # scripts with optimization help from Paolo Bonzini. Blame Lee
10705 # E. McMahon (1931-1989) for sed's syntax. :-)
10717 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10720 ' >$as_me.lineno &&
10721 chmod +x "$as_me.lineno" ||
10722 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10723 { (exit 1); exit 1; }; }
10725 # Don't try to exec as it changes $[0], causing all sort of problems
10726 # (the dirname of $[0] is not the place where we might find the
10727 # original and so on. Autoconf is especially sensitive to this).
10728 . "./$as_me.lineno"
10729 # Exit status is that of the last command.
10734 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10740 ECHO_C= ECHO_N= ECHO_T=
10741 case `echo -n x` in
10743 case `echo 'x\c'` in
10744 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10750 if expr a : '\(a\)' >/dev/null 2>&1 &&
10751 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10757 rm -f conf$$ conf$$.exe conf$$.file
10758 if test -d conf$$.dir; then
10759 rm -f conf$$.dir/conf$$.file
10765 if ln -s conf$$.file conf$$ 2>/dev/null; then
10767 # ... but there are two gotchas:
10768 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10769 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10770 # In both cases, we have to default to `cp -p'.
10771 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10773 elif ln conf$$.file conf$$ 2>/dev/null; then
10778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10779 rmdir conf$$.dir 2>/dev/null
10781 if mkdir -p . 2>/dev/null; then
10784 test -d ./-p && rmdir ./-p
10788 if test -x / >/dev/null 2>&1; then
10789 as_test_x='test -x'
10791 if ls -dL / >/dev/null 2>&1; then
10798 if test -d "$1"; then
10804 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10805 ???[sx]*):;;*)false;;esac;fi
10809 as_executable_p=$as_test_x
10811 # Sed expression to map a string onto a valid CPP name.
10812 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10814 # Sed expression to map a string onto a valid variable name.
10815 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10820 # Save the log message, to keep $[0] and so on meaningful, and to
10821 # report actual input values of CONFIG_FILES etc. instead of their
10822 # values after options handling.
10824 This file was extended by $as_me, which was
10825 generated by GNU Autoconf 2.61a. Invocation command line was
10827 CONFIG_FILES = $CONFIG_FILES
10828 CONFIG_HEADERS = $CONFIG_HEADERS
10829 CONFIG_LINKS = $CONFIG_LINKS
10830 CONFIG_COMMANDS = $CONFIG_COMMANDS
10833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10838 cat >>$CONFIG_STATUS <<_ACEOF
10839 # Files that config.status was made for.
10840 config_files="$ac_config_files"
10841 config_headers="$ac_config_headers"
10845 cat >>$CONFIG_STATUS <<\_ACEOF
10847 \`$as_me' instantiates files from templates according to the
10848 current configuration.
10850 Usage: $0 [OPTIONS] [FILE]...
10852 -h, --help print this help, then exit
10853 -V, --version print version number and configuration settings, then exit
10854 -q, --quiet do not print progress messages
10855 -d, --debug don't remove temporary files
10856 --recheck update $as_me by reconfiguring in the same conditions
10857 --file=FILE[:TEMPLATE]
10858 instantiate the configuration file FILE
10859 --header=FILE[:TEMPLATE]
10860 instantiate the configuration header FILE
10862 Configuration files:
10865 Configuration headers:
10868 Report bugs to <bug-autoconf@gnu.org>."
10871 cat >>$CONFIG_STATUS <<_ACEOF
10874 configured by $0, generated by GNU Autoconf 2.61a,
10875 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10877 Copyright (C) 2006 Free Software Foundation, Inc.
10878 This config.status script is free software; the Free Software Foundation
10879 gives unlimited permission to copy, distribute and modify it."
10884 test -n "\$AWK" || AWK=awk
10887 cat >>$CONFIG_STATUS <<\_ACEOF
10888 # If no file are specified by the user, then we need to provide default
10889 # value. By we need to know if files were specified by the user.
10895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10907 # Handling of the options.
10908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10910 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10911 $as_echo "$ac_cs_version"; exit ;;
10912 --debug | --debu | --deb | --de | --d | -d )
10914 --file | --fil | --fi | --f )
10916 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10917 ac_need_defaults=false;;
10918 --header | --heade | --head | --hea )
10920 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10921 ac_need_defaults=false;;
10923 # Conflict between --help and --header
10924 { $as_echo "$as_me: error: ambiguous option: $1
10925 Try \`$0 --help' for more information." >&2
10926 { (exit 1); exit 1; }; };;
10927 --help | --hel | -h )
10928 $as_echo "$ac_cs_usage"; exit ;;
10929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10930 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10933 # This is an error.
10934 -*) { $as_echo "$as_me: error: unrecognized option: $1
10935 Try \`$0 --help' for more information." >&2
10936 { (exit 1); exit 1; }; } ;;
10938 *) ac_config_targets="$ac_config_targets $1"
10939 ac_need_defaults=false ;;
10945 ac_configure_extra_args=
10947 if $ac_cs_silent; then
10949 ac_configure_extra_args="$ac_configure_extra_args --silent"
10953 cat >>$CONFIG_STATUS <<_ACEOF
10954 if \$ac_cs_recheck; then
10955 set X '$SHELL' '$0'$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10957 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10958 CONFIG_SHELL='$SHELL'
10959 export CONFIG_SHELL
10964 cat >>$CONFIG_STATUS <<\_ACEOF
10968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10969 ## Running $as_me. ##
10975 cat >>$CONFIG_STATUS <<_ACEOF
10978 cat >>$CONFIG_STATUS <<\_ACEOF
10980 # Handling of arguments.
10981 for ac_config_target in $ac_config_targets
10983 case $ac_config_target in
10984 "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
10985 "Makefile.aux") CONFIG_FILES="$CONFIG_FILES Makefile.aux:Makefile.in" ;;
10986 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.aux" ;;
10988 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10989 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10990 { (exit 1); exit 1; }; };;
10995 # If the user did not use the arguments to specify the items to instantiate,
10996 # then the envvar interface is used. Set only those that are not.
10997 # We use the long form for the default assignment because of an extremely
10998 # bizarre bug on SunOS 4.1.3.
10999 if $ac_need_defaults; then
11000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11004 # Have a temporary directory for convenience. Make it in the build tree
11005 # simply because there is no reason against having it here, and in addition,
11006 # creating and moving files from /tmp can sometimes cause problems.
11007 # Hook for its removal unless debugging.
11008 # Note that there is a small window in which the directory will not be cleaned:
11009 # after its creation but before its name has been assigned to `$tmp'.
11013 trap 'exit_status=$?
11014 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11016 trap '{ (exit 1); exit 1; }' 1 2 13 15
11018 # Create a (secure) tmp directory for tmp files.
11021 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11022 test -n "$tmp" && test -d "$tmp"
11025 tmp=./conf$$-$RANDOM
11026 (umask 077 && mkdir "$tmp")
11029 $as_echo "$me: cannot create a temporary directory in ." >&2
11030 { (exit 1); exit 1; }
11033 # Set up the scripts for CONFIG_FILES section.
11034 # No need to generate them if there are no CONFIG_FILES.
11035 # This happens for instance with `./config.status config.h'.
11036 if test -n "$CONFIG_FILES"; then
11039 echo 'BEGIN {' >"$tmp/subs.awk"
11044 echo "cat >conf$$subs.awk <<_ACEOF"
11045 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/'
11048 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11050 for ac_last_try in false false false false false :; do
11053 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
11055 elif $ac_last_try; then
11056 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11057 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11058 { (exit 1); exit 1; }; }
11060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11063 rm -f conf$$subs.sh
11065 cat >>$CONFIG_STATUS <<_ACEOF
11066 cat >>"\$tmp/subs.awk" <<\CEOF
11070 s/^/S["/; s/!.*/"]=/
11080 s/\(.\{148\}\).*/\1/
11082 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11087 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11094 s/\(.\{148\}\).*/\1/
11096 s/["\\]/\\&/g; s/^/"/; s/$/"/
11100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11105 ' <conf$$subs.awk | sed '
11111 rm -f conf$$subs.awk
11112 cat >>$CONFIG_STATUS <<_ACEOF
11114 cat >>"\$tmp/subs.awk" <<CEOF
11115 for (key in S) S_is_set[key] = 1
11121 nfields = split(line, field, "@")
11123 len = length(field[1])
11124 for (i = 2; i < nfields; i++) {
11126 keylen = length(key)
11127 if (S_is_set[key]) {
11129 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11130 len += length(value) + length(field[++i])
11142 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11143 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11144 # trailing colons and then remove the whole line if VPATH becomes empty
11145 # (actually we leave an empty line to preserve line numbers).
11146 if test "x$srcdir" = x.; then
11147 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11148 s/:*\$(srcdir):*/:/
11149 s/:*\${srcdir}:*/:/
11151 s/^\([^=]*=[ ]*\):*/\1/
11157 cat >>$CONFIG_STATUS <<\_ACEOF
11158 fi # test -n "$CONFIG_FILES"
11161 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11164 :[FHLC]) ac_mode=$ac_tag; continue;;
11166 case $ac_mode$ac_tag in
11168 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11169 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11170 { (exit 1); exit 1; }; };;
11171 :[FH]-) ac_tag=-:-;;
11172 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11189 -) ac_f="$tmp/stdin";;
11190 *) # Look for the file first in the build tree, then in the source tree
11191 # (if the path is not absolute). The absolute path cannot be DOS-style,
11192 # because $ac_f cannot contain `:'.
11196 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11198 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11199 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11200 { (exit 1); exit 1; }; };;
11202 ac_file_inputs="$ac_file_inputs $ac_f"
11205 # Let's still pretend it is `configure' which instantiates (i.e., don't
11206 # use $as_me), people would be surprised to read:
11207 # /* config.h. Generated by config.status. */
11208 configure_input='Generated from '`
11209 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11211 if test x"$ac_file" != x-; then
11212 configure_input="$ac_file. $configure_input"
11213 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11214 $as_echo "$as_me: creating $ac_file" >&6;}
11218 *:-:* | *:-) cat >"$tmp/stdin";;
11223 ac_dir=`$as_dirname -- "$ac_file" ||
11224 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11225 X"$ac_file" : 'X\(//\)[^/]' \| \
11226 X"$ac_file" : 'X\(//\)$' \| \
11227 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11228 $as_echo X"$ac_file" |
11229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11233 /^X\(\/\/\)[^/].*/{
11248 -*) as_dir=./$as_dir;;
11250 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11254 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11255 *) as_qdir=$as_dir;;
11257 as_dirs="'$as_qdir' $as_dirs"
11258 as_dir=`$as_dirname -- "$as_dir" ||
11259 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11260 X"$as_dir" : 'X\(//\)[^/]' \| \
11261 X"$as_dir" : 'X\(//\)$' \| \
11262 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11263 $as_echo X"$as_dir" |
11264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11268 /^X\(\/\/\)[^/].*/{
11281 test -d "$as_dir" && break
11283 test -z "$as_dirs" || eval "mkdir $as_dirs"
11284 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11285 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11286 { (exit 1); exit 1; }; }; }
11290 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11292 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's,^\.[\\/],,'`
11293 # A ".." for each directory in $ac_dir_suffix.
11294 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11295 case $ac_top_builddir_sub in
11296 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11297 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11300 ac_abs_top_builddir=$ac_pwd
11301 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11302 # for backward compatibility:
11303 ac_top_builddir=$ac_top_build_prefix
11306 .) # We are building in place.
11308 ac_top_srcdir=$ac_top_builddir_sub
11309 ac_abs_top_srcdir=$ac_pwd ;;
11310 [\\/]* | ?:[\\/]* ) # Absolute name.
11311 ac_srcdir=$srcdir$ac_dir_suffix;
11312 ac_top_srcdir=$srcdir
11313 ac_abs_top_srcdir=$srcdir ;;
11314 *) # Relative name.
11315 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11316 ac_top_srcdir=$ac_top_build_prefix$srcdir
11317 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11319 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11329 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11330 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11334 cat >>$CONFIG_STATUS <<\_ACEOF
11335 # If the template does not know about datarootdir, expand it.
11336 # FIXME: This hack should be removed a few years after 2.60.
11337 ac_datarootdir_hack=; ac_datarootdir_seen=
11339 case `sed -n '/datarootdir/ {
11348 ' $ac_file_inputs` in
11349 *datarootdir*) ac_datarootdir_seen=yes;;
11350 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11351 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11352 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11354 cat >>$CONFIG_STATUS <<_ACEOF
11355 ac_datarootdir_hack='
11356 s&@datadir@&$datadir&g
11357 s&@docdir@&$docdir&g
11358 s&@infodir@&$infodir&g
11359 s&@localedir@&$localedir&g
11360 s&@mandir@&$mandir&g
11361 s&\\\${datarootdir}&$datarootdir&g' ;;
11365 # Neutralize VPATH when `$srcdir' = `.'.
11366 # Shell code in configure.ac might set extrasub.
11367 # FIXME: do we really want to maintain this feature?
11368 cat >>$CONFIG_STATUS <<_ACEOF
11372 cat >>$CONFIG_STATUS <<\_ACEOF
11374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11375 s&@configure_input@&$configure_input&;t t
11376 s&@top_builddir@&$ac_top_builddir_sub&;t t
11377 s&@srcdir@&$ac_srcdir&;t t
11378 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11379 s&@top_srcdir@&$ac_top_srcdir&;t t
11380 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11381 s&@builddir@&$ac_builddir&;t t
11382 s&@abs_builddir@&$ac_abs_builddir&;t t
11383 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11384 s&@INSTALL@&$ac_INSTALL&;t t
11385 $ac_datarootdir_hack
11386 " $ac_file_inputs | $AWK -f "$tmp/subs.awk" >$tmp/out
11388 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11389 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11390 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11391 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11392 which seems to be undefined. Please make sure it is defined." >&5
11393 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11394 which seems to be undefined. Please make sure it is defined." >&2;}
11398 -) cat "$tmp/out"; rm -f "$tmp/out";;
11399 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11408 # Transform confdefs.h into a sed script `conftest.defines', that
11409 # substitutes the proper values into config.h.in to produce config.h.
11410 rm -f conftest.defines conftest.tail
11411 # First, append a space to every undef/define line, to ease matching.
11412 echo 's/$/ /' >conftest.defines
11413 # Then, protect against being on the right side of a sed subst, or in
11414 # an unquoted here document, in config.status. If some macros were
11415 # called several times there might be several #defines for the same
11416 # symbol, which is useless. But do not sort them, since the last
11417 # AC_DEFINE must be honored.
11418 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11419 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11420 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11421 # PARAMS is the parameter list in the macro definition--in most cases, it's
11422 # just an empty string.
11423 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11424 ac_dB='\\)[ (].*,\\1define\\2'
11432 s/^[ ]*#[ ]*define[ ][ ]*//
11437 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11438 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11439 ' >>conftest.defines
11441 # Remove the space that was appended to ease matching.
11442 # Then replace #undef with comments. This is necessary, for
11443 # example, in the case of _POSIX_SOURCE, which is predefined and required
11444 # on some systems where configure will not decide to define it.
11445 # (The regexp can be short, since the line contains either #define or #undef.)
11447 s,^[ #]*u.*,/* & */,' >>conftest.defines
11449 # Break up conftest.defines:
11450 ac_max_sed_lines=50
11452 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11453 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11454 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11456 ac_in='$ac_file_inputs'
11457 ac_out='"$tmp/out1"'
11458 ac_nxt='"$tmp/out2"'
11462 # Write a here document:
11463 cat >>$CONFIG_STATUS <<_ACEOF
11464 # First, check the format of the line:
11465 cat >"\$tmp/defines.sed" <<\\CEOF
11466 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11467 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11471 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11473 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11474 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11475 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11476 grep . conftest.tail >/dev/null || break
11477 rm -f conftest.defines
11478 mv conftest.tail conftest.defines
11480 rm -f conftest.defines conftest.tail
11482 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11483 cat >>$CONFIG_STATUS <<\_ACEOF
11484 if test x"$ac_file" != x-; then
11485 $as_echo "/* $configure_input */" >"$tmp/config.h"
11486 cat "$ac_result" >>"$tmp/config.h"
11487 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11488 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11489 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11492 mv "$tmp/config.h" $ac_file
11495 $as_echo "/* $configure_input */"
11505 case $ac_file$ac_mode in
11506 "c-auto.h":H) date >stamp-auto ;;
11507 "Makefile.aux":F) # Discard the file just generated and first resolve kpse_include's
11508 kpse_input=`case Makefile.in in
11509 [\\/$]*) # Absolute
11510 test -f "Makefile.in" || { { $as_echo "$as_me:$LINENO: error: cannot find input file: Makefile.in" >&5
11511 $as_echo "$as_me: error: cannot find input file: Makefile.in" >&2;}
11512 { (exit 1); exit 1; }; }
11513 echo "Makefile.in";;
11515 if test -f "Makefile.in"; then
11518 elif test -f "$srcdir/Makefile.in"; then
11520 echo "$srcdir/Makefile.in"
11523 { { $as_echo "$as_me:$LINENO: error: cannot find input file: Makefile.in" >&5
11524 $as_echo "$as_me: error: cannot find input file: Makefile.in" >&2;}
11525 { (exit 1); exit 1; }; }
11527 esac` || { (exit 1); exit 1; }
11528 # Replace lines of the form "kpse_include foo" with the contents of foo:
11529 # first, from the kpse_include lines construct a list of file names.
11530 # From that list, we construct a second list of those files that exist.
11531 # Then we construct a list of sed commands for including those files,
11532 # and a sed command that removes the kpse_include lines. We don't attempt
11533 # to read non-existent files because some (buggy) versions of sed choke
11534 # on this. Have to use sed because old (Ultrix, SunOs) awk does not support
11535 # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
11536 # Can't use only one -e and commands {dr foo} because foo has to be last.
11537 # Be careful, because the filename may contain /.
11538 # Be careful with whitespace; we need to use echo.
11539 kpse_file_substs=`sed -n '/^kpse_include/s%[ ]*\(.*\)%\1%p' "$kpse_input"`
11540 if test x"$kpse_file_substs" = x; then
11541 { $as_echo "$as_me:$LINENO: WARNING: No need to use \`KPSE_CONFIG_FILES' for input \`Makefile.in'
11542 without any \`kpse_include' directives" >&5
11543 $as_echo "$as_me: WARNING: No need to use \`KPSE_CONFIG_FILES' for input \`Makefile.in'
11544 without any \`kpse_include' directives" >&2;}
11546 # Create the sed command line ...
11547 # Input lines containing "@configure_input@" are output twice,
11548 # first with our modifications and then unmodified.
11549 kpse_substs="sed -e '/@configure_input@/ { h; \
11550 s,@configure_input@,Makefile.aux. Generated from `echo Makefile.in |
11551 sed 's,.*/,,'` by configure.,; G }'"
11552 for kpse_inc in $kpse_file_substs; do
11553 kpse_read=`case $kpse_inc in
11554 [\\/$]*) # Absolute
11555 if test -f "$kpse_inc"; then
11559 if test -f "$kpse_inc"; then
11562 elif test -f "$srcdir/$kpse_inc"; then
11564 echo "$srcdir/$kpse_inc"
11567 if test -n "$kpse_read"; then
11568 kpse_mung=`echo $kpse_inc | sed 's,/,%,g'`
11569 kpse_substs="$kpse_substs -e '/^kpse_include $kpse_mung$/r $kpse_read'"
11572 # ... and fix the whitespace and escaped slashes.
11573 kpse_substs=`echo "$kpse_substs" | sed -e 's,%,\\\/,g' \
11574 -e 's/kpse_include /kpse_include[ ]*/g'`
11575 (eval $kpse_substs -e '/^kpse_include/d' "$kpse_input") > Makefile.aux
11582 { (exit 0); exit 0; }
11584 chmod +x $CONFIG_STATUS
11585 ac_clean_files=$ac_clean_files_save
11588 # configure is writing to config.log, and then calls config.status.
11589 # config.status does its own redirection, appending to config.log.
11590 # Unfortunately, on DOS this fails, as config.log is still kept open
11591 # by configure, so config.status won't be able to write to it; its
11592 # output is simply discarded. So we exec the FD to /dev/null,
11593 # effectively closing config.log, so it can be properly (re)opened and
11594 # appended to by config.status. When coming back to configure, we
11595 # need to make the FD available again.
11596 if test "$no_create" != yes; then
11598 ac_config_status_args=
11599 test "$silent" = yes &&
11600 ac_config_status_args="$ac_config_status_args --quiet"
11602 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11604 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11605 # would make configure fail if this is the last instruction.
11606 $ac_cs_success || { (exit 1); exit 1; }