Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: third_party/libxml/src/configure

Issue 1752223002: Roll libxml to 2.9.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-cherry-pick fprintf formatting fix. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #! /bin/sh 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles. 2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.10.2. 3 # Generated by GNU Autoconf 2.69.
4 # 4 #
5 # 5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 # 7 #
8 # 8 #
9 # This configure script is free software; the Free Software Foundation 9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it. 10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ## 11 ## -------------------- ##
12 ## M4sh Initialization. ## 12 ## M4sh Initialization. ##
13 ## -------------------- ## 13 ## -------------------- ##
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 else 190 else
191 exitcode=1; echo positional parameters were not saved. 191 exitcode=1; echo positional parameters were not saved.
192 fi 192 fi
193 test x\$exitcode = x0 || exit 1 193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1" 194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$ as_suggested" as_lineno_1a=\$LINENO 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$ as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as _lineno_2a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as _lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1" 207 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then : 208 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes 209 as_have_required=yes
202 else 210 else
203 as_have_required=no 211 as_have_required=no
204 fi 212 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206 214
207 else 215 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 554
547 as_test_x='test -x' 555 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p 556 as_executable_p=as_fn_executable_p
549 557
550 # Sed expression to map a string onto a valid CPP name. 558 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 560
553 # Sed expression to map a string onto a valid variable name. 561 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 563
556
557
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh} 564 SHELL=${CONFIG_SHELL-/bin/sh}
560 565
561 case X$lt_ECHO in
562 X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 ;;
566 esac
567
568 ECHO=${lt_ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
575 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
577 :
578 else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581 fi
582
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
586 cat <<_LT_EOF
587 $*
588 _LT_EOF
589 exit 0
590 fi
591
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596 if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
605 fi
606 done
607 fi
608
609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
619
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
629 fi
630 done
631 IFS="$lt_save_ifs"
632
633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo ' \t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo " $echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/d ev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_tes t_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
673
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'se d 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
689 fi
690 fi
691 fi
692 fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 lt_ECHO=$ECHO
699 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705 566
706 test -n "$DJDIR" || exec 7<&0 </dev/null 567 test -n "$DJDIR" || exec 7<&0 </dev/null
707 exec 6>&1 568 exec 6>&1
708 569
709 # Name of the host. 570 # Name of the host.
710 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
711 # so uname gets run too. 572 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713 574
714 # 575 #
715 # Initializations. 576 # Initializations.
716 # 577 #
717 ac_default_prefix=/usr/local 578 ac_default_prefix=/usr/local
718 ac_clean_files= 579 ac_clean_files=
719 ac_config_libobj_dir=. 580 ac_config_libobj_dir=.
720 LIBOBJS= 581 LIBOBJS=
721 cross_compiling=no 582 cross_compiling=no
722 subdirs= 583 subdirs=
723 MFLAGS= 584 MFLAGS=
724 MAKEFLAGS= 585 MAKEFLAGS=
725 586
726 # Identity of this package. 587 # Identity of this package.
727 PACKAGE_NAME='sqlite' 588 PACKAGE_NAME=
728 PACKAGE_TARNAME='sqlite' 589 PACKAGE_TARNAME=
729 PACKAGE_VERSION='3.10.2' 590 PACKAGE_VERSION=
730 PACKAGE_STRING='sqlite 3.10.2' 591 PACKAGE_STRING=
731 PACKAGE_BUGREPORT='' 592 PACKAGE_BUGREPORT=
732 PACKAGE_URL='' 593 PACKAGE_URL=
733 594
595 ac_unique_file="entities.c"
734 # Factoring default headers for most tests. 596 # Factoring default headers for most tests.
735 ac_includes_default="\ 597 ac_includes_default="\
736 #include <stdio.h> 598 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H 599 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h> 600 # include <sys/types.h>
739 #endif 601 #endif
740 #ifdef HAVE_SYS_STAT_H 602 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h> 603 # include <sys/stat.h>
742 #endif 604 #endif
743 #ifdef STDC_HEADERS 605 #ifdef STDC_HEADERS
(...skipping 16 matching lines...) Expand all
760 #ifdef HAVE_INTTYPES_H 622 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h> 623 # include <inttypes.h>
762 #endif 624 #endif
763 #ifdef HAVE_STDINT_H 625 #ifdef HAVE_STDINT_H
764 # include <stdint.h> 626 # include <stdint.h>
765 #endif 627 #endif
766 #ifdef HAVE_UNISTD_H 628 #ifdef HAVE_UNISTD_H
767 # include <unistd.h> 629 # include <unistd.h>
768 #endif" 630 #endif"
769 631
770 ac_subst_vars='LTLIBOBJS 632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
771 LIBOBJS 635 LIBOBJS
772 BUILD_CFLAGS 636 PYTHON_TESTS
773 USE_GCOV 637 RELDATE
774 OPT_FEATURE_FLAGS 638 RDL_LIBS
775 USE_AMALGAMATION 639 M_LIBS
776 TARGET_DEBUG 640 PYTHON_SITE_PACKAGES
777 TARGET_HAVE_EDITLINE 641 PYTHON_INCLUDES
778 TARGET_HAVE_READLINE 642 PYTHON_VERSION
779 TARGET_READLINE_INC 643 HAVE_ISINF
780 TARGET_READLINE_LIBS 644 HAVE_ISNAN
781 HAVE_TCL 645 XML_INCLUDEDIR
782 TCL_SHLIB_SUFFIX 646 ICONV_LIBS
783 TCL_STUB_LIB_SPEC 647 XML_LIBTOOLLIBS
784 TCL_STUB_LIB_FLAG 648 XML_LIBS
785 TCL_STUB_LIB_FILE 649 XML_LIBDIR
786 TCL_LIB_SPEC 650 XML_CFLAGS
787 TCL_LIB_FLAG 651 CYGWIN_EXTRA_PYTHON_LIBADD
788 TCL_LIB_FILE 652 CYGWIN_EXTRA_LDFLAGS
789 TCL_INCLUDE_SPEC 653 WIN32_EXTRA_PYTHON_LIBADD
790 TCL_SRC_DIR 654 WIN32_EXTRA_LDFLAGS
791 TCL_BIN_DIR 655 WIN32_EXTRA_LIBADD
792 TCL_VERSION 656 WITH_RUN_DEBUG
793 TARGET_EXEEXT 657 WITH_MEM_DEBUG
794 SQLITE_OS_WIN 658 TEST_DEBUG
795 SQLITE_OS_UNIX 659 DEBUG_OBJ
796 BUILD_EXEEXT 660 WITH_DEBUG
797 TEMP_STORE 661 TEST_REGEXPS
798 ALLOWRELEASE 662 WITH_REGEXPS
799 SQLITE_THREADSAFE 663 TEST_SCHEMAS
800 BUILD_CC 664 WITH_SCHEMAS
801 VERSION_NUMBER 665 WITH_ISO8859X
802 RELEASE 666 ICU_LIBS
803 VERSION 667 WITH_ICU
804 program_prefix 668 WITH_ICONV
805 TCLLIBDIR 669 WITH_OUTPUT
806 TCLSH_CMD 670 TEST_XPATH
807 INSTALL_DATA 671 XPATH_OBJ
808 INSTALL_SCRIPT 672 WITH_XPATH
809 INSTALL_PROGRAM 673 TEST_SCHEMATRON
810 CPP 674 WITH_SCHEMATRON
675 TEST_XINCLUDE
676 XINCLUDE_OBJ
677 WITH_XINCLUDE
678 TEST_C14N
679 C14N_OBJ
680 WITH_C14N
681 TEST_XPTR
682 XPTR_OBJ
683 WITH_XPTR
684 DOCB_OBJ
685 WITH_DOCB
686 TEST_CATALOG
687 CATALOG_OBJ
688 WITH_CATALOG
689 TEST_VTIME
690 TEST_VALID
691 WITH_VALID
692 TEST_PHTML
693 TEST_HTML
694 HTML_OBJ
695 WITH_HTML
696 TEST_PUSH
697 WITH_PUSH
698 TEST_SAX
699 WITH_SAX1_SOURCES_FALSE
700 WITH_SAX1_SOURCES_TRUE
701 WITH_SAX1
702 TEST_PATTERN
703 WITH_PATTERN
704 WITH_WRITER
705 READER_TEST
706 WITH_READER
707 WITH_LEGACY
708 HTTP_OBJ
709 WITH_HTTP
710 FTP_OBJ
711 WITH_FTP
712 WITH_TREE
713 THREADS_W32_FALSE
714 THREADS_W32_TRUE
715 WITH_THREAD_ALLOC
716 TEST_THREADS
717 THREAD_CFLAGS
718 WITH_THREADS
719 BASE_THREAD_LIBS
720 THREAD_LIBS
721 WITH_TRIO
722 WITH_TRIO_SOURCES_FALSE
723 WITH_TRIO_SOURCES_TRUE
724 STATIC_BINARIES
725 TEST_MODULES
726 MODULE_EXTENSION
727 MODULE_PLATFORM_LIBS
728 WITH_MODULES
729 PYTHON_LIBS
730 PYTHON_SUBDIR
731 pythondir
732 WITH_PYTHON_FALSE
733 WITH_PYTHON_TRUE
734 PYTHON
735 WITH_LZMA
736 LZMA_LIBS
737 LZMA_CFLAGS
738 WITH_ZLIB
739 Z_LIBS
740 Z_CFLAGS
741 REBUILD_DOCS_FALSE
742 REBUILD_DOCS_TRUE
743 HTML_DIR
744 USE_VERSION_SCRIPT_FALSE
745 USE_VERSION_SCRIPT_TRUE
746 VERSION_SCRIPT_FLAGS
747 LT_SYS_LIBRARY_PATH
811 OTOOL64 748 OTOOL64
812 OTOOL 749 OTOOL
813 LIPO 750 LIPO
814 NMEDIT 751 NMEDIT
815 DSYMUTIL 752 DSYMUTIL
816 lt_ECHO 753 MANIFEST_TOOL
817 RANLIB 754 RANLIB
818 STRIP 755 ac_ct_AR
819 AR 756 AR
757 DLLTOOL
820 OBJDUMP 758 OBJDUMP
821 LN_S
822 NM 759 NM
823 ac_ct_DUMPBIN 760 ac_ct_DUMPBIN
824 DUMPBIN 761 DUMPBIN
825 LD 762 LD
826 FGREP 763 FGREP
827 EGREP 764 EGREP
828 GREP 765 GREP
829 SED 766 SED
767 LIBTOOL
768 PKG_CONFIG_LIBDIR
769 PKG_CONFIG_PATH
770 PKG_CONFIG
771 XSLTPROC
772 XMLLINT
773 WGET
774 PERL
775 TAR
776 MV
777 CPP
778 LN_S
779 am__fastdepCC_FALSE
780 am__fastdepCC_TRUE
781 CCDEPMODE
782 am__nodep
783 AMDEPBACKSLASH
784 AMDEP_FALSE
785 AMDEP_TRUE
786 am__quote
787 am__include
788 DEPDIR
830 OBJEXT 789 OBJEXT
831 EXEEXT 790 EXEEXT
832 ac_ct_CC 791 ac_ct_CC
833 CPPFLAGS 792 CPPFLAGS
834 LDFLAGS 793 LDFLAGS
835 CFLAGS 794 CFLAGS
836 CC 795 CC
796 AM_BACKSLASH
797 AM_DEFAULT_VERBOSITY
798 AM_DEFAULT_V
799 AM_V
800 am__untar
801 am__tar
802 AMTAR
803 am__leading_dot
804 SET_MAKE
805 AWK
806 mkdir_p
807 MKDIR_P
808 INSTALL_STRIP_PROGRAM
809 STRIP
810 install_sh
811 MAKEINFO
812 AUTOHEADER
813 AUTOMAKE
814 AUTOCONF
815 ACLOCAL
816 VERSION
817 PACKAGE
818 CYGPATH_W
819 am__isrc
820 INSTALL_DATA
821 INSTALL_SCRIPT
822 INSTALL_PROGRAM
823 LIBXML_VERSION_EXTRA
824 LIBXML_VERSION_NUMBER
825 LIBXML_VERSION_INFO
826 LIBXML_VERSION
827 LIBXML_MICRO_VERSION
828 LIBXML_MINOR_VERSION
829 LIBXML_MAJOR_VERSION
837 host_os 830 host_os
838 host_vendor 831 host_vendor
839 host_cpu 832 host_cpu
840 host 833 host
841 build_os 834 build_os
842 build_vendor 835 build_vendor
843 build_cpu 836 build_cpu
844 build 837 build
845 LIBTOOL
846 target_alias 838 target_alias
847 host_alias 839 host_alias
848 build_alias 840 build_alias
849 LIBS 841 LIBS
850 ECHO_T 842 ECHO_T
851 ECHO_N 843 ECHO_N
852 ECHO_C 844 ECHO_C
853 DEFS 845 DEFS
854 mandir 846 mandir
855 localedir 847 localedir
(...skipping 21 matching lines...) Expand all
877 PACKAGE_BUGREPORT 869 PACKAGE_BUGREPORT
878 PACKAGE_STRING 870 PACKAGE_STRING
879 PACKAGE_VERSION 871 PACKAGE_VERSION
880 PACKAGE_TARNAME 872 PACKAGE_TARNAME
881 PACKAGE_NAME 873 PACKAGE_NAME
882 PATH_SEPARATOR 874 PATH_SEPARATOR
883 SHELL' 875 SHELL'
884 ac_subst_files='' 876 ac_subst_files=''
885 ac_user_opts=' 877 ac_user_opts='
886 enable_option_checking 878 enable_option_checking
879 enable_silent_rules
880 enable_dependency_tracking
887 enable_shared 881 enable_shared
888 enable_static 882 enable_static
889 with_pic 883 with_pic
890 enable_fast_install 884 enable_fast_install
885 with_aix_soname
891 with_gnu_ld 886 with_gnu_ld
887 with_sysroot
892 enable_libtool_lock 888 enable_libtool_lock
893 enable_largefile 889 with_c14n
894 enable_threadsafe 890 with_catalog
895 enable_releasemode 891 with_debug
896 enable_tempstore 892 with_docbook
897 enable_tcl 893 with_fexceptions
898 with_tcl 894 with_ftp
899 enable_editline 895 with_history
900 enable_readline 896 with_html
901 with_readline_lib 897 with_html_dir
902 with_readline_inc 898 with_html_subdir
903 enable_debug 899 with_http
904 enable_amalgamation 900 with_iconv
905 enable_load_extension 901 with_icu
906 enable_fts3 902 with_iso8859x
907 enable_fts4 903 with_legacy
908 enable_fts5 904 with_mem_debug
909 enable_json1 905 with_minimum
910 enable_rtree 906 with_output
911 enable_gcov 907 with_pattern
908 with_push
909 with_python
910 with_python_install_dir
911 with_reader
912 with_readline
913 with_regexps
914 with_run_debug
915 with_sax1
916 with_schemas
917 with_schematron
918 with_threads
919 with_thread_alloc
920 with_tree
921 with_valid
922 with_writer
923 with_xinclude
924 with_xpath
925 with_xptr
926 with_modules
927 with_zlib
928 with_lzma
929 with_coverage
930 enable_rebuild_docs
931 enable_ipv6
912 ' 932 '
913 ac_precious_vars='build_alias 933 ac_precious_vars='build_alias
914 host_alias 934 host_alias
915 target_alias 935 target_alias
916 CC 936 CC
917 CFLAGS 937 CFLAGS
918 LDFLAGS 938 LDFLAGS
919 LIBS 939 LIBS
920 CPPFLAGS 940 CPPFLAGS
921 CPP 941 CPP
922 TCLLIBDIR' 942 PKG_CONFIG
943 PKG_CONFIG_PATH
944 PKG_CONFIG_LIBDIR
945 LT_SYS_LIBRARY_PATH
946 LZMA_CFLAGS
947 LZMA_LIBS'
923 948
924 949
925 # Initialize some variables set by options. 950 # Initialize some variables set by options.
926 ac_init_help= 951 ac_init_help=
927 ac_init_version=false 952 ac_init_version=false
928 ac_unrecognized_opts= 953 ac_unrecognized_opts=
929 ac_unrecognized_sep= 954 ac_unrecognized_sep=
930 # The variables have the same names as the options, with 955 # The variables have the same names as the options, with
931 # dashes changed to underlines. 956 # dashes changed to underlines.
932 cache_file=/dev/null 957 cache_file=/dev/null
(...skipping 20 matching lines...) Expand all
953 bindir='${exec_prefix}/bin' 978 bindir='${exec_prefix}/bin'
954 sbindir='${exec_prefix}/sbin' 979 sbindir='${exec_prefix}/sbin'
955 libexecdir='${exec_prefix}/libexec' 980 libexecdir='${exec_prefix}/libexec'
956 datarootdir='${prefix}/share' 981 datarootdir='${prefix}/share'
957 datadir='${datarootdir}' 982 datadir='${datarootdir}'
958 sysconfdir='${prefix}/etc' 983 sysconfdir='${prefix}/etc'
959 sharedstatedir='${prefix}/com' 984 sharedstatedir='${prefix}/com'
960 localstatedir='${prefix}/var' 985 localstatedir='${prefix}/var'
961 includedir='${prefix}/include' 986 includedir='${prefix}/include'
962 oldincludedir='/usr/include' 987 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 988 docdir='${datarootdir}/doc/${PACKAGE}'
964 infodir='${datarootdir}/info' 989 infodir='${datarootdir}/info'
965 htmldir='${docdir}' 990 htmldir='${docdir}'
966 dvidir='${docdir}' 991 dvidir='${docdir}'
967 pdfdir='${docdir}' 992 pdfdir='${docdir}'
968 psdir='${docdir}' 993 psdir='${docdir}'
969 libdir='${exec_prefix}/lib' 994 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale' 995 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man' 996 mandir='${datarootdir}/man'
972 997
973 ac_prev= 998 ac_prev=
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done 1479 done
1455 1480
1456 # 1481 #
1457 # Report the --help message. 1482 # Report the --help message.
1458 # 1483 #
1459 if test "$ac_init_help" = "long"; then 1484 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing. 1485 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh. 1486 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF 1487 cat <<_ACEOF
1463 \`configure' configures sqlite 3.10.2 to adapt to many kinds of systems. 1488 \`configure' configures this package to adapt to many kinds of systems.
1464 1489
1465 Usage: $0 [OPTION]... [VAR=VALUE]... 1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 1491
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables. 1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 1494
1470 Defaults for the options are specified in brackets. 1495 Defaults for the options are specified in brackets.
1471 1496
1472 Configuration: 1497 Configuration:
1473 -h, --help display this help and exit 1498 -h, --help display this help and exit
(...skipping 27 matching lines...) Expand all
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib] 1528 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include] 1529 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info] 1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man] 1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] 1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 --htmldir=DIR html documentation [DOCDIR] 1537 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR] 1538 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR] 1539 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR] 1540 --psdir=DIR ps documentation [DOCDIR]
1516 _ACEOF 1541 _ACEOF
1517 1542
1518 cat <<\_ACEOF 1543 cat <<\_ACEOF
1519 1544
1545 Program names:
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549
1520 System types: 1550 System types:
1521 --build=BUILD configure for building on BUILD [guessed] 1551 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 _ACEOF 1553 _ACEOF
1524 fi 1554 fi
1525 1555
1526 if test -n "$ac_init_help"; then 1556 if test -n "$ac_init_help"; then
1527 case $ac_init_help in 1557
1528 short | recursive ) echo "Configuration of sqlite 3.10.2:";;
1529 esac
1530 cat <<\_ACEOF 1558 cat <<\_ACEOF
1531 1559
1532 Optional Features: 1560 Optional Features:
1533 --disable-option-checking ignore unrecognized --enable/--with options 1561 --disable-option-checking ignore unrecognized --enable/--with options
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-silent-rules less verbose build output (undo: "make V=1")
1565 --disable-silent-rules verbose build output (undo: "make V=0")
1566 --enable-dependency-tracking
1567 do not reject slow dependency extractors
1568 --disable-dependency-tracking
1569 speeds up one-time build
1536 --enable-shared[=PKGS] build shared libraries [default=yes] 1570 --enable-shared[=PKGS] build shared libraries [default=yes]
1537 --enable-static[=PKGS] build static libraries [default=yes] 1571 --enable-static[=PKGS] build static libraries [default=yes]
1538 --enable-fast-install[=PKGS] 1572 --enable-fast-install[=PKGS]
1539 optimize for fast installation [default=yes] 1573 optimize for fast installation [default=yes]
1540 --disable-libtool-lock avoid locking (might break parallel builds) 1574 --disable-libtool-lock avoid locking (might break parallel builds)
1541 --disable-largefile omit support for large files 1575 --enable-rebuild-docs[=yes/no] rebuild some generated docs [default=no]
1542 --disable-threadsafe Disable mutexing 1576 --enable-ipv6[=yes/no] enables compilation of IPv6 code [default=yes]
1543 --enable-releasemode Support libtool link to release mode
1544 --enable-tempstore Use an in-ram database for temporary tables
1545 (never,no,yes,always)
1546 --disable-tcl do not build TCL extension
1547 --enable-editline enable BSD editline support
1548 --disable-readline disable readline support
1549 --enable-debug enable debugging & verbose explain
1550 --disable-amalgamation Disable the amalgamation and instead build all files
1551 separately
1552 --disable-load-extension
1553 Disable loading of external extensions
1554 --enable-fts3 Enable the FTS3 extension
1555 --enable-fts4 Enable the FTS4 extension
1556 --enable-fts5 Enable the FTS5 extension
1557 --enable-json1 Enable the JSON1 extension
1558 --enable-rtree Enable the RTREE extension
1559 --enable-gcov Enable coverage testing using gcov
1560 1577
1561 Optional Packages: 1578 Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1564 --with-pic try to use only PIC/non-PIC objects [default=use 1581 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1565 both] 1582 both]
1583 --with-aix-soname=aix|svr4|both
1584 shared library versioning (aka "SONAME") variant to
1585 provide on AIX, [default=aix].
1566 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1586 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1567 --with-tcl=DIR directory containing tcl configuration 1587 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1568 (tclConfig.sh) 1588 compiler's sysroot if not specified).
1569 --with-readline-lib specify readline library 1589 --with-c14n add the Canonicalization support (on)
1570 --with-readline-inc specify readline include paths 1590 --with-catalog add the Catalog support (on)
1591 --with-debug add the debugging module (on)
1592 --with-docbook add Docbook SGML support (on)
1593 --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)
1594 --with-ftp add the FTP support (on)
1595 --with-history add history support to xmllint shell(off)
1596 --with-html add the HTML support (on)
1597 --with-html-dir=path path to base html directory, default
1598 $datadir/doc/html
1599 --with-html-subdir=path directory used under html-dir, default
1600 $PACKAGE-$VERSION/html
1601 --with-http add the HTTP support (on)
1602 --with-iconv[=DIR] add ICONV support (on)
1603 --with-icu add ICU support (off)
1604 --with-iso8859x add ISO8859X support if no iconv (on)
1605 --with-legacy add deprecated APIs for compatibility (on)
1606 --with-mem-debug add the memory debugging module (off)
1607 --with-minimum build a minimally sized library (off)
1608 --with-output add the serialization support (on)
1609 --with-pattern add the xmlPattern selection interface (on)
1610 --with-push add the PUSH parser interfaces (on)
1611 --with-python[=DIR] build Python bindings if found
1612 --with-python-install-dir=DIR
1613 install Python bindings in DIR
1614 --with-reader add the xmlReader parsing interface (on)
1615 --with-readline=DIR use readline in DIR
1616 --with-regexps add Regular Expressions support (on)
1617 --with-run-debug add the runtime debugging module (off)
1618 --with-sax1 add the older SAX1 interface (on)
1619 --with-schemas add Relax-NG and Schemas support (on)
1620 --with-schematron add Schematron support (on)
1621 --with-threads add multithread support(on)
1622 --with-thread-alloc add per-thread memory(off)
1623 --with-tree add the DOM like tree manipulation APIs (on)
1624 --with-valid add the DTD validation support (on)
1625 --with-writer add the xmlWriter saving interface (on)
1626 --with-xinclude add the XInclude support (on)
1627 --with-xpath add the XPATH support (on)
1628 --with-xptr add the XPointer support (on)
1629 --with-modules add the dynamic modules support (on)
1630 --with-zlib[=DIR] use libz in DIR
1631 --with-lzma[=DIR] use liblzma in DIR
1632 --with-coverage build for code coverage with GCC (off)
1571 1633
1572 Some influential environment variables: 1634 Some influential environment variables:
1573 CC C compiler command 1635 CC C compiler command
1574 CFLAGS C compiler flags 1636 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir> 1638 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library> 1639 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1640 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir> 1641 you have headers in a nonstandard directory <include dir>
1580 CPP C preprocessor 1642 CPP C preprocessor
1581 TCLLIBDIR Where to install tcl plugin 1643 PKG_CONFIG path to pkg-config utility
1644 PKG_CONFIG_PATH
1645 directories to add to pkg-config's search path
1646 PKG_CONFIG_LIBDIR
1647 path overriding pkg-config's built-in search path
1648 LT_SYS_LIBRARY_PATH
1649 User-defined run-time library search path.
1650 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1651 LZMA_LIBS linker flags for LZMA, overriding pkg-config
1582 1652
1583 Use these variables to override the choices made by `configure' or to help 1653 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations. 1654 it to find libraries and programs with nonstandard names/locations.
1585 1655
1586 Report bugs to the package provider. 1656 Report bugs to the package provider.
1587 _ACEOF 1657 _ACEOF
1588 ac_status=$? 1658 ac_status=$?
1589 fi 1659 fi
1590 1660
1591 if test "$ac_init_help" = "recursive"; then 1661 if test "$ac_init_help" = "recursive"; then
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 else 1709 else
1640 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1710 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641 fi || ac_status=$? 1711 fi || ac_status=$?
1642 cd "$ac_pwd" || { ac_status=$?; break; } 1712 cd "$ac_pwd" || { ac_status=$?; break; }
1643 done 1713 done
1644 fi 1714 fi
1645 1715
1646 test -n "$ac_init_help" && exit $ac_status 1716 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then 1717 if $ac_init_version; then
1648 cat <<\_ACEOF 1718 cat <<\_ACEOF
1649 sqlite configure 3.10.2 1719 configure
1650 generated by GNU Autoconf 2.69 1720 generated by GNU Autoconf 2.69
1651 1721
1652 Copyright (C) 2012 Free Software Foundation, Inc. 1722 Copyright (C) 2012 Free Software Foundation, Inc.
1653 This configure script is free software; the Free Software Foundation 1723 This configure script is free software; the Free Software Foundation
1654 gives unlimited permission to copy, distribute and modify it. 1724 gives unlimited permission to copy, distribute and modify it.
1655 _ACEOF 1725 _ACEOF
1656 exit 1726 exit
1657 fi 1727 fi
1658 1728
1659 ## ------------------------ ## 1729 ## ------------------------ ##
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 $as_echo "$as_me: failed program was:" >&5 1761 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5 1762 sed 's/^/| /' conftest.$ac_ext >&5
1693 1763
1694 ac_retval=1 1764 ac_retval=1
1695 fi 1765 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval 1767 as_fn_set_status $ac_retval
1698 1768
1699 } # ac_fn_c_try_compile 1769 } # ac_fn_c_try_compile
1700 1770
1771 # ac_fn_c_try_cpp LINENO
1772 # ----------------------
1773 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_cpp ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_cpp conftest.$ac_ext"
1778 case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } > conftest.i && {
1793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801 ac_retval=1
1802 fi
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1805
1806 } # ac_fn_c_try_cpp
1807
1701 # ac_fn_c_try_link LINENO 1808 # ac_fn_c_try_link LINENO
1702 # ----------------------- 1809 # -----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. 1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_link () 1811 ac_fn_c_try_link ()
1705 { 1812 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 rm -f conftest.$ac_objext conftest$ac_exeext 1814 rm -f conftest.$ac_objext conftest$ac_exeext
1708 if { { ac_try="$ac_link" 1815 if { { ac_try="$ac_link"
1709 case "(($ac_try" in 1816 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1768 fi 1875 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 fi 1877 fi
1771 eval ac_res=\$$3 1878 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; } 1880 $as_echo "$ac_res" >&6; }
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 1882
1776 } # ac_fn_c_check_header_compile 1883 } # ac_fn_c_check_header_compile
1777 1884
1778 # ac_fn_c_try_cpp LINENO
1779 # ----------------------
1780 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1781 ac_fn_c_try_cpp ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { { ac_try="$ac_cpp conftest.$ac_ext"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } > conftest.i && {
1800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 }; then :
1803 ac_retval=0
1804 else
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809 fi
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1812
1813 } # ac_fn_c_try_cpp
1814
1815 # ac_fn_c_try_run LINENO 1885 # ac_fn_c_try_run LINENO
1816 # ---------------------- 1886 # ----------------------
1817 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1887 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1818 # that executables *can* be run. 1888 # that executables *can* be run.
1819 ac_fn_c_try_run () 1889 ac_fn_c_try_run ()
1820 { 1890 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link" 1892 if { { ac_try="$ac_link"
1823 case "(($ac_try" in 1893 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 rm -f core conftest.err conftest.$ac_objext \ 1984 rm -f core conftest.err conftest.$ac_objext \
1915 conftest$ac_exeext conftest.$ac_ext 1985 conftest$ac_exeext conftest.$ac_ext
1916 fi 1986 fi
1917 eval ac_res=\$$3 1987 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; } 1989 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 1991
1922 } # ac_fn_c_check_func 1992 } # ac_fn_c_check_func
1923 1993
1924 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1925 # -------------------------------------------
1926 # Tests whether TYPE exists after having included INCLUDES, setting cache
1927 # variable VAR accordingly.
1928 ac_fn_c_check_type ()
1929 {
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932 $as_echo_n "checking for $2... " >&6; }
1933 if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 eval "$3=no"
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1939 $4
1940 int
1941 main ()
1942 {
1943 if (sizeof ($2))
1944 return 0;
1945 ;
1946 return 0;
1947 }
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $4
1953 int
1954 main ()
1955 {
1956 if (sizeof (($2)))
1957 return 0;
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963
1964 else
1965 eval "$3=yes"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 fi
1971 eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_type
1977
1978 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1994 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1979 # ------------------------------------------------------- 1995 # -------------------------------------------------------
1980 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1996 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1981 # the include files in INCLUDES and setting the cache variable VAR 1997 # the include files in INCLUDES and setting the cache variable VAR
1982 # accordingly. 1998 # accordingly.
1983 ac_fn_c_check_header_mongrel () 1999 ac_fn_c_check_header_mongrel ()
1984 { 2000 {
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if eval \${$3+:} false; then : 2002 if eval \${$3+:} false; then :
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
2054 else 2070 else
2055 eval "$3=\$ac_header_compiler" 2071 eval "$3=\$ac_header_compiler"
2056 fi 2072 fi
2057 eval ac_res=\$$3 2073 eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059 $as_echo "$ac_res" >&6; } 2075 $as_echo "$ac_res" >&6; }
2060 fi 2076 fi
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2062 2078
2063 } # ac_fn_c_check_header_mongrel 2079 } # ac_fn_c_check_header_mongrel
2080
2081 # ac_fn_c_find_uintX_t LINENO BITS VAR
2082 # ------------------------------------
2083 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2084 # accordingly.
2085 ac_fn_c_find_uintX_t ()
2086 {
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2089 $as_echo_n "checking for uint$2_t... " >&6; }
2090 if eval \${$3+:} false; then :
2091 $as_echo_n "(cached) " >&6
2092 else
2093 eval "$3=no"
2094 # Order is important - never check a type that is potentially smaller
2095 # than half of the expected target width.
2096 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2097 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $ac_includes_default
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2105 test_array [0] = 0;
2106 return test_array [0];
2107
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 case $ac_type in #(
2114 uint$2_t) :
2115 eval "$3=yes" ;; #(
2116 *) :
2117 eval "$3=\$ac_type" ;;
2118 esac
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 if eval test \"x\$"$3"\" = x"no"; then :
2122
2123 else
2124 break
2125 fi
2126 done
2127 fi
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_find_uintX_t
2064 cat >config.log <<_ACEOF 2134 cat >config.log <<_ACEOF
2065 This file contains any messages produced by compilers while 2135 This file contains any messages produced by compilers while
2066 running configure, to aid debugging if configure makes a mistake. 2136 running configure, to aid debugging if configure makes a mistake.
2067 2137
2068 It was created by sqlite $as_me 3.10.2, which was 2138 It was created by $as_me, which was
2069 generated by GNU Autoconf 2.69. Invocation command line was 2139 generated by GNU Autoconf 2.69. Invocation command line was
2070 2140
2071 $ $0 $@ 2141 $ $0 $@
2072 2142
2073 _ACEOF 2143 _ACEOF
2074 exec 5>>config.log 2144 exec 5>>config.log
2075 { 2145 {
2076 cat <<_ASUNAME 2146 cat <<_ASUNAME
2077 ## --------- ## 2147 ## --------- ##
2078 ## Platform. ## 2148 ## Platform. ##
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 ## -------------------- ## 2477 ## -------------------- ##
2408 2478
2409 ac_ext=c 2479 ac_ext=c
2410 ac_cpp='$CPP $CPPFLAGS' 2480 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' 2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414 2484
2415 2485
2416 2486
2417 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'` 2487 ac_config_headers="$ac_config_headers config.h"
2418 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2419 as_fn_error $? "configure script is out of date:
2420 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2421 top level VERSION file = $sqlite_version_sanity_check
2422 please regen with autoconf" "$LINENO" 5
2423 fi
2424 2488
2425 #########
2426 # Programs needed
2427 #
2428 case `pwd` in
2429 *\ * | *\ *)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2431 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\` " >&2;} ;;
2432 esac
2433
2434
2435
2436 macro_version='2.2.6'
2437 macro_revision='1.3012'
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451 ltmain="$ac_aux_dir/ltmain.sh"
2452 2489
2453 ac_aux_dir= 2490 ac_aux_dir=
2454 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2491 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2455 if test -f "$ac_dir/install-sh"; then 2492 if test -f "$ac_dir/install-sh"; then
2456 ac_aux_dir=$ac_dir 2493 ac_aux_dir=$ac_dir
2457 ac_install_sh="$ac_aux_dir/install-sh -c" 2494 ac_install_sh="$ac_aux_dir/install-sh -c"
2458 break 2495 break
2459 elif test -f "$ac_dir/install.sh"; then 2496 elif test -f "$ac_dir/install.sh"; then
2460 ac_aux_dir=$ac_dir 2497 ac_aux_dir=$ac_dir
2461 ac_install_sh="$ac_aux_dir/install.sh -c" 2498 ac_install_sh="$ac_aux_dir/install.sh -c"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
2543 host_cpu=$1 2580 host_cpu=$1
2544 host_vendor=$2 2581 host_vendor=$2
2545 shift; shift 2582 shift; shift
2546 # Remember, the first character of IFS is used to create $*, 2583 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells: 2584 # except with old shells:
2548 host_os=$* 2585 host_os=$*
2549 IFS=$ac_save_IFS 2586 IFS=$ac_save_IFS
2550 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2587 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2551 2588
2552 2589
2553 ac_ext=c 2590
2554 ac_cpp='$CPP $CPPFLAGS' 2591 LIBXML_MAJOR_VERSION=2
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2592 LIBXML_MINOR_VERSION=9
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' 2593 LIBXML_MICRO_VERSION=3
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2594 LIBXML_MICRO_VERSION_SUFFIX=
2558 if test -n "$ac_tool_prefix"; then 2595 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION $LIBXML_MICRO_VERSION_SUFFIX
2559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args. 2596 LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML _MICRO_VERSION:$LIBXML_MINOR_VERSION
2560 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2597
2598 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSI ON \* 100 + $LIBXML_MICRO_VERSION`
2599
2600 if test -f CVS/Entries ; then
2601 extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.% % -e s\%/.*$%%`
2602 echo extra=$extra
2603 if test "$extra" != ""
2604 then
2605 LIBXML_VERSION_EXTRA="-CVS$extra"
2606 fi
2607 else if test -d .svn ; then
2608 extra=`svn info | grep Revision | sed 's+Revision: ++'`
2609 echo extra=$extra
2610 if test "$extra" != ""
2611 then
2612 LIBXML_VERSION_EXTRA="-SVN$extra"
2613 fi
2614 else if test -d .git ; then
2615 extra=`git describe 2>/dev/null | sed 's+LIBXML[0-9.]*-++'`
2616 echo extra=$extra
2617 if test "$extra" != ""
2618 then
2619 LIBXML_VERSION_EXTRA="-GIT$extra"
2620 fi
2621 fi
2622 fi
2623 fi
2624
2625
2626
2627
2628
2629
2630
2631
2632 VERSION=${LIBXML_VERSION}
2633
2634 am__api_version='1.15'
2635
2636 # Find a good install program. We prefer a C program (faster),
2637 # so one script is as good as another. But avoid the broken or
2638 # incompatible versions:
2639 # SysV /etc/install, /usr/sbin/install
2640 # SunOS /usr/etc/install
2641 # IRIX /sbin/install
2642 # AIX /bin/install
2643 # AmigaOS /C/install, which installs bootblocks on floppy discs
2644 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2645 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2646 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2647 # OS/2's system install, which has a completely different semantic
2648 # ./install, which can be erroneously created by make from ./install.sh.
2649 # Reject install programs that cannot install multiple files.
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2651 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2652 if test -z "$INSTALL"; then
2653 if ${ac_cv_path_install+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 # Account for people who put trailing slashes in PATH elements.
2662 case $as_dir/ in #((
2663 ./ | .// | /[cC]/* | \
2664 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2665 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2666 /usr/ucb/* ) ;;
2667 *)
2668 # OSF1 and SCO ODT 3.0 have their own names for install.
2669 # Don't use installbsd from OSF since it installs stuff as root
2670 # by default.
2671 for ac_prog in ginstall scoinst install; do
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 » if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2674 » if test $ac_prog = install &&
2675 » grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676 » # AIX install. It has an incompatible calling convention.
2677 » :
2678 » elif test $ac_prog = install &&
2679 » grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680 » # program-specific install script used by HP pwplus--don't use.
2681 » :
2682 » else
2683 » rm -rf conftest.one conftest.two conftest.dir
2684 » echo one > conftest.one
2685 » echo two > conftest.two
2686 » mkdir conftest.dir
2687 » if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd `/conftest.dir" &&
2688 » test -s conftest.one && test -s conftest.two &&
2689 » test -s conftest.dir/conftest.one &&
2690 » test -s conftest.dir/conftest.two
2691 » then
2692 » ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2693 » break 3
2694 » fi
2695 » fi
2696 » fi
2697 done
2698 done
2699 ;;
2700 esac
2701
2702 done
2703 IFS=$as_save_IFS
2704
2705 rm -rf conftest.one conftest.two conftest.dir
2706
2707 fi
2708 if test "${ac_cv_path_install+set}" = set; then
2709 INSTALL=$ac_cv_path_install
2710 else
2711 # As a last resort, use the slow shell script. Don't cache a
2712 # value for INSTALL within a source directory, because that will
2713 # break other packages using the cache if that directory is
2714 # removed, or if the value is a relative name.
2715 INSTALL=$ac_install_sh
2716 fi
2717 fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2719 $as_echo "$INSTALL" >&6; }
2720
2721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2722 # It thinks the first close brace ends the variable substitution.
2723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2724
2725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2726
2727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2728
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is s ane" >&5
2730 $as_echo_n "checking whether build environment is sane... " >&6; }
2731 # Reject unsafe characters in $srcdir or the absolute working directory
2732 # name. Accept space and tab only in the latter.
2733 am_lf='
2734 '
2735 case `pwd` in
2736 *[\\\"\#\$\&\'\`$am_lf]*)
2737 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2738 esac
2739 case $srcdir in
2740 *[\\\"\#\$\&\'\`$am_lf\ \» ]*)
2741 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2742 esac
2743
2744 # Do 'set' in a subshell so we don't clobber the current shell's
2745 # arguments. Must try -L first in case configure is actually a
2746 # symlink; some systems play weird games with the mod time of symlinks
2747 # (eg FreeBSD returns the mod time of the symlink's containing
2748 # directory).
2749 if (
2750 am_has_slept=no
2751 for am_try in 1 2; do
2752 echo "timestamp, slept: $am_has_slept" > conftest.file
2753 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2754 if test "$*" = "X"; then
2755 » # -L didn't work.
2756 » set X `ls -t "$srcdir/configure" conftest.file`
2757 fi
2758 if test "$*" != "X $srcdir/configure conftest.file" \
2759 » && test "$*" != "X conftest.file $srcdir/configure"; then
2760
2761 » # If neither matched, then we have a broken ls. This can happen
2762 » # if, for instance, CONFIG_SHELL is bash and it inherits a
2763 » # broken ls alias from the environment. This has actually
2764 » # happened. Such a system could not be considered "sane".
2765 » as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2766 alias in your environment" "$LINENO" 5
2767 fi
2768 if test "$2" = conftest.file || test $am_try -eq 2; then
2769 break
2770 fi
2771 # Just in case.
2772 sleep 1
2773 am_has_slept=yes
2774 done
2775 test "$2" = conftest.file
2776 )
2777 then
2778 # Ok.
2779 :
2780 else
2781 as_fn_error $? "newly created file is older than distributed files!
2782 Check your system clock" "$LINENO" 5
2783 fi
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2785 $as_echo "yes" >&6; }
2786 # If we didn't sleep, we still need to ensure time stamps of config.status and
2787 # generated files are strictly newer.
2788 am_sleep_pid=
2789 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2790 ( sleep 1 ) &
2791 am_sleep_pid=$!
2792 fi
2793
2794 rm -f conftest.file
2795
2796 test "$program_prefix" != NONE &&
2797 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2798 # Use a double $ so make ignores it.
2799 test "$program_suffix" != NONE &&
2800 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2801 # Double any \ or $.
2802 # By default was `s,x,x', remove it if useless.
2803 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2804 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2805
2806 # Expand $ac_aux_dir to an absolute path.
2807 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2808
2809 if test x"${MISSING+set}" != xset; then
2810 case $am_aux_dir in
2811 *\ * | *\» *)
2812 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2813 *)
2814 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2815 esac
2816 fi
2817 # Use eval to expand $SHELL
2818 if eval "$MISSING --is-lightweight"; then
2819 am_missing_run="$MISSING "
2820 else
2821 am_missing_run=
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2823 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2824 fi
2825
2826 if test x"${install_sh+set}" != xset; then
2827 case $am_aux_dir in
2828 *\ * | *\» *)
2829 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2830 *)
2831 install_sh="\${SHELL} $am_aux_dir/install-sh"
2832 esac
2833 fi
2834
2835 # Installed binaries are usually stripped using 'strip' when the user
2836 # run "make install-strip". However 'strip' might not be the right
2837 # tool to use in cross-compilation environments, therefore Automake
2838 # will honor the 'STRIP' environment variable to overrule this program.
2839 if test "$cross_compiling" != no; then
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n ame with args.
2842 set dummy ${ac_tool_prefix}strip; ac_word=$2
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562 $as_echo_n "checking for $ac_word... " >&6; } 2844 $as_echo_n "checking for $ac_word... " >&6; }
2563 if ${ac_cv_prog_CC+:} false; then : 2845 if ${ac_cv_prog_STRIP+:} false; then :
2564 $as_echo_n "(cached) " >&6 2846 $as_echo_n "(cached) " >&6
2565 else 2847 else
2566 if test -n "$CC"; then 2848 if test -n "$STRIP"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test. 2849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2568 else 2850 else
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 for as_dir in $PATH 2852 for as_dir in $PATH
2571 do 2853 do
2572 IFS=$as_save_IFS 2854 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=. 2855 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do 2856 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2576 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2578 break 2 2860 break 2
2579 fi 2861 fi
2580 done 2862 done
2581 done 2863 done
2582 IFS=$as_save_IFS 2864 IFS=$as_save_IFS
2583 2865
2584 fi 2866 fi
2585 fi 2867 fi
2586 CC=$ac_cv_prog_CC 2868 STRIP=$ac_cv_prog_STRIP
2587 if test -n "$CC"; then 2869 if test -n "$STRIP"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2589 $as_echo "$CC" >&6; } 2871 $as_echo "$STRIP" >&6; }
2590 else 2872 else
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; } 2874 $as_echo "no" >&6; }
2593 fi 2875 fi
2594 2876
2595 2877
2596 fi 2878 fi
2597 if test -z "$ac_cv_prog_CC"; then 2879 if test -z "$ac_cv_prog_STRIP"; then
2598 ac_ct_CC=$CC 2880 ac_ct_STRIP=$STRIP
2599 # Extract the first word of "gcc", so it can be a program name with args. 2881 # Extract the first word of "strip", so it can be a program name with args.
2600 set dummy gcc; ac_word=$2 2882 set dummy strip; ac_word=$2
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602 $as_echo_n "checking for $ac_word... " >&6; } 2884 $as_echo_n "checking for $ac_word... " >&6; }
2603 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2885 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2604 $as_echo_n "(cached) " >&6 2886 $as_echo_n "(cached) " >&6
2605 else 2887 else
2606 if test -n "$ac_ct_CC"; then 2888 if test -n "$ac_ct_STRIP"; then
2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2608 else 2890 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH 2892 for as_dir in $PATH
2611 do 2893 do
2612 IFS=$as_save_IFS 2894 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=. 2895 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do 2896 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 ac_cv_prog_ac_ct_CC="gcc" 2898 ac_cv_prog_ac_ct_STRIP="strip"
2617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 2899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2618 break 2 2900 break 2
2619 fi 2901 fi
2620 done 2902 done
2621 done 2903 done
2622 IFS=$as_save_IFS 2904 IFS=$as_save_IFS
2623 2905
2624 fi 2906 fi
2625 fi 2907 fi
2626 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2627 if test -n "$ac_ct_CC"; then 2909 if test -n "$ac_ct_STRIP"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2629 $as_echo "$ac_ct_CC" >&6; } 2911 $as_echo "$ac_ct_STRIP" >&6; }
2630 else 2912 else
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2632 $as_echo "no" >&6; } 2914 $as_echo "no" >&6; }
2633 fi 2915 fi
2634 2916
2635 if test "x$ac_ct_CC" = x; then 2917 if test "x$ac_ct_STRIP" = x; then
2636 CC="" 2918 STRIP=":"
2637 else 2919 else
2638 case $cross_compiling:$ac_tool_warned in 2920 case $cross_compiling:$ac_tool_warned in
2639 yes:) 2921 yes:)
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} 2923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
2642 ac_tool_warned=yes ;; 2924 ac_tool_warned=yes ;;
2643 esac 2925 esac
2644 CC=$ac_ct_CC 2926 STRIP=$ac_ct_STRIP
2645 fi 2927 fi
2646 else 2928 else
2647 CC="$ac_cv_prog_CC" 2929 STRIP="$ac_cv_prog_STRIP"
2648 fi 2930 fi
2649 2931
2650 if test -z "$CC"; then 2932 fi
2651 if test -n "$ac_tool_prefix"; then 2933 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2652 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na me with args. 2934
2653 set dummy ${ac_tool_prefix}cc; ac_word=$2 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >& 5
2936 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2937 if test -z "$MKDIR_P"; then
2938 if ${ac_cv_path_mkdir+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2943 do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_prog in mkdir gmkdir; do
2947 » for ac_exec_ext in '' $ac_executable_extensions; do
2948 » as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2949 » case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2950 » 'mkdir (GNU coreutils) '* | \
2951 » 'mkdir (coreutils) '* | \
2952 » 'mkdir (fileutils) '4.1*)
2953 » ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2954 » break 3;;
2955 » esac
2956 » done
2957 done
2958 done
2959 IFS=$as_save_IFS
2960
2961 fi
2962
2963 test -d ./--version && rmdir ./--version
2964 if test "${ac_cv_path_mkdir+set}" = set; then
2965 MKDIR_P="$ac_cv_path_mkdir -p"
2966 else
2967 # As a last resort, use the slow shell script. Don't cache a
2968 # value for MKDIR_P within a source directory, because that will
2969 # break other packages using the cache if that directory is
2970 # removed, or if the value is a relative name.
2971 MKDIR_P="$ac_install_sh -d"
2972 fi
2973 fi
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2975 $as_echo "$MKDIR_P" >&6; }
2976
2977 for ac_prog in gawk mawk nawk awk
2978 do
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; } 2982 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_CC+:} false; then : 2983 if ${ac_cv_prog_AWK+:} false; then :
2657 $as_echo_n "(cached) " >&6 2984 $as_echo_n "(cached) " >&6
2658 else 2985 else
2659 if test -n "$CC"; then 2986 if test -n "$AWK"; then
2660 ac_cv_prog_CC="$CC" # Let the user override the test. 2987 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2661 else 2988 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH 2990 for as_dir in $PATH
2664 do 2991 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669 ac_cv_prog_CC="${ac_tool_prefix}cc"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2671 break 2
2672 fi
2673 done
2674 done
2675 IFS=$as_save_IFS
2676
2677 fi
2678 fi
2679 CC=$ac_cv_prog_CC
2680 if test -n "$CC"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2682 $as_echo "$CC" >&6; }
2683 else
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686 fi
2687
2688
2689 fi
2690 fi
2691 if test -z "$CC"; then
2692 # Extract the first word of "cc", so it can be a program name with args.
2693 set dummy cc; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_CC+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 else
2702 ac_prog_rejected=no
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS 2992 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=. 2993 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do 2994 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2996 ac_cv_prog_AWK="$ac_prog"
2711 ac_prog_rejected=yes
2712 continue
2713 fi
2714 ac_cv_prog_CC="cc"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2716 break 2 2998 break 2
2717 fi 2999 fi
2718 done 3000 done
2719 done 3001 done
2720 IFS=$as_save_IFS 3002 IFS=$as_save_IFS
2721 3003
2722 if test $ac_prog_rejected = yes; then 3004 fi
2723 # We found a bogon in the path, so make sure we never use it. 3005 fi
2724 set dummy $ac_cv_prog_CC 3006 AWK=$ac_cv_prog_AWK
2725 shift 3007 if test -n "$AWK"; then
2726 if test $# != 0; then 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2727 # We chose a different compiler from the bogus one. 3009 $as_echo "$AWK" >&6; }
2728 # However, it has the same basename, so the bogon will be chosen
2729 # first if we set CC to just the basename; use the full file name.
2730 shift
2731 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2732 fi
2733 fi
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2739 $as_echo "$CC" >&6; }
2740 else 3010 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; } 3012 $as_echo "no" >&6; }
2743 fi 3013 fi
2744 3014
2745 3015
2746 fi 3016 test -n "$AWK" && break
2747 if test -z "$CC"; then 3017 done
2748 if test -n "$ac_tool_prefix"; then 3018
2749 for ac_prog in cl.exe 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(M AKE)" >&5
2750 do 3020 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args. 3021 set x ${MAKE-make}
2752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3022 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3023 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 cat >conftest.make <<\_ACEOF
3027 SHELL = /bin/sh
3028 all:
3029 » @echo '@@@%%%=$(MAKE)=@@@%%%'
3030 _ACEOF
3031 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3032 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3033 *@@@%%%=?*=@@@%%%*)
3034 eval ac_cv_prog_make_${ac_make}_set=yes;;
3035 *)
3036 eval ac_cv_prog_make_${ac_make}_set=no;;
3037 esac
3038 rm -f conftest.make
3039 fi
3040 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042 $as_echo "yes" >&6; }
3043 SET_MAKE=
3044 else
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 SET_MAKE="MAKE=${MAKE-make}"
3048 fi
3049
3050 rm -rf .tst 2>/dev/null
3051 mkdir .tst 2>/dev/null
3052 if test -d .tst; then
3053 am__leading_dot=.
3054 else
3055 am__leading_dot=_
3056 fi
3057 rmdir .tst 2>/dev/null
3058
3059 # Check whether --enable-silent-rules was given.
3060 if test "${enable_silent_rules+set}" = set; then :
3061 enableval=$enable_silent_rules;
3062 fi
3063
3064 case $enable_silent_rules in # (((
3065 yes) AM_DEFAULT_VERBOSITY=0;;
3066 no) AM_DEFAULT_VERBOSITY=1;;
3067 *) AM_DEFAULT_VERBOSITY=1;;
3068 esac
3069 am_make=${MAKE-make}
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nest ed variables" >&5
3071 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3072 if ${am_cv_make_support_nested_variables+:} false; then :
3073 $as_echo_n "(cached) " >&6
3074 else
3075 if $as_echo 'TRUE=$(BAR$(V))
3076 BAR0=false
3077 BAR1=true
3078 V=1
3079 am__doit:
3080 » @$(TRUE)
3081 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3082 am_cv_make_support_nested_variables=yes
3083 else
3084 am_cv_make_support_nested_variables=no
3085 fi
3086 fi
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_vari ables" >&5
3088 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3089 if test $am_cv_make_support_nested_variables = yes; then
3090 AM_V='$(V)'
3091 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3092 else
3093 AM_V=$AM_DEFAULT_VERBOSITY
3094 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3095 fi
3096 AM_BACKSLASH='\'
3097
3098 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3099 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3100 # is not polluted with repeated "-I."
3101 am__isrc=' -I$(srcdir)'
3102 # test to see if srcdir already configured
3103 if test -f $srcdir/config.status; then
3104 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3105 fi
3106 fi
3107
3108 # test whether we have cygpath
3109 if test -z "$CYGPATH_W"; then
3110 if (cygpath --version) >/dev/null 2>/dev/null; then
3111 CYGPATH_W='cygpath -w'
3112 else
3113 CYGPATH_W=echo
3114 fi
3115 fi
3116
3117
3118 # Define the identity of the package.
3119
3120 PACKAGE=libxml2
3121 VERSION=$VERSION
3122
3123
3124 cat >>confdefs.h <<_ACEOF
3125 #define PACKAGE "$PACKAGE"
3126 _ACEOF
3127
3128
3129 cat >>confdefs.h <<_ACEOF
3130 #define VERSION "$VERSION"
3131 _ACEOF
3132
3133 # Some tools Automake needs.
3134
3135 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3136
3137
3138 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3139
3140
3141 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3142
3143
3144 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3145
3146
3147 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3148
3149 # For better backward compatibility. To be removed once Automake 1.9.x
3150 # dies out for good. For more background, see:
3151 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3152 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3153 mkdir_p='$(MKDIR_P)'
3154
3155 # We need awk for the "check" target (and possibly the TAP driver). The
3156 # system "awk" is bad on some platforms.
3157 # Always define AMTAR for backward compatibility. Yes, it's still used
3158 # in the wild :-( We should find a proper way to deprecate it ...
3159 AMTAR='$${TAR-tar}'
3160
3161
3162 # We'll loop over all known methods to create a tar archive until one works.
3163 _am_tools='gnutar pax cpio none'
3164
3165 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3166
3167
3168
3169
3170
3171
3172 # POSIX will say in a future version that running "rm -f" with no argument
3173 # is OK; and we want to be able to make that assumption in our Makefile
3174 # recipes. So use an aggressive probe to check that the usage we want is
3175 # actually supported "in the wild" to an acceptable degree.
3176 # See automake bug#10828.
3177 # To make any issue more visible, cause the running configure to be aborted
3178 # by default if the 'rm' program in use doesn't match our expectations; the
3179 # user can still override this though.
3180 if rm -f && rm -fr && rm -rf; then : OK; else
3181 cat >&2 <<'END'
3182 Oops!
3183
3184 Your 'rm' program seems unable to run without file operands specified
3185 on the command line, even when the '-f' option is present. This is contrary
3186 to the behaviour of most rm programs out there, and not conforming with
3187 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3188
3189 Please tell bug-automake@gnu.org about your system, including the value
3190 of your $PATH and any error possibly output before this message. This
3191 can help us improve future automake versions.
3192
3193 END
3194 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3195 echo 'Configuration will proceed anyway, since you have set the' >&2
3196 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3197 echo >&2
3198 else
3199 cat >&2 <<'END'
3200 Aborting the configuration process, to ensure you take notice of the issue.
3201
3202 You can download and install GNU coreutils to get an 'rm' implementation
3203 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3204
3205 If you want to complete the configuration process using your problematic
3206 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3207 to "yes", and re-run configure.
3208
3209 END
3210 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3211 fi
3212 fi
3213
3214
3215 # Support silent build rules, requires at least automake-1.11. Disable
3216 # by either passing --disable-silent-rules to configure or passing V=1
3217 # to make
3218 # Check whether --enable-silent-rules was given.
3219 if test "${enable_silent_rules+set}" = set; then :
3220 enableval=$enable_silent_rules;
3221 fi
3222
3223 case $enable_silent_rules in # (((
3224 yes) AM_DEFAULT_VERBOSITY=0;;
3225 no) AM_DEFAULT_VERBOSITY=1;;
3226 *) AM_DEFAULT_VERBOSITY=0;;
3227 esac
3228 am_make=${MAKE-make}
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nest ed variables" >&5
3230 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3231 if ${am_cv_make_support_nested_variables+:} false; then :
3232 $as_echo_n "(cached) " >&6
3233 else
3234 if $as_echo 'TRUE=$(BAR$(V))
3235 BAR0=false
3236 BAR1=true
3237 V=1
3238 am__doit:
3239 » @$(TRUE)
3240 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3241 am_cv_make_support_nested_variables=yes
3242 else
3243 am_cv_make_support_nested_variables=no
3244 fi
3245 fi
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_vari ables" >&5
3247 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3248 if test $am_cv_make_support_nested_variables = yes; then
3249 AM_V='$(V)'
3250 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3251 else
3252 AM_V=$AM_DEFAULT_VERBOSITY
3253 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3254 fi
3255 AM_BACKSLASH='\'
3256
3257
3258 ac_ext=c
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263 if test -n "$ac_tool_prefix"; then
3264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args.
3265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; } 3267 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_CC+:} false; then : 3268 if ${ac_cv_prog_CC+:} false; then :
2756 $as_echo_n "(cached) " >&6 3269 $as_echo_n "(cached) " >&6
2757 else 3270 else
2758 if test -n "$CC"; then 3271 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test. 3272 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 else 3273 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH 3275 for as_dir in $PATH
2763 do 3276 do
2764 IFS=$as_save_IFS 3277 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=. 3278 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do 3279 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3281 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2770 break 2 3283 break 2
2771 fi 3284 fi
2772 done 3285 done
2773 done 3286 done
2774 IFS=$as_save_IFS 3287 IFS=$as_save_IFS
2775 3288
2776 fi 3289 fi
2777 fi 3290 fi
2778 CC=$ac_cv_prog_CC 3291 CC=$ac_cv_prog_CC
2779 if test -n "$CC"; then 3292 if test -n "$CC"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781 $as_echo "$CC" >&6; } 3294 $as_echo "$CC" >&6; }
2782 else 3295 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; } 3297 $as_echo "no" >&6; }
2785 fi 3298 fi
2786 3299
2787 3300
2788 test -n "$CC" && break
2789 done
2790 fi 3301 fi
2791 if test -z "$CC"; then 3302 if test -z "$ac_cv_prog_CC"; then
2792 ac_ct_CC=$CC 3303 ac_ct_CC=$CC
2793 for ac_prog in cl.exe 3304 # Extract the first word of "gcc", so it can be a program name with args.
2794 do 3305 set dummy gcc; ac_word=$2
2795 # Extract the first word of "$ac_prog", so it can be a program name with args.
2796 set dummy $ac_prog; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; } 3307 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3308 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2800 $as_echo_n "(cached) " >&6 3309 $as_echo_n "(cached) " >&6
2801 else 3310 else
2802 if test -n "$ac_ct_CC"; then 3311 if test -n "$ac_ct_CC"; then
2803 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804 else 3313 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH 3315 for as_dir in $PATH
2807 do 3316 do
2808 IFS=$as_save_IFS 3317 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=. 3318 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do 3319 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_ac_ct_CC="$ac_prog" 3321 ac_cv_prog_ac_ct_CC="gcc"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
2814 break 2 3323 break 2
2815 fi 3324 fi
2816 done 3325 done
2817 done 3326 done
2818 IFS=$as_save_IFS 3327 IFS=$as_save_IFS
2819 3328
2820 fi 3329 fi
2821 fi 3330 fi
2822 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2823 if test -n "$ac_ct_CC"; then 3332 if test -n "$ac_ct_CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2825 $as_echo "$ac_ct_CC" >&6; } 3334 $as_echo "$ac_ct_CC" >&6; }
2826 else 3335 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; } 3337 $as_echo "no" >&6; }
2829 fi 3338 fi
2830 3339
2831
2832 test -n "$ac_ct_CC" && break
2833 done
2834
2835 if test "x$ac_ct_CC" = x; then 3340 if test "x$ac_ct_CC" = x; then
2836 CC="" 3341 CC=""
2837 else 3342 else
2838 case $cross_compiling:$ac_tool_warned in 3343 case $cross_compiling:$ac_tool_warned in
2839 yes:) 3344 yes:)
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} 3346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
2842 ac_tool_warned=yes ;; 3347 ac_tool_warned=yes ;;
2843 esac 3348 esac
2844 CC=$ac_ct_CC 3349 CC=$ac_ct_CC
2845 fi 3350 fi
3351 else
3352 CC="$ac_cv_prog_CC"
3353 fi
3354
3355 if test -z "$CC"; then
3356 if test -n "$ac_tool_prefix"; then
3357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na me with args.
3358 set dummy ${ac_tool_prefix}cc; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH
3369 do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_exec_ext in '' $ac_executable_extensions; do
3373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3374 ac_cv_prog_CC="${ac_tool_prefix}cc"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3376 break 2
3377 fi
3378 done
3379 done
3380 IFS=$as_save_IFS
3381
3382 fi
3383 fi
3384 CC=$ac_cv_prog_CC
3385 if test -n "$CC"; then
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387 $as_echo "$CC" >&6; }
3388 else
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 $as_echo "no" >&6; }
3391 fi
3392
3393
3394 fi
3395 fi
3396 if test -z "$CC"; then
3397 # Extract the first word of "cc", so it can be a program name with args.
3398 set dummy cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 ac_prog_rejected=no
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416 ac_prog_rejected=yes
3417 continue
3418 fi
3419 ac_cv_prog_CC="cc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3421 break 2
3422 fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 if test $ac_prog_rejected = yes; then
3428 # We found a bogon in the path, so make sure we never use it.
3429 set dummy $ac_cv_prog_CC
3430 shift
3431 if test $# != 0; then
3432 # We chose a different compiler from the bogus one.
3433 # However, it has the same basename, so the bogon will be chosen
3434 # first if we set CC to just the basename; use the full file name.
3435 shift
3436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3437 fi
3438 fi
3439 fi
3440 fi
3441 CC=$ac_cv_prog_CC
3442 if test -n "$CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3444 $as_echo "$CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$CC"; then
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog in cl.exe
3455 do
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
3457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_prog_CC+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3475 break 2
3476 fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi
3482 fi
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3490 fi
3491
3492
3493 test -n "$CC" && break
3494 done
3495 fi
3496 if test -z "$CC"; then
3497 ac_ct_CC=$CC
3498 for ac_prog in cl.exe
3499 do
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy $ac_prog; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test -n "$ac_ct_CC"; then
3508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_prog_ac_ct_CC="$ac_prog"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3519 break 2
3520 fi
3521 done
3522 done
3523 IFS=$as_save_IFS
3524
3525 fi
3526 fi
3527 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3528 if test -n "$ac_ct_CC"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3530 $as_echo "$ac_ct_CC" >&6; }
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3534 fi
3535
3536
3537 test -n "$ac_ct_CC" && break
3538 done
3539
3540 if test "x$ac_ct_CC" = x; then
3541 CC=""
3542 else
3543 case $cross_compiling:$ac_tool_warned in
3544 yes:)
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
3547 ac_tool_warned=yes ;;
3548 esac
3549 CC=$ac_ct_CC
3550 fi
2846 fi 3551 fi
2847 3552
2848 fi 3553 fi
2849 3554
2850 3555
2851 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd' :" >&5 3556 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd' :" >&5
2852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853 as_fn_error $? "no acceptable C compiler found in \$PATH 3558 as_fn_error $? "no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details" "$LINENO" 5; } 3559 See \`config.log' for more details" "$LINENO" 5; }
2855 3560
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
3332 if test "x$ac_cv_prog_cc_c89" != xno; then : 4037 if test "x$ac_cv_prog_cc_c89" != xno; then :
3333 4038
3334 fi 4039 fi
3335 4040
3336 ac_ext=c 4041 ac_ext=c
3337 ac_cpp='$CPP $CPPFLAGS' 4042 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' 4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341 4046
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not trunca te output" >&5 4047 ac_ext=c
3343 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4048 ac_cpp='$CPP $CPPFLAGS'
3344 if ${ac_cv_path_SED+:} false; then : 4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 $as_echo_n "(cached) " >&6 4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
3346 else 4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbb/ 4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3348 for ac_i in 1 2 3 4 5 6 7; do 4053 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3349 ac_script="$ac_script$as_nl$ac_script" 4054 if ${am_cv_prog_cc_c_o+:} false; then :
3350 done 4055 $as_echo_n "(cached) " >&6
3351 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4056 else
3352 { ac_script=; unset ac_script;} 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 if test -z "$SED"; then 4058 /* end confdefs.h. */
3354 ac_path_SED_found=false 4059
3355 # Loop through the user's path and test for each of PROGNAME-LIST 4060 int
4061 main ()
4062 {
4063
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 # Make sure it works both with $CC and with simple cc.
4069 # Following AC_PROG_CC_C_O, we do the test twice because some
4070 # compilers refuse to overwrite an existing .o file with -o,
4071 # though they will create one.
4072 am_cv_prog_cc_c_o=yes
4073 for am_i in 1 2; do
4074 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4075 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } \
4079 && test -f conftest2.$ac_objext; then
4080 : OK
4081 else
4082 am_cv_prog_cc_c_o=no
4083 break
4084 fi
4085 done
4086 rm -f core conftest*
4087 unset am_i
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4090 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4091 if test "$am_cv_prog_cc_c_o" != yes; then
4092 # Losing compiler, so override with the script.
4093 # FIXME: It is wrong to rewrite CC.
4094 # But if we don't then we get into trouble of one sort or another.
4095 # A longer-term fix would be to have automake use am__CC in this case,
4096 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4097 CC="$am_aux_dir/compile $CC"
4098 fi
4099 ac_ext=c
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105 DEPDIR="${am__leading_dot}deps"
4106
4107 ac_config_commands="$ac_config_commands depfiles"
4108
4109
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4112 am__doit:
4113 @echo this is the am__doit target
4114 .PHONY: am__doit
4115 END
4116 # If we don't find an include directive, just comment out the code.
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $ am_make" >&5
4118 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4119 am__include="#"
4120 am__quote=
4121 _am_result=none
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # Ignore all kinds of additional output from 'make'.
4125 case `$am_make -s -f confmf 2> /dev/null` in #(
4126 *the\ am__doit\ target*)
4127 am__include=include
4128 am__quote=
4129 _am_result=GNU
4130 ;;
4131 esac
4132 # Now try BSD make style include.
4133 if test "$am__include" = "#"; then
4134 echo '.include "confinc"' > confmf
4135 case `$am_make -s -f confmf 2> /dev/null` in #(
4136 *the\ am__doit\ target*)
4137 am__include=.include
4138 am__quote="\""
4139 _am_result=BSD
4140 ;;
4141 esac
4142 fi
4143
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4146 $as_echo "$_am_result" >&6; }
4147 rm -f confinc confmf
4148
4149 # Check whether --enable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then :
4151 enableval=$enable_dependency_tracking;
4152 fi
4153
4154 if test "x$enable_dependency_tracking" != xno; then
4155 am_depcomp="$ac_aux_dir/depcomp"
4156 AMDEPBACKSLASH='\'
4157 am__nodep='_no'
4158 fi
4159 if test "x$enable_dependency_tracking" != xno; then
4160 AMDEP_TRUE=
4161 AMDEP_FALSE='#'
4162 else
4163 AMDEP_TRUE='#'
4164 AMDEP_FALSE=
4165 fi
4166
4167
4168
4169 depcc="$CC" am_compiler_list=
4170
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >& 5
4172 $as_echo_n "checking dependency style of $depcc... " >&6; }
4173 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175 else
4176 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4177 # We make a subdir and do the tests there. Otherwise we can end up
4178 # making bogus files that we don't know about and never remove. For
4179 # instance it was reported that on HP-UX the gcc test will end up
4180 # making a dummy file named 'D' -- because '-MD' means "put the output
4181 # in D".
4182 rm -rf conftest.dir
4183 mkdir conftest.dir
4184 # Copy depcomp to subdir because otherwise we won't find it if we're
4185 # using a relative directory.
4186 cp "$am_depcomp" conftest.dir
4187 cd conftest.dir
4188 # We will build objects and dependencies in a subdirectory because
4189 # it helps to detect inapplicable dependency modes. For instance
4190 # both Tru64's cc and ICC support -MD to output dependencies as a
4191 # side effect of compilation, but ICC will put the dependencies in
4192 # the current directory while Tru64 will put them in the object
4193 # directory.
4194 mkdir sub
4195
4196 am_cv_CC_dependencies_compiler_type=none
4197 if test "$am_compiler_list" = ""; then
4198 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4199 fi
4200 am__universal=false
4201 case " $depcc " in #(
4202 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4203 esac
4204
4205 for depmode in $am_compiler_list; do
4206 # Setup a source with many dependencies, because some compilers
4207 # like to wrap large dependency lists on column 80 (with \), and
4208 # we should not choose a depcomp mode which is confused by this.
4209 #
4210 # We need to recreate these files for each test, as the compiler may
4211 # overwrite some of them when testing with obscure command lines.
4212 # This happens at least with the AIX C compiler.
4213 : > sub/conftest.c
4214 for i in 1 2 3 4 5 6; do
4215 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4216 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4217 # Solaris 10 /bin/sh.
4218 echo '/* dummy */' > sub/conftst$i.h
4219 done
4220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4221
4222 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4223 # mode. It turns out that the SunPro C++ compiler does not properly
4224 # handle '-M -o', and we need to detect this. Also, some Intel
4225 # versions had trouble with output in subdirs.
4226 am__obj=sub/conftest.${OBJEXT-o}
4227 am__minus_obj="-o $am__obj"
4228 case $depmode in
4229 gcc)
4230 # This depmode causes a compiler race in universal mode.
4231 test "$am__universal" = false || continue
4232 ;;
4233 nosideeffect)
4234 # After this tag, mechanisms are not by side-effect, so they'll
4235 # only be used when explicitly requested.
4236 if test "x$enable_dependency_tracking" = xyes; then
4237 continue
4238 else
4239 break
4240 fi
4241 ;;
4242 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4243 # This compiler won't grok '-c -o', but also, the minuso test has
4244 # not run yet. These depmodes are late enough in the game, and
4245 # so weak that their functioning should not be impacted.
4246 am__obj=conftest.${OBJEXT-o}
4247 am__minus_obj=
4248 ;;
4249 none) break ;;
4250 esac
4251 if depmode=$depmode \
4252 source=sub/conftest.c object=$am__obj \
4253 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4254 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4255 >/dev/null 2>conftest.err &&
4256 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4257 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4258 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4259 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4260 # icc doesn't choke on unknown options, it will just issue warnings
4261 # or remarks (even with -Werror). So we grep stderr for any message
4262 # that says an option was ignored or not supported.
4263 # When given -MP, icc 7.0 and 7.1 complain thusly:
4264 # icc: Command line warning: ignoring option '-M'; no argument required
4265 # The diagnosis changed in icc 8.0:
4266 # icc: Command line remark: option '-MP' not supported
4267 if (grep 'ignoring option' conftest.err ||
4268 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4269 am_cv_CC_dependencies_compiler_type=$depmode
4270 break
4271 fi
4272 fi
4273 done
4274
4275 cd ..
4276 rm -rf conftest.dir
4277 else
4278 am_cv_CC_dependencies_compiler_type=none
4279 fi
4280
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler _type" >&5
4283 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4284 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4285
4286 if
4287 test "x$enable_dependency_tracking" != xno \
4288 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4289 am__fastdepCC_TRUE=
4290 am__fastdepCC_FALSE='#'
4291 else
4292 am__fastdepCC_TRUE='#'
4293 am__fastdepCC_FALSE=
4294 fi
4295
4296
4297
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4299 $as_echo_n "checking whether ln -s works... " >&6; }
4300 LN_S=$as_ln_s
4301 if test "$LN_S" = "ln -s"; then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4303 $as_echo "yes" >&6; }
4304 else
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4306 $as_echo "no, using $LN_S" >&6; }
4307 fi
4308
4309
4310 ac_ext=c
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4316 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4317 # On Suns, sometimes $CPP names a directory.
4318 if test -n "$CPP" && test -d "$CPP"; then
4319 CPP=
4320 fi
4321 if test -z "$CPP"; then
4322 if ${ac_cv_prog_CPP+:} false; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 # Double quotes because CPP needs to be expanded
4326 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4327 do
4328 ac_preproc_ok=false
4329 for ac_c_preproc_warn_flag in '' yes
4330 do
4331 # Use a header file that comes with gcc, so configuring glibc
4332 # with a fresh cross-compiler works.
4333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4334 # <limits.h> exists even on freestanding compilers.
4335 # On the NeXT, cc -E runs the code through the compiler's parser,
4336 # not just through cpp. "Syntax error" is here to catch this case.
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339 #ifdef __STDC__
4340 # include <limits.h>
4341 #else
4342 # include <assert.h>
4343 #endif
4344 Syntax error
4345 _ACEOF
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347
4348 else
4349 # Broken: fails on valid input.
4350 continue
4351 fi
4352 rm -f conftest.err conftest.i conftest.$ac_ext
4353
4354 # OK, works on sane cases. Now check whether nonexistent headers
4355 # can be detected and how.
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4358 #include <ac_nonexistent.h>
4359 _ACEOF
4360 if ac_fn_c_try_cpp "$LINENO"; then :
4361 # Broken: success on invalid input.
4362 continue
4363 else
4364 # Passes both tests.
4365 ac_preproc_ok=:
4366 break
4367 fi
4368 rm -f conftest.err conftest.i conftest.$ac_ext
4369
4370 done
4371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4372 rm -f conftest.i conftest.err conftest.$ac_ext
4373 if $ac_preproc_ok; then :
4374 break
4375 fi
4376
4377 done
4378 ac_cv_prog_CPP=$CPP
4379
4380 fi
4381 CPP=$ac_cv_prog_CPP
4382 else
4383 ac_cv_prog_CPP=$CPP
4384 fi
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4386 $as_echo "$CPP" >&6; }
4387 ac_preproc_ok=false
4388 for ac_c_preproc_warn_flag in '' yes
4389 do
4390 # Use a header file that comes with gcc, so configuring glibc
4391 # with a fresh cross-compiler works.
4392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4393 # <limits.h> exists even on freestanding compilers.
4394 # On the NeXT, cc -E runs the code through the compiler's parser,
4395 # not just through cpp. "Syntax error" is here to catch this case.
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #ifdef __STDC__
4399 # include <limits.h>
4400 #else
4401 # include <assert.h>
4402 #endif
4403 Syntax error
4404 _ACEOF
4405 if ac_fn_c_try_cpp "$LINENO"; then :
4406
4407 else
4408 # Broken: fails on valid input.
4409 continue
4410 fi
4411 rm -f conftest.err conftest.i conftest.$ac_ext
4412
4413 # OK, works on sane cases. Now check whether nonexistent headers
4414 # can be detected and how.
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <ac_nonexistent.h>
4418 _ACEOF
4419 if ac_fn_c_try_cpp "$LINENO"; then :
4420 # Broken: success on invalid input.
4421 continue
4422 else
4423 # Passes both tests.
4424 ac_preproc_ok=:
4425 break
4426 fi
4427 rm -f conftest.err conftest.i conftest.$ac_ext
4428
4429 done
4430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4431 rm -f conftest.i conftest.err conftest.$ac_ext
4432 if $ac_preproc_ok; then :
4433
4434 else
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4438 See \`config.log' for more details" "$LINENO" 5; }
4439 fi
4440
4441 ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446
4447 # Extract the first word of "mv", so it can be a program name with args.
4448 set dummy mv; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_path_MV+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 case $MV in
4455 [\\/]* | ?:[\\/]*)
4456 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4457 ;;
4458 *)
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH 4460 for as_dir in $PATH
3358 do 4461 do
3359 IFS=$as_save_IFS 4462 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=. 4463 test -z "$as_dir" && as_dir=.
3361 for ac_prog in sed gsed; do
3362 for ac_exec_ext in '' $ac_executable_extensions; do 4464 for ac_exec_ext in '' $ac_executable_extensions; do
3363 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 as_fn_executable_p "$ac_path_SED" || continue 4466 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3365 # Check for GNU ac_path_SED and select it if it is found. 4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3366 # Check for GNU $ac_path_SED 4468 break 2
3367 case `"$ac_path_SED" --version 2>&1` in 4469 fi
3368 *GNU*) 4470 done
3369 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4471 done
3370 *) 4472 IFS=$as_save_IFS
3371 ac_count=0 4473
3372 $as_echo_n 0123456789 >"conftest.in" 4474 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
3373 while : 4475 ;;
3374 do
3375 cat "conftest.in" "conftest.in" >"conftest.tmp"
3376 mv "conftest.tmp" "conftest.in"
3377 cp "conftest.in" "conftest.nl"
3378 $as_echo '' >> "conftest.nl"
3379 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null | | break
3380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3381 as_fn_arith $ac_count + 1 && ac_count=$as_val
3382 if test $ac_count -gt ${ac_path_SED_max-0}; then
3383 # Best one so far, save it but keep looking for a better one
3384 ac_cv_path_SED="$ac_path_SED"
3385 ac_path_SED_max=$ac_count
3386 fi
3387 # 10*(2^10) chars as input seems more than enough
3388 test $ac_count -gt 10 && break
3389 done
3390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3391 esac 4476 esac
3392 4477 fi
3393 $ac_path_SED_found && break 3 4478 MV=$ac_cv_path_MV
3394 done 4479 if test -n "$MV"; then
3395 done 4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
3396 done 4481 $as_echo "$MV" >&6; }
3397 IFS=$as_save_IFS 4482 else
3398 if test -z "$ac_cv_path_SED"; then 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4484 $as_echo "no" >&6; }
3400 fi 4485 fi
3401 else 4486
3402 ac_cv_path_SED=$SED 4487
3403 fi 4488 # Extract the first word of "tar", so it can be a program name with args.
3404 4489 set dummy tar; ac_word=$2
3405 fi 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4491 $as_echo_n "checking for $ac_word... " >&6; }
3407 $as_echo "$ac_cv_path_SED" >&6; } 4492 if ${ac_cv_path_TAR+:} false; then :
3408 SED="$ac_cv_path_SED" 4493 $as_echo_n "(cached) " >&6
3409 rm -f conftest.sed 4494 else
3410 4495 case $TAR in
3411 test -z "$SED" && SED=sed 4496 [\\/]* | ?:[\\/]*)
3412 Xsed="$SED -e 1s/^X//" 4497 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3413 4498 ;;
3414 4499 *)
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lin es and -e" >&5
3425 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3426 if ${ac_cv_path_GREP+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 if test -z "$GREP"; then
3430 ac_path_GREP_found=false
3431 # Loop through the user's path and test for each of PROGNAME-LIST
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4501 for as_dir in $PATH
3434 do 4502 do
3435 IFS=$as_save_IFS 4503 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=. 4504 test -z "$as_dir" && as_dir=.
3437 for ac_prog in grep ggrep; do
3438 for ac_exec_ext in '' $ac_executable_extensions; do 4505 for ac_exec_ext in '' $ac_executable_extensions; do
3439 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440 as_fn_executable_p "$ac_path_GREP" || continue 4507 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3441 # Check for GNU ac_path_GREP and select it if it is found. 4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3442 # Check for GNU $ac_path_GREP 4509 break 2
3443 case `"$ac_path_GREP" --version 2>&1` in 4510 fi
3444 *GNU*) 4511 done
3445 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4512 done
3446 *) 4513 IFS=$as_save_IFS
3447 ac_count=0 4514
3448 $as_echo_n 0123456789 >"conftest.in" 4515 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
3449 while : 4516 ;;
3450 do
3451 cat "conftest.in" "conftest.in" >"conftest.tmp"
3452 mv "conftest.tmp" "conftest.in"
3453 cp "conftest.in" "conftest.nl"
3454 $as_echo 'GREP' >> "conftest.nl"
3455 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest. out" 2>/dev/null || break
3456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3457 as_fn_arith $ac_count + 1 && ac_count=$as_val
3458 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3459 # Best one so far, save it but keep looking for a better one
3460 ac_cv_path_GREP="$ac_path_GREP"
3461 ac_path_GREP_max=$ac_count
3462 fi
3463 # 10*(2^10) chars as input seems more than enough
3464 test $ac_count -gt 10 && break
3465 done
3466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3467 esac 4517 esac
3468 4518 fi
3469 $ac_path_GREP_found && break 3 4519 TAR=$ac_cv_path_TAR
3470 done 4520 if test -n "$TAR"; then
3471 done 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3472 done 4522 $as_echo "$TAR" >&6; }
3473 IFS=$as_save_IFS 4523 else
3474 if test -z "$ac_cv_path_GREP"; then 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/us r/xpg4/bin" "$LINENO" 5 4525 $as_echo "no" >&6; }
3476 fi 4526 fi
3477 else 4527
3478 ac_cv_path_GREP=$GREP 4528
3479 fi 4529 # Extract the first word of "perl", so it can be a program name with args.
3480 4530 set dummy perl; ac_word=$2
3481 fi 4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4532 $as_echo_n "checking for $ac_word... " >&6; }
3483 $as_echo "$ac_cv_path_GREP" >&6; } 4533 if ${ac_cv_path_PERL+:} false; then :
3484 GREP="$ac_cv_path_GREP" 4534 $as_echo_n "(cached) " >&6
3485 4535 else
3486 4536 case $PERL in
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4537 [\\/]* | ?:[\\/]*)
3488 $as_echo_n "checking for egrep... " >&6; } 4538 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3489 if ${ac_cv_path_EGREP+:} false; then : 4539 ;;
3490 $as_echo_n "(cached) " >&6 4540 *)
3491 else
3492 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3493 then ac_cv_path_EGREP="$GREP -E"
3494 else
3495 if test -z "$EGREP"; then
3496 ac_path_EGREP_found=false
3497 # Loop through the user's path and test for each of PROGNAME-LIST
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4542 for as_dir in $PATH
3500 do 4543 do
3501 IFS=$as_save_IFS 4544 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=. 4545 test -z "$as_dir" && as_dir=.
3503 for ac_prog in egrep; do
3504 for ac_exec_ext in '' $ac_executable_extensions; do 4546 for ac_exec_ext in '' $ac_executable_extensions; do
3505 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 as_fn_executable_p "$ac_path_EGREP" || continue 4548 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3507 # Check for GNU ac_path_EGREP and select it if it is found. 4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3508 # Check for GNU $ac_path_EGREP 4550 break 2
3509 case `"$ac_path_EGREP" --version 2>&1` in 4551 fi
3510 *GNU*) 4552 done
3511 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4553 done
3512 *) 4554 IFS=$as_save_IFS
3513 ac_count=0 4555
3514 $as_echo_n 0123456789 >"conftest.in" 4556 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
3515 while : 4557 ;;
3516 do
3517 cat "conftest.in" "conftest.in" >"conftest.tmp"
3518 mv "conftest.tmp" "conftest.in"
3519 cp "conftest.in" "conftest.nl"
3520 $as_echo 'EGREP' >> "conftest.nl"
3521 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre ak
3522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3523 as_fn_arith $ac_count + 1 && ac_count=$as_val
3524 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3525 # Best one so far, save it but keep looking for a better one
3526 ac_cv_path_EGREP="$ac_path_EGREP"
3527 ac_path_EGREP_max=$ac_count
3528 fi
3529 # 10*(2^10) chars as input seems more than enough
3530 test $ac_count -gt 10 && break
3531 done
3532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3533 esac 4558 esac
3534 4559 fi
3535 $ac_path_EGREP_found && break 3 4560 PERL=$ac_cv_path_PERL
3536 done 4561 if test -n "$PERL"; then
3537 done 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
3538 done 4563 $as_echo "$PERL" >&6; }
3539 IFS=$as_save_IFS 4564 else
3540 if test -z "$ac_cv_path_EGREP"; then 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/u sr/xpg4/bin" "$LINENO" 5 4566 $as_echo "no" >&6; }
3542 fi 4567 fi
3543 else 4568
3544 ac_cv_path_EGREP=$EGREP 4569
3545 fi 4570 # Extract the first word of "wget", so it can be a program name with args.
3546 4571 set dummy wget; ac_word=$2
3547 fi 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 fi 4573 $as_echo_n "checking for $ac_word... " >&6; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4574 if ${ac_cv_path_WGET+:} false; then :
3550 $as_echo "$ac_cv_path_EGREP" >&6; } 4575 $as_echo_n "(cached) " >&6
3551 EGREP="$ac_cv_path_EGREP" 4576 else
3552 4577 case $WGET in
3553 4578 [\\/]* | ?:[\\/]*)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4579 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
3555 $as_echo_n "checking for fgrep... " >&6; } 4580 ;;
3556 if ${ac_cv_path_FGREP+:} false; then : 4581 *)
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3560 then ac_cv_path_FGREP="$GREP -F"
3561 else
3562 if test -z "$FGREP"; then
3563 ac_path_FGREP_found=false
3564 # Loop through the user's path and test for each of PROGNAME-LIST
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4583 for as_dir in $PATH
3567 do 4584 do
3568 IFS=$as_save_IFS 4585 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=. 4586 test -z "$as_dir" && as_dir=.
3570 for ac_prog in fgrep; do
3571 for ac_exec_ext in '' $ac_executable_extensions; do 4587 for ac_exec_ext in '' $ac_executable_extensions; do
3572 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 as_fn_executable_p "$ac_path_FGREP" || continue 4589 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
3574 # Check for GNU ac_path_FGREP and select it if it is found. 4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3575 # Check for GNU $ac_path_FGREP 4591 break 2
3576 case `"$ac_path_FGREP" --version 2>&1` in 4592 fi
3577 *GNU*) 4593 done
3578 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4594 done
3579 *) 4595 IFS=$as_save_IFS
3580 ac_count=0 4596
3581 $as_echo_n 0123456789 >"conftest.in" 4597 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
3582 while : 4598 ;;
3583 do
3584 cat "conftest.in" "conftest.in" >"conftest.tmp"
3585 mv "conftest.tmp" "conftest.in"
3586 cp "conftest.in" "conftest.nl"
3587 $as_echo 'FGREP' >> "conftest.nl"
3588 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3589 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3590 as_fn_arith $ac_count + 1 && ac_count=$as_val
3591 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3592 # Best one so far, save it but keep looking for a better one
3593 ac_cv_path_FGREP="$ac_path_FGREP"
3594 ac_path_FGREP_max=$ac_count
3595 fi
3596 # 10*(2^10) chars as input seems more than enough
3597 test $ac_count -gt 10 && break
3598 done
3599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3600 esac 4599 esac
3601 4600 fi
3602 $ac_path_FGREP_found && break 3 4601 WGET=$ac_cv_path_WGET
3603 done 4602 if test -n "$WGET"; then
3604 done 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4604 $as_echo "$WGET" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4608 fi
4609
4610
4611 # Extract the first word of "xmllint", so it can be a program name with args.
4612 set dummy xmllint; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if ${ac_cv_path_XMLLINT+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 case $XMLLINT in
4619 [\\/]* | ?:[\\/]*)
4620 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4621 ;;
4622 *)
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4632 break 2
4633 fi
4634 done
3605 done 4635 done
3606 IFS=$as_save_IFS 4636 IFS=$as_save_IFS
3607 if test -z "$ac_cv_path_FGREP"; then 4637
3608 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/u sr/xpg4/bin" "$LINENO" 5 4638 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4639 ;;
4640 esac
4641 fi
4642 XMLLINT=$ac_cv_path_XMLLINT
4643 if test -n "$XMLLINT"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4645 $as_echo "$XMLLINT" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4649 fi
4650
4651
4652 # Extract the first word of "xsltproc", so it can be a program name with args.
4653 set dummy xsltproc; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if ${ac_cv_path_XSLTPROC+:} false; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 case $XSLTPROC in
4660 [\\/]* | ?:[\\/]*)
4661 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4662 ;;
4663 *)
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH
4666 do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4673 break 2
3609 fi 4674 fi
3610 else 4675 done
3611 ac_cv_path_FGREP=$FGREP 4676 done
3612 fi 4677 IFS=$as_save_IFS
3613 4678
3614 fi 4679 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
3615 fi 4680 ;;
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4681 esac
3617 $as_echo "$ac_cv_path_FGREP" >&6; } 4682 fi
3618 FGREP="$ac_cv_path_FGREP" 4683 XSLTPROC=$ac_cv_path_XSLTPROC
3619 4684 if test -n "$XSLTPROC"; then
3620 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
3621 test -z "$GREP" && GREP=grep 4686 $as_echo "$XSLTPROC" >&6; }
3622 4687 else
3623 4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 4689 $as_echo "no" >&6; }
3625 4690 fi
3626 4691
3627 4692
3628 4693
3629
3630
3631
3632
3633
3634
3635 4694
3636 4695
3637 4696
3638 4697
3639 4698
3640 4699
3641 # Check whether --with-gnu-ld was given. 4700 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3642 if test "${with_gnu_ld+set}" = set; then : 4701 » if test -n "$ac_tool_prefix"; then
3643 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4702 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a prog ram name with args.
3644 else 4703 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3645 with_gnu_ld=no 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 fi 4705 $as_echo_n "checking for $ac_word... " >&6; }
3647 4706 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3648 ac_prog=ld
3649 if test "$GCC" = yes; then
3650 # Check if gcc -print-prog-name=ld gives a path.
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3652 $as_echo_n "checking for ld used by $CC... " >&6; }
3653 case $host in
3654 *-*-mingw*)
3655 # gcc leaves a trailing carriage return which upsets mingw
3656 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3657 *)
3658 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3659 esac
3660 case $ac_prog in
3661 # Accept absolute paths.
3662 [\\/]* | ?:[\\/]*)
3663 re_direlt='/[^/][^/]*/\.\./'
3664 # Canonicalize the pathname of ld
3665 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3666 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3667 » ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3668 done
3669 test -z "$LD" && LD="$ac_prog"
3670 ;;
3671 "")
3672 # If it fails, then pretend we aren't using GCC.
3673 ac_prog=ld
3674 ;;
3675 *)
3676 # If it is relative, then search for the first ld in PATH.
3677 with_gnu_ld=unknown
3678 ;;
3679 esac
3680 elif test "$with_gnu_ld" = yes; then
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3682 $as_echo_n "checking for GNU ld... " >&6; }
3683 else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3685 $as_echo_n "checking for non-GNU ld... " >&6; }
3686 fi
3687 if ${lt_cv_path_LD+:} false; then :
3688 $as_echo_n "(cached) " >&6 4707 $as_echo_n "(cached) " >&6
3689 else 4708 else
3690 if test -z "$LD"; then 4709 case $PKG_CONFIG in
3691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4710 [\\/]* | ?:[\\/]*)
3692 for ac_dir in $PATH; do 4711 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a pa th.
3693 IFS="$lt_save_ifs"
3694 test -z "$ac_dir" && ac_dir=.
3695 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3696 lt_cv_path_LD="$ac_dir/$ac_prog"
3697 # Check to see if the program is GNU ld. I'd rather use --version,
3698 # but apparently some variants of GNU ld only accept -v.
3699 # Break only if it was the GNU/non-GNU ld that we prefer.
3700 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3701 *GNU* | *'with BFD'*)
3702 » test "$with_gnu_ld" != no && break
3703 » ;;
3704 *)
3705 » test "$with_gnu_ld" != yes && break
3706 » ;;
3707 esac
3708 fi
3709 done
3710 IFS="$lt_save_ifs"
3711 else
3712 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3713 fi
3714 fi
3715
3716 LD="$lt_cv_path_LD"
3717 if test -n "$LD"; then
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3719 $as_echo "$LD" >&6; }
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3726 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3727 if ${lt_cv_prog_gnu_ld+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3731 case `$LD -v 2>&1 </dev/null` in
3732 *GNU* | *'with BFD'*)
3733 lt_cv_prog_gnu_ld=yes
3734 ;; 4712 ;;
3735 *) 4713 *)
3736 lt_cv_prog_gnu_ld=no 4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 ;;
3738 esac
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3741 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3742 with_gnu_ld=$lt_cv_prog_gnu_ld
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3753 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3754 if ${lt_cv_path_NM+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$NM"; then
3758 # Let the user override the test.
3759 lt_cv_path_NM="$NM"
3760 else
3761 lt_nm_to_check="${ac_tool_prefix}nm"
3762 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3763 lt_nm_to_check="$lt_nm_to_check nm"
3764 fi
3765 for lt_tmp_nm in $lt_nm_to_check; do
3766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3767 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3768 IFS="$lt_save_ifs"
3769 test -z "$ac_dir" && ac_dir=.
3770 tmp_nm="$ac_dir/$lt_tmp_nm"
3771 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3772 » # Check to see if the nm accepts a BSD-compat flag.
3773 » # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3774 » # nm: unknown option "B" ignored
3775 » # Tru64's nm complains that /dev/null is an invalid object file
3776 » case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3777 » */dev/null* | *'Invalid file or object type'*)
3778 » lt_cv_path_NM="$tmp_nm -B"
3779 » break
3780 » ;;
3781 » *)
3782 » case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3783 » */dev/null*)
3784 » lt_cv_path_NM="$tmp_nm -p"
3785 » break
3786 » ;;
3787 » *)
3788 » lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3789 » continue # so that we can try to find one that supports BSD flags
3790 » ;;
3791 » esac
3792 » ;;
3793 » esac
3794 fi
3795 done
3796 IFS="$lt_save_ifs"
3797 done
3798 : ${lt_cv_path_NM=no}
3799 fi
3800 fi
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3802 $as_echo "$lt_cv_path_NM" >&6; }
3803 if test "$lt_cv_path_NM" != "no"; then
3804 NM="$lt_cv_path_NM"
3805 else
3806 # Didn't find any BSD compatible name lister, look for dumpbin.
3807 if test -n "$ac_tool_prefix"; then
3808 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3809 do
3810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
3811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_DUMPBIN+:} false; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$DUMPBIN"; then
3818 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH 4715 for as_dir in $PATH
3822 do 4716 do
3823 IFS=$as_save_IFS 4717 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=. 4718 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do 4719 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4721 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3829 break 2 4723 break 2
3830 fi 4724 fi
3831 done 4725 done
3832 done 4726 done
3833 IFS=$as_save_IFS 4727 IFS=$as_save_IFS
3834 4728
4729 ;;
4730 esac
3835 fi 4731 fi
3836 fi 4732 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3837 DUMPBIN=$ac_cv_prog_DUMPBIN 4733 if test -n "$PKG_CONFIG"; then
3838 if test -n "$DUMPBIN"; then 4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4735 $as_echo "$PKG_CONFIG" >&6; }
3840 $as_echo "$DUMPBIN" >&6; }
3841 else 4736 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; } 4738 $as_echo "no" >&6; }
3844 fi 4739 fi
3845 4740
3846 4741
3847 test -n "$DUMPBIN" && break
3848 done
3849 fi 4742 fi
3850 if test -z "$DUMPBIN"; then 4743 if test -z "$ac_cv_path_PKG_CONFIG"; then
3851 ac_ct_DUMPBIN=$DUMPBIN 4744 ac_pt_PKG_CONFIG=$PKG_CONFIG
3852 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4745 # Extract the first word of "pkg-config", so it can be a program name with arg s.
3853 do 4746 set dummy pkg-config; ac_word=$2
3854 # Extract the first word of "$ac_prog", so it can be a program name with args.
3855 set dummy $ac_prog; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; } 4748 $as_echo_n "checking for $ac_word... " >&6; }
3858 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4749 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3859 $as_echo_n "(cached) " >&6 4750 $as_echo_n "(cached) " >&6
3860 else 4751 else
3861 if test -n "$ac_ct_DUMPBIN"; then 4752 case $ac_pt_PKG_CONFIG in
3862 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4753 [\\/]* | ?:[\\/]*)
3863 else 4754 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the te st with a path.
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4755 ;;
4756 *)
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH 4758 for as_dir in $PATH
3866 do 4759 do
3867 IFS=$as_save_IFS 4760 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=. 4761 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do 4762 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4764 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
3873 break 2 4766 break 2
3874 fi 4767 fi
3875 done 4768 done
3876 done 4769 done
3877 IFS=$as_save_IFS 4770 IFS=$as_save_IFS
3878 4771
4772 ;;
4773 esac
3879 fi 4774 fi
3880 fi 4775 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3881 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4776 if test -n "$ac_pt_PKG_CONFIG"; then
3882 if test -n "$ac_ct_DUMPBIN"; then 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4778 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3884 $as_echo "$ac_ct_DUMPBIN" >&6; }
3885 else 4779 else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; } 4781 $as_echo "no" >&6; }
3888 fi 4782 fi
3889 4783
3890 4784 if test "x$ac_pt_PKG_CONFIG" = x; then
3891 test -n "$ac_ct_DUMPBIN" && break 4785 PKG_CONFIG=""
3892 done
3893
3894 if test "x$ac_ct_DUMPBIN" = x; then
3895 DUMPBIN=":"
3896 else 4786 else
3897 case $cross_compiling:$ac_tool_warned in 4787 case $cross_compiling:$ac_tool_warned in
3898 yes:) 4788 yes:)
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} 4790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
3901 ac_tool_warned=yes ;; 4791 ac_tool_warned=yes ;;
3902 esac 4792 esac
3903 DUMPBIN=$ac_ct_DUMPBIN 4793 PKG_CONFIG=$ac_pt_PKG_CONFIG
3904 fi 4794 fi
4795 else
4796 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3905 fi 4797 fi
3906 4798
4799 fi
4800 if test -n "$PKG_CONFIG"; then
4801 _pkg_min_version=0.9.0
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4803 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4804 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4806 $as_echo "yes" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 PKG_CONFIG=""
4811 fi
4812 fi
3907 4813
3908 if test "$DUMPBIN" != ":"; then 4814 case `pwd` in
3909 NM="$DUMPBIN" 4815 *\ * | *\» *)
3910 fi 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3911 fi 4817 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\` " >&2;} ;;
3912 test -z "$NM" && NM=nm 4818 esac
4819
4820
4821
4822 macro_version='2.4.6'
4823 macro_revision='2.4.6'
3913 4824
3914 4825
3915 4826
3916 4827
3917 4828
3918 4829
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interfac e" >&5
3920 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3921 if ${lt_cv_nm_interface+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 lt_cv_nm_interface="BSD nm"
3925 echo "int some_variable = 0;" > conftest.$ac_ext
3926 (eval echo "\"\$as_me:3926: $ac_compile\"" >&5)
3927 (eval "$ac_compile" 2>conftest.err)
3928 cat conftest.err >&5
3929 (eval echo "\"\$as_me:3929: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3930 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3931 cat conftest.err >&5
3932 (eval echo "\"\$as_me:3932: output\"" >&5)
3933 cat conftest.out >&5
3934 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3935 lt_cv_nm_interface="MS dumpbin"
3936 fi
3937 rm -f conftest*
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3940 $as_echo "$lt_cv_nm_interface" >&6; }
3941
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3943 $as_echo_n "checking whether ln -s works... " >&6; }
3944 LN_S=$as_ln_s
3945 if test "$LN_S" = "ln -s"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3948 else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3950 $as_echo "no, using $LN_S" >&6; }
3951 fi
3952
3953 # find the maximum length of command line arguments
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3955 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3956 if ${lt_cv_sys_max_cmd_len+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 i=0
3960 teststring="ABCD"
3961
3962 case $build_os in
3963 msdosdjgpp*)
3964 # On DJGPP, this test can blow up pretty badly due to problems in libc
3965 # (any single argument exceeding 2000 bytes causes a buffer overrun
3966 # during glob expansion). Even if it were fixed, the result of this
3967 # check would be larger than it should be.
3968 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3969 ;;
3970
3971 gnu*)
3972 # Under GNU Hurd, this test is not required because there is
3973 # no limit to the length of command line arguments.
3974 # Libtool will interpret -1 as no limit whatsoever
3975 lt_cv_sys_max_cmd_len=-1;
3976 ;;
3977
3978 cygwin* | mingw* | cegcc*)
3979 # On Win9x/ME, this test blows up -- it succeeds, but takes
3980 # about 5 minutes as the teststring grows exponentially.
3981 # Worse, since 9x/ME are not pre-emptively multitasking,
3982 # you end up with a "frozen" computer, even though with patience
3983 # the test eventually succeeds (with a max line length of 256k).
3984 # Instead, let's just punt: use the minimum linelength reported by
3985 # all of the supported platforms: 8192 (on NT/2K/XP).
3986 lt_cv_sys_max_cmd_len=8192;
3987 ;;
3988
3989 amigaos*)
3990 # On AmigaOS with pdksh, this test takes hours, literally.
3991 # So we just punt and use a minimum line length of 8192.
3992 lt_cv_sys_max_cmd_len=8192;
3993 ;;
3994
3995 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3996 # This has been around since 386BSD, at least. Likely further.
3997 if test -x /sbin/sysctl; then
3998 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3999 elif test -x /usr/sbin/sysctl; then
4000 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4001 else
4002 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4003 fi
4004 # And add a safety zone
4005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4007 ;;
4008
4009 interix*)
4010 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4011 lt_cv_sys_max_cmd_len=196608
4012 ;;
4013
4014 osf*)
4015 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4016 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4017 # nice to cause kernel panics so lets avoid the loop below.
4018 # First set a reasonable default.
4019 lt_cv_sys_max_cmd_len=16384
4020 #
4021 if test -x /sbin/sysconfig; then
4022 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4023 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4024 esac
4025 fi
4026 ;;
4027 sco3.2v5*)
4028 lt_cv_sys_max_cmd_len=102400
4029 ;;
4030 sysv5* | sco5v6* | sysv4.2uw2*)
4031 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4032 if test -n "$kargmax"; then
4033 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4034 else
4035 lt_cv_sys_max_cmd_len=32768
4036 fi
4037 ;;
4038 *)
4039 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4040 if test -n "$lt_cv_sys_max_cmd_len"; then
4041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4043 else
4044 # Make teststring a little bigger before we do anything with it.
4045 # a 1K string should be a reasonable start.
4046 for i in 1 2 3 4 5 6 7 8 ; do
4047 teststring=$teststring$teststring
4048 done
4049 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4050 # If test is not a shell built-in, we'll probably end up computing a
4051 # maximum length that is only half of the actual maximum length, but
4052 # we can't tell.
4053 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/de v/null` \
4054 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4055 test $i != 17 # 1/2 MB should be enough
4056 do
4057 i=`expr $i + 1`
4058 teststring=$teststring$teststring
4059 done
4060 # Only check the string length outside the loop.
4061 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4062 teststring=
4063 # Add a significant safety factor because C++ compilers can tack on
4064 # massive amounts of additional arguments before passing them to the
4065 # linker. It appears as though 1/2 is a usable value.
4066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4067 fi
4068 ;;
4069 esac
4070
4071 fi
4072
4073 if test -n $lt_cv_sys_max_cmd_len ; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4075 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4076 else
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4078 $as_echo "none" >&6; }
4079 fi
4080 max_cmd_len=$lt_cv_sys_max_cmd_len
4081 4830
4082 4831
4083 4832
4084 4833
4085 4834
4086 4835
4087 : ${CP="cp -f"}
4088 : ${MV="mv -f"}
4089 : ${RM="rm -f"}
4090 4836
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4837 ltmain=$ac_aux_dir/ltmain.sh
4092 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4093 # Try some XSI features
4094 xsi_shell=no
4095 ( _lt_dummy="a/b/c"
4096 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4097 = c,a/b,, \
4098 && eval 'test $(( 1 + 1 )) -eq 2 \
4099 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4100 && xsi_shell=yes
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4102 $as_echo "$xsi_shell" >&6; }
4103 4838
4839 # Backslashify metacharacters that are still active within
4840 # double-quoted strings.
4841 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4104 4842
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4843 # Same as above, but do not quote variable references.
4106 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4844 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4107 lt_shell_append=no
4108 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4109 >/dev/null 2>&1 \
4110 && lt_shell_append=yes
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4112 $as_echo "$lt_shell_append" >&6; }
4113 4845
4846 # Sed substitution to delay expansion of an escaped shell variable in a
4847 # double_quote_subst'ed string.
4848 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4114 4849
4115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4850 # Sed substitution to delay expansion of an escaped single quote.
4116 lt_unset=unset 4851 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4852
4853 # Sed substitution to avoid accidental globbing in evaled expressions
4854 no_glob_subst='s/\*/\\\*/g'
4855
4856 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4857 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4858 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4861 $as_echo_n "checking how to print strings... " >&6; }
4862 # Test print first, because it will be a builtin if present.
4863 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4864 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4865 ECHO='print -r --'
4866 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4867 ECHO='printf %s\n'
4117 else 4868 else
4118 lt_unset=false 4869 # Use this function as a fallback that always works.
4870 func_fallback_echo ()
4871 {
4872 eval 'cat <<_LTECHO_EOF
4873 $1
4874 _LTECHO_EOF'
4875 }
4876 ECHO='func_fallback_echo'
4119 fi 4877 fi
4120 4878
4879 # func_echo_all arg...
4880 # Invoke $ECHO with all args, space-separated.
4881 func_echo_all ()
4882 {
4883 $ECHO ""
4884 }
4885
4886 case $ECHO in
4887 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4888 $as_echo "printf" >&6; } ;;
4889 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4890 $as_echo "print -r" >&6; } ;;
4891 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4892 $as_echo "cat" >&6; } ;;
4893 esac
4894
4121 4895
4122 4896
4123 4897
4124 4898
4125 # test EBCDIC or ASCII
4126 case `echo X|tr X '\101'` in
4127 A) # ASCII based system
4128 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4129 lt_SP2NL='tr \040 \012'
4130 lt_NL2SP='tr \015\012 \040\040'
4131 ;;
4132 *) # EBCDIC based system
4133 lt_SP2NL='tr \100 \n'
4134 lt_NL2SP='tr \r\n \100\100'
4135 ;;
4136 esac
4137 4899
4138 4900
4139 4901
4140 4902
4141 4903
4142 4904
4143 4905
4144 4906
4145 4907
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload objec t files" >&5 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not trunca te output" >&5
4147 $as_echo_n "checking for $LD option to reload object files... " >&6; } 4909 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4148 if ${lt_cv_ld_reload_flag+:} false; then : 4910 if ${ac_cv_path_SED+:} false; then :
4149 $as_echo_n "(cached) " >&6 4911 $as_echo_n "(cached) " >&6
4150 else 4912 else
4151 lt_cv_ld_reload_flag='-r' 4913 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbb/
4914 for ac_i in 1 2 3 4 5 6 7; do
4915 ac_script="$ac_script$as_nl$ac_script"
4916 done
4917 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4918 { ac_script=; unset ac_script;}
4919 if test -z "$SED"; then
4920 ac_path_SED_found=false
4921 # Loop through the user's path and test for each of PROGNAME-LIST
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_prog in sed gsed; do
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4930 as_fn_executable_p "$ac_path_SED" || continue
4931 # Check for GNU ac_path_SED and select it if it is found.
4932 # Check for GNU $ac_path_SED
4933 case `"$ac_path_SED" --version 2>&1` in
4934 *GNU*)
4935 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4936 *)
4937 ac_count=0
4938 $as_echo_n 0123456789 >"conftest.in"
4939 while :
4940 do
4941 cat "conftest.in" "conftest.in" >"conftest.tmp"
4942 mv "conftest.tmp" "conftest.in"
4943 cp "conftest.in" "conftest.nl"
4944 $as_echo '' >> "conftest.nl"
4945 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null | | break
4946 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4947 as_fn_arith $ac_count + 1 && ac_count=$as_val
4948 if test $ac_count -gt ${ac_path_SED_max-0}; then
4949 # Best one so far, save it but keep looking for a better one
4950 ac_cv_path_SED="$ac_path_SED"
4951 ac_path_SED_max=$ac_count
4952 fi
4953 # 10*(2^10) chars as input seems more than enough
4954 test $ac_count -gt 10 && break
4955 done
4956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4957 esac
4958
4959 $ac_path_SED_found && break 3
4960 done
4961 done
4962 done
4963 IFS=$as_save_IFS
4964 if test -z "$ac_cv_path_SED"; then
4965 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4966 fi
4967 else
4968 ac_cv_path_SED=$SED
4152 fi 4969 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4970
4154 $as_echo "$lt_cv_ld_reload_flag" >&6; } 4971 fi
4155 reload_flag=$lt_cv_ld_reload_flag 4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4156 case $reload_flag in 4973 $as_echo "$ac_cv_path_SED" >&6; }
4157 "" | " "*) ;; 4974 SED="$ac_cv_path_SED"
4158 *) reload_flag=" $reload_flag" ;; 4975 rm -f conftest.sed
4159 esac 4976
4160 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4977 test -z "$SED" && SED=sed
4161 case $host_os in 4978 Xsed="$SED -e 1s/^X//"
4162 darwin*)
4163 if test "$GCC" = yes; then
4164 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4165 else
4166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4167 fi
4168 ;;
4169 esac
4170 4979
4171 4980
4172 4981
4173 4982
4174 4983
4175 4984
4176 4985
4177 4986
4178 4987
4179 if test -n "$ac_tool_prefix"; then 4988
4180 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4989
4181 set dummy ${ac_tool_prefix}objdump; ac_word=$2 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lin es and -e" >&5
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4991 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4183 $as_echo_n "checking for $ac_word... " >&6; } 4992 if ${ac_cv_path_GREP+:} false; then :
4184 if ${ac_cv_prog_OBJDUMP+:} false; then :
4185 $as_echo_n "(cached) " >&6 4993 $as_echo_n "(cached) " >&6
4186 else 4994 else
4187 if test -n "$OBJDUMP"; then 4995 if test -z "$GREP"; then
4188 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4996 ac_path_GREP_found=false
4189 else 4997 # Loop through the user's path and test for each of PROGNAME-LIST
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH 4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4192 do 5000 do
4193 IFS=$as_save_IFS 5001 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=. 5002 test -z "$as_dir" && as_dir=.
5003 for ac_prog in grep ggrep; do
4195 for ac_exec_ext in '' $ac_executable_extensions; do 5004 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5005 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4197 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5006 as_fn_executable_p "$ac_path_GREP" || continue
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 5007 # Check for GNU ac_path_GREP and select it if it is found.
4199 break 2 5008 # Check for GNU $ac_path_GREP
5009 case `"$ac_path_GREP" --version 2>&1` in
5010 *GNU*)
5011 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5012 *)
5013 ac_count=0
5014 $as_echo_n 0123456789 >"conftest.in"
5015 while :
5016 do
5017 cat "conftest.in" "conftest.in" >"conftest.tmp"
5018 mv "conftest.tmp" "conftest.in"
5019 cp "conftest.in" "conftest.nl"
5020 $as_echo 'GREP' >> "conftest.nl"
5021 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest. out" 2>/dev/null || break
5022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023 as_fn_arith $ac_count + 1 && ac_count=$as_val
5024 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5025 # Best one so far, save it but keep looking for a better one
5026 ac_cv_path_GREP="$ac_path_GREP"
5027 ac_path_GREP_max=$ac_count
5028 fi
5029 # 10*(2^10) chars as input seems more than enough
5030 test $ac_count -gt 10 && break
5031 done
5032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5033 esac
5034
5035 $ac_path_GREP_found && break 3
5036 done
5037 done
5038 done
5039 IFS=$as_save_IFS
5040 if test -z "$ac_cv_path_GREP"; then
5041 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/us r/xpg4/bin" "$LINENO" 5
4200 fi 5042 fi
4201 done 5043 else
4202 done 5044 ac_cv_path_GREP=$GREP
4203 IFS=$as_save_IFS 5045 fi
4204 5046
4205 fi 5047 fi
4206 fi 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4207 OBJDUMP=$ac_cv_prog_OBJDUMP 5049 $as_echo "$ac_cv_path_GREP" >&6; }
4208 if test -n "$OBJDUMP"; then 5050 GREP="$ac_cv_path_GREP"
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5051
4210 $as_echo "$OBJDUMP" >&6; } 5052
4211 else 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5054 $as_echo_n "checking for egrep... " >&6; }
4213 $as_echo "no" >&6; } 5055 if ${ac_cv_path_EGREP+:} false; then :
4214 fi
4215
4216
4217 fi
4218 if test -z "$ac_cv_prog_OBJDUMP"; then
4219 ac_ct_OBJDUMP=$OBJDUMP
4220 # Extract the first word of "objdump", so it can be a program name with args.
4221 set dummy objdump; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4225 $as_echo_n "(cached) " >&6 5056 $as_echo_n "(cached) " >&6
4226 else 5057 else
4227 if test -n "$ac_ct_OBJDUMP"; then 5058 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4228 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5059 then ac_cv_path_EGREP="$GREP -E"
4229 else 5060 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5061 if test -z "$EGREP"; then
4231 for as_dir in $PATH 5062 ac_path_EGREP_found=false
5063 # Loop through the user's path and test for each of PROGNAME-LIST
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4232 do 5066 do
4233 IFS=$as_save_IFS 5067 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=. 5068 test -z "$as_dir" && as_dir=.
5069 for ac_prog in egrep; do
4235 for ac_exec_ext in '' $ac_executable_extensions; do 5070 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5071 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4237 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5072 as_fn_executable_p "$ac_path_EGREP" || continue
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 5073 # Check for GNU ac_path_EGREP and select it if it is found.
4239 break 2 5074 # Check for GNU $ac_path_EGREP
5075 case `"$ac_path_EGREP" --version 2>&1` in
5076 *GNU*)
5077 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5078 *)
5079 ac_count=0
5080 $as_echo_n 0123456789 >"conftest.in"
5081 while :
5082 do
5083 cat "conftest.in" "conftest.in" >"conftest.tmp"
5084 mv "conftest.tmp" "conftest.in"
5085 cp "conftest.in" "conftest.nl"
5086 $as_echo 'EGREP' >> "conftest.nl"
5087 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre ak
5088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5089 as_fn_arith $ac_count + 1 && ac_count=$as_val
5090 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5091 # Best one so far, save it but keep looking for a better one
5092 ac_cv_path_EGREP="$ac_path_EGREP"
5093 ac_path_EGREP_max=$ac_count
5094 fi
5095 # 10*(2^10) chars as input seems more than enough
5096 test $ac_count -gt 10 && break
5097 done
5098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5099 esac
5100
5101 $ac_path_EGREP_found && break 3
5102 done
5103 done
5104 done
5105 IFS=$as_save_IFS
5106 if test -z "$ac_cv_path_EGREP"; then
5107 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/u sr/xpg4/bin" "$LINENO" 5
4240 fi 5108 fi
4241 done 5109 else
5110 ac_cv_path_EGREP=$EGREP
5111 fi
5112
5113 fi
5114 fi
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5116 $as_echo "$ac_cv_path_EGREP" >&6; }
5117 EGREP="$ac_cv_path_EGREP"
5118
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5121 $as_echo_n "checking for fgrep... " >&6; }
5122 if ${ac_cv_path_FGREP+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5126 then ac_cv_path_FGREP="$GREP -F"
5127 else
5128 if test -z "$FGREP"; then
5129 ac_path_FGREP_found=false
5130 # Loop through the user's path and test for each of PROGNAME-LIST
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5133 do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_prog in fgrep; do
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5139 as_fn_executable_p "$ac_path_FGREP" || continue
5140 # Check for GNU ac_path_FGREP and select it if it is found.
5141 # Check for GNU $ac_path_FGREP
5142 case `"$ac_path_FGREP" --version 2>&1` in
5143 *GNU*)
5144 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5145 *)
5146 ac_count=0
5147 $as_echo_n 0123456789 >"conftest.in"
5148 while :
5149 do
5150 cat "conftest.in" "conftest.in" >"conftest.tmp"
5151 mv "conftest.tmp" "conftest.in"
5152 cp "conftest.in" "conftest.nl"
5153 $as_echo 'FGREP' >> "conftest.nl"
5154 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5156 as_fn_arith $ac_count + 1 && ac_count=$as_val
5157 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5158 # Best one so far, save it but keep looking for a better one
5159 ac_cv_path_FGREP="$ac_path_FGREP"
5160 ac_path_FGREP_max=$ac_count
5161 fi
5162 # 10*(2^10) chars as input seems more than enough
5163 test $ac_count -gt 10 && break
5164 done
5165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5166 esac
5167
5168 $ac_path_FGREP_found && break 3
5169 done
5170 done
4242 done 5171 done
4243 IFS=$as_save_IFS 5172 IFS=$as_save_IFS
4244 5173 if test -z "$ac_cv_path_FGREP"; then
4245 fi 5174 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/u sr/xpg4/bin" "$LINENO" 5
4246 fi
4247 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4248 if test -n "$ac_ct_OBJDUMP"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4250 $as_echo "$ac_ct_OBJDUMP" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256 if test "x$ac_ct_OBJDUMP" = x; then
4257 OBJDUMP="false"
4258 else
4259 case $cross_compiling:$ac_tool_warned in
4260 yes:)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
4263 ac_tool_warned=yes ;;
4264 esac
4265 OBJDUMP=$ac_ct_OBJDUMP
4266 fi 5175 fi
4267 else 5176 else
4268 OBJDUMP="$ac_cv_prog_OBJDUMP" 5177 ac_cv_path_FGREP=$FGREP
4269 fi 5178 fi
4270 5179
4271 test -z "$OBJDUMP" && OBJDUMP=objdump 5180 fi
4272 5181 fi
4273 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4274 5183 $as_echo "$ac_cv_path_FGREP" >&6; }
4275 5184 FGREP="$ac_cv_path_FGREP"
4276 5185
5186
5187 test -z "$GREP" && GREP=grep
5188
5189
5190
4277 5191
4278 5192
4279 5193
4280 5194
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent lib raries" >&5
4282 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4283 if ${lt_cv_deplibs_check_method+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285 else
4286 lt_cv_file_magic_cmd='$MAGIC_CMD'
4287 lt_cv_file_magic_test_file=
4288 lt_cv_deplibs_check_method='unknown'
4289 # Need to set the preceding variable on all platforms that support
4290 # interlibrary dependencies.
4291 # 'none' -- dependencies not supported.
4292 # `unknown' -- same as none, but documents that we really don't know.
4293 # 'pass_all' -- all dependencies passed with no checks.
4294 # 'test_compile' -- check by making test program.
4295 # 'file_magic [[regex]]' -- check by looking for files in library path
4296 # which responds to the $file_magic_cmd with a given extended regex.
4297 # If you have `file' or equivalent on your system and you're not sure
4298 # whether `pass_all' will *always* work, you probably want this one.
4299
4300 case $host_os in
4301 aix[4-9]*)
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305 beos*)
4306 lt_cv_deplibs_check_method=pass_all
4307 ;;
4308
4309 bsdi[45]*)
4310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared obje ct|dynamic lib)'
4311 lt_cv_file_magic_cmd='/usr/bin/file -L'
4312 lt_cv_file_magic_test_file=/shlib/libc.so
4313 ;;
4314
4315 cygwin*)
4316 # func_win32_libid is a shell function defined in ltmain.sh
4317 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4318 lt_cv_file_magic_cmd='func_win32_libid'
4319 ;;
4320
4321 mingw* | pw32*)
4322 # Base MSYS/MinGW do not provide the 'file' command needed by
4323 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4324 # unless we find 'file', for example because we are cross-compiling.
4325 if ( file / ) >/dev/null 2>&1; then
4326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4327 lt_cv_file_magic_cmd='func_win32_libid'
4328 else
4329 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4330 lt_cv_file_magic_cmd='$OBJDUMP -f'
4331 fi
4332 ;;
4333
4334 cegcc)
4335 # use the weaker test based on 'objdump'. See mingw*.
4336 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect ure: arm)?'
4337 lt_cv_file_magic_cmd='$OBJDUMP -f'
4338 ;;
4339
4340 darwin* | rhapsody*)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343
4344 freebsd* | dragonfly*)
4345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4346 case $host_cpu in
4347 i*86 )
4348 # Not sure whether the presence of OpenBSD here was a mistake.
4349 # Let's accept both of them until this is cleared up.
4350 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]8 6 (compact )?demand paged shared library'
4351 lt_cv_file_magic_cmd=/usr/bin/file
4352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4353 ;;
4354 esac
4355 else
4356 lt_cv_deplibs_check_method=pass_all
4357 fi
4358 ;;
4359
4360 gnu*)
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363
4364 hpux10.20* | hpux11*)
4365 lt_cv_file_magic_cmd=/usr/bin/file
4366 case $host_cpu in
4367 ia64*)
4368 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha red object file - IA64'
4369 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4370 ;;
4371 hppa*64*)
4372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha red object file - PA-RISC [0-9].[0-9]'
4373 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4374 ;;
4375 *)
4376 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4377 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4378 ;;
4379 esac
4380 ;;
4381
4382 interix[3-9]*)
4383 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4385 ;;
4386
4387 irix5* | irix6* | nonstopux*)
4388 case $LD in
4389 *-32|*"-32 ") libmagic=32-bit;;
4390 *-n32|*"-n32 ") libmagic=N32;;
4391 *-64|*"-64 ") libmagic=64-bit;;
4392 *) libmagic=never-match;;
4393 esac
4394 lt_cv_deplibs_check_method=pass_all
4395 ;;
4396
4397 # This must be Linux ELF.
4398 linux* | k*bsd*-gnu)
4399 lt_cv_deplibs_check_method=pass_all
4400 ;;
4401
4402 netbsd*)
4403 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
4405 else
4406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4407 fi
4408 ;;
4409
4410 newos6*)
4411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable| dynamic lib)'
4412 lt_cv_file_magic_cmd=/usr/bin/file
4413 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4414 ;;
4415
4416 *nto* | *qnx*)
4417 lt_cv_deplibs_check_method=pass_all
4418 ;;
4419
4420 openbsd*)
4421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host _cpu" = "openbsd2.8-powerpc"; then
4422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.s o|_pic\.a)$'
4423 else
4424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
4425 fi
4426 ;;
4427
4428 osf3* | osf4* | osf5*)
4429 lt_cv_deplibs_check_method=pass_all
4430 ;;
4431
4432 rdos*)
4433 lt_cv_deplibs_check_method=pass_all
4434 ;;
4435
4436 solaris*)
4437 lt_cv_deplibs_check_method=pass_all
4438 ;;
4439
4440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4441 lt_cv_deplibs_check_method=pass_all
4442 ;;
4443
4444 sysv4 | sysv4.3*)
4445 case $host_vendor in
4446 motorola)
4447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared ob ject|dynamic lib) M[0-9][0-9]* Version [0-9]'
4448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4449 ;;
4450 ncr)
4451 lt_cv_deplibs_check_method=pass_all
4452 ;;
4453 sequent)
4454 lt_cv_file_magic_cmd='/bin/file'
4455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared ob ject|dynamic lib )'
4456 ;;
4457 sni)
4458 lt_cv_file_magic_cmd='/bin/file'
4459 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic li b"
4460 lt_cv_file_magic_test_file=/lib/libc.so
4461 ;;
4462 siemens)
4463 lt_cv_deplibs_check_method=pass_all
4464 ;;
4465 pc)
4466 lt_cv_deplibs_check_method=pass_all
4467 ;;
4468 esac
4469 ;;
4470
4471 tpf*)
4472 lt_cv_deplibs_check_method=pass_all
4473 ;;
4474 esac
4475
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >& 5
4478 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4479 file_magic_cmd=$lt_cv_file_magic_cmd
4480 deplibs_check_method=$lt_cv_deplibs_check_method
4481 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4482
4483
4484
4485 5195
4486 5196
4487 5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207 # Check whether --with-gnu-ld was given.
5208 if test "${with_gnu_ld+set}" = set; then :
5209 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5210 else
5211 with_gnu_ld=no
5212 fi
5213
5214 ac_prog=ld
5215 if test yes = "$GCC"; then
5216 # Check if gcc -print-prog-name=ld gives a path.
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5218 $as_echo_n "checking for ld used by $CC... " >&6; }
5219 case $host in
5220 *-*-mingw*)
5221 # gcc leaves a trailing carriage return, which upsets mingw
5222 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5223 *)
5224 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5225 esac
5226 case $ac_prog in
5227 # Accept absolute paths.
5228 [\\/]* | ?:[\\/]*)
5229 re_direlt='/[^/][^/]*/\.\./'
5230 # Canonicalize the pathname of ld
5231 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5232 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5233 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5234 done
5235 test -z "$LD" && LD=$ac_prog
5236 ;;
5237 "")
5238 # If it fails, then pretend we aren't using GCC.
5239 ac_prog=ld
5240 ;;
5241 *)
5242 # If it is relative, then search for the first ld in PATH.
5243 with_gnu_ld=unknown
5244 ;;
5245 esac
5246 elif test yes = "$with_gnu_ld"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5248 $as_echo_n "checking for GNU ld... " >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5251 $as_echo_n "checking for non-GNU ld... " >&6; }
5252 fi
5253 if ${lt_cv_path_LD+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 if test -z "$LD"; then
5257 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5258 for ac_dir in $PATH; do
5259 IFS=$lt_save_ifs
5260 test -z "$ac_dir" && ac_dir=.
5261 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5262 lt_cv_path_LD=$ac_dir/$ac_prog
5263 # Check to see if the program is GNU ld. I'd rather use --version,
5264 # but apparently some variants of GNU ld only accept -v.
5265 # Break only if it was the GNU/non-GNU ld that we prefer.
5266 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5267 *GNU* | *'with BFD'*)
5268 test no != "$with_gnu_ld" && break
5269 ;;
5270 *)
5271 test yes != "$with_gnu_ld" && break
5272 ;;
5273 esac
5274 fi
5275 done
5276 IFS=$lt_save_ifs
5277 else
5278 lt_cv_path_LD=$LD # Let the user override the test with a path.
5279 fi
5280 fi
5281
5282 LD=$lt_cv_path_LD
5283 if test -n "$LD"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5285 $as_echo "$LD" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5292 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5293 if ${lt_cv_prog_gnu_ld+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5297 case `$LD -v 2>&1 </dev/null` in
5298 *GNU* | *'with BFD'*)
5299 lt_cv_prog_gnu_ld=yes
5300 ;;
5301 *)
5302 lt_cv_prog_gnu_ld=no
5303 ;;
5304 esac
5305 fi
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5307 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5308 with_gnu_ld=$lt_cv_prog_gnu_ld
5309
5310
5311
4488 5312
4489 5313
4490 5314
4491 5315
4492 5316
4493 5317
4494 if test -n "$ac_tool_prefix"; then 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4495 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5319 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4496 set dummy ${ac_tool_prefix}ar; ac_word=$2 5320 if ${lt_cv_path_NM+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$NM"; then
5324 # Let the user override the test.
5325 lt_cv_path_NM=$NM
5326 else
5327 lt_nm_to_check=${ac_tool_prefix}nm
5328 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5329 lt_nm_to_check="$lt_nm_to_check nm"
5330 fi
5331 for lt_tmp_nm in $lt_nm_to_check; do
5332 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5333 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5334 IFS=$lt_save_ifs
5335 test -z "$ac_dir" && ac_dir=.
5336 tmp_nm=$ac_dir/$lt_tmp_nm
5337 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5338 » # Check to see if the nm accepts a BSD-compat flag.
5339 » # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5340 » # nm: unknown option "B" ignored
5341 » # Tru64's nm complains that /dev/null is an invalid object file
5342 » # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5343 » case $build_os in
5344 » mingw*) lt_bad_file=conftest.nm/nofile ;;
5345 » *) lt_bad_file=/dev/null ;;
5346 » esac
5347 » case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5348 » *$lt_bad_file* | *'Invalid file or object type'*)
5349 » lt_cv_path_NM="$tmp_nm -B"
5350 » break 2
5351 » ;;
5352 » *)
5353 » case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5354 » */dev/null*)
5355 » lt_cv_path_NM="$tmp_nm -p"
5356 » break 2
5357 » ;;
5358 » *)
5359 » lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5360 » continue # so that we can try to find one that supports BSD flags
5361 » ;;
5362 » esac
5363 » ;;
5364 » esac
5365 fi
5366 done
5367 IFS=$lt_save_ifs
5368 done
5369 : ${lt_cv_path_NM=no}
5370 fi
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5373 $as_echo "$lt_cv_path_NM" >&6; }
5374 if test no != "$lt_cv_path_NM"; then
5375 NM=$lt_cv_path_NM
5376 else
5377 # Didn't find any BSD compatible name lister, look for dumpbin.
5378 if test -n "$DUMPBIN"; then :
5379 # Let the user override the test.
5380 else
5381 if test -n "$ac_tool_prefix"; then
5382 for ac_prog in dumpbin "link -dump"
5383 do
5384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
5385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; } 5387 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_prog_AR+:} false; then : 5388 if ${ac_cv_prog_DUMPBIN+:} false; then :
4500 $as_echo_n "(cached) " >&6 5389 $as_echo_n "(cached) " >&6
4501 else 5390 else
4502 if test -n "$AR"; then 5391 if test -n "$DUMPBIN"; then
4503 ac_cv_prog_AR="$AR" # Let the user override the test. 5392 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4504 else 5393 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH 5395 for as_dir in $PATH
4507 do 5396 do
4508 IFS=$as_save_IFS 5397 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=. 5398 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do 5399 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_prog_AR="${ac_tool_prefix}ar" 5401 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4514 break 2 5403 break 2
4515 fi 5404 fi
4516 done 5405 done
4517 done 5406 done
4518 IFS=$as_save_IFS 5407 IFS=$as_save_IFS
4519 5408
4520 fi 5409 fi
4521 fi 5410 fi
4522 AR=$ac_cv_prog_AR 5411 DUMPBIN=$ac_cv_prog_DUMPBIN
4523 if test -n "$AR"; then 5412 if test -n "$DUMPBIN"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4525 $as_echo "$AR" >&6; } 5414 $as_echo "$DUMPBIN" >&6; }
4526 else 5415 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; } 5417 $as_echo "no" >&6; }
4529 fi 5418 fi
4530 5419
4531 5420
5421 test -n "$DUMPBIN" && break
5422 done
4532 fi 5423 fi
4533 if test -z "$ac_cv_prog_AR"; then 5424 if test -z "$DUMPBIN"; then
4534 ac_ct_AR=$AR 5425 ac_ct_DUMPBIN=$DUMPBIN
4535 # Extract the first word of "ar", so it can be a program name with args. 5426 for ac_prog in dumpbin "link -dump"
4536 set dummy ar; ac_word=$2 5427 do
5428 # Extract the first word of "$ac_prog", so it can be a program name with args.
5429 set dummy $ac_prog; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; } 5431 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5432 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4540 $as_echo_n "(cached) " >&6 5433 $as_echo_n "(cached) " >&6
4541 else 5434 else
4542 if test -n "$ac_ct_AR"; then 5435 if test -n "$ac_ct_DUMPBIN"; then
4543 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5436 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4544 else 5437 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH 5439 for as_dir in $PATH
4547 do 5440 do
4548 IFS=$as_save_IFS 5441 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=. 5442 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do 5443 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_ac_ct_AR="ar" 5445 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4554 break 2 5447 break 2
4555 fi 5448 fi
4556 done 5449 done
4557 done 5450 done
4558 IFS=$as_save_IFS 5451 IFS=$as_save_IFS
4559 5452
4560 fi 5453 fi
4561 fi 5454 fi
4562 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5455 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4563 if test -n "$ac_ct_AR"; then 5456 if test -n "$ac_ct_DUMPBIN"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4565 $as_echo "$ac_ct_AR" >&6; } 5458 $as_echo "$ac_ct_DUMPBIN" >&6; }
4566 else 5459 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; } 5461 $as_echo "no" >&6; }
4569 fi 5462 fi
4570 5463
4571 if test "x$ac_ct_AR" = x; then 5464
4572 AR="false" 5465 test -n "$ac_ct_DUMPBIN" && break
5466 done
5467
5468 if test "x$ac_ct_DUMPBIN" = x; then
5469 DUMPBIN=":"
4573 else 5470 else
4574 case $cross_compiling:$ac_tool_warned in 5471 case $cross_compiling:$ac_tool_warned in
4575 yes:) 5472 yes:)
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} 5474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
4578 ac_tool_warned=yes ;; 5475 ac_tool_warned=yes ;;
4579 esac 5476 esac
4580 AR=$ac_ct_AR 5477 DUMPBIN=$ac_ct_DUMPBIN
4581 fi 5478 fi
4582 else 5479 fi
4583 AR="$ac_cv_prog_AR" 5480
4584 fi 5481 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4585 5482 *COFF*)
4586 test -z "$AR" && AR=ar 5483 DUMPBIN="$DUMPBIN -symbols -headers"
4587 test -z "$AR_FLAGS" && AR_FLAGS=cru 5484 ;;
4588 5485 *)
4589 5486 DUMPBIN=:
4590 5487 ;;
4591 5488 esac
4592 5489 fi
4593 5490
4594 5491 if test : != "$DUMPBIN"; then
4595 5492 NM=$DUMPBIN
4596 5493 fi
4597 5494 fi
4598 5495 test -z "$NM" && NM=nm
4599 if test -n "$ac_tool_prefix"; then 5496
4600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n ame with args. 5497
4601 set dummy ${ac_tool_prefix}strip; ac_word=$2 5498
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5499
4603 $as_echo_n "checking for $ac_word... " >&6; } 5500
4604 if ${ac_cv_prog_STRIP+:} false; then : 5501
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interfac e" >&5
5503 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5504 if ${lt_cv_nm_interface+:} false; then :
4605 $as_echo_n "(cached) " >&6 5505 $as_echo_n "(cached) " >&6
4606 else 5506 else
4607 if test -n "$STRIP"; then 5507 lt_cv_nm_interface="BSD nm"
4608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5508 echo "int some_variable = 0;" > conftest.$ac_ext
4609 else 5509 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5510 (eval "$ac_compile" 2>conftest.err)
4611 for as_dir in $PATH 5511 cat conftest.err >&5
4612 do 5512 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4613 IFS=$as_save_IFS 5513 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4614 test -z "$as_dir" && as_dir=. 5514 cat conftest.err >&5
4615 for ac_exec_ext in '' $ac_executable_extensions; do 5515 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5516 cat conftest.out >&5
4617 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5517 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 5518 lt_cv_nm_interface="MS dumpbin"
4619 break 2 5519 fi
4620 fi 5520 rm -f conftest*
4621 done 5521 fi
4622 done 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4623 IFS=$as_save_IFS 5523 $as_echo "$lt_cv_nm_interface" >&6; }
4624 5524
4625 fi 5525 # find the maximum length of command line arguments
4626 fi 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4627 STRIP=$ac_cv_prog_STRIP 5527 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4628 if test -n "$STRIP"; then 5528 if ${lt_cv_sys_max_cmd_len+:} false; then :
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4630 $as_echo "$STRIP" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635
4636
4637 fi
4638 if test -z "$ac_cv_prog_STRIP"; then
4639 ac_ct_STRIP=$STRIP
4640 # Extract the first word of "strip", so it can be a program name with args.
4641 set dummy strip; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4645 $as_echo_n "(cached) " >&6 5529 $as_echo_n "(cached) " >&6
4646 else 5530 else
4647 if test -n "$ac_ct_STRIP"; then 5531 i=0
4648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5532 teststring=ABCD
4649 else 5533
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5534 case $build_os in
4651 for as_dir in $PATH 5535 msdosdjgpp*)
4652 do 5536 # On DJGPP, this test can blow up pretty badly due to problems in libc
4653 IFS=$as_save_IFS 5537 # (any single argument exceeding 2000 bytes causes a buffer overrun
4654 test -z "$as_dir" && as_dir=. 5538 # during glob expansion). Even if it were fixed, the result of this
4655 for ac_exec_ext in '' $ac_executable_extensions; do 5539 # check would be larger than it should be.
4656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5540 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4657 ac_cv_prog_ac_ct_STRIP="strip" 5541 ;;
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 5542
4659 break 2 5543 gnu*)
4660 fi 5544 # Under GNU Hurd, this test is not required because there is
4661 done 5545 # no limit to the length of command line arguments.
4662 done 5546 # Libtool will interpret -1 as no limit whatsoever
4663 IFS=$as_save_IFS 5547 lt_cv_sys_max_cmd_len=-1;
4664 5548 ;;
4665 fi 5549
4666 fi 5550 cygwin* | mingw* | cegcc*)
4667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5551 # On Win9x/ME, this test blows up -- it succeeds, but takes
4668 if test -n "$ac_ct_STRIP"; then 5552 # about 5 minutes as the teststring grows exponentially.
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5553 # Worse, since 9x/ME are not pre-emptively multitasking,
4670 $as_echo "$ac_ct_STRIP" >&6; } 5554 # you end up with a "frozen" computer, even though with patience
4671 else 5555 # the test eventually succeeds (with a max line length of 256k).
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5556 # Instead, let's just punt: use the minimum linelength reported by
4673 $as_echo "no" >&6; } 5557 # all of the supported platforms: 8192 (on NT/2K/XP).
4674 fi 5558 lt_cv_sys_max_cmd_len=8192;
4675 5559 ;;
4676 if test "x$ac_ct_STRIP" = x; then 5560
4677 STRIP=":" 5561 mint*)
4678 else 5562 # On MiNT this can take a long time and run out of memory.
4679 case $cross_compiling:$ac_tool_warned in 5563 lt_cv_sys_max_cmd_len=8192;
4680 yes:) 5564 ;;
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5565
4682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} 5566 amigaos*)
4683 ac_tool_warned=yes ;; 5567 # On AmigaOS with pdksh, this test takes hours, literally.
5568 # So we just punt and use a minimum line length of 8192.
5569 lt_cv_sys_max_cmd_len=8192;
5570 ;;
5571
5572 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5573 # This has been around since 386BSD, at least. Likely further.
5574 if test -x /sbin/sysctl; then
5575 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5576 elif test -x /usr/sbin/sysctl; then
5577 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5578 else
5579 lt_cv_sys_max_cmd_len=65536» # usable default for all BSDs
5580 fi
5581 # And add a safety zone
5582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5584 ;;
5585
5586 interix*)
5587 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5588 lt_cv_sys_max_cmd_len=196608
5589 ;;
5590
5591 os2*)
5592 # The test takes a long time on OS/2.
5593 lt_cv_sys_max_cmd_len=8192
5594 ;;
5595
5596 osf*)
5597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5599 # nice to cause kernel panics so lets avoid the loop below.
5600 # First set a reasonable default.
5601 lt_cv_sys_max_cmd_len=16384
5602 #
5603 if test -x /sbin/sysconfig; then
5604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5606 esac
5607 fi
5608 ;;
5609 sco3.2v5*)
5610 lt_cv_sys_max_cmd_len=102400
5611 ;;
5612 sysv5* | sco5v6* | sysv4.2uw2*)
5613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5614 if test -n "$kargmax"; then
5615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[» ]//'`
5616 else
5617 lt_cv_sys_max_cmd_len=32768
5618 fi
5619 ;;
5620 *)
5621 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5622 if test -n "$lt_cv_sys_max_cmd_len" && \
5623 test undefined != "$lt_cv_sys_max_cmd_len"; then
5624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5626 else
5627 # Make teststring a little bigger before we do anything with it.
5628 # a 1K string should be a reasonable start.
5629 for i in 1 2 3 4 5 6 7 8; do
5630 teststring=$teststring$teststring
5631 done
5632 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5633 # If test is not a shell built-in, we'll probably end up computing a
5634 # maximum length that is only half of the actual maximum length, but
5635 # we can't tell.
5636 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5637 » = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5638 » test 17 != "$i" # 1/2 MB should be enough
5639 do
5640 i=`expr $i + 1`
5641 teststring=$teststring$teststring
5642 done
5643 # Only check the string length outside the loop.
5644 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5645 teststring=
5646 # Add a significant safety factor because C++ compilers can tack on
5647 # massive amounts of additional arguments before passing them to the
5648 # linker. It appears as though 1/2 is a usable value.
5649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5650 fi
5651 ;;
5652 esac
5653
5654 fi
5655
5656 if test -n "$lt_cv_sys_max_cmd_len"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5658 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5661 $as_echo "none" >&6; }
5662 fi
5663 max_cmd_len=$lt_cv_sys_max_cmd_len
5664
5665
5666
5667
5668
5669
5670 : ${CP="cp -f"}
5671 : ${MV="mv -f"}
5672 : ${RM="rm -f"}
5673
5674 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5675 lt_unset=unset
5676 else
5677 lt_unset=false
5678 fi
5679
5680
5681
5682
5683
5684 # test EBCDIC or ASCII
5685 case `echo X|tr X '\101'` in
5686 A) # ASCII based system
5687 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5688 lt_SP2NL='tr \040 \012'
5689 lt_NL2SP='tr \015\012 \040\040'
5690 ;;
5691 *) # EBCDIC based system
5692 lt_SP2NL='tr \100 \n'
5693 lt_NL2SP='tr \r\n \100\100'
5694 ;;
4684 esac 5695 esac
4685 STRIP=$ac_ct_STRIP 5696
4686 fi 5697
4687 else 5698
4688 STRIP="$ac_cv_prog_STRIP"
4689 fi
4690
4691 test -z "$STRIP" && STRIP=:
4692
4693
4694
4695
4696
4697
4698 if test -n "$ac_tool_prefix"; then
4699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if ${ac_cv_prog_RANLIB+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$RANLIB"; then
4707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4718 break 2
4719 fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 RANLIB=$ac_cv_prog_RANLIB
4727 if test -n "$RANLIB"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4729 $as_echo "$RANLIB" >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735
4736 fi
4737 if test -z "$ac_cv_prog_RANLIB"; then
4738 ac_ct_RANLIB=$RANLIB
4739 # Extract the first word of "ranlib", so it can be a program name with args.
4740 set dummy ranlib; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 if test -n "$ac_ct_RANLIB"; then
4747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_ac_ct_RANLIB="ranlib"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
4758 break 2
4759 fi
4760 done
4761 done
4762 IFS=$as_save_IFS
4763
4764 fi
4765 fi
4766 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4767 if test -n "$ac_ct_RANLIB"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4769 $as_echo "$ac_ct_RANLIB" >&6; }
4770 else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774
4775 if test "x$ac_ct_RANLIB" = x; then
4776 RANLIB=":"
4777 else
4778 case $cross_compiling:$ac_tool_warned in
4779 yes:)
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
4782 ac_tool_warned=yes ;;
4783 esac
4784 RANLIB=$ac_ct_RANLIB
4785 fi
4786 else
4787 RANLIB="$ac_cv_prog_RANLIB"
4788 fi
4789
4790 test -z "$RANLIB" && RANLIB=:
4791
4792
4793
4794
4795
4796
4797 # Determine commands to create old-style static archives.
4798 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4799 old_postinstall_cmds='chmod 644 $oldlib'
4800 old_postuninstall_cmds=
4801
4802 if test -n "$RANLIB"; then
4803 case $host_os in
4804 openbsd*)
4805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4806 ;;
4807 *)
4808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4809 ;;
4810 esac
4811 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4812 fi
4813
4814
4815
4816
4817
4818
4819
4820
4821 5699
4822 5700
4823 5701
4824 5702
4825 5703
4826 5704
4827 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file nam es to $host format" >&5
4828 5706 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4829 5707 if ${lt_cv_to_host_file_cmd+:} false; then :
4830 5708 $as_echo_n "(cached) " >&6
4831 5709 else
4832 5710 case $host in
4833 5711 *-*-mingw* )
4834 5712 case $build in
4835 5713 *-*-mingw* ) # actually msys
4836 5714 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4837 5715 ;;
4838 5716 *-*-cygwin* )
4839 5717 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4840 5718 ;;
4841 5719 * ) # otherwise, assume *nix
4842 5720 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4843 5721 ;;
4844 5722 esac
4845 5723 ;;
4846 5724 *-*-cygwin* )
4847 # If no C compiler was specified, use CC. 5725 case $build in
4848 LTCC=${LTCC-"$CC"} 5726 *-*-mingw* ) # actually msys
4849 5727 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4850 # If no C compiler flags were specified, use CFLAGS. 5728 ;;
4851 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5729 *-*-cygwin* )
4852 5730 lt_cv_to_host_file_cmd=func_convert_file_noop
4853 # Allow CC to be a program name with arguments. 5731 ;;
4854 compiler=$CC 5732 * ) # otherwise, assume *nix
4855 5733 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4856 5734 ;;
4857 # Check for command to grab the raw symbol name followed by C symbol from nm. 5735 esac
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output fr om $compiler object" >&5 5736 ;;
4859 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5737 * ) # unhandled hosts (and "normal" native builds)
4860 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5738 lt_cv_to_host_file_cmd=func_convert_file_noop
4861 $as_echo_n "(cached) " >&6 5739 ;;
4862 else 5740 esac
4863 5741
4864 # These are sane defaults that work on at least a few old systems. 5742 fi
4865 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 5743
4866 5744 to_host_file_cmd=$lt_cv_to_host_file_cmd
4867 # Character class describing NM global symbol codes. 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4868 symcode='[BCDEGRST]' 5746 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4869 5747
4870 # Regexp to match symbols that can be accessed directly from C. 5748
4871 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5749
4872 5750
4873 # Define system-specific variables. 5751
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file nam es to toolchain format" >&5
5753 $as_echo_n "checking how to convert $build file names to toolchain format... " > &6; }
5754 if ${lt_cv_to_tool_file_cmd+:} false; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 #assume ordinary cross tools, or native build.
5758 lt_cv_to_tool_file_cmd=func_convert_file_noop
5759 case $host in
5760 *-*-mingw* )
5761 case $build in
5762 *-*-mingw* ) # actually msys
5763 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5764 ;;
5765 esac
5766 ;;
5767 esac
5768
5769 fi
5770
5771 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5773 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5774
5775
5776
5777
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload objec t files" >&5
5780 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5781 if ${lt_cv_ld_reload_flag+:} false; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 lt_cv_ld_reload_flag='-r'
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5787 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5788 reload_flag=$lt_cv_ld_reload_flag
5789 case $reload_flag in
5790 "" | " "*) ;;
5791 *) reload_flag=" $reload_flag" ;;
5792 esac
5793 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4874 case $host_os in 5794 case $host_os in
4875 aix*) 5795 cygwin* | mingw* | pw32* | cegcc*)
4876 symcode='[BCDT]' 5796 if test yes != "$GCC"; then
4877 ;; 5797 reload_cmds=false
4878 cygwin* | mingw* | pw32* | cegcc*) 5798 fi
4879 symcode='[ABCDGISTW]' 5799 ;;
4880 ;; 5800 darwin*)
4881 hpux*) 5801 if test yes = "$GCC"; then
4882 if test "$host_cpu" = ia64; then 5802 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4883 symcode='[ABCDEGRST]'
4884 fi
4885 ;;
4886 irix* | nonstopux*)
4887 symcode='[BCDEGRST]'
4888 ;;
4889 osf*)
4890 symcode='[BCDEGQRST]'
4891 ;;
4892 solaris*)
4893 symcode='[BDRT]'
4894 ;;
4895 sco3.2v5*)
4896 symcode='[DT]'
4897 ;;
4898 sysv4.2uw2*)
4899 symcode='[DT]'
4900 ;;
4901 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4902 symcode='[ABDT]'
4903 ;;
4904 sysv4)
4905 symcode='[DFNSTU]'
4906 ;;
4907 esac
4908
4909 # If we're using GNU nm, then use its standard symbol codes.
4910 case `$NM -V 2>&1` in
4911 *GNU* | *'with BFD'*)
4912 symcode='[ABCDGIRSTW]' ;;
4913 esac
4914
4915 # Transform an extracted symbol line into a proper C declaration.
4916 # Some systems (esp. on ia64) link data and code symbols differently,
4917 # so use this general approach.
4918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4919
4920 # Transform an extracted symbol line into symbol name and symbol address
4921 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1 \\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4922 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\ 2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (voi d *) \&\2},/p'"
4923
4924 # Handle CRLF in mingw tool chain
4925 opt_cr=
4926 case $build_os in
4927 mingw*)
4928 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4929 ;;
4930 esac
4931
4932 # Try without a prefix underscore, then with it.
4933 for ac_symprfx in "" "_"; do
4934
4935 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4936 symxfrm="\\1 $ac_symprfx\\2 \\2"
4937
4938 # Write the raw and C identifiers.
4939 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4940 # Fake it for dumpbin and say T for any non-static function
4941 # and D for any global variable.
4942 # Also find C++ and __fastcall symbols from MSVC++,
4943 # which start with @ or ?.
4944 lt_cv_sys_global_symbol_pipe="$AWK '"\
4945 " {last_section=section; section=\$ 3};"\
4946 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4947 " \$ 0!~/External *\|/{next};"\
4948 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4949 " {if(hide[section]) next};"\
4950 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4951 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4952 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4953 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4954 " ' prfx=^$ac_symprfx"
4955 else
4956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[» ]\($symcode$symcode*\)[ » ][» ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4957 fi
4958
4959 # Check to see that the pipe works correctly.
4960 pipe_works=no
4961
4962 rm -f conftest*
4963 cat > conftest.$ac_ext <<_LT_EOF
4964 #ifdef __cplusplus
4965 extern "C" {
4966 #endif
4967 char nm_test_var;
4968 void nm_test_func(void);
4969 void nm_test_func(void){}
4970 #ifdef __cplusplus
4971 }
4972 #endif
4973 int main(){nm_test_var='a';nm_test_func();return(0);}
4974 _LT_EOF
4975
4976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4977 (eval $ac_compile) 2>&5
4978 ac_status=$?
4979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4980 test $ac_status = 0; }; then
4981 # Now try to grab the symbols.
4982 nlist=conftest.nm
4983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objex t \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4984 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4985 ac_status=$?
4986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; } && test -s "$nlist"; then
4988 # Try sorting and uniquifying the output.
4989 if sort "$nlist" | uniq > "$nlist"T; then
4990 » mv -f "$nlist"T "$nlist"
4991 else
4992 » rm -f "$nlist"T
4993 fi
4994
4995 # Make sure that we snagged all the symbols we need.
4996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4997 » if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4998 » cat <<_LT_EOF > conftest.$ac_ext
4999 #ifdef __cplusplus
5000 extern "C" {
5001 #endif
5002
5003 _LT_EOF
5004 » # Now generate the symbol file.
5005 » eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main > > conftest.$ac_ext'
5006
5007 » cat <<_LT_EOF >> conftest.$ac_ext
5008
5009 /* The mapping between symbol names and symbols. */
5010 const struct {
5011 const char *name;
5012 void *address;
5013 }
5014 lt__PROGRAM__LTX_preloaded_symbols[] =
5015 {
5016 { "@PROGRAM@", (void *) 0 },
5017 _LT_EOF
5018 » $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5019 » cat <<\_LT_EOF >> conftest.$ac_ext
5020 {0, (void *) 0}
5021 };
5022
5023 /* This works around a problem in FreeBSD linker */
5024 #ifdef FREEBSD_WORKAROUND
5025 static const void *lt_preloaded_setup() {
5026 return lt__PROGRAM__LTX_preloaded_symbols;
5027 }
5028 #endif
5029
5030 #ifdef __cplusplus
5031 }
5032 #endif
5033 _LT_EOF
5034 » # Now try linking the two files.
5035 » mv conftest.$ac_objext conftstm.$ac_objext
5036 » lt_save_LIBS="$LIBS"
5037 » lt_save_CFLAGS="$CFLAGS"
5038 » LIBS="conftstm.$ac_objext"
5039 » CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5040 » if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } > &5
5041 (eval $ac_link) 2>&5
5042 ac_status=$?
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5045 » pipe_works=yes
5046 » fi
5047 » LIBS="$lt_save_LIBS"
5048 » CFLAGS="$lt_save_CFLAGS"
5049 » else
5050 » echo "cannot find nm_test_func in $nlist" >&5
5051 » fi
5052 else
5053 » echo "cannot find nm_test_var in $nlist" >&5
5054 fi
5055 else 5803 else
5056 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5057 fi 5805 fi
5058 else 5806 ;;
5059 echo "$progname: failed program was:" >&5 5807 esac
5060 cat conftest.$ac_ext >&5 5808
5061 fi 5809
5062 rm -rf conftest* conftst* 5810
5063 5811
5064 # Do not use the global_symbol_pipe unless it works. 5812
5065 if test "$pipe_works" = yes; then 5813
5066 break 5814
5067 else 5815
5068 lt_cv_sys_global_symbol_pipe= 5816
5817 if test -n "$ac_tool_prefix"; then
5818 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5819 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_OBJDUMP+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 if test -n "$OBJDUMP"; then
5826 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5837 break 2
5069 fi 5838 fi
5070 done 5839 done
5071 5840 done
5072 fi 5841 IFS=$as_save_IFS
5073 5842
5074 if test -z "$lt_cv_sys_global_symbol_pipe"; then 5843 fi
5075 lt_cv_sys_global_symbol_to_cdecl= 5844 fi
5076 fi 5845 OBJDUMP=$ac_cv_prog_OBJDUMP
5077 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the n 5846 if test -n "$OBJDUMP"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5079 $as_echo "failed" >&6; } 5848 $as_echo "$OBJDUMP" >&6; }
5080 else 5849 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "ok" >&6; } 5851 $as_echo "no" >&6; }
5083 fi 5852 fi
5084 5853
5085 5854
5086 5855 fi
5087 5856 if test -z "$ac_cv_prog_OBJDUMP"; then
5088 5857 ac_ct_OBJDUMP=$OBJDUMP
5858 # Extract the first word of "objdump", so it can be a program name with args.
5859 set dummy objdump; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if test -n "$ac_ct_OBJDUMP"; then
5866 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5877 break 2
5878 fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5886 if test -n "$ac_ct_OBJDUMP"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5888 $as_echo "$ac_ct_OBJDUMP" >&6; }
5889 else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894 if test "x$ac_ct_OBJDUMP" = x; then
5895 OBJDUMP="false"
5896 else
5897 case $cross_compiling:$ac_tool_warned in
5898 yes:)
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5901 ac_tool_warned=yes ;;
5902 esac
5903 OBJDUMP=$ac_ct_OBJDUMP
5904 fi
5905 else
5906 OBJDUMP="$ac_cv_prog_OBJDUMP"
5907 fi
5908
5909 test -z "$OBJDUMP" && OBJDUMP=objdump
5910
5911
5912
5089 5913
5090 5914
5091 5915
5092 5916
5093 5917
5094 5918
5095 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent lib raries" >&5
5096 5920 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5097 5921 if ${lt_cv_deplibs_check_method+:} false; then :
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 # Check whether --enable-libtool-lock was given.
5108 if test "${enable_libtool_lock+set}" = set; then :
5109 enableval=$enable_libtool_lock;
5110 fi
5111
5112 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5113
5114 # Some flags need to be propagated to the compiler or linker for good
5115 # libtool support.
5116 case $host in
5117 ia64-*-hpux*)
5118 # Find out which ABI we are using.
5119 echo 'int i;' > conftest.$ac_ext
5120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5121 (eval $ac_compile) 2>&5
5122 ac_status=$?
5123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5124 test $ac_status = 0; }; then
5125 case `/usr/bin/file conftest.$ac_objext` in
5126 *ELF-32*)
5127 » HPUX_IA64_MODE="32"
5128 » ;;
5129 *ELF-64*)
5130 » HPUX_IA64_MODE="64"
5131 » ;;
5132 esac
5133 fi
5134 rm -rf conftest*
5135 ;;
5136 *-*-irix6*)
5137 # Find out which ABI we are using.
5138 echo '#line 5138 "configure"' > conftest.$ac_ext
5139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5140 (eval $ac_compile) 2>&5
5141 ac_status=$?
5142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5143 test $ac_status = 0; }; then
5144 if test "$lt_cv_prog_gnu_ld" = yes; then
5145 case `/usr/bin/file conftest.$ac_objext` in
5146 » *32-bit*)
5147 » LD="${LD-ld} -melf32bsmip"
5148 » ;;
5149 » *N32*)
5150 » LD="${LD-ld} -melf32bmipn32"
5151 » ;;
5152 » *64-bit*)
5153 » LD="${LD-ld} -melf64bmip"
5154 » ;;
5155 esac
5156 else
5157 case `/usr/bin/file conftest.$ac_objext` in
5158 » *32-bit*)
5159 » LD="${LD-ld} -32"
5160 » ;;
5161 » *N32*)
5162 » LD="${LD-ld} -n32"
5163 » ;;
5164 » *64-bit*)
5165 » LD="${LD-ld} -64"
5166 » ;;
5167 esac
5168 fi
5169 fi
5170 rm -rf conftest*
5171 ;;
5172
5173 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5174 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5175 # Find out which ABI we are using.
5176 echo 'int i;' > conftest.$ac_ext
5177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5178 (eval $ac_compile) 2>&5
5179 ac_status=$?
5180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181 test $ac_status = 0; }; then
5182 case `/usr/bin/file conftest.o` in
5183 *32-bit*)
5184 » case $host in
5185 » x86_64-*kfreebsd*-gnu)
5186 » LD="${LD-ld} -m elf_i386_fbsd"
5187 » ;;
5188 » x86_64-*linux*)
5189 » LD="${LD-ld} -m elf_i386"
5190 » ;;
5191 » ppc64-*linux*|powerpc64-*linux*)
5192 » LD="${LD-ld} -m elf32ppclinux"
5193 » ;;
5194 » s390x-*linux*)
5195 » LD="${LD-ld} -m elf_s390"
5196 » ;;
5197 » sparc64-*linux*)
5198 » LD="${LD-ld} -m elf32_sparc"
5199 » ;;
5200 » esac
5201 » ;;
5202 *64-bit*)
5203 » case $host in
5204 » x86_64-*kfreebsd*-gnu)
5205 » LD="${LD-ld} -m elf_x86_64_fbsd"
5206 » ;;
5207 » x86_64-*linux*)
5208 » LD="${LD-ld} -m elf_x86_64"
5209 » ;;
5210 » ppc*-*linux*|powerpc*-*linux*)
5211 » LD="${LD-ld} -m elf64ppc"
5212 » ;;
5213 » s390*-*linux*|s390*-*tpf*)
5214 » LD="${LD-ld} -m elf64_s390"
5215 » ;;
5216 » sparc*-*linux*)
5217 » LD="${LD-ld} -m elf64_sparc"
5218 » ;;
5219 » esac
5220 » ;;
5221 esac
5222 fi
5223 rm -rf conftest*
5224 ;;
5225
5226 *-*-sco3.2v5*)
5227 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5228 SAVE_CFLAGS="$CFLAGS"
5229 CFLAGS="$CFLAGS -belf"
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5231 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5232 if ${lt_cv_cc_needs_belf+:} false; then :
5233 $as_echo_n "(cached) " >&6 5922 $as_echo_n "(cached) " >&6
5234 else 5923 else
5235 ac_ext=c 5924 lt_cv_file_magic_cmd='$MAGIC_CMD'
5236 ac_cpp='$CPP $CPPFLAGS' 5925 lt_cv_file_magic_test_file=
5237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5926 lt_cv_deplibs_check_method='unknown'
5238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' 5927 # Need to set the preceding variable on all platforms that support
5239 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5928 # interlibrary dependencies.
5240 5929 # 'none' -- dependencies not supported.
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5930 # 'unknown' -- same as none, but documents that we really don't know.
5242 /* end confdefs.h. */ 5931 # 'pass_all' -- all dependencies passed with no checks.
5243 5932 # 'test_compile' -- check by making test program.
5244 int 5933 # 'file_magic [[regex]]' -- check by looking for files in library path
5245 main () 5934 # that responds to the $file_magic_cmd with a given extended regex.
5246 { 5935 # If you have 'file' or equivalent on your system and you're not sure
5247 5936 # whether 'pass_all' will *always* work, you probably want this one.
5248 ; 5937
5249 return 0; 5938 case $host_os in
5250 } 5939 aix[4-9]*)
5251 _ACEOF 5940 lt_cv_deplibs_check_method=pass_all
5252 if ac_fn_c_try_link "$LINENO"; then : 5941 ;;
5253 lt_cv_cc_needs_belf=yes 5942
5254 else 5943 beos*)
5255 lt_cv_cc_needs_belf=no 5944 lt_cv_deplibs_check_method=pass_all
5256 fi 5945 ;;
5257 rm -f core conftest.err conftest.$ac_objext \ 5946
5258 conftest$ac_exeext conftest.$ac_ext 5947 bsdi[45]*)
5259 ac_ext=c 5948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared obje ct|dynamic lib)'
5260 ac_cpp='$CPP $CPPFLAGS' 5949 lt_cv_file_magic_cmd='/usr/bin/file -L'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5950 lt_cv_file_magic_test_file=/shlib/libc.so
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' 5951 ;;
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5952
5264 5953 cygwin*)
5265 fi 5954 # func_win32_libid is a shell function defined in ltmain.sh
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5267 $as_echo "$lt_cv_cc_needs_belf" >&6; } 5956 lt_cv_file_magic_cmd='func_win32_libid'
5268 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5957 ;;
5269 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5958
5270 CFLAGS="$SAVE_CFLAGS" 5959 mingw* | pw32*)
5271 fi 5960 # Base MSYS/MinGW do not provide the 'file' command needed by
5272 ;; 5961 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5273 sparc*-*solaris*) 5962 # unless we find 'file', for example because we are cross-compiling.
5274 # Find out which ABI we are using. 5963 if ( file / ) >/dev/null 2>&1; then
5275 echo 'int i;' > conftest.$ac_ext 5964 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5965 lt_cv_file_magic_cmd='func_win32_libid'
5277 (eval $ac_compile) 2>&5 5966 else
5278 ac_status=$? 5967 # Keep this pattern in sync with the one in func_win32_libid.
5279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5968 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture : i386)?|pe-arm-wince|pe-x86-64)'
5280 test $ac_status = 0; }; then 5969 lt_cv_file_magic_cmd='$OBJDUMP -f'
5281 case `/usr/bin/file conftest.o` in 5970 fi
5282 *64-bit*) 5971 ;;
5283 case $lt_cv_prog_gnu_ld in 5972
5284 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5973 cegcc*)
5285 *) 5974 # use the weaker test based on 'objdump'. See mingw*.
5286 » if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5975 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect ure: arm)?'
5287 » LD="${LD-ld} -64" 5976 lt_cv_file_magic_cmd='$OBJDUMP -f'
5288 » fi 5977 ;;
5289 » ;; 5978
5290 esac 5979 darwin* | rhapsody*)
5980 lt_cv_deplibs_check_method=pass_all
5981 ;;
5982
5983 freebsd* | dragonfly*)
5984 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5985 case $host_cpu in
5986 i*86 )
5987 # Not sure whether the presence of OpenBSD here was a mistake.
5988 # Let's accept both of them until this is cleared up.
5989 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]8 6 (compact )?demand paged shared library'
5990 lt_cv_file_magic_cmd=/usr/bin/file
5991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5291 ;; 5992 ;;
5292 esac 5993 esac
5293 fi 5994 else
5294 rm -rf conftest* 5995 lt_cv_deplibs_check_method=pass_all
5996 fi
5997 ;;
5998
5999 haiku*)
6000 lt_cv_deplibs_check_method=pass_all
6001 ;;
6002
6003 hpux10.20* | hpux11*)
6004 lt_cv_file_magic_cmd=/usr/bin/file
6005 case $host_cpu in
6006 ia64*)
6007 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha red object file - IA64'
6008 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6009 ;;
6010 hppa*64*)
6011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])( -bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6012 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6013 ;;
6014 *)
6015 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9] ) shared library'
6016 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6017 ;;
6018 esac
6019 ;;
6020
6021 interix[3-9]*)
6022 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6024 ;;
6025
6026 irix5* | irix6* | nonstopux*)
6027 case $LD in
6028 *-32|*"-32 ") libmagic=32-bit;;
6029 *-n32|*"-n32 ") libmagic=N32;;
6030 *-64|*"-64 ") libmagic=64-bit;;
6031 *) libmagic=never-match;;
6032 esac
6033 lt_cv_deplibs_check_method=pass_all
6034 ;;
6035
6036 # This must be glibc/ELF.
6037 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6038 lt_cv_deplibs_check_method=pass_all
6039 ;;
6040
6041 netbsd*)
6042 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
6044 else
6045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6046 fi
6047 ;;
6048
6049 newos6*)
6050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable| dynamic lib)'
6051 lt_cv_file_magic_cmd=/usr/bin/file
6052 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6053 ;;
6054
6055 *nto* | *qnx*)
6056 lt_cv_deplibs_check_method=pass_all
6057 ;;
6058
6059 openbsd* | bitrig*)
6060 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.s o|_pic\.a)$'
6062 else
6063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
6064 fi
6065 ;;
6066
6067 osf3* | osf4* | osf5*)
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070
6071 rdos*)
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
6074
6075 solaris*)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082
6083 sysv4 | sysv4.3*)
6084 case $host_vendor in
6085 motorola)
6086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared ob ject|dynamic lib) M[0-9][0-9]* Version [0-9]'
6087 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6088 ;;
6089 ncr)
6090 lt_cv_deplibs_check_method=pass_all
6091 ;;
6092 sequent)
6093 lt_cv_file_magic_cmd='/bin/file'
6094 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared ob ject|dynamic lib )'
6095 ;;
6096 sni)
6097 lt_cv_file_magic_cmd='/bin/file'
6098 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic li b"
6099 lt_cv_file_magic_test_file=/lib/libc.so
6100 ;;
6101 siemens)
6102 lt_cv_deplibs_check_method=pass_all
6103 ;;
6104 pc)
6105 lt_cv_deplibs_check_method=pass_all
6106 ;;
6107 esac
6108 ;;
6109
6110 tpf*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113 os2*)
6114 lt_cv_deplibs_check_method=pass_all
5295 ;; 6115 ;;
5296 esac 6116 esac
5297 6117
5298 need_locks="$enable_libtool_lock" 6118 fi
5299 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >& 5
5300 6120 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6121
6122 file_magic_glob=
6123 want_nocaseglob=no
6124 if test "$build" = "$host"; then
5301 case $host_os in 6125 case $host_os in
5302 rhapsody* | darwin*) 6126 mingw* | pw32*)
5303 if test -n "$ac_tool_prefix"; then 6127 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5304 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a progra m name with args. 6128 want_nocaseglob=yes
5305 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6129 else
6130 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6131 fi
6132 ;;
6133 esac
6134 fi
6135
6136 file_magic_cmd=$lt_cv_file_magic_cmd
6137 deplibs_check_method=$lt_cv_deplibs_check_method
6138 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; } 6165 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6166 if ${ac_cv_prog_DLLTOOL+:} false; then :
5309 $as_echo_n "(cached) " >&6 6167 $as_echo_n "(cached) " >&6
5310 else 6168 else
5311 if test -n "$DSYMUTIL"; then 6169 if test -n "$DLLTOOL"; then
5312 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6170 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5313 else 6171 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH 6173 for as_dir in $PATH
5316 do 6174 do
5317 IFS=$as_save_IFS 6175 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=. 6176 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do 6177 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6179 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5323 break 2 6181 break 2
5324 fi 6182 fi
5325 done 6183 done
5326 done 6184 done
5327 IFS=$as_save_IFS 6185 IFS=$as_save_IFS
5328 6186
5329 fi 6187 fi
5330 fi 6188 fi
5331 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6189 DLLTOOL=$ac_cv_prog_DLLTOOL
5332 if test -n "$DSYMUTIL"; then 6190 if test -n "$DLLTOOL"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5334 $as_echo "$DSYMUTIL" >&6; } 6192 $as_echo "$DLLTOOL" >&6; }
5335 else 6193 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; } 6195 $as_echo "no" >&6; }
5338 fi 6196 fi
5339 6197
5340 6198
5341 fi 6199 fi
5342 if test -z "$ac_cv_prog_DSYMUTIL"; then 6200 if test -z "$ac_cv_prog_DLLTOOL"; then
5343 ac_ct_DSYMUTIL=$DSYMUTIL 6201 ac_ct_DLLTOOL=$DLLTOOL
5344 # Extract the first word of "dsymutil", so it can be a program name with args. 6202 # Extract the first word of "dlltool", so it can be a program name with args.
5345 set dummy dsymutil; ac_word=$2 6203 set dummy dlltool; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; } 6205 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6206 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5349 $as_echo_n "(cached) " >&6 6207 $as_echo_n "(cached) " >&6
5350 else 6208 else
5351 if test -n "$ac_ct_DSYMUTIL"; then 6209 if test -n "$ac_ct_DLLTOOL"; then
5352 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6210 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5353 else 6211 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH 6213 for as_dir in $PATH
5356 do 6214 do
5357 IFS=$as_save_IFS 6215 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=. 6216 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do 6217 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6219 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5363 break 2 6221 break 2
5364 fi 6222 fi
5365 done 6223 done
5366 done 6224 done
5367 IFS=$as_save_IFS 6225 IFS=$as_save_IFS
5368 6226
5369 fi 6227 fi
5370 fi 6228 fi
5371 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6229 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5372 if test -n "$ac_ct_DSYMUTIL"; then 6230 if test -n "$ac_ct_DLLTOOL"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5374 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6232 $as_echo "$ac_ct_DLLTOOL" >&6; }
5375 else 6233 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; } 6235 $as_echo "no" >&6; }
5378 fi 6236 fi
5379 6237
5380 if test "x$ac_ct_DSYMUTIL" = x; then 6238 if test "x$ac_ct_DLLTOOL" = x; then
5381 DSYMUTIL=":" 6239 DLLTOOL="false"
5382 else 6240 else
5383 case $cross_compiling:$ac_tool_warned in 6241 case $cross_compiling:$ac_tool_warned in
5384 yes:) 6242 yes:)
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} 6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5387 ac_tool_warned=yes ;; 6245 ac_tool_warned=yes ;;
5388 esac 6246 esac
5389 DSYMUTIL=$ac_ct_DSYMUTIL 6247 DLLTOOL=$ac_ct_DLLTOOL
5390 fi 6248 fi
5391 else 6249 else
5392 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6250 DLLTOOL="$ac_cv_prog_DLLTOOL"
5393 fi 6251 fi
5394 6252
5395 if test -n "$ac_tool_prefix"; then 6253 test -z "$DLLTOOL" && DLLTOOL=dlltool
5396 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6254
5397 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and l ink libraries" >&5
6265 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6266 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 lt_cv_sharedlib_from_linklib_cmd='unknown'
6270
6271 case $host_os in
6272 cygwin* | mingw* | pw32* | cegcc*)
6273 # two different shell functions defined in ltmain.sh;
6274 # decide which one to use based on capabilities of $DLLTOOL
6275 case `$DLLTOOL --help 2>&1` in
6276 *--identify-strict*)
6277 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6278 ;;
6279 *)
6280 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6281 ;;
6282 esac
6283 ;;
6284 *)
6285 # fallback: assume linklib IS sharedlib
6286 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6287 ;;
6288 esac
6289
6290 fi
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_c md" >&5
6292 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6293 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6294 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6295
6296
6297
6298
6299
6300
6301
6302
6303 if test -n "$ac_tool_prefix"; then
6304 for ac_prog in ar
6305 do
6306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
6307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; } 6309 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_prog_NMEDIT+:} false; then : 6310 if ${ac_cv_prog_AR+:} false; then :
5401 $as_echo_n "(cached) " >&6 6311 $as_echo_n "(cached) " >&6
5402 else 6312 else
5403 if test -n "$NMEDIT"; then 6313 if test -n "$AR"; then
5404 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6314 ac_cv_prog_AR="$AR" # Let the user override the test.
5405 else 6315 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH 6317 for as_dir in $PATH
5408 do 6318 do
5409 IFS=$as_save_IFS 6319 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=. 6320 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do 6321 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6323 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5415 break 2 6325 break 2
5416 fi 6326 fi
5417 done 6327 done
5418 done 6328 done
5419 IFS=$as_save_IFS 6329 IFS=$as_save_IFS
5420 6330
5421 fi 6331 fi
5422 fi 6332 fi
5423 NMEDIT=$ac_cv_prog_NMEDIT 6333 AR=$ac_cv_prog_AR
5424 if test -n "$NMEDIT"; then 6334 if test -n "$AR"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5426 $as_echo "$NMEDIT" >&6; } 6336 $as_echo "$AR" >&6; }
5427 else 6337 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; } 6339 $as_echo "no" >&6; }
5430 fi 6340 fi
5431 6341
5432 6342
6343 test -n "$AR" && break
6344 done
5433 fi 6345 fi
5434 if test -z "$ac_cv_prog_NMEDIT"; then 6346 if test -z "$AR"; then
5435 ac_ct_NMEDIT=$NMEDIT 6347 ac_ct_AR=$AR
5436 # Extract the first word of "nmedit", so it can be a program name with args. 6348 for ac_prog in ar
5437 set dummy nmedit; ac_word=$2 6349 do
6350 # Extract the first word of "$ac_prog", so it can be a program name with args.
6351 set dummy $ac_prog; ac_word=$2
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439 $as_echo_n "checking for $ac_word... " >&6; } 6353 $as_echo_n "checking for $ac_word... " >&6; }
5440 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6354 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5441 $as_echo_n "(cached) " >&6 6355 $as_echo_n "(cached) " >&6
5442 else 6356 else
5443 if test -n "$ac_ct_NMEDIT"; then 6357 if test -n "$ac_ct_AR"; then
5444 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6358 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5445 else 6359 else
5446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5447 for as_dir in $PATH 6361 for as_dir in $PATH
5448 do 6362 do
5449 IFS=$as_save_IFS 6363 IFS=$as_save_IFS
5450 test -z "$as_dir" && as_dir=. 6364 test -z "$as_dir" && as_dir=.
5451 for ac_exec_ext in '' $ac_executable_extensions; do 6365 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6367 ac_cv_prog_ac_ct_AR="$ac_prog"
5454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5455 break 2 6369 break 2
5456 fi 6370 fi
5457 done 6371 done
5458 done 6372 done
5459 IFS=$as_save_IFS 6373 IFS=$as_save_IFS
5460 6374
5461 fi 6375 fi
5462 fi 6376 fi
5463 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5464 if test -n "$ac_ct_NMEDIT"; then 6378 if test -n "$ac_ct_AR"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5466 $as_echo "$ac_ct_NMEDIT" >&6; } 6380 $as_echo "$ac_ct_AR" >&6; }
5467 else 6381 else
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; } 6383 $as_echo "no" >&6; }
5470 fi 6384 fi
5471 6385
5472 if test "x$ac_ct_NMEDIT" = x; then 6386
5473 NMEDIT=":" 6387 test -n "$ac_ct_AR" && break
6388 done
6389
6390 if test "x$ac_ct_AR" = x; then
6391 AR="false"
5474 else 6392 else
5475 case $cross_compiling:$ac_tool_warned in 6393 case $cross_compiling:$ac_tool_warned in
5476 yes:) 6394 yes:)
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} 6396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5479 ac_tool_warned=yes ;; 6397 ac_tool_warned=yes ;;
5480 esac 6398 esac
5481 NMEDIT=$ac_ct_NMEDIT 6399 AR=$ac_ct_AR
5482 fi 6400 fi
5483 else
5484 NMEDIT="$ac_cv_prog_NMEDIT"
5485 fi 6401 fi
5486 6402
5487 if test -n "$ac_tool_prefix"; then 6403 : ${AR=ar}
5488 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program na me with args. 6404 : ${AR_FLAGS=cru}
5489 set dummy ${ac_tool_prefix}lipo; ac_word=$2 6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >& 5
6417 $as_echo_n "checking for archiver @FILE support... " >&6; }
6418 if ${lt_cv_ar_at_file+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 lt_cv_ar_at_file=no
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424
6425 int
6426 main ()
6427 {
6428
6429 ;
6430 return 0;
6431 }
6432 _ACEOF
6433 if ac_fn_c_try_compile "$LINENO"; then :
6434 echo conftest.$ac_objext > conftest.lst
6435 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6437 (eval $lt_ar_try) 2>&5
6438 ac_status=$?
6439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6440 test $ac_status = 0; }
6441 if test 0 -eq "$ac_status"; then
6442 » # Ensure the archiver fails upon bogus file names.
6443 » rm -f conftest.$ac_objext libconftest.a
6444 » { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6445 (eval $lt_ar_try) 2>&5
6446 ac_status=$?
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448 test $ac_status = 0; }
6449 » if test 0 -ne "$ac_status"; then
6450 lt_cv_ar_at_file=@
6451 fi
6452 fi
6453 rm -f conftest.* libconftest.a
6454
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457
6458 fi
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6460 $as_echo "$lt_cv_ar_at_file" >&6; }
6461
6462 if test no = "$lt_cv_ar_at_file"; then
6463 archiver_list_spec=
6464 else
6465 archiver_list_spec=$lt_cv_ar_at_file
6466 fi
6467
6468
6469
6470
6471
6472
6473
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n ame with args.
6476 set dummy ${ac_tool_prefix}strip; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; } 6478 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_prog_LIPO+:} false; then : 6479 if ${ac_cv_prog_STRIP+:} false; then :
5493 $as_echo_n "(cached) " >&6 6480 $as_echo_n "(cached) " >&6
5494 else 6481 else
5495 if test -n "$LIPO"; then 6482 if test -n "$STRIP"; then
5496 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5497 else 6484 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH 6486 for as_dir in $PATH
5500 do 6487 do
5501 IFS=$as_save_IFS 6488 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=. 6489 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do 6490 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5507 break 2 6494 break 2
5508 fi 6495 fi
5509 done 6496 done
5510 done 6497 done
5511 IFS=$as_save_IFS 6498 IFS=$as_save_IFS
5512 6499
5513 fi 6500 fi
5514 fi 6501 fi
5515 LIPO=$ac_cv_prog_LIPO 6502 STRIP=$ac_cv_prog_STRIP
5516 if test -n "$LIPO"; then 6503 if test -n "$STRIP"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5518 $as_echo "$LIPO" >&6; } 6505 $as_echo "$STRIP" >&6; }
5519 else 6506 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; } 6508 $as_echo "no" >&6; }
5522 fi 6509 fi
5523 6510
5524 6511
5525 fi 6512 fi
5526 if test -z "$ac_cv_prog_LIPO"; then 6513 if test -z "$ac_cv_prog_STRIP"; then
5527 ac_ct_LIPO=$LIPO 6514 ac_ct_STRIP=$STRIP
5528 # Extract the first word of "lipo", so it can be a program name with args. 6515 # Extract the first word of "strip", so it can be a program name with args.
5529 set dummy lipo; ac_word=$2 6516 set dummy strip; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; } 6518 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6519 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5533 $as_echo_n "(cached) " >&6 6520 $as_echo_n "(cached) " >&6
5534 else 6521 else
5535 if test -n "$ac_ct_LIPO"; then 6522 if test -n "$ac_ct_STRIP"; then
5536 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5537 else 6524 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH 6526 for as_dir in $PATH
5540 do 6527 do
5541 IFS=$as_save_IFS 6528 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=. 6529 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do 6530 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_ac_ct_LIPO="lipo" 6532 ac_cv_prog_ac_ct_STRIP="strip"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5547 break 2 6534 break 2
5548 fi 6535 fi
5549 done 6536 done
5550 done 6537 done
5551 IFS=$as_save_IFS 6538 IFS=$as_save_IFS
5552 6539
5553 fi 6540 fi
5554 fi 6541 fi
5555 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5556 if test -n "$ac_ct_LIPO"; then 6543 if test -n "$ac_ct_STRIP"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5558 $as_echo "$ac_ct_LIPO" >&6; } 6545 $as_echo "$ac_ct_STRIP" >&6; }
5559 else 6546 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; } 6548 $as_echo "no" >&6; }
5562 fi 6549 fi
5563 6550
5564 if test "x$ac_ct_LIPO" = x; then 6551 if test "x$ac_ct_STRIP" = x; then
5565 LIPO=":" 6552 STRIP=":"
5566 else 6553 else
5567 case $cross_compiling:$ac_tool_warned in 6554 case $cross_compiling:$ac_tool_warned in
5568 yes:) 6555 yes:)
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} 6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5571 ac_tool_warned=yes ;; 6558 ac_tool_warned=yes ;;
5572 esac 6559 esac
5573 LIPO=$ac_ct_LIPO 6560 STRIP=$ac_ct_STRIP
5574 fi 6561 fi
5575 else 6562 else
5576 LIPO="$ac_cv_prog_LIPO" 6563 STRIP="$ac_cv_prog_STRIP"
5577 fi 6564 fi
5578 6565
5579 if test -n "$ac_tool_prefix"; then 6566 test -z "$STRIP" && STRIP=:
5580 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program n ame with args. 6567
5581 set dummy ${ac_tool_prefix}otool; ac_word=$2 6568
6569
6570
6571
6572
6573 if test -n "$ac_tool_prefix"; then
6574 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; } 6577 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_prog_OTOOL+:} false; then : 6578 if ${ac_cv_prog_RANLIB+:} false; then :
5585 $as_echo_n "(cached) " >&6 6579 $as_echo_n "(cached) " >&6
5586 else 6580 else
5587 if test -n "$OTOOL"; then 6581 if test -n "$RANLIB"; then
5588 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5589 else 6583 else
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH 6585 for as_dir in $PATH
5592 do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5599 break 2
5600 fi
5601 done
5602 done
5603 IFS=$as_save_IFS
5604
5605 fi
5606 fi
5607 OTOOL=$ac_cv_prog_OTOOL
5608 if test -n "$OTOOL"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5610 $as_echo "$OTOOL" >&6; }
5611 else
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5614 fi
5615
5616
5617 fi
5618 if test -z "$ac_cv_prog_OTOOL"; then
5619 ac_ct_OTOOL=$OTOOL
5620 # Extract the first word of "otool", so it can be a program name with args.
5621 set dummy otool; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 if test -n "$ac_ct_OTOOL"; then
5628 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_ac_ct_OTOOL="otool"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5639 break 2
5640 fi
5641 done
5642 done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5648 if test -n "$ac_ct_OTOOL"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5650 $as_echo "$ac_ct_OTOOL" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656 if test "x$ac_ct_OTOOL" = x; then
5657 OTOOL=":"
5658 else
5659 case $cross_compiling:$ac_tool_warned in
5660 yes:)
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5663 ac_tool_warned=yes ;;
5664 esac
5665 OTOOL=$ac_ct_OTOOL
5666 fi
5667 else
5668 OTOOL="$ac_cv_prog_OTOOL"
5669 fi
5670
5671 if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5673 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_OTOOL64+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 if test -n "$OTOOL64"; then
5680 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do 6586 do
5685 IFS=$as_save_IFS 6587 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=. 6588 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do 6589 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5691 break 2 6593 break 2
5692 fi 6594 fi
5693 done 6595 done
5694 done 6596 done
5695 IFS=$as_save_IFS 6597 IFS=$as_save_IFS
5696 6598
5697 fi 6599 fi
5698 fi 6600 fi
5699 OTOOL64=$ac_cv_prog_OTOOL64 6601 RANLIB=$ac_cv_prog_RANLIB
5700 if test -n "$OTOOL64"; then 6602 if test -n "$RANLIB"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5702 $as_echo "$OTOOL64" >&6; } 6604 $as_echo "$RANLIB" >&6; }
5703 else 6605 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; } 6607 $as_echo "no" >&6; }
5706 fi 6608 fi
5707 6609
5708 6610
5709 fi 6611 fi
5710 if test -z "$ac_cv_prog_OTOOL64"; then 6612 if test -z "$ac_cv_prog_RANLIB"; then
5711 ac_ct_OTOOL64=$OTOOL64 6613 ac_ct_RANLIB=$RANLIB
5712 # Extract the first word of "otool64", so it can be a program name with args. 6614 # Extract the first word of "ranlib", so it can be a program name with args.
5713 set dummy otool64; ac_word=$2 6615 set dummy ranlib; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; } 6617 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6618 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5717 $as_echo_n "(cached) " >&6 6619 $as_echo_n "(cached) " >&6
5718 else 6620 else
5719 if test -n "$ac_ct_OTOOL64"; then 6621 if test -n "$ac_ct_RANLIB"; then
5720 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5721 else 6623 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH 6625 for as_dir in $PATH
5724 do 6626 do
5725 IFS=$as_save_IFS 6627 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=. 6628 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do 6629 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_ac_ct_OTOOL64="otool64" 6631 ac_cv_prog_ac_ct_RANLIB="ranlib"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
5731 break 2 6633 break 2
5732 fi 6634 fi
5733 done 6635 done
5734 done 6636 done
5735 IFS=$as_save_IFS 6637 IFS=$as_save_IFS
5736 6638
5737 fi 6639 fi
5738 fi 6640 fi
5739 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5740 if test -n "$ac_ct_OTOOL64"; then 6642 if test -n "$ac_ct_RANLIB"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5742 $as_echo "$ac_ct_OTOOL64" >&6; } 6644 $as_echo "$ac_ct_RANLIB" >&6; }
5743 else 6645 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; } 6647 $as_echo "no" >&6; }
5746 fi 6648 fi
5747 6649
5748 if test "x$ac_ct_OTOOL64" = x; then 6650 if test "x$ac_ct_RANLIB" = x; then
5749 OTOOL64=":" 6651 RANLIB=":"
5750 else 6652 else
5751 case $cross_compiling:$ac_tool_warned in 6653 case $cross_compiling:$ac_tool_warned in
5752 yes:) 6654 yes:)
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;} 6656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
5755 ac_tool_warned=yes ;; 6657 ac_tool_warned=yes ;;
5756 esac 6658 esac
5757 OTOOL64=$ac_ct_OTOOL64 6659 RANLIB=$ac_ct_RANLIB
5758 fi 6660 fi
5759 else 6661 else
5760 OTOOL64="$ac_cv_prog_OTOOL64" 6662 RANLIB="$ac_cv_prog_RANLIB"
5761 fi 6663 fi
5762 6664
6665 test -z "$RANLIB" && RANLIB=:
6666
5763 6667
5764 6668
5765 6669
5766 6670
5767 6671
6672 # Determine commands to create old-style static archives.
6673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6674 old_postinstall_cmds='chmod 644 $oldlib'
6675 old_postuninstall_cmds=
6676
6677 if test -n "$RANLIB"; then
6678 case $host_os in
6679 bitrig* | openbsd*)
6680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6681 ;;
6682 *)
6683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6684 ;;
6685 esac
6686 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6687 fi
6688
6689 case $host_os in
6690 darwin*)
6691 lock_old_archive_extraction=yes ;;
6692 *)
6693 lock_old_archive_extraction=no ;;
6694 esac
5768 6695
5769 6696
5770 6697
5771
5772
5773
5774 6698
5775 6699
5776 6700
5777 6701
5778 6702
5779 6703
5780 6704
5781 6705
5782 6706
5783 6707
5784 6708
5785 6709
5786 6710
5787 6711
5788 6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734 # If no C compiler was specified, use CC.
6735 LTCC=${LTCC-"$CC"}
6736
6737 # If no C compiler flags were specified, use CFLAGS.
6738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6739
6740 # Allow CC to be a program name with arguments.
6741 compiler=$CC
6742
6743
6744 # Check for command to grab the raw symbol name followed by C symbol from nm.
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output fr om $compiler object" >&5
6746 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6747 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750
6751 # These are sane defaults that work on at least a few old systems.
6752 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6753
6754 # Character class describing NM global symbol codes.
6755 symcode='[BCDEGRST]'
6756
6757 # Regexp to match symbols that can be accessed directly from C.
6758 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6759
6760 # Define system-specific variables.
6761 case $host_os in
6762 aix*)
6763 symcode='[BCDT]'
6764 ;;
6765 cygwin* | mingw* | pw32* | cegcc*)
6766 symcode='[ABCDGISTW]'
6767 ;;
6768 hpux*)
6769 if test ia64 = "$host_cpu"; then
6770 symcode='[ABCDEGRST]'
6771 fi
6772 ;;
6773 irix* | nonstopux*)
6774 symcode='[BCDEGRST]'
6775 ;;
6776 osf*)
6777 symcode='[BCDEGQRST]'
6778 ;;
6779 solaris*)
6780 symcode='[BDRT]'
6781 ;;
6782 sco3.2v5*)
6783 symcode='[DT]'
6784 ;;
6785 sysv4.2uw2*)
6786 symcode='[DT]'
6787 ;;
6788 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6789 symcode='[ABDT]'
6790 ;;
6791 sysv4)
6792 symcode='[DFNSTU]'
6793 ;;
6794 esac
6795
6796 # If we're using GNU nm, then use its standard symbol codes.
6797 case `$NM -V 2>&1` in
6798 *GNU* | *'with BFD'*)
6799 symcode='[ABCDGIRSTW]' ;;
6800 esac
6801
6802 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6803 # Gets list of data symbols to import.
6804 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6805 # Adjust the below global symbol transforms to fixup imported variables.
6806 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6807 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6808 lt_c_name_lib_hook="\
6809 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6810 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6811 else
6812 # Disable hooks by default.
6813 lt_cv_sys_global_symbol_to_import=
6814 lt_cdecl_hook=
6815 lt_c_name_hook=
6816 lt_c_name_lib_hook=
6817 fi
6818
6819 # Transform an extracted symbol line into a proper C declaration.
6820 # Some systems (esp. on ia64) link data and code symbols differently,
6821 # so use this general approach.
6822 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6823 $lt_cdecl_hook\
6824 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6825 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6826
6827 # Transform an extracted symbol line into symbol name and symbol address
6828 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6829 $lt_c_name_hook\
6830 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6831 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6832
6833 # Transform an extracted symbol line into symbol name with lib prefix and
6834 # symbol address.
6835 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6836 $lt_c_name_lib_hook\
6837 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6838 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6839 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6840
6841 # Handle CRLF in mingw tool chain
6842 opt_cr=
6843 case $build_os in
6844 mingw*)
6845 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6846 ;;
6847 esac
6848
6849 # Try without a prefix underscore, then with it.
6850 for ac_symprfx in "" "_"; do
6851
6852 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6853 symxfrm="\\1 $ac_symprfx\\2 \\2"
6854
6855 # Write the raw and C identifiers.
6856 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6857 # Fake it for dumpbin and say T for any non-static function,
6858 # D for any global variable and I for any imported variable.
6859 # Also find C++ and __fastcall symbols from MSVC++,
6860 # which start with @ or ?.
6861 lt_cv_sys_global_symbol_pipe="$AWK '"\
6862 " {last_section=section; section=\$ 3};"\
6863 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6864 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6865 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6866 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6867 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6868 " \$ 0!~/External *\|/{next};"\
6869 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6870 " {if(hide[section]) next};"\
6871 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6872 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6873 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6874 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6875 " ' prfx=^$ac_symprfx"
6876 else
6877 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6878 fi
6879 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto /d'"
6880
6881 # Check to see that the pipe works correctly.
6882 pipe_works=no
6883
6884 rm -f conftest*
6885 cat > conftest.$ac_ext <<_LT_EOF
6886 #ifdef __cplusplus
6887 extern "C" {
6888 #endif
6889 char nm_test_var;
6890 void nm_test_func(void);
6891 void nm_test_func(void){}
6892 #ifdef __cplusplus
6893 }
6894 #endif
6895 int main(){nm_test_var='a';nm_test_func();return(0);}
6896 _LT_EOF
6897
6898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6899 (eval $ac_compile) 2>&5
6900 ac_status=$?
6901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902 test $ac_status = 0; }; then
6903 # Now try to grab the symbols.
6904 nlist=conftest.nm
6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objex t \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6906 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2> &5
6907 ac_status=$?
6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; } && test -s "$nlist"; then
6910 # Try sorting and uniquifying the output.
6911 if sort "$nlist" | uniq > "$nlist"T; then
6912 mv -f "$nlist"T "$nlist"
6913 else
6914 rm -f "$nlist"T
6915 fi
6916
6917 # Make sure that we snagged all the symbols we need.
6918 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6919 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6920 cat <<_LT_EOF > conftest.$ac_ext
6921 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. * /
6922 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6923 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6924 relocations are performed -- see ld's documentation on pseudo-relocs. */
6925 # define LT_DLSYM_CONST
6926 #elif defined __osf__
6927 /* This system does not cope well with relocations in const data. */
6928 # define LT_DLSYM_CONST
6929 #else
6930 # define LT_DLSYM_CONST const
6931 #endif
6932
6933 #ifdef __cplusplus
6934 extern "C" {
6935 #endif
6936
6937 _LT_EOF
6938 # Now generate the symbol file.
6939 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main > > conftest.$ac_ext'
6940
6941 cat <<_LT_EOF >> conftest.$ac_ext
6942
6943 /* The mapping between symbol names and symbols. */
6944 LT_DLSYM_CONST struct {
6945 const char *name;
6946 void *address;
6947 }
6948 lt__PROGRAM__LTX_preloaded_symbols[] =
6949 {
6950 { "@PROGRAM@", (void *) 0 },
6951 _LT_EOF
6952 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < " $nlist" | $GREP -v main >> conftest.$ac_ext
6953 cat <<\_LT_EOF >> conftest.$ac_ext
6954 {0, (void *) 0}
6955 };
6956
6957 /* This works around a problem in FreeBSD linker */
6958 #ifdef FREEBSD_WORKAROUND
6959 static const void *lt_preloaded_setup() {
6960 return lt__PROGRAM__LTX_preloaded_symbols;
6961 }
6962 #endif
6963
6964 #ifdef __cplusplus
6965 }
6966 #endif
6967 _LT_EOF
6968 # Now try linking the two files.
6969 mv conftest.$ac_objext conftstm.$ac_objext
6970 lt_globsym_save_LIBS=$LIBS
6971 lt_globsym_save_CFLAGS=$CFLAGS
6972 LIBS=conftstm.$ac_objext
6973 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } > &5
6975 (eval $ac_link) 2>&5
6976 ac_status=$?
6977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6978 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6979 pipe_works=yes
6980 fi
6981 LIBS=$lt_globsym_save_LIBS
6982 CFLAGS=$lt_globsym_save_CFLAGS
6983 else
6984 echo "cannot find nm_test_func in $nlist" >&5
6985 fi
6986 else
6987 echo "cannot find nm_test_var in $nlist" >&5
6988 fi
6989 else
6990 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6991 fi
6992 else
6993 echo "$progname: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6995 fi
6996 rm -rf conftest* conftst*
6997
6998 # Do not use the global_symbol_pipe unless it works.
6999 if test yes = "$pipe_works"; then
7000 break
7001 else
7002 lt_cv_sys_global_symbol_pipe=
7003 fi
7004 done
7005
7006 fi
7007
7008 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7009 lt_cv_sys_global_symbol_to_cdecl=
7010 fi
7011 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the n
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7013 $as_echo "failed" >&6; }
7014 else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7016 $as_echo "ok" >&6; }
7017 fi
7018
7019 # Response file support.
7020 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7021 nm_file_list_spec='@'
7022 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7023 nm_file_list_spec='@'
7024 fi
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7063 $as_echo_n "checking for sysroot... " >&6; }
7064
7065 # Check whether --with-sysroot was given.
7066 if test "${with_sysroot+set}" = set; then :
7067 withval=$with_sysroot;
7068 else
7069 with_sysroot=no
7070 fi
7071
7072
7073 lt_sysroot=
7074 case $with_sysroot in #(
7075 yes)
7076 if test yes = "$GCC"; then
7077 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7078 fi
7079 ;; #(
7080 /*)
7081 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7082 ;; #(
7083 no|'')
7084 ;; #(
7085 *)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7087 $as_echo "$with_sysroot" >&6; }
7088 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7089 ;;
7090 esac
7091
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7093 $as_echo "${lt_sysroot:-no}" >&6; }
7094
7095
7096
7097
7098
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7100 $as_echo_n "checking for a working dd... " >&6; }
7101 if ${ac_cv_path_lt_DD+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 printf 0123456789abcdef0123456789abcdef >conftest.i
7105 cat conftest.i conftest.i >conftest2.i
7106 : ${lt_DD:=$DD}
7107 if test -z "$lt_DD"; then
7108 ac_path_lt_DD_found=false
7109 # Loop through the user's path and test for each of PROGNAME-LIST
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_prog in dd; do
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7118 as_fn_executable_p "$ac_path_lt_DD" || continue
7119 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7120 cmp -s conftest.i conftest.out \
7121 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7122 fi
7123 $ac_path_lt_DD_found && break 3
7124 done
7125 done
7126 done
7127 IFS=$as_save_IFS
7128 if test -z "$ac_cv_path_lt_DD"; then
7129 :
7130 fi
7131 else
7132 ac_cv_path_lt_DD=$lt_DD
7133 fi
7134
7135 rm -f conftest.i conftest2.i conftest.out
7136 fi
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7138 $as_echo "$ac_cv_path_lt_DD" >&6; }
7139
7140
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7142 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7143 if ${lt_cv_truncate_bin+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 printf 0123456789abcdef0123456789abcdef >conftest.i
7147 cat conftest.i conftest.i >conftest2.i
7148 lt_cv_truncate_bin=
7149 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; the n
7150 cmp -s conftest.i conftest.out \
7151 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7152 fi
7153 rm -f conftest.i conftest2.i conftest.out
7154 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7157 $as_echo "$lt_cv_truncate_bin" >&6; }
7158
7159
7160
7161
7162
7163
7164
7165 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7166 func_cc_basename ()
7167 {
7168 for cc_temp in $*""; do
7169 case $cc_temp in
7170 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7171 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7172 \-*) ;;
7173 *) break;;
7174 esac
7175 done
7176 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%% "`
7177 }
7178
7179 # Check whether --enable-libtool-lock was given.
7180 if test "${enable_libtool_lock+set}" = set; then :
7181 enableval=$enable_libtool_lock;
7182 fi
7183
7184 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7185
7186 # Some flags need to be propagated to the compiler or linker for good
7187 # libtool support.
7188 case $host in
7189 ia64-*-hpux*)
7190 # Find out what ABI is being produced by ac_compile, and set mode
7191 # options accordingly.
7192 echo 'int i;' > conftest.$ac_ext
7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7194 (eval $ac_compile) 2>&5
7195 ac_status=$?
7196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; }; then
7198 case `/usr/bin/file conftest.$ac_objext` in
7199 *ELF-32*)
7200 HPUX_IA64_MODE=32
7201 ;;
7202 *ELF-64*)
7203 HPUX_IA64_MODE=64
7204 ;;
7205 esac
7206 fi
7207 rm -rf conftest*
7208 ;;
7209 *-*-irix6*)
7210 # Find out what ABI is being produced by ac_compile, and set linker
7211 # options accordingly.
7212 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7214 (eval $ac_compile) 2>&5
7215 ac_status=$?
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; }; then
7218 if test yes = "$lt_cv_prog_gnu_ld"; then
7219 case `/usr/bin/file conftest.$ac_objext` in
7220 *32-bit*)
7221 LD="${LD-ld} -melf32bsmip"
7222 ;;
7223 *N32*)
7224 LD="${LD-ld} -melf32bmipn32"
7225 ;;
7226 *64-bit*)
7227 LD="${LD-ld} -melf64bmip"
7228 ;;
7229 esac
7230 else
7231 case `/usr/bin/file conftest.$ac_objext` in
7232 *32-bit*)
7233 LD="${LD-ld} -32"
7234 ;;
7235 *N32*)
7236 LD="${LD-ld} -n32"
7237 ;;
7238 *64-bit*)
7239 LD="${LD-ld} -64"
7240 ;;
7241 esac
7242 fi
7243 fi
7244 rm -rf conftest*
7245 ;;
7246
7247 mips64*-*linux*)
7248 # Find out what ABI is being produced by ac_compile, and set linker
7249 # options accordingly.
7250 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252 (eval $ac_compile) 2>&5
7253 ac_status=$?
7254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; }; then
7256 emul=elf
7257 case `/usr/bin/file conftest.$ac_objext` in
7258 *32-bit*)
7259 emul="${emul}32"
7260 ;;
7261 *64-bit*)
7262 emul="${emul}64"
7263 ;;
7264 esac
7265 case `/usr/bin/file conftest.$ac_objext` in
7266 *MSB*)
7267 emul="${emul}btsmip"
7268 ;;
7269 *LSB*)
7270 emul="${emul}ltsmip"
7271 ;;
7272 esac
7273 case `/usr/bin/file conftest.$ac_objext` in
7274 *N32*)
7275 emul="${emul}n32"
7276 ;;
7277 esac
7278 LD="${LD-ld} -m $emul"
7279 fi
7280 rm -rf conftest*
7281 ;;
7282
7283 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7284 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7285 # Find out what ABI is being produced by ac_compile, and set linker
7286 # options accordingly. Note that the listed cases only cover the
7287 # situations where additional linker options are needed (such as when
7288 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7289 # vice versa); the common cases where no linker options are needed do
7290 # not appear in the list.
7291 echo 'int i;' > conftest.$ac_ext
7292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7293 (eval $ac_compile) 2>&5
7294 ac_status=$?
7295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7296 test $ac_status = 0; }; then
7297 case `/usr/bin/file conftest.o` in
7298 *32-bit*)
7299 case $host in
7300 x86_64-*kfreebsd*-gnu)
7301 LD="${LD-ld} -m elf_i386_fbsd"
7302 ;;
7303 x86_64-*linux*)
7304 case `/usr/bin/file conftest.o` in
7305 *x86-64*)
7306 LD="${LD-ld} -m elf32_x86_64"
7307 ;;
7308 *)
7309 LD="${LD-ld} -m elf_i386"
7310 ;;
7311 esac
7312 ;;
7313 powerpc64le-*linux*)
7314 LD="${LD-ld} -m elf32lppclinux"
7315 ;;
7316 powerpc64-*linux*)
7317 LD="${LD-ld} -m elf32ppclinux"
7318 ;;
7319 s390x-*linux*)
7320 LD="${LD-ld} -m elf_s390"
7321 ;;
7322 sparc64-*linux*)
7323 LD="${LD-ld} -m elf32_sparc"
7324 ;;
7325 esac
7326 ;;
7327 *64-bit*)
7328 case $host in
7329 x86_64-*kfreebsd*-gnu)
7330 LD="${LD-ld} -m elf_x86_64_fbsd"
7331 ;;
7332 x86_64-*linux*)
7333 LD="${LD-ld} -m elf_x86_64"
7334 ;;
7335 powerpcle-*linux*)
7336 LD="${LD-ld} -m elf64lppc"
7337 ;;
7338 powerpc-*linux*)
7339 LD="${LD-ld} -m elf64ppc"
7340 ;;
7341 s390*-*linux*|s390*-*tpf*)
7342 LD="${LD-ld} -m elf64_s390"
7343 ;;
7344 sparc*-*linux*)
7345 LD="${LD-ld} -m elf64_sparc"
7346 ;;
7347 esac
7348 ;;
7349 esac
7350 fi
7351 rm -rf conftest*
7352 ;;
7353
7354 *-*-sco3.2v5*)
7355 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7356 SAVE_CFLAGS=$CFLAGS
7357 CFLAGS="$CFLAGS -belf"
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7359 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7360 if ${lt_cv_cc_needs_belf+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 ac_ext=c
7364 ac_cpp='$CPP $CPPFLAGS'
7365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
7367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7368
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371
7372 int
7373 main ()
7374 {
7375
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_link "$LINENO"; then :
7381 lt_cv_cc_needs_belf=yes
7382 else
7383 lt_cv_cc_needs_belf=no
7384 fi
7385 rm -f core conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
7387 ac_ext=c
7388 ac_cpp='$CPP $CPPFLAGS'
7389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
7391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7392
7393 fi
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7395 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7396 if test yes != "$lt_cv_cc_needs_belf"; then
7397 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7398 CFLAGS=$SAVE_CFLAGS
7399 fi
7400 ;;
7401 *-*solaris*)
7402 # Find out what ABI is being produced by ac_compile, and set linker
7403 # options accordingly.
7404 echo 'int i;' > conftest.$ac_ext
7405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7406 (eval $ac_compile) 2>&5
7407 ac_status=$?
7408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7409 test $ac_status = 0; }; then
7410 case `/usr/bin/file conftest.o` in
7411 *64-bit*)
7412 case $lt_cv_prog_gnu_ld in
7413 yes*)
7414 case $host in
7415 i?86-*-solaris*|x86_64-*-solaris*)
7416 LD="${LD-ld} -m elf_x86_64"
7417 ;;
7418 sparc*-*-solaris*)
7419 LD="${LD-ld} -m elf64_sparc"
7420 ;;
7421 esac
7422 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7423 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7424 LD=${LD-ld}_sol2
7425 fi
7426 ;;
7427 *)
7428 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7429 LD="${LD-ld} -64"
7430 fi
7431 ;;
7432 esac
7433 ;;
7434 esac
7435 fi
7436 rm -rf conftest*
7437 ;;
7438 esac
7439
7440 need_locks=$enable_libtool_lock
7441
7442 if test -n "$ac_tool_prefix"; then
7443 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7444 set dummy ${ac_tool_prefix}mt; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 if test -n "$MANIFEST_TOOL"; then
7451 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7462 break 2
7463 fi
7464 done
7465 done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7471 if test -n "$MANIFEST_TOOL"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7473 $as_echo "$MANIFEST_TOOL" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479
7480 fi
7481 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7482 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7483 # Extract the first word of "mt", so it can be a program name with args.
7484 set dummy mt; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 if test -n "$ac_ct_MANIFEST_TOOL"; then
7491 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496 IFS=$as_save_IFS
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7502 break 2
7503 fi
7504 done
7505 done
7506 IFS=$as_save_IFS
7507
7508 fi
7509 fi
7510 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7511 if test -n "$ac_ct_MANIFEST_TOOL"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7513 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7514 else
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7517 fi
7518
7519 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7520 MANIFEST_TOOL=":"
7521 else
7522 case $cross_compiling:$ac_tool_warned in
7523 yes:)
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
7526 ac_tool_warned=yes ;;
7527 esac
7528 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7529 fi
7530 else
7531 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7532 fi
7533
7534 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifes t tool" >&5
7536 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7537 if ${lt_cv_path_mainfest_tool+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 lt_cv_path_mainfest_tool=no
7541 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7542 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7543 cat conftest.err >&5
7544 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7545 lt_cv_path_mainfest_tool=yes
7546 fi
7547 rm -f conftest*
7548 fi
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7550 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7551 if test yes != "$lt_cv_path_mainfest_tool"; then
7552 MANIFEST_TOOL=:
7553 fi
7554
7555
7556
7557
7558
7559
7560 case $host_os in
7561 rhapsody* | darwin*)
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a progra m name with args.
7564 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 if test -n "$DSYMUTIL"; then
7571 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7575 do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7582 break 2
7583 fi
7584 done
7585 done
7586 IFS=$as_save_IFS
7587
7588 fi
7589 fi
7590 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7591 if test -n "$DSYMUTIL"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7593 $as_echo "$DSYMUTIL" >&6; }
7594 else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598
7599
7600 fi
7601 if test -z "$ac_cv_prog_DSYMUTIL"; then
7602 ac_ct_DSYMUTIL=$DSYMUTIL
7603 # Extract the first word of "dsymutil", so it can be a program name with args.
7604 set dummy dsymutil; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 if test -n "$ac_ct_DSYMUTIL"; then
7611 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7622 break 2
7623 fi
7624 done
7625 done
7626 IFS=$as_save_IFS
7627
7628 fi
7629 fi
7630 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7631 if test -n "$ac_ct_DSYMUTIL"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7633 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7634 else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7637 fi
7638
7639 if test "x$ac_ct_DSYMUTIL" = x; then
7640 DSYMUTIL=":"
7641 else
7642 case $cross_compiling:$ac_tool_warned in
7643 yes:)
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
7646 ac_tool_warned=yes ;;
7647 esac
7648 DSYMUTIL=$ac_ct_DSYMUTIL
7649 fi
7650 else
7651 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7652 fi
7653
7654 if test -n "$ac_tool_prefix"; then
7655 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_prog_NMEDIT+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 if test -n "$NMEDIT"; then
7663 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7664 else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7674 break 2
7675 fi
7676 done
7677 done
7678 IFS=$as_save_IFS
7679
7680 fi
7681 fi
7682 NMEDIT=$ac_cv_prog_NMEDIT
7683 if test -n "$NMEDIT"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7685 $as_echo "$NMEDIT" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7689 fi
7690
7691
7692 fi
7693 if test -z "$ac_cv_prog_NMEDIT"; then
7694 ac_ct_NMEDIT=$NMEDIT
7695 # Extract the first word of "nmedit", so it can be a program name with args.
7696 set dummy nmedit; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 if test -n "$ac_ct_NMEDIT"; then
7703 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7714 break 2
7715 fi
7716 done
7717 done
7718 IFS=$as_save_IFS
7719
7720 fi
7721 fi
7722 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7723 if test -n "$ac_ct_NMEDIT"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7725 $as_echo "$ac_ct_NMEDIT" >&6; }
7726 else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730
7731 if test "x$ac_ct_NMEDIT" = x; then
7732 NMEDIT=":"
7733 else
7734 case $cross_compiling:$ac_tool_warned in
7735 yes:)
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
7738 ac_tool_warned=yes ;;
7739 esac
7740 NMEDIT=$ac_ct_NMEDIT
7741 fi
7742 else
7743 NMEDIT="$ac_cv_prog_NMEDIT"
7744 fi
7745
7746 if test -n "$ac_tool_prefix"; then
7747 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program na me with args.
7748 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if ${ac_cv_prog_LIPO+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 if test -n "$LIPO"; then
7755 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7759 do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7764 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7766 break 2
7767 fi
7768 done
7769 done
7770 IFS=$as_save_IFS
7771
7772 fi
7773 fi
7774 LIPO=$ac_cv_prog_LIPO
7775 if test -n "$LIPO"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7777 $as_echo "$LIPO" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7781 fi
7782
7783
7784 fi
7785 if test -z "$ac_cv_prog_LIPO"; then
7786 ac_ct_LIPO=$LIPO
7787 # Extract the first word of "lipo", so it can be a program name with args.
7788 set dummy lipo; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 if test -n "$ac_ct_LIPO"; then
7795 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804 ac_cv_prog_ac_ct_LIPO="lipo"
7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7806 break 2
7807 fi
7808 done
7809 done
7810 IFS=$as_save_IFS
7811
7812 fi
7813 fi
7814 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7815 if test -n "$ac_ct_LIPO"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7817 $as_echo "$ac_ct_LIPO" >&6; }
7818 else
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7821 fi
7822
7823 if test "x$ac_ct_LIPO" = x; then
7824 LIPO=":"
7825 else
7826 case $cross_compiling:$ac_tool_warned in
7827 yes:)
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
7830 ac_tool_warned=yes ;;
7831 esac
7832 LIPO=$ac_ct_LIPO
7833 fi
7834 else
7835 LIPO="$ac_cv_prog_LIPO"
7836 fi
7837
7838 if test -n "$ac_tool_prefix"; then
7839 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program n ame with args.
7840 set dummy ${ac_tool_prefix}otool; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if ${ac_cv_prog_OTOOL+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 if test -n "$OTOOL"; then
7847 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7858 break 2
7859 fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7863
7864 fi
7865 fi
7866 OTOOL=$ac_cv_prog_OTOOL
7867 if test -n "$OTOOL"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7869 $as_echo "$OTOOL" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 fi
7874
7875
7876 fi
7877 if test -z "$ac_cv_prog_OTOOL"; then
7878 ac_ct_OTOOL=$OTOOL
7879 # Extract the first word of "otool", so it can be a program name with args.
7880 set dummy otool; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 if test -n "$ac_ct_OTOOL"; then
7887 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892 IFS=$as_save_IFS
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896 ac_cv_prog_ac_ct_OTOOL="otool"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7898 break 2
7899 fi
7900 done
7901 done
7902 IFS=$as_save_IFS
7903
7904 fi
7905 fi
7906 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7907 if test -n "$ac_ct_OTOOL"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7909 $as_echo "$ac_ct_OTOOL" >&6; }
7910 else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914
7915 if test "x$ac_ct_OTOOL" = x; then
7916 OTOOL=":"
7917 else
7918 case $cross_compiling:$ac_tool_warned in
7919 yes:)
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
7922 ac_tool_warned=yes ;;
7923 esac
7924 OTOOL=$ac_ct_OTOOL
7925 fi
7926 else
7927 OTOOL="$ac_cv_prog_OTOOL"
7928 fi
7929
7930 if test -n "$ac_tool_prefix"; then
7931 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7932 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if ${ac_cv_prog_OTOOL64+:} false; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 if test -n "$OTOOL64"; then
7939 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7940 else
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7950 break 2
7951 fi
7952 done
7953 done
7954 IFS=$as_save_IFS
7955
7956 fi
7957 fi
7958 OTOOL64=$ac_cv_prog_OTOOL64
7959 if test -n "$OTOOL64"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7961 $as_echo "$OTOOL64" >&6; }
7962 else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964 $as_echo "no" >&6; }
7965 fi
7966
7967
7968 fi
7969 if test -z "$ac_cv_prog_OTOOL64"; then
7970 ac_ct_OTOOL64=$OTOOL64
7971 # Extract the first word of "otool64", so it can be a program name with args.
7972 set dummy otool64; ac_word=$2
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974 $as_echo_n "checking for $ac_word... " >&6; }
7975 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 if test -n "$ac_ct_OTOOL64"; then
7979 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7980 else
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 for as_dir in $PATH
7983 do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
7986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988 ac_cv_prog_ac_ct_OTOOL64="otool64"
7989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
7990 break 2
7991 fi
7992 done
7993 done
7994 IFS=$as_save_IFS
7995
7996 fi
7997 fi
7998 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7999 if test -n "$ac_ct_OTOOL64"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8001 $as_echo "$ac_ct_OTOOL64" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007 if test "x$ac_ct_OTOOL64" = x; then
8008 OTOOL64=":"
8009 else
8010 case $cross_compiling:$ac_tool_warned in
8011 yes:)
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2 ;}
8014 ac_tool_warned=yes ;;
8015 esac
8016 OTOOL64=$ac_ct_OTOOL64
8017 fi
8018 else
8019 OTOOL64="$ac_cv_prog_OTOOL64"
8020 fi
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5790 $as_echo_n "checking for -single_module linker flag... " >&6; } 8049 $as_echo_n "checking for -single_module linker flag... " >&6; }
5791 if ${lt_cv_apple_cc_single_mod+:} false; then : 8050 if ${lt_cv_apple_cc_single_mod+:} false; then :
5792 $as_echo_n "(cached) " >&6 8051 $as_echo_n "(cached) " >&6
5793 else 8052 else
5794 lt_cv_apple_cc_single_mod=no 8053 lt_cv_apple_cc_single_mod=no
5795 if test -z "${LT_MULTI_MODULE}"; then 8054 if test -z "$LT_MULTI_MODULE"; then
5796 # By default we will add the -single_module flag. You can override 8055 # By default we will add the -single_module flag. You can override
5797 # by either setting the environment variable LT_MULTI_MODULE 8056 # by either setting the environment variable LT_MULTI_MODULE
5798 # non-empty at configure time, or by adding -multi_module to the 8057 # non-empty at configure time, or by adding -multi_module to the
5799 # link flags. 8058 # link flags.
5800 rm -rf libconftest.dylib* 8059 rm -rf libconftest.dylib*
5801 echo "int foo(void){return 1;}" > conftest.c 8060 echo "int foo(void){return 1;}" > conftest.c
5802 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8061 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5803 -dynamiclib -Wl,-single_module conftest.c" >&5 8062 -dynamiclib -Wl,-single_module conftest.c" >&5
5804 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8063 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5805 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8064 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5806 _lt_result=$? 8065 _lt_result=$?
5807 » if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_resu lt = 0; then 8066 » # If there is a non-empty error log, and "single_module"
8067 » # appears in it, assume the flag caused a linker warning
8068 if test -s conftest.err && $GREP single_module conftest.err; then
8069 » cat conftest.err >&5
8070 » # Otherwise, if the output was created with a 0 exit code from
8071 » # the compiler, it worked.
8072 » elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
5808 lt_cv_apple_cc_single_mod=yes 8073 lt_cv_apple_cc_single_mod=yes
5809 else 8074 else
5810 cat conftest.err >&5 8075 cat conftest.err >&5
5811 fi 8076 fi
5812 rm -rf libconftest.dylib* 8077 rm -rf libconftest.dylib*
5813 rm -f conftest.* 8078 rm -f conftest.*
5814 fi 8079 fi
5815 fi 8080 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5817 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8082 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8083
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5819 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8085 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5820 if ${lt_cv_ld_exported_symbols_list+:} false; then : 8086 if ${lt_cv_ld_exported_symbols_list+:} false; then :
5821 $as_echo_n "(cached) " >&6 8087 $as_echo_n "(cached) " >&6
5822 else 8088 else
5823 lt_cv_ld_exported_symbols_list=no 8089 lt_cv_ld_exported_symbols_list=no
5824 save_LDFLAGS=$LDFLAGS 8090 save_LDFLAGS=$LDFLAGS
5825 echo "_main" > conftest.sym 8091 echo "_main" > conftest.sym
5826 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8092 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */ 8094 /* end confdefs.h. */
5829 8095
5830 int 8096 int
5831 main () 8097 main ()
5832 { 8098 {
5833 8099
5834 ; 8100 ;
5835 return 0; 8101 return 0;
5836 } 8102 }
5837 _ACEOF 8103 _ACEOF
5838 if ac_fn_c_try_link "$LINENO"; then : 8104 if ac_fn_c_try_link "$LINENO"; then :
5839 lt_cv_ld_exported_symbols_list=yes 8105 lt_cv_ld_exported_symbols_list=yes
5840 else 8106 else
5841 lt_cv_ld_exported_symbols_list=no 8107 lt_cv_ld_exported_symbols_list=no
5842 fi 8108 fi
5843 rm -f core conftest.err conftest.$ac_objext \ 8109 rm -f core conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext 8110 conftest$ac_exeext conftest.$ac_ext
5845 » LDFLAGS="$save_LDFLAGS" 8111 » LDFLAGS=$save_LDFLAGS
5846 8112
5847 fi 8113 fi
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list " >&5 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list " >&5
5849 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8115 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8116
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker fla g" >&5
8118 $as_echo_n "checking for -force_load linker flag... " >&6; }
8119 if ${lt_cv_ld_force_load+:} false; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 lt_cv_ld_force_load=no
8123 cat > conftest.c << _LT_EOF
8124 int forced_loaded() { return 2;}
8125 _LT_EOF
8126 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8127 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8128 echo "$AR cru libconftest.a conftest.o" >&5
8129 $AR cru libconftest.a conftest.o 2>&5
8130 echo "$RANLIB libconftest.a" >&5
8131 $RANLIB libconftest.a 2>&5
8132 cat > conftest.c << _LT_EOF
8133 int main() { return 0;}
8134 _LT_EOF
8135 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./li bconftest.a" >&5
8136 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconft est.a 2>conftest.err
8137 _lt_result=$?
8138 if test -s conftest.err && $GREP force_load conftest.err; then
8139 cat conftest.err >&5
8140 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conft est >/dev/null 2>&1; then
8141 lt_cv_ld_force_load=yes
8142 else
8143 cat conftest.err >&5
8144 fi
8145 rm -f conftest.err libconftest.a conftest conftest.c
8146 rm -rf conftest.dSYM
8147
8148 fi
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8150 $as_echo "$lt_cv_ld_force_load" >&6; }
5850 case $host_os in 8151 case $host_os in
5851 rhapsody* | darwin1.[012]) 8152 rhapsody* | darwin1.[012])
5852 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8153 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
5853 darwin1.*) 8154 darwin1.*)
5854 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppres s' ;; 8155 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ; ;
5855 darwin*) # darwin 5.x on 8156 darwin*) # darwin 5.x on
5856 # if running on 10.5 or later, the deployment target defaults 8157 # if running on 10.5 or later, the deployment target defaults
5857 # to the OS version, if on x86, and 10.4, the deployment 8158 # to the OS version, if on x86, and 10.4, the deployment
5858 # target defaults to 10.4. Don't you love it? 8159 # target defaults to 10.4. Don't you love it?
5859 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8160 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5860 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8161 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5861 » _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8162 » _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
5862 » 10.[012]*) 8163 » 10.[012][,.]*)
5863 » _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}sup press' ;; 8164 » _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppres s' ;;
5864 10.*) 8165 10.*)
5865 » _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8166 » _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
5866 esac 8167 esac
5867 ;; 8168 ;;
5868 esac 8169 esac
5869 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8170 if test yes = "$lt_cv_apple_cc_single_mod"; then
5870 _lt_dar_single_mod='$single_module' 8171 _lt_dar_single_mod='$single_module'
5871 fi 8172 fi
5872 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8173 if test yes = "$lt_cv_ld_exported_symbols_list"; then
5873 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname }-symbols.expsym' 8174 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-sy mbols.expsym'
5874 else 8175 else
5875 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8176 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $l ib'
5876 fi 8177 fi
5877 if test "$DSYMUTIL" != ":"; then 8178 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
5878 _lt_dsymutil='~$DSYMUTIL $lib || :' 8179 _lt_dsymutil='~$DSYMUTIL $lib || :'
5879 else 8180 else
5880 _lt_dsymutil= 8181 _lt_dsymutil=
5881 fi 8182 fi
5882 ;; 8183 ;;
5883 esac 8184 esac
5884 8185
5885 ac_ext=c 8186 # func_munge_path_list VARIABLE PATH
5886 ac_cpp='$CPP $CPPFLAGS' 8187 # -----------------------------------
5887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8188 # VARIABLE is name of variable containing _space_ separated list of
5888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' 8189 # directories to be munged by the contents of PATH, which is string
5889 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8190 # having a format:
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8191 # "DIR[:DIR]:"
5891 $as_echo_n "checking how to run the C preprocessor... " >&6; } 8192 # string "DIR[ DIR]" will be prepended to VARIABLE
5892 # On Suns, sometimes $CPP names a directory. 8193 # ":DIR[:DIR]"
5893 if test -n "$CPP" && test -d "$CPP"; then 8194 # string "DIR[ DIR]" will be appended to VARIABLE
5894 CPP= 8195 # "DIRP[:DIRP]::[DIRA:]DIRA"
5895 fi 8196 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
5896 if test -z "$CPP"; then 8197 # "DIRA[ DIRA]" will be appended to VARIABLE
5897 if ${ac_cv_prog_CPP+:} false; then : 8198 # "DIR[:DIR]"
5898 $as_echo_n "(cached) " >&6 8199 # VARIABLE will be replaced by "DIR[ DIR]"
5899 else 8200 func_munge_path_list ()
5900 # Double quotes because CPP needs to be expanded 8201 {
5901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8202 case x$2 in
5902 do 8203 x)
5903 ac_preproc_ok=false 8204 ;;
5904 for ac_c_preproc_warn_flag in '' yes 8205 *:)
5905 do 8206 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
5906 # Use a header file that comes with gcc, so configuring glibc 8207 ;;
5907 # with a fresh cross-compiler works. 8208 x:*)
5908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8209 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
5909 # <limits.h> exists even on freestanding compilers. 8210 ;;
5910 # On the NeXT, cc -E runs the code through the compiler's parser, 8211 *::*)
5911 # not just through cpp. "Syntax error" is here to catch this case. 8212 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8213 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
5913 /* end confdefs.h. */ 8214 ;;
5914 #ifdef __STDC__ 8215 *)
5915 # include <limits.h> 8216 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
5916 #else 8217 ;;
5917 # include <assert.h> 8218 esac
5918 #endif 8219 }
5919 » » Syntax error
5920 _ACEOF
5921 if ac_fn_c_try_cpp "$LINENO"; then :
5922
5923 else
5924 # Broken: fails on valid input.
5925 continue
5926 fi
5927 rm -f conftest.err conftest.i conftest.$ac_ext
5928
5929 # OK, works on sane cases. Now check whether nonexistent headers
5930 # can be detected and how.
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 #include <ac_nonexistent.h>
5934 _ACEOF
5935 if ac_fn_c_try_cpp "$LINENO"; then :
5936 # Broken: success on invalid input.
5937 continue
5938 else
5939 # Passes both tests.
5940 ac_preproc_ok=:
5941 break
5942 fi
5943 rm -f conftest.err conftest.i conftest.$ac_ext
5944
5945 done
5946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5947 rm -f conftest.i conftest.err conftest.$ac_ext
5948 if $ac_preproc_ok; then :
5949 break
5950 fi
5951
5952 done
5953 ac_cv_prog_CPP=$CPP
5954
5955 fi
5956 CPP=$ac_cv_prog_CPP
5957 else
5958 ac_cv_prog_CPP=$CPP
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5961 $as_echo "$CPP" >&6; }
5962 ac_preproc_ok=false
5963 for ac_c_preproc_warn_flag in '' yes
5964 do
5965 # Use a header file that comes with gcc, so configuring glibc
5966 # with a fresh cross-compiler works.
5967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968 # <limits.h> exists even on freestanding compilers.
5969 # On the NeXT, cc -E runs the code through the compiler's parser,
5970 # not just through cpp. "Syntax error" is here to catch this case.
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 #ifdef __STDC__
5974 # include <limits.h>
5975 #else
5976 # include <assert.h>
5977 #endif
5978 » » Syntax error
5979 _ACEOF
5980 if ac_fn_c_try_cpp "$LINENO"; then :
5981
5982 else
5983 # Broken: fails on valid input.
5984 continue
5985 fi
5986 rm -f conftest.err conftest.i conftest.$ac_ext
5987
5988 # OK, works on sane cases. Now check whether nonexistent headers
5989 # can be detected and how.
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <ac_nonexistent.h>
5993 _ACEOF
5994 if ac_fn_c_try_cpp "$LINENO"; then :
5995 # Broken: success on invalid input.
5996 continue
5997 else
5998 # Passes both tests.
5999 ac_preproc_ok=:
6000 break
6001 fi
6002 rm -f conftest.err conftest.i conftest.$ac_ext
6003
6004 done
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.i conftest.err conftest.$ac_ext
6007 if $ac_preproc_ok; then :
6008
6009 else
6010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6013 See \`config.log' for more details" "$LINENO" 5; }
6014 fi
6015
6016 ac_ext=c
6017 ac_cpp='$CPP $CPPFLAGS'
6018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021 8220
6022 8221
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6024 $as_echo_n "checking for ANSI C header files... " >&6; } 8223 $as_echo_n "checking for ANSI C header files... " >&6; }
6025 if ${ac_cv_header_stdc+:} false; then : 8224 if ${ac_cv_header_stdc+:} false; then :
6026 $as_echo_n "(cached) " >&6 8225 $as_echo_n "(cached) " >&6
6027 else 8226 else
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */ 8228 /* end confdefs.h. */
6030 #include <stdlib.h> 8229 #include <stdlib.h>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
6157 cat >>confdefs.h <<_ACEOF 8356 cat >>confdefs.h <<_ACEOF
6158 #define HAVE_DLFCN_H 1 8357 #define HAVE_DLFCN_H 1
6159 _ACEOF 8358 _ACEOF
6160 8359
6161 fi 8360 fi
6162 8361
6163 done 8362 done
6164 8363
6165 8364
6166 8365
8366
8367
6167 # Set options 8368 # Set options
6168 8369
6169 8370
6170 8371
6171 enable_dlopen=no 8372 enable_dlopen=no
6172 8373
6173 8374
6174 enable_win32_dll=no 8375 enable_win32_dll=no
6175 8376
6176 8377
6177 # Check whether --enable-shared was given. 8378 # Check whether --enable-shared was given.
6178 if test "${enable_shared+set}" = set; then : 8379 if test "${enable_shared+set}" = set; then :
6179 enableval=$enable_shared; p=${PACKAGE-default} 8380 enableval=$enable_shared; p=${PACKAGE-default}
6180 case $enableval in 8381 case $enableval in
6181 yes) enable_shared=yes ;; 8382 yes) enable_shared=yes ;;
6182 no) enable_shared=no ;; 8383 no) enable_shared=no ;;
6183 *) 8384 *)
6184 enable_shared=no 8385 enable_shared=no
6185 # Look at the argument we got. We use all the common list separators. 8386 # Look at the argument we got. We use all the common list separators.
6186 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8387 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6187 for pkg in $enableval; do 8388 for pkg in $enableval; do
6188 » IFS="$lt_save_ifs" 8389 » IFS=$lt_save_ifs
6189 if test "X$pkg" = "X$p"; then 8390 if test "X$pkg" = "X$p"; then
6190 enable_shared=yes 8391 enable_shared=yes
6191 fi 8392 fi
6192 done 8393 done
6193 IFS="$lt_save_ifs" 8394 IFS=$lt_save_ifs
6194 ;; 8395 ;;
6195 esac 8396 esac
6196 else 8397 else
6197 enable_shared=yes 8398 enable_shared=yes
6198 fi 8399 fi
6199 8400
6200 8401
6201 8402
8403
8404
8405
8406
8407
8408
8409 # Check whether --enable-static was given.
8410 if test "${enable_static+set}" = set; then :
8411 enableval=$enable_static; p=${PACKAGE-default}
8412 case $enableval in
8413 yes) enable_static=yes ;;
8414 no) enable_static=no ;;
8415 *)
8416 enable_static=no
8417 # Look at the argument we got. We use all the common list separators.
8418 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8419 for pkg in $enableval; do
8420 IFS=$lt_save_ifs
8421 if test "X$pkg" = "X$p"; then
8422 enable_static=yes
8423 fi
8424 done
8425 IFS=$lt_save_ifs
8426 ;;
8427 esac
8428 else
8429 enable_static=yes
8430 fi
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441 # Check whether --with-pic was given.
8442 if test "${with_pic+set}" = set; then :
8443 withval=$with_pic; lt_p=${PACKAGE-default}
8444 case $withval in
8445 yes|no) pic_mode=$withval ;;
8446 *)
8447 pic_mode=default
8448 # Look at the argument we got. We use all the common list separators.
8449 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8450 for lt_pkg in $withval; do
8451 IFS=$lt_save_ifs
8452 if test "X$lt_pkg" = "X$lt_p"; then
8453 pic_mode=yes
8454 fi
8455 done
8456 IFS=$lt_save_ifs
8457 ;;
8458 esac
8459 else
8460 pic_mode=default
8461 fi
8462
8463
8464
8465
8466
8467
8468
8469
8470 # Check whether --enable-fast-install was given.
8471 if test "${enable_fast_install+set}" = set; then :
8472 enableval=$enable_fast_install; p=${PACKAGE-default}
8473 case $enableval in
8474 yes) enable_fast_install=yes ;;
8475 no) enable_fast_install=no ;;
8476 *)
8477 enable_fast_install=no
8478 # Look at the argument we got. We use all the common list separators.
8479 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8480 for pkg in $enableval; do
8481 IFS=$lt_save_ifs
8482 if test "X$pkg" = "X$p"; then
8483 enable_fast_install=yes
8484 fi
8485 done
8486 IFS=$lt_save_ifs
8487 ;;
8488 esac
8489 else
8490 enable_fast_install=yes
8491 fi
8492
8493
8494
8495
8496
8497
8498
8499
8500 shared_archive_member_spec=
8501 case $host,$enable_shared in
8502 power*-*-aix[5-9]*,yes)
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared libr ary versioning to provide" >&5
8504 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8505
8506 # Check whether --with-aix-soname was given.
8507 if test "${with_aix_soname+set}" = set; then :
8508 withval=$with_aix_soname; case $withval in
8509 aix|svr4|both)
8510 ;;
8511 *)
8512 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8513 ;;
8514 esac
8515 lt_cv_with_aix_soname=$with_aix_soname
8516 else
8517 if ${lt_cv_with_aix_soname+:} false; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8520 lt_cv_with_aix_soname=aix
8521 fi
8522
8523 with_aix_soname=$lt_cv_with_aix_soname
8524 fi
8525
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8527 $as_echo "$with_aix_soname" >&6; }
8528 if test aix != "$with_aix_soname"; then
8529 # For the AIX way of multilib, we name the shared archive member
8530 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8531 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8532 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8533 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8534 if test 64 = "${OBJECT_MODE-32}"; then
8535 shared_archive_member_spec=shr_64
8536 else
8537 shared_archive_member_spec=shr
8538 fi
8539 fi
8540 ;;
8541 *)
8542 with_aix_soname=aix
8543 ;;
8544 esac
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555 # This can be used to rebuild libtool when needed
8556 LIBTOOL_DEPS=$ltmain
8557
8558 # Always use our own libtool.
8559 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590 test -z "$LN_S" && LN_S="ln -s"
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605 if test -n "${ZSH_VERSION+set}"; then
8606 setopt NO_GLOB_SUBST
8607 fi
8608
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8610 $as_echo_n "checking for objdir... " >&6; }
8611 if ${lt_cv_objdir+:} false; then :
8612 $as_echo_n "(cached) " >&6
8613 else
8614 rm -f .libs 2>/dev/null
8615 mkdir .libs 2>/dev/null
8616 if test -d .libs; then
8617 lt_cv_objdir=.libs
8618 else
8619 # MS-DOS does not allow filenames that begin with a dot.
8620 lt_cv_objdir=_libs
8621 fi
8622 rmdir .libs 2>/dev/null
8623 fi
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8625 $as_echo "$lt_cv_objdir" >&6; }
8626 objdir=$lt_cv_objdir
8627
8628
8629
8630
8631
8632 cat >>confdefs.h <<_ACEOF
8633 #define LT_OBJDIR "$lt_cv_objdir/"
8634 _ACEOF
8635
8636
8637
8638
8639 case $host_os in
8640 aix3*)
8641 # AIX sometimes has problems with the GCC collect2 program. For some
8642 # reason, if we set the COLLECT_NAMES environment variable, the problems
8643 # vanish in a puff of smoke.
8644 if test set != "${COLLECT_NAMES+set}"; then
8645 COLLECT_NAMES=
8646 export COLLECT_NAMES
8647 fi
8648 ;;
8649 esac
8650
8651 # Global variables:
8652 ofile=libtool
8653 can_build_shared=yes
8654
8655 # All known linkers require a '.a' archive for static linking (except MSVC,
8656 # which needs '.lib').
8657 libext=a
8658
8659 with_gnu_ld=$lt_cv_prog_gnu_ld
8660
8661 old_CC=$CC
8662 old_CFLAGS=$CFLAGS
8663
8664 # Set sane defaults for various variables
8665 test -z "$CC" && CC=cc
8666 test -z "$LTCC" && LTCC=$CC
8667 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8668 test -z "$LD" && LD=ld
8669 test -z "$ac_objext" && ac_objext=o
8670
8671 func_cc_basename $compiler
8672 cc_basename=$func_cc_basename_result
8673
8674
8675 # Only perform the check for file, if the check method requires it
8676 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8677 case $deplibs_check_method in
8678 file_magic*)
8679 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8681 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8682 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 case $MAGIC_CMD in
8686 [\\/*] | ?:[\\/]*)
8687 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8688 ;;
8689 *)
8690 lt_save_MAGIC_CMD=$MAGIC_CMD
8691 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8692 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8693 for ac_dir in $ac_dummy; do
8694 IFS=$lt_save_ifs
8695 test -z "$ac_dir" && ac_dir=.
8696 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8697 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8698 if test -n "$file_magic_test_file"; then
8699 case $deplibs_check_method in
8700 "file_magic "*)
8701 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8702 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8703 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8704 $EGREP "$file_magic_regex" > /dev/null; then
8705 :
8706 else
8707 cat <<_LT_EOF 1>&2
8708
8709 *** Warning: the command libtool uses to detect shared libraries,
8710 *** $file_magic_cmd, produces output that libtool cannot recognize.
8711 *** The result is that libtool may fail to recognize shared libraries
8712 *** as such. This will affect the creation of libtool libraries that
8713 *** depend on shared libraries, but programs linked with such libtool
8714 *** libraries will work regardless of this problem. Nevertheless, you
8715 *** may want to report the problem to your system manager and/or to
8716 *** bug-libtool@gnu.org
8717
8718 _LT_EOF
8719 fi ;;
8720 esac
8721 fi
8722 break
8723 fi
8724 done
8725 IFS=$lt_save_ifs
8726 MAGIC_CMD=$lt_save_MAGIC_CMD
8727 ;;
8728 esac
8729 fi
8730
8731 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8732 if test -n "$MAGIC_CMD"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8734 $as_echo "$MAGIC_CMD" >&6; }
8735 else
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8738 fi
8739
8740
8741
8742
8743
8744 if test -z "$lt_cv_path_MAGIC_CMD"; then
8745 if test -n "$ac_tool_prefix"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8747 $as_echo_n "checking for file... " >&6; }
8748 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 case $MAGIC_CMD in
8752 [\\/*] | ?:[\\/]*)
8753 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8754 ;;
8755 *)
8756 lt_save_MAGIC_CMD=$MAGIC_CMD
8757 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8759 for ac_dir in $ac_dummy; do
8760 IFS=$lt_save_ifs
8761 test -z "$ac_dir" && ac_dir=.
8762 if test -f "$ac_dir/file"; then
8763 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8764 if test -n "$file_magic_test_file"; then
8765 case $deplibs_check_method in
8766 "file_magic "*)
8767 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8768 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8770 $EGREP "$file_magic_regex" > /dev/null; then
8771 :
8772 else
8773 cat <<_LT_EOF 1>&2
8774
8775 *** Warning: the command libtool uses to detect shared libraries,
8776 *** $file_magic_cmd, produces output that libtool cannot recognize.
8777 *** The result is that libtool may fail to recognize shared libraries
8778 *** as such. This will affect the creation of libtool libraries that
8779 *** depend on shared libraries, but programs linked with such libtool
8780 *** libraries will work regardless of this problem. Nevertheless, you
8781 *** may want to report the problem to your system manager and/or to
8782 *** bug-libtool@gnu.org
8783
8784 _LT_EOF
8785 fi ;;
8786 esac
8787 fi
8788 break
8789 fi
8790 done
8791 IFS=$lt_save_ifs
8792 MAGIC_CMD=$lt_save_MAGIC_CMD
8793 ;;
8794 esac
8795 fi
8796
8797 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8798 if test -n "$MAGIC_CMD"; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8800 $as_echo "$MAGIC_CMD" >&6; }
8801 else
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803 $as_echo "no" >&6; }
8804 fi
8805
8806
8807 else
8808 MAGIC_CMD=:
8809 fi
8810 fi
8811
8812 fi
8813 ;;
8814 esac
8815
8816 # Use C for the default configuration in the libtool script
8817
8818 lt_save_CC=$CC
8819 ac_ext=c
8820 ac_cpp='$CPP $CPPFLAGS'
8821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
8823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8824
8825
8826 # Source file extension for C test sources.
8827 ac_ext=c
8828
8829 # Object file extension for compiled C test sources.
8830 objext=o
8831 objext=$objext
8832
8833 # Code to be used in simple compile tests
8834 lt_simple_compile_test_code="int some_variable = 0;"
8835
8836 # Code to be used in simple link tests
8837 lt_simple_link_test_code='int main(){return(0);}'
8838
8839
8840
8841
8842
8843
8844
8845 # If no C compiler was specified, use CC.
8846 LTCC=${LTCC-"$CC"}
8847
8848 # If no C compiler flags were specified, use CFLAGS.
8849 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8850
8851 # Allow CC to be a program name with arguments.
8852 compiler=$CC
8853
8854 # Save the default compiler, since it gets overwritten when the other
8855 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8856 compiler_DEFAULT=$CC
8857
8858 # save warnings/boilerplate of simple test code
8859 ac_outfile=conftest.$ac_objext
8860 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8861 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8862 _lt_compiler_boilerplate=`cat conftest.err`
8863 $RM conftest*
8864
8865 ac_outfile=conftest.$ac_objext
8866 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8867 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8868 _lt_linker_boilerplate=`cat conftest.err`
8869 $RM -r conftest*
8870
8871
8872 ## CAVEAT EMPTOR:
8873 ## There is no encapsulation within the following macros, do not change
8874 ## the running order or otherwise move them around unless you know exactly
8875 ## what you are doing...
8876 if test -n "$compiler"; then
8877
8878 lt_prog_compiler_no_builtin_flag=
8879
8880 if test yes = "$GCC"; then
8881 case $cc_basename in
8882 nvcc*)
8883 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8884 *)
8885 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8886 esac
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-r tti -fno-exceptions" >&5
8889 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8890 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 lt_cv_prog_compiler_rtti_exceptions=no
8894 ac_outfile=conftest.$ac_objext
8895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8896 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quot es_in_assignment
8897 # Insert the option either (1) after the last *FLAGS variable, or
8898 # (2) before a word containing "conftest.", or (3) at the end.
8899 # Note that $ac_compile itself does not contain backslashes and begins
8900 # with a dollar sign (not a hyphen), so the echo should work correctly.
8901 # The option is referenced via a variable to avoid confusing sed.
8902 lt_compile=`echo "$ac_compile" | $SED \
8903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8905 -e 's:$: $lt_compiler_flag:'`
8906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8907 (eval "$lt_compile" 2>conftest.err)
8908 ac_status=$?
8909 cat conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 if (exit $ac_status) && test -s "$ac_outfile"; then
8912 # The compiler can only warn and ignore the option if not recognized
8913 # So say no if there are warnings other than the usual output.
8914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
8917 lt_cv_prog_compiler_rtti_exceptions=yes
8918 fi
8919 fi
8920 $RM conftest*
8921
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_excep tions" >&5
8924 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8925
8926 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8927 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtt i -fno-exceptions"
8928 else
8929 :
8930 fi
8931
8932 fi
8933
8934
8935
8936
8937
8938
8939 lt_prog_compiler_wl=
8940 lt_prog_compiler_pic=
8941 lt_prog_compiler_static=
8942
8943
8944 if test yes = "$GCC"; then
8945 lt_prog_compiler_wl='-Wl,'
8946 lt_prog_compiler_static='-static'
8947
8948 case $host_os in
8949 aix*)
8950 # All AIX code is PIC.
8951 if test ia64 = "$host_cpu"; then
8952 # AIX 5 now supports IA64 processor
8953 lt_prog_compiler_static='-Bstatic'
8954 fi
8955 lt_prog_compiler_pic='-fPIC'
8956 ;;
8957
8958 amigaos*)
8959 case $host_cpu in
8960 powerpc)
8961 # see comment about AmigaOS4 .so support
8962 lt_prog_compiler_pic='-fPIC'
8963 ;;
8964 m68k)
8965 # FIXME: we need at least 68020 code to build shared libraries, but
8966 # adding the '-m68020' flag to GCC prevents building anything better ,
8967 # like '-m68040'.
8968 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8969 ;;
8970 esac
8971 ;;
8972
8973 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8974 # PIC is the default for these OSes.
8975 ;;
8976
8977 mingw* | cygwin* | pw32* | os2* | cegcc*)
8978 # This hack is so that the source file can tell whether it is being
8979 # built for inclusion in a dll (and should export symbols for example).
8980 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8981 # (--disable-auto-import) libraries
8982 lt_prog_compiler_pic='-DDLL_EXPORT'
8983 case $host_os in
8984 os2*)
8985 lt_prog_compiler_static='$wl-static'
8986 ;;
8987 esac
8988 ;;
8989
8990 darwin* | rhapsody*)
8991 # PIC is the default on this platform
8992 # Common symbols not allowed in MH_DYLIB files
8993 lt_prog_compiler_pic='-fno-common'
8994 ;;
8995
8996 haiku*)
8997 # PIC is the default for Haiku.
8998 # The "-static" flag exists, but is broken.
8999 lt_prog_compiler_static=
9000 ;;
9001
9002 hpux*)
9003 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9004 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9005 # sets the default TLS model and affects inlining.
9006 case $host_cpu in
9007 hppa*64*)
9008 # +Z the default
9009 ;;
9010 *)
9011 lt_prog_compiler_pic='-fPIC'
9012 ;;
9013 esac
9014 ;;
9015
9016 interix[3-9]*)
9017 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9018 # Instead, we relocate shared libraries at runtime.
9019 ;;
9020
9021 msdosdjgpp*)
9022 # Just because we use GCC doesn't mean we suddenly get shared libraries
9023 # on systems that don't support them.
9024 lt_prog_compiler_can_build_shared=no
9025 enable_shared=no
9026 ;;
9027
9028 *nto* | *qnx*)
9029 # QNX uses GNU C++, but need to define -shared option too, otherwise
9030 # it will coredump.
9031 lt_prog_compiler_pic='-fPIC -shared'
9032 ;;
9033
9034 sysv4*MP*)
9035 if test -d /usr/nec; then
9036 lt_prog_compiler_pic=-Kconform_pic
9037 fi
9038 ;;
9039
9040 *)
9041 lt_prog_compiler_pic='-fPIC'
9042 ;;
9043 esac
9044
9045 case $cc_basename in
9046 nvcc*) # Cuda Compiler Driver 2.2
9047 lt_prog_compiler_wl='-Xlinker '
9048 if test -n "$lt_prog_compiler_pic"; then
9049 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9050 fi
9051 ;;
9052 esac
9053 else
9054 # PORTME Check for flag to pass linker flags through the system compiler.
9055 case $host_os in
9056 aix*)
9057 lt_prog_compiler_wl='-Wl,'
9058 if test ia64 = "$host_cpu"; then
9059 # AIX 5 now supports IA64 processor
9060 lt_prog_compiler_static='-Bstatic'
9061 else
9062 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9063 fi
9064 ;;
9065
9066 darwin* | rhapsody*)
9067 # PIC is the default on this platform
9068 # Common symbols not allowed in MH_DYLIB files
9069 lt_prog_compiler_pic='-fno-common'
9070 case $cc_basename in
9071 nagfor*)
9072 # NAG Fortran compiler
9073 lt_prog_compiler_wl='-Wl,-Wl,,'
9074 lt_prog_compiler_pic='-PIC'
9075 lt_prog_compiler_static='-Bstatic'
9076 ;;
9077 esac
9078 ;;
9079
9080 mingw* | cygwin* | pw32* | os2* | cegcc*)
9081 # This hack is so that the source file can tell whether it is being
9082 # built for inclusion in a dll (and should export symbols for example).
9083 lt_prog_compiler_pic='-DDLL_EXPORT'
9084 case $host_os in
9085 os2*)
9086 lt_prog_compiler_static='$wl-static'
9087 ;;
9088 esac
9089 ;;
9090
9091 hpux9* | hpux10* | hpux11*)
9092 lt_prog_compiler_wl='-Wl,'
9093 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9094 # not for PA HP-UX.
9095 case $host_cpu in
9096 hppa*64*|ia64*)
9097 # +Z the default
9098 ;;
9099 *)
9100 lt_prog_compiler_pic='+Z'
9101 ;;
9102 esac
9103 # Is there a better lt_prog_compiler_static that works with the bundled CC ?
9104 lt_prog_compiler_static='$wl-a ${wl}archive'
9105 ;;
9106
9107 irix5* | irix6* | nonstopux*)
9108 lt_prog_compiler_wl='-Wl,'
9109 # PIC (with -KPIC) is the default.
9110 lt_prog_compiler_static='-non_shared'
9111 ;;
9112
9113 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9114 case $cc_basename in
9115 # old Intel for x86_64, which still supported -KPIC.
9116 ecc*)
9117 lt_prog_compiler_wl='-Wl,'
9118 lt_prog_compiler_pic='-KPIC'
9119 lt_prog_compiler_static='-static'
9120 ;;
9121 # icc used to be incompatible with GCC.
9122 # ICC 10 doesn't accept -KPIC any more.
9123 icc* | ifort*)
9124 lt_prog_compiler_wl='-Wl,'
9125 lt_prog_compiler_pic='-fPIC'
9126 lt_prog_compiler_static='-static'
9127 ;;
9128 # Lahey Fortran 8.1.
9129 lf95*)
9130 lt_prog_compiler_wl='-Wl,'
9131 lt_prog_compiler_pic='--shared'
9132 lt_prog_compiler_static='--static'
9133 ;;
9134 nagfor*)
9135 # NAG Fortran compiler
9136 lt_prog_compiler_wl='-Wl,-Wl,,'
9137 lt_prog_compiler_pic='-PIC'
9138 lt_prog_compiler_static='-Bstatic'
9139 ;;
9140 tcc*)
9141 # Fabrice Bellard et al's Tiny C Compiler
9142 lt_prog_compiler_wl='-Wl,'
9143 lt_prog_compiler_pic='-fPIC'
9144 lt_prog_compiler_static='-static'
9145 ;;
9146 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9147 # Portland Group compilers (*not* the Pentium gcc compiler,
9148 # which looks to be a dead project)
9149 lt_prog_compiler_wl='-Wl,'
9150 lt_prog_compiler_pic='-fpic'
9151 lt_prog_compiler_static='-Bstatic'
9152 ;;
9153 ccc*)
9154 lt_prog_compiler_wl='-Wl,'
9155 # All Alpha code is PIC.
9156 lt_prog_compiler_static='-non_shared'
9157 ;;
9158 xl* | bgxl* | bgf* | mpixl*)
9159 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9160 lt_prog_compiler_wl='-Wl,'
9161 lt_prog_compiler_pic='-qpic'
9162 lt_prog_compiler_static='-qstaticlink'
9163 ;;
9164 *)
9165 case `$CC -V 2>&1 | sed 5q` in
9166 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]* )
9167 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9168 lt_prog_compiler_pic='-KPIC'
9169 lt_prog_compiler_static='-Bstatic'
9170 lt_prog_compiler_wl=''
9171 ;;
9172 *Sun\ F* | *Sun*Fortran*)
9173 lt_prog_compiler_pic='-KPIC'
9174 lt_prog_compiler_static='-Bstatic'
9175 lt_prog_compiler_wl='-Qoption ld '
9176 ;;
9177 *Sun\ C*)
9178 # Sun C 5.9
9179 lt_prog_compiler_pic='-KPIC'
9180 lt_prog_compiler_static='-Bstatic'
9181 lt_prog_compiler_wl='-Wl,'
9182 ;;
9183 *Intel*\ [CF]*Compiler*)
9184 lt_prog_compiler_wl='-Wl,'
9185 lt_prog_compiler_pic='-fPIC'
9186 lt_prog_compiler_static='-static'
9187 ;;
9188 *Portland\ Group*)
9189 lt_prog_compiler_wl='-Wl,'
9190 lt_prog_compiler_pic='-fpic'
9191 lt_prog_compiler_static='-Bstatic'
9192 ;;
9193 esac
9194 ;;
9195 esac
9196 ;;
9197
9198 newsos6)
9199 lt_prog_compiler_pic='-KPIC'
9200 lt_prog_compiler_static='-Bstatic'
9201 ;;
9202
9203 *nto* | *qnx*)
9204 # QNX uses GNU C++, but need to define -shared option too, otherwise
9205 # it will coredump.
9206 lt_prog_compiler_pic='-fPIC -shared'
9207 ;;
9208
9209 osf3* | osf4* | osf5*)
9210 lt_prog_compiler_wl='-Wl,'
9211 # All OSF/1 code is PIC.
9212 lt_prog_compiler_static='-non_shared'
9213 ;;
9214
9215 rdos*)
9216 lt_prog_compiler_static='-non_shared'
9217 ;;
9218
9219 solaris*)
9220 lt_prog_compiler_pic='-KPIC'
9221 lt_prog_compiler_static='-Bstatic'
9222 case $cc_basename in
9223 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9224 lt_prog_compiler_wl='-Qoption ld ';;
9225 *)
9226 lt_prog_compiler_wl='-Wl,';;
9227 esac
9228 ;;
9229
9230 sunos4*)
9231 lt_prog_compiler_wl='-Qoption ld '
9232 lt_prog_compiler_pic='-PIC'
9233 lt_prog_compiler_static='-Bstatic'
9234 ;;
9235
9236 sysv4 | sysv4.2uw2* | sysv4.3*)
9237 lt_prog_compiler_wl='-Wl,'
9238 lt_prog_compiler_pic='-KPIC'
9239 lt_prog_compiler_static='-Bstatic'
9240 ;;
9241
9242 sysv4*MP*)
9243 if test -d /usr/nec; then
9244 lt_prog_compiler_pic='-Kconform_pic'
9245 lt_prog_compiler_static='-Bstatic'
9246 fi
9247 ;;
9248
9249 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9250 lt_prog_compiler_wl='-Wl,'
9251 lt_prog_compiler_pic='-KPIC'
9252 lt_prog_compiler_static='-Bstatic'
9253 ;;
9254
9255 unicos*)
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_can_build_shared=no
9258 ;;
9259
9260 uts4*)
9261 lt_prog_compiler_pic='-pic'
9262 lt_prog_compiler_static='-Bstatic'
9263 ;;
9264
9265 *)
9266 lt_prog_compiler_can_build_shared=no
9267 ;;
9268 esac
9269 fi
9270
9271 case $host_os in
9272 # For platforms that do not support PIC, -DPIC is meaningless:
9273 *djgpp*)
9274 lt_prog_compiler_pic=
9275 ;;
9276 *)
9277 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9278 ;;
9279 esac
9280
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produc e PIC" >&5
9282 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9283 if ${lt_cv_prog_compiler_pic+:} false; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9287 fi
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9289 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9290 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9291
9292 #
9293 # Check to make sure the PIC flag actually works.
9294 #
9295 if test -n "$lt_prog_compiler_pic"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_pr og_compiler_pic works" >&5
9297 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9298 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 lt_cv_prog_compiler_pic_works=no
9302 ac_outfile=conftest.$ac_objext
9303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9304 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_qu otes_in_assignment
9305 # Insert the option either (1) after the last *FLAGS variable, or
9306 # (2) before a word containing "conftest.", or (3) at the end.
9307 # Note that $ac_compile itself does not contain backslashes and begins
9308 # with a dollar sign (not a hyphen), so the echo should work correctly.
9309 # The option is referenced via a variable to avoid confusing sed.
9310 lt_compile=`echo "$ac_compile" | $SED \
9311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9313 -e 's:$: $lt_compiler_flag:'`
9314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9315 (eval "$lt_compile" 2>conftest.err)
9316 ac_status=$?
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 if (exit $ac_status) && test -s "$ac_outfile"; then
9320 # The compiler can only warn and ignore the option if not recognized
9321 # So say no if there are warnings other than the usual output.
9322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
9325 lt_cv_prog_compiler_pic_works=yes
9326 fi
9327 fi
9328 $RM conftest*
9329
9330 fi
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9332 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9333
9334 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9335 case $lt_prog_compiler_pic in
9336 "" | " "*) ;;
9337 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9338 esac
9339 else
9340 lt_prog_compiler_pic=
9341 lt_prog_compiler_can_build_shared=no
9342 fi
9343
9344 fi
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356 #
9357 # Check to make sure the static flag actually works.
9358 #
9359 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_t mp_static_flag works" >&5
9361 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6 ; }
9362 if ${lt_cv_prog_compiler_static_works+:} false; then :
9363 $as_echo_n "(cached) " >&6
9364 else
9365 lt_cv_prog_compiler_static_works=no
9366 save_LDFLAGS=$LDFLAGS
9367 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9368 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9369 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9370 # The linker can only warn and ignore the option if not recognized
9371 # So say no if there are warnings
9372 if test -s conftest.err; then
9373 # Append any errors to the config.log.
9374 cat conftest.err 1>&5
9375 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9377 if diff conftest.exp conftest.er2 >/dev/null; then
9378 lt_cv_prog_compiler_static_works=yes
9379 fi
9380 else
9381 lt_cv_prog_compiler_static_works=yes
9382 fi
9383 fi
9384 $RM -r conftest*
9385 LDFLAGS=$save_LDFLAGS
9386
9387 fi
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_wor ks" >&5
9389 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9390
9391 if test yes = "$lt_cv_prog_compiler_static_works"; then
9392 :
9393 else
9394 lt_prog_compiler_static=
9395 fi
9396
9397
9398
9399
9400
9401
9402
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9405 if ${lt_cv_prog_compiler_c_o+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 lt_cv_prog_compiler_c_o=no
9409 $RM -r conftest 2>/dev/null
9410 mkdir conftest
9411 cd conftest
9412 mkdir out
9413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9414
9415 lt_compiler_flag="-o out/conftest2.$ac_objext"
9416 # Insert the option either (1) after the last *FLAGS variable, or
9417 # (2) before a word containing "conftest.", or (3) at the end.
9418 # Note that $ac_compile itself does not contain backslashes and begins
9419 # with a dollar sign (not a hyphen), so the echo should work correctly.
9420 lt_compile=`echo "$ac_compile" | $SED \
9421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9423 -e 's:$: $lt_compiler_flag:'`
9424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9425 (eval "$lt_compile" 2>out/conftest.err)
9426 ac_status=$?
9427 cat out/conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9430 then
9431 # The compiler can only warn and ignore the option if not recognized
9432 # So say no if there are warnings
9433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
9436 lt_cv_prog_compiler_c_o=yes
9437 fi
9438 fi
9439 chmod u+w . 2>&5
9440 $RM conftest*
9441 # SGI C++ compiler will create directory out/ii_files/ for
9442 # template instantiation
9443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9444 $RM out/* && rmdir out
9445 cd ..
9446 $RM -r conftest
9447 $RM conftest*
9448
9449 fi
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9451 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9452
9453
9454
9455
9456
9457
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9459 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9460 if ${lt_cv_prog_compiler_c_o+:} false; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 lt_cv_prog_compiler_c_o=no
9464 $RM -r conftest 2>/dev/null
9465 mkdir conftest
9466 cd conftest
9467 mkdir out
9468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9469
9470 lt_compiler_flag="-o out/conftest2.$ac_objext"
9471 # Insert the option either (1) after the last *FLAGS variable, or
9472 # (2) before a word containing "conftest.", or (3) at the end.
9473 # Note that $ac_compile itself does not contain backslashes and begins
9474 # with a dollar sign (not a hyphen), so the echo should work correctly.
9475 lt_compile=`echo "$ac_compile" | $SED \
9476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9478 -e 's:$: $lt_compiler_flag:'`
9479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9480 (eval "$lt_compile" 2>out/conftest.err)
9481 ac_status=$?
9482 cat out/conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9485 then
9486 # The compiler can only warn and ignore the option if not recognized
9487 # So say no if there are warnings
9488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
9491 lt_cv_prog_compiler_c_o=yes
9492 fi
9493 fi
9494 chmod u+w . 2>&5
9495 $RM conftest*
9496 # SGI C++ compiler will create directory out/ii_files/ for
9497 # template instantiation
9498 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9499 $RM out/* && rmdir out
9500 cd ..
9501 $RM -r conftest
9502 $RM conftest*
9503
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9506 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9507
9508
9509
9510
9511 hard_links=nottested
9512 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9513 # do not overwrite the value of need_locks provided by the user
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard lin ks" >&5
9515 $as_echo_n "checking if we can lock with hard links... " >&6; }
9516 hard_links=yes
9517 $RM conftest*
9518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9519 touch conftest.a
9520 ln conftest.a conftest.b 2>&5 || hard_links=no
9521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9523 $as_echo "$hard_links" >&6; }
9524 if test no = "$hard_links"; then
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9526 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be u nsafe" >&2;}
9527 need_locks=warn
9528 fi
9529 else
9530 need_locks=no
9531 fi
9532
9533
9534
9535
9536
9537
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie s... " >&6; }
9540
9541 runpath_var=
9542 allow_undefined_flag=
9543 always_export_symbols=no
9544 archive_cmds=
9545 archive_expsym_cmds=
9546 compiler_needs_object=no
9547 enable_shared_with_static_runtimes=no
9548 export_dynamic_flag_spec=
9549 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\ ''s/.* //'\'' | sort | uniq > $export_symbols'
9550 hardcode_automatic=no
9551 hardcode_direct=no
9552 hardcode_direct_absolute=no
9553 hardcode_libdir_flag_spec=
9554 hardcode_libdir_separator=
9555 hardcode_minus_L=no
9556 hardcode_shlibpath_var=unsupported
9557 inherit_rpath=no
9558 link_all_deplibs=unknown
9559 module_cmds=
9560 module_expsym_cmds=
9561 old_archive_from_new_cmds=
9562 old_archive_from_expsyms_cmds=
9563 thread_safe_flag_spec=
9564 whole_archive_flag_spec=
9565 # include_expsyms should be a list of space-separated symbols to be *always*
9566 # included in the symbol list
9567 include_expsyms=
9568 # exclude_expsyms can be an extended regexp of symbols to exclude
9569 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9570 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9571 # as well as any symbol that contains 'd'.
9572 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9573 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9574 # platforms (ab)use it in PIC code, but their linkers get confused if
9575 # the symbol is explicitly referenced. Since portable code cannot
9576 # rely on this symbol name, it's probably fine to never include it in
9577 # preloaded symbol tables.
9578 # Exclude shared library initialization/finalization symbols.
9579 extract_expsyms_cmds=
9580
9581 case $host_os in
9582 cygwin* | mingw* | pw32* | cegcc*)
9583 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9584 # When not using gcc, we currently assume that we are using
9585 # Microsoft Visual C++.
9586 if test yes != "$GCC"; then
9587 with_gnu_ld=no
9588 fi
9589 ;;
9590 interix*)
9591 # we just hope/assume this is gcc and not c89 (= MSVC++)
9592 with_gnu_ld=yes
9593 ;;
9594 openbsd* | bitrig*)
9595 with_gnu_ld=no
9596 ;;
9597 esac
9598
9599 ld_shlibs=yes
9600
9601 # On some targets, GNU ld is compatible enough with the native linker
9602 # that we're better off using the native interface for both.
9603 lt_use_gnu_ld_interface=no
9604 if test yes = "$with_gnu_ld"; then
9605 case $host_os in
9606 aix*)
9607 # The AIX port of GNU ld has always aspired to compatibility
9608 # with the native linker. However, as the warning in the GNU ld
9609 # block says, versions before 2.19.5* couldn't really create working
9610 # shared libraries, regardless of the interface used.
9611 case `$LD -v 2>&1` in
9612 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9613 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9614 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9615 *)
9616 lt_use_gnu_ld_interface=yes
9617 ;;
9618 esac
9619 ;;
9620 *)
9621 lt_use_gnu_ld_interface=yes
9622 ;;
9623 esac
9624 fi
9625
9626 if test yes = "$lt_use_gnu_ld_interface"; then
9627 # If archive_cmds runs LD, not CC, wlarc should be empty
9628 wlarc='$wl'
9629
9630 # Set some defaults for GNU ld with shared library support. These
9631 # are reset later if shared libraries are not supported. Putting them
9632 # here allows them to be overridden if necessary.
9633 runpath_var=LD_RUN_PATH
9634 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9635 export_dynamic_flag_spec='$wl--export-dynamic'
9636 # ancient GNU ld didn't support --whole-archive et. al.
9637 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9638 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-wh ole-archive'
9639 else
9640 whole_archive_flag_spec=
9641 fi
9642 supports_anon_versioning=no
9643 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9644 *GNU\ gold*) supports_anon_versioning=yes ;;
9645 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9646 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9647 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9648 *\ 2.11.*) ;; # other 2.11 versions
9649 *) supports_anon_versioning=yes ;;
9650 esac
9651
9652 # See if GNU ld supports shared libraries.
9653 case $host_os in
9654 aix[3-9]*)
9655 # On AIX/PPC, the GNU linker is very broken
9656 if test ia64 != "$host_cpu"; then
9657 ld_shlibs=no
9658 cat <<_LT_EOF 1>&2
9659
9660 *** Warning: the GNU linker, at least up to release 2.19, is reported
9661 *** to be unable to reliably create shared libraries on AIX.
9662 *** Therefore, libtool is disabling shared libraries support. If you
9663 *** really care for shared libraries, you may want to install binutils
9664 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9665 *** You will then need to restart the configuration process.
9666
9667 _LT_EOF
9668 fi
9669 ;;
9670
9671 amigaos*)
9672 case $host_cpu in
9673 powerpc)
9674 # see comment about AmigaOS4 .so support
9675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-sona me $wl$soname -o $lib'
9676 archive_expsym_cmds=''
9677 ;;
9678 m68k)
9679 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a 2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary .data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9680 hardcode_libdir_flag_spec='-L$libdir'
9681 hardcode_minus_L=yes
9682 ;;
9683 esac
9684 ;;
9685
9686 beos*)
9687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9688 allow_undefined_flag=unsupported
9689 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9690 # support --undefined. This deserves some investigation. FIXME
9691 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9692 else
9693 ld_shlibs=no
9694 fi
9695 ;;
9696
9697 cygwin* | mingw* | pw32* | cegcc*)
9698 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9699 # as there is no search path for DLLs.
9700 hardcode_libdir_flag_spec='-L$libdir'
9701 export_dynamic_flag_spec='$wl--export-all-symbols'
9702 allow_undefined_flag=unsupported
9703 always_export_symbols=no
9704 enable_shared_with_static_runtimes=yes
9705 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SE D -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]* /\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9706 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A -Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9707
9708 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_o bjdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9710 # If the export-symbols file already is a .def file, use it as
9711 # is; otherwise, prepend EXPORTS...
9712 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\' ' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$ /DEF/p'\'' -e q $export_symbols`" ; then
9713 cp $export_symbols $output_objdir/$soname.def;
9714 else
9715 echo EXPORTS > $output_objdir/$soname.def;
9716 cat $export_symbols >> $output_objdir/$soname.def;
9717 fi~
9718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xl inker $lib'
9719 else
9720 ld_shlibs=no
9721 fi
9722 ;;
9723
9724 haiku*)
9725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl $soname -o $lib'
9726 link_all_deplibs=yes
9727 ;;
9728
9729 os2*)
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_minus_L=yes
9732 allow_undefined_flag=unsupported
9733 shrext_cmds=.dll
9734 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTAN CE" > $output_objdir/$libname.def~
9735 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9736 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9737 $ECHO EXPORTS >> $output_objdir/$libname.def~
9738 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def ~
9739 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler _flags $output_objdir/$libname.def~
9740 emximp -o $lib $output_objdir/$libname.def'
9741 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TER MINSTANCE" > $output_objdir/$libname.def~
9742 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9743 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9744 $ECHO EXPORTS >> $output_objdir/$libname.def~
9745 prefix_cmds="$SED"~
9746 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9747 prefix_cmds="$prefix_cmds -e 1d";
9748 fi~
9749 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9750 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9751 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler _flags $output_objdir/$libname.def~
9752 emximp -o $lib $output_objdir/$libname.def'
9753 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $outp ut_objdir/$libname.def'
9754 enable_shared_with_static_runtimes=yes
9755 ;;
9756
9757 interix[3-9]*)
9758 hardcode_direct=no
9759 hardcode_shlibpath_var=no
9760 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9761 export_dynamic_flag_spec='$wl-E'
9762 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9763 # Instead, shared libraries are loaded at an image base (0x10000000 by
9764 # default) and relocated if they conflict, which is a slow very memory
9765 # consuming and fragmenting process. To avoid this, we pick a random,
9766 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9767 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9768 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl- h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9769 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname. expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl --retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RAND OM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9770 ;;
9771
9772 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9773 tmp_diet=no
9774 if test linux-dietlibc = "$host_os"; then
9775 case $cc_basename in
9776 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d iet-dyn)
9777 esac
9778 fi
9779 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9780 && test no = "$tmp_diet"
9781 then
9782 tmp_addflag=' $pic_flag'
9783 tmp_sharedflag='-shared'
9784 case $cc_basename,$host_cpu in
9785 pgcc*) # Portland Group C compiler
9786 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\" \"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; f unc_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9787 tmp_addflag=' $pic_flag'
9788 ;;
9789 pgf77* | pgf90* | pgf95* | pgfortran*)
9790 # Portland Group f77 and f90 compilers
9791 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\" \"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; f unc_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9792 tmp_addflag=' $pic_flag -Mnomain' ;;
9793 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9794 tmp_addflag=' -i_dynamic' ;;
9795 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9796 tmp_addflag=' -i_dynamic -nofor_main' ;;
9797 ifc* | ifort*) # Intel Fortran compiler
9798 tmp_addflag=' -nofor_main' ;;
9799 lf95*) # Lahey Fortran 8.1
9800 whole_archive_flag_spec=
9801 tmp_sharedflag='--shared' ;;
9802 nagfor*) # NAGFOR 5.3
9803 tmp_sharedflag='-Wl,-shared' ;;
9804 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf b elow)
9805 tmp_sharedflag='-qmkshrobj'
9806 tmp_addflag= ;;
9807 nvcc*) # Cuda Compiler Driver 2.2
9808 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\" \"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; f unc_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9809 compiler_needs_object=yes
9810 ;;
9811 esac
9812 case `$CC -V 2>&1 | sed 5q` in
9813 *Sun\ C*) # Sun C 5.9
9814 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience ,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9815 compiler_needs_object=yes
9816 tmp_sharedflag='-G' ;;
9817 *Sun\ F*) # Sun Fortran 8.3
9818 tmp_sharedflag='-G' ;;
9819 esac
9820 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $c ompiler_flags $wl-soname $wl$soname -o $lib'
9821
9822 if test yes = "$supports_anon_versioning"; then
9823 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn ame.ver~
9825 echo "local: *; };" >> $output_objdir/$libname.ver~
9826 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_fl ags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $ lib'
9827 fi
9828
9829 case $cc_basename in
9830 tcc*)
9831 export_dynamic_flag_spec='-rdynamic'
9832 ;;
9833 xlf* | bgf* | bgxlf* | mpixlf*)
9834 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9835 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archiv e'
9836 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9837 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $son ame -o $lib'
9838 if test yes = "$supports_anon_versioning"; then
9839 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li bname.ver~
9841 echo "local: *; };" >> $output_objdir/$libname.ver~
9842 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -versi on-script $output_objdir/$libname.ver -o $lib'
9843 fi
9844 ;;
9845 esac
9846 else
9847 ld_shlibs=no
9848 fi
9849 ;;
9850
9851 netbsd*)
9852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9853 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9854 wlarc=
9855 else
9856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $w l-soname $wl$soname -o $lib'
9857 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_f lags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9858 fi
9859 ;;
9860
9861 solaris*)
9862 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9863 ld_shlibs=no
9864 cat <<_LT_EOF 1>&2
9865
9866 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9867 *** create shared libraries on Solaris systems. Therefore, libtool
9868 *** is disabling shared libraries support. We urge you to upgrade GNU
9869 *** binutils to release 2.9.1 or newer. Another option is to modify
9870 *** your PATH or compiler configuration so that the native linker is
9871 *** used, and then restart.
9872
9873 _LT_EOF
9874 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the n
9875 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $w l-soname $wl$soname -o $lib'
9876 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_f lags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9877 else
9878 ld_shlibs=no
9879 fi
9880 ;;
9881
9882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9883 case `$LD -v 2>&1` in
9884 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9885 ld_shlibs=no
9886 cat <<_LT_EOF 1>&2
9887
9888 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9889 *** reliably create shared libraries on SCO systems. Therefore, libtool
9890 *** is disabling shared libraries support. We urge you to upgrade GNU
9891 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9892 *** your PATH or compiler configuration so that the native linker is
9893 *** used, and then restart.
9894
9895 _LT_EOF
9896 ;;
9897 *)
9898 # For security reasons, it is highly recommended that you always
9899 # use absolute paths for naming shared libraries, and exclude the
9900 # DT_RUNPATH tag from executables and libraries. But doing so
9901 # requires that you compile everything twice, which is a pain.
9902 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; t hen
9903 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-sona me $wl$soname -o $lib'
9905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9906 else
9907 ld_shlibs=no
9908 fi
9909 ;;
9910 esac
9911 ;;
9912
9913 sunos4*)
9914 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9915 wlarc=
9916 hardcode_direct=yes
9917 hardcode_shlibpath_var=no
9918 ;;
9919
9920 *)
9921 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9922 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $w l-soname $wl$soname -o $lib'
9923 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_f lags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9924 else
9925 ld_shlibs=no
9926 fi
9927 ;;
9928 esac
9929
9930 if test no = "$ld_shlibs"; then
9931 runpath_var=
9932 hardcode_libdir_flag_spec=
9933 export_dynamic_flag_spec=
9934 whole_archive_flag_spec=
9935 fi
9936 else
9937 # PORTME fill in a description of your system's linker (not GNU ld)
9938 case $host_os in
9939 aix3*)
9940 allow_undefined_flag=unsupported
9941 always_export_symbols=yes
9942 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $link er_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objd ir/$soname'
9943 # Note: this linker hardcodes the directories in LIBPATH if there
9944 # are no directories specified by -L.
9945 hardcode_minus_L=yes
9946 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9947 # Neither direct hardcoding nor static linking is supported with a
9948 # broken collect2.
9949 hardcode_direct=unsupported
9950 fi
9951 ;;
9952
9953 aix[4-9]*)
9954 if test ia64 = "$host_cpu"; then
9955 # On IA64, the linker does run time linking by default, so we don't
9956 # have to do anything special.
9957 aix_use_runtimelinking=no
9958 exp_sym_flag='-Bexport'
9959 no_entry_flag=
9960 else
9961 # If we're using GNU nm, then we don't want the "-C" option.
9962 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9963 # Without the "-l" option, or with the "-B" option, AIX nm treats
9964 # weak defined symbols like other global defined symbols, whereas
9965 # GNU nm marks them as "W".
9966 # While the 'weak' keyword is ignored in the Export File, we need
9967 # it in the Import File for the 'aix-soname' feature, so we have
9968 # to replace the "-B" option with "-P" for AIX nm.
9969 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9970 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if ((( \$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3 ,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } } '\'' | sort -u > $export_symbols'
9971 else
9972 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\ 1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (su bstr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9973 fi
9974 aix_use_runtimelinking=no
9975
9976 # Test if we are trying to use run time linking or normal
9977 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9978 # have runtime linking enabled, and use it for executables.
9979 # For shared libraries, we enable/disable runtime linking
9980 # depending on the kind of the shared library created -
9981 # when "with_aix_soname,aix_use_runtimelinking" is:
9982 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9983 # "aix,yes" lib.so shared, rtl:yes, for executables
9984 # lib.a static archive
9985 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9986 # lib.a(lib.so.V) shared, rtl:no, for executables
9987 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9988 # lib.a(lib.so.V) shared, rtl:no
9989 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9990 # lib.a static archive
9991 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9992 for ld_flag in $LDFLAGS; do
9993 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9994 aix_use_runtimelinking=yes
9995 break
9996 fi
9997 done
9998 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9999 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10000 # so we don't have lib.a shared libs to link our executables.
10001 # We have to force runtime linking in this case.
10002 aix_use_runtimelinking=yes
10003 LDFLAGS="$LDFLAGS -Wl,-brtl"
10004 fi
10005 ;;
10006 esac
10007
10008 exp_sym_flag='-bexport'
10009 no_entry_flag='-bnoentry'
10010 fi
10011
10012 # When large executables or shared objects are built, AIX ld can
10013 # have problems creating the table of contents. If linking a library
10014 # or program results in "error TOC overflow" add -mminimal-toc to
10015 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10016 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10017
10018 archive_cmds=''
10019 hardcode_direct=yes
10020 hardcode_direct_absolute=yes
10021 hardcode_libdir_separator=':'
10022 link_all_deplibs=yes
10023 file_list_spec='$wl-f,'
10024 case $with_aix_soname,$aix_use_runtimelinking in
10025 aix,*) ;; # traditional, no import file
10026 svr4,* | *,yes) # use import file
10027 # The Import File defines what to hardcode.
10028 hardcode_direct=no
10029 hardcode_direct_absolute=no
10030 ;;
10031 esac
10032
10033 if test yes = "$GCC"; then
10034 case $host_os in aix4.[012]|aix4.[012].*)
10035 # We only want to do this on AIX 4.2 and lower, the check
10036 # below for broken collect2 doesn't work under 4.3+
10037 collect2name=`$CC -print-prog-name=collect2`
10038 if test -f "$collect2name" &&
10039 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10040 then
10041 # We have reworked collect2
10042 :
10043 else
10044 # We have old collect2
10045 hardcode_direct=unsupported
10046 # It fails to find uninstalled libraries when the uninstalled
10047 # path is not listed in the libpath. Setting hardcode_minus_L
10048 # to unsupported forces relinking
10049 hardcode_minus_L=yes
10050 hardcode_libdir_flag_spec='-L$libdir'
10051 hardcode_libdir_separator=
10052 fi
10053 ;;
10054 esac
10055 shared_flag='-shared'
10056 if test yes = "$aix_use_runtimelinking"; then
10057 shared_flag="$shared_flag "'$wl-G'
10058 fi
10059 # Need to ensure runtime linking is disabled for the traditional
10060 # shared library, or the linker may eventually find shared libraries
10061 # /with/ Import File - we do not want to mix them.
10062 shared_flag_aix='-shared'
10063 shared_flag_svr4='-shared $wl-G'
10064 else
10065 # not using gcc
10066 if test ia64 = "$host_cpu"; then
10067 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10068 # chokes on -Wl,-G. The following line is correct:
10069 shared_flag='-G'
10070 else
10071 if test yes = "$aix_use_runtimelinking"; then
10072 shared_flag='$wl-G'
10073 else
10074 shared_flag='$wl-bM:SRE'
10075 fi
10076 shared_flag_aix='$wl-bM:SRE'
10077 shared_flag_svr4='$wl-G'
10078 fi
10079 fi
10080
10081 export_dynamic_flag_spec='$wl-bexpall'
10082 # It seems that -bexpall does not export symbols beginning with
10083 # underscore (_), so it is better to generate a list of symbols to export.
10084 always_export_symbols=yes
10085 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10086 # Warning - without using the other runtime loading flags (-brtl),
10087 # -berok will link without error, but may produce a broken library.
10088 allow_undefined_flag='-berok'
10089 # Determine the default libpath from the value encoded in an
10090 # empty executable.
10091 if test set = "${lt_cv_aix_libpath+set}"; then
10092 aix_libpath=$lt_cv_aix_libpath
10093 else
10094 if ${lt_cv_aix_libpath_+:} false; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h. */
10099
10100 int
10101 main ()
10102 {
10103
10104 ;
10105 return 0;
10106 }
10107 _ACEOF
10108 if ac_fn_c_try_link "$LINENO"; then :
10109
10110 lt_aix_libpath_sed='
10111 /Import File Strings/,/^$/ {
10112 /^0/ {
10113 s/^0 *\([^ ]*\) *$/\1/
10114 p
10115 }
10116 }'
10117 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a ix_libpath_sed"`
10118 # Check for a 64-bit object if we didn't find anything.
10119 if test -z "$lt_cv_aix_libpath_"; then
10120 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e " $lt_aix_libpath_sed"`
10121 fi
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 if test -z "$lt_cv_aix_libpath_"; then
10126 lt_cv_aix_libpath_=/usr/lib:/lib
10127 fi
10128
10129 fi
10130
10131 aix_libpath=$lt_cv_aix_libpath_
10132 fi
10133
10134 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10135 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl '$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_ echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symb ols' '$shared_flag
10136 else
10137 if test ia64 = "$host_cpu"; then
10138 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10139 allow_undefined_flag="-z nodefs"
10140 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag ' "\$wl$exp_sym_flag:\$export_symbols"
10141 else
10142 # Determine the default libpath from the value encoded in an
10143 # empty executable.
10144 if test set = "${lt_cv_aix_libpath+set}"; then
10145 aix_libpath=$lt_cv_aix_libpath
10146 else
10147 if ${lt_cv_aix_libpath_+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149 else
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152
10153 int
10154 main ()
10155 {
10156
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_c_try_link "$LINENO"; then :
10162
10163 lt_aix_libpath_sed='
10164 /Import File Strings/,/^$/ {
10165 /^0/ {
10166 s/^0 *\([^ ]*\) *$/\1/
10167 p
10168 }
10169 }'
10170 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_a ix_libpath_sed"`
10171 # Check for a 64-bit object if we didn't find anything.
10172 if test -z "$lt_cv_aix_libpath_"; then
10173 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e " $lt_aix_libpath_sed"`
10174 fi
10175 fi
10176 rm -f core conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
10178 if test -z "$lt_cv_aix_libpath_"; then
10179 lt_cv_aix_libpath_=/usr/lib:/lib
10180 fi
10181
10182 fi
10183
10184 aix_libpath=$lt_cv_aix_libpath_
10185 fi
10186
10187 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10188 # Warning - without using the other run time loading flags,
10189 # -berok will link without error, but may produce a broken library.
10190 no_undefined_flag=' $wl-bernotok'
10191 allow_undefined_flag=' $wl-berok'
10192 if test yes = "$with_gnu_ld"; then
10193 # We only use this code for GNU lds that support --whole-archive.
10194 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whol e-archive'
10195 else
10196 # Exported symbols can be pulled into shared objects from archives
10197 whole_archive_flag_spec='$convenience'
10198 fi
10199 archive_cmds_need_lc=yes
10200 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_ objdir/$realname.d'
10201 # -brtl affects multiple linker settings, -berok does not and is overr idden later
10202 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e " s%-brtl\\([, ]\\)%-berok\\1%g"`'
10203 if test svr4 != "$with_aix_soname"; then
10204 # This is similar to how AIX traditionally builds its shared librari es.
10205 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' - o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_f lags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_ objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10206 fi
10207 if test aix != "$with_aix_soname"; then
10208 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $w l-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag ~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_ all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archi ve_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $ export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$A R $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_me mber_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10209 else
10210 # used by -dlpreopen to get the symbols
10211 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$rea lname.d/$soname $output_objdir'
10212 fi
10213 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$rea lname.d'
10214 fi
10215 fi
10216 ;;
10217
10218 amigaos*)
10219 case $host_cpu in
10220 powerpc)
10221 # see comment about AmigaOS4 .so support
10222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-sona me $wl$soname -o $lib'
10223 archive_expsym_cmds=''
10224 ;;
10225 m68k)
10226 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a 2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary .data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10227 hardcode_libdir_flag_spec='-L$libdir'
10228 hardcode_minus_L=yes
10229 ;;
10230 esac
10231 ;;
10232
10233 bsdi[45]*)
10234 export_dynamic_flag_spec=-rdynamic
10235 ;;
10236
10237 cygwin* | mingw* | pw32* | cegcc*)
10238 # When not using gcc, we currently assume that we are using
10239 # Microsoft Visual C++.
10240 # hardcode_libdir_flag_spec is actually meaningless, as there is
10241 # no search path for DLLs.
10242 case $cc_basename in
10243 cl*)
10244 # Native MSVC
10245 hardcode_libdir_flag_spec=' '
10246 allow_undefined_flag=unsupported
10247 always_export_symbols=yes
10248 file_list_spec='@'
10249 # Tell ltmain to make .lib files, not .a files.
10250 libext=lib
10251 # Tell ltmain to make .dll files, not .so files.
10252 shrext_cmds=.dll
10253 # FIXME: Setting linknames here is a bad hack.
10254 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $de plibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10255 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\' ' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$ /DEF/p'\'' -e q $export_symbols`" ; then
10256 cp "$export_symbols" "$output_objdir/$soname.def";
10257 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp" ;
10258 else
10259 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objd ir/$soname.exp;
10260 fi~
10261 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@ $tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dl l.lib"~
10262 linknames='
10263 # The linker will not automatically build a static lib if we build a DLL .
10264 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10265 enable_shared_with_static_runtimes=yes
10266 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10267 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $ SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ] /s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10268 # Don't use ranlib
10269 old_postinstall_cmds='chmod 644 $oldlib'
10270 postlink_cmds='lt_outputfile="@OUTPUT@"~
10271 lt_tool_outputfile="@TOOL_OUTPUT@"~
10272 case $lt_outputfile in
10273 *.exe|*.EXE) ;;
10274 *)
10275 lt_outputfile=$lt_outputfile.exe
10276 lt_tool_outputfile=$lt_tool_outputfile.exe
10277 ;;
10278 esac~
10279 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; th en
10280 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresou rce:"$lt_tool_outputfile" || exit 1;
10281 $RM "$lt_outputfile.manifest";
10282 fi'
10283 ;;
10284 *)
10285 # Assume MSVC wrapper
10286 hardcode_libdir_flag_spec=' '
10287 allow_undefined_flag=unsupported
10288 # Tell ltmain to make .lib files, not .a files.
10289 libext=lib
10290 # Tell ltmain to make .dll files, not .so files.
10291 shrext_cmds=.dll
10292 # FIXME: Setting linknames here is a bad hack.
10293 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$depl ibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10294 # The linker will automatically build a .lib file if we build a DLL.
10295 old_archive_from_new_cmds='true'
10296 # FIXME: Should let the user specify the lib program.
10297 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10298 enable_shared_with_static_runtimes=yes
10299 ;;
10300 esac
10301 ;;
10302
10303 darwin* | rhapsody*)
10304
10305
10306 archive_cmds_need_lc=no
10307 hardcode_direct=no
10308 hardcode_automatic=yes
10309 hardcode_shlibpath_var=unsupported
10310 if test yes = "$lt_cv_ld_force_load"; then
10311 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\ " && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_ all \"$new_convenience\"`'
10312
10313 else
10314 whole_archive_flag_spec=''
10315 fi
10316 link_all_deplibs=yes
10317 allow_undefined_flag=$_lt_dar_allow_undefined
10318 case $cc_basename in
10319 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10320 *) _lt_dar_can_shared=$GCC ;;
10321 esac
10322 if test yes = "$_lt_dar_can_shared"; then
10323 output_verbose_link_cmd=func_echo_all
10324 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$d eplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_sing le_mod$_lt_dsymutil"
10325 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplib s \$compiler_flags$_lt_dsymutil"
10326 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$lib name-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \ $deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_si ngle_mod$_lt_dar_export_syms$_lt_dsymutil"
10327 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$l ibname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$d eplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10328
10329 else
10330 ld_shlibs=no
10331 fi
10332
10333 ;;
10334
10335 dgux*)
10336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337 hardcode_libdir_flag_spec='-L$libdir'
10338 hardcode_shlibpath_var=no
10339 ;;
10340
10341 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10342 # support. Future versions do this automatically, but an explicit c++rt0.o
10343 # does not break anything, and helps significantly (at the cost of a little
10344 # extra space).
10345 freebsd2.2*)
10346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr /lib/c++rt0.o'
10347 hardcode_libdir_flag_spec='-R$libdir'
10348 hardcode_direct=yes
10349 hardcode_shlibpath_var=no
10350 ;;
10351
10352 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10353 freebsd2.*)
10354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_direct=yes
10356 hardcode_minus_L=yes
10357 hardcode_shlibpath_var=no
10358 ;;
10359
10360 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10361 freebsd* | dragonfly*)
10362 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_fl ags'
10363 hardcode_libdir_flag_spec='-R$libdir'
10364 hardcode_direct=yes
10365 hardcode_shlibpath_var=no
10366 ;;
10367
10368 hpux9*)
10369 if test yes = "$GCC"; then
10370 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl $install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10371 else
10372 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $o utput_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$sona me" = "x$lib" || mv $output_objdir/$soname $lib'
10373 fi
10374 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10375 hardcode_libdir_separator=:
10376 hardcode_direct=yes
10377
10378 # hardcode_minus_L: Not really in the search PATH,
10379 # but as the default location of the library.
10380 hardcode_minus_L=yes
10381 export_dynamic_flag_spec='$wl-E'
10382 ;;
10383
10384 hpux10*)
10385 if test yes,no = "$GCC,$with_gnu_ld"; then
10386 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_l ibdir -o $lib $libobjs $deplibs $compiler_flags'
10387 else
10388 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $dep libs $linker_flags'
10389 fi
10390 if test no = "$with_gnu_ld"; then
10391 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10392 hardcode_libdir_separator=:
10393 hardcode_direct=yes
10394 hardcode_direct_absolute=yes
10395 export_dynamic_flag_spec='$wl-E'
10396 # hardcode_minus_L: Not really in the search PATH,
10397 # but as the default location of the library.
10398 hardcode_minus_L=yes
10399 fi
10400 ;;
10401
10402 hpux11*)
10403 if test yes,no = "$GCC,$with_gnu_ld"; then
10404 case $host_cpu in
10405 hppa*64*)
10406 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $ compiler_flags'
10407 ;;
10408 ia64*)
10409 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpat h -o $lib $libobjs $deplibs $compiler_flags'
10410 ;;
10411 *)
10412 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install _libdir -o $lib $libobjs $deplibs $compiler_flags'
10413 ;;
10414 esac
10415 else
10416 case $host_cpu in
10417 hppa*64*)
10418 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compi ler_flags'
10419 ;;
10420 ia64*)
10421 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libo bjs $deplibs $compiler_flags'
10422 ;;
10423 *)
10424
10425 # Older versions of the 11.00 compiler do not understand -b yet
10426 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP doe s)
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands - b" >&5
10428 $as_echo_n "checking if $CC understands -b... " >&6; }
10429 if ${lt_cv_prog_compiler__b+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 lt_cv_prog_compiler__b=no
10433 save_LDFLAGS=$LDFLAGS
10434 LDFLAGS="$LDFLAGS -b"
10435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10437 # The linker can only warn and ignore the option if not recognized
10438 # So say no if there are warnings
10439 if test -s conftest.err; then
10440 # Append any errors to the config.log.
10441 cat conftest.err 1>&5
10442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10444 if diff conftest.exp conftest.er2 >/dev/null; then
10445 lt_cv_prog_compiler__b=yes
10446 fi
10447 else
10448 lt_cv_prog_compiler__b=yes
10449 fi
10450 fi
10451 $RM -r conftest*
10452 LDFLAGS=$save_LDFLAGS
10453
10454 fi
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10456 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10457
10458 if test yes = "$lt_cv_prog_compiler__b"; then
10459 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libo bjs $deplibs $compiler_flags'
10460 else
10461 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10462 fi
10463
10464 ;;
10465 esac
10466 fi
10467 if test no = "$with_gnu_ld"; then
10468 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10469 hardcode_libdir_separator=:
10470
10471 case $host_cpu in
10472 hppa*64*|ia64*)
10473 hardcode_direct=no
10474 hardcode_shlibpath_var=no
10475 ;;
10476 *)
10477 hardcode_direct=yes
10478 hardcode_direct_absolute=yes
10479 export_dynamic_flag_spec='$wl-E'
10480
10481 # hardcode_minus_L: Not really in the search PATH,
10482 # but as the default location of the library.
10483 hardcode_minus_L=yes
10484 ;;
10485 esac
10486 fi
10487 ;;
10488
10489 irix5* | irix6* | nonstopux*)
10490 if test yes = "$GCC"; then
10491 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $w l-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$ verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10492 # Try to use the -exported_symbol ld option, if it does not
10493 # work, assume that -exports_file does not work either and
10494 # implicitly export all symbols.
10495 # This should be the same for all languages, so no per-tag cache variabl e.
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os l inker accepts -exported_symbol" >&5
10497 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " > &6; }
10498 if ${lt_cv_irix_exported_symbol+:} false; then :
10499 $as_echo_n "(cached) " >&6
10500 else
10501 save_LDFLAGS=$LDFLAGS
10502 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_reg istry $wl/dev/null"
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10505 int foo (void) { return 0; }
10506 _ACEOF
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 lt_cv_irix_exported_symbol=yes
10509 else
10510 lt_cv_irix_exported_symbol=no
10511 fi
10512 rm -f core conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10514 LDFLAGS=$save_LDFLAGS
10515 fi
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >& 5
10517 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10518 if test yes = "$lt_cv_irix_exported_symbol"; then
10519 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler _flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_ver sion $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-expo rts_file $wl$export_symbols -o $lib'
10520 fi
10521 else
10522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $son ame `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_re gistry $output_objdir/so_locations -o $lib'
10523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -sona me $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -up date_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10524 fi
10525 archive_cmds_need_lc='no'
10526 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10527 hardcode_libdir_separator=:
10528 inherit_rpath=yes
10529 link_all_deplibs=yes
10530 ;;
10531
10532 linux*)
10533 case $cc_basename in
10534 tcc*)
10535 # Fabrice Bellard et al's Tiny C Compiler
10536 ld_shlibs=yes
10537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_ flags'
10538 ;;
10539 esac
10540 ;;
10541
10542 netbsd*)
10543 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10545 else
10546 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10547 fi
10548 hardcode_libdir_flag_spec='-R$libdir'
10549 hardcode_direct=yes
10550 hardcode_shlibpath_var=no
10551 ;;
10552
10553 newsos6)
10554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10555 hardcode_direct=yes
10556 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10557 hardcode_libdir_separator=:
10558 hardcode_shlibpath_var=no
10559 ;;
10560
10561 *nto* | *qnx*)
10562 ;;
10563
10564 openbsd* | bitrig*)
10565 if test -f /usr/libexec/ld.so; then
10566 hardcode_direct=yes
10567 hardcode_shlibpath_var=no
10568 hardcode_direct_absolute=yes
10569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10570 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compile r_flags'
10571 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $ compiler_flags $wl-retain-symbols-file,$export_symbols'
10572 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10573 export_dynamic_flag_spec='$wl-E'
10574 else
10575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compile r_flags'
10576 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10577 fi
10578 else
10579 ld_shlibs=no
10580 fi
10581 ;;
10582
10583 os2*)
10584 hardcode_libdir_flag_spec='-L$libdir'
10585 hardcode_minus_L=yes
10586 allow_undefined_flag=unsupported
10587 shrext_cmds=.dll
10588 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTAN CE" > $output_objdir/$libname.def~
10589 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10590 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10591 $ECHO EXPORTS >> $output_objdir/$libname.def~
10592 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def ~
10593 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler _flags $output_objdir/$libname.def~
10594 emximp -o $lib $output_objdir/$libname.def'
10595 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TER MINSTANCE" > $output_objdir/$libname.def~
10596 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10597 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10598 $ECHO EXPORTS >> $output_objdir/$libname.def~
10599 prefix_cmds="$SED"~
10600 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10601 prefix_cmds="$prefix_cmds -e 1d";
10602 fi~
10603 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10604 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10605 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler _flags $output_objdir/$libname.def~
10606 emximp -o $lib $output_objdir/$libname.def'
10607 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $outp ut_objdir/$libname.def'
10608 enable_shared_with_static_runtimes=yes
10609 ;;
10610
10611 osf3*)
10612 if test yes = "$GCC"; then
10613 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10614 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compil er_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_v ersion $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $li b'
10615 else
10616 allow_undefined_flag=' -expect_unresolved \*'
10617 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compil er_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $v erstring"` -update_registry $output_objdir/so_locations -o $lib'
10618 fi
10619 archive_cmds_need_lc='no'
10620 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10621 hardcode_libdir_separator=:
10622 ;;
10623
10624 osf4* | osf5*) # as osf3* with the addition of -msym flag
10625 if test yes = "$GCC"; then
10626 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10627 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $depli bs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_ echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/ so_locations -o $lib'
10628 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10629 else
10630 allow_undefined_flag=' -expect_unresolved \*'
10631 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compil er_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_vers ion $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10632 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n " -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10633 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10634
10635 # Both c and cxx compiler support -rpath directly
10636 hardcode_libdir_flag_spec='-rpath $libdir'
10637 fi
10638 archive_cmds_need_lc='no'
10639 hardcode_libdir_separator=:
10640 ;;
10641
10642 solaris*)
10643 no_undefined_flag=' -z defs'
10644 if test yes = "$GCC"; then
10645 wlarc='$wl'
10646 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $ SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10648 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$sona me -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10649 else
10650 case `$CC -V 2>&1` in
10651 *"Compilers 5.0"*)
10652 wlarc=''
10653 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10654 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10655 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10656 ;;
10657 *)
10658 wlarc='$wl'
10659 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10660 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10661 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10662 ;;
10663 esac
10664 fi
10665 hardcode_libdir_flag_spec='-R$libdir'
10666 hardcode_shlibpath_var=no
10667 case $host_os in
10668 solaris2.[0-5] | solaris2.[0-5].*) ;;
10669 *)
10670 # The compiler driver will combine and reorder linker options,
10671 # but understands '-z linker_flag'. GCC discards it without '$wl',
10672 # but is careful enough not to reorder.
10673 # Supported since Solaris 2.6 (maybe 2.5.1?)
10674 if test yes = "$GCC"; then
10675 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl} defaultextract'
10676 else
10677 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10678 fi
10679 ;;
10680 esac
10681 link_all_deplibs=yes
10682 ;;
10683
10684 sunos4*)
10685 if test sequent = "$host_vendor"; then
10686 # Use $CC to link under sequent, because it throws in some extra .o
10687 # files that make .init and .fini sections work.
10688 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_f lags'
10689 else
10690 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $ linker_flags'
10691 fi
10692 hardcode_libdir_flag_spec='-L$libdir'
10693 hardcode_direct=yes
10694 hardcode_minus_L=yes
10695 hardcode_shlibpath_var=no
10696 ;;
10697
10698 sysv4)
10699 case $host_vendor in
10700 sni)
10701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
10702 hardcode_direct=yes # is this really true???
10703 ;;
10704 siemens)
10705 ## LD is ld it makes a PLAMLIB
10706 ## CC just makes a GrossModule.
10707 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10708 reload_cmds='$CC -r -o $output$reload_objs'
10709 hardcode_direct=no
10710 ;;
10711 motorola)
10712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
10713 hardcode_direct=no #Motorola manual says yes, but my tests say they li e
10714 ;;
10715 esac
10716 runpath_var='LD_RUN_PATH'
10717 hardcode_shlibpath_var=no
10718 ;;
10719
10720 sysv4.3*)
10721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10722 hardcode_shlibpath_var=no
10723 export_dynamic_flag_spec='-Bexport'
10724 ;;
10725
10726 sysv4*MP*)
10727 if test -d /usr/nec; then
10728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729 hardcode_shlibpath_var=no
10730 runpath_var=LD_RUN_PATH
10731 hardcode_runpath_var=yes
10732 ld_shlibs=yes
10733 fi
10734 ;;
10735
10736 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3. 2v5.0.[024]*)
10737 no_undefined_flag='$wl-z,text'
10738 archive_cmds_need_lc=no
10739 hardcode_shlibpath_var=no
10740 runpath_var='LD_RUN_PATH'
10741
10742 if test yes = "$GCC"; then
10743 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compi ler_flags'
10744 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$sona me -o $lib $libobjs $deplibs $compiler_flags'
10745 else
10746 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_f lags'
10747 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10748 fi
10749 ;;
10750
10751 sysv5* | sco3.2v5* | sco5v6*)
10752 # Note: We CANNOT use -z defs as we might desire, because we do not
10753 # link with -lc, and that would cause any symbols used from libc to
10754 # always be unresolved, which means just about no library would
10755 # ever link correctly. If we're not using GNU ld we use -z text
10756 # though, which does catch some bad symbols but isn't as heavy-handed
10757 # as -z defs.
10758 no_undefined_flag='$wl-z,text'
10759 allow_undefined_flag='$wl-z,nodefs'
10760 archive_cmds_need_lc=no
10761 hardcode_shlibpath_var=no
10762 hardcode_libdir_flag_spec='$wl-R,$libdir'
10763 hardcode_libdir_separator=':'
10764 link_all_deplibs=yes
10765 export_dynamic_flag_spec='$wl-Bexport'
10766 runpath_var='LD_RUN_PATH'
10767
10768 if test yes = "$GCC"; then
10769 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compi ler_flags'
10770 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$sona me -o $lib $libobjs $deplibs $compiler_flags'
10771 else
10772 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_f lags'
10773 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10774 fi
10775 ;;
10776
10777 uts4*)
10778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779 hardcode_libdir_flag_spec='-L$libdir'
10780 hardcode_shlibpath_var=no
10781 ;;
10782
10783 *)
10784 ld_shlibs=no
10785 ;;
10786 esac
10787
10788 if test sni = "$host_vendor"; then
10789 case $host in
10790 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10791 export_dynamic_flag_spec='$wl-Blargedynsym'
10792 ;;
10793 esac
10794 fi
10795 fi
10796
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10798 $as_echo "$ld_shlibs" >&6; }
10799 test no = "$ld_shlibs" && can_build_shared=no
10800
10801 with_gnu_ld=$with_gnu_ld
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817 #
10818 # Do we need to explicitly link libc?
10819 #
10820 case "x$archive_cmds_need_lc" in
10821 x|xyes)
10822 # Assume -lc should be added
10823 archive_cmds_need_lc=yes
10824
10825 if test yes,yes = "$GCC,$enable_shared"; then
10826 case $archive_cmds in
10827 *'~'*)
10828 # FIXME: we may have to deal with multi-command sequences.
10829 ;;
10830 '$CC '*)
10831 # Test whether the compiler implicitly links with -lc since on some
10832 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10833 # to ld, don't add -lc before -lgcc.
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be ex plicitly linked in" >&5
10835 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10836 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 $RM conftest*
10840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10841
10842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10843 (eval $ac_compile) 2>&5
10844 ac_status=$?
10845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10846 test $ac_status = 0; } 2>conftest.err; then
10847 soname=conftest
10848 lib=conftest
10849 libobjs=conftest.$ac_objext
10850 deplibs=
10851 wl=$lt_prog_compiler_wl
10852 pic_flag=$lt_prog_compiler_pic
10853 compiler_flags=-v
10854 linker_flags=-v
10855 verstring=
10856 output_objdir=.
10857 libname=conftest
10858 lt_save_allow_undefined_flag=$allow_undefined_flag
10859 allow_undefined_flag=
10860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\ >\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10861 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10862 ac_status=$?
10863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10864 test $ac_status = 0; }
10865 then
10866 lt_cv_archive_cmds_need_lc=no
10867 else
10868 lt_cv_archive_cmds_need_lc=yes
10869 fi
10870 allow_undefined_flag=$lt_save_allow_undefined_flag
10871 else
10872 cat conftest.err 1>&5
10873 fi
10874 $RM conftest*
10875
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >& 5
10878 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10879 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10880 ;;
10881 esac
10882 fi
10883 ;;
10884 esac
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
6202 10912
6203 10913
6204 10914
6205 10915
6206 10916
6207 10917
6208 # Check whether --enable-static was given.
6209 if test "${enable_static+set}" = set; then :
6210 enableval=$enable_static; p=${PACKAGE-default}
6211 case $enableval in
6212 yes) enable_static=yes ;;
6213 no) enable_static=no ;;
6214 *)
6215 enable_static=no
6216 # Look at the argument we got. We use all the common list separators.
6217 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6218 for pkg in $enableval; do
6219 IFS="$lt_save_ifs"
6220 if test "X$pkg" = "X$p"; then
6221 enable_static=yes
6222 fi
6223 done
6224 IFS="$lt_save_ifs"
6225 ;;
6226 esac
6227 else
6228 enable_static=yes
6229 fi
6230 10918
6231 10919
6232 10920
6233 10921
6234 10922
6235 10923
6236 10924
6237 10925
6238 10926
6239 10927
6240 # Check whether --with-pic was given.
6241 if test "${with_pic+set}" = set; then :
6242 withval=$with_pic; pic_mode="$withval"
6243 else
6244 pic_mode=default
6245 fi
6246
6247
6248 test -z "$pic_mode" && pic_mode=default
6249 10928
6250 10929
6251 10930
10931
10932
6252 10933
6253 10934
6254 10935
6255 10936
6256 # Check whether --enable-fast-install was given.
6257 if test "${enable_fast_install+set}" = set; then :
6258 enableval=$enable_fast_install; p=${PACKAGE-default}
6259 case $enableval in
6260 yes) enable_fast_install=yes ;;
6261 no) enable_fast_install=no ;;
6262 *)
6263 enable_fast_install=no
6264 # Look at the argument we got. We use all the common list separators.
6265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6266 for pkg in $enableval; do
6267 IFS="$lt_save_ifs"
6268 if test "X$pkg" = "X$p"; then
6269 enable_fast_install=yes
6270 fi
6271 done
6272 IFS="$lt_save_ifs"
6273 ;;
6274 esac
6275 else
6276 enable_fast_install=yes
6277 fi
6278 10937
6279 10938
6280 10939
6281 10940
6282 10941
6283 10942
6284 10943
6285 10944
6286 10945
6287 10946
6288 10947
6289 # This can be used to rebuild libtool when needed
6290 LIBTOOL_DEPS="$ltmain"
6291
6292 # Always use our own libtool.
6293 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6294 10948
6295 10949
6296 10950
10951
6297 10952
6298 10953
6299 10954
6300 10955
6301 10956
6302 10957
6303 10958
6304 10959
6305 10960
6306 10961
6307 10962
6308 10963
6309 10964
6310 10965
6311 10966
6312 10967
6313 10968
6314 10969
6315 10970
6316 10971
6317 10972
6318 10973
6319 test -z "$LN_S" && LN_S="ln -s"
6320 10974
6321 10975
6322 10976
6323 10977
6324 10978
6325 10979
6326 10980
6327 10981
6328 10982
6329 10983
6330 10984
6331 10985
6332 10986
6333 10987
6334 if test -n "${ZSH_VERSION+set}" ; then
6335 setopt NO_GLOB_SUBST
6336 fi
6337
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6339 $as_echo_n "checking for objdir... " >&6; }
6340 if ${lt_cv_objdir+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 rm -f .libs 2>/dev/null
6344 mkdir .libs 2>/dev/null
6345 if test -d .libs; then
6346 lt_cv_objdir=.libs
6347 else
6348 # MS-DOS does not allow filenames that begin with a dot.
6349 lt_cv_objdir=_libs
6350 fi
6351 rmdir .libs 2>/dev/null
6352 fi
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6354 $as_echo "$lt_cv_objdir" >&6; }
6355 objdir=$lt_cv_objdir
6356
6357
6358
6359 10988
6360 10989
6361 cat >>confdefs.h <<_ACEOF
6362 #define LT_OBJDIR "$lt_cv_objdir/"
6363 _ACEOF
6364 10990
6365 10991
6366 10992
10993
10994
10995
10996
6367 10997
6368 10998
6369 10999
6370 11000
6371 11001
6372 11002
6373 11003
6374 11004
6375 11005
6376 11006
6377 11007
6378 11008
6379 11009
6380 11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristi cs" >&5
11038 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11039
11040 if test yes = "$GCC"; then
11041 case $host_os in
11042 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11043 *) lt_awk_arg='/^libraries:/' ;;
11044 esac
11045 case $host_os in
11046 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11047 *) lt_sed_strip_eq='s|=/|/|g' ;;
11048 esac
11049 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li braries://" -e $lt_sed_strip_eq`
11050 case $lt_search_path_spec in
11051 *\;*)
11052 # if the path contains ";" then we assume it to be the separator
11053 # otherwise default to the standard path separator (i.e. ":") - it is
11054 # assumed that no part of a normal pathname contains ";" but that should
11055 # okay in the real world where ";" in dirpaths is itself problematic.
11056 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11057 ;;
11058 *)
11059 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11060 ;;
11061 esac
11062 # Ok, now we have the path, separated by spaces, we can step through it
11063 # and add multilib dir if necessary...
11064 lt_tmp_lt_search_path_spec=
11065 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/ dev/null`
11066 # ...but if some path component already ends with the multilib dir we assume
11067 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11068 case "$lt_multi_os_dir; $lt_search_path_spec " in
11069 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11070 lt_multi_os_dir=
11071 ;;
11072 esac
11073 for lt_sys_path in $lt_search_path_spec; do
11074 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_mu lti_os_dir"
11076 elif test -n "$lt_multi_os_dir"; then
11077 test -d "$lt_sys_path" && \
11078 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11079 fi
11080 done
11081 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11082 BEGIN {RS = " "; FS = "/|\n";} {
11083 lt_foo = "";
11084 lt_count = 0;
11085 for (lt_i = NF; lt_i > 0; lt_i--) {
11086 if ($lt_i != "" && $lt_i != ".") {
11087 if ($lt_i == "..") {
11088 lt_count++;
11089 } else {
11090 if (lt_count == 0) {
11091 lt_foo = "/" $lt_i lt_foo;
11092 } else {
11093 lt_count--;
11094 }
11095 }
11096 }
11097 }
11098 if (lt_foo != "") { lt_freq[lt_foo]++; }
11099 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11100 }'`
11101 # AWK program above erroneously prepends '/' to C:/dos/paths
11102 # for these hosts.
11103 case $host_os in
11104 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11105 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11106 esac
11107 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11108 else
11109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11110 fi
11111 library_names_spec=
11112 libname_spec='lib$name'
11113 soname_spec=
11114 shrext_cmds=.so
11115 postinstall_cmds=
11116 postuninstall_cmds=
11117 finish_cmds=
11118 finish_eval=
11119 shlibpath_var=
11120 shlibpath_overrides_runpath=unknown
11121 version_type=none
11122 dynamic_linker="$host_os ld.so"
11123 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11124 need_lib_prefix=unknown
11125 hardcode_into_libs=no
11126
11127 # when you set need_version to no, make sure it does not cause -set_version
11128 # flags to be left without arguments
11129 need_version=unknown
11130
11131
11132
6381 case $host_os in 11133 case $host_os in
6382 aix3*) 11134 aix3*)
6383 # AIX sometimes has problems with the GCC collect2 program. For some 11135 version_type=linux # correct to gnu/linux during the next big refactor
6384 # reason, if we set the COLLECT_NAMES environment variable, the problems 11136 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
6385 # vanish in a puff of smoke. 11137 shlibpath_var=LIBPATH
6386 if test "X${COLLECT_NAMES+set}" != Xset; then 11138
6387 COLLECT_NAMES= 11139 # AIX 3 has no versioning support, so we append a major version to the name.
6388 export COLLECT_NAMES 11140 soname_spec='$libname$release$shared_ext$major'
11141 ;;
11142
11143 aix[4-9]*)
11144 version_type=linux # correct to gnu/linux during the next big refactor
11145 need_lib_prefix=no
11146 need_version=no
11147 hardcode_into_libs=yes
11148 if test ia64 = "$host_cpu"; then
11149 # AIX 5 supports IA64
11150 library_names_spec='$libname$release$shared_ext$major $libname$release$share d_ext$versuffix $libname$shared_ext'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 else
11153 # With GCC up to 2.95.x, collect2 would create an import file
11154 # for dependence libraries. The import file would start with
11155 # the line '#! .'. This would cause the generated library to
11156 # depend on '.', always an invalid library. This was fixed in
11157 # development snapshots of GCC prior to 3.0.
11158 case $host_os in
11159 aix4 | aix4.[01] | aix4.[01].*)
11160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11161 » echo ' yes '
11162 » echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11163 » :
11164 else
11165 » can_build_shared=no
11166 fi
11167 ;;
11168 esac
11169 # Using Import Files as archive members, it is possible to support
11170 # filename-based versioning of shared library archives on AIX. While
11171 # this would work for both with and without runtime linking, it will
11172 # prevent static linking of such archives. So we do filename-based
11173 # shared library versioning with .so extension only, which is used
11174 # when both runtime linking and shared linking is enabled.
11175 # Unfortunately, runtime linking may impact performance, so we do
11176 # not want this to be the default eventually. Also, we use the
11177 # versioned .so libs for executables only if there is the -brtl
11178 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11179 # To allow for filename-based versioning support, we need to create
11180 # libNAME.so.V as an archive file, containing:
11181 # *) an Import File, referring to the versioned filename of the
11182 # archive as well as the shared archive member, telling the
11183 # bitwidth (32 or 64) of that shared object, and providing the
11184 # list of exported symbols of that shared object, eventually
11185 # decorated with the 'weak' keyword
11186 # *) the shared object with the F_LOADONLY flag set, to really avoid
11187 # it being seen by the linker.
11188 # At run time we better use the real file rather than another symlink,
11189 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11190
11191 case $with_aix_soname,$aix_use_runtimelinking in
11192 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11193 # soname into executable. Probably we can add versioning support to
11194 # collect2, so additional links can be useful in future.
11195 aix,yes) # traditional libtool
11196 dynamic_linker='AIX unversionable lib.so'
11197 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11198 # instead of lib<name>.a to let people know that these are not
11199 # typical AIX shared libraries.
11200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release $shared_ext$major $libname$shared_ext'
11201 ;;
11202 aix,no) # traditional AIX only
11203 dynamic_linker='AIX lib.a(lib.so.V)'
11204 # We preserve .a as extension for shared libraries through AIX4.2
11205 # and later when we are not doing run time linking.
11206 library_names_spec='$libname$release.a $libname.a'
11207 soname_spec='$libname$release$shared_ext$major'
11208 ;;
11209 svr4,*) # full svr4 only
11210 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11211 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11212 # We do not specify a path in Import Files, so LIBPATH fires.
11213 shlibpath_overrides_runpath=yes
11214 ;;
11215 *,yes) # both, prefer svr4
11216 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so. V)"
11217 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11218 # unpreferred sharedlib libNAME.a needs extra handling
11219 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripna me "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libex t" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$st riplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11220 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_ stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfi les " $odir/$func_stripname_result.$libext"'
11221 # We do not specify a path in Import Files, so LIBPATH fires.
11222 shlibpath_overrides_runpath=yes
11223 ;;
11224 *,no) # both, prefer aix
11225 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec. o)"
11226 library_names_spec='$libname$release.a $libname.a'
11227 soname_spec='$libname$release$shared_ext$major'
11228 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra han dling
11229 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $ destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir /$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$link name"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11230 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlna me"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n" ~func_append rmfiles " $odir/$func_stripname_result.so"'
11231 ;;
11232 esac
11233 shlibpath_var=LIBPATH
6389 fi 11234 fi
6390 ;; 11235 ;;
6391 esac 11236
6392 11237 amigaos*)
6393 # Sed substitution that helps us do robust quoting. It backslashifies 11238 case $host_cpu in
6394 # metacharacters that are still active within double-quoted strings. 11239 powerpc)
6395 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11240 # Since July 2007 AmigaOS4 officially supports .so libraries.
6396 11241 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
6397 # Same as above, but do not quote variable references. 11242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s hared_ext$major $libname$shared_ext'
6398 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11243 ;;
6399 11244 m68k)
6400 # Sed substitution to delay expansion of an escaped shell variable in a 11245 library_names_spec='$libname.ixlibrary $libname.a'
6401 # double_quote_subst'ed string. 11246 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6402 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11247 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`fu nc_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/lib s/${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'
6403 11248 ;;
6404 # Sed substitution to delay expansion of an escaped single quote. 11249 esac
6405 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11250 ;;
6406 11251
6407 # Sed substitution to avoid accidental globbing in evaled expressions 11252 beos*)
6408 no_glob_subst='s/\*/\\\*/g' 11253 library_names_spec='$libname$shared_ext'
6409 11254 dynamic_linker="$host_os ld.so"
6410 # Global variables: 11255 shlibpath_var=LIBRARY_PATH
6411 ofile=libtool 11256 ;;
6412 can_build_shared=yes 11257
6413 11258 bsdi[45]*)
6414 # All known linkers require a `.a' archive for static linking (except MSVC, 11259 version_type=linux # correct to gnu/linux during the next big refactor
6415 # which needs '.lib'). 11260 need_version=no
6416 libext=a 11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
6417 11262 soname_spec='$libname$release$shared_ext$major'
6418 with_gnu_ld="$lt_cv_prog_gnu_ld" 11263 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6419 11264 shlibpath_var=LD_LIBRARY_PATH
6420 old_CC="$CC" 11265 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib"
6421 old_CFLAGS="$CFLAGS" 11266 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6422 11267 # the default ld.so.conf also contains /usr/contrib/lib and
6423 # Set sane defaults for various variables 11268 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6424 test -z "$CC" && CC=cc 11269 # libtool to hard-code these into programs
6425 test -z "$LTCC" && LTCC=$CC 11270 ;;
6426 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11271
6427 test -z "$LD" && LD=ld 11272 cygwin* | mingw* | pw32* | cegcc*)
6428 test -z "$ac_objext" && ac_objext=o 11273 version_type=windows
6429 11274 shrext_cmds=.dll
6430 for cc_temp in $compiler""; do 11275 need_version=no
6431 case $cc_temp in 11276 need_lib_prefix=no
6432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11277
6433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11278 case $GCC,$cc_basename in
6434 \-*) ;; 11279 yes,*)
6435 *) break;; 11280 # gcc
6436 esac 11281 library_names_spec='$libname.dll.a'
6437 done 11282 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6438 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11283 postinstall_cmds='base_file=`basename \$file`~
6439 11284 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''` ~
6440 11285 dldir=$destdir/`dirname \$dlpath`~
6441 # Only perform the check for file, if the check method requires it 11286 test -d \$dldir || mkdir -p \$dldir~
6442 test -z "$MAGIC_CMD" && MAGIC_CMD=file 11287 $install_prog $dir/$dlname \$dldir/$dlname~
6443 case $deplibs_check_method in 11288 chmod a+x \$dldir/$dlname~
6444 file_magic*) 11289 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
6445 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11290 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11291 fi'
6447 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11292 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6448 if ${lt_cv_path_MAGIC_CMD+:} false; then : 11293 dlpath=$dir/\$dldll~
11294 $RM \$dlpath'
11295 shlibpath_overrides_runpath=yes
11296
11297 case $host_os in
11298 cygwin*)
11299 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11300 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED - e 's/[.]/-/g'`$versuffix$shared_ext'
11301
11302 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11303 ;;
11304 mingw* | cegcc*)
11305 # MinGW DLLs use traditional 'lib' prefix
11306 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$share d_ext'
11307 ;;
11308 pw32*)
11309 # pw32 DLLs use 'pw' prefix rather than 'lib'
11310 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11311 ;;
11312 esac
11313 dynamic_linker='Win32 ld.exe'
11314 ;;
11315
11316 *,cl*)
11317 # Native MSVC
11318 libname_spec='$name'
11319 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ ext'
11320 library_names_spec='$libname.dll.lib'
11321
11322 case $build_os in
11323 mingw*)
11324 sys_lib_search_path_spec=
11325 lt_save_ifs=$IFS
11326 IFS=';'
11327 for lt_path in $LIB
11328 do
11329 IFS=$lt_save_ifs
11330 # Let DOS variable expansion print the short 8.3 style file name.
11331 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11332 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11333 done
11334 IFS=$lt_save_ifs
11335 # Convert to MSYS style.
11336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\ \\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11337 ;;
11338 cygwin*)
11339 # Convert to unix form, then to dos form, then back to unix form
11340 # but this time dos style (no spaces!) so that the unix form looks
11341 # like /cygdrive/c/PROGRA~1:/cygdr...
11342 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11343 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11344 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec " | $SED -e "s/$PATH_SEPARATOR/ /g"`
11345 ;;
11346 *)
11347 sys_lib_search_path_spec=$LIB
11348 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; the n
11349 # It is most probably a Windows format PATH.
11350 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's /;/ /g'`
11351 else
11352 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s /$PATH_SEPARATOR/ /g"`
11353 fi
11354 # FIXME: find the short name or the path components, as spaces are
11355 # common. (e.g. "Program Files" -> "PROGRA~1")
11356 ;;
11357 esac
11358
11359 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11360 postinstall_cmds='base_file=`basename \$file`~
11361 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''` ~
11362 dldir=$destdir/`dirname \$dlpath`~
11363 test -d \$dldir || mkdir -p \$dldir~
11364 $install_prog $dir/$dlname \$dldir/$dlname'
11365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11366 dlpath=$dir/\$dldll~
11367 $RM \$dlpath'
11368 shlibpath_overrides_runpath=yes
11369 dynamic_linker='Win32 link.exe'
11370 ;;
11371
11372 *)
11373 # Assume MSVC wrapper
11374 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$ shared_ext $libname.lib'
11375 dynamic_linker='Win32 ld.exe'
11376 ;;
11377 esac
11378 # FIXME: first we should search . and the directory the executable is in
11379 shlibpath_var=PATH
11380 ;;
11381
11382 darwin* | rhapsody*)
11383 dynamic_linker="$host_os dyld"
11384 version_type=darwin
11385 need_lib_prefix=no
11386 need_version=no
11387 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11388 soname_spec='$libname$release$major$shared_ext'
11389 shlibpath_overrides_runpath=yes
11390 shlibpath_var=DYLD_LIBRARY_PATH
11391 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11392
11393 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11394 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11395 ;;
11396
11397 dgux*)
11398 version_type=linux # correct to gnu/linux during the next big refactor
11399 need_lib_prefix=no
11400 need_version=no
11401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
11402 soname_spec='$libname$release$shared_ext$major'
11403 shlibpath_var=LD_LIBRARY_PATH
11404 ;;
11405
11406 freebsd* | dragonfly*)
11407 # DragonFly does not have aout. When/if they implement a new
11408 # versioning mechanism, adjust this.
11409 if test -x /usr/bin/objformat; then
11410 objformat=`/usr/bin/objformat`
11411 else
11412 case $host_os in
11413 freebsd[23].*) objformat=aout ;;
11414 *) objformat=elf ;;
11415 esac
11416 fi
11417 version_type=freebsd-$objformat
11418 case $version_type in
11419 freebsd-elf*)
11420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release $shared_ext$major $libname$shared_ext'
11421 soname_spec='$libname$release$shared_ext$major'
11422 need_version=no
11423 need_lib_prefix=no
11424 ;;
11425 freebsd-*)
11426 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ ext$versuffix'
11427 need_version=yes
11428 ;;
11429 esac
11430 shlibpath_var=LD_LIBRARY_PATH
11431 case $host_os in
11432 freebsd2.*)
11433 shlibpath_overrides_runpath=yes
11434 ;;
11435 freebsd3.[01]* | freebsdelf3.[01]*)
11436 shlibpath_overrides_runpath=yes
11437 hardcode_into_libs=yes
11438 ;;
11439 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11440 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11441 shlibpath_overrides_runpath=no
11442 hardcode_into_libs=yes
11443 ;;
11444 *) # from 4.6 on, and DragonFly
11445 shlibpath_overrides_runpath=yes
11446 hardcode_into_libs=yes
11447 ;;
11448 esac
11449 ;;
11450
11451 haiku*)
11452 version_type=linux # correct to gnu/linux during the next big refactor
11453 need_lib_prefix=no
11454 need_version=no
11455 dynamic_linker="$host_os runtime_loader"
11456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
11457 soname_spec='$libname$release$shared_ext$major'
11458 shlibpath_var=LIBRARY_PATH
11459 shlibpath_overrides_runpath=no
11460 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/syste m/lib'
11461 hardcode_into_libs=yes
11462 ;;
11463
11464 hpux9* | hpux10* | hpux11*)
11465 # Give a soname corresponding to the major version so that dld.sl refuses to
11466 # link against other versions.
11467 version_type=sunos
11468 need_lib_prefix=no
11469 need_version=no
11470 case $host_cpu in
11471 ia64*)
11472 shrext_cmds='.so'
11473 hardcode_into_libs=yes
11474 dynamic_linker="$host_os dld.so"
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s hared_ext$major $libname$shared_ext'
11478 soname_spec='$libname$release$shared_ext$major'
11479 if test 32 = "$HPUX_IA64_MODE"; then
11480 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib"
11481 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11482 else
11483 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11484 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11485 fi
11486 ;;
11487 hppa*64*)
11488 shrext_cmds='.sl'
11489 hardcode_into_libs=yes
11490 dynamic_linker="$host_os dld.sl"
11491 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s hared_ext$major $libname$shared_ext'
11494 soname_spec='$libname$release$shared_ext$major'
11495 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11497 ;;
11498 *)
11499 shrext_cmds='.sl'
11500 dynamic_linker="$host_os dld.sl"
11501 shlibpath_var=SHLIB_PATH
11502 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s hared_ext$major $libname$shared_ext'
11504 soname_spec='$libname$release$shared_ext$major'
11505 ;;
11506 esac
11507 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11508 postinstall_cmds='chmod 555 $lib'
11509 # or fails outright, so override atomically:
11510 install_override_mode=555
11511 ;;
11512
11513 interix[3-9]*)
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 need_lib_prefix=no
11516 need_version=no
11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
11518 soname_spec='$libname$release$shared_ext$major'
11519 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 shlibpath_overrides_runpath=no
11522 hardcode_into_libs=yes
11523 ;;
11524
11525 irix5* | irix6* | nonstopux*)
11526 case $host_os in
11527 nonstopux*) version_type=nonstopux ;;
11528 *)
11529 if test yes = "$lt_cv_prog_gnu_ld"; then
11530 version_type=linux # correct to gnu/linux during the next big re factor
11531 else
11532 version_type=irix
11533 fi ;;
11534 esac
11535 need_lib_prefix=no
11536 need_version=no
11537 soname_spec='$libname$release$shared_ext$major'
11538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$release$shared_ext $libname$shared_ext'
11539 case $host_os in
11540 irix5* | nonstopux*)
11541 libsuff= shlibsuff=
11542 ;;
11543 *)
11544 case $LD in # libtool.m4 will add one of these switches to LD
11545 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11546 libsuff= shlibsuff= libmagic=32-bit;;
11547 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11548 libsuff=32 shlibsuff=N32 libmagic=N32;;
11549 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11550 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11551 *) libsuff= shlibsuff= libmagic=never-match;;
11552 esac
11553 ;;
11554 esac
11555 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11556 shlibpath_overrides_runpath=no
11557 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff "
11558 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11559 hardcode_into_libs=yes
11560 ;;
11561
11562 # No shared lib support for Linux oldld, aout, or coff.
11563 linux*oldld* | linux*aout* | linux*coff*)
11564 dynamic_linker=no
11565 ;;
11566
11567 linux*android*)
11568 version_type=none # Android doesn't support versioned libraries.
11569 need_lib_prefix=no
11570 need_version=no
11571 library_names_spec='$libname$release$shared_ext'
11572 soname_spec='$libname$release$shared_ext'
11573 finish_cmds=
11574 shlibpath_var=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath=yes
11576
11577 # This implies no fast_install, which is unacceptable.
11578 # Some rework will be needed to allow for fast_install
11579 # before this can be enabled.
11580 hardcode_into_libs=yes
11581
11582 dynamic_linker='Android linker'
11583 # Don't embed -rpath directories since the linker doesn't support them.
11584 hardcode_libdir_flag_spec='-L$libdir'
11585 ;;
11586
11587 # This must be glibc/ELF.
11588 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11589 version_type=linux # correct to gnu/linux during the next big refactor
11590 need_lib_prefix=no
11591 need_version=no
11592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
11593 soname_spec='$libname$release$shared_ext$major'
11594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath=no
11597
11598 # Some binutils ld are patched to set DT_RUNPATH
11599 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
6449 $as_echo_n "(cached) " >&6 11600 $as_echo_n "(cached) " >&6
6450 else 11601 else
6451 case $MAGIC_CMD in 11602 lt_cv_shlibpath_overrides_runpath=no
6452 [\\/*] | ?:[\\/]*) 11603 save_LDFLAGS=$LDFLAGS
6453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path . 11604 save_libdir=$libdir
6454 ;; 11605 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
6455 *) 11606 » LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
6456 lt_save_MAGIC_CMD="$MAGIC_CMD" 11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11608 /* end confdefs.h. */
6458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11609
6459 for ac_dir in $ac_dummy; do 11610 int
6460 IFS="$lt_save_ifs" 11611 main ()
6461 test -z "$ac_dir" && ac_dir=. 11612 {
6462 if test -f $ac_dir/${ac_tool_prefix}file; then 11613
6463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 11614 ;
6464 if test -n "$file_magic_test_file"; then 11615 return 0;
6465 » case $deplibs_check_method in 11616 }
6466 » "file_magic "*) 11617 _ACEOF
6467 » file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11618 if ac_fn_c_try_link "$LINENO"; then :
6468 » MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11619 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/d ev/null; then :
6469 » if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11620 lt_cv_shlibpath_overrides_runpath=yes
6470 » $EGREP "$file_magic_regex" > /dev/null; then
6471 » :
6472 » else
6473 » cat <<_LT_EOF 1>&2
6474
6475 *** Warning: the command libtool uses to detect shared libraries,
6476 *** $file_magic_cmd, produces output that libtool cannot recognize.
6477 *** The result is that libtool may fail to recognize shared libraries
6478 *** as such. This will affect the creation of libtool libraries that
6479 *** depend on shared libraries, but programs linked with such libtool
6480 *** libraries will work regardless of this problem. Nevertheless, you
6481 *** may want to report the problem to your system manager and/or to
6482 *** bug-libtool@gnu.org
6483
6484 _LT_EOF
6485 » fi ;;
6486 » esac
6487 fi
6488 break
6489 fi
6490 done
6491 IFS="$lt_save_ifs"
6492 MAGIC_CMD="$lt_save_MAGIC_CMD"
6493 ;;
6494 esac
6495 fi 11621 fi
6496
6497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6498 if test -n "$MAGIC_CMD"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6500 $as_echo "$MAGIC_CMD" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi 11622 fi
6505 11623 rm -f core conftest.err conftest.$ac_objext \
6506 11624 conftest$ac_exeext conftest.$ac_ext
6507 11625 LDFLAGS=$save_LDFLAGS
6508 11626 libdir=$save_libdir
6509 11627
6510 if test -z "$lt_cv_path_MAGIC_CMD"; then
6511 if test -n "$ac_tool_prefix"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6513 $as_echo_n "checking for file... " >&6; }
6514 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 case $MAGIC_CMD in
6518 [\\/*] | ?:[\\/]*)
6519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path .
6520 ;;
6521 *)
6522 lt_save_MAGIC_CMD="$MAGIC_CMD"
6523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6525 for ac_dir in $ac_dummy; do
6526 IFS="$lt_save_ifs"
6527 test -z "$ac_dir" && ac_dir=.
6528 if test -f $ac_dir/file; then
6529 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6530 if test -n "$file_magic_test_file"; then
6531 » case $deplibs_check_method in
6532 » "file_magic "*)
6533 » file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6534 » MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6535 » if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6536 » $EGREP "$file_magic_regex" > /dev/null; then
6537 » :
6538 » else
6539 » cat <<_LT_EOF 1>&2
6540
6541 *** Warning: the command libtool uses to detect shared libraries,
6542 *** $file_magic_cmd, produces output that libtool cannot recognize.
6543 *** The result is that libtool may fail to recognize shared libraries
6544 *** as such. This will affect the creation of libtool libraries that
6545 *** depend on shared libraries, but programs linked with such libtool
6546 *** libraries will work regardless of this problem. Nevertheless, you
6547 *** may want to report the problem to your system manager and/or to
6548 *** bug-libtool@gnu.org
6549
6550 _LT_EOF
6551 » fi ;;
6552 » esac
6553 fi
6554 break
6555 fi
6556 done
6557 IFS="$lt_save_ifs"
6558 MAGIC_CMD="$lt_save_MAGIC_CMD"
6559 ;;
6560 esac
6561 fi 11628 fi
6562 11629
6563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11630 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
6564 if test -n "$MAGIC_CMD"; then 11631
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11632 # This implies no fast_install, which is unacceptable.
6566 $as_echo "$MAGIC_CMD" >&6; } 11633 # Some rework will be needed to allow for fast_install
6567 else 11634 # before this can be enabled.
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11635 hardcode_into_libs=yes
6569 $as_echo "no" >&6; } 11636
6570 fi 11637 # Add ABI-specific directories to the system library path.
6571 11638 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
6572 11639
11640 # Ideally, we could use ldconfig to report *all* directores which are
11641 # searched for libraries, however this is still not possible. Aside from not
11642 # being certain /sbin/ldconfig is available, command
11643 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11644 # even though it is searched at run-time. Try to do the best guess by
11645 # appending ld.so.conf contents (and includes) to the search path.
11646 if test -f /etc/ld.so.conf; then
11647 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null" , \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $S ED -e 's/#.*//;/^[» ]*hwcap[» ]/d;s/[:,» ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11648 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11649 fi
11650
11651 # We used to test for /lib/ld.so.1 and disable shared libraries on
11652 # powerpc, because MkLinux only supported shared libraries with the
11653 # GNU dynamic linker. Since this was broken with cross compilers,
11654 # most powerpc-linux boxes support dynamic linking these days and
11655 # people can always --disable-shared, the test was removed, and we
11656 # assume the GNU/Linux dynamic linker is in use.
11657 dynamic_linker='GNU/Linux ld.so'
11658 ;;
11659
11660 netbsd*)
11661 version_type=sunos
11662 need_lib_prefix=no
11663 need_version=no
11664 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ex t$versuffix'
11666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11667 dynamic_linker='NetBSD (a.out) ld.so'
6573 else 11668 else
6574 MAGIC_CMD=: 11669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$s hared_ext$major $libname$shared_ext'
11670 soname_spec='$libname$release$shared_ext$major'
11671 dynamic_linker='NetBSD ld.elf_so'
6575 fi 11672 fi
6576 fi 11673 shlibpath_var=LD_LIBRARY_PATH
6577 11674 shlibpath_overrides_runpath=yes
11675 hardcode_into_libs=yes
11676 ;;
11677
11678 newsos6)
11679 version_type=linux # correct to gnu/linux during the next big refactor
11680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11683 ;;
11684
11685 *nto* | *qnx*)
11686 version_type=qnx
11687 need_lib_prefix=no
11688 need_version=no
11689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
11690 soname_spec='$libname$release$shared_ext$major'
11691 shlibpath_var=LD_LIBRARY_PATH
11692 shlibpath_overrides_runpath=no
11693 hardcode_into_libs=yes
11694 dynamic_linker='ldqnx.so'
11695 ;;
11696
11697 openbsd* | bitrig*)
11698 version_type=sunos
11699 sys_lib_dlsearch_path_spec=/usr/lib
11700 need_lib_prefix=no
11701 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11702 need_version=no
11703 else
11704 need_version=yes
6578 fi 11705 fi
6579 ;; 11706 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$ versuffix'
6580 esac 11707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6581 11708 shlibpath_var=LD_LIBRARY_PATH
6582 # Use C for the default configuration in the libtool script 11709 shlibpath_overrides_runpath=yes
6583 11710 ;;
6584 lt_save_CC="$CC" 11711
6585 ac_ext=c 11712 os2*)
6586 ac_cpp='$CPP $CPPFLAGS' 11713 libname_spec='$name'
6587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11714 version_type=windows
6588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5' 11715 shrext_cmds=.dll
6589 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11716 need_version=no
6590 11717 need_lib_prefix=no
6591 11718 # OS/2 can only load a DLL with a base name of 8 characters or less.
6592 # Source file extension for C test sources. 11719 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
6593 ac_ext=c 11720 v=$($ECHO $release$versuffix | tr -d .-);
6594 11721 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
6595 # Object file extension for compiled C test sources. 11722 $ECHO $n$v`$shared_ext'
6596 objext=o 11723 library_names_spec='${libname}_dll.$libext'
6597 objext=$objext 11724 dynamic_linker='OS/2 ld.exe'
6598 11725 shlibpath_var=BEGINLIBPATH
6599 # Code to be used in simple compile tests 11726 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6600 lt_simple_compile_test_code="int some_variable = 0;" 11727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6601 11728 postinstall_cmds='base_file=`basename \$file`~
6602 # Code to be used in simple link tests 11729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
6603 lt_simple_link_test_code='int main(){return(0);}' 11730 dldir=$destdir/`dirname \$dlpath`~
6604 11731 test -d \$dldir || mkdir -p \$dldir~
6605 11732 $install_prog $dir/$dlname \$dldir/$dlname~
6606 11733 chmod a+x \$dldir/$dlname~
6607 11734 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
6608 11735 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
6609 11736 fi'
6610 11737 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
6611 # If no C compiler was specified, use CC. 11738 dlpath=$dir/\$dldll~
6612 LTCC=${LTCC-"$CC"} 11739 $RM \$dlpath'
6613 11740 ;;
6614 # If no C compiler flags were specified, use CFLAGS. 11741
6615 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11742 osf3* | osf4* | osf5*)
6616 11743 version_type=osf
6617 # Allow CC to be a program name with arguments. 11744 need_lib_prefix=no
6618 compiler=$CC 11745 need_version=no
6619 11746 soname_spec='$libname$release$shared_ext$major'
6620 # Save the default compiler, since it gets overwritten when the other 11747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
6621 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11748 shlibpath_var=LD_LIBRARY_PATH
6622 compiler_DEFAULT=$CC 11749 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6623 11750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6624 # save warnings/boilerplate of simple test code 11751 ;;
6625 ac_outfile=conftest.$ac_objext 11752
6626 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11753 rdos*)
6627 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11754 dynamic_linker=no
6628 _lt_compiler_boilerplate=`cat conftest.err` 11755 ;;
6629 $RM conftest* 11756
6630 11757 solaris*)
6631 ac_outfile=conftest.$ac_objext 11758 version_type=linux # correct to gnu/linux during the next big refactor
6632 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11759 need_lib_prefix=no
6633 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11760 need_version=no
6634 _lt_linker_boilerplate=`cat conftest.err` 11761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
6635 $RM -r conftest* 11762 soname_spec='$libname$release$shared_ext$major'
6636 11763 shlibpath_var=LD_LIBRARY_PATH
6637 11764 shlibpath_overrides_runpath=yes
6638 if test -n "$compiler"; then 11765 hardcode_into_libs=yes
6639 11766 # ldd complains unless libraries are executable
6640 lt_prog_compiler_no_builtin_flag= 11767 postinstall_cmds='chmod +x $lib'
6641 11768 ;;
6642 if test "$GCC" = yes; then 11769
6643 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 11770 sunos4*)
6644 11771 version_type=sunos
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-r tti -fno-exceptions" >&5 11772 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$ versuffix'
6646 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11773 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6647 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11774 shlibpath_var=LD_LIBRARY_PATH
6648 $as_echo_n "(cached) " >&6 11775 shlibpath_overrides_runpath=yes
6649 else 11776 if test yes = "$with_gnu_ld"; then
6650 lt_cv_prog_compiler_rtti_exceptions=no 11777 need_lib_prefix=no
6651 ac_outfile=conftest.$ac_objext 11778 fi
6652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11779 need_version=yes
6653 lt_compiler_flag="-fno-rtti -fno-exceptions" 11780 ;;
6654 # Insert the option either (1) after the last *FLAGS variable, or 11781
6655 # (2) before a word containing "conftest.", or (3) at the end. 11782 sysv4 | sysv4.3*)
6656 # Note that $ac_compile itself does not contain backslashes and begins 11783 version_type=linux # correct to gnu/linux during the next big refactor
6657 # with a dollar sign (not a hyphen), so the echo should work correctly. 11784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
6658 # The option is referenced via a variable to avoid confusing sed. 11785 soname_spec='$libname$release$shared_ext$major'
6659 lt_compile=`echo "$ac_compile" | $SED \ 11786 shlibpath_var=LD_LIBRARY_PATH
6660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11787 case $host_vendor in
6661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11788 sni)
6662 -e 's:$: $lt_compiler_flag:'` 11789 shlibpath_overrides_runpath=no
6663 (eval echo "\"\$as_me:6663: $lt_compile\"" >&5) 11790 need_lib_prefix=no
6664 (eval "$lt_compile" 2>conftest.err) 11791 runpath_var=LD_RUN_PATH
6665 ac_status=$? 11792 ;;
6666 cat conftest.err >&5 11793 siemens)
6667 echo "$as_me:6667: \$? = $ac_status" >&5 11794 need_lib_prefix=no
6668 if (exit $ac_status) && test -s "$ac_outfile"; then 11795 ;;
6669 # The compiler can only warn and ignore the option if not recognized 11796 motorola)
6670 # So say no if there are warnings other than the usual output. 11797 need_lib_prefix=no
6671 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11798 need_version=no
6672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11799 shlibpath_overrides_runpath=no
6673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n 11800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6674 lt_cv_prog_compiler_rtti_exceptions=yes 11801 ;;
6675 fi 11802 esac
6676 fi 11803 ;;
6677 $RM conftest* 11804
6678 11805 sysv4*MP*)
6679 fi 11806 if test -d /usr/nec; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_excep tions" >&5 11807 version_type=linux # correct to gnu/linux during the next big refactor
6681 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11808 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$majo r $libname$shared_ext'
6682 11809 soname_spec='$libname$shared_ext.$major'
6683 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 11810 shlibpath_var=LD_LIBRARY_PATH
6684 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtt i -fno-exceptions" 11811 fi
6685 else 11812 ;;
6686 : 11813
6687 fi 11814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6688 11815 version_type=sco
6689 fi 11816 need_lib_prefix=no
6690 11817 need_version=no
6691 11818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext $libname$shared_ext'
6692 11819 soname_spec='$libname$release$shared_ext$major'
6693 11820 shlibpath_var=LD_LIBRARY_PATH
6694 11821 shlibpath_overrides_runpath=yes
6695 11822 hardcode_into_libs=yes
6696 lt_prog_compiler_wl= 11823 if test yes = "$with_gnu_ld"; then
6697 lt_prog_compiler_pic= 11824 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
6698 lt_prog_compiler_static= 11825 else
6699 11826 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produc e PIC" >&5
6701 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6702
6703 if test "$GCC" = yes; then
6704 lt_prog_compiler_wl='-Wl,'
6705 lt_prog_compiler_static='-static'
6706
6707 case $host_os in 11827 case $host_os in
6708 aix*) 11828 sco3.2v5*)
6709 # All AIX code is PIC. 11829 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
6710 if test "$host_cpu" = ia64; then
6711 » # AIX 5 now supports IA64 processor
6712 » lt_prog_compiler_static='-Bstatic'
6713 fi
6714 ;;
6715
6716 amigaos*)
6717 case $host_cpu in
6718 powerpc)
6719 # see comment about AmigaOS4 .so support
6720 lt_prog_compiler_pic='-fPIC'
6721 ;;
6722 m68k)
6723 # FIXME: we need at least 68020 code to build shared libraries, but
6724 # adding the `-m68020' flag to GCC prevents building anything better ,
6725 # like `-m68040'.
6726 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6727 ;;
6728 esac
6729 ;;
6730
6731 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6732 # PIC is the default for these OSes.
6733 ;;
6734
6735 mingw* | cygwin* | pw32* | os2* | cegcc*)
6736 # This hack is so that the source file can tell whether it is being
6737 # built for inclusion in a dll (and should export symbols for example).
6738 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6739 # (--disable-auto-import) libraries
6740 lt_prog_compiler_pic='-DDLL_EXPORT'
6741 ;;
6742
6743 darwin* | rhapsody*)
6744 # PIC is the default on this platform
6745 # Common symbols not allowed in MH_DYLIB files
6746 lt_prog_compiler_pic='-fno-common'
6747 ;;
6748
6749 hpux*)
6750 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6751 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6752 # sets the default TLS model and affects inlining.
6753 case $host_cpu in
6754 hppa*64*)
6755 » # +Z the default
6756 ;; 11830 ;;
6757 *)
6758 lt_prog_compiler_pic='-fPIC'
6759 ;;
6760 esac
6761 ;;
6762
6763 interix[3-9]*)
6764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6765 # Instead, we relocate shared libraries at runtime.
6766 ;;
6767
6768 msdosdjgpp*)
6769 # Just because we use GCC doesn't mean we suddenly get shared libraries
6770 # on systems that don't support them.
6771 lt_prog_compiler_can_build_shared=no
6772 enable_shared=no
6773 ;;
6774
6775 *nto* | *qnx*)
6776 # QNX uses GNU C++, but need to define -shared option too, otherwise
6777 # it will coredump.
6778 lt_prog_compiler_pic='-fPIC -shared'
6779 ;;
6780
6781 sysv4*MP*)
6782 if test -d /usr/nec; then
6783 lt_prog_compiler_pic=-Kconform_pic
6784 fi
6785 ;;
6786
6787 *)
6788 lt_prog_compiler_pic='-fPIC'
6789 ;;
6790 esac
6791 else
6792 # PORTME Check for flag to pass linker flags through the system compiler.
6793 case $host_os in
6794 aix*)
6795 lt_prog_compiler_wl='-Wl,'
6796 if test "$host_cpu" = ia64; then
6797 # AIX 5 now supports IA64 processor
6798 lt_prog_compiler_static='-Bstatic'
6799 else
6800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6801 fi
6802 ;;
6803
6804 mingw* | cygwin* | pw32* | os2* | cegcc*)
6805 # This hack is so that the source file can tell whether it is being
6806 # built for inclusion in a dll (and should export symbols for example).
6807 lt_prog_compiler_pic='-DDLL_EXPORT'
6808 ;;
6809
6810 hpux9* | hpux10* | hpux11*)
6811 lt_prog_compiler_wl='-Wl,'
6812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6813 # not for PA HP-UX.
6814 case $host_cpu in
6815 hppa*64*|ia64*)
6816 # +Z the default
6817 ;;
6818 *)
6819 lt_prog_compiler_pic='+Z'
6820 ;;
6821 esac
6822 # Is there a better lt_prog_compiler_static that works with the bundled CC ?
6823 lt_prog_compiler_static='${wl}-a ${wl}archive'
6824 ;;
6825
6826 irix5* | irix6* | nonstopux*)
6827 lt_prog_compiler_wl='-Wl,'
6828 # PIC (with -KPIC) is the default.
6829 lt_prog_compiler_static='-non_shared'
6830 ;;
6831
6832 linux* | k*bsd*-gnu)
6833 case $cc_basename in
6834 # old Intel for x86_64 which still supported -KPIC.
6835 ecc*)
6836 lt_prog_compiler_wl='-Wl,'
6837 lt_prog_compiler_pic='-KPIC'
6838 lt_prog_compiler_static='-static'
6839 ;;
6840 # icc used to be incompatible with GCC.
6841 # ICC 10 doesn't accept -KPIC any more.
6842 icc* | ifort*)
6843 lt_prog_compiler_wl='-Wl,'
6844 lt_prog_compiler_pic='-fPIC'
6845 lt_prog_compiler_static='-static'
6846 ;;
6847 # Lahey Fortran 8.1.
6848 lf95*)
6849 lt_prog_compiler_wl='-Wl,'
6850 lt_prog_compiler_pic='--shared'
6851 lt_prog_compiler_static='--static'
6852 ;;
6853 pgcc* | pgf77* | pgf90* | pgf95*)
6854 # Portland Group compilers (*not* the Pentium gcc compiler,
6855 # which looks to be a dead project)
6856 lt_prog_compiler_wl='-Wl,'
6857 lt_prog_compiler_pic='-fpic'
6858 lt_prog_compiler_static='-Bstatic'
6859 ;;
6860 ccc*)
6861 lt_prog_compiler_wl='-Wl,'
6862 # All Alpha code is PIC.
6863 lt_prog_compiler_static='-non_shared'
6864 ;;
6865 xl*)
6866 # IBM XL C 8.0/Fortran 10.1 on PPC
6867 lt_prog_compiler_wl='-Wl,'
6868 lt_prog_compiler_pic='-qpic'
6869 lt_prog_compiler_static='-qstaticlink'
6870 ;;
6871 *)
6872 case `$CC -V 2>&1 | sed 5q` in
6873 *Sun\ C*)
6874 # Sun C 5.9
6875 lt_prog_compiler_pic='-KPIC'
6876 lt_prog_compiler_static='-Bstatic'
6877 lt_prog_compiler_wl='-Wl,'
6878 ;;
6879 *Sun\ F*)
6880 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6881 lt_prog_compiler_pic='-KPIC'
6882 lt_prog_compiler_static='-Bstatic'
6883 lt_prog_compiler_wl=''
6884 ;;
6885 esac
6886 ;;
6887 esac
6888 ;;
6889
6890 newsos6)
6891 lt_prog_compiler_pic='-KPIC'
6892 lt_prog_compiler_static='-Bstatic'
6893 ;;
6894
6895 *nto* | *qnx*)
6896 # QNX uses GNU C++, but need to define -shared option too, otherwise
6897 # it will coredump.
6898 lt_prog_compiler_pic='-fPIC -shared'
6899 ;;
6900
6901 osf3* | osf4* | osf5*)
6902 lt_prog_compiler_wl='-Wl,'
6903 # All OSF/1 code is PIC.
6904 lt_prog_compiler_static='-non_shared'
6905 ;;
6906
6907 rdos*)
6908 lt_prog_compiler_static='-non_shared'
6909 ;;
6910
6911 solaris*)
6912 lt_prog_compiler_pic='-KPIC'
6913 lt_prog_compiler_static='-Bstatic'
6914 case $cc_basename in
6915 f77* | f90* | f95*)
6916 lt_prog_compiler_wl='-Qoption ld ';;
6917 *)
6918 lt_prog_compiler_wl='-Wl,';;
6919 esac
6920 ;;
6921
6922 sunos4*)
6923 lt_prog_compiler_wl='-Qoption ld '
6924 lt_prog_compiler_pic='-PIC'
6925 lt_prog_compiler_static='-Bstatic'
6926 ;;
6927
6928 sysv4 | sysv4.2uw2* | sysv4.3*)
6929 lt_prog_compiler_wl='-Wl,'
6930 lt_prog_compiler_pic='-KPIC'
6931 lt_prog_compiler_static='-Bstatic'
6932 ;;
6933
6934 sysv4*MP*)
6935 if test -d /usr/nec ;then
6936 lt_prog_compiler_pic='-Kconform_pic'
6937 lt_prog_compiler_static='-Bstatic'
6938 fi
6939 ;;
6940
6941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6942 lt_prog_compiler_wl='-Wl,'
6943 lt_prog_compiler_pic='-KPIC'
6944 lt_prog_compiler_static='-Bstatic'
6945 ;;
6946
6947 unicos*)
6948 lt_prog_compiler_wl='-Wl,'
6949 lt_prog_compiler_can_build_shared=no
6950 ;;
6951
6952 uts4*)
6953 lt_prog_compiler_pic='-pic'
6954 lt_prog_compiler_static='-Bstatic'
6955 ;;
6956
6957 *)
6958 lt_prog_compiler_can_build_shared=no
6959 ;;
6960 esac 11831 esac
6961 fi 11832 fi
6962 11833 sys_lib_dlsearch_path_spec='/usr/lib'
6963 case $host_os in 11834 ;;
6964 # For platforms which do not support PIC, -DPIC is meaningless: 11835
6965 *djgpp*) 11836 tpf*)
6966 lt_prog_compiler_pic= 11837 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
6967 ;; 11838 version_type=linux # correct to gnu/linux during the next big refactor
6968 *) 11839 need_lib_prefix=no
6969 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11840 need_version=no
6970 ;; 11841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
11842 shlibpath_var=LD_LIBRARY_PATH
11843 shlibpath_overrides_runpath=no
11844 hardcode_into_libs=yes
11845 ;;
11846
11847 uts4*)
11848 version_type=linux # correct to gnu/linux during the next big refactor
11849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$sha red_ext$major $libname$shared_ext'
11850 soname_spec='$libname$release$shared_ext$major'
11851 shlibpath_var=LD_LIBRARY_PATH
11852 ;;
11853
11854 *)
11855 dynamic_linker=no
11856 ;;
6971 esac 11857 esac
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6973 $as_echo "$lt_prog_compiler_pic" >&6; } 11859 $as_echo "$dynamic_linker" >&6; }
6974 11860 test no = "$dynamic_linker" && can_build_shared=no
6975 11861
6976 11862 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6977 11863 if test yes = "$GCC"; then
6978 11864 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH"
6979
6980 #
6981 # Check to make sure the PIC flag actually works.
6982 #
6983 if test -n "$lt_prog_compiler_pic"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_pr og_compiler_pic works" >&5
6985 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6986 if ${lt_cv_prog_compiler_pic_works+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 lt_cv_prog_compiler_pic_works=no
6990 ac_outfile=conftest.$ac_objext
6991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6992 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6993 # Insert the option either (1) after the last *FLAGS variable, or
6994 # (2) before a word containing "conftest.", or (3) at the end.
6995 # Note that $ac_compile itself does not contain backslashes and begins
6996 # with a dollar sign (not a hyphen), so the echo should work correctly.
6997 # The option is referenced via a variable to avoid confusing sed.
6998 lt_compile=`echo "$ac_compile" | $SED \
6999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7001 -e 's:$: $lt_compiler_flag:'`
7002 (eval echo "\"\$as_me:7002: $lt_compile\"" >&5)
7003 (eval "$lt_compile" 2>conftest.err)
7004 ac_status=$?
7005 cat conftest.err >&5
7006 echo "$as_me:7006: \$? = $ac_status" >&5
7007 if (exit $ac_status) && test -s "$ac_outfile"; then
7008 # The compiler can only warn and ignore the option if not recognized
7009 # So say no if there are warnings other than the usual output.
7010 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
7013 lt_cv_prog_compiler_pic_works=yes
7014 fi
7015 fi
7016 $RM conftest*
7017
7018 fi 11865 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11866
7020 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11867 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
7021 11868 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
7022 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7023 case $lt_prog_compiler_pic in
7024 "" | " "*) ;;
7025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7026 esac
7027 else
7028 lt_prog_compiler_pic=
7029 lt_prog_compiler_can_build_shared=no
7030 fi 11869 fi
7031 11870
11871 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11872 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
7032 fi 11873 fi
7033 11874
7034 11875 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
7035 11876 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
7036 11877
7037 11878 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
7038 11879 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
7039 # 11880
7040 # Check to make sure the static flag actually works. 11881 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
7041 # 11882 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
7042 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11883
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_t mp_static_flag works" >&5 11884
7044 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6 ; } 11885
7045 if ${lt_cv_prog_compiler_static_works+:} false; then : 11886
7046 $as_echo_n "(cached) " >&6 11887
7047 else 11888
7048 lt_cv_prog_compiler_static_works=no 11889
7049 save_LDFLAGS="$LDFLAGS" 11890
7050 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11891
7051 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11892
7052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11893
7053 # The linker can only warn and ignore the option if not recognized 11894
7054 # So say no if there are warnings 11895
7055 if test -s conftest.err; then 11896
7056 # Append any errors to the config.log. 11897
7057 cat conftest.err 1>&5 11898
7058 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11899
7059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11900
7060 if diff conftest.exp conftest.er2 >/dev/null; then 11901
7061 lt_cv_prog_compiler_static_works=yes 11902
7062 fi 11903
7063 else 11904
7064 lt_cv_prog_compiler_static_works=yes 11905
7065 fi 11906
7066 fi 11907
7067 $RM -r conftest* 11908
7068 LDFLAGS="$save_LDFLAGS" 11909
7069 11910
7070 fi 11911
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_wor ks" >&5 11912
7072 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11913
7073 11914
7074 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11915
7075 : 11916
7076 else 11917
7077 lt_prog_compiler_static= 11918
7078 fi 11919
7079 11920
7080 11921
7081
7082 11922
7083 11923
7084 11924
7085 11925
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11926
7087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11927
7088 if ${lt_cv_prog_compiler_c_o+:} false; then : 11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library path s into programs" >&5
11981 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11982 hardcode_action=
11983 if test -n "$hardcode_libdir_flag_spec" ||
11984 test -n "$runpath_var" ||
11985 test yes = "$hardcode_automatic"; then
11986
11987 # We can hardcode non-existent directories.
11988 if test no != "$hardcode_direct" &&
11989 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11990 # have to relink, otherwise we might link with an installed library
11991 # when we should be linking with a yet-to-be-installed one
11992 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11993 test no != "$hardcode_minus_L"; then
11994 # Linking always hardcodes the temporary library directory.
11995 hardcode_action=relink
11996 else
11997 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11998 hardcode_action=immediate
11999 fi
12000 else
12001 # We cannot hardcode anything, or else we can only hardcode existing
12002 # directories.
12003 hardcode_action=unsupported
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12006 $as_echo "$hardcode_action" >&6; }
12007
12008 if test relink = "$hardcode_action" ||
12009 test yes = "$inherit_rpath"; then
12010 # Fast installation is not supported
12011 enable_fast_install=no
12012 elif test yes = "$shlibpath_overrides_runpath" ||
12013 test no = "$enable_shared"; then
12014 # Fast installation is not necessary
12015 enable_fast_install=needless
12016 fi
12017
12018
12019
12020
12021
12022
12023 if test yes != "$enable_dlopen"; then
12024 enable_dlopen=unknown
12025 enable_dlopen_self=unknown
12026 enable_dlopen_self_static=unknown
12027 else
12028 lt_cv_dlopen=no
12029 lt_cv_dlopen_libs=
12030
12031 case $host_os in
12032 beos*)
12033 lt_cv_dlopen=load_add_on
12034 lt_cv_dlopen_libs=
12035 lt_cv_dlopen_self=yes
12036 ;;
12037
12038 mingw* | pw32* | cegcc*)
12039 lt_cv_dlopen=LoadLibrary
12040 lt_cv_dlopen_libs=
12041 ;;
12042
12043 cygwin*)
12044 lt_cv_dlopen=dlopen
12045 lt_cv_dlopen_libs=
12046 ;;
12047
12048 darwin*)
12049 # if libdl is installed we need to link against it
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12051 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12052 if ${ac_cv_lib_dl_dlopen+:} false; then :
7089 $as_echo_n "(cached) " >&6 12053 $as_echo_n "(cached) " >&6
7090 else 12054 else
7091 lt_cv_prog_compiler_c_o=no 12055 ac_check_lib_save_LIBS=$LIBS
7092 $RM -r conftest 2>/dev/null 12056 LIBS="-ldl $LIBS"
7093 mkdir conftest 12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 cd conftest
7095 mkdir out
7096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7097
7098 lt_compiler_flag="-o out/conftest2.$ac_objext"
7099 # Insert the option either (1) after the last *FLAGS variable, or
7100 # (2) before a word containing "conftest.", or (3) at the end.
7101 # Note that $ac_compile itself does not contain backslashes and begins
7102 # with a dollar sign (not a hyphen), so the echo should work correctly.
7103 lt_compile=`echo "$ac_compile" | $SED \
7104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7106 -e 's:$: $lt_compiler_flag:'`
7107 (eval echo "\"\$as_me:7107: $lt_compile\"" >&5)
7108 (eval "$lt_compile" 2>out/conftest.err)
7109 ac_status=$?
7110 cat out/conftest.err >&5
7111 echo "$as_me:7111: \$? = $ac_status" >&5
7112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7113 then
7114 # The compiler can only warn and ignore the option if not recognized
7115 # So say no if there are warnings
7116 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
7119 lt_cv_prog_compiler_c_o=yes
7120 fi
7121 fi
7122 chmod u+w . 2>&5
7123 $RM conftest*
7124 # SGI C++ compiler will create directory out/ii_files/ for
7125 # template instantiation
7126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7127 $RM out/* && rmdir out
7128 cd ..
7129 $RM -r conftest
7130 $RM conftest*
7131
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7134 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7135
7136
7137
7138
7139
7140
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7143 if ${lt_cv_prog_compiler_c_o+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 lt_cv_prog_compiler_c_o=no
7147 $RM -r conftest 2>/dev/null
7148 mkdir conftest
7149 cd conftest
7150 mkdir out
7151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7152
7153 lt_compiler_flag="-o out/conftest2.$ac_objext"
7154 # Insert the option either (1) after the last *FLAGS variable, or
7155 # (2) before a word containing "conftest.", or (3) at the end.
7156 # Note that $ac_compile itself does not contain backslashes and begins
7157 # with a dollar sign (not a hyphen), so the echo should work correctly.
7158 lt_compile=`echo "$ac_compile" | $SED \
7159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7161 -e 's:$: $lt_compiler_flag:'`
7162 (eval echo "\"\$as_me:7162: $lt_compile\"" >&5)
7163 (eval "$lt_compile" 2>out/conftest.err)
7164 ac_status=$?
7165 cat out/conftest.err >&5
7166 echo "$as_me:7166: \$? = $ac_status" >&5
7167 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7168 then
7169 # The compiler can only warn and ignore the option if not recognized
7170 # So say no if there are warnings
7171 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
7174 lt_cv_prog_compiler_c_o=yes
7175 fi
7176 fi
7177 chmod u+w . 2>&5
7178 $RM conftest*
7179 # SGI C++ compiler will create directory out/ii_files/ for
7180 # template instantiation
7181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7182 $RM out/* && rmdir out
7183 cd ..
7184 $RM -r conftest
7185 $RM conftest*
7186
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7190
7191
7192
7193
7194 hard_links="nottested"
7195 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7196 # do not overwrite the value of need_locks provided by the user
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard lin ks" >&5
7198 $as_echo_n "checking if we can lock with hard links... " >&6; }
7199 hard_links=yes
7200 $RM conftest*
7201 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7202 touch conftest.a
7203 ln conftest.a conftest.b 2>&5 || hard_links=no
7204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7206 $as_echo "$hard_links" >&6; }
7207 if test "$hard_links" = no; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \` -c -o', so \`make -j' may be unsafe" >&5
7209 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may b e unsafe" >&2;}
7210 need_locks=warn
7211 fi
7212 else
7213 need_locks=no
7214 fi
7215
7216
7217
7218
7219
7220
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7222 $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie s... " >&6; }
7223
7224 runpath_var=
7225 allow_undefined_flag=
7226 always_export_symbols=no
7227 archive_cmds=
7228 archive_expsym_cmds=
7229 compiler_needs_object=no
7230 enable_shared_with_static_runtimes=no
7231 export_dynamic_flag_spec=
7232 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\ ''s/.* //'\'' | sort | uniq > $export_symbols'
7233 hardcode_automatic=no
7234 hardcode_direct=no
7235 hardcode_direct_absolute=no
7236 hardcode_libdir_flag_spec=
7237 hardcode_libdir_flag_spec_ld=
7238 hardcode_libdir_separator=
7239 hardcode_minus_L=no
7240 hardcode_shlibpath_var=unsupported
7241 inherit_rpath=no
7242 link_all_deplibs=unknown
7243 module_cmds=
7244 module_expsym_cmds=
7245 old_archive_from_new_cmds=
7246 old_archive_from_expsyms_cmds=
7247 thread_safe_flag_spec=
7248 whole_archive_flag_spec=
7249 # include_expsyms should be a list of space-separated symbols to be *always*
7250 # included in the symbol list
7251 include_expsyms=
7252 # exclude_expsyms can be an extended regexp of symbols to exclude
7253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7255 # as well as any symbol that contains `d'.
7256 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7258 # platforms (ab)use it in PIC code, but their linkers get confused if
7259 # the symbol is explicitly referenced. Since portable code cannot
7260 # rely on this symbol name, it's probably fine to never include it in
7261 # preloaded symbol tables.
7262 # Exclude shared library initialization/finalization symbols.
7263 extract_expsyms_cmds=
7264
7265 case $host_os in
7266 cygwin* | mingw* | pw32* | cegcc*)
7267 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7268 # When not using gcc, we currently assume that we are using
7269 # Microsoft Visual C++.
7270 if test "$GCC" != yes; then
7271 with_gnu_ld=no
7272 fi
7273 ;;
7274 interix*)
7275 # we just hope/assume this is gcc and not c89 (= MSVC++)
7276 with_gnu_ld=yes
7277 ;;
7278 openbsd*)
7279 with_gnu_ld=no
7280 ;;
7281 esac
7282
7283 ld_shlibs=yes
7284 if test "$with_gnu_ld" = yes; then
7285 # If archive_cmds runs LD, not CC, wlarc should be empty
7286 wlarc='${wl}'
7287
7288 # Set some defaults for GNU ld with shared library support. These
7289 # are reset later if shared libraries are not supported. Putting them
7290 # here allows them to be overridden if necessary.
7291 runpath_var=LD_RUN_PATH
7292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7293 export_dynamic_flag_spec='${wl}--export-dynamic'
7294 # ancient GNU ld didn't support --whole-archive et. al.
7295 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7296 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--n o-whole-archive'
7297 else
7298 whole_archive_flag_spec=
7299 fi
7300 supports_anon_versioning=no
7301 case `$LD -v 2>&1` in
7302 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7303 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7304 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7305 *\ 2.11.*) ;; # other 2.11 versions
7306 *) supports_anon_versioning=yes ;;
7307 esac
7308
7309 # See if GNU ld supports shared libraries.
7310 case $host_os in
7311 aix[3-9]*)
7312 # On AIX/PPC, the GNU linker is very broken
7313 if test "$host_cpu" != ia64; then
7314 ld_shlibs=no
7315 cat <<_LT_EOF 1>&2
7316
7317 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7318 *** to be unable to reliably create shared libraries on AIX.
7319 *** Therefore, libtool is disabling shared libraries support. If you
7320 *** really care for shared libraries, you may want to modify your PATH
7321 *** so that a non-GNU linker is found, and then restart.
7322
7323 _LT_EOF
7324 fi
7325 ;;
7326
7327 amigaos*)
7328 case $host_cpu in
7329 powerpc)
7330 # see comment about AmigaOS4 .so support
7331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
7332 archive_expsym_cmds=''
7333 ;;
7334 m68k)
7335 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a 2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary .data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7336 hardcode_libdir_flag_spec='-L$libdir'
7337 hardcode_minus_L=yes
7338 ;;
7339 esac
7340 ;;
7341
7342 beos*)
7343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7344 allow_undefined_flag=unsupported
7345 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7346 # support --undefined. This deserves some investigation. FIXME
7347 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-sonam e $wl$soname -o $lib'
7348 else
7349 ld_shlibs=no
7350 fi
7351 ;;
7352
7353 cygwin* | mingw* | pw32* | cegcc*)
7354 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7355 # as there is no search path for DLLs.
7356 hardcode_libdir_flag_spec='-L$libdir'
7357 allow_undefined_flag=unsupported
7358 always_export_symbols=no
7359 enable_shared_with_static_runtimes=yes
7360 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SE D -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s /.*[ ]//'\'' | sort | uniq > $export_symbols'
7361
7362 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_o bjdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7364 # If the export-symbols file already is a .def file (1st line
7365 # is EXPORTS), use it as is; otherwise, prepend...
7366 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; th en
7367 cp $export_symbols $output_objdir/$soname.def;
7368 else
7369 echo EXPORTS > $output_objdir/$soname.def;
7370 cat $export_symbols >> $output_objdir/$soname.def;
7371 fi~
7372 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib - Xlinker $lib'
7373 else
7374 ld_shlibs=no
7375 fi
7376 ;;
7377
7378 interix[3-9]*)
7379 hardcode_direct=no
7380 hardcode_shlibpath_var=no
7381 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7382 export_dynamic_flag_spec='${wl}-E'
7383 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7384 # Instead, shared libraries are loaded at an image base (0x10000000 by
7385 # default) and relocated if they conflict, which is a slow very memory
7386 # consuming and fragmenting process. To avoid this, we pick a random,
7387 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7388 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7389 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl }-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 13421772 80` -o $lib'
7390 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname. expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname $ {wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7391 ;;
7392
7393 gnu* | linux* | tpf* | k*bsd*-gnu)
7394 tmp_diet=no
7395 if test "$host_os" = linux-dietlibc; then
7396 case $cc_basename in
7397 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d iet-dyn)
7398 esac
7399 fi
7400 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7401 && test "$tmp_diet" = no
7402 then
7403 tmp_addflag=
7404 tmp_sharedflag='-shared'
7405 case $cc_basename,$host_cpu in
7406 pgcc*) # Portland Group C compiler
7407 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience \"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7408 tmp_addflag=' $pic_flag'
7409 ;;
7410 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7411 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience \"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7412 tmp_addflag=' $pic_flag -Mnomain' ;;
7413 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7414 tmp_addflag=' -i_dynamic' ;;
7415 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7416 tmp_addflag=' -i_dynamic -nofor_main' ;;
7417 ifc* | ifort*) # Intel Fortran compiler
7418 tmp_addflag=' -nofor_main' ;;
7419 lf95*) # Lahey Fortran 8.1
7420 whole_archive_flag_spec=
7421 tmp_sharedflag='--shared' ;;
7422 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf bel ow)
7423 tmp_sharedflag='-qmkshrobj'
7424 tmp_addflag= ;;
7425 esac
7426 case `$CC -V 2>&1 | sed 5q` in
7427 *Sun\ C*) # Sun C 5.9
7428 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for co nv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenien ce,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7429 compiler_needs_object=yes
7430 tmp_sharedflag='-G' ;;
7431 *Sun\ F*) # Sun Fortran 8.3
7432 tmp_sharedflag='-G' ;;
7433 esac
7434 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $c ompiler_flags ${wl}-soname $wl$soname -o $lib'
7435
7436 if test "x$supports_anon_versioning" = xyes; then
7437 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7438 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn ame.ver~
7439 echo "local: *; };" >> $output_objdir/$libname.ver~
7440 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_fl ags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ve r -o $lib'
7441 fi
7442
7443 case $cc_basename in
7444 xlf*)
7445 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7446 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archiv e'
7447 hardcode_libdir_flag_spec=
7448 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7449 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $s oname -o $lib'
7450 if test "x$supports_anon_versioning" = xyes; then
7451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li bname.ver~
7453 echo "local: *; };" >> $output_objdir/$libname.ver~
7454 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -ver sion-script $output_objdir/$libname.ver -o $lib'
7455 fi
7456 ;;
7457 esac
7458 else
7459 ld_shlibs=no
7460 fi
7461 ;;
7462
7463 netbsd*)
7464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7465 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7466 wlarc=
7467 else
7468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7470 fi
7471 ;;
7472
7473 solaris*)
7474 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7475 ld_shlibs=no
7476 cat <<_LT_EOF 1>&2
7477
7478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7479 *** create shared libraries on Solaris systems. Therefore, libtool
7480 *** is disabling shared libraries support. We urge you to upgrade GNU
7481 *** binutils to release 2.9.1 or newer. Another option is to modify
7482 *** your PATH or compiler configuration so that the native linker is
7483 *** used, and then restart.
7484
7485 _LT_EOF
7486 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the n
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7489 else
7490 ld_shlibs=no
7491 fi
7492 ;;
7493
7494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7495 case `$LD -v 2>&1` in
7496 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7497 ld_shlibs=no
7498 cat <<_LT_EOF 1>&2
7499
7500 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7501 *** reliably create shared libraries on SCO systems. Therefore, libtool
7502 *** is disabling shared libraries support. We urge you to upgrade GNU
7503 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7504 *** your PATH or compiler configuration so that the native linker is
7505 *** used, and then restart.
7506
7507 _LT_EOF
7508 ;;
7509 *)
7510 # For security reasons, it is highly recommended that you always
7511 # use absolute paths for naming shared libraries, and exclude the
7512 # DT_RUNPATH tag from executables and libraries. But doing so
7513 # requires that you compile everything twice, which is a pain.
7514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; t hen
7515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
7517 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7518 else
7519 ld_shlibs=no
7520 fi
7521 ;;
7522 esac
7523 ;;
7524
7525 sunos4*)
7526 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7527 wlarc=
7528 hardcode_direct=yes
7529 hardcode_shlibpath_var=no
7530 ;;
7531
7532 *)
7533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7536 else
7537 ld_shlibs=no
7538 fi
7539 ;;
7540 esac
7541
7542 if test "$ld_shlibs" = no; then
7543 runpath_var=
7544 hardcode_libdir_flag_spec=
7545 export_dynamic_flag_spec=
7546 whole_archive_flag_spec=
7547 fi
7548 else
7549 # PORTME fill in a description of your system's linker (not GNU ld)
7550 case $host_os in
7551 aix3*)
7552 allow_undefined_flag=unsupported
7553 always_export_symbols=yes
7554 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $link er_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objd ir/$soname'
7555 # Note: this linker hardcodes the directories in LIBPATH if there
7556 # are no directories specified by -L.
7557 hardcode_minus_L=yes
7558 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7559 # Neither direct hardcoding nor static linking is supported with a
7560 # broken collect2.
7561 hardcode_direct=unsupported
7562 fi
7563 ;;
7564
7565 aix[4-9]*)
7566 if test "$host_cpu" = ia64; then
7567 # On IA64, the linker does run time linking by default, so we don't
7568 # have to do anything special.
7569 aix_use_runtimelinking=no
7570 exp_sym_flag='-Bexport'
7571 no_entry_flag=""
7572 else
7573 # If we're using GNU nm, then we don't want the "-C" option.
7574 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7575 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7576 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if ((( \$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7577 else
7578 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (( (\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7579 fi
7580 aix_use_runtimelinking=no
7581
7582 # Test if we are trying to use run time linking or normal
7583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7584 # need to do runtime linking.
7585 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7586 for ld_flag in $LDFLAGS; do
7587 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7588 aix_use_runtimelinking=yes
7589 break
7590 fi
7591 done
7592 ;;
7593 esac
7594
7595 exp_sym_flag='-bexport'
7596 no_entry_flag='-bnoentry'
7597 fi
7598
7599 # When large executables or shared objects are built, AIX ld can
7600 # have problems creating the table of contents. If linking a library
7601 # or program results in "error TOC overflow" add -mminimal-toc to
7602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7604
7605 archive_cmds=''
7606 hardcode_direct=yes
7607 hardcode_direct_absolute=yes
7608 hardcode_libdir_separator=':'
7609 link_all_deplibs=yes
7610 file_list_spec='${wl}-f,'
7611
7612 if test "$GCC" = yes; then
7613 case $host_os in aix4.[012]|aix4.[012].*)
7614 # We only want to do this on AIX 4.2 and lower, the check
7615 # below for broken collect2 doesn't work under 4.3+
7616 collect2name=`${CC} -print-prog-name=collect2`
7617 if test -f "$collect2name" &&
7618 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7619 then
7620 # We have reworked collect2
7621 :
7622 else
7623 # We have old collect2
7624 hardcode_direct=unsupported
7625 # It fails to find uninstalled libraries when the uninstalled
7626 # path is not listed in the libpath. Setting hardcode_minus_L
7627 # to unsupported forces relinking
7628 hardcode_minus_L=yes
7629 hardcode_libdir_flag_spec='-L$libdir'
7630 hardcode_libdir_separator=
7631 fi
7632 ;;
7633 esac
7634 shared_flag='-shared'
7635 if test "$aix_use_runtimelinking" = yes; then
7636 shared_flag="$shared_flag "'${wl}-G'
7637 fi
7638 else
7639 # not using gcc
7640 if test "$host_cpu" = ia64; then
7641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7642 # chokes on -Wl,-G. The following line is correct:
7643 shared_flag='-G'
7644 else
7645 if test "$aix_use_runtimelinking" = yes; then
7646 shared_flag='${wl}-G'
7647 else
7648 shared_flag='${wl}-bM:SRE'
7649 fi
7650 fi
7651 fi
7652
7653 export_dynamic_flag_spec='${wl}-bexpall'
7654 # It seems that -bexpall does not export symbols beginning with
7655 # underscore (_), so it is better to generate a list of symbols to export.
7656 always_export_symbols=yes
7657 if test "$aix_use_runtimelinking" = yes; then
7658 # Warning - without using the other runtime loading flags (-brtl),
7659 # -berok will link without error, but may produce a broken library.
7660 allow_undefined_flag='-berok'
7661 # Determine the default libpath from the value encoded in an
7662 # empty executable.
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */ 12058 /* end confdefs.h. */
7665 12059
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12063 #ifdef __cplusplus
12064 extern "C"
12065 #endif
12066 char dlopen ();
7666 int 12067 int
7667 main () 12068 main ()
7668 { 12069 {
7669 12070 return dlopen ();
7670 ; 12071 ;
7671 return 0; 12072 return 0;
7672 } 12073 }
7673 _ACEOF 12074 _ACEOF
7674 if ac_fn_c_try_link "$LINENO"; then : 12075 if ac_fn_c_try_link "$LINENO"; then :
7675 12076 ac_cv_lib_dl_dlopen=yes
7676 lt_aix_libpath_sed=' 12077 else
7677 /Import File Strings/,/^$/ { 12078 ac_cv_lib_dl_dlopen=no
7678 » /^0/ {
7679 » s/^0 *\(.*\)$/\1/
7680 » p
7681 » }
7682 }'
7683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
7684 # Check for a 64-bit object if we didn't find anything.
7685 if test -z "$aix_libpath"; then
7686 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
7687 fi
7688 fi 12079 fi
7689 rm -f core conftest.err conftest.$ac_objext \ 12080 rm -f core conftest.err conftest.$ac_objext \
7690 conftest$ac_exeext conftest.$ac_ext 12081 conftest$ac_exeext conftest.$ac_ext
7691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12082 LIBS=$ac_check_lib_save_LIBS
7692 12083 fi
7693 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7694 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\ ${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x" ; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_s ym_flag:\$export_symbols $shared_flag" 12085 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7695 else 12086 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7696 » if test "$host_cpu" = ia64; then 12087 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
7697 » hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 12088 else
7698 » allow_undefined_flag="-z nodefs" 12089
7699 » archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_f lag} '"\${wl}$exp_sym_flag:\$export_symbols" 12090 lt_cv_dlopen=dyld
7700 » else 12091 lt_cv_dlopen_libs=
7701 » # Determine the default libpath from the value encoded in an 12092 lt_cv_dlopen_self=yes
7702 » # empty executable. 12093
7703 » cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12094 fi
12095
12096 ;;
12097
12098 tpf*)
12099 # Don't try to run any link tests for TPF. We know it's impossible
12100 # because TPF is a cross-compiler, and we know how we open DSOs.
12101 lt_cv_dlopen=dlopen
12102 lt_cv_dlopen_libs=
12103 lt_cv_dlopen_self=no
12104 ;;
12105
12106 *)
12107 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12108 if test "x$ac_cv_func_shl_load" = xyes; then :
12109 lt_cv_dlopen=shl_load
12110 else
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12112 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12113 if ${ac_cv_lib_dld_shl_load+:} false; then :
12114 $as_echo_n "(cached) " >&6
12115 else
12116 ac_check_lib_save_LIBS=$LIBS
12117 LIBS="-ldld $LIBS"
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */ 12119 /* end confdefs.h. */
7705 12120
12121 /* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
12124 #ifdef __cplusplus
12125 extern "C"
12126 #endif
12127 char shl_load ();
7706 int 12128 int
7707 main () 12129 main ()
7708 { 12130 {
7709 12131 return shl_load ();
7710 ; 12132 ;
7711 return 0; 12133 return 0;
7712 } 12134 }
7713 _ACEOF 12135 _ACEOF
7714 if ac_fn_c_try_link "$LINENO"; then : 12136 if ac_fn_c_try_link "$LINENO"; then :
7715 12137 ac_cv_lib_dld_shl_load=yes
7716 lt_aix_libpath_sed=' 12138 else
7717 /Import File Strings/,/^$/ { 12139 ac_cv_lib_dld_shl_load=no
7718 » /^0/ {
7719 » s/^0 *\(.*\)$/\1/
7720 » p
7721 » }
7722 }'
7723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
7724 # Check for a 64-bit object if we didn't find anything.
7725 if test -z "$aix_libpath"; then
7726 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
7727 fi
7728 fi 12140 fi
7729 rm -f core conftest.err conftest.$ac_objext \ 12141 rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext 12142 conftest$ac_exeext conftest.$ac_ext
7731 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12143 LIBS=$ac_check_lib_save_LIBS
7732 12144 fi
7733 » hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
7734 » # Warning - without using the other run time loading flags, 12146 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7735 » # -berok will link without error, but may produce a broken library. 12147 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7736 » no_undefined_flag=' ${wl}-bernotok' 12148 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
7737 » allow_undefined_flag=' ${wl}-berok' 12149 else
7738 » # Exported symbols can be pulled into shared objects from archives 12150 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
7739 » whole_archive_flag_spec='$convenience' 12151 if test "x$ac_cv_func_dlopen" = xyes; then :
7740 » archive_cmds_need_lc=yes 12152 lt_cv_dlopen=dlopen
7741 » # This is similar to how AIX traditionally builds its shared libraries . 12153 else
7742 » archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_un defined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$so name' 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7743 » fi 12155 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7744 fi 12156 if ${ac_cv_lib_dl_dlopen+:} false; then :
7745 ;; 12157 $as_echo_n "(cached) " >&6
7746 12158 else
7747 amigaos*) 12159 ac_check_lib_save_LIBS=$LIBS
7748 case $host_cpu in 12160 LIBS="-ldl $LIBS"
7749 powerpc) 12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 # see comment about AmigaOS4 .so support
7751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
7752 archive_expsym_cmds=''
7753 ;;
7754 m68k)
7755 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a 2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary .data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7756 hardcode_libdir_flag_spec='-L$libdir'
7757 hardcode_minus_L=yes
7758 ;;
7759 esac
7760 ;;
7761
7762 bsdi[45]*)
7763 export_dynamic_flag_spec=-rdynamic
7764 ;;
7765
7766 cygwin* | mingw* | pw32* | cegcc*)
7767 # When not using gcc, we currently assume that we are using
7768 # Microsoft Visual C++.
7769 # hardcode_libdir_flag_spec is actually meaningless, as there is
7770 # no search path for DLLs.
7771 hardcode_libdir_flag_spec=' '
7772 allow_undefined_flag=unsupported
7773 # Tell ltmain to make .lib files, not .a files.
7774 libext=lib
7775 # Tell ltmain to make .dll files, not .so files.
7776 shrext_cmds=".dll"
7777 # FIXME: Setting linknames here is a bad hack.
7778 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $X sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7779 # The linker will automatically build a .lib file if we build a DLL.
7780 old_archive_from_new_cmds='true'
7781 # FIXME: Should let the user specify the lib program.
7782 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7783 fix_srcfile_path='`cygpath -w "$srcfile"`'
7784 enable_shared_with_static_runtimes=yes
7785 ;;
7786
7787 darwin* | rhapsody*)
7788
7789
7790 archive_cmds_need_lc=no
7791 hardcode_direct=no
7792 hardcode_automatic=yes
7793 hardcode_shlibpath_var=unsupported
7794 whole_archive_flag_spec=''
7795 link_all_deplibs=yes
7796 allow_undefined_flag="$_lt_dar_allow_undefined"
7797 case $cc_basename in
7798 ifort*) _lt_dar_can_shared=yes ;;
7799 *) _lt_dar_can_shared=$GCC ;;
7800 esac
7801 if test "$_lt_dar_can_shared" = "yes"; then
7802 output_verbose_link_cmd=echo
7803 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$d eplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_sing le_mod${_lt_dsymutil}"
7804 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplib s \$compiler_flags${_lt_dsymutil}"
7805 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${li bname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar _single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7806 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${ libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \ $deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7807
7808 else
7809 ld_shlibs=no
7810 fi
7811
7812 ;;
7813
7814 dgux*)
7815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816 hardcode_libdir_flag_spec='-L$libdir'
7817 hardcode_shlibpath_var=no
7818 ;;
7819
7820 freebsd1*)
7821 ld_shlibs=no
7822 ;;
7823
7824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7825 # support. Future versions do this automatically, but an explicit c++rt0.o
7826 # does not break anything, and helps significantly (at the cost of a little
7827 # extra space).
7828 freebsd2.2*)
7829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr /lib/c++rt0.o'
7830 hardcode_libdir_flag_spec='-R$libdir'
7831 hardcode_direct=yes
7832 hardcode_shlibpath_var=no
7833 ;;
7834
7835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7836 freebsd2*)
7837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7838 hardcode_direct=yes
7839 hardcode_minus_L=yes
7840 hardcode_shlibpath_var=no
7841 ;;
7842
7843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7844 freebsd* | dragonfly*)
7845 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7846 hardcode_libdir_flag_spec='-R$libdir'
7847 hardcode_direct=yes
7848 hardcode_shlibpath_var=no
7849 ;;
7850
7851 hpux9*)
7852 if test "$GCC" = yes; then
7853 » archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl} $install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7854 else
7855 » archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $o utput_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7856 fi
7857 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7858 hardcode_libdir_separator=:
7859 hardcode_direct=yes
7860
7861 # hardcode_minus_L: Not really in the search PATH,
7862 # but as the default location of the library.
7863 hardcode_minus_L=yes
7864 export_dynamic_flag_spec='${wl}-E'
7865 ;;
7866
7867 hpux10*)
7868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7869 » archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$insta ll_libdir -o $lib $libobjs $deplibs $compiler_flags'
7870 else
7871 » archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $dep libs $linker_flags'
7872 fi
7873 if test "$with_gnu_ld" = no; then
7874 » hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7875 » hardcode_libdir_flag_spec_ld='+b $libdir'
7876 » hardcode_libdir_separator=:
7877 » hardcode_direct=yes
7878 » hardcode_direct_absolute=yes
7879 » export_dynamic_flag_spec='${wl}-E'
7880 » # hardcode_minus_L: Not really in the search PATH,
7881 » # but as the default location of the library.
7882 » hardcode_minus_L=yes
7883 fi
7884 ;;
7885
7886 hpux11*)
7887 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7888 » case $host_cpu in
7889 » hppa*64*)
7890 » archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $depli bs $compiler_flags'
7891 » ;;
7892 » ia64*)
7893 » archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrp ath -o $lib $libobjs $deplibs $compiler_flags'
7894 » ;;
7895 » *)
7896 » archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$ins tall_libdir -o $lib $libobjs $deplibs $compiler_flags'
7897 » ;;
7898 » esac
7899 else
7900 » case $host_cpu in
7901 » hppa*64*)
7902 » archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $c ompiler_flags'
7903 » ;;
7904 » ia64*)
7905 » archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7906 » ;;
7907 » *)
7908 » archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7909 » ;;
7910 » esac
7911 fi
7912 if test "$with_gnu_ld" = no; then
7913 » hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7914 » hardcode_libdir_separator=:
7915
7916 » case $host_cpu in
7917 » hppa*64*|ia64*)
7918 » hardcode_direct=no
7919 » hardcode_shlibpath_var=no
7920 » ;;
7921 » *)
7922 » hardcode_direct=yes
7923 » hardcode_direct_absolute=yes
7924 » export_dynamic_flag_spec='${wl}-E'
7925
7926 » # hardcode_minus_L: Not really in the search PATH,
7927 » # but as the default location of the library.
7928 » hardcode_minus_L=yes
7929 » ;;
7930 » esac
7931 fi
7932 ;;
7933
7934 irix5* | irix6* | nonstopux*)
7935 if test "$GCC" = yes; then
7936 » archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring " | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7937 » # Try to use the -exported_symbol ld option, if it does not
7938 » # work, assume that -exports_file does not work either and
7939 » # implicitly export all symbols.
7940 save_LDFLAGS="$LDFLAGS"
7941 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_re gistry ${wl}/dev/null"
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */ 12162 /* end confdefs.h. */
7944 int foo(void) {} 12163
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char dlopen ();
12171 int
12172 main ()
12173 {
12174 return dlopen ();
12175 ;
12176 return 0;
12177 }
7945 _ACEOF 12178 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"; then : 12179 if ac_fn_c_try_link "$LINENO"; then :
7947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-sonam e ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstrin g" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-expor ts_file ${wl}$export_symbols -o $lib' 12180 ac_cv_lib_dl_dlopen=yes
7948 12181 else
12182 ac_cv_lib_dl_dlopen=no
7949 fi 12183 fi
7950 rm -f core conftest.err conftest.$ac_objext \ 12184 rm -f core conftest.err conftest.$ac_objext \
7951 conftest$ac_exeext conftest.$ac_ext 12185 conftest$ac_exeext conftest.$ac_ext
7952 LDFLAGS="$save_LDFLAGS" 12186 LIBS=$ac_check_lib_save_LIBS
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12189 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12190 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12191 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12192 else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12194 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12195 if ${ac_cv_lib_svld_dlopen+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-lsvld $LIBS"
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
12206 #ifdef __cplusplus
12207 extern "C"
12208 #endif
12209 char dlopen ();
12210 int
12211 main ()
12212 {
12213 return dlopen ();
12214 ;
12215 return 0;
12216 }
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_lib_svld_dlopen=yes
12220 else
12221 ac_cv_lib_svld_dlopen=no
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12228 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12229 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12230 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12231 else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12233 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12234 if ${ac_cv_lib_dld_dld_link+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-ldld $LIBS"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12245 #ifdef __cplusplus
12246 extern "C"
12247 #endif
12248 char dld_link ();
12249 int
12250 main ()
12251 {
12252 return dld_link ();
12253 ;
12254 return 0;
12255 }
12256 _ACEOF
12257 if ac_fn_c_try_link "$LINENO"; then :
12258 ac_cv_lib_dld_dld_link=yes
12259 else
12260 ac_cv_lib_dld_dld_link=no
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12267 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12268 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12269 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12270 fi
12271
12272
12273 fi
12274
12275
12276 fi
12277
12278
12279 fi
12280
12281
12282 fi
12283
12284
12285 fi
12286
12287 ;;
12288 esac
12289
12290 if test no = "$lt_cv_dlopen"; then
12291 enable_dlopen=no
12292 else
12293 enable_dlopen=yes
12294 fi
12295
12296 case $lt_cv_dlopen in
12297 dlopen)
12298 save_CPPFLAGS=$CPPFLAGS
12299 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12300
12301 save_LDFLAGS=$LDFLAGS
12302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12303
12304 save_LIBS=$LIBS
12305 LIBS="$lt_cv_dlopen_libs $LIBS"
12306
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlop en itself" >&5
12308 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12309 if ${lt_cv_dlopen_self+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 » if test yes = "$cross_compiling"; then :
12313 lt_cv_dlopen_self=cross
12314 else
12315 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12316 lt_status=$lt_dlunknown
12317 cat > conftest.$ac_ext <<_LT_EOF
12318 #line $LINENO "configure"
12319 #include "confdefs.h"
12320
12321 #if HAVE_DLFCN_H
12322 #include <dlfcn.h>
12323 #endif
12324
12325 #include <stdio.h>
12326
12327 #ifdef RTLD_GLOBAL
12328 # define LT_DLGLOBAL» » RTLD_GLOBAL
12329 #else
12330 # ifdef DL_GLOBAL
12331 # define LT_DLGLOBAL»» DL_GLOBAL
12332 # else
12333 # define LT_DLGLOBAL»» 0
12334 # endif
12335 #endif
12336
12337 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12338 find out it does not work in some platform. */
12339 #ifndef LT_DLLAZY_OR_NOW
12340 # ifdef RTLD_LAZY
12341 # define LT_DLLAZY_OR_NOW» » RTLD_LAZY
12342 # else
12343 # ifdef DL_LAZY
12344 # define LT_DLLAZY_OR_NOW» » DL_LAZY
12345 # else
12346 # ifdef RTLD_NOW
12347 # define LT_DLLAZY_OR_NOW» RTLD_NOW
12348 # else
12349 # ifdef DL_NOW
12350 # define LT_DLLAZY_OR_NOW» DL_NOW
12351 # else
12352 # define LT_DLLAZY_OR_NOW» 0
12353 # endif
12354 # endif
12355 # endif
12356 # endif
12357 #endif
12358
12359 /* When -fvisibility=hidden is used, assume the code has been annotated
12360 correspondingly for the symbols needed. */
12361 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12362 int fnord () __attribute__((visibility("default")));
12363 #endif
12364
12365 int fnord () { return 42; }
12366 int main ()
12367 {
12368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12369 int status = $lt_dlunknown;
12370
12371 if (self)
12372 {
12373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7953 else 12374 else
7954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $son ame `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_r egistry ${output_objdir}/so_locations -o $lib' 12375 {
7955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -sona me $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -u pdate_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $l ib' 12376 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7956 fi 12377 else puts (dlerror ());
7957 archive_cmds_need_lc='no' 12378 }
7958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12379 /* dlclose (self); */
7959 hardcode_libdir_separator=: 12380 }
7960 inherit_rpath=yes 12381 else
7961 link_all_deplibs=yes 12382 puts (dlerror ());
7962 ;; 12383
7963 12384 return status;
7964 netbsd*) 12385 }
7965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12386 _LT_EOF
7966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7967 else 12388 (eval $ac_link) 2>&5
7968 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7969 fi
7970 hardcode_libdir_flag_spec='-R$libdir'
7971 hardcode_direct=yes
7972 hardcode_shlibpath_var=no
7973 ;;
7974
7975 newsos6)
7976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7977 hardcode_direct=yes
7978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7979 hardcode_libdir_separator=:
7980 hardcode_shlibpath_var=no
7981 ;;
7982
7983 *nto* | *qnx*)
7984 ;;
7985
7986 openbsd*)
7987 if test -f /usr/libexec/ld.so; then
7988 hardcode_direct=yes
7989 hardcode_shlibpath_var=no
7990 hardcode_direct_absolute=yes
7991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os -$host_cpu" = "openbsd2.8-powerpc"; then
7992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compile r_flags'
7993 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $ compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7995 export_dynamic_flag_spec='${wl}-E'
7996 else
7997 case $host_os in
7998 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7999 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_fla gs'
8000 hardcode_libdir_flag_spec='-R$libdir'
8001 ;;
8002 *)
8003 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $comp iler_flags'
8004 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8005 ;;
8006 esac
8007 fi
8008 else
8009 ld_shlibs=no
8010 fi
8011 ;;
8012
8013 os2*)
8014 hardcode_libdir_flag_spec='-L$libdir'
8015 hardcode_minus_L=yes
8016 allow_undefined_flag=unsupported
8017 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libn ame.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DA TA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$l ibname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $outp ut_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_fl ags $output_objdir/$libname.def'
8018 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_obj dir/$libname.def'
8019 ;;
8020
8021 osf3*)
8022 if test "$GCC" = yes; then
8023 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8024 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_ version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so _locations -o $lib'
8025 else
8026 allow_undefined_flag=' -expect_unresolved \*'
8027 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstr ing" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8028 fi
8029 archive_cmds_need_lc='no'
8030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8031 hardcode_libdir_separator=:
8032 ;;
8033
8034 osf4* | osf5*) # as osf3* with the addition of -msym flag
8035 if test "$GCC" = yes; then
8036 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8037 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO " X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output _objdir}/so_locations -o $lib'
8038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8039 else
8040 allow_undefined_flag=' -expect_unresolved \*'
8041 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $ verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8042 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n " -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8043 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_f lags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_ver sion $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib ~$RM $lib.exp'
8044
8045 # Both c and cxx compiler support -rpath directly
8046 hardcode_libdir_flag_spec='-rpath $libdir'
8047 fi
8048 archive_cmds_need_lc='no'
8049 hardcode_libdir_separator=:
8050 ;;
8051
8052 solaris*)
8053 no_undefined_flag=' -z defs'
8054 if test "$GCC" = yes; then
8055 wlarc='${wl}'
8056 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $ SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8058 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$sona me -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8059 else
8060 case `$CC -V 2>&1` in
8061 *"Compilers 5.0"*)
8062 wlarc=''
8063 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobj s $deplibs $linker_flags'
8064 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8065 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8066 ;;
8067 *)
8068 wlarc='${wl}'
8069 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobj s $deplibs $compiler_flags'
8070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8071 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8072 ;;
8073 esac
8074 fi
8075 hardcode_libdir_flag_spec='-R$libdir'
8076 hardcode_shlibpath_var=no
8077 case $host_os in
8078 solaris2.[0-5] | solaris2.[0-5].*) ;;
8079 *)
8080 # The compiler driver will combine and reorder linker options,
8081 # but understands `-z linker_flag'. GCC discards it without `$wl',
8082 # but is careful enough not to reorder.
8083 # Supported since Solaris 2.6 (maybe 2.5.1?)
8084 if test "$GCC" = yes; then
8085 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z $ {wl}defaultextract'
8086 else
8087 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8088 fi
8089 ;;
8090 esac
8091 link_all_deplibs=yes
8092 ;;
8093
8094 sunos4*)
8095 if test "x$host_vendor" = xsequent; then
8096 # Use $CC to link under sequent, because it throws in some extra .o
8097 # files that make .init and .fini sections work.
8098 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler _flags'
8099 else
8100 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $ linker_flags'
8101 fi
8102 hardcode_libdir_flag_spec='-L$libdir'
8103 hardcode_direct=yes
8104 hardcode_minus_L=yes
8105 hardcode_shlibpath_var=no
8106 ;;
8107
8108 sysv4)
8109 case $host_vendor in
8110 sni)
8111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
8112 hardcode_direct=yes # is this really true???
8113 ;;
8114 siemens)
8115 ## LD is ld it makes a PLAMLIB
8116 ## CC just makes a GrossModule.
8117 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8118 reload_cmds='$CC -r -o $output$reload_objs'
8119 hardcode_direct=no
8120 ;;
8121 motorola)
8122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
8123 hardcode_direct=no #Motorola manual says yes, but my tests say they li e
8124 ;;
8125 esac
8126 runpath_var='LD_RUN_PATH'
8127 hardcode_shlibpath_var=no
8128 ;;
8129
8130 sysv4.3*)
8131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8132 hardcode_shlibpath_var=no
8133 export_dynamic_flag_spec='-Bexport'
8134 ;;
8135
8136 sysv4*MP*)
8137 if test -d /usr/nec; then
8138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8139 hardcode_shlibpath_var=no
8140 runpath_var=LD_RUN_PATH
8141 hardcode_runpath_var=yes
8142 ld_shlibs=yes
8143 fi
8144 ;;
8145
8146 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3. 2v5.0.[024]*)
8147 no_undefined_flag='${wl}-z,text'
8148 archive_cmds_need_lc=no
8149 hardcode_shlibpath_var=no
8150 runpath_var='LD_RUN_PATH'
8151
8152 if test "$GCC" = yes; then
8153 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com piler_flags'
8154 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$ soname -o $lib $libobjs $deplibs $compiler_flags'
8155 else
8156 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler _flags'
8157 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam e -o $lib $libobjs $deplibs $compiler_flags'
8158 fi
8159 ;;
8160
8161 sysv5* | sco3.2v5* | sco5v6*)
8162 # Note: We can NOT use -z defs as we might desire, because we do not
8163 # link with -lc, and that would cause any symbols used from libc to
8164 # always be unresolved, which means just about no library would
8165 # ever link correctly. If we're not using GNU ld we use -z text
8166 # though, which does catch some bad symbols but isn't as heavy-handed
8167 # as -z defs.
8168 no_undefined_flag='${wl}-z,text'
8169 allow_undefined_flag='${wl}-z,nodefs'
8170 archive_cmds_need_lc=no
8171 hardcode_shlibpath_var=no
8172 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8173 hardcode_libdir_separator=':'
8174 link_all_deplibs=yes
8175 export_dynamic_flag_spec='${wl}-Bexport'
8176 runpath_var='LD_RUN_PATH'
8177
8178 if test "$GCC" = yes; then
8179 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com piler_flags'
8180 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$ soname -o $lib $libobjs $deplibs $compiler_flags'
8181 else
8182 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler _flags'
8183 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam e -o $lib $libobjs $deplibs $compiler_flags'
8184 fi
8185 ;;
8186
8187 uts4*)
8188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8189 hardcode_libdir_flag_spec='-L$libdir'
8190 hardcode_shlibpath_var=no
8191 ;;
8192
8193 *)
8194 ld_shlibs=no
8195 ;;
8196 esac
8197
8198 if test x$host_vendor = xsni; then
8199 case $host in
8200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8201 export_dynamic_flag_spec='${wl}-Blargedynsym'
8202 ;;
8203 esac
8204 fi
8205 fi
8206
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8208 $as_echo "$ld_shlibs" >&6; }
8209 test "$ld_shlibs" = no && can_build_shared=no
8210
8211 with_gnu_ld=$with_gnu_ld
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227 #
8228 # Do we need to explicitly link libc?
8229 #
8230 case "x$archive_cmds_need_lc" in
8231 x|xyes)
8232 # Assume -lc should be added
8233 archive_cmds_need_lc=yes
8234
8235 if test "$enable_shared" = yes && test "$GCC" = yes; then
8236 case $archive_cmds in
8237 *'~'*)
8238 # FIXME: we may have to deal with multi-command sequences.
8239 ;;
8240 '$CC '*)
8241 # Test whether the compiler implicitly links with -lc since on some
8242 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8243 # to ld, don't add -lc before -lgcc.
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be ex plicitly linked in" >&5
8245 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8246 $RM conftest*
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248
8249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >& 5
8250 (eval $ac_compile) 2>&5
8251 ac_status=$? 12389 ac_status=$?
8252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8253 test $ac_status = 0; } 2>conftest.err; then 12391 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8254 soname=conftest 12392 (./conftest; exit; ) >&5 2>/dev/null
8255 lib=conftest 12393 lt_status=$?
8256 libobjs=conftest.$ac_objext 12394 case x$lt_status in
8257 deplibs= 12395 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8258 wl=$lt_prog_compiler_wl 12396 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8259 » pic_flag=$lt_prog_compiler_pic 12397 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8260 compiler_flags=-v 12398 esac
8261 linker_flags=-v 12399 else :
8262 verstring= 12400 # compilation failed
8263 output_objdir=. 12401 lt_cv_dlopen_self=no
8264 libname=conftest 12402 fi
8265 lt_save_allow_undefined_flag=$allow_undefined_flag 12403 fi
8266 allow_undefined_flag= 12404 rm -fr conftest*
8267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\ &1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12405
8268 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12406
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12409 $as_echo "$lt_cv_dlopen_self" >&6; }
12410
12411 if test yes = "$lt_cv_dlopen_self"; then
12412 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\ "
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically lin ked program can dlopen itself" >&5
12414 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12415 if ${lt_cv_dlopen_self_static+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 » if test yes = "$cross_compiling"; then :
12419 lt_cv_dlopen_self_static=cross
12420 else
12421 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12422 lt_status=$lt_dlunknown
12423 cat > conftest.$ac_ext <<_LT_EOF
12424 #line $LINENO "configure"
12425 #include "confdefs.h"
12426
12427 #if HAVE_DLFCN_H
12428 #include <dlfcn.h>
12429 #endif
12430
12431 #include <stdio.h>
12432
12433 #ifdef RTLD_GLOBAL
12434 # define LT_DLGLOBAL» » RTLD_GLOBAL
12435 #else
12436 # ifdef DL_GLOBAL
12437 # define LT_DLGLOBAL»» DL_GLOBAL
12438 # else
12439 # define LT_DLGLOBAL»» 0
12440 # endif
12441 #endif
12442
12443 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12444 find out it does not work in some platform. */
12445 #ifndef LT_DLLAZY_OR_NOW
12446 # ifdef RTLD_LAZY
12447 # define LT_DLLAZY_OR_NOW» » RTLD_LAZY
12448 # else
12449 # ifdef DL_LAZY
12450 # define LT_DLLAZY_OR_NOW» » DL_LAZY
12451 # else
12452 # ifdef RTLD_NOW
12453 # define LT_DLLAZY_OR_NOW» RTLD_NOW
12454 # else
12455 # ifdef DL_NOW
12456 # define LT_DLLAZY_OR_NOW» DL_NOW
12457 # else
12458 # define LT_DLLAZY_OR_NOW» 0
12459 # endif
12460 # endif
12461 # endif
12462 # endif
12463 #endif
12464
12465 /* When -fvisibility=hidden is used, assume the code has been annotated
12466 correspondingly for the symbols needed. */
12467 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12468 int fnord () __attribute__((visibility("default")));
12469 #endif
12470
12471 int fnord () { return 42; }
12472 int main ()
12473 {
12474 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12475 int status = $lt_dlunknown;
12476
12477 if (self)
12478 {
12479 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12480 else
12481 {
12482 » if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12483 else puts (dlerror ());
12484 » }
12485 /* dlclose (self); */
12486 }
12487 else
12488 puts (dlerror ());
12489
12490 return status;
12491 }
12492 _LT_EOF
12493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12494 (eval $ac_link) 2>&5
8269 ac_status=$? 12495 ac_status=$?
8270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271 test $ac_status = 0; } 12497 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
8272 then 12498 (./conftest; exit; ) >&5 2>/dev/null
8273 » archive_cmds_need_lc=no 12499 lt_status=$?
8274 else 12500 case x$lt_status in
8275 » archive_cmds_need_lc=yes 12501 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8276 fi 12502 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8277 allow_undefined_flag=$lt_save_allow_undefined_flag 12503 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8278 else
8279 cat conftest.err 1>&5
8280 fi
8281 $RM conftest*
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >& 5
8283 $as_echo "$archive_cmds_need_lc" >&6; }
8284 ;;
8285 esac 12504 esac
12505 else :
12506 # compilation failed
12507 lt_cv_dlopen_self_static=no
8286 fi 12508 fi
8287 ;; 12509 fi
8288 esac 12510 rm -fr conftest*
8289 12511
8290 12512
8291 12513 fi
8292 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
8293 12515 $as_echo "$lt_cv_dlopen_self_static" >&6; }
8294 12516 fi
8295 12517
8296 12518 CPPFLAGS=$save_CPPFLAGS
8297 12519 LDFLAGS=$save_LDFLAGS
8298 12520 LIBS=$save_LIBS
8299 12521 ;;
8300 12522 esac
8301 12523
8302 12524 case $lt_cv_dlopen_self in
8303 12525 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8304 12526 *) enable_dlopen_self=unknown ;;
8305 12527 esac
8306 12528
8307 12529 case $lt_cv_dlopen_self_static in
8308 12530 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8309 12531 *) enable_dlopen_self_static=unknown ;;
8310 12532 esac
8311 12533 fi
8312 12534
8313 12535
8314 12536
8315
8316
8317 12537
8318 12538
8319 12539
8320 12540
8321 12541
8322 12542
8323 12543
8324 12544
8325 12545
8326 12546
8327 12547
8328 12548
8329 12549
8330 12550
12551 striplib=
12552 old_striplib=
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12554 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12555 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12556 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12557 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12559 $as_echo "yes" >&6; }
12560 else
12561 # FIXME - insert some real tests, host_os isn't really good enough
12562 case $host_os in
12563 darwin*)
12564 if test -n "$STRIP"; then
12565 striplib="$STRIP -x"
12566 old_striplib="$STRIP -S"
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12568 $as_echo "yes" >&6; }
12569 else
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571 $as_echo "no" >&6; }
12572 fi
12573 ;;
12574 *)
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576 $as_echo "no" >&6; }
12577 ;;
12578 esac
12579 fi
8331 12580
8332 12581
8333 12582
8334 12583
8335 12584
8336 12585
8337 12586
8338 12587
8339 12588
8340 12589
8341 12590
8342 12591
12592 # Report what library types will actually be built
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared l ibraries" >&5
12594 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12596 $as_echo "$can_build_shared" >&6; }
12597
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libr aries" >&5
12599 $as_echo_n "checking whether to build shared libraries... " >&6; }
12600 test no = "$can_build_shared" && enable_shared=no
12601
12602 # On AIX, shared libraries and static libraries use the same namespace, and
12603 # are all built from PIC.
12604 case $host_os in
12605 aix3*)
12606 test yes = "$enable_shared" && enable_static=no
12607 if test -n "$RANLIB"; then
12608 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12609 postinstall_cmds='$RANLIB $lib'
12610 fi
12611 ;;
12612
12613 aix[4-9]*)
12614 if test ia64 != "$host_cpu"; then
12615 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12616 yes,aix,yes) ;; # shared object as lib.so file only
12617 yes,svr4,*) ;; # shared object as lib.so archive member only
12618 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12619 esac
12620 fi
12621 ;;
12622 esac
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12624 $as_echo "$enable_shared" >&6; }
12625
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libr aries" >&5
12627 $as_echo_n "checking whether to build static libraries... " >&6; }
12628 # Make sure either enable_shared or enable_static is yes.
12629 test yes = "$enable_shared" || enable_static=yes
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12631 $as_echo "$enable_static" >&6; }
12632
12633
12634
8343 12635
12636 fi
12637 ac_ext=c
12638 ac_cpp='$CPP $CPPFLAGS'
12639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
12641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12642
12643 CC=$lt_save_CC
8344 12644
8345 12645
8346 12646
8347
8348
8349
8350
8351
8352
8353
8354
8355 12647
8356 12648
8357 12649
8358 12650
8359 12651
8360 12652
8361 12653
8362 12654
8363 12655
8364 12656
8365 12657
8366 12658
8367 12659 ac_config_commands="$ac_config_commands libtool"
8368 12660
8369 12661
8370 12662
8371 12663
8372 12664 # Only expand once:
8373 12665
8374 12666
8375 12667
8376 12668 VERSION_SCRIPT_FLAGS=
8377 12669 # lt_cv_prog_gnu_ld is from libtool 2.+
8378 12670 if test "$lt_cv_prog_gnu_ld" = yes; then
8379 12671 VERSION_SCRIPT_FLAGS=-Wl,--version-script=
8380 12672 else
8381 12673 case $host in
8382 12674 *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristi cs" >&5
8447 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8448
8449 if test "$GCC" = yes; then
8450 case $host_os in
8451 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8452 *) lt_awk_arg="/^libraries:/" ;;
8453 esac 12675 esac
8454 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li braries://" -e "s,=/,/,g"` 12676 fi
8455 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 12677
8456 # if the path contains ";" then we assume it to be the separator 12678 if test -n "$VERSION_SCRIPT_FLAGS"; then
8457 # otherwise default to the standard path separator (i.e. ":") - it is 12679 USE_VERSION_SCRIPT_TRUE=
8458 # assumed that no part of a normal pathname contains ";" but that should 12680 USE_VERSION_SCRIPT_FALSE='#'
8459 # okay in the real world where ";" in dirpaths is itself problematic. 12681 else
8460 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 12682 USE_VERSION_SCRIPT_TRUE='#'
8461 else 12683 USE_VERSION_SCRIPT_FALSE=
8462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARA TOR/ /g"` 12684 fi
12685
12686
12687
12688 _cppflags="${CPPFLAGS}"
12689 _libs="${LIBS}"
12690
12691
12692 # Check whether --with-c14n was given.
12693 if test "${with_c14n+set}" = set; then :
12694 withval=$with_c14n;
12695 fi
12696
12697
12698 # Check whether --with-catalog was given.
12699 if test "${with_catalog+set}" = set; then :
12700 withval=$with_catalog;
12701 fi
12702
12703
12704 # Check whether --with-debug was given.
12705 if test "${with_debug+set}" = set; then :
12706 withval=$with_debug;
12707 fi
12708
12709
12710 # Check whether --with-docbook was given.
12711 if test "${with_docbook+set}" = set; then :
12712 withval=$with_docbook;
12713 fi
12714
12715
12716 # Check whether --with-fexceptions was given.
12717 if test "${with_fexceptions+set}" = set; then :
12718 withval=$with_fexceptions;
12719 fi
12720
12721
12722 # Check whether --with-ftp was given.
12723 if test "${with_ftp+set}" = set; then :
12724 withval=$with_ftp;
12725 fi
12726
12727
12728 # Check whether --with-history was given.
12729 if test "${with_history+set}" = set; then :
12730 withval=$with_history;
12731 fi
12732
12733
12734 # Check whether --with-html was given.
12735 if test "${with_html+set}" = set; then :
12736 withval=$with_html;
12737 fi
12738
12739
12740 # Check whether --with-html-dir was given.
12741 if test "${with_html_dir+set}" = set; then :
12742 withval=$with_html_dir; HTML_DIR=$withval
12743 else
12744 HTML_DIR='$(datadir)/doc'
12745 fi
12746
12747
12748
12749 # Check whether --with-html-subdir was given.
12750 if test "${with_html_subdir+set}" = set; then :
12751 withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$wit hval"
12752 else
12753 HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"
12754 fi
12755
12756
12757
12758 # Check whether --with-http was given.
12759 if test "${with_http+set}" = set; then :
12760 withval=$with_http;
12761 fi
12762
12763
12764 # Check whether --with-iconv was given.
12765 if test "${with_iconv+set}" = set; then :
12766 withval=$with_iconv;
12767 fi
12768
12769
12770 # Check whether --with-icu was given.
12771 if test "${with_icu+set}" = set; then :
12772 withval=$with_icu;
12773 fi
12774
12775
12776 # Check whether --with-iso8859x was given.
12777 if test "${with_iso8859x+set}" = set; then :
12778 withval=$with_iso8859x;
12779 fi
12780
12781
12782 # Check whether --with-legacy was given.
12783 if test "${with_legacy+set}" = set; then :
12784 withval=$with_legacy;
12785 fi
12786
12787
12788 # Check whether --with-mem_debug was given.
12789 if test "${with_mem_debug+set}" = set; then :
12790 withval=$with_mem_debug;
12791 fi
12792
12793
12794 # Check whether --with-minimum was given.
12795 if test "${with_minimum+set}" = set; then :
12796 withval=$with_minimum;
12797 fi
12798
12799
12800 # Check whether --with-output was given.
12801 if test "${with_output+set}" = set; then :
12802 withval=$with_output;
12803 fi
12804
12805
12806 # Check whether --with-pattern was given.
12807 if test "${with_pattern+set}" = set; then :
12808 withval=$with_pattern;
12809 fi
12810
12811
12812 # Check whether --with-push was given.
12813 if test "${with_push+set}" = set; then :
12814 withval=$with_push;
12815 fi
12816
12817
12818 # Check whether --with-python was given.
12819 if test "${with_python+set}" = set; then :
12820 withval=$with_python;
12821 fi
12822
12823
12824 # Check whether --with-python_install_dir was given.
12825 if test "${with_python_install_dir+set}" = set; then :
12826 withval=$with_python_install_dir;
12827 fi
12828
12829
12830 # Check whether --with-reader was given.
12831 if test "${with_reader+set}" = set; then :
12832 withval=$with_reader;
12833 fi
12834
12835
12836 # Check whether --with-readline was given.
12837 if test "${with_readline+set}" = set; then :
12838 withval=$with_readline;
12839 if test "$withval" != "no" -a "$withval" != "yes"; then
12840 RDL_DIR=$withval
12841 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12842 LIBS="${LIBS} -L$withval/lib"
8463 fi 12843 fi
8464 # Ok, now we have the path, separated by spaces, we can step through it 12844
8465 # and add multilib dir if necessary. 12845 fi
8466 lt_tmp_lt_search_path_spec= 12846
8467 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d ev/null` 12847
8468 for lt_sys_path in $lt_search_path_spec; do 12848 # Check whether --with-regexps was given.
8469 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12849 if test "${with_regexps+set}" = set; then :
8470 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m ulti_os_dir" 12850 withval=$with_regexps;
8471 else 12851 fi
8472 test -d "$lt_sys_path" && \ 12852
8473 » lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12853
8474 fi 12854 # Check whether --with-run_debug was given.
8475 done 12855 if test "${with_run_debug+set}" = set; then :
8476 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 12856 withval=$with_run_debug;
8477 BEGIN {RS=" "; FS="/|\n";} { 12857 fi
8478 lt_foo=""; 12858
8479 lt_count=0; 12859
8480 for (lt_i = NF; lt_i > 0; lt_i--) { 12860 # Check whether --with-sax1 was given.
8481 if ($lt_i != "" && $lt_i != ".") { 12861 if test "${with_sax1+set}" = set; then :
8482 if ($lt_i == "..") { 12862 withval=$with_sax1;
8483 lt_count++; 12863 fi
8484 } else { 12864
8485 if (lt_count == 0) { 12865
8486 lt_foo="/" $lt_i lt_foo; 12866 # Check whether --with-schemas was given.
8487 } else { 12867 if test "${with_schemas+set}" = set; then :
8488 lt_count--; 12868 withval=$with_schemas;
8489 } 12869 fi
8490 } 12870
8491 } 12871
8492 } 12872 # Check whether --with-schematron was given.
8493 if (lt_foo != "") { lt_freq[lt_foo]++; } 12873 if test "${with_schematron+set}" = set; then :
8494 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12874 withval=$with_schematron;
8495 }'` 12875 fi
8496 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 12876
8497 else 12877
8498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12878 # Check whether --with-threads was given.
8499 fi 12879 if test "${with_threads+set}" = set; then :
8500 library_names_spec= 12880 withval=$with_threads;
8501 libname_spec='lib$name' 12881 fi
8502 soname_spec= 12882
8503 shrext_cmds=".so" 12883
8504 postinstall_cmds= 12884 # Check whether --with-thread-alloc was given.
8505 postuninstall_cmds= 12885 if test "${with_thread_alloc+set}" = set; then :
8506 finish_cmds= 12886 withval=$with_thread_alloc;
8507 finish_eval= 12887 fi
8508 shlibpath_var= 12888
8509 shlibpath_overrides_runpath=unknown 12889
8510 version_type=none 12890 # Check whether --with-tree was given.
8511 dynamic_linker="$host_os ld.so" 12891 if test "${with_tree+set}" = set; then :
8512 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12892 withval=$with_tree;
8513 need_lib_prefix=unknown 12893 fi
8514 hardcode_into_libs=no 12894
8515 12895
8516 # when you set need_version to no, make sure it does not cause -set_version 12896 # Check whether --with-valid was given.
8517 # flags to be left without arguments 12897 if test "${with_valid+set}" = set; then :
8518 need_version=unknown 12898 withval=$with_valid;
8519 12899 fi
8520 case $host_os in 12900
8521 aix3*) 12901
8522 version_type=linux 12902 # Check whether --with-writer was given.
8523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12903 if test "${with_writer+set}" = set; then :
8524 shlibpath_var=LIBPATH 12904 withval=$with_writer;
8525 12905 fi
8526 # AIX 3 has no versioning support, so we append a major version to the name. 12906
8527 soname_spec='${libname}${release}${shared_ext}$major' 12907
8528 ;; 12908 # Check whether --with-xinclude was given.
8529 12909 if test "${with_xinclude+set}" = set; then :
8530 aix[4-9]*) 12910 withval=$with_xinclude;
8531 version_type=linux 12911 fi
8532 need_lib_prefix=no 12912
8533 need_version=no 12913
8534 hardcode_into_libs=yes 12914 # Check whether --with-xpath was given.
8535 if test "$host_cpu" = ia64; then 12915 if test "${with_xpath+set}" = set; then :
8536 # AIX 5 supports IA64 12916 withval=$with_xpath;
8537 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele ase}${shared_ext}$versuffix $libname${shared_ext}' 12917 fi
8538 shlibpath_var=LD_LIBRARY_PATH 12918
8539 else 12919
8540 # With GCC up to 2.95.x, collect2 would create an import file 12920 # Check whether --with-xptr was given.
8541 # for dependence libraries. The import file would start with 12921 if test "${with_xptr+set}" = set; then :
8542 # the line `#! .'. This would cause the generated library to 12922 withval=$with_xptr;
8543 # depend on `.', always an invalid library. This was fixed in 12923 fi
8544 # development snapshots of GCC prior to 3.0. 12924
8545 case $host_os in 12925
8546 aix4 | aix4.[01] | aix4.[01].*) 12926 # Check whether --with-modules was given.
8547 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12927 if test "${with_modules+set}" = set; then :
8548 » echo ' yes ' 12928 withval=$with_modules;
8549 » echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12929 fi
8550 » : 12930
8551 else 12931
8552 » can_build_shared=no 12932 # Check whether --with-zlib was given.
8553 fi 12933 if test "${with_zlib+set}" = set; then :
8554 ;; 12934 withval=$with_zlib;
8555 esac 12935 if test "$withval" != "no" -a "$withval" != "yes"; then
8556 # AIX (on Power*) has no versioning support, so currently we can not hardcod e correct 12936 Z_DIR=$withval
8557 # soname into executable. Probably we can add versioning support to 12937 CPPFLAGS="${CPPFLAGS} -I$withval/include"
8558 # collect2, so additional links can be useful in future. 12938 LIBS="${LIBS} -L$withval/lib"
8559 if test "$aix_use_runtimelinking" = yes; then
8560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8561 # instead of lib<name>.a to let people know that these are not
8562 # typical AIX shared libraries.
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major $libname${shared_ext}'
8564 else
8565 # We preserve .a as extension for shared libraries through AIX4.2
8566 # and later when we are not doing run time linking.
8567 library_names_spec='${libname}${release}.a $libname.a'
8568 soname_spec='${libname}${release}${shared_ext}$major'
8569 fi
8570 shlibpath_var=LIBPATH
8571 fi 12939 fi
8572 ;; 12940
8573 12941 fi
8574 amigaos*) 12942
8575 case $host_cpu in 12943
8576 powerpc) 12944 # Check whether --with-lzma was given.
8577 # Since July 2007 AmigaOS4 officially supports .so libraries. 12945 if test "${with_lzma+set}" = set; then :
8578 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12946 withval=$with_lzma;
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}' 12947 if test "$withval" != "no" -a "$withval" != "yes"; then
8580 ;; 12948 LZMA_DIR=$withval
8581 m68k) 12949 CPPFLAGS="${CPPFLAGS} -I$withval/include"
8582 library_names_spec='$libname.ixlibrary $libname.a' 12950 LIBS="${LIBS} -L$withval/lib"
8583 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8584 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$E CHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/l ibs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibra ry.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8585 ;;
8586 esac
8587 ;;
8588
8589 beos*)
8590 library_names_spec='${libname}${shared_ext}'
8591 dynamic_linker="$host_os ld.so"
8592 shlibpath_var=LIBRARY_PATH
8593 ;;
8594
8595 bsdi[45]*)
8596 version_type=linux
8597 need_version=no
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
8599 soname_spec='${libname}${release}${shared_ext}$major'
8600 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8601 shlibpath_var=LD_LIBRARY_PATH
8602 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib"
8603 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8604 # the default ld.so.conf also contains /usr/contrib/lib and
8605 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8606 # libtool to hard-code these into programs
8607 ;;
8608
8609 cygwin* | mingw* | pw32* | cegcc*)
8610 version_type=windows
8611 shrext_cmds=".dll"
8612 need_version=no
8613 need_lib_prefix=no
8614
8615 case $GCC,$host_os in
8616 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8617 library_names_spec='$libname.dll.a'
8618 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8619 postinstall_cmds='base_file=`basename \${file}`~
8620 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\' '`~
8621 dldir=$destdir/`dirname \$dlpath`~
8622 test -d \$dldir || mkdir -p \$dldir~
8623 $install_prog $dir/$dlname \$dldir/$dlname~
8624 chmod a+x \$dldir/$dlname~
8625 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8626 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8627 fi'
8628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8629 dlpath=$dir/\$dldll~
8630 $RM \$dlpath'
8631 shlibpath_overrides_runpath=yes
8632
8633 case $host_os in
8634 cygwin*)
8635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S ED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8637 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8638 ;;
8639 mingw* | cegcc*)
8640 # MinGW DLLs use traditional 'lib' prefix
8641 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix} ${shared_ext}'
8642 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $ SED -e "s/^libraries://" -e "s,=/,/,g"`
8643 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; the n
8644 # It is most probably a Windows format PATH printed by
8645 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8646 # path with ; separators, and with drive letters. We can handle the
8647 # drive letters (cygwin fileutils understands them), so leave them,
8648 # especially as we might pass files found there to a mingw objdump,
8649 # which wouldn't understand a cygwinified path. Ahh.
8650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's /;/ /g'`
8651 else
8652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e " s/$PATH_SEPARATOR/ /g"`
8653 fi
8654 ;;
8655 pw32*)
8656 # pw32 DLLs use 'pw' prefix rather than 'lib'
8657 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release } | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8658 ;;
8659 esac
8660 ;;
8661
8662 *)
8663 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu ffix}${shared_ext} $libname.lib'
8664 ;;
8665 esac
8666 dynamic_linker='Win32 ld.exe'
8667 # FIXME: first we should search . and the directory the executable is in
8668 shlibpath_var=PATH
8669 ;;
8670
8671 darwin* | rhapsody*)
8672 dynamic_linker="$host_os dyld"
8673 version_type=darwin
8674 need_lib_prefix=no
8675 need_version=no
8676 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ ext'
8677 soname_spec='${libname}${release}${major}$shared_ext'
8678 shlibpath_overrides_runpath=yes
8679 shlibpath_var=DYLD_LIBRARY_PATH
8680 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8681
8682 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8684 ;;
8685
8686 dgux*)
8687 version_type=linux
8688 need_lib_prefix=no
8689 need_version=no
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname$shared_ext'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 shlibpath_var=LD_LIBRARY_PATH
8693 ;;
8694
8695 freebsd1*)
8696 dynamic_linker=no
8697 ;;
8698
8699 freebsd* | dragonfly*)
8700 # DragonFly does not have aout. When/if they implement a new
8701 # versioning mechanism, adjust this.
8702 if test -x /usr/bin/objformat; then
8703 objformat=`/usr/bin/objformat`
8704 else
8705 case $host_os in
8706 freebsd[123]*) objformat=aout ;;
8707 *) objformat=elf ;;
8708 esac
8709 fi 12951 fi
8710 # Handle Gentoo/FreeBSD as it was Linux 12952
8711 case $host_vendor in 12953 fi
8712 gentoo) 12954
8713 version_type=linux ;; 12955
8714 *) 12956 # Check whether --with-coverage was given.
8715 version_type=freebsd-$objformat ;; 12957 if test "${with_coverage+set}" = set; then :
8716 esac 12958 withval=$with_coverage;
8717 12959 fi
8718 case $version_type in 12960
8719 freebsd-elf*) 12961
8720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext} $libname${shared_ext}' 12962 # Check whether --enable-rebuild-docs was given.
8721 need_version=no 12963 if test "${enable_rebuild_docs+set}" = set; then :
8722 need_lib_prefix=no 12964 enableval=$enable_rebuild_docs;
8723 ;; 12965 fi
8724 freebsd-*) 12966
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${ shared_ext}$versuffix' 12967 if test "$enable_rebuild_docs" = "yes" -a "$srcdir" != "."; then
8726 need_version=yes 12968 as_fn_error $? "cannot rebuild docs when builddir != srcdir" "$LINENO" 5
8727 ;; 12969 fi
8728 linux) 12970 if test "$enable_rebuild_docs" = "yes" -o "$USER" = "veillard"; then
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major ${libname}${shared_ext}' 12971 REBUILD_DOCS_TRUE=
8730 soname_spec='${libname}${release}${shared_ext}$major' 12972 REBUILD_DOCS_FALSE='#'
8731 need_lib_prefix=no 12973 else
8732 need_version=no 12974 REBUILD_DOCS_TRUE='#'
8733 ;; 12975 REBUILD_DOCS_FALSE=
8734 esac 12976 fi
8735 shlibpath_var=LD_LIBRARY_PATH 12977
8736 case $host_os in 12978
8737 freebsd2*) 12979 if test "$with_schemas" = "yes"
8738 shlibpath_overrides_runpath=yes 12980 then
8739 ;; 12981 with_pattern=yes
8740 freebsd3.[01]* | freebsdelf3.[01]*) 12982 with_regexps=yes
8741 shlibpath_overrides_runpath=yes 12983 fi
8742 hardcode_into_libs=yes 12984 if test "$with_schematron" = "yes"
8743 ;; 12985 then
8744 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12986 with_pattern=yes
8745 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12987 with_tree=yes
8746 shlibpath_overrides_runpath=no 12988 with_xpath=yes
8747 hardcode_into_libs=yes 12989 fi
8748 ;; 12990 if test "$with_reader" = "yes"
8749 *) # from 4.6 on, and DragonFly 12991 then
8750 shlibpath_overrides_runpath=yes 12992 with_push=yes
8751 hardcode_into_libs=yes 12993 fi
8752 ;; 12994 if test "$with_xptr" = "yes"
8753 esac 12995 then
8754 ;; 12996 with_xpath=yes
8755 12997 fi
8756 gnu*) 12998 if test "$with_minimum" = "yes"
8757 version_type=linux 12999 then
8758 need_lib_prefix=no 13000 echo "Configuring for a minimal library"
8759 need_version=no 13001 if test "$with_c14n" = ""
8760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}${major} ${libname}${shared_ext}' 13002 then
8761 soname_spec='${libname}${release}${shared_ext}$major' 13003 with_c14n=no
8762 shlibpath_var=LD_LIBRARY_PATH 13004 fi
8763 hardcode_into_libs=yes 13005 if test "$with_catalog" = ""
8764 ;; 13006 then
8765 13007 with_catalog=no
8766 hpux9* | hpux10* | hpux11*) 13008 fi
8767 # Give a soname corresponding to the major version so that dld.sl refuses to 13009 echo So far so good!
8768 # link against other versions. 13010 if test "$with_debug" = ""
8769 version_type=sunos 13011 then
8770 need_lib_prefix=no 13012 with_debug=no
8771 need_version=no 13013 fi
8772 case $host_cpu in 13014 if test "$with_docbook" = ""
8773 ia64*) 13015 then
8774 shrext_cmds='.so' 13016 with_docbook=no
8775 hardcode_into_libs=yes 13017 fi
8776 dynamic_linker="$host_os dld.so" 13018 if test "$with_fexceptions" = ""
8777 shlibpath_var=LD_LIBRARY_PATH 13019 then
8778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13020 with_fexceptions=no
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}' 13021 fi
8780 soname_spec='${libname}${release}${shared_ext}$major' 13022 if test "$with_ftp" = ""
8781 if test "X$HPUX_IA64_MODE" = X32; then 13023 then
8782 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib" 13024 with_ftp=no
8783 else 13025 fi
8784 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13026 if test "$with_history" = ""
8785 fi 13027 then
8786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13028 with_history=no
8787 ;; 13029 fi
8788 hppa*64*) 13030 if test "$with_html" = ""
8789 shrext_cmds='.sl' 13031 then
8790 hardcode_into_libs=yes 13032 with_html=no
8791 dynamic_linker="$host_os dld.sl" 13033 fi
8792 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13034 if test "$with_http" = ""
8793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13035 then
8794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}' 13036 with_http=no
8795 soname_spec='${libname}${release}${shared_ext}$major' 13037 fi
8796 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13038 if test "$with_iconv" = ""
8797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13039 then
8798 ;; 13040 with_iconv=no
8799 *) 13041 fi
8800 shrext_cmds='.sl' 13042 if test "$with_iso8859x" = ""
8801 dynamic_linker="$host_os dld.sl" 13043 then
8802 shlibpath_var=SHLIB_PATH 13044 with_iso8859x=no
8803 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13045 fi
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}' 13046 if test "$with_legacy" = ""
8805 soname_spec='${libname}${release}${shared_ext}$major' 13047 then
8806 ;; 13048 with_legacy=no
8807 esac 13049 fi
8808 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13050 if test "$with_mem_debug" = ""
8809 postinstall_cmds='chmod 555 $lib' 13051 then
8810 ;; 13052 with_mem_debug=no
8811 13053 fi
8812 interix[3-9]*) 13054 if test "$with_output" = ""
8813 version_type=linux 13055 then
8814 need_lib_prefix=no 13056 with_output=no
8815 need_version=no 13057 fi
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${shared_ext}' 13058 if test "$with_pattern" = ""
8817 soname_spec='${libname}${release}${shared_ext}$major' 13059 then
8818 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13060 with_pattern=no
8819 shlibpath_var=LD_LIBRARY_PATH 13061 fi
8820 shlibpath_overrides_runpath=no 13062 if test "$with_push" = ""
8821 hardcode_into_libs=yes 13063 then
8822 ;; 13064 with_push=no
8823 13065 fi
8824 irix5* | irix6* | nonstopux*) 13066 if test "$with_python" = ""
8825 case $host_os in 13067 then
8826 nonstopux*) version_type=nonstopux ;; 13068 with_python=no
8827 *) 13069 fi
8828 if test "$lt_cv_prog_gnu_ld" = yes; then 13070 if test "$with_reader" = ""
8829 version_type=linux 13071 then
8830 else 13072 with_reader=no
8831 version_type=irix 13073 fi
8832 fi ;; 13074 if test "$with_readline" = ""
8833 esac 13075 then
8834 need_lib_prefix=no 13076 with_readline=no
8835 need_version=no 13077 fi
8836 soname_spec='${libname}${release}${shared_ext}$major' 13078 if test "$with_regexps" = ""
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext }' 13079 then
8838 case $host_os in 13080 with_regexps=no
8839 irix5* | nonstopux*) 13081 fi
8840 libsuff= shlibsuff= 13082 if test "$with_run_debug" = ""
8841 ;; 13083 then
8842 *) 13084 with_run_debug=no
8843 case $LD in # libtool.m4 will add one of these switches to LD 13085 fi
8844 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13086 if test "$with_sax1" = ""
8845 libsuff= shlibsuff= libmagic=32-bit;; 13087 then
8846 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13088 with_sax1=no
8847 libsuff=32 shlibsuff=N32 libmagic=N32;; 13089 fi
8848 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13090 if test "$with_schemas" = ""
8849 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13091 then
8850 *) libsuff= shlibsuff= libmagic=never-match;; 13092 with_schemas=no
8851 esac 13093 fi
8852 ;; 13094 if test "$with_schematron" = ""
8853 esac 13095 then
8854 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13096 with_schematron=no
8855 shlibpath_overrides_runpath=no 13097 fi
8856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}" 13098 if test "$with_threads" = ""
8857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13099 then
8858 hardcode_into_libs=yes 13100 with_threads=no
8859 ;; 13101 fi
8860 13102 if test "$with_thread_alloc" = ""
8861 # No shared lib support for Linux oldld, aout, or coff. 13103 then
8862 linux*oldld* | linux*aout* | linux*coff*) 13104 with_thread_alloc=no
8863 dynamic_linker=no 13105 fi
8864 ;; 13106 if test "$with_tree" = ""
8865 13107 then
8866 # This must be Linux ELF. 13108 with_tree=no
8867 linux* | k*bsd*-gnu) 13109 fi
8868 version_type=linux 13110 if test "$with_valid" = ""
8869 need_lib_prefix=no 13111 then
8870 need_version=no 13112 with_valid=no
8871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}' 13113 fi
8872 soname_spec='${libname}${release}${shared_ext}$major' 13114 if test "$with_writer" = ""
8873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13115 then
8874 shlibpath_var=LD_LIBRARY_PATH 13116 with_writer=no
8875 shlibpath_overrides_runpath=no 13117 fi
8876 # Some binutils ld are patched to set DT_RUNPATH 13118 if test "$with_xinclude" = ""
8877 save_LDFLAGS=$LDFLAGS 13119 then
8878 save_libdir=$libdir 13120 with_xinclude=no
8879 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13121 fi
8880 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13122 if test "$with_xpath" = ""
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13123 then
8882 /* end confdefs.h. */ 13124 with_xpath=no
8883 13125 fi
8884 int 13126 if test "$with_xptr" = ""
8885 main () 13127 then
8886 { 13128 with_xptr=no
8887 13129 fi
8888 ; 13130 if test "$with_zlib" = ""
8889 return 0; 13131 then
8890 } 13132 with_zlib=no
8891 _ACEOF 13133 fi
8892 if ac_fn_c_try_link "$LINENO"; then : 13134 if test "$with_modules" = ""
8893 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/d ev/null; then : 13135 then
8894 shlibpath_overrides_runpath=yes 13136 with_modules=no
8895 fi 13137 fi
8896 fi 13138 fi
8897 rm -f core conftest.err conftest.$ac_objext \ 13139
8898 conftest$ac_exeext conftest.$ac_ext 13140 echo Checking zlib
8899 LDFLAGS=$save_LDFLAGS 13141
8900 libdir=$save_libdir 13142
8901 13143 WITH_ZLIB=0
8902 # This implies no fast_install, which is unacceptable. 13144 if test "$with_zlib" = "no"; then
8903 # Some rework will be needed to allow for fast_install 13145 echo "Disabling compression support"
8904 # before this can be enabled. 13146 else
8905 hardcode_into_libs=yes 13147 for ac_header in zlib.h
8906 13148 do :
8907 # Append ld.so.conf contents to the search path 13149 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_inc ludes_default"
8908 if test -f /etc/ld.so.conf; then 13150 if test "x$ac_cv_header_zlib_h" = xyes; then :
8909 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null" , \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $S ED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13151 cat >>confdefs.h <<_ACEOF
8910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13152 #define HAVE_ZLIB_H 1
8911 fi 13153 _ACEOF
8912 13154 SAVE_LDFLAGS="${LDFLAGS}"
8913 # We used to test for /lib/ld.so.1 and disable shared libraries on 13155 LDFLAGS="-L${Z_DIR}/lib"
8914 # powerpc, because MkLinux only supported shared libraries with the 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
8915 # GNU dynamic linker. Since this was broken with cross compilers, 13157 $as_echo_n "checking for gzread in -lz... " >&6; }
8916 # most powerpc-linux boxes support dynamic linking these days and 13158 if ${ac_cv_lib_z_gzread+:} false; then :
8917 # people can always --disable-shared, the test was removed, and we
8918 # assume the GNU/Linux dynamic linker is in use.
8919 dynamic_linker='GNU/Linux ld.so'
8920 ;;
8921
8922 netbsd*)
8923 version_type=sunos
8924 need_lib_prefix=no
8925 need_version=no
8926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
8928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8929 dynamic_linker='NetBSD (a.out) ld.so'
8930 else
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major ${libname}${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 dynamic_linker='NetBSD ld.elf_so'
8934 fi
8935 shlibpath_var=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath=yes
8937 hardcode_into_libs=yes
8938 ;;
8939
8940 newsos6)
8941 version_type=linux
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
8943 shlibpath_var=LD_LIBRARY_PATH
8944 shlibpath_overrides_runpath=yes
8945 ;;
8946
8947 *nto* | *qnx*)
8948 version_type=qnx
8949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 dynamic_linker='ldqnx.so'
8957 ;;
8958
8959 openbsd*)
8960 version_type=sunos
8961 sys_lib_dlsearch_path_spec="/usr/lib"
8962 need_lib_prefix=no
8963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8964 case $host_os in
8965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8966 *) need_version=no ;;
8967 esac
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
8969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host _cpu" = "openbsd2.8-powerpc"; then
8972 case $host_os in
8973 openbsd2.[89] | openbsd2.[89].*)
8974 shlibpath_overrides_runpath=no
8975 ;;
8976 *)
8977 shlibpath_overrides_runpath=yes
8978 ;;
8979 esac
8980 else
8981 shlibpath_overrides_runpath=yes
8982 fi
8983 ;;
8984
8985 os2*)
8986 libname_spec='$name'
8987 shrext_cmds=".dll"
8988 need_lib_prefix=no
8989 library_names_spec='$libname${shared_ext} $libname.a'
8990 dynamic_linker='OS/2 ld.exe'
8991 shlibpath_var=LIBPATH
8992 ;;
8993
8994 osf3* | osf4* | osf5*)
8995 version_type=osf
8996 need_lib_prefix=no
8997 need_version=no
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9000 shlibpath_var=LD_LIBRARY_PATH
9001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9003 ;;
9004
9005 rdos*)
9006 dynamic_linker=no
9007 ;;
9008
9009 solaris*)
9010 version_type=linux
9011 need_lib_prefix=no
9012 need_version=no
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9017 hardcode_into_libs=yes
9018 # ldd complains unless libraries are executable
9019 postinstall_cmds='chmod +x $lib'
9020 ;;
9021
9022 sunos4*)
9023 version_type=sunos
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
9025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 if test "$with_gnu_ld" = yes; then
9029 need_lib_prefix=no
9030 fi
9031 need_version=yes
9032 ;;
9033
9034 sysv4 | sysv4.3*)
9035 version_type=linux
9036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9037 soname_spec='${libname}${release}${shared_ext}$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 case $host_vendor in
9040 sni)
9041 shlibpath_overrides_runpath=no
9042 need_lib_prefix=no
9043 runpath_var=LD_RUN_PATH
9044 ;;
9045 siemens)
9046 need_lib_prefix=no
9047 ;;
9048 motorola)
9049 need_lib_prefix=no
9050 need_version=no
9051 shlibpath_overrides_runpath=no
9052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9053 ;;
9054 esac
9055 ;;
9056
9057 sysv4*MP*)
9058 if test -d /usr/nec ;then
9059 version_type=linux
9060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$ major $libname${shared_ext}'
9061 soname_spec='$libname${shared_ext}.$major'
9062 shlibpath_var=LD_LIBRARY_PATH
9063 fi
9064 ;;
9065
9066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9067 version_type=freebsd-elf
9068 need_lib_prefix=no
9069 need_version=no
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext} $libname${shared_ext}'
9071 soname_spec='${libname}${release}${shared_ext}$major'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 shlibpath_overrides_runpath=yes
9074 hardcode_into_libs=yes
9075 if test "$with_gnu_ld" = yes; then
9076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9077 else
9078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9079 case $host_os in
9080 sco3.2v5*)
9081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9082 ;;
9083 esac
9084 fi
9085 sys_lib_dlsearch_path_spec='/usr/lib'
9086 ;;
9087
9088 tpf*)
9089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9090 version_type=linux
9091 need_lib_prefix=no
9092 need_version=no
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=no
9096 hardcode_into_libs=yes
9097 ;;
9098
9099 uts4*)
9100 version_type=linux
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 ;;
9105
9106 *)
9107 dynamic_linker=no
9108 ;;
9109 esac
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9111 $as_echo "$dynamic_linker" >&6; }
9112 test "$dynamic_linker" = no && can_build_shared=no
9113
9114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9115 if test "$GCC" = yes; then
9116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH"
9117 fi
9118
9119 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9121 fi
9122 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9124 fi
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library path s into programs" >&5
9213 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9214 hardcode_action=
9215 if test -n "$hardcode_libdir_flag_spec" ||
9216 test -n "$runpath_var" ||
9217 test "X$hardcode_automatic" = "Xyes" ; then
9218
9219 # We can hardcode non-existent directories.
9220 if test "$hardcode_direct" != no &&
9221 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9222 # have to relink, otherwise we might link with an installed library
9223 # when we should be linking with a yet-to-be-installed one
9224 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9225 test "$hardcode_minus_L" != no; then
9226 # Linking always hardcodes the temporary library directory.
9227 hardcode_action=relink
9228 else
9229 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9230 hardcode_action=immediate
9231 fi
9232 else
9233 # We cannot hardcode anything, or else we can only hardcode existing
9234 # directories.
9235 hardcode_action=unsupported
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9238 $as_echo "$hardcode_action" >&6; }
9239
9240 if test "$hardcode_action" = relink ||
9241 test "$inherit_rpath" = yes; then
9242 # Fast installation is not supported
9243 enable_fast_install=no
9244 elif test "$shlibpath_overrides_runpath" = yes ||
9245 test "$enable_shared" = no; then
9246 # Fast installation is not necessary
9247 enable_fast_install=needless
9248 fi
9249
9250
9251
9252
9253
9254
9255 if test "x$enable_dlopen" != xyes; then
9256 enable_dlopen=unknown
9257 enable_dlopen_self=unknown
9258 enable_dlopen_self_static=unknown
9259 else
9260 lt_cv_dlopen=no
9261 lt_cv_dlopen_libs=
9262
9263 case $host_os in
9264 beos*)
9265 lt_cv_dlopen="load_add_on"
9266 lt_cv_dlopen_libs=
9267 lt_cv_dlopen_self=yes
9268 ;;
9269
9270 mingw* | pw32* | cegcc*)
9271 lt_cv_dlopen="LoadLibrary"
9272 lt_cv_dlopen_libs=
9273 ;;
9274
9275 cygwin*)
9276 lt_cv_dlopen="dlopen"
9277 lt_cv_dlopen_libs=
9278 ;;
9279
9280 darwin*)
9281 # if libdl is installed we need to link against it
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9283 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9284 if ${ac_cv_lib_dl_dlopen+:} false; then :
9285 $as_echo_n "(cached) " >&6 13159 $as_echo_n "(cached) " >&6
9286 else 13160 else
9287 ac_check_lib_save_LIBS=$LIBS 13161 ac_check_lib_save_LIBS=$LIBS
9288 LIBS="-ldl $LIBS" 13162 LIBS="-lz $LIBS"
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */ 13164 /* end confdefs.h. */
9291 13165
9292 /* Override any GCC internal prototype to avoid an error. 13166 /* Override any GCC internal prototype to avoid an error.
9293 Use char because int might match the return type of a GCC 13167 Use char because int might match the return type of a GCC
9294 builtin and then its argument prototype would still apply. */ 13168 builtin and then its argument prototype would still apply. */
9295 #ifdef __cplusplus 13169 #ifdef __cplusplus
9296 extern "C" 13170 extern "C"
9297 #endif 13171 #endif
9298 char dlopen (); 13172 char gzread ();
9299 int 13173 int
9300 main () 13174 main ()
9301 { 13175 {
9302 return dlopen (); 13176 return gzread ();
9303 ; 13177 ;
9304 return 0; 13178 return 0;
9305 } 13179 }
9306 _ACEOF 13180 _ACEOF
9307 if ac_fn_c_try_link "$LINENO"; then : 13181 if ac_fn_c_try_link "$LINENO"; then :
9308 ac_cv_lib_dl_dlopen=yes 13182 ac_cv_lib_z_gzread=yes
9309 else 13183 else
9310 ac_cv_lib_dl_dlopen=no 13184 ac_cv_lib_z_gzread=no
9311 fi 13185 fi
9312 rm -f core conftest.err conftest.$ac_objext \ 13186 rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext 13187 conftest$ac_exeext conftest.$ac_ext
9314 LIBS=$ac_check_lib_save_LIBS 13188 LIBS=$ac_check_lib_save_LIBS
9315 fi 13189 fi
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
9317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13191 $as_echo "$ac_cv_lib_z_gzread" >&6; }
9318 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13192 if test "x$ac_cv_lib_z_gzread" = xyes; then :
9319 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13193
9320 else 13194
9321 13195 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
9322 lt_cv_dlopen="dyld" 13196
9323 lt_cv_dlopen_libs= 13197 » WITH_ZLIB=1
9324 lt_cv_dlopen_self=yes 13198 » if test "x${Z_DIR}" != "x"; then
9325 13199 » » Z_CFLAGS="-I${Z_DIR}/include"
9326 fi 13200 » » Z_LIBS="-L${Z_DIR}/lib -lz"
9327 13201 » » case ${host} in
9328 ;; 13202 » » *-*-solaris*)
9329 13203 » » » Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
9330 *) 13204 » » » ;;
9331 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13205 » » esac
9332 if test "x$ac_cv_func_shl_load" = xyes; then : 13206 » else
9333 lt_cv_dlopen="shl_load" 13207 » » Z_LIBS="-lz"
9334 else 13208 » fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13209 fi
9336 $as_echo_n "checking for shl_load in -ldld... " >&6; } 13210
9337 if ${ac_cv_lib_dld_shl_load+:} false; then : 13211 » LDFLAGS="${SAVE_LDFLAGS}"
13212 fi
13213
13214 done
13215
13216 fi
13217
13218
13219
13220
13221
13222 echo Checking lzma
13223
13224
13225 WITH_LZMA=0
13226 if test "$with_lzma" = "no"; then
13227 echo "Disabling compression support"
13228 else
13229 # Try pkg-config first so that static linking works.
13230 # If this succeeeds, we ignore the WITH_LZMA directory.
13231
13232 pkg_failed=no
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
13234 $as_echo_n "checking for LZMA... " >&6; }
13235
13236 if test -n "$LZMA_CFLAGS"; then
13237 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
13238 elif test -n "$PKG_CONFIG"; then
13239 if test -n "$PKG_CONFIG" && \
13240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err ors \"liblzma\""; } >&5
13241 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
13242 ac_status=$?
13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244 test $ac_status = 0; }; then
13245 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
13246 » » test "x$?" != "x0" && pkg_failed=yes
13247 else
13248 pkg_failed=yes
13249 fi
13250 else
13251 pkg_failed=untried
13252 fi
13253 if test -n "$LZMA_LIBS"; then
13254 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
13255 elif test -n "$PKG_CONFIG"; then
13256 if test -n "$PKG_CONFIG" && \
13257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-err ors \"liblzma\""; } >&5
13258 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
13259 ac_status=$?
13260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13261 test $ac_status = 0; }; then
13262 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
13263 » » test "x$?" != "x0" && pkg_failed=yes
13264 else
13265 pkg_failed=yes
13266 fi
13267 else
13268 pkg_failed=untried
13269 fi
13270
13271
13272
13273 if test $pkg_failed = yes; then
13274 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275 $as_echo "no" >&6; }
13276
13277 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13278 _pkg_short_errors_supported=yes
13279 else
13280 _pkg_short_errors_supported=no
13281 fi
13282 if test $_pkg_short_errors_supported = yes; then
13283 » LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cfl ags --libs "liblzma" 2>&1`
13284 else
13285 » LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lib lzma" 2>&1`
13286 fi
13287 » # Put the nasty error message in config.log where it belongs
13288 » echo "$LZMA_PKG_ERRORS" >&5
13289
13290 » have_liblzma=no
13291 elif test $pkg_failed = untried; then
13292 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293 $as_echo "no" >&6; }
13294 » have_liblzma=no
13295 else
13296 » LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
13297 » LZMA_LIBS=$pkg_cv_LZMA_LIBS
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13299 $as_echo "yes" >&6; }
13300 » have_liblzma=yes
13301 fi
13302
13303 # If pkg-config failed, fall back to AC_CHECK_LIB. This
13304 # will not pick up the necessary LIBS flags for liblzma's
13305 # private dependencies, though, so static linking may fail.
13306 if test "x$have_liblzma" = "xno"; then
13307 for ac_header in lzma.h
13308 do :
13309 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_inc ludes_default"
13310 if test "x$ac_cv_header_lzma_h" = xyes; then :
13311 cat >>confdefs.h <<_ACEOF
13312 #define HAVE_LZMA_H 1
13313 _ACEOF
13314 SAVE_LDFLAGS="${LDFLAGS}"
13315 » LDFLAGS="-L${LZMA_DIR}/lib"
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in - llzma" >&5
13317 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
13318 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
9338 $as_echo_n "(cached) " >&6 13319 $as_echo_n "(cached) " >&6
9339 else 13320 else
9340 ac_check_lib_save_LIBS=$LIBS 13321 ac_check_lib_save_LIBS=$LIBS
9341 LIBS="-ldld $LIBS" 13322 LIBS="-llzma $LIBS"
9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h. */ 13324 /* end confdefs.h. */
9344 13325
9345 /* Override any GCC internal prototype to avoid an error. 13326 /* Override any GCC internal prototype to avoid an error.
9346 Use char because int might match the return type of a GCC 13327 Use char because int might match the return type of a GCC
9347 builtin and then its argument prototype would still apply. */ 13328 builtin and then its argument prototype would still apply. */
9348 #ifdef __cplusplus 13329 #ifdef __cplusplus
9349 extern "C" 13330 extern "C"
9350 #endif 13331 #endif
9351 char shl_load (); 13332 char lzma_code ();
9352 int 13333 int
9353 main () 13334 main ()
9354 { 13335 {
9355 return shl_load (); 13336 return lzma_code ();
9356 ; 13337 ;
9357 return 0; 13338 return 0;
9358 } 13339 }
9359 _ACEOF 13340 _ACEOF
9360 if ac_fn_c_try_link "$LINENO"; then : 13341 if ac_fn_c_try_link "$LINENO"; then :
9361 ac_cv_lib_dld_shl_load=yes 13342 ac_cv_lib_lzma_lzma_code=yes
9362 else 13343 else
9363 ac_cv_lib_dld_shl_load=no 13344 ac_cv_lib_lzma_lzma_code=no
9364 fi 13345 fi
9365 rm -f core conftest.err conftest.$ac_objext \ 13346 rm -f core conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext 13347 conftest$ac_exeext conftest.$ac_ext
9367 LIBS=$ac_check_lib_save_LIBS 13348 LIBS=$ac_check_lib_save_LIBS
9368 fi 13349 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
9370 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13351 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
9371 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13352 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
9372 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13353
9373 else 13354 have_liblzma=yes
9374 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13355 if test "x${LZMA_DIR}" != "x"; then
9375 if test "x$ac_cv_func_dlopen" = xyes; then : 13356 LZMA_CFLAGS="-I${LZMA_DIR}/include"
9376 lt_cv_dlopen="dlopen" 13357 LZMA_LIBS="-L${LZMA_DIR}/lib -llzma"
9377 else 13358 else
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13359 LZMA_LIBS="-llzma"
9379 $as_echo_n "checking for dlopen in -ldl... " >&6; } 13360 fi
9380 if ${ac_cv_lib_dl_dlopen+:} false; then : 13361 else
13362 have_liblzma=no
13363 fi
13364
13365 » LDFLAGS="${SAVE_LDFLAGS}"
13366 fi
13367
13368 done
13369
13370 else
13371 » # we still need to check for lzma,h header
13372 » for ac_header in lzma.h
13373 do :
13374 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_inc ludes_default"
13375 if test "x$ac_cv_header_lzma_h" = xyes; then :
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_LZMA_H 1
13378 _ACEOF
13379
13380 fi
13381
13382 done
13383
13384 fi
13385
13386 # Found the library via either method?
13387 if test "x$have_liblzma" = "xyes"; then
13388
13389 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13390
13391 WITH_LZMA=1
13392 fi
13393 fi
13394
13395
13396
13397
13398
13399 CPPFLAGS=${_cppflags}
13400 LIBS=${_libs}
13401
13402 echo Checking headers
13403
13404 ac_header_dirent=no
13405 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13406 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13408 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13409 if eval \${$as_ac_Header+:} false; then :
9381 $as_echo_n "(cached) " >&6 13410 $as_echo_n "(cached) " >&6
9382 else 13411 else
9383 ac_check_lib_save_LIBS=$LIBS 13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 LIBS="-ldl $LIBS" 13413 /* end confdefs.h. */
13414 #include <sys/types.h>
13415 #include <$ac_hdr>
13416
13417 int
13418 main ()
13419 {
13420 if ((DIR *) 0)
13421 return 0;
13422 ;
13423 return 0;
13424 }
13425 _ACEOF
13426 if ac_fn_c_try_compile "$LINENO"; then :
13427 eval "$as_ac_Header=yes"
13428 else
13429 eval "$as_ac_Header=no"
13430 fi
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 fi
13433 eval ac_res=\$$as_ac_Header
13434 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13435 $as_echo "$ac_res" >&6; }
13436 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13437 cat >>confdefs.h <<_ACEOF
13438 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13439 _ACEOF
13440
13441 ac_header_dirent=$ac_hdr; break
13442 fi
13443
13444 done
13445 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13446 if test $ac_header_dirent = dirent.h; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opend ir" >&5
13448 $as_echo_n "checking for library containing opendir... " >&6; }
13449 if ${ac_cv_search_opendir+:} false; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 ac_func_search_save_LIBS=$LIBS
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */ 13454 /* end confdefs.h. */
9387 13455
9388 /* Override any GCC internal prototype to avoid an error. 13456 /* Override any GCC internal prototype to avoid an error.
9389 Use char because int might match the return type of a GCC 13457 Use char because int might match the return type of a GCC
9390 builtin and then its argument prototype would still apply. */ 13458 builtin and then its argument prototype would still apply. */
9391 #ifdef __cplusplus 13459 #ifdef __cplusplus
9392 extern "C" 13460 extern "C"
9393 #endif 13461 #endif
9394 char dlopen (); 13462 char opendir ();
9395 int 13463 int
9396 main () 13464 main ()
9397 { 13465 {
9398 return dlopen (); 13466 return opendir ();
9399 ; 13467 ;
9400 return 0; 13468 return 0;
9401 } 13469 }
9402 _ACEOF 13470 _ACEOF
9403 if ac_fn_c_try_link "$LINENO"; then : 13471 for ac_lib in '' dir; do
9404 ac_cv_lib_dl_dlopen=yes 13472 if test -z "$ac_lib"; then
9405 else 13473 ac_res="none required"
9406 ac_cv_lib_dl_dlopen=no 13474 else
13475 ac_res=-l$ac_lib
13476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13477 fi
13478 if ac_fn_c_try_link "$LINENO"; then :
13479 ac_cv_search_opendir=$ac_res
9407 fi 13480 fi
9408 rm -f core conftest.err conftest.$ac_objext \ 13481 rm -f core conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext 13482 conftest$ac_exeext
9410 LIBS=$ac_check_lib_save_LIBS 13483 if ${ac_cv_search_opendir+:} false; then :
9411 fi 13484 break
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13485 fi
9413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13486 done
9414 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13487 if ${ac_cv_search_opendir+:} false; then :
9415 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13488
9416 else 13489 else
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13490 ac_cv_search_opendir=no
9418 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 13491 fi
9419 if ${ac_cv_lib_svld_dlopen+:} false; then : 13492 rm conftest.$ac_ext
13493 LIBS=$ac_func_search_save_LIBS
13494 fi
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13496 $as_echo "$ac_cv_search_opendir" >&6; }
13497 ac_res=$ac_cv_search_opendir
13498 if test "$ac_res" != no; then :
13499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13500
13501 fi
13502
13503 else
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opend ir" >&5
13505 $as_echo_n "checking for library containing opendir... " >&6; }
13506 if ${ac_cv_search_opendir+:} false; then :
9420 $as_echo_n "(cached) " >&6 13507 $as_echo_n "(cached) " >&6
9421 else 13508 else
9422 ac_check_lib_save_LIBS=$LIBS 13509 ac_func_search_save_LIBS=$LIBS
9423 LIBS="-lsvld $LIBS"
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */ 13511 /* end confdefs.h. */
9426 13512
9427 /* Override any GCC internal prototype to avoid an error. 13513 /* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC 13514 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */ 13515 builtin and then its argument prototype would still apply. */
9430 #ifdef __cplusplus 13516 #ifdef __cplusplus
9431 extern "C" 13517 extern "C"
9432 #endif 13518 #endif
9433 char dlopen (); 13519 char opendir ();
9434 int 13520 int
9435 main () 13521 main ()
9436 { 13522 {
9437 return dlopen (); 13523 return opendir ();
9438 ; 13524 ;
9439 return 0; 13525 return 0;
9440 } 13526 }
9441 _ACEOF 13527 _ACEOF
9442 if ac_fn_c_try_link "$LINENO"; then : 13528 for ac_lib in '' x; do
9443 ac_cv_lib_svld_dlopen=yes 13529 if test -z "$ac_lib"; then
9444 else 13530 ac_res="none required"
9445 ac_cv_lib_svld_dlopen=no 13531 else
13532 ac_res=-l$ac_lib
13533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13534 fi
13535 if ac_fn_c_try_link "$LINENO"; then :
13536 ac_cv_search_opendir=$ac_res
9446 fi 13537 fi
9447 rm -f core conftest.err conftest.$ac_objext \ 13538 rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext 13539 conftest$ac_exeext
9449 LIBS=$ac_check_lib_save_LIBS 13540 if ${ac_cv_search_opendir+:} false; then :
9450 fi 13541 break
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13542 fi
9452 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13543 done
9453 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13544 if ${ac_cv_search_opendir+:} false; then :
9454 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13545
9455 else 13546 else
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13547 ac_cv_search_opendir=no
9457 $as_echo_n "checking for dld_link in -ldld... " >&6; } 13548 fi
9458 if ${ac_cv_lib_dld_dld_link+:} false; then : 13549 rm conftest.$ac_ext
13550 LIBS=$ac_func_search_save_LIBS
13551 fi
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13553 $as_echo "$ac_cv_search_opendir" >&6; }
13554 ac_res=$ac_cv_search_opendir
13555 if test "$ac_res" != no; then :
13556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13557
13558 fi
13559
13560 fi
13561
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13563 $as_echo_n "checking for ANSI C header files... " >&6; }
13564 if ${ac_cv_header_stdc+:} false; then :
9459 $as_echo_n "(cached) " >&6 13565 $as_echo_n "(cached) " >&6
9460 else 13566 else
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13569 #include <stdlib.h>
13570 #include <stdarg.h>
13571 #include <string.h>
13572 #include <float.h>
13573
13574 int
13575 main ()
13576 {
13577
13578 ;
13579 return 0;
13580 }
13581 _ACEOF
13582 if ac_fn_c_try_compile "$LINENO"; then :
13583 ac_cv_header_stdc=yes
13584 else
13585 ac_cv_header_stdc=no
13586 fi
13587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588
13589 if test $ac_cv_header_stdc = yes; then
13590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 #include <string.h>
13594
13595 _ACEOF
13596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13597 $EGREP "memchr" >/dev/null 2>&1; then :
13598
13599 else
13600 ac_cv_header_stdc=no
13601 fi
13602 rm -f conftest*
13603
13604 fi
13605
13606 if test $ac_cv_header_stdc = yes; then
13607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610 #include <stdlib.h>
13611
13612 _ACEOF
13613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13614 $EGREP "free" >/dev/null 2>&1; then :
13615
13616 else
13617 ac_cv_header_stdc=no
13618 fi
13619 rm -f conftest*
13620
13621 fi
13622
13623 if test $ac_cv_header_stdc = yes; then
13624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13625 if test "$cross_compiling" = yes; then :
13626 :
13627 else
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13630 #include <ctype.h>
13631 #include <stdlib.h>
13632 #if ((' ' & 0x0FF) == 0x020)
13633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13635 #else
13636 # define ISLOWER(c) \
13637 (('a' <= (c) && (c) <= 'i') \
13638 || ('j' <= (c) && (c) <= 'r') \
13639 || ('s' <= (c) && (c) <= 'z'))
13640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13641 #endif
13642
13643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13644 int
13645 main ()
13646 {
13647 int i;
13648 for (i = 0; i < 256; i++)
13649 if (XOR (islower (i), ISLOWER (i))
13650 || toupper (i) != TOUPPER (i))
13651 return 2;
13652 return 0;
13653 }
13654 _ACEOF
13655 if ac_fn_c_try_run "$LINENO"; then :
13656
13657 else
13658 ac_cv_header_stdc=no
13659 fi
13660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13661 conftest.$ac_objext conftest.beam conftest.$ac_ext
13662 fi
13663
13664 fi
13665 fi
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13667 $as_echo "$ac_cv_header_stdc" >&6; }
13668 if test $ac_cv_header_stdc = yes; then
13669
13670 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13671
13672 fi
13673
13674 for ac_header in fcntl.h
13675 do :
13676 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_i ncludes_default"
13677 if test "x$ac_cv_header_fcntl_h" = xyes; then :
13678 cat >>confdefs.h <<_ACEOF
13679 #define HAVE_FCNTL_H 1
13680 _ACEOF
13681
13682 fi
13683
13684 done
13685
13686 for ac_header in unistd.h
13687 do :
13688 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac _includes_default"
13689 if test "x$ac_cv_header_unistd_h" = xyes; then :
13690 cat >>confdefs.h <<_ACEOF
13691 #define HAVE_UNISTD_H 1
13692 _ACEOF
13693
13694 fi
13695
13696 done
13697
13698 for ac_header in ctype.h
13699 do :
13700 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_i ncludes_default"
13701 if test "x$ac_cv_header_ctype_h" = xyes; then :
13702 cat >>confdefs.h <<_ACEOF
13703 #define HAVE_CTYPE_H 1
13704 _ACEOF
13705
13706 fi
13707
13708 done
13709
13710 for ac_header in dirent.h
13711 do :
13712 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac _includes_default"
13713 if test "x$ac_cv_header_dirent_h" = xyes; then :
13714 cat >>confdefs.h <<_ACEOF
13715 #define HAVE_DIRENT_H 1
13716 _ACEOF
13717
13718 fi
13719
13720 done
13721
13722 for ac_header in errno.h
13723 do :
13724 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_i ncludes_default"
13725 if test "x$ac_cv_header_errno_h" = xyes; then :
13726 cat >>confdefs.h <<_ACEOF
13727 #define HAVE_ERRNO_H 1
13728 _ACEOF
13729
13730 fi
13731
13732 done
13733
13734 for ac_header in malloc.h
13735 do :
13736 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac _includes_default"
13737 if test "x$ac_cv_header_malloc_h" = xyes; then :
13738 cat >>confdefs.h <<_ACEOF
13739 #define HAVE_MALLOC_H 1
13740 _ACEOF
13741
13742 fi
13743
13744 done
13745
13746 for ac_header in stdarg.h
13747 do :
13748 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac _includes_default"
13749 if test "x$ac_cv_header_stdarg_h" = xyes; then :
13750 cat >>confdefs.h <<_ACEOF
13751 #define HAVE_STDARG_H 1
13752 _ACEOF
13753
13754 fi
13755
13756 done
13757
13758 for ac_header in sys/stat.h
13759 do :
13760 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
13761 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
13762 cat >>confdefs.h <<_ACEOF
13763 #define HAVE_SYS_STAT_H 1
13764 _ACEOF
13765
13766 fi
13767
13768 done
13769
13770 for ac_header in sys/types.h
13771 do :
13772 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h " "$ac_includes_default"
13773 if test "x$ac_cv_header_sys_types_h" = xyes; then :
13774 cat >>confdefs.h <<_ACEOF
13775 #define HAVE_SYS_TYPES_H 1
13776 _ACEOF
13777
13778 fi
13779
13780 done
13781
13782 for ac_header in stdint.h
13783 do :
13784 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac _includes_default"
13785 if test "x$ac_cv_header_stdint_h" = xyes; then :
13786 cat >>confdefs.h <<_ACEOF
13787 #define HAVE_STDINT_H 1
13788 _ACEOF
13789
13790 fi
13791
13792 done
13793
13794 for ac_header in inttypes.h
13795 do :
13796 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13797 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_INTTYPES_H 1
13800 _ACEOF
13801
13802 fi
13803
13804 done
13805
13806 for ac_header in time.h
13807 do :
13808 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_inc ludes_default"
13809 if test "x$ac_cv_header_time_h" = xyes; then :
13810 cat >>confdefs.h <<_ACEOF
13811 #define HAVE_TIME_H 1
13812 _ACEOF
13813
13814 fi
13815
13816 done
13817
13818 for ac_header in ansidecl.h
13819 do :
13820 ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
13821 if test "x$ac_cv_header_ansidecl_h" = xyes; then :
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_ANSIDECL_H 1
13824 _ACEOF
13825
13826 fi
13827
13828 done
13829
13830 for ac_header in ieeefp.h
13831 do :
13832 ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac _includes_default"
13833 if test "x$ac_cv_header_ieeefp_h" = xyes; then :
13834 cat >>confdefs.h <<_ACEOF
13835 #define HAVE_IEEEFP_H 1
13836 _ACEOF
13837
13838 fi
13839
13840 done
13841
13842 for ac_header in nan.h
13843 do :
13844 ac_fn_c_check_header_mongrel "$LINENO" "nan.h" "ac_cv_header_nan_h" "$ac_inclu des_default"
13845 if test "x$ac_cv_header_nan_h" = xyes; then :
13846 cat >>confdefs.h <<_ACEOF
13847 #define HAVE_NAN_H 1
13848 _ACEOF
13849
13850 fi
13851
13852 done
13853
13854 for ac_header in math.h
13855 do :
13856 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_inc ludes_default"
13857 if test "x$ac_cv_header_math_h" = xyes; then :
13858 cat >>confdefs.h <<_ACEOF
13859 #define HAVE_MATH_H 1
13860 _ACEOF
13861
13862 fi
13863
13864 done
13865
13866 for ac_header in limits.h
13867 do :
13868 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac _includes_default"
13869 if test "x$ac_cv_header_limits_h" = xyes; then :
13870 cat >>confdefs.h <<_ACEOF
13871 #define HAVE_LIMITS_H 1
13872 _ACEOF
13873
13874 fi
13875
13876 done
13877
13878 for ac_header in fp_class.h
13879 do :
13880 ac_fn_c_check_header_mongrel "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "$ac_includes_default"
13881 if test "x$ac_cv_header_fp_class_h" = xyes; then :
13882 cat >>confdefs.h <<_ACEOF
13883 #define HAVE_FP_CLASS_H 1
13884 _ACEOF
13885
13886 fi
13887
13888 done
13889
13890 for ac_header in float.h
13891 do :
13892 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_i ncludes_default"
13893 if test "x$ac_cv_header_float_h" = xyes; then :
13894 cat >>confdefs.h <<_ACEOF
13895 #define HAVE_FLOAT_H 1
13896 _ACEOF
13897
13898 fi
13899
13900 done
13901
13902 for ac_header in stdlib.h
13903 do :
13904 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac _includes_default"
13905 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13906 cat >>confdefs.h <<_ACEOF
13907 #define HAVE_STDLIB_H 1
13908 _ACEOF
13909
13910 fi
13911
13912 done
13913
13914 for ac_header in sys/socket.h
13915 do :
13916 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket _h" "#if HAVE_SYS_TYPES_H
13917 # include <sys/types.h>
13918 # endif
13919
13920 "
13921 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_SYS_SOCKET_H 1
13924 _ACEOF
13925
13926 fi
13927
13928 done
13929
13930 for ac_header in netinet/in.h
13931 do :
13932 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in _h" "#if HAVE_SYS_TYPES_H
13933 # include <sys/types.h>
13934 # endif
13935
13936 "
13937 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
13938 cat >>confdefs.h <<_ACEOF
13939 #define HAVE_NETINET_IN_H 1
13940 _ACEOF
13941
13942 fi
13943
13944 done
13945
13946 for ac_header in arpa/inet.h
13947 do :
13948 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h " "#if HAVE_SYS_TYPES_H
13949 # include <sys/types.h>
13950 # endif
13951 #if HAVE_ARPA_INET_H
13952 # include <arpa/inet.h>
13953 # endif
13954
13955 "
13956 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
13957 cat >>confdefs.h <<_ACEOF
13958 #define HAVE_ARPA_INET_H 1
13959 _ACEOF
13960
13961 fi
13962
13963 done
13964
13965 for ac_header in netdb.h
13966 do :
13967 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_i ncludes_default"
13968 if test "x$ac_cv_header_netdb_h" = xyes; then :
13969 cat >>confdefs.h <<_ACEOF
13970 #define HAVE_NETDB_H 1
13971 _ACEOF
13972
13973 fi
13974
13975 done
13976
13977 for ac_header in sys/time.h
13978 do :
13979 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13980 if test "x$ac_cv_header_sys_time_h" = xyes; then :
13981 cat >>confdefs.h <<_ACEOF
13982 #define HAVE_SYS_TIME_H 1
13983 _ACEOF
13984
13985 fi
13986
13987 done
13988
13989 for ac_header in sys/select.h
13990 do :
13991 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select _h" "$ac_includes_default"
13992 if test "x$ac_cv_header_sys_select_h" = xyes; then :
13993 cat >>confdefs.h <<_ACEOF
13994 #define HAVE_SYS_SELECT_H 1
13995 _ACEOF
13996
13997 fi
13998
13999 done
14000
14001 for ac_header in poll.h
14002 do :
14003 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_inc ludes_default"
14004 if test "x$ac_cv_header_poll_h" = xyes; then :
14005 cat >>confdefs.h <<_ACEOF
14006 #define HAVE_POLL_H 1
14007 _ACEOF
14008
14009 fi
14010
14011 done
14012
14013 for ac_header in sys/mman.h
14014 do :
14015 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14016 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_SYS_MMAN_H 1
14019 _ACEOF
14020
14021 fi
14022
14023 done
14024
14025 for ac_header in sys/timeb.h
14026 do :
14027 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h " "$ac_includes_default"
14028 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14029 cat >>confdefs.h <<_ACEOF
14030 #define HAVE_SYS_TIMEB_H 1
14031 _ACEOF
14032
14033 fi
14034
14035 done
14036
14037 for ac_header in signal.h
14038 do :
14039 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac _includes_default"
14040 if test "x$ac_cv_header_signal_h" = xyes; then :
14041 cat >>confdefs.h <<_ACEOF
14042 #define HAVE_SIGNAL_H 1
14043 _ACEOF
14044
14045 fi
14046
14047 done
14048
14049 for ac_header in arpa/nameser.h
14050 do :
14051 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nam eser_h" "#if HAVE_SYS_TYPES_H
14052 # include <sys/types.h>
14053 # endif
14054
14055 "
14056 if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
14057 cat >>confdefs.h <<_ACEOF
14058 #define HAVE_ARPA_NAMESER_H 1
14059 _ACEOF
14060
14061 fi
14062
14063 done
14064
14065 for ac_header in resolv.h
14066 do :
14067 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
14068 # include <sys/types.h>
14069 # endif
14070 #if HAVE_NETINET_IN_H
14071 # include <netinet/in.h>
14072 # endif
14073 #if HAVE_ARPA_NAMESER_H
14074 # include <arpa/nameser.h>
14075 # endif
14076
14077 "
14078 if test "x$ac_cv_header_resolv_h" = xyes; then :
14079 cat >>confdefs.h <<_ACEOF
14080 #define HAVE_RESOLV_H 1
14081 _ACEOF
14082
14083 fi
14084
14085 done
14086
14087 for ac_header in dl.h
14088 do :
14089 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_include s_default"
14090 if test "x$ac_cv_header_dl_h" = xyes; then :
14091 cat >>confdefs.h <<_ACEOF
14092 #define HAVE_DL_H 1
14093 _ACEOF
14094
14095 fi
14096
14097 done
14098
14099 for ac_header in dlfcn.h
14100 do :
14101 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_i ncludes_default"
14102 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_DLFCN_H 1
14105 _ACEOF
14106
14107 fi
14108
14109 done
14110
14111
14112
14113 echo Checking types
14114
14115 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14116 case $ac_cv_c_uint32_t in #(
14117 no|yes) ;; #(
14118 *)
14119
14120 $as_echo "#define _UINT32_T 1" >>confdefs.h
14121
14122
14123 cat >>confdefs.h <<_ACEOF
14124 #define uint32_t $ac_cv_c_uint32_t
14125 _ACEOF
14126 ;;
14127 esac
14128
14129
14130
14131 echo Checking libraries
14132
14133 for ac_func in strftime
14134 do :
14135 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
14136 if test "x$ac_cv_func_strftime" = xyes; then :
14137 cat >>confdefs.h <<_ACEOF
14138 #define HAVE_STRFTIME 1
14139 _ACEOF
14140
14141 else
14142 # strftime is in -lintl on SCO UNIX.
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
14144 $as_echo_n "checking for strftime in -lintl... " >&6; }
14145 if ${ac_cv_lib_intl_strftime+:} false; then :
14146 $as_echo_n "(cached) " >&6
14147 else
9461 ac_check_lib_save_LIBS=$LIBS 14148 ac_check_lib_save_LIBS=$LIBS
9462 LIBS="-ldld $LIBS" 14149 LIBS="-lintl $LIBS"
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */ 14151 /* end confdefs.h. */
9465 14152
9466 /* Override any GCC internal prototype to avoid an error. 14153 /* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC 14154 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */ 14155 builtin and then its argument prototype would still apply. */
9469 #ifdef __cplusplus 14156 #ifdef __cplusplus
9470 extern "C" 14157 extern "C"
9471 #endif 14158 #endif
9472 char dld_link (); 14159 char strftime ();
9473 int 14160 int
9474 main () 14161 main ()
9475 { 14162 {
9476 return dld_link (); 14163 return strftime ();
9477 ; 14164 ;
9478 return 0; 14165 return 0;
9479 } 14166 }
9480 _ACEOF 14167 _ACEOF
9481 if ac_fn_c_try_link "$LINENO"; then : 14168 if ac_fn_c_try_link "$LINENO"; then :
9482 ac_cv_lib_dld_dld_link=yes 14169 ac_cv_lib_intl_strftime=yes
9483 else 14170 else
9484 ac_cv_lib_dld_dld_link=no 14171 ac_cv_lib_intl_strftime=no
9485 fi 14172 fi
9486 rm -f core conftest.err conftest.$ac_objext \ 14173 rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext 14174 conftest$ac_exeext conftest.$ac_ext
9488 LIBS=$ac_check_lib_save_LIBS 14175 LIBS=$ac_check_lib_save_LIBS
9489 fi 14176 fi
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9491 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14178 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9492 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14179 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9493 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 14180 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9494 fi 14181
9495 14182 LIBS="-lintl $LIBS"
9496 14183 fi
9497 fi 14184
9498 14185 fi
9499 14186 done
9500 fi 14187
9501 14188 for ac_func in strdup strndup strerror
9502 14189 do :
9503 fi 14190 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9504 14191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9505 14192 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9506 fi 14193 cat >>confdefs.h <<_ACEOF
9507 14194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9508 14195 _ACEOF
9509 fi 14196
9510 14197 fi
9511 ;; 14198 done
9512 esac 14199
9513 14200 for ac_func in finite isnand fp_class class fpclass
9514 if test "x$lt_cv_dlopen" != xno; then 14201 do :
9515 enable_dlopen=yes 14202 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9516 else 14203 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9517 enable_dlopen=no 14204 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9518 fi 14205 cat >>confdefs.h <<_ACEOF
9519 14206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9520 case $lt_cv_dlopen in 14207 _ACEOF
9521 dlopen) 14208
9522 save_CPPFLAGS="$CPPFLAGS" 14209 fi
9523 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14210 done
9524 14211
9525 save_LDFLAGS="$LDFLAGS" 14212 for ac_func in strftime localtime gettimeofday ftime
9526 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14213 do :
9527 14214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9528 save_LIBS="$LIBS" 14215 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9529 LIBS="$lt_cv_dlopen_libs $LIBS" 14216 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9530 14217 cat >>confdefs.h <<_ACEOF
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlop en itself" >&5 14218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9532 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 14219 _ACEOF
9533 if ${lt_cv_dlopen_self+:} false; then : 14220
9534 $as_echo_n "(cached) " >&6 14221 fi
9535 else 14222 done
9536 if test "$cross_compiling" = yes; then : 14223
9537 lt_cv_dlopen_self=cross 14224 for ac_func in stat _stat signal
9538 else 14225 do :
9539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9540 lt_status=$lt_dlunknown 14227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9541 cat > conftest.$ac_ext <<_LT_EOF 14228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9542 #line 9542 "configure" 14229 cat >>confdefs.h <<_ACEOF
9543 #include "confdefs.h" 14230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9544 14231 _ACEOF
9545 #if HAVE_DLFCN_H 14232
9546 #include <dlfcn.h> 14233 fi
9547 #endif 14234 done
9548 14235
9549 #include <stdio.h> 14236 for ac_func in rand rand_r srand time
9550 14237 do :
9551 #ifdef RTLD_GLOBAL 14238 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9552 # define LT_DLGLOBAL RTLD_GLOBAL 14239 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9553 #else 14240 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9554 # ifdef DL_GLOBAL 14241 cat >>confdefs.h <<_ACEOF
9555 # define LT_DLGLOBAL DL_GLOBAL 14242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9556 # else 14243 _ACEOF
9557 # define LT_DLGLOBAL 0 14244
9558 # endif 14245 fi
9559 #endif 14246 done
9560 14247
9561 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14248 for ac_func in isascii mmap munmap putenv
9562 find out it does not work in some platform. */ 14249 do :
9563 #ifndef LT_DLLAZY_OR_NOW 14250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9564 # ifdef RTLD_LAZY 14251 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9565 # define LT_DLLAZY_OR_NOW RTLD_LAZY 14252 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9566 # else 14253 cat >>confdefs.h <<_ACEOF
9567 # ifdef DL_LAZY 14254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9568 # define LT_DLLAZY_OR_NOW DL_LAZY 14255 _ACEOF
9569 # else 14256
9570 # ifdef RTLD_NOW 14257 fi
9571 # define LT_DLLAZY_OR_NOW RTLD_NOW 14258 done
9572 # else 14259
9573 # ifdef DL_NOW 14260
9574 # define LT_DLLAZY_OR_NOW DL_NOW 14261
9575 # else 14262
9576 # define LT_DLLAZY_OR_NOW 0 14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
9577 # endif 14264 $as_echo_n "checking for va_copy... " >&6; }
9578 # endif 14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 # endif
9580 # endif
9581 #endif
9582
9583 void fnord() { int i=42;}
9584 int main ()
9585 {
9586 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9587 int status = $lt_dlunknown;
9588
9589 if (self)
9590 {
9591 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9592 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9593 /* dlclose (self); */
9594 }
9595 else
9596 puts (dlerror ());
9597
9598 return status;
9599 }
9600 _LT_EOF
9601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9602 (eval $ac_link) 2>&5
9603 ac_status=$?
9604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9605 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9606 (./conftest; exit; ) >&5 2>/dev/null
9607 lt_status=$?
9608 case x$lt_status in
9609 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9610 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9611 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9612 esac
9613 else :
9614 # compilation failed
9615 lt_cv_dlopen_self=no
9616 fi
9617 fi
9618 rm -fr conftest*
9619
9620
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9623 $as_echo "$lt_cv_dlopen_self" >&6; }
9624
9625 if test "x$lt_cv_dlopen_self" = xyes; then
9626 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\ "
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically lin ked program can dlopen itself" >&5
9628 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9629 if ${lt_cv_dlopen_self_static+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631 else
9632 if test "$cross_compiling" = yes; then :
9633 lt_cv_dlopen_self_static=cross
9634 else
9635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9636 lt_status=$lt_dlunknown
9637 cat > conftest.$ac_ext <<_LT_EOF
9638 #line 9638 "configure"
9639 #include "confdefs.h"
9640
9641 #if HAVE_DLFCN_H
9642 #include <dlfcn.h>
9643 #endif
9644
9645 #include <stdio.h>
9646
9647 #ifdef RTLD_GLOBAL
9648 # define LT_DLGLOBAL RTLD_GLOBAL
9649 #else
9650 # ifdef DL_GLOBAL
9651 # define LT_DLGLOBAL DL_GLOBAL
9652 # else
9653 # define LT_DLGLOBAL 0
9654 # endif
9655 #endif
9656
9657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9658 find out it does not work in some platform. */
9659 #ifndef LT_DLLAZY_OR_NOW
9660 # ifdef RTLD_LAZY
9661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9662 # else
9663 # ifdef DL_LAZY
9664 # define LT_DLLAZY_OR_NOW DL_LAZY
9665 # else
9666 # ifdef RTLD_NOW
9667 # define LT_DLLAZY_OR_NOW RTLD_NOW
9668 # else
9669 # ifdef DL_NOW
9670 # define LT_DLLAZY_OR_NOW DL_NOW
9671 # else
9672 # define LT_DLLAZY_OR_NOW 0
9673 # endif
9674 # endif
9675 # endif
9676 # endif
9677 #endif
9678
9679 void fnord() { int i=42;}
9680 int main ()
9681 {
9682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9683 int status = $lt_dlunknown;
9684
9685 if (self)
9686 {
9687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9688 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9689 /* dlclose (self); */
9690 }
9691 else
9692 puts (dlerror ());
9693
9694 return status;
9695 }
9696 _LT_EOF
9697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9698 (eval $ac_link) 2>&5
9699 ac_status=$?
9700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9701 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9702 (./conftest; exit; ) >&5 2>/dev/null
9703 lt_status=$?
9704 case x$lt_status in
9705 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9706 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9707 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9708 esac
9709 else :
9710 # compilation failed
9711 lt_cv_dlopen_self_static=no
9712 fi
9713 fi
9714 rm -fr conftest*
9715
9716
9717 fi
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9719 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9720 fi
9721
9722 CPPFLAGS="$save_CPPFLAGS"
9723 LDFLAGS="$save_LDFLAGS"
9724 LIBS="$save_LIBS"
9725 ;;
9726 esac
9727
9728 case $lt_cv_dlopen_self in
9729 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9730 *) enable_dlopen_self=unknown ;;
9731 esac
9732
9733 case $lt_cv_dlopen_self_static in
9734 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9735 *) enable_dlopen_self_static=unknown ;;
9736 esac
9737 fi
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755 striplib=
9756 old_striplib=
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9758 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9759 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9760 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9761 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9763 $as_echo "yes" >&6; }
9764 else
9765 # FIXME - insert some real tests, host_os isn't really good enough
9766 case $host_os in
9767 darwin*)
9768 if test -n "$STRIP" ; then
9769 striplib="$STRIP -x"
9770 old_striplib="$STRIP -S"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9772 $as_echo "yes" >&6; }
9773 else
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9776 fi
9777 ;;
9778 *)
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9780 $as_echo "no" >&6; }
9781 ;;
9782 esac
9783 fi
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796 # Report which library types will actually be built
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared l ibraries" >&5
9798 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9800 $as_echo "$can_build_shared" >&6; }
9801
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libr aries" >&5
9803 $as_echo_n "checking whether to build shared libraries... " >&6; }
9804 test "$can_build_shared" = "no" && enable_shared=no
9805
9806 # On AIX, shared libraries and static libraries use the same namespace, and
9807 # are all built from PIC.
9808 case $host_os in
9809 aix3*)
9810 test "$enable_shared" = yes && enable_static=no
9811 if test -n "$RANLIB"; then
9812 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9813 postinstall_cmds='$RANLIB $lib'
9814 fi
9815 ;;
9816
9817 aix[4-9]*)
9818 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9819 test "$enable_shared" = yes && enable_static=no
9820 fi
9821 ;;
9822 esac
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9824 $as_echo "$enable_shared" >&6; }
9825
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libr aries" >&5
9827 $as_echo_n "checking whether to build static libraries... " >&6; }
9828 # Make sure either enable_shared or enable_static is yes.
9829 test "$enable_shared" = yes || enable_static=yes
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9831 $as_echo "$enable_static" >&6; }
9832
9833
9834
9835
9836 fi
9837 ac_ext=c
9838 ac_cpp='$CPP $CPPFLAGS'
9839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
9841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9842
9843 CC="$lt_save_CC"
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857 ac_config_commands="$ac_config_commands libtool"
9858
9859
9860
9861
9862 # Only expand once:
9863
9864
9865 # Find a good install program. We prefer a C program (faster),
9866 # so one script is as good as another. But avoid the broken or
9867 # incompatible versions:
9868 # SysV /etc/install, /usr/sbin/install
9869 # SunOS /usr/etc/install
9870 # IRIX /sbin/install
9871 # AIX /bin/install
9872 # AmigaOS /C/install, which installs bootblocks on floppy discs
9873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9876 # OS/2's system install, which has a completely different semantic
9877 # ./install, which can be erroneously created by make from ./install.sh.
9878 # Reject install programs that cannot install multiple files.
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9880 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9881 if test -z "$INSTALL"; then
9882 if ${ac_cv_path_install+:} false; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9887 do
9888 IFS=$as_save_IFS
9889 test -z "$as_dir" && as_dir=.
9890 # Account for people who put trailing slashes in PATH elements.
9891 case $as_dir/ in #((
9892 ./ | .// | /[cC]/* | \
9893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9894 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9895 /usr/ucb/* ) ;;
9896 *)
9897 # OSF1 and SCO ODT 3.0 have their own names for install.
9898 # Don't use installbsd from OSF since it installs stuff as root
9899 # by default.
9900 for ac_prog in ginstall scoinst install; do
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9903 if test $ac_prog = install &&
9904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9905 # AIX install. It has an incompatible calling convention.
9906 :
9907 elif test $ac_prog = install &&
9908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9909 # program-specific install script used by HP pwplus--don't use.
9910 :
9911 else
9912 rm -rf conftest.one conftest.two conftest.dir
9913 echo one > conftest.one
9914 echo two > conftest.two
9915 mkdir conftest.dir
9916 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd `/conftest.dir" &&
9917 test -s conftest.one && test -s conftest.two &&
9918 test -s conftest.dir/conftest.one &&
9919 test -s conftest.dir/conftest.two
9920 then
9921 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9922 break 3
9923 fi
9924 fi
9925 fi
9926 done
9927 done
9928 ;;
9929 esac
9930
9931 done
9932 IFS=$as_save_IFS
9933
9934 rm -rf conftest.one conftest.two conftest.dir
9935
9936 fi
9937 if test "${ac_cv_path_install+set}" = set; then
9938 INSTALL=$ac_cv_path_install
9939 else
9940 # As a last resort, use the slow shell script. Don't cache a
9941 # value for INSTALL within a source directory, because that will
9942 # break other packages using the cache if that directory is
9943 # removed, or if the value is a relative name.
9944 INSTALL=$ac_install_sh
9945 fi
9946 fi
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9948 $as_echo "$INSTALL" >&6; }
9949
9950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9951 # It thinks the first close brace ends the variable substitution.
9952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9953
9954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9955
9956 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9957
9958
9959 #########
9960 # Enable large file support (if special flags are necessary)
9961 #
9962 # Check whether --enable-largefile was given.
9963 if test "${enable_largefile+set}" = set; then :
9964 enableval=$enable_largefile;
9965 fi
9966
9967 if test "$enable_largefile" != no; then
9968
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler optio ns needed for large files" >&5
9970 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9971 if ${ac_cv_sys_largefile_CC+:} false; then :
9972 $as_echo_n "(cached) " >&6
9973 else
9974 ac_cv_sys_largefile_CC=no
9975 if test "$GCC" != yes; then
9976 ac_save_CC=$CC
9977 while :; do
9978 # IRIX 6.2 and later do not support large files by default,
9979 # so use the C compiler's -n32 option if that helps.
9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */ 14266 /* end confdefs.h. */
9982 #include <sys/types.h> 14267 #include <stdarg.h>
9983 /* Check that off_t can represent 2**63 - 1 correctly. 14268 va_list ap1,ap2;
9984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9985 since some C++ compilers masquerading as C compilers
9986 incorrectly reject 9223372036854775807. */
9987 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9989 » » && LARGE_OFF_T % 2147483647 == 1)
9990 » » ? 1 : -1];
9991 int 14269 int
9992 main () 14270 main ()
9993 { 14271 {
9994 14272 va_copy(ap1,ap2);
9995 ; 14273 ;
9996 return 0; 14274 return 0;
9997 } 14275 }
9998 _ACEOF 14276 _ACEOF
9999 » if ac_fn_c_try_compile "$LINENO"; then : 14277 if ac_fn_c_try_link "$LINENO"; then :
10000 break 14278 have_va_copy=yes
10001 fi 14279 else
10002 rm -f core conftest.err conftest.$ac_objext 14280 have_va_copy=no
10003 » CC="$CC -n32" 14281 fi
10004 » if ac_fn_c_try_compile "$LINENO"; then : 14282 rm -f core conftest.err conftest.$ac_objext \
10005 ac_cv_sys_largefile_CC=' -n32'; break 14283 conftest$ac_exeext conftest.$ac_ext
10006 fi 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
10007 rm -f core conftest.err conftest.$ac_objext 14285 $as_echo "$have_va_copy" >&6; }
10008 » break 14286 if test x"$have_va_copy" = x"yes"; then
10009 done 14287
10010 CC=$ac_save_CC 14288 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
10011 rm -f conftest.$ac_ext 14289
10012 fi 14290 else
10013 fi 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14292 $as_echo_n "checking for __va_copy... " >&6; }
10015 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 if test "$ac_cv_sys_largefile_CC" != no; then
10017 CC=$CC$ac_cv_sys_largefile_CC
10018 fi
10019
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10021 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6 ; }
10022 if ${ac_cv_sys_file_offset_bits+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024 else
10025 while :; do
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */ 14294 /* end confdefs.h. */
10028 #include <sys/types.h> 14295 #include <stdarg.h>
10029 /* Check that off_t can represent 2**63 - 1 correctly. 14296 va_list ap1,ap2;
10030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10031 since some C++ compilers masquerading as C compilers
10032 incorrectly reject 9223372036854775807. */
10033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10035 » » && LARGE_OFF_T % 2147483647 == 1)
10036 » » ? 1 : -1];
10037 int 14297 int
10038 main () 14298 main ()
10039 { 14299 {
10040 14300 __va_copy(ap1,ap2);
10041 ; 14301 ;
10042 return 0; 14302 return 0;
10043 } 14303 }
10044 _ACEOF 14304 _ACEOF
10045 if ac_fn_c_try_compile "$LINENO"; then : 14305 if ac_fn_c_try_link "$LINENO"; then :
10046 ac_cv_sys_file_offset_bits=no; break 14306 have___va_copy=yes
10047 fi 14307 else
10048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14308 have___va_copy=no
10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14309 fi
14310 rm -f core conftest.err conftest.$ac_objext \
14311 conftest$ac_exeext conftest.$ac_ext
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
14313 $as_echo "$have___va_copy" >&6; }
14314 if test x"$have___va_copy" = x"yes"; then
14315
14316 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14317
14318 fi
14319 fi
14320
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array ty pe" >&5
14322 $as_echo_n "checking whether va_list is an array type... " >&6; }
14323 cat > conftest.$ac_ext <<EOF
14324 #line 14324 "configure"
14325 #include "confdefs.h"
14326
14327 #include <stdarg.h>
14328 void a(va_list * ap) {}
14329 int main(void) {
14330
14331 va_list ap1, ap2; a(&ap1); ap2 = (va_list) ap1
14332 ; return 0; }
14333 EOF
14334 if { (eval echo configure:14334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14335 rm -rf conftest*
14336
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14339 else
14340 echo "configure: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14342 rm -rf conftest*
14343
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14345 $as_echo "yes" >&6; }
14346
14347 $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
14348
14349 fi
14350 rm -f conftest*
14351
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethost ent" >&5
14353 $as_echo_n "checking for library containing gethostent... " >&6; }
14354 if ${ac_cv_search_gethostent+:} false; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 ac_func_search_save_LIBS=$LIBS
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050 /* end confdefs.h. */ 14359 /* end confdefs.h. */
10051 #define _FILE_OFFSET_BITS 64 14360
10052 #include <sys/types.h> 14361 /* Override any GCC internal prototype to avoid an error.
10053 /* Check that off_t can represent 2**63 - 1 correctly. 14362 Use char because int might match the return type of a GCC
10054 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14363 builtin and then its argument prototype would still apply. */
10055 since some C++ compilers masquerading as C compilers 14364 #ifdef __cplusplus
10056 incorrectly reject 9223372036854775807. */ 14365 extern "C"
10057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14366 #endif
10058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14367 char gethostent ();
10059 » » && LARGE_OFF_T % 2147483647 == 1)
10060 » » ? 1 : -1];
10061 int 14368 int
10062 main () 14369 main ()
10063 { 14370 {
10064 14371 return gethostent ();
10065 ; 14372 ;
10066 return 0; 14373 return 0;
10067 } 14374 }
10068 _ACEOF 14375 _ACEOF
10069 if ac_fn_c_try_compile "$LINENO"; then : 14376 for ac_lib in '' nsl; do
10070 ac_cv_sys_file_offset_bits=64; break 14377 if test -z "$ac_lib"; then
10071 fi 14378 ac_res="none required"
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14379 else
10073 ac_cv_sys_file_offset_bits=unknown 14380 ac_res=-l$ac_lib
14381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14382 fi
14383 if ac_fn_c_try_link "$LINENO"; then :
14384 ac_cv_search_gethostent=$ac_res
14385 fi
14386 rm -f core conftest.err conftest.$ac_objext \
14387 conftest$ac_exeext
14388 if ${ac_cv_search_gethostent+:} false; then :
10074 break 14389 break
10075 done 14390 fi
10076 fi 14391 done
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >& 5 14392 if ${ac_cv_search_gethostent+:} false; then :
10078 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14393
10079 case $ac_cv_sys_file_offset_bits in #( 14394 else
10080 no | unknown) ;; 14395 ac_cv_search_gethostent=no
10081 *) 14396 fi
10082 cat >>confdefs.h <<_ACEOF 14397 rm conftest.$ac_ext
10083 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14398 LIBS=$ac_func_search_save_LIBS
10084 _ACEOF 14399 fi
10085 ;; 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
10086 esac 14401 $as_echo "$ac_cv_search_gethostent" >&6; }
10087 rm -rf conftest* 14402 ac_res=$ac_cv_search_gethostent
10088 if test $ac_cv_sys_file_offset_bits = unknown; then 14403 if test "$ac_res" != no; then :
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value nee ded for large files" >&5 14404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10090 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14405
10091 if ${ac_cv_sys_large_files+:} false; then : 14406 fi
14407
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsock opt" >&5
14409 $as_echo_n "checking for library containing setsockopt... " >&6; }
14410 if ${ac_cv_search_setsockopt+:} false; then :
10092 $as_echo_n "(cached) " >&6 14411 $as_echo_n "(cached) " >&6
10093 else 14412 else
10094 while :; do 14413 ac_func_search_save_LIBS=$LIBS
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */ 14415 /* end confdefs.h. */
10097 #include <sys/types.h> 14416
10098 /* Check that off_t can represent 2**63 - 1 correctly. 14417 /* Override any GCC internal prototype to avoid an error.
10099 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14418 Use char because int might match the return type of a GCC
10100 since some C++ compilers masquerading as C compilers 14419 builtin and then its argument prototype would still apply. */
10101 incorrectly reject 9223372036854775807. */ 14420 #ifdef __cplusplus
10102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14421 extern "C"
10103 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14422 #endif
10104 » » && LARGE_OFF_T % 2147483647 == 1) 14423 char setsockopt ();
10105 » » ? 1 : -1];
10106 int 14424 int
10107 main () 14425 main ()
10108 { 14426 {
10109 14427 return setsockopt ();
10110 ; 14428 ;
10111 return 0; 14429 return 0;
10112 } 14430 }
10113 _ACEOF 14431 _ACEOF
10114 if ac_fn_c_try_compile "$LINENO"; then : 14432 for ac_lib in '' socket net network; do
10115 ac_cv_sys_large_files=no; break 14433 if test -z "$ac_lib"; then
10116 fi 14434 ac_res="none required"
10117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14435 else
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14436 ac_res=-l$ac_lib
14437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14438 fi
14439 if ac_fn_c_try_link "$LINENO"; then :
14440 ac_cv_search_setsockopt=$ac_res
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext
14444 if ${ac_cv_search_setsockopt+:} false; then :
14445 break
14446 fi
14447 done
14448 if ${ac_cv_search_setsockopt+:} false; then :
14449
14450 else
14451 ac_cv_search_setsockopt=no
14452 fi
14453 rm conftest.$ac_ext
14454 LIBS=$ac_func_search_save_LIBS
14455 fi
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14457 $as_echo "$ac_cv_search_setsockopt" >&6; }
14458 ac_res=$ac_cv_search_setsockopt
14459 if test "$ac_res" != no; then :
14460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14461
14462 fi
14463
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect " >&5
14465 $as_echo_n "checking for library containing connect... " >&6; }
14466 if ${ac_cv_search_connect+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 ac_func_search_save_LIBS=$LIBS
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119 /* end confdefs.h. */ 14471 /* end confdefs.h. */
10120 #define _LARGE_FILES 1 14472
10121 #include <sys/types.h> 14473 /* Override any GCC internal prototype to avoid an error.
10122 /* Check that off_t can represent 2**63 - 1 correctly. 14474 Use char because int might match the return type of a GCC
10123 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14475 builtin and then its argument prototype would still apply. */
10124 since some C++ compilers masquerading as C compilers 14476 #ifdef __cplusplus
10125 incorrectly reject 9223372036854775807. */ 14477 extern "C"
10126 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14478 #endif
10127 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14479 char connect ();
10128 » » && LARGE_OFF_T % 2147483647 == 1)
10129 » » ? 1 : -1];
10130 int 14480 int
10131 main () 14481 main ()
10132 { 14482 {
10133 14483 return connect ();
10134 ; 14484 ;
10135 return 0; 14485 return 0;
10136 } 14486 }
10137 _ACEOF 14487 _ACEOF
14488 for ac_lib in '' inet; do
14489 if test -z "$ac_lib"; then
14490 ac_res="none required"
14491 else
14492 ac_res=-l$ac_lib
14493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14494 fi
14495 if ac_fn_c_try_link "$LINENO"; then :
14496 ac_cv_search_connect=$ac_res
14497 fi
14498 rm -f core conftest.err conftest.$ac_objext \
14499 conftest$ac_exeext
14500 if ${ac_cv_search_connect+:} false; then :
14501 break
14502 fi
14503 done
14504 if ${ac_cv_search_connect+:} false; then :
14505
14506 else
14507 ac_cv_search_connect=no
14508 fi
14509 rm conftest.$ac_ext
14510 LIBS=$ac_func_search_save_LIBS
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14513 $as_echo "$ac_cv_search_connect" >&6; }
14514 ac_res=$ac_cv_search_connect
14515 if test "$ac_res" != no; then :
14516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14517
14518 fi
14519
14520
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (soc klen_t)" >&5
14522 $as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
14523 cat > conftest.$ac_ext <<EOF
14524 #line 14524 "configure"
14525 #include "confdefs.h"
14526
14527 #include <stddef.h>
14528 #include <sys/types.h>
14529 #include <sys/socket.h>
14530 int main(void) {
14531
14532 (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
14533 ; return 0; }
14534 EOF
14535 if { (eval echo configure:14535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14536 rm -rf conftest*
14537
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
14539 $as_echo "socklen_t *" >&6; }
14540 XML_SOCKLEN_T=socklen_t
14541 else
14542 echo "configure: failed program was:" >&5
14543 cat conftest.$ac_ext >&5
14544 rm -rf conftest*
14545
14546 cat > conftest.$ac_ext <<EOF
14547 #line 14547 "configure"
14548 #include "confdefs.h"
14549
14550 #include <stddef.h>
14551 #include <sys/types.h>
14552 #include <sys/socket.h>
14553 int main(void) {
14554
14555 (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
14556 ; return 0; }
14557 EOF
14558 if { (eval echo configure:14558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14559 rm -rf conftest*
14560
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
14562 $as_echo "size_t *" >&6; }
14563 XML_SOCKLEN_T=size_t
14564 else
14565 echo "configure: failed program was:" >&5
14566 cat conftest.$ac_ext >&5
14567 rm -rf conftest*
14568
14569 cat > conftest.$ac_ext <<EOF
14570 #line 14570 "configure"
14571 #include "confdefs.h"
14572
14573 #include <stddef.h>
14574 #include <sys/types.h>
14575 #include <sys/socket.h>
14576 int main(void) {
14577
14578 (void)getsockopt (1, 1, 1, NULL, (int *)NULL)
14579 ; return 0; }
14580 EOF
14581 if { (eval echo configure:14581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14582 rm -rf conftest*
14583
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
14585 $as_echo "int *" >&6; }
14586 XML_SOCKLEN_T=int
14587 else
14588 echo "configure: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14590 rm -rf conftest*
14591
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
14593 $as_echo "$as_me: WARNING: could not determine" >&2;}
14594 XML_SOCKLEN_T="int"
14595 fi
14596 rm -f conftest*
14597 fi
14598 rm -f conftest*
14599 fi
14600 rm -f conftest*
14601
14602 cat >>confdefs.h <<_ACEOF
14603 #define XML_SOCKLEN_T $XML_SOCKLEN_T
14604 _ACEOF
14605
14606
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const gethostbyname() argu ment" >&5
14608 $as_echo_n "checking for const gethostbyname() argument... " >&6; }
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611 #include <netdb.h>
14612 int
14613 main ()
14614 {
14615 (void)gethostbyname((const char *)"");
14616 ;
14617 return 0;
14618 }
14619 _ACEOF
14620 if ac_fn_c_try_link "$LINENO"; then :
14621 have_gethostbyname_const_arg=yes
14622 else
14623 have_gethostbyname_const_arg=no
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gethostbyname_const_arg" >&5
14628 $as_echo "$have_gethostbyname_const_arg" >&6; }
14629 if test x"$have_gethostbyname_const_arg" = x"yes"; then
14630
14631 $as_echo "#define GETHOSTBYNAME_ARG_CAST /**/" >>confdefs.h
14632
14633 else
14634
14635 $as_echo "#define GETHOSTBYNAME_ARG_CAST (char *)" >>confdefs.h
14636
14637 fi
14638
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const send() second argume nt" >&5
14640 $as_echo_n "checking for const send() second argument... " >&6; }
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14643 #include <sys/types.h>
14644 #include <sys/socket.h>
14645 int
14646 main ()
14647 {
14648 (void)send(1,(const char *)"",1,1);
14649 ;
14650 return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_link "$LINENO"; then :
14654 have_send_const_arg2=yes
14655 else
14656 have_send_const_arg2=no
14657 fi
14658 rm -f core conftest.err conftest.$ac_objext \
14659 conftest$ac_exeext conftest.$ac_ext
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_send_const_arg2" >&5
14661 $as_echo "$have_send_const_arg2" >&6; }
14662 if test x"$have_send_const_arg2" = x"yes"; then
14663
14664 $as_echo "#define SEND_ARG2_CAST /**/" >>confdefs.h
14665
14666 else
14667
14668 $as_echo "#define SEND_ARG2_CAST (char *)" >>confdefs.h
14669
14670 fi
14671
14672
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
14674 $as_echo_n "checking whether to enable IPv6... " >&6; }
14675 # Check whether --enable-ipv6 was given.
14676 if test "${enable_ipv6+set}" = set; then :
14677 enableval=$enable_ipv6;
14678 else
14679 enable_ipv6=yes
14680 fi
14681
14682 if test "$with_minimum" = "yes"
14683 then
14684 enable_ipv6=no
14685 fi
14686 if test $enable_ipv6 = yes; then
14687 have_ipv6=no
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690
14691 # include <sys/types.h>
14692 # include <sys/socket.h>
14693
14694 int
14695 main ()
14696 {
14697
14698 struct sockaddr_storage ss;
14699 socket(AF_INET6, SOCK_STREAM, 0)
14700
14701 ;
14702 return 0;
14703 }
14704 _ACEOF
10138 if ac_fn_c_try_compile "$LINENO"; then : 14705 if ac_fn_c_try_compile "$LINENO"; then :
10139 ac_cv_sys_large_files=1; break 14706 have_ipv6=yes
14707 else
14708 have_ipv6=no
14709
10140 fi 14710 fi
10141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10142 ac_cv_sys_large_files=unknown 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
10143 break 14713 $as_echo "$have_ipv6" >&6; }
10144 done 14714
10145 fi 14715 if test $have_ipv6 = yes; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14716
10147 $as_echo "$ac_cv_sys_large_files" >&6; } 14717 $as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
10148 case $ac_cv_sys_large_files in #( 14718
10149 no | unknown) ;; 14719 have_broken_ss_family=no
10150 *) 14720
10151 cat >>confdefs.h <<_ACEOF 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checkin g struct sockaddr::ss_family" >&5
10152 #define _LARGE_FILES $ac_cv_sys_large_files 14722 $as_echo_n "checking struct sockaddr::ss_family... " >&6; }
10153 _ACEOF 14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 ;; 14724 /* end confdefs.h. */
14725
14726 # include <sys/types.h>
14727 # include <sys/socket.h>
14728
14729 int
14730 main ()
14731 {
14732
14733 struct sockaddr_storage ss ;
14734 ss.ss_family = 0 ;
14735
14736 ;
14737 return 0;
14738 }
14739 _ACEOF
14740 if ac_fn_c_try_compile "$LINENO"; then :
14741 have_ss_family=yes
14742 else
14743 have_ss_family=no
14744
14745 fi
14746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
14748 $as_echo "$have_ss_family" >&6; }
14749 if test x$have_ss_family = xno ; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr:: ss_family" >&5
14751 $as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14754
14755 # include <sys/types.h>
14756 # include <sys/socket.h>
14757
14758 int
14759 main ()
14760 {
14761
14762 struct sockaddr_storage ss ;
14763 ss.__ss_family = 0 ;
14764
14765 ;
14766 return 0;
14767 }
14768 _ACEOF
14769 if ac_fn_c_try_compile "$LINENO"; then :
14770 have_broken_ss_family=yes
14771 else
14772 have_broken_ss_family=no
14773
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" > &5
14777 $as_echo "$have_broken_ss_family" >&6; }
14778 if test x$have_broken_ss_family = xyes ; then
14779
14780 $as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
14781
14782
14783 $as_echo "#define ss_family __ss_family" >>confdefs.h
14784
14785 else
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_fam ily not found" >&5
14787 $as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
14788 fi
14789 fi
14790
14791 have_getaddrinfo=no
14792 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
14793 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
14794 have_getaddrinfo=yes
14795 fi
14796
14797 if test $have_getaddrinfo != yes; then
14798 for lib in bsd socket inet; do
14799 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
14801 $as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
14802 if eval \${$as_ac_Lib+:} false; then :
14803 $as_echo_n "(cached) " >&6
14804 else
14805 ac_check_lib_save_LIBS=$LIBS
14806 LIBS="-l$lib $LIBS"
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14809
14810 /* Override any GCC internal prototype to avoid an error.
14811 Use char because int might match the return type of a GCC
14812 builtin and then its argument prototype would still apply. */
14813 #ifdef __cplusplus
14814 extern "C"
14815 #endif
14816 char getaddrinfo ();
14817 int
14818 main ()
14819 {
14820 return getaddrinfo ();
14821 ;
14822 return 0;
14823 }
14824 _ACEOF
14825 if ac_fn_c_try_link "$LINENO"; then :
14826 eval "$as_ac_Lib=yes"
14827 else
14828 eval "$as_ac_Lib=no"
14829 fi
14830 rm -f core conftest.err conftest.$ac_objext \
14831 conftest$ac_exeext conftest.$ac_ext
14832 LIBS=$ac_check_lib_save_LIBS
14833 fi
14834 eval ac_res=\$$as_ac_Lib
14835 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14836 $as_echo "$ac_res" >&6; }
14837 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14838 LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
14839 fi
14840
14841 done
14842 fi
14843
14844 if test $have_getaddrinfo = yes; then
14845
14846 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
14847
14848 fi
14849 fi
14850 fi
14851
14852
14853 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
14854 if test "x$ac_cv_func_isnan" = xyes; then :
14855
14856 $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
14857
14858 else
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
14860 $as_echo_n "checking for isnan in -lm... " >&6; }
14861 if ${ac_cv_lib_m_isnan+:} false; then :
14862 $as_echo_n "(cached) " >&6
14863 else
14864 ac_check_lib_save_LIBS=$LIBS
14865 LIBS="-lm $LIBS"
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14868
14869 /* Override any GCC internal prototype to avoid an error.
14870 Use char because int might match the return type of a GCC
14871 builtin and then its argument prototype would still apply. */
14872 #ifdef __cplusplus
14873 extern "C"
14874 #endif
14875 char isnan ();
14876 int
14877 main ()
14878 {
14879 return isnan ();
14880 ;
14881 return 0;
14882 }
14883 _ACEOF
14884 if ac_fn_c_try_link "$LINENO"; then :
14885 ac_cv_lib_m_isnan=yes
14886 else
14887 ac_cv_lib_m_isnan=no
14888 fi
14889 rm -f core conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
14891 LIBS=$ac_check_lib_save_LIBS
14892 fi
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
14894 $as_echo "$ac_cv_lib_m_isnan" >&6; }
14895 if test "x$ac_cv_lib_m_isnan" = xyes; then :
14896
14897 $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
14898
14899 fi
14900
14901 fi
14902
14903
14904 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
14905 if test "x$ac_cv_func_isinf" = xyes; then :
14906
14907 $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
14908
14909 else
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
14911 $as_echo_n "checking for isinf in -lm... " >&6; }
14912 if ${ac_cv_lib_m_isinf+:} false; then :
14913 $as_echo_n "(cached) " >&6
14914 else
14915 ac_check_lib_save_LIBS=$LIBS
14916 LIBS="-lm $LIBS"
14917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14918 /* end confdefs.h. */
14919
14920 /* Override any GCC internal prototype to avoid an error.
14921 Use char because int might match the return type of a GCC
14922 builtin and then its argument prototype would still apply. */
14923 #ifdef __cplusplus
14924 extern "C"
14925 #endif
14926 char isinf ();
14927 int
14928 main ()
14929 {
14930 return isinf ();
14931 ;
14932 return 0;
14933 }
14934 _ACEOF
14935 if ac_fn_c_try_link "$LINENO"; then :
14936 ac_cv_lib_m_isinf=yes
14937 else
14938 ac_cv_lib_m_isinf=no
14939 fi
14940 rm -f core conftest.err conftest.$ac_objext \
14941 conftest$ac_exeext conftest.$ac_ext
14942 LIBS=$ac_check_lib_save_LIBS
14943 fi
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
14945 $as_echo "$ac_cv_lib_m_isinf" >&6; }
14946 if test "x$ac_cv_lib_m_isinf" = xyes; then :
14947
14948 $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
14949
14950 fi
14951
14952 fi
14953
14954
14955 XML_LIBDIR='-L${libdir}'
14956 XML_INCLUDEDIR='-I${includedir}/libxml2'
14957
14958 XML_CFLAGS=""
14959 RDL_LIBS=""
14960
14961 if test "${GCC}" != "yes" ; then
14962 case "${host}" in
14963 hppa*-*-hpux* )
14964 » CFLAGS="${CFLAGS} -Wp,-H30000"
14965 » ;;
14966 *-dec-osf* )
14967 CFLAGS="${CFLAGS} -ieee"
14968 ;;
14969 » alpha*-*-linux* )
14970 » CFLAGS="${CFLAGS} -ieee"
14971 » ;;
14972 esac
14973 else
14974 if test "$with_fexceptions" = "yes"
14975 then
14976 #
14977 » # Not activated by default because this inflates the code size
14978 » # Used to allow propagation of C++ exceptions through the library
14979 » #
14980 » CFLAGS="${CFLAGS} -fexceptions"
14981 fi
14982
14983 # warnings we'd like to see
14984 CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -W switch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparent heses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return - Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-de cls"
14985 # warnings we'd like to supress
14986 CFLAGS="${CFLAGS} -Wno-long-long"
14987 case "${host}" in
14988 alpha*-*-linux* )
14989 » CFLAGS="${CFLAGS} -mieee"
14990 » ;;
14991 » alpha*-*-osf* )
14992 » CFLAGS="${CFLAGS} -mieee"
14993 » ;;
14994 esac
14995 fi
14996 case ${host} in
14997 *-*-solaris*)
14998 XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
14999 ;;
15000 hppa*-hp-mpeix)
15001 NEED_TRIO=1
15002 » ;;
15003 *-*-mingw* | *-*-cygwin* | *-*-msvc* )
15004 # If the host is Windows, and shared libraries are disabled, we
15005 # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
15006 # work properly (without it, xmlexports.h would force the use of
15007 # DLL imports, which obviously aren't present in a static
15008 # library).
15009 if test "x$enable_shared" = "xno"; then
15010 XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
15011 CFLAGS="$CFLAGS -DLIBXML_STATIC"
15012 fi
15013 ;;
10155 esac 15014 esac
10156 rm -rf conftest* 15015
10157 fi 15016
10158 15017
10159 15018 PYTHON_VERSION=
10160 fi 15019 PYTHON_INCLUDES=
10161 15020 PYTHON_SITE_PACKAGES=
10162 15021 PYTHON_TESTS=
10163 ######### 15022 pythondir=
10164 # Check for needed/wanted data types 15023 if test "$with_python" != "no" ; then
10165 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" 15024 if test -x "$with_python/bin/python"
10166 if test "x$ac_cv_type_int8_t" = xyes; then : 15025 then
10167 15026 echo Found python in $with_python/bin/python
10168 cat >>confdefs.h <<_ACEOF 15027 PYTHON="$with_python/bin/python"
10169 #define HAVE_INT8_T 1 15028 else
10170 _ACEOF 15029 if test -x "$with_python/python.exe"
10171 15030 then
10172 15031 echo Found python in $with_python/python.exe
10173 fi 15032 PYTHON="$with_python/python.exe"
10174 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_defaul t" 15033 else
10175 if test "x$ac_cv_type_int16_t" = xyes; then : 15034 if test -x "$with_python"
10176 15035 then
10177 cat >>confdefs.h <<_ACEOF 15036 echo Found python in $with_python
10178 #define HAVE_INT16_T 1 15037 PYTHON="$with_python"
10179 _ACEOF 15038 else
10180 15039 if test -x "$PYTHON"
10181 15040 then
10182 fi 15041 echo Found python in environment PYTHON=$PYTHON
10183 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_defaul t" 15042 with_python=`$PYTHON -c "import sys; print(sys.exec_prefix)" `
10184 if test "x$ac_cv_type_int32_t" = xyes; then : 15043 else
10185 15044 # Extract the first word of "python python2.6 python2.5 pyth on2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
10186 cat >>confdefs.h <<_ACEOF 15045 set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 pyt hon2.0 python1.6 python1.5; ac_word=$2
10187 #define HAVE_INT32_T 1
10188 _ACEOF
10189
10190
10191 fi
10192 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_defaul t"
10193 if test "x$ac_cv_type_int64_t" = xyes; then :
10194
10195 cat >>confdefs.h <<_ACEOF
10196 #define HAVE_INT64_T 1
10197 _ACEOF
10198
10199
10200 fi
10201 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_defa ult"
10202 if test "x$ac_cv_type_intptr_t" = xyes; then :
10203
10204 cat >>confdefs.h <<_ACEOF
10205 #define HAVE_INTPTR_T 1
10206 _ACEOF
10207
10208
10209 fi
10210 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_defaul t"
10211 if test "x$ac_cv_type_uint8_t" = xyes; then :
10212
10213 cat >>confdefs.h <<_ACEOF
10214 #define HAVE_UINT8_T 1
10215 _ACEOF
10216
10217
10218 fi
10219 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_defa ult"
10220 if test "x$ac_cv_type_uint16_t" = xyes; then :
10221
10222 cat >>confdefs.h <<_ACEOF
10223 #define HAVE_UINT16_T 1
10224 _ACEOF
10225
10226
10227 fi
10228 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_defa ult"
10229 if test "x$ac_cv_type_uint32_t" = xyes; then :
10230
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_UINT32_T 1
10233 _ACEOF
10234
10235
10236 fi
10237 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_defa ult"
10238 if test "x$ac_cv_type_uint64_t" = xyes; then :
10239
10240 cat >>confdefs.h <<_ACEOF
10241 #define HAVE_UINT64_T 1
10242 _ACEOF
10243
10244
10245 fi
10246 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_de fault"
10247 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10248
10249 cat >>confdefs.h <<_ACEOF
10250 #define HAVE_UINTPTR_T 1
10251 _ACEOF
10252
10253
10254 fi
10255
10256
10257 #########
10258 # Check for needed/wanted headers
10259 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10260 do :
10261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10262 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_include s_default"
10263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10264 cat >>confdefs.h <<_ACEOF
10265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10266 _ACEOF
10267
10268 fi
10269
10270 done
10271
10272
10273 #########
10274 # Figure out whether or not we have these functions
10275 #
10276 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_si ze strchrnul usleep utime
10277 do :
10278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10280 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10281 cat >>confdefs.h <<_ACEOF
10282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10283 _ACEOF
10284
10285 fi
10286 done
10287
10288
10289 #########
10290 # By default, we use the amalgamation (this may be changed below...)
10291 #
10292 USE_AMALGAMATION=1
10293
10294 #########
10295 # See whether we can run specific tclsh versions known to work well;
10296 # if not, then we fall back to plain tclsh.
10297 # TODO: try other versions before falling back?
10298 #
10299 for ac_prog in tclsh8.6 tclsh8.5 tclsh
10300 do
10301 # Extract the first word of "$ac_prog", so it can be a program name with args.
10302 set dummy $ac_prog; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10304 $as_echo_n "checking for $ac_word... " >&6; } 15047 $as_echo_n "checking for $ac_word... " >&6; }
10305 if ${ac_cv_prog_TCLSH_CMD+:} false; then : 15048 if ${ac_cv_path_PYTHON+:} false; then :
10306 $as_echo_n "(cached) " >&6 15049 $as_echo_n "(cached) " >&6
10307 else 15050 else
10308 if test -n "$TCLSH_CMD"; then 15051 case $PYTHON in
10309 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test. 15052 [\\/]* | ?:[\\/]*)
10310 else 15053 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15054 ;;
15055 *)
15056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH 15057 for as_dir in $PATH
10313 do 15058 do
10314 IFS=$as_save_IFS 15059 IFS=$as_save_IFS
10315 test -z "$as_dir" && as_dir=. 15060 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do 15061 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_prog_TCLSH_CMD="$ac_prog" 15063 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5 15064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
10320 break 2 15065 break 2
10321 fi 15066 fi
10322 done 15067 done
10323 done 15068 done
10324 IFS=$as_save_IFS 15069 IFS=$as_save_IFS
10325 15070
15071 ;;
15072 esac
10326 fi 15073 fi
10327 fi 15074 PYTHON=$ac_cv_path_PYTHON
10328 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD 15075 if test -n "$PYTHON"; then
10329 if test -n "$TCLSH_CMD"; then 15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5 15077 $as_echo "$PYTHON" >&6; }
10331 $as_echo "$TCLSH_CMD" >&6; }
10332 else 15078 else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10334 $as_echo "no" >&6; } 15080 $as_echo "no" >&6; }
10335 fi 15081 fi
10336 15082
10337 15083
10338 test -n "$TCLSH_CMD" && break 15084 » » fi
10339 done 15085 » fi
10340 test -n "$TCLSH_CMD" || TCLSH_CMD="none" 15086 » fi
15087 fi
15088 if test "$PYTHON" != ""
15089 then
15090 PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysco nfig.get_python_version())"`
15091 » PYTHON_INCLUDES=`$PYTHON -c "from distutils import sysconfig; print(sysc onfig.get_python_inc())"`
15092 # does not work as it produce a /usr/lib/python path instead of/usr/lib64/python
15093 #
15094 #» PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print (sysconfig.get_python_lib())"`
15095 » echo Found Python version $PYTHON_VERSION
15096 fi
15097 if test "$PYTHON_VERSION" != "" -a "$PYTHON_INCLUDES" = ""
15098 then
15099 » if test -r $with_python/include/python$PYTHON_VERSION/Python.h
15100 » then
15101 » PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
15102 » else
15103 » if test -r $prefix/include/python$PYTHON_VERSION/Python.h
15104 » then
15105 » PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
15106 » else
15107 » » if test -r /usr/include/python$PYTHON_VERSION/Python.h
15108 » » then
15109 » » PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
15110 » » else
15111 » if test -r $with_python/include/Python.h
15112 » then
15113 » PYTHON_INCLUDES=$with_python/include
15114 » else
15115 » » echo could not find python$PYTHON_VERSION/Python.h or $w ith_python/include/Python.h
15116 » » fi
15117 » » fi
15118 » fi
15119 » fi
15120 fi
15121 if test "$with_python_install_dir" != ""
15122 then
15123 » PYTHON_SITE_PACKAGES="$with_python_install_dir"
15124 fi
15125 if test "$PYTHON_VERSION" != "" -a "$PYTHON_SITE_PACKAGES" = ""
15126 then
15127 » if test -d $libdir/python$PYTHON_VERSION/site-packages
15128 » then
15129 » PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
15130 » else
15131 » if test -d $with_python/lib/site-packages
15132 » then
15133 » » PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
15134 » else
15135 » » PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfi g; print(sysconfig.get_python_lib())"`
15136 » fi
15137 » fi
15138 fi
15139 pythondir='$(PYTHON_SITE_PACKAGES)'
15140 PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
15141 else
15142 PYTHON=
15143 fi
15144 if test "$PYTHON_INCLUDES" != ""; then
15145 WITH_PYTHON_TRUE=
15146 WITH_PYTHON_FALSE='#'
15147 else
15148 WITH_PYTHON_TRUE='#'
15149 WITH_PYTHON_FALSE=
15150 fi
10341 15151
10342 if test "$TCLSH_CMD" = "none"; then 15152 if test "$PYTHON_INCLUDES" != ""
10343 # If we can't find a local tclsh, then building the amalgamation will fail. 15153 then
10344 # We act as though --disable-amalgamation has been used. 15154 PYTHON_SUBDIR=python
10345 echo "Warning: can't find tclsh - defaulting to non-amalgamation build." 15155 else
10346 USE_AMALGAMATION=0 15156 PYTHON_SUBDIR=
10347 TCLSH_CMD="tclsh"
10348 fi 15157 fi
10349 15158
10350 15159
10351 15160
10352 if test "x${TCLLIBDIR+set}" != "xset" ; then
10353 TCLLIBDIR='$(libdir)'
10354 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10355 TCLLIBDIR=$i
10356 break
10357 done
10358 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10359 fi
10360 15161
15162 WITH_MODULES=0
15163 TEST_MODULES=
10361 15164
10362 ######### 15165 if test "$with_modules" != "no" ; then
10363 # Set up an appropriate program prefix 15166 case "$host" in
10364 # 15167 *-*-cygwin*)
10365 if test "$program_prefix" = "NONE"; then 15168 MODULE_EXTENSION=".dll"
10366 program_prefix="" 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
10367 fi 15170 $as_echo_n "checking for dlopen in -lcygwin... " >&6; }
10368 15171 if ${ac_cv_lib_cygwin_dlopen+:} false; then :
10369
10370 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10372 $as_echo "$as_me: Version set to $VERSION" >&6;}
10373
10374 RELEASE=`cat $srcdir/VERSION`
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10376 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10377
10378 VERSION_NUMBER=`cat $srcdir/VERSION \
10379 | sed 's/[^0-9]/ /g' \
10380 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10382 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10383
10384
10385 #########
10386 # Locate a compiler for the build machine. This compiler should
10387 # generate command-line programs that run on the build machine.
10388 #
10389 if test x"$cross_compiling" = xno; then
10390 » BUILD_CC=$CC
10391 » BUILD_CFLAGS=$CFLAGS
10392 else
10393 » if test "${BUILD_CC+set}" != set; then
10394 » » for ac_prog in gcc cc cl
10395 do
10396 # Extract the first word of "$ac_prog", so it can be a program name with args.
10397 set dummy $ac_prog; ac_word=$2
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10399 $as_echo_n "checking for $ac_word... " >&6; }
10400 if ${ac_cv_prog_BUILD_CC+:} false; then :
10401 $as_echo_n "(cached) " >&6 15172 $as_echo_n "(cached) " >&6
10402 else 15173 else
10403 if test -n "$BUILD_CC"; then 15174 ac_check_lib_save_LIBS=$LIBS
10404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 15175 LIBS="-lcygwin $LIBS"
10405 else
10406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10407 for as_dir in $PATH
10408 do
10409 IFS=$as_save_IFS
10410 test -z "$as_dir" && as_dir=.
10411 for ac_exec_ext in '' $ac_executable_extensions; do
10412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10413 ac_cv_prog_BUILD_CC="$ac_prog"
10414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" > &5
10415 break 2
10416 fi
10417 done
10418 done
10419 IFS=$as_save_IFS
10420
10421 fi
10422 fi
10423 BUILD_CC=$ac_cv_prog_BUILD_CC
10424 if test -n "$BUILD_CC"; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10426 $as_echo "$BUILD_CC" >&6; }
10427 else
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10429 $as_echo "no" >&6; }
10430 fi
10431
10432
10433 test -n "$BUILD_CC" && break
10434 done
10435
10436 » fi
10437 » if test "${BUILD_CFLAGS+set}" != set; then
10438 » » BUILD_CFLAGS="-g"
10439 » fi
10440 fi
10441
10442
10443 ##########
10444 # Do we want to support multithreaded use of sqlite
10445 #
10446 # Check whether --enable-threadsafe was given.
10447 if test "${enable_threadsafe+set}" = set; then :
10448 enableval=$enable_threadsafe;
10449 else
10450 enable_threadsafe=yes
10451 fi
10452
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10454 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10455 if test "$enable_threadsafe" = "no"; then
10456 SQLITE_THREADSAFE=0
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458 $as_echo "no" >&6; }
10459 else
10460 SQLITE_THREADSAFE=1
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10462 $as_echo "yes" >&6; }
10463 fi
10464
10465
10466 if test "$SQLITE_THREADSAFE" = "1"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthre ad_create" >&5
10468 $as_echo_n "checking for library containing pthread_create... " >&6; }
10469 if ${ac_cv_search_pthread_create+:} false; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 ac_func_search_save_LIBS=$LIBS
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */ 15177 /* end confdefs.h. */
10475 15178
15179 /* Override any GCC internal prototype to avoid an error.
15180 Use char because int might match the return type of a GCC
15181 builtin and then its argument prototype would still apply. */
15182 #ifdef __cplusplus
15183 extern "C"
15184 #endif
15185 char dlopen ();
15186 int
15187 main ()
15188 {
15189 return dlopen ();
15190 ;
15191 return 0;
15192 }
15193 _ACEOF
15194 if ac_fn_c_try_link "$LINENO"; then :
15195 ac_cv_lib_cygwin_dlopen=yes
15196 else
15197 ac_cv_lib_cygwin_dlopen=no
15198 fi
15199 rm -f core conftest.err conftest.$ac_objext \
15200 conftest$ac_exeext conftest.$ac_ext
15201 LIBS=$ac_check_lib_save_LIBS
15202 fi
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
15204 $as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
15205 if test "x$ac_cv_lib_cygwin_dlopen" = xyes; then :
15206
15207 WITH_MODULES=1
15208 MODULE_PLATFORM_LIBS=
15209
15210 $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
15211
15212
15213 fi
15214
15215 ;;
15216 *-*-mingw*)
15217 MODULE_EXTENSION=".dll"
15218 WITH_MODULES=1
15219 ;;
15220 *)
15221 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15222 if test "x$ac_cv_func_shl_load" = xyes; then :
15223 libxml_have_shl_load=yes
15224 else
15225
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15227 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15228 if ${ac_cv_lib_dld_shl_load+:} false; then :
15229 $as_echo_n "(cached) " >&6
15230 else
15231 ac_check_lib_save_LIBS=$LIBS
15232 LIBS="-ldld $LIBS"
15233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h. */
15235
10476 /* Override any GCC internal prototype to avoid an error. 15236 /* Override any GCC internal prototype to avoid an error.
10477 Use char because int might match the return type of a GCC 15237 Use char because int might match the return type of a GCC
10478 builtin and then its argument prototype would still apply. */ 15238 builtin and then its argument prototype would still apply. */
10479 #ifdef __cplusplus 15239 #ifdef __cplusplus
10480 extern "C" 15240 extern "C"
10481 #endif 15241 #endif
10482 char pthread_create (); 15242 char shl_load ();
10483 int 15243 int
10484 main () 15244 main ()
10485 { 15245 {
10486 return pthread_create (); 15246 return shl_load ();
10487 ; 15247 ;
10488 return 0; 15248 return 0;
10489 } 15249 }
10490 _ACEOF 15250 _ACEOF
10491 for ac_lib in '' pthread; do 15251 if ac_fn_c_try_link "$LINENO"; then :
10492 if test -z "$ac_lib"; then 15252 ac_cv_lib_dld_shl_load=yes
10493 ac_res="none required" 15253 else
10494 else 15254 ac_cv_lib_dld_shl_load=no
10495 ac_res=-l$ac_lib
10496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10497 fi
10498 if ac_fn_c_try_link "$LINENO"; then :
10499 ac_cv_search_pthread_create=$ac_res
10500 fi 15255 fi
10501 rm -f core conftest.err conftest.$ac_objext \ 15256 rm -f core conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext 15257 conftest$ac_exeext conftest.$ac_ext
10503 if ${ac_cv_search_pthread_create+:} false; then : 15258 LIBS=$ac_check_lib_save_LIBS
10504 break 15259 fi
10505 fi 15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10506 done 15261 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10507 if ${ac_cv_search_pthread_create+:} false; then : 15262 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10508 15263
10509 else 15264 MODULE_PLATFORM_LIBS="-ldld"
10510 ac_cv_search_pthread_create=no 15265 libxml_have_shl_load=yes
10511 fi 15266 else
10512 rm conftest.$ac_ext 15267
10513 LIBS=$ac_func_search_save_LIBS 15268 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10514 fi 15269 if test "x$ac_cv_func_dlopen" = xyes; then :
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" > &5 15270 libxml_have_dlopen=yes
10516 $as_echo "$ac_cv_search_pthread_create" >&6; } 15271 else
10517 ac_res=$ac_cv_search_pthread_create 15272
10518 if test "$ac_res" != no; then : 15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >& 5
10519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10520 15275 if ${ac_cv_lib_dl_dlopen+:} false; then :
10521 fi
10522
10523 fi
10524
10525 ##########
10526 # Do we want to support release
10527 #
10528 # Check whether --enable-releasemode was given.
10529 if test "${enable_releasemode+set}" = set; then :
10530 enableval=$enable_releasemode;
10531 else
10532 enable_releasemode=no
10533 fi
10534
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared libr ary linked as release mode or not" >&5
10536 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10537 if test "$enable_releasemode" = "no"; then
10538 ALLOWRELEASE=""
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10541 else
10542 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10544 $as_echo "yes" >&6; }
10545 fi
10546
10547
10548 ##########
10549 # Do we want temporary databases in memory
10550 #
10551 # Check whether --enable-tempstore was given.
10552 if test "${enable_tempstore+set}" = set; then :
10553 enableval=$enable_tempstore;
10554 else
10555 enable_tempstore=no
10556 fi
10557
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram datab ase for temporary tables" >&5
10559 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10560 case "$enable_tempstore" in
10561 never )
10562 TEMP_STORE=0
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10564 $as_echo "never" >&6; }
10565 ;;
10566 no )
10567 TEMP_STORE=1
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10570 ;;
10571 yes )
10572 TEMP_STORE=2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10574 $as_echo "yes" >&6; }
10575 ;;
10576 always )
10577 TEMP_STORE=3
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10579 $as_echo "always" >&6; }
10580 ;;
10581 * )
10582 TEMP_STORE=1
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 ;;
10586 esac
10587
10588
10589
10590 ###########
10591 # Lots of things are different if we are compiling for Windows using
10592 # the CYGWIN environment. So check for that special case and handle
10593 # things accordingly.
10594 #
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe s uffix" >&5
10596 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10597 if test "$config_BUILD_EXEEXT" = ".exe"; then
10598 CYGWIN=yes
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10600 $as_echo "yes" >&6; }
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10603 $as_echo "unknown" >&6; }
10604 fi
10605 if test "$CYGWIN" != "yes"; then
10606
10607 case $host_os in
10608 *cygwin* ) CYGWIN=yes;;
10609 » * ) CYGWIN=no;;
10610 esac
10611
10612 fi
10613 if test "$CYGWIN" = "yes"; then
10614 BUILD_EXEEXT=.exe
10615 else
10616 BUILD_EXEEXT=$EXEEXT
10617 fi
10618 if test x"$cross_compiling" = xno; then
10619 TARGET_EXEEXT=$BUILD_EXEEXT
10620 else
10621 TARGET_EXEEXT=$config_TARGET_EXEEXT
10622 fi
10623 if test "$TARGET_EXEEXT" = ".exe"; then
10624 SQLITE_OS_UNIX=0
10625 SQLITE_OS_WIN=1
10626 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10627 else
10628 SQLITE_OS_UNIX=1
10629 SQLITE_OS_WIN=0
10630 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10631 fi
10632
10633
10634
10635
10636
10637
10638 ##########
10639 # Figure out all the parameters needed to compile against Tcl.
10640 #
10641 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10642 # macros in the in the tcl.m4 file of the standard TCL distribution.
10643 # Those macros could not be used directly since we have to make some
10644 # minor changes to accomodate systems that do not have TCL installed.
10645 #
10646 # Check whether --enable-tcl was given.
10647 if test "${enable_tcl+set}" = set; then :
10648 enableval=$enable_tcl; use_tcl=$enableval
10649 else
10650 use_tcl=yes
10651 fi
10652
10653 if test "${use_tcl}" = "yes" ; then
10654
10655 # Check whether --with-tcl was given.
10656 if test "${with_tcl+set}" = set; then :
10657 withval=$with_tcl; with_tclconfig=${withval}
10658 fi
10659
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10661 $as_echo_n "checking for Tcl configuration... " >&6; }
10662 if ${ac_cv_c_tclconfig+:} false; then :
10663 $as_echo_n "(cached) " >&6 15276 $as_echo_n "(cached) " >&6
10664 else 15277 else
10665 15278 ac_check_lib_save_LIBS=$LIBS
10666 # First check to see if --with-tcl was specified. 15279 LIBS="-ldl $LIBS"
10667 if test x"${with_tclconfig}" != x ; then
10668 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10669 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10670 else
10671 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh " "$LINENO" 5
10672 fi
10673 fi
10674
10675 # Start autosearch by asking tclsh
10676 if test x"${ac_cv_c_tclconfig}" = x ; then
10677 if test x"$cross_compiling" = xno; then
10678 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10679 do
10680 if test -f "$i/tclConfig.sh" ; then
10681 ac_cv_c_tclconfig="$i"
10682 break
10683 fi
10684 done
10685 fi
10686 fi
10687
10688 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10689 # So try again after applying corrections.
10690 if test x"${ac_cv_c_tclconfig}" = x ; then
10691 if test x"$cross_compiling" = xno; then
10692 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/t cl,/tcl,g'`
10693 do
10694 if test -f "$i/tclConfig.sh" ; then
10695 ac_cv_c_tclconfig="$i"
10696 break
10697 fi
10698 done
10699 fi
10700 fi
10701
10702 # then check for a private Tcl installation
10703 if test x"${ac_cv_c_tclconfig}" = x ; then
10704 for i in \
10705 ../tcl \
10706 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10707 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10708 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10709 ../../tcl \
10710 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10711 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10712 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10713 ../../../tcl \
10714 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10715 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10716 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10717 do
10718 if test -f "$i/unix/tclConfig.sh" ; then
10719 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10720 break
10721 fi
10722 done
10723 fi
10724
10725 # check in a few common install locations
10726 if test x"${ac_cv_c_tclconfig}" = x ; then
10727 for i in \
10728 `ls -d ${libdir} 2>/dev/null` \
10729 `ls -d /usr/local/lib 2>/dev/null` \
10730 `ls -d /usr/contrib/lib 2>/dev/null` \
10731 `ls -d /usr/lib 2>/dev/null`
10732 do
10733 if test -f "$i/tclConfig.sh" ; then
10734 ac_cv_c_tclconfig=`(cd $i; pwd)`
10735 break
10736 fi
10737 done
10738 fi
10739
10740 # check in a few other private locations
10741 if test x"${ac_cv_c_tclconfig}" = x ; then
10742 for i in \
10743 ${srcdir}/../tcl \
10744 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10745 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10746 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10747 do
10748 if test -f "$i/unix/tclConfig.sh" ; then
10749 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10750 break
10751 fi
10752 done
10753 fi
10754
10755 fi
10756
10757
10758 if test x"${ac_cv_c_tclconfig}" = x ; then
10759 use_tcl=no
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configurati on definitions" >&5
10761 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regres sion tests cannot be executed ***" >&5
10763 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be execut ed ***" >&2;}
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with- tcl=... to define location of Tcl ***" >&5
10765 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10766 else
10767 TCL_BIN_DIR=${ac_cv_c_tclconfig}
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfi g.sh" >&5
10769 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10770
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_ DIR/tclConfig.sh" >&5
10772 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10773 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10775 $as_echo "loading" >&6; }
10776 . $TCL_BIN_DIR/tclConfig.sh
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10779 $as_echo "file not found" >&6; }
10780 fi
10781
10782 #
10783 # If the TCL_BIN_DIR is the build directory (not the install directory),
10784 # then set the common variable name to the value of the build variables.
10785 # For example, the variable TCL_LIB_SPEC will be set to the value
10786 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10787 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10788 # installed and uninstalled version of Tcl.
10789 #
10790
10791 if test -f $TCL_BIN_DIR/Makefile ; then
10792 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10793 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10794 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10795 fi
10796
10797 #
10798 # eval is required to do the TCL_DBGX substitution
10799 #
10800
10801 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10802 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10803 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10804
10805 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10806 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10807 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822 fi
10823 fi
10824 if test "${use_tcl}" = "no" ; then
10825 HAVE_TCL=""
10826 else
10827 HAVE_TCL=1
10828 fi
10829
10830
10831 ##########
10832 # Figure out what C libraries are required to compile programs
10833 # that use "readline()" library.
10834 #
10835 TARGET_READLINE_LIBS=""
10836 TARGET_READLINE_INC=""
10837 TARGET_HAVE_READLINE=0
10838 TARGET_HAVE_EDITLINE=0
10839 # Check whether --enable-editline was given.
10840 if test "${enable_editline+set}" = set; then :
10841 enableval=$enable_editline; with_editline=$enableval
10842 else
10843 with_editline=auto
10844 fi
10845
10846 # Check whether --enable-readline was given.
10847 if test "${enable_readline+set}" = set; then :
10848 enableval=$enable_readline; with_readline=$enableval
10849 else
10850 with_readline=auto
10851 fi
10852
10853
10854 if test x"$with_editline" != xno; then
10855 sLIBS=$LIBS
10856 LIBS=""
10857 » TARGET_HAVE_EDITLINE=1
10858 » { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10859 $as_echo_n "checking for library containing readline... " >&6; }
10860 if ${ac_cv_search_readline+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 ac_func_search_save_LIBS=$LIBS
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */ 15281 /* end confdefs.h. */
10866 15282
15283 /* Override any GCC internal prototype to avoid an error.
15284 Use char because int might match the return type of a GCC
15285 builtin and then its argument prototype would still apply. */
15286 #ifdef __cplusplus
15287 extern "C"
15288 #endif
15289 char dlopen ();
15290 int
15291 main ()
15292 {
15293 return dlopen ();
15294 ;
15295 return 0;
15296 }
15297 _ACEOF
15298 if ac_fn_c_try_link "$LINENO"; then :
15299 ac_cv_lib_dl_dlopen=yes
15300 else
15301 ac_cv_lib_dl_dlopen=no
15302 fi
15303 rm -f core conftest.err conftest.$ac_objext \
15304 conftest$ac_exeext conftest.$ac_ext
15305 LIBS=$ac_check_lib_save_LIBS
15306 fi
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15309 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15310
15311 MODULE_PLATFORM_LIBS="-ldl"
15312 libxml_have_dlopen=yes
15313 fi
15314
15315 fi
15316
15317 fi
15318
15319 fi
15320
15321
15322 if test "${libxml_have_shl_load}" = "yes"; then
15323 MODULE_EXTENSION=".sl"
15324 WITH_MODULES=1
15325
15326 $as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
15327
15328 fi
15329
15330 if test "${libxml_have_dlopen}" = "yes"; then
15331 case "${host}" in
15332 *-*-hpux* )
15333 MODULE_EXTENSION=".sl"
15334 ;;
15335 * )
15336 MODULE_EXTENSION=".so"
15337 ;;
15338 esac
15339
15340 WITH_MODULES=1
15341
15342 $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
15343
15344 fi
15345 ;;
15346 esac
15347 fi
15348
15349 if test "${WITH_MODULES}" = "1"; then
15350 TEST_MODULES="ModuleTests"
15351 fi
15352
15353
15354
15355
15356
15357
15358
15359 if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
15360 [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
15361 [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
15362 then
15363 if test "$with_minimum" != "yes"
15364 then
15365 if test "${with_mem_debug}" = "" ; then
15366 echo Activating memory debugging
15367 with_mem_debug="yes"
15368 with_run_debug="yes"
15369 fi
15370 if test "${with_docbook}" = "" ; then
15371 with_docbook="yes"
15372 fi
15373 fi
15374 if test "${GCC}" = "yes" ; then
15375 CFLAGS="-g -O -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswit ch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparenthese s -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstr ict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall"
15376 fi
15377 STATIC_BINARIES="-static"
15378 else
15379 STATIC_BINARIES=
15380 fi
15381
15382
15383
15384 if test "${NEED_TRIO}" = "1" ; then
15385 echo Adding trio library for string functions
15386 WITH_TRIO=1
15387 else
15388 WITH_TRIO=0
15389 fi
15390 if test "${NEED_TRIO}" = "1"; then
15391 WITH_TRIO_SOURCES_TRUE=
15392 WITH_TRIO_SOURCES_FALSE='#'
15393 else
15394 WITH_TRIO_SOURCES_TRUE='#'
15395 WITH_TRIO_SOURCES_FALSE=
15396 fi
15397
15398
15399
15400 echo Checking configuration requirements
15401
15402 THREAD_LIBS=""
15403 BASE_THREAD_LIBS=""
15404 WITH_THREADS=0
15405 THREAD_CFLAGS=""
15406 TEST_THREADS=""
15407 THREADS_W32=""
15408 WITH_THREAD_ALLOC=0
15409
15410 if test "$with_threads" = "no" ; then
15411 echo Disabling multithreaded support
15412 else
15413 echo Enabling multithreaded support
15414
15415 case $host_os in
15416 *mingw32*) if test "$with_threads" != "pthread" && test "$with_threads" ! = "no"; then
15417 WITH_THREADS="1"
15418 THREADS_W32="1"
15419 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
15420 fi
15421 ;;
15422 esac
15423
15424 if test -z "$THREADS_W32"; then
15425 if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
15426 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pth read_h" "$ac_includes_default"
15427 if test "x$ac_cv_header_pthread_h" = xyes; then :
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthrea d" >&5
15429 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
15430 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
15431 $as_echo_n "(cached) " >&6
15432 else
15433 ac_check_lib_save_LIBS=$LIBS
15434 LIBS="-lpthread $LIBS"
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15437
15438 /* Override any GCC internal prototype to avoid an error.
15439 Use char because int might match the return type of a GCC
15440 builtin and then its argument prototype would still apply. */
15441 #ifdef __cplusplus
15442 extern "C"
15443 #endif
15444 char pthread_join ();
15445 int
15446 main ()
15447 {
15448 return pthread_join ();
15449 ;
15450 return 0;
15451 }
15452 _ACEOF
15453 if ac_fn_c_try_link "$LINENO"; then :
15454 ac_cv_lib_pthread_pthread_join=yes
15455 else
15456 ac_cv_lib_pthread_pthread_join=no
15457 fi
15458 rm -f core conftest.err conftest.$ac_objext \
15459 conftest$ac_exeext conftest.$ac_ext
15460 LIBS=$ac_check_lib_save_LIBS
15461 fi
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join " >&5
15463 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
15464 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
15465
15466 THREAD_LIBS="-lpthread"
15467
15468 $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
15469
15470
15471 $as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
15472
15473 WITH_THREADS="1"
15474 fi
15475
15476 fi
15477
15478
15479 fi
15480 fi
15481
15482 case $host_os in
15483 *cygwin*) THREAD_LIBS=""
15484 ;;
15485 *beos*) WITH_THREADS="1"
15486 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
15487 ;;
15488 *linux*)
15489 if test "${GCC}" = "yes" ; then
15490 GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
15491 GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
15492 GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\.. *++'`
15493 if test "${THREAD_LIBS}" = "-lpthread" ; then
15494 if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
15495 then
15496 THREAD_LIBS=""
15497 BASE_THREAD_LIBS="-lpthread"
15498 else
15499 if expr ${GCC_MAJOR} \> 3 > /dev/null
15500 then
15501 THREAD_LIBS=""
15502 BASE_THREAD_LIBS="-lpthread"
15503 else
15504 echo old GCC disabling weak symbols for pthread
15505 fi
15506 fi
15507 fi
15508 fi
15509 ;;
15510 esac
15511 if test "$WITH_THREADS" = "1" ; then
15512 THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
15513 TEST_THREADS="Threadtests"
15514 fi
15515 fi
15516 if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
15517 WITH_THREAD_ALLOC=1
15518 fi
15519
15520
15521
15522
15523
15524
15525
15526 if test -n "$THREADS_W32"; then
15527 THREADS_W32_TRUE=
15528 THREADS_W32_FALSE='#'
15529 else
15530 THREADS_W32_TRUE='#'
15531 THREADS_W32_FALSE=
15532 fi
15533
15534
15535 if test "$with_history" = "yes" ; then
15536 echo Enabling xmllint shell history
15537 unset tcap
15538 for termlib in ncurses curses termcap terminfo termlib; do
15539 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
15541 $as_echo_n "checking for tputs in -l${termlib}... " >&6; }
15542 if eval \${$as_ac_Lib+:} false; then :
15543 $as_echo_n "(cached) " >&6
15544 else
15545 ac_check_lib_save_LIBS=$LIBS
15546 LIBS="-l${termlib} $LIBS"
15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h. */
15549
10867 /* Override any GCC internal prototype to avoid an error. 15550 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC 15551 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */ 15552 builtin and then its argument prototype would still apply. */
10870 #ifdef __cplusplus 15553 #ifdef __cplusplus
10871 extern "C" 15554 extern "C"
10872 #endif 15555 #endif
10873 char readline (); 15556 char tputs ();
10874 int 15557 int
10875 main () 15558 main ()
10876 { 15559 {
10877 return readline (); 15560 return tputs ();
10878 ; 15561 ;
10879 return 0; 15562 return 0;
10880 } 15563 }
10881 _ACEOF 15564 _ACEOF
10882 for ac_lib in '' edit; do 15565 if ac_fn_c_try_link "$LINENO"; then :
10883 if test -z "$ac_lib"; then 15566 eval "$as_ac_Lib=yes"
10884 ac_res="none required" 15567 else
10885 else 15568 eval "$as_ac_Lib=no"
10886 ac_res=-l$ac_lib
10887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10888 fi
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 ac_cv_search_readline=$ac_res
10891 fi 15569 fi
10892 rm -f core conftest.err conftest.$ac_objext \ 15570 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext 15571 conftest$ac_exeext conftest.$ac_ext
10894 if ${ac_cv_search_readline+:} false; then : 15572 LIBS=$ac_check_lib_save_LIBS
10895 break
10896 fi 15573 fi
10897 done 15574 eval ac_res=\$$as_ac_Lib
10898 if ${ac_cv_search_readline+:} false; then : 15575 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10899 15576 $as_echo "$ac_res" >&6; }
10900 else 15577 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
10901 ac_cv_search_readline=no 15578 tcap="-l$termlib"
10902 fi
10903 rm conftest.$ac_ext
10904 LIBS=$ac_func_search_save_LIBS
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10907 $as_echo "$ac_cv_search_readline" >&6; }
10908 ac_res=$ac_cv_search_readline
10909 if test "$ac_res" != no; then :
10910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10911 with_readline=no
10912 else
10913 TARGET_HAVE_EDITLINE=0
10914 fi 15579 fi
10915 15580
10916 TARGET_READLINE_LIBS=$LIBS 15581 » test -n "$tcap" && break
10917 LIBS=$sLIBS 15582 done
10918 fi
10919 if test x"$with_readline" != xno; then
10920 » found="yes"
10921 15583
10922 15584 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_re adline_history_h" "$ac_includes_default"
10923 # Check whether --with-readline-lib was given. 15585 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10924 if test "${with_readline_lib+set}" = set; then : 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhist ory" >&5
10925 withval=$with_readline_lib; with_readline_lib=$withval 15587 $as_echo_n "checking for append_history in -lhistory... " >&6; }
10926 else 15588 if ${ac_cv_lib_history_append_history+:} false; then :
10927 with_readline_lib="auto"
10928 fi
10929
10930 » if test "x$with_readline_lib" = xauto; then
10931 » » save_LIBS="$LIBS"
10932 » » LIBS=""
10933 » » { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library co ntaining tgetent" >&5
10934 $as_echo_n "checking for library containing tgetent... " >&6; }
10935 if ${ac_cv_search_tgetent+:} false; then :
10936 $as_echo_n "(cached) " >&6 15589 $as_echo_n "(cached) " >&6
10937 else 15590 else
10938 ac_func_search_save_LIBS=$LIBS 15591 ac_check_lib_save_LIBS=$LIBS
15592 LIBS="-lhistory $LIBS"
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */ 15594 /* end confdefs.h. */
10941 15595
10942 /* Override any GCC internal prototype to avoid an error. 15596 /* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC 15597 Use char because int might match the return type of a GCC
10944 builtin and then its argument prototype would still apply. */ 15598 builtin and then its argument prototype would still apply. */
10945 #ifdef __cplusplus 15599 #ifdef __cplusplus
10946 extern "C" 15600 extern "C"
10947 #endif 15601 #endif
10948 char tgetent (); 15602 char append_history ();
10949 int 15603 int
10950 main () 15604 main ()
10951 { 15605 {
10952 return tgetent (); 15606 return append_history ();
10953 ; 15607 ;
10954 return 0; 15608 return 0;
10955 } 15609 }
10956 _ACEOF 15610 _ACEOF
10957 for ac_lib in '' readline ncurses curses termcap; do 15611 if ac_fn_c_try_link "$LINENO"; then :
10958 if test -z "$ac_lib"; then 15612 ac_cv_lib_history_append_history=yes
10959 ac_res="none required" 15613 else
10960 else 15614 ac_cv_lib_history_append_history=no
10961 ac_res=-l$ac_lib
10962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10963 fi
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 ac_cv_search_tgetent=$ac_res
10966 fi 15615 fi
10967 rm -f core conftest.err conftest.$ac_objext \ 15616 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext 15617 conftest$ac_exeext conftest.$ac_ext
10969 if ${ac_cv_search_tgetent+:} false; then : 15618 LIBS=$ac_check_lib_save_LIBS
10970 break
10971 fi 15619 fi
10972 done 15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_histo ry" >&5
10973 if ${ac_cv_search_tgetent+:} false; then : 15621 $as_echo "$ac_cv_lib_history_append_history" >&6; }
15622 if test "x$ac_cv_lib_history_append_history" = xyes; then :
10974 15623
10975 else 15624 » RDL_LIBS="-lhistory"
10976 ac_cv_search_tgetent=no 15625
10977 fi 15626 $as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
10978 rm conftest.$ac_ext 15627
10979 LIBS=$ac_func_search_save_LIBS
10980 fi
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
10982 $as_echo "$ac_cv_search_tgetent" >&6; }
10983 ac_res=$ac_cv_search_tgetent
10984 if test "$ac_res" != no; then :
10985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10986 term_LIBS="$LIBS"
10987 else
10988 term_LIBS=""
10989 fi 15628 fi
10990 15629
10991 » » { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline i n -lreadline" >&5 15630 fi
15631
15632
15633 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_r eadline_readline_h" "$ac_includes_default"
15634 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
10992 $as_echo_n "checking for readline in -lreadline... " >&6; } 15636 $as_echo_n "checking for readline in -lreadline... " >&6; }
10993 if ${ac_cv_lib_readline_readline+:} false; then : 15637 if ${ac_cv_lib_readline_readline+:} false; then :
10994 $as_echo_n "(cached) " >&6 15638 $as_echo_n "(cached) " >&6
10995 else 15639 else
10996 ac_check_lib_save_LIBS=$LIBS 15640 ac_check_lib_save_LIBS=$LIBS
10997 LIBS="-lreadline $LIBS" 15641 LIBS="-lreadline $tcap $LIBS"
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */ 15643 /* end confdefs.h. */
11000 15644
11001 /* Override any GCC internal prototype to avoid an error. 15645 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC 15646 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */ 15647 builtin and then its argument prototype would still apply. */
11004 #ifdef __cplusplus 15648 #ifdef __cplusplus
11005 extern "C" 15649 extern "C"
11006 #endif 15650 #endif
11007 char readline (); 15651 char readline ();
(...skipping 10 matching lines...) Expand all
11018 else 15662 else
11019 ac_cv_lib_readline_readline=no 15663 ac_cv_lib_readline_readline=no
11020 fi 15664 fi
11021 rm -f core conftest.err conftest.$ac_objext \ 15665 rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext 15666 conftest$ac_exeext conftest.$ac_ext
11023 LIBS=$ac_check_lib_save_LIBS 15667 LIBS=$ac_check_lib_save_LIBS
11024 fi 15668 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" > &5 15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" > &5
11026 $as_echo "$ac_cv_lib_readline_readline" >&6; } 15670 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11027 if test "x$ac_cv_lib_readline_readline" = xyes; then : 15671 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11028 TARGET_READLINE_LIBS="-lreadline" 15672
11029 else 15673 » RDL_LIBS="-lreadline $RDL_LIBS $tcap"
11030 found="no" 15674
11031 fi 15675 $as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
11032 15676
11033 » » TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS" 15677 fi
11034 » » LIBS="$save_LIBS" 15678
11035 » else 15679 fi
11036 » » TARGET_READLINE_LIBS="$with_readline_lib" 15680
11037 » fi 15681
11038 15682 if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
11039 15683 » CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
11040 # Check whether --with-readline-inc was given. 15684 » RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
11041 if test "${with_readline_inc+set}" = set; then : 15685 fi
11042 withval=$with_readline_inc; with_readline_inc=$withval 15686 fi
11043 else 15687
11044 with_readline_inc="auto" 15688 if test "$with_tree" = "no" ; then
11045 fi 15689 echo Disabling DOM like tree manipulation APIs
11046 15690 WITH_TREE=0
11047 » if test "x$with_readline_inc" = xauto; then 15691 else
11048 » » ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_heade r_readline_h" "$ac_includes_default" 15692 WITH_TREE=1
11049 if test "x$ac_cv_header_readline_h" = xyes; then : 15693 fi
11050 found="yes" 15694
11051 else 15695
11052 15696 if test "$with_ftp" = "no" ; then
11053 » » » found="no" 15697 echo Disabling FTP support
11054 » » » if test "$cross_compiling" != yes; then 15698 WITH_FTP=0
11055 » » » » for dir in /usr /usr/local /usr/local/readline / usr/contrib /mingw; do 15699 FTP_OBJ=
11056 » » » » » for subdir in include include/readline; do 15700 else
11057 » » » » » » as_ac_File=`$as_echo "ac_cv_file _$dir/$subdir/readline.h" | $as_tr_sh` 15701 WITH_FTP=1
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" > &5 15702 FTP_OBJ=nanoftp.o
11059 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; } 15703 fi
11060 if eval \${$as_ac_File+:} false; then : 15704
11061 $as_echo_n "(cached) " >&6 15705
11062 else 15706
11063 test "$cross_compiling" = yes && 15707 if test "$with_http" = "no" ; then
11064 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO " 5 15708 echo Disabling HTTP support
11065 if test -r "$dir/$subdir/readline.h"; then 15709 WITH_HTTP=0
11066 eval "$as_ac_File=yes" 15710 HTTP_OBJ=
11067 else 15711 else
11068 eval "$as_ac_File=no" 15712 WITH_HTTP=1
11069 fi 15713 HTTP_OBJ=nanohttp.o
11070 fi 15714 fi
11071 eval ac_res=\$$as_ac_File 15715
11072 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15716
11073 $as_echo "$ac_res" >&6; } 15717
11074 if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 15718 if test "$with_legacy" = "no" ; then
11075 found=yes 15719 echo Disabling deprecated APIs
11076 fi 15720 WITH_LEGACY=0
11077 15721 else
11078 » » » » » » if test "$found" = "yes"; then 15722 WITH_LEGACY=1
11079 » » » » » » » TARGET_READLINE_INC="-I$ dir/$subdir" 15723 fi
11080 » » » » » » » break 15724
11081 » » » » » » fi 15725
11082 » » » » » done 15726 if test "$with_reader" = "no" ; then
11083 » » » » » test "$found" = "yes" && break 15727 echo Disabling the xmlReader parsing interface
11084 » » » » done 15728 WITH_READER=0
11085 » » » fi 15729 READER_TEST=
11086 15730 else
11087 fi 15731 WITH_READER=1
11088 15732 READER_TEST=Readertests
11089 15733 if test "$with_push" = "no" ; then
11090 » else 15734 echo xmlReader requires Push interface - enabling it
11091 » » TARGET_READLINE_INC="$with_readline_inc" 15735 » with_push=yes
11092 » fi 15736 fi
11093 15737 fi
11094 » if test x"$found" = xno; then 15738
11095 » » TARGET_READLINE_LIBS="" 15739
11096 » » TARGET_READLINE_INC="" 15740
11097 » » TARGET_HAVE_READLINE=0 15741 if test "$with_writer" = "no" ; then
11098 » else 15742 echo Disabling the xmlWriter saving interface
11099 » » TARGET_HAVE_READLINE=1 15743 WITH_WRITER=0
11100 » fi 15744 # WRITER_TEST=
11101 fi 15745 else
11102 15746 WITH_WRITER=1
11103 15747 # WRITER_TEST=Writertests
11104 15748 if test "$with_push" = "no" ; then
11105 15749 echo xmlWriter requires Push interface - enabling it
11106 15750 » with_push=yes
11107 15751 fi
11108 ########## 15752 if test "$with_output" = "no" ; then
11109 # Figure out what C libraries are required to compile programs 15753 echo xmlWriter requires Output interface - enabling it
11110 # that use "fdatasync()" function. 15754 » with_output=yes
11111 # 15755 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasy nc" >&5 15756 fi
11113 $as_echo_n "checking for library containing fdatasync... " >&6; } 15757
11114 if ${ac_cv_search_fdatasync+:} false; then : 15758 #AC_SUBST(WRITER_TEST)
11115 $as_echo_n "(cached) " >&6 15759
11116 else 15760 if test "$with_pattern" = "no" ; then
11117 ac_func_search_save_LIBS=$LIBS 15761 echo Disabling the xmlPattern parsing interface
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15762 WITH_PATTERN=0
15763 TEST_PATTERN=
15764 else
15765 WITH_PATTERN=1
15766 TEST_PATTERN=Patterntests
15767 fi
15768
15769
15770
15771 if test "$with_sax1" = "no" ; then
15772 echo Disabling the older SAX1 interface
15773 WITH_SAX1=0
15774 TEST_SAX=
15775 else
15776 WITH_SAX1=1
15777 TEST_SAX=SAXtests
15778 fi
15779
15780 if test "${WITH_TRIO}" = "1"; then
15781 WITH_SAX1_SOURCES_TRUE=
15782 WITH_SAX1_SOURCES_FALSE='#'
15783 else
15784 WITH_SAX1_SOURCES_TRUE='#'
15785 WITH_SAX1_SOURCES_FALSE=
15786 fi
15787
15788
15789
15790 if test "$with_push" = "no" ; then
15791 echo Disabling the PUSH parser interfaces
15792 WITH_PUSH=0
15793 TEST_PUSH=
15794 else
15795 WITH_PUSH=1
15796 TEST_PUSH="XMLPushtests"
15797 fi
15798
15799
15800
15801 if test "$with_html" = "no" ; then
15802 echo Disabling HTML support
15803 WITH_HTML=0
15804 HTML_OBJ=
15805 TEST_HTML=
15806 else
15807 WITH_HTML=1
15808 HTML_OBJ="HTMLparser.o HTMLtree.o"
15809 TEST_HTML=HTMLtests
15810 if test "$with_push" != "no" ; then
15811 TEST_PHTML=HTMLPushtests
15812 else
15813 TEST_PHTML=
15814 fi
15815 fi
15816
15817
15818
15819
15820
15821 if test "$with_valid" = "no" ; then
15822 echo Disabling DTD validation support
15823 WITH_VALID=0
15824 TEST_VALID=
15825 TEST_VTIME=
15826 else
15827 WITH_VALID=1
15828 TEST_VALID=Validtests
15829 TEST_VTIME=VTimingtests
15830 fi
15831
15832
15833
15834
15835 if test "$with_catalog" = "no" ; then
15836 echo Disabling Catalog support
15837 WITH_CATALOG=0
15838 CATALOG_OBJ=
15839 TEST_CATALOG=
15840 else
15841 WITH_CATALOG=1
15842 CATALOG_OBJ="catalog.o"
15843 TEST_CATALOG=Catatests
15844 fi
15845
15846
15847
15848
15849 if test "$with_docbook" = "no" ; then
15850 echo Disabling Docbook support
15851 WITH_DOCB=0
15852 DOCB_OBJ=
15853 else
15854 WITH_DOCB=1
15855 DOCB_OBJ="DOCBparser.o"
15856 fi
15857
15858
15859
15860
15861 if test "$with_xptr" = "no" ; then
15862 echo Disabling XPointer support
15863 WITH_XPTR=0
15864 XPTR_OBJ=
15865 TEST_XPTR=
15866 else
15867 WITH_XPTR=1
15868 XPTR_OBJ=xpointer.o
15869 TEST_XPTR=XPtrtests
15870 if test "$with_xpath" = "no" ; then
15871 echo XPointer requires XPath support - enabling it
15872 » with_xpath=yes
15873 fi
15874 fi
15875
15876
15877
15878
15879 if test "$with_c14n" = "no" ; then
15880 echo Disabling C14N support
15881 WITH_C14N=0
15882 C14N_OBJ=
15883 TEST_C14N=
15884 else
15885 WITH_C14N=1
15886 C14N_OBJ="c14n.c"
15887 TEST_C14N=C14Ntests
15888 if test "$with_xpath" = "no" ; then
15889 echo C14N requires XPath support - enabling it
15890 » with_xpath=yes
15891 fi
15892 fi
15893
15894
15895
15896
15897 if test "$with_xinclude" = "no" ; then
15898 echo Disabling XInclude support
15899 WITH_XINCLUDE=0
15900 XINCLUDE_OBJ=
15901 with_xinclude="no"
15902 TEST_XINCLUDE=
15903 else
15904 WITH_XINCLUDE=1
15905 XINCLUDE_OBJ=xinclude.o
15906 TEST_XINCLUDE=XIncludetests
15907 if test "$with_xpath" = "no" ; then
15908 echo XInclude requires XPath support - enabling it
15909 » with_xpath=yes
15910 fi
15911 fi
15912
15913
15914
15915
15916 if test "$with_xptr" = "" -a "$with_xpath" = "no" ; then
15917 with_xptr=no
15918 fi
15919
15920 if test "$with_schematron" = "" -a "$with_xpath" = "no" ; then
15921 with_schematron=no
15922 fi
15923
15924 if test "$with_schematron" = "no" ; then
15925 echo "Disabling Schematron support"
15926 WITH_SCHEMATRON=0
15927 TEST_SCHEMATRON=
15928 else
15929 echo "Enabled Schematron support"
15930 WITH_SCHEMATRON=1
15931 TEST_SCHEMATRON="Schematrontests"
15932 with_xpath=yes
15933 with_pattern=yes
15934 with_schematron=yes
15935 fi
15936
15937
15938
15939 if test "$with_xpath" = "no" ; then
15940 echo Disabling XPATH support
15941 WITH_XPATH=0
15942 XPATH_OBJ=
15943 TEST_XPATH=
15944 else
15945 WITH_XPATH=1
15946 XPATH_OBJ=xpath.o
15947 TEST_XPATH=XPathtests
15948 fi
15949
15950
15951
15952
15953 if test "$with_output" = "no" ; then
15954 echo Disabling serialization/saving support
15955 WITH_OUTPUT=0
15956 else
15957 WITH_OUTPUT=1
15958 fi
15959
15960
15961 WITH_ICONV=0
15962 if test "$with_iconv" = "no" ; then
15963 echo Disabling ICONV support
15964 else
15965 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
15966 » CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
15967 » # Export this since our headers include iconv.h
15968 » XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
15969 » ICONV_LIBS="-L$with_iconv/lib"
15970 fi
15971
15972 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac _includes_default"
15973 if test "x$ac_cv_header_iconv_h" = xyes; then :
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15975 $as_echo_n "checking for iconv... " >&6; }
15976 » cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */ 15977 /* end confdefs.h. */
11120 15978 #include <stdlib.h>
11121 /* Override any GCC internal prototype to avoid an error. 15979 #include <iconv.h>
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char fdatasync ();
11128 int 15980 int
11129 main () 15981 main ()
11130 { 15982 {
11131 return fdatasync (); 15983
15984 iconv_t cd = iconv_open ("","");
15985 iconv (cd, NULL, NULL, NULL, NULL);
11132 ; 15986 ;
11133 return 0; 15987 return 0;
11134 } 15988 }
11135 _ACEOF 15989 _ACEOF
11136 for ac_lib in '' rt; do 15990 if ac_fn_c_try_link "$LINENO"; then :
11137 if test -z "$ac_lib"; then 15991
11138 ac_res="none required" 15992 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11139 else 15993 $as_echo "yes" >&6; }
11140 ac_res=-l$ac_lib 15994 » WITH_ICONV=1
11141 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15995 else
11142 fi 15996
11143 if ac_fn_c_try_link "$LINENO"; then : 15997 » { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 ac_cv_search_fdatasync=$ac_res 15998 $as_echo "no" >&6; }
11145 fi 15999 » { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -lico nv" >&5
11146 rm -f core conftest.err conftest.$ac_objext \ 16000 $as_echo_n "checking for iconv in -liconv... " >&6; }
11147 conftest$ac_exeext 16001
11148 if ${ac_cv_search_fdatasync+:} false; then : 16002 » _ldflags="${LDFLAGS}"
11149 break 16003 » _libs="${LIBS}"
11150 fi 16004 » LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
11151 done 16005 » LIBS="${LIBS} -liconv"
11152 if ${ac_cv_search_fdatasync+:} false; then : 16006
11153 16007 » cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 else
11155 ac_cv_search_fdatasync=no
11156 fi
11157 rm conftest.$ac_ext
11158 LIBS=$ac_func_search_save_LIBS
11159 fi
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11161 $as_echo "$ac_cv_search_fdatasync" >&6; }
11162 ac_res=$ac_cv_search_fdatasync
11163 if test "$ac_res" != no; then :
11164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11165
11166 fi
11167
11168
11169 #########
11170 # check for debug enabled
11171 # Check whether --enable-debug was given.
11172 if test "${enable_debug+set}" = set; then :
11173 enableval=$enable_debug; use_debug=$enableval
11174 else
11175 use_debug=no
11176 fi
11177
11178 if test "${use_debug}" = "yes" ; then
11179 TARGET_DEBUG="-DSQLITE_DEBUG=1"
11180 else
11181 TARGET_DEBUG="-DNDEBUG"
11182 fi
11183
11184
11185 #########
11186 # See whether we should use the amalgamation to build
11187 # Check whether --enable-amalgamation was given.
11188 if test "${enable_amalgamation+set}" = set; then :
11189 enableval=$enable_amalgamation; use_amalgamation=$enableval
11190 else
11191 use_amalgamation=yes
11192 fi
11193
11194 if test "${use_amalgamation}" != "yes" ; then
11195 USE_AMALGAMATION=0
11196 fi
11197
11198
11199 #########
11200 # See whether we should allow loadable extensions
11201 # Check whether --enable-load-extension was given.
11202 if test "${enable_load_extension+set}" = set; then :
11203 enableval=$enable_load_extension; use_loadextension=$enableval
11204 else
11205 use_loadextension=yes
11206 fi
11207
11208 if test "${use_loadextension}" = "yes" ; then
11209 OPT_FEATURE_FLAGS=""
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlope n" >&5
11211 $as_echo_n "checking for library containing dlopen... " >&6; }
11212 if ${ac_cv_search_dlopen+:} false; then :
11213 $as_echo_n "(cached) " >&6
11214 else
11215 ac_func_search_save_LIBS=$LIBS
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */ 16008 /* end confdefs.h. */
11218 16009 #include <stdlib.h>
11219 /* Override any GCC internal prototype to avoid an error. 16010 #include <iconv.h>
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11222 #ifdef __cplusplus
11223 extern "C"
11224 #endif
11225 char dlopen ();
11226 int 16011 int
11227 main () 16012 main ()
11228 { 16013 {
11229 return dlopen (); 16014
16015 iconv_t cd = iconv_open ("","");
16016 iconv (cd, NULL, NULL, NULL, NULL);
11230 ; 16017 ;
11231 return 0; 16018 return 0;
11232 } 16019 }
11233 _ACEOF 16020 _ACEOF
11234 for ac_lib in '' dl; do 16021 if ac_fn_c_try_link "$LINENO"; then :
11235 if test -z "$ac_lib"; then 16022
11236 ac_res="none required" 16023 » » { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11237 else 16024 $as_echo "yes" >&6; }
11238 ac_res=-l$ac_lib 16025 » » WITH_ICONV=1
11239 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16026 » » ICONV_LIBS="${ICONV_LIBS} -liconv"
11240 fi 16027 » » LIBS="${_libs}"
11241 if ac_fn_c_try_link "$LINENO"; then : 16028 » » LDFLAGS="${_ldflags}"
11242 ac_cv_search_dlopen=$ac_res 16029 else
16030
16031 » » { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16032 $as_echo "no" >&6; }
16033 » » LIBS="${_libs}"
16034 » » LDFLAGS="${_ldflags}"
11243 fi 16035 fi
11244 rm -f core conftest.err conftest.$ac_objext \ 16036 rm -f core conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext 16037 conftest$ac_exeext conftest.$ac_ext
11246 if ${ac_cv_search_dlopen+:} false; then : 16038 fi
11247 break 16039 rm -f core conftest.err conftest.$ac_objext \
11248 fi 16040 conftest$ac_exeext conftest.$ac_ext
11249 done 16041 fi
11250 if ${ac_cv_search_dlopen+:} false; then : 16042
11251 16043
11252 else 16044
11253 ac_cv_search_dlopen=no 16045 » if test "$WITH_ICONV" = "1" ; then
11254 fi 16046 » » { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv decl aration" >&5
11255 rm conftest.$ac_ext 16047 $as_echo_n "checking for iconv declaration... " >&6; }
11256 LIBS=$ac_func_search_save_LIBS 16048 » » if ${xml_cv_iconv_arg2+:} false; then :
11257 fi
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11259 $as_echo "$ac_cv_search_dlopen" >&6; }
11260 ac_res=$ac_cv_search_dlopen
11261 if test "$ac_res" != no; then :
11262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11263
11264 fi
11265
11266 else
11267 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11268 fi
11269
11270 #########
11271 # See whether we should enable Full Text Search extensions
11272 # Check whether --enable-fts3 was given.
11273 if test "${enable_fts3+set}" = set; then :
11274 enableval=$enable_fts3; enable_fts3=yes
11275 else
11276 enable_fts3=no
11277 fi
11278
11279 if test "${enable_fts3}" = "yes" ; then
11280 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
11281 fi
11282 # Check whether --enable-fts4 was given.
11283 if test "${enable_fts4+set}" = set; then :
11284 enableval=$enable_fts4; enable_fts4=yes
11285 else
11286 enable_fts4=no
11287 fi
11288
11289 if test "${enable_fts4}" = "yes" ; then
11290 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11292 $as_echo_n "checking for library containing log... " >&6; }
11293 if ${ac_cv_search_log+:} false; then :
11294 $as_echo_n "(cached) " >&6 16049 $as_echo_n "(cached) " >&6
11295 else 16050 else
11296 ac_func_search_save_LIBS=$LIBS 16051
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16052 » » » cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */ 16053 /* end confdefs.h. */
11299 16054 #include <stdlib.h>
11300 /* Override any GCC internal prototype to avoid an error. 16055 #include <iconv.h>
11301 Use char because int might match the return type of a GCC 16056 extern
11302 builtin and then its argument prototype would still apply. */
11303 #ifdef __cplusplus 16057 #ifdef __cplusplus
11304 extern "C" 16058 "C"
11305 #endif 16059 #endif
11306 char log (); 16060 #if defined(__STDC__) || defined(__cplusplus)
16061 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si ze_t *outbytesleft);
16062 #else
16063 size_t iconv();
16064 #endif
16065
11307 int 16066 int
11308 main () 16067 main ()
11309 { 16068 {
11310 return log (); 16069
11311 ; 16070 ;
11312 return 0; 16071 return 0;
11313 } 16072 }
11314 _ACEOF 16073 _ACEOF
11315 for ac_lib in '' m; do 16074 if ac_fn_c_try_compile "$LINENO"; then :
11316 if test -z "$ac_lib"; then 16075 xml_cv_iconv_arg2=""
11317 ac_res="none required" 16076 else
11318 else 16077 xml_cv_iconv_arg2="const"
11319 ac_res=-l$ac_lib 16078 fi
11320 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 fi 16080 fi
11322 if ac_fn_c_try_link "$LINENO"; then : 16081
11323 ac_cv_search_log=$ac_res 16082
11324 fi 16083 » » xml_cv_iconv_decl="extern size_t iconv (iconv_t cd, $xml_cv_icon v_arg2 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft) ;"
11325 rm -f core conftest.err conftest.$ac_objext \ 16084 » » { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
11326 conftest$ac_exeext 16085 » }$xml_cv_iconv_decl" >&5
11327 if ${ac_cv_search_log+:} false; then : 16086 $as_echo "${xml_xxx:-
11328 break 16087 » }$xml_cv_iconv_decl" >&6; }
16088
16089 cat >>confdefs.h <<_ACEOF
16090 #define ICONV_CONST $xml_cv_iconv_arg2
16091 _ACEOF
16092
16093 » fi
16094 fi
16095 case "$host" in
16096 » *mingw*) M_LIBS=""
16097 » ;;
16098 » *beos*) M_LIBS=""
16099 » ;;
16100 *haiku*) M_LIBS=""
16101 ;;
16102 » *) M_LIBS="-lm"
16103 » ;;
16104 esac
16105 XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
16106 XML_LIBTOOLLIBS="libxml2.la"
16107
16108
16109 WITH_ICU=0
16110 ICU_LIBS=""
16111 if test "$with_icu" != "yes" ; then
16112 echo Disabling ICU support
16113 else
16114 ICU_CONFIG=icu-config
16115 if ${ICU_CONFIG} --cflags >/dev/null 2>&1
16116 then
16117 ICU_LIBS=`${ICU_CONFIG} --ldflags`
16118 WITH_ICU=1
16119 echo Enabling ICU support
16120 else
16121 as_fn_error $? "libicu config program icu-config not found" "$LINENO" 5
16122 fi
16123 fi
16124
16125
16126
16127 WITH_ISO8859X=1
16128 if test "$WITH_ICONV" != "1" ; then
16129 if test "$with_iso8859x" = "no" ; then
16130 echo Disabling ISO8859X support
16131 WITH_ISO8859X=0
16132 fi
16133 fi
16134
16135
16136 if test "$with_schemas" = "no" ; then
16137 echo "Disabling Schemas/Relax-NG support"
16138 WITH_SCHEMAS=0
16139 TEST_SCHEMAS=
16140 else
16141 echo "Enabled Schemas/Relax-NG support"
16142 WITH_SCHEMAS=1
16143 TEST_SCHEMAS="Schemastests Relaxtests"
16144 if test "$PYTHON_INCLUDES" != "" ; then
16145 PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
16146 fi
16147 with_regexps=yes
16148 fi
16149
16150
16151
16152 if test "$with_regexps" = "no" ; then
16153 echo Disabling Regexps support
16154 WITH_REGEXPS=0
16155 TEST_REGEXPS=
16156 else
16157 WITH_REGEXPS=1
16158 TEST_REGEXPS="Regexptests Automatatests"
16159 fi
16160
16161
16162
16163 if test "$with_debug" = "no" ; then
16164 echo Disabling DEBUG support
16165 WITH_DEBUG=0
16166 DEBUG_OBJ=
16167 TEST_DEBUG=
16168 else
16169 WITH_DEBUG=1
16170 DEBUG_OBJ=debugXML.o
16171 TEST_DEBUG=Scripttests
16172 fi
16173
16174
16175
16176
16177 if test "$with_mem_debug" = "yes" ; then
16178 if test "$with_thread_alloc" = "yes" ; then
16179 echo Disabling memory debug - cannot use mem-debug with thread-alloc!
16180 » WITH_MEM_DEBUG=0
16181 else
16182 echo Enabling memory debug support
16183 WITH_MEM_DEBUG=1
16184 fi
16185 else
16186 WITH_MEM_DEBUG=0
16187 fi
16188
16189
16190 if test "$with_run_debug" = "yes" ; then
16191 echo Enabling runtime debug support
16192 WITH_RUN_DEBUG=1
16193 else
16194 WITH_RUN_DEBUG=0
16195 fi
16196
16197
16198 WIN32_EXTRA_LIBADD=
16199 WIN32_EXTRA_LDFLAGS=
16200 CYGWIN_EXTRA_LDFLAGS=
16201 CYGWIN_EXTRA_PYTHON_LIBADD=
16202 WIN32_EXTRA_PYTHON_LIBADD=
16203 case "$host" in
16204 *-*-mingw*)
16205 CPPFLAGS="$CPPFLAGS -DWIN32"
16206 WIN32_EXTRA_LIBADD="-lws2_32"
16207 WIN32_EXTRA_LDFLAGS="-no-undefined"
16208
16209 $as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
16210
16211 if test "${PYTHON}" != ""
16212 then
16213 WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_ VERSION} | tr -d .)"
16214 fi
16215 ;;
16216 *-*-cygwin*)
16217 CYGWIN_EXTRA_LDFLAGS="-no-undefined"
16218 if test "${PYTHON}" != ""
16219 then
16220 CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpytho n${PYTHON_VERSION}"
16221 fi
16222 ;;
16223 esac
16224
16225
16226
16227
16228
16229
16230 for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscan f
16231 do :
16232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16235 cat >>confdefs.h <<_ACEOF
16236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16237 _ACEOF
16238
16239 else
16240 NEED_TRIO=1
11329 fi 16241 fi
11330 done 16242 done
11331 if ${ac_cv_search_log+:} false; then : 16243
11332 16244
11333 else 16245 if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
11334 ac_cv_search_log=no 16246 then
11335 fi 16247 echo Enabling code coverage for GCC
11336 rm conftest.$ac_ext 16248 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
11337 LIBS=$ac_func_search_save_LIBS 16249 LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
11338 fi 16250 else
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 16251 echo Disabling code coverage for GCC
11340 $as_echo "$ac_cv_search_log" >&6; } 16252 fi
11341 ac_res=$ac_cv_search_log 16253
11342 if test "$ac_res" != no; then : 16254
11343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16255
11344 16256
11345 fi 16257
11346 16258
11347 fi 16259
11348 # Check whether --enable-fts5 was given. 16260
11349 if test "${enable_fts5+set}" = set; then : 16261
11350 enableval=$enable_fts5; enable_fts5=yes 16262
11351 else 16263
11352 enable_fts5=no 16264
11353 fi 16265
11354 16266
11355 if test "${enable_fts5}" = "yes" ; then 16267
11356 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5" 16268
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 16269
11358 $as_echo_n "checking for library containing log... " >&6; } 16270
11359 if ${ac_cv_search_log+:} false; then : 16271
11360 $as_echo_n "(cached) " >&6 16272
11361 else 16273
11362 ac_func_search_save_LIBS=$LIBS 16274
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16275 RELDATE=`date +'%a %b %e %Y'`
11364 /* end confdefs.h. */ 16276
11365 16277
11366 /* Override any GCC internal prototype to avoid an error. 16278
11367 Use char because int might match the return type of a GCC 16279 rm -f COPYING.LIB COPYING
11368 builtin and then its argument prototype would still apply. */ 16280 ln -s $srcdir/Copyright COPYING
11369 #ifdef __cplusplus 16281
11370 extern "C" 16282 # keep on one line for cygwin c.f. #130896
11371 #endif 16283 ac_config_files="$ac_config_files libxml2.spec:libxml.spec.in Makefile include/M akefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/M akefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile inc lude/libxml/xmlversion.h libxml-2.0.pc libxml-2.0-uninstalled.pc libxml2-config. cmake"
11372 char log (); 16284
11373 int 16285 ac_config_files="$ac_config_files python/setup.py"
11374 main () 16286
11375 { 16287 ac_config_files="$ac_config_files xml2-config"
11376 return log ();
11377 ;
11378 return 0;
11379 }
11380 _ACEOF
11381 for ac_lib in '' m; do
11382 if test -z "$ac_lib"; then
11383 ac_res="none required"
11384 else
11385 ac_res=-l$ac_lib
11386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11387 fi
11388 if ac_fn_c_try_link "$LINENO"; then :
11389 ac_cv_search_log=$ac_res
11390 fi
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext
11393 if ${ac_cv_search_log+:} false; then :
11394 break
11395 fi
11396 done
11397 if ${ac_cv_search_log+:} false; then :
11398
11399 else
11400 ac_cv_search_log=no
11401 fi
11402 rm conftest.$ac_ext
11403 LIBS=$ac_func_search_save_LIBS
11404 fi
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11406 $as_echo "$ac_cv_search_log" >&6; }
11407 ac_res=$ac_cv_search_log
11408 if test "$ac_res" != no; then :
11409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11410
11411 fi
11412
11413 fi
11414
11415 #########
11416 # See whether we should enable JSON1
11417 # Check whether --enable-json1 was given.
11418 if test "${enable_json1+set}" = set; then :
11419 enableval=$enable_json1; enable_json1=yes
11420 else
11421 enable_json1=no
11422 fi
11423
11424 if test "${enable_json1}" = "yes" ; then
11425 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
11426 fi
11427
11428 #########
11429 # See whether we should enable RTREE
11430 # Check whether --enable-rtree was given.
11431 if test "${enable_rtree+set}" = set; then :
11432 enableval=$enable_rtree; enable_rtree=yes
11433 else
11434 enable_rtree=no
11435 fi
11436
11437 if test "${enable_rtree}" = "yes" ; then
11438 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
11439 fi
11440
11441 #########
11442 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) param eter
11443 for option in $CFLAGS $CPPFLAGS
11444 do
11445 case $option in
11446 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11447 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11448 esac
11449 done
11450
11451
11452
11453 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11454 ac_temp_CFLAGS=""
11455 for option in $CFLAGS
11456 do
11457 case $option in
11458 -DSQLITE_OMIT*) ;;
11459 -DSQLITE_ENABLE*) ;;
11460 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11461 esac
11462 done
11463 CFLAGS=$ac_temp_CFLAGS
11464
11465
11466 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11467 ac_temp_CPPFLAGS=""
11468 for option in $CPPFLAGS
11469 do
11470 case $option in
11471 -DSQLITE_OMIT*) ;;
11472 -DSQLITE_ENABLE*) ;;
11473 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11474 esac
11475 done
11476 CPPFLAGS=$ac_temp_CPPFLAGS
11477
11478
11479 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11480 ac_temp_BUILD_CFLAGS=""
11481 for option in $BUILD_CFLAGS
11482 do
11483 case $option in
11484 -DSQLITE_OMIT*) ;;
11485 -DSQLITE_ENABLE*) ;;
11486 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11487 esac
11488 done
11489 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11490
11491
11492 #########
11493 # See whether we should use GCOV
11494 # Check whether --enable-gcov was given.
11495 if test "${enable_gcov+set}" = set; then :
11496 enableval=$enable_gcov; use_gcov=$enableval
11497 else
11498 use_gcov=no
11499 fi
11500
11501 if test "${use_gcov}" = "yes" ; then
11502 USE_GCOV=1
11503 else
11504 USE_GCOV=0
11505 fi
11506
11507
11508
11509 #########
11510 # Output the config header
11511 ac_config_headers="$ac_config_headers config.h"
11512
11513
11514 #########
11515 # Generate the output files.
11516 #
11517
11518 ac_config_files="$ac_config_files Makefile sqlite3.pc"
11519 16288
11520 cat >confcache <<\_ACEOF 16289 cat >confcache <<\_ACEOF
11521 # This file is a shell script that caches the results of configure 16290 # This file is a shell script that caches the results of configure
11522 # tests run on this system so they can be shared between configure 16291 # tests run on this system so they can be shared between configure
11523 # scripts and configure runs, see configure's option --config-cache. 16292 # scripts and configure runs, see configure's option --config-cache.
11524 # It is not useful on other systems. If it contains results you don't 16293 # It is not useful on other systems. If it contains results you don't
11525 # want to keep, you may remove or edit it. 16294 # want to keep, you may remove or edit it.
11526 # 16295 #
11527 # config.status only pays attention to the cache file if you give it 16296 # config.status only pays attention to the cache file if you give it
11528 # the --recheck option to rerun configure. 16297 # the --recheck option to rerun configure.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
11619 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16388 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11620 # will be set to the directory where LIBOBJS objects are built. 16389 # will be set to the directory where LIBOBJS objects are built.
11621 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16390 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11622 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16391 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11623 done 16392 done
11624 LIBOBJS=$ac_libobjs 16393 LIBOBJS=$ac_libobjs
11625 16394
11626 LTLIBOBJS=$ac_ltlibobjs 16395 LTLIBOBJS=$ac_ltlibobjs
11627 16396
11628 16397
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16399 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16400 if test -n "$am_sleep_pid"; then
16401 # Hide warnings about reused PIDs.
16402 wait $am_sleep_pid 2>/dev/null
16403 fi
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16405 $as_echo "done" >&6; }
16406 if test -n "$EXEEXT"; then
16407 am__EXEEXT_TRUE=
16408 am__EXEEXT_FALSE='#'
16409 else
16410 am__EXEEXT_TRUE='#'
16411 am__EXEEXT_FALSE=
16412 fi
16413
16414 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16415 as_fn_error $? "conditional \"AMDEP\" was never defined.
16416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16417 fi
16418 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16419 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16421 fi
16422 if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}" ; then
16423 as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
16424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16425 fi
16426 if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
16427 as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined.
16428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16429 fi
16430 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
16431 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
16432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16433 fi
16434 if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
16435 as_fn_error $? "conditional \"WITH_TRIO_SOURCES\" was never defined.
16436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16437 fi
16438 if test -z "${THREADS_W32_TRUE}" && test -z "${THREADS_W32_FALSE}"; then
16439 as_fn_error $? "conditional \"THREADS_W32\" was never defined.
16440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16441 fi
16442 if test -z "${WITH_SAX1_SOURCES_TRUE}" && test -z "${WITH_SAX1_SOURCES_FALSE}"; then
16443 as_fn_error $? "conditional \"WITH_SAX1_SOURCES\" was never defined.
16444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16445 fi
11629 16446
11630 : "${CONFIG_STATUS=./config.status}" 16447 : "${CONFIG_STATUS=./config.status}"
11631 ac_write_fail=0 16448 ac_write_fail=0
11632 ac_clean_files_save=$ac_clean_files 16449 ac_clean_files_save=$ac_clean_files
11633 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11635 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16452 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11636 as_write_fail=0 16453 as_write_fail=0
11637 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16454 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11638 #! $SHELL 16455 #! $SHELL
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
12016 ## Main body of $CONFIG_STATUS script. ## 16833 ## Main body of $CONFIG_STATUS script. ##
12017 ## ----------------------------------- ## 16834 ## ----------------------------------- ##
12018 _ASEOF 16835 _ASEOF
12019 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16836 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12020 16837
12021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12022 # Save the log message, to keep $0 and so on meaningful, and to 16839 # Save the log message, to keep $0 and so on meaningful, and to
12023 # report actual input values of CONFIG_FILES etc. instead of their 16840 # report actual input values of CONFIG_FILES etc. instead of their
12024 # values after options handling. 16841 # values after options handling.
12025 ac_log=" 16842 ac_log="
12026 This file was extended by sqlite $as_me 3.10.2, which was 16843 This file was extended by $as_me, which was
12027 generated by GNU Autoconf 2.69. Invocation command line was 16844 generated by GNU Autoconf 2.69. Invocation command line was
12028 16845
12029 CONFIG_FILES = $CONFIG_FILES 16846 CONFIG_FILES = $CONFIG_FILES
12030 CONFIG_HEADERS = $CONFIG_HEADERS 16847 CONFIG_HEADERS = $CONFIG_HEADERS
12031 CONFIG_LINKS = $CONFIG_LINKS 16848 CONFIG_LINKS = $CONFIG_LINKS
12032 CONFIG_COMMANDS = $CONFIG_COMMANDS 16849 CONFIG_COMMANDS = $CONFIG_COMMANDS
12033 $ $0 $@ 16850 $ $0 $@
12034 16851
12035 on `(hostname || uname -n) 2>/dev/null | sed 1q` 16852 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12036 " 16853 "
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
12082 16899
12083 Configuration commands: 16900 Configuration commands:
12084 $config_commands 16901 $config_commands
12085 16902
12086 Report bugs to the package provider." 16903 Report bugs to the package provider."
12087 16904
12088 _ACEOF 16905 _ACEOF
12089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12090 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g '`" 16907 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g '`"
12091 ac_cs_version="\\ 16908 ac_cs_version="\\
12092 sqlite config.status 3.10.2 16909 config.status
12093 configured by $0, generated by GNU Autoconf 2.69, 16910 configured by $0, generated by GNU Autoconf 2.69,
12094 with options \\"\$ac_cs_config\\" 16911 with options \\"\$ac_cs_config\\"
12095 16912
12096 Copyright (C) 2012 Free Software Foundation, Inc. 16913 Copyright (C) 2012 Free Software Foundation, Inc.
12097 This config.status script is free software; the Free Software Foundation 16914 This config.status script is free software; the Free Software Foundation
12098 gives unlimited permission to copy, distribute and modify it." 16915 gives unlimited permission to copy, distribute and modify it."
12099 16916
12100 ac_pwd='$ac_pwd' 16917 ac_pwd='$ac_pwd'
12101 srcdir='$srcdir' 16918 srcdir='$srcdir'
12102 INSTALL='$INSTALL' 16919 INSTALL='$INSTALL'
16920 MKDIR_P='$MKDIR_P'
16921 AWK='$AWK'
12103 test -n "\$AWK" || AWK=awk 16922 test -n "\$AWK" || AWK=awk
12104 _ACEOF 16923 _ACEOF
12105 16924
12106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12107 # The default lists apply if the user does not specify any file. 16926 # The default lists apply if the user does not specify any file.
12108 ac_need_defaults=: 16927 ac_need_defaults=:
12109 while test $# != 0 16928 while test $# != 0
12110 do 16929 do
12111 case $1 in 16930 case $1 in
12112 --*=?*) 16931 --*=?*)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
12199 ## Running $as_me. ## 17018 ## Running $as_me. ##
12200 _ASBOX 17019 _ASBOX
12201 $as_echo "$ac_log" 17020 $as_echo "$ac_log"
12202 } >&5 17021 } >&5
12203 17022
12204 _ACEOF 17023 _ACEOF
12205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12206 # 17025 #
12207 # INIT-COMMANDS 17026 # INIT-COMMANDS
12208 # 17027 #
17028 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12209 17029
12210 17030
12211 # The HP-UX ksh and POSIX shell print the target directory to stdout 17031 # The HP-UX ksh and POSIX shell print the target directory to stdout
12212 # if CDPATH is set. 17032 # if CDPATH is set.
12213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17033 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12214 17034
12215 sed_quote_subst='$sed_quote_subst' 17035 sed_quote_subst='$sed_quote_subst'
12216 double_quote_subst='$double_quote_subst' 17036 double_quote_subst='$double_quote_subst'
12217 delay_variable_subst='$delay_variable_subst' 17037 delay_variable_subst='$delay_variable_subst'
12218 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 17038 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12219 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst" `' 17039 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12220 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 17040 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12221 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 17041 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12222 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 17042 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12223 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_qu ote_subst"`' 17043 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_s ubst"`'
12224 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 17044 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_ single_quote_subst"`'
12225 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 17045 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12226 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 17046 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12227 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 17047 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12228 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 17048 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12229 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 17049 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12230 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 17050 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12231 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 17051 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12232 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 17052 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12233 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 17053 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12234 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 17054 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12235 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 17055 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12236 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 17056 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12237 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 17057 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12238 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 17058 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12239 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 17059 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12240 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 17060 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12241 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 17061 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12242 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 17062 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12243 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 17063 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12244 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 17064 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12245 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17065 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12246 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 17066 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12247 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_ quote_subst"`' 17067 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12248 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst" `' 17068 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_q uote_subst"`'
12249 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 17069 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_q uote_subst"`'
12250 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 17070 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12251 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 17071 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12252 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 17072 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12253 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_ quote_subst"`' 17073 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote _subst"`'
12254 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_sin gle_quote_subst"`' 17074 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12255 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_su bst"`' 17075 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12256 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 17076 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12257 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 17077 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12258 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 17078 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_ single_quote_subst"`'
12259 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 17079 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12260 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 17080 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12261 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 17081 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_sub st"`'
12262 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_ c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 17082 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12263 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global _symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 17083 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12264 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 17084 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote _subst"`'
12265 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 17085 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_q uote_subst"`'
12266 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 17086 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"` '
12267 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 17087 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$dela y_single_quote_subst"`'
12268 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 17088 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12269 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_qu ote_subst"`' 17089 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12270 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_ quote_subst"`' 17090 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12271 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_s ingle_quote_subst"`' 17091 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12272 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_s ingle_quote_subst"`' 17092 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$de lay_single_quote_subst"`'
12273 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 17093 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $ SED "$delay_single_quote_subst"`'
12274 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 17094 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
12275 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 17095 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c _name_address" | $SED "$delay_single_quote_subst"`'
12276 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 17096 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_ symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12277 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 17097 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_sub st"`'
12278 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 17098 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst "`'
12279 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 17099 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12280 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17100 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_sub st"`'
12281 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_ quote_subst"`' 17101 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12282 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_ quote_subst"`' 17102 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12283 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes " | $Xsed -e "$delay_single_quote_subst"`' 17103 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $ SED "$delay_single_quote_subst"`'
12284 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay _single_quote_subst"`' 17104 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote _subst"`'
12285 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_s ingle_quote_subst"`' 17105 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_s ubst"`'
12286 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_singl e_quote_subst"`' 17106 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single _quote_subst"`'
12287 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$del ay_single_quote_subst"`' 17107 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single _quote_subst"`'
12288 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17108 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12289 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17109 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12290 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_qu ote_subst"`' 17110 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12291 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17111 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12292 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quot e_subst"`' 17112 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12293 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 17113 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12294 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_ quote_subst"`' 17114 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12295 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_ subst"`' 17115 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12296 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$del ay_single_quote_subst"`' 17116 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12297 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 17117 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote _subst"`'
12298 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$del ay_single_quote_subst"`' 17118 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote _subst"`'
12299 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subs t"`' 17119 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12300 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay _single_quote_subst"`' 17120 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_sing le_quote_subst"`'
12301 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_su bst"`' 17121 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single _quote_subst"`'
12302 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_sin gle_quote_subst"`' 17122 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quo te_subst"`'
12303 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quot e_subst"`' 17123 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_si ngle_quote_subst"`'
12304 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 17124 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$ delay_single_quote_subst"`'
12305 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_su bst"`' 17125 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12306 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_su bst"`' 17126 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_s ubst"`'
12307 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_singl e_quote_subst"`' 17127 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12308 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_qu ote_subst"`' 17128 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_sub st"`'
12309 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subs t"`' 17129 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12310 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subs t"`' 17130 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote _subst"`'
12311 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17131 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst "`'
12312 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst" `' 17132 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_si ngle_quote_subst"`'
12313 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$d elay_single_quote_subst"`' 17133 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_si ngle_quote_subst"`'
12314 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subs t"`' 17134 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12315 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 17135 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_sing le_quote_subst"`'
12316 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 17136 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"` '
12317 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 17137 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_q uote_subst"`'
12318 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 17138 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_sub st"`'
12319 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e " $delay_single_quote_subst"`' 17139 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12320 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 17140 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"` '
12321 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quot e_subst"`' 17141 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quo te_subst"`'
12322 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 17142 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_s ubst"`'
12323 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_su bst"`' 17143 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12324 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quot e_subst"`' 17144 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12325 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17145 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12326 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 17146 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12327 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quot e_subst"`' 17147 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12328 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay _single_quote_subst"`' 17148 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_ single_quote_subst"`'
12329 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$d elay_single_quote_subst"`' 17149 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12330 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subs t"`' 17150 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12331 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 17151 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12332 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quot e_subst"`' 17152 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12333 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$del ay_single_quote_subst"`' 17153 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12334 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 17154 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$dela y_single_quote_subst"`'
12335 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 17155 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17156 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_sub st"`'
17157 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17158 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quo te_subst"`'
17159 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"` '
17160 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_sub st"`'
17161 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17162 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17163 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_sub st"`'
17164 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_sing le_quote_subst"`'
17165 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$de lay_single_quote_subst"`'
17166 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17167 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17168 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17169 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_sub st"`'
17170 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_si ngle_quote_subst"`'
17171 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17172 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12336 17173
12337 LTCC='$LTCC' 17174 LTCC='$LTCC'
12338 LTCFLAGS='$LTCFLAGS' 17175 LTCFLAGS='$LTCFLAGS'
12339 compiler='$compiler_DEFAULT' 17176 compiler='$compiler_DEFAULT'
12340 17177
17178 # A function that is used when there is no print builtin or printf.
17179 func_fallback_echo ()
17180 {
17181 eval 'cat <<_LTECHO_EOF
17182 \$1
17183 _LTECHO_EOF'
17184 }
17185
12341 # Quote evaled strings. 17186 # Quote evaled strings.
12342 for var in SED \ 17187 for var in SHELL \
17188 ECHO \
17189 PATH_SEPARATOR \
17190 SED \
12343 GREP \ 17191 GREP \
12344 EGREP \ 17192 EGREP \
12345 FGREP \ 17193 FGREP \
12346 LD \ 17194 LD \
12347 NM \ 17195 NM \
12348 LN_S \ 17196 LN_S \
12349 lt_SP2NL \ 17197 lt_SP2NL \
12350 lt_NL2SP \ 17198 lt_NL2SP \
12351 reload_flag \ 17199 reload_flag \
12352 OBJDUMP \ 17200 OBJDUMP \
12353 deplibs_check_method \ 17201 deplibs_check_method \
12354 file_magic_cmd \ 17202 file_magic_cmd \
17203 file_magic_glob \
17204 want_nocaseglob \
17205 DLLTOOL \
17206 sharedlib_from_linklib_cmd \
12355 AR \ 17207 AR \
12356 AR_FLAGS \ 17208 AR_FLAGS \
17209 archiver_list_spec \
12357 STRIP \ 17210 STRIP \
12358 RANLIB \ 17211 RANLIB \
12359 CC \ 17212 CC \
12360 CFLAGS \ 17213 CFLAGS \
12361 compiler \ 17214 compiler \
12362 lt_cv_sys_global_symbol_pipe \ 17215 lt_cv_sys_global_symbol_pipe \
12363 lt_cv_sys_global_symbol_to_cdecl \ 17216 lt_cv_sys_global_symbol_to_cdecl \
17217 lt_cv_sys_global_symbol_to_import \
12364 lt_cv_sys_global_symbol_to_c_name_address \ 17218 lt_cv_sys_global_symbol_to_c_name_address \
12365 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17219 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12366 SHELL \ 17220 lt_cv_nm_interface \
12367 ECHO \ 17221 nm_file_list_spec \
17222 lt_cv_truncate_bin \
12368 lt_prog_compiler_no_builtin_flag \ 17223 lt_prog_compiler_no_builtin_flag \
17224 lt_prog_compiler_pic \
12369 lt_prog_compiler_wl \ 17225 lt_prog_compiler_wl \
12370 lt_prog_compiler_pic \
12371 lt_prog_compiler_static \ 17226 lt_prog_compiler_static \
12372 lt_cv_prog_compiler_c_o \ 17227 lt_cv_prog_compiler_c_o \
12373 need_locks \ 17228 need_locks \
17229 MANIFEST_TOOL \
12374 DSYMUTIL \ 17230 DSYMUTIL \
12375 NMEDIT \ 17231 NMEDIT \
12376 LIPO \ 17232 LIPO \
12377 OTOOL \ 17233 OTOOL \
12378 OTOOL64 \ 17234 OTOOL64 \
12379 shrext_cmds \ 17235 shrext_cmds \
12380 export_dynamic_flag_spec \ 17236 export_dynamic_flag_spec \
12381 whole_archive_flag_spec \ 17237 whole_archive_flag_spec \
12382 compiler_needs_object \ 17238 compiler_needs_object \
12383 with_gnu_ld \ 17239 with_gnu_ld \
12384 allow_undefined_flag \ 17240 allow_undefined_flag \
12385 no_undefined_flag \ 17241 no_undefined_flag \
12386 hardcode_libdir_flag_spec \ 17242 hardcode_libdir_flag_spec \
12387 hardcode_libdir_flag_spec_ld \
12388 hardcode_libdir_separator \ 17243 hardcode_libdir_separator \
12389 fix_srcfile_path \
12390 exclude_expsyms \ 17244 exclude_expsyms \
12391 include_expsyms \ 17245 include_expsyms \
12392 file_list_spec \ 17246 file_list_spec \
12393 variables_saved_for_relink \ 17247 variables_saved_for_relink \
12394 libname_spec \ 17248 libname_spec \
12395 library_names_spec \ 17249 library_names_spec \
12396 soname_spec \ 17250 soname_spec \
17251 install_override_mode \
12397 finish_eval \ 17252 finish_eval \
12398 old_striplib \ 17253 old_striplib \
12399 striplib; do 17254 striplib; do
12400 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 17255 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12401 *[\\\\\\\`\\"\\\$]*) 17256 *[\\\\\\\`\\"\\\$]*)
12402 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$s ed_quote_subst\\"\\\`\\\\\\"" 17257 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_qu ote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
12403 ;; 17258 ;;
12404 *) 17259 *)
12405 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17260 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12406 ;; 17261 ;;
12407 esac 17262 esac
12408 done 17263 done
12409 17264
12410 # Double-quote double-evaled strings. 17265 # Double-quote double-evaled strings.
12411 for var in reload_cmds \ 17266 for var in reload_cmds \
12412 old_postinstall_cmds \ 17267 old_postinstall_cmds \
12413 old_postuninstall_cmds \ 17268 old_postuninstall_cmds \
12414 old_archive_cmds \ 17269 old_archive_cmds \
12415 extract_expsyms_cmds \ 17270 extract_expsyms_cmds \
12416 old_archive_from_new_cmds \ 17271 old_archive_from_new_cmds \
12417 old_archive_from_expsyms_cmds \ 17272 old_archive_from_expsyms_cmds \
12418 archive_cmds \ 17273 archive_cmds \
12419 archive_expsym_cmds \ 17274 archive_expsym_cmds \
12420 module_cmds \ 17275 module_cmds \
12421 module_expsym_cmds \ 17276 module_expsym_cmds \
12422 export_symbols_cmds \ 17277 export_symbols_cmds \
12423 prelink_cmds \ 17278 prelink_cmds \
17279 postlink_cmds \
12424 postinstall_cmds \ 17280 postinstall_cmds \
12425 postuninstall_cmds \ 17281 postuninstall_cmds \
12426 finish_cmds \ 17282 finish_cmds \
12427 sys_lib_search_path_spec \ 17283 sys_lib_search_path_spec \
12428 sys_lib_dlsearch_path_spec; do 17284 configure_time_dlsearch_path \
12429 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 17285 configure_time_lt_sys_library_path; do
17286 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12430 *[\\\\\\\`\\"\\\$]*) 17287 *[\\\\\\\`\\"\\\$]*)
12431 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$d ouble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst \\"\\\`\\\\\\"" 17288 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$dou ble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\ "\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
12432 ;; 17289 ;;
12433 *) 17290 *)
12434 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17291 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12435 ;; 17292 ;;
12436 esac 17293 esac
12437 done 17294 done
12438 17295
12439 # Fix-up fallback echo if it was mangled by the above quoting rules. 17296 ac_aux_dir='$ac_aux_dir'
12440 case \$lt_ECHO in
12441 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\ \\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12442 ;;
12443 esac
12444 17297
12445 ac_aux_dir='$ac_aux_dir' 17298 # See if we are running on zsh, and set the options that allow our
12446 xsi_shell='$xsi_shell'
12447 lt_shell_append='$lt_shell_append'
12448
12449 # See if we are running on zsh, and set the options which allow our
12450 # commands through without removal of \ escapes INIT. 17299 # commands through without removal of \ escapes INIT.
12451 if test -n "\${ZSH_VERSION+set}" ; then 17300 if test -n "\${ZSH_VERSION+set}"; then
12452 setopt NO_GLOB_SUBST 17301 setopt NO_GLOB_SUBST
12453 fi 17302 fi
12454 17303
12455 17304
12456 PACKAGE='$PACKAGE' 17305 PACKAGE='$PACKAGE'
12457 VERSION='$VERSION' 17306 VERSION='$VERSION'
12458 TIMESTAMP='$TIMESTAMP'
12459 RM='$RM' 17307 RM='$RM'
12460 ofile='$ofile' 17308 ofile='$ofile'
12461 17309
12462 17310
12463 17311
12464 17312
12465 _ACEOF 17313 _ACEOF
12466 17314
12467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12468 17316
12469 # Handling of arguments. 17317 # Handling of arguments.
12470 for ac_config_target in $ac_config_targets 17318 for ac_config_target in $ac_config_targets
12471 do 17319 do
12472 case $ac_config_target in 17320 case $ac_config_target in
17321 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17322 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12473 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17323 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12474 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17324 "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
12475 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17325 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12476 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;; 17326 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17327 "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefi le" ;;
17328 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17329 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
17330 "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
17331 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
17332 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
17333 "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
17334 "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
17335 "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xm lversion.h" ;;
17336 "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
17337 "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstal led.pc" ;;
17338 "libxml2-config.cmake") CONFIG_FILES="$CONFIG_FILES libxml2-config.cmake" ;;
17339 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
17340 "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
12477 17341
12478 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17342 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12479 esac 17343 esac
12480 done 17344 done
12481 17345
12482 17346
12483 # If the user did not use the arguments to specify the items to instantiate, 17347 # If the user did not use the arguments to specify the items to instantiate,
12484 # then the envvar interface is used. Set only those that are not. 17348 # then the envvar interface is used. Set only those that are not.
12485 # We use the long form for the default assignment because of an extremely 17349 # We use the long form for the default assignment because of an extremely
12486 # bizarre bug on SunOS 4.1.3. 17350 # bizarre bug on SunOS 4.1.3.
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
12915 case $ac_mode in 17779 case $ac_mode in
12916 :F) 17780 :F)
12917 # 17781 #
12918 # CONFIG_FILE 17782 # CONFIG_FILE
12919 # 17783 #
12920 17784
12921 case $INSTALL in 17785 case $INSTALL in
12922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17786 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12923 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17787 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12924 esac 17788 esac
17789 ac_MKDIR_P=$MKDIR_P
17790 case $MKDIR_P in
17791 [\\/$]* | ?:[\\/]* ) ;;
17792 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17793 esac
12925 _ACEOF 17794 _ACEOF
12926 17795
12927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12928 # If the template does not know about datarootdir, expand it. 17797 # If the template does not know about datarootdir, expand it.
12929 # FIXME: This hack should be removed a few years after 2.60. 17798 # FIXME: This hack should be removed a few years after 2.60.
12930 ac_datarootdir_hack=; ac_datarootdir_seen= 17799 ac_datarootdir_hack=; ac_datarootdir_seen=
12931 ac_sed_dataroot=' 17800 ac_sed_dataroot='
12932 /datarootdir/ { 17801 /datarootdir/ {
12933 p 17802 p
12934 q 17803 q
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
12969 s&@top_builddir@&$ac_top_builddir_sub&;t t 17838 s&@top_builddir@&$ac_top_builddir_sub&;t t
12970 s&@top_build_prefix@&$ac_top_build_prefix&;t t 17839 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12971 s&@srcdir@&$ac_srcdir&;t t 17840 s&@srcdir@&$ac_srcdir&;t t
12972 s&@abs_srcdir@&$ac_abs_srcdir&;t t 17841 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12973 s&@top_srcdir@&$ac_top_srcdir&;t t 17842 s&@top_srcdir@&$ac_top_srcdir&;t t
12974 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17843 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12975 s&@builddir@&$ac_builddir&;t t 17844 s&@builddir@&$ac_builddir&;t t
12976 s&@abs_builddir@&$ac_abs_builddir&;t t 17845 s&@abs_builddir@&$ac_abs_builddir&;t t
12977 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17846 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12978 s&@INSTALL@&$ac_INSTALL&;t t 17847 s&@INSTALL@&$ac_INSTALL&;t t
17848 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12979 $ac_datarootdir_hack 17849 $ac_datarootdir_hack
12980 " 17850 "
12981 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17851 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12982 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17852 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12983 17853
12984 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12985 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17855 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12986 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17856 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12987 "$ac_tmp/out"`; test -z "$ac_out"; } && 17857 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a referenc e to the variable \`datarootdir' 17858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a referenc e to the variable \`datarootdir'
(...skipping 24 matching lines...) Expand all
13013 else 17883 else
13014 rm -f "$ac_file" 17884 rm -f "$ac_file"
13015 mv "$ac_tmp/config.h" "$ac_file" \ 17885 mv "$ac_tmp/config.h" "$ac_file" \
13016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13017 fi 17887 fi
13018 else 17888 else
13019 $as_echo "/* $configure_input */" \ 17889 $as_echo "/* $configure_input */" \
13020 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17890 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13021 || as_fn_error $? "could not create -" "$LINENO" 5 17891 || as_fn_error $? "could not create -" "$LINENO" 5
13022 fi 17892 fi
17893 # Compute "$ac_file"'s index in $config_headers.
17894 _am_arg="$ac_file"
17895 _am_stamp_count=1
17896 for _am_header in $config_headers :; do
17897 case $_am_header in
17898 $_am_arg | $_am_arg:* )
17899 break ;;
17900 * )
17901 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17902 esac
17903 done
17904 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17905 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17906 X"$_am_arg" : 'X\(//\)[^/]' \| \
17907 X"$_am_arg" : 'X\(//\)$' \| \
17908 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17909 $as_echo X"$_am_arg" |
17910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17911 s//\1/
17912 q
17913 }
17914 /^X\(\/\/\)[^/].*/{
17915 s//\1/
17916 q
17917 }
17918 /^X\(\/\/\)$/{
17919 s//\1/
17920 q
17921 }
17922 /^X\(\/\).*/{
17923 s//\1/
17924 q
17925 }
17926 s/.*/./; q'`/stamp-h$_am_stamp_count
13023 ;; 17927 ;;
13024 17928
13025 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17929 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13026 $as_echo "$as_me: executing $ac_file commands" >&6;} 17930 $as_echo "$as_me: executing $ac_file commands" >&6;}
13027 ;; 17931 ;;
13028 esac 17932 esac
13029 17933
13030 17934
13031 case $ac_file$ac_mode in 17935 case $ac_file$ac_mode in
17936 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17937 # Older Autoconf quotes --file arguments for eval, but not when files
17938 # are listed without --file. Let's play safe and only enable the eval
17939 # if we detect the quoting.
17940 case $CONFIG_FILES in
17941 *\'*) eval set x "$CONFIG_FILES" ;;
17942 *) set x $CONFIG_FILES ;;
17943 esac
17944 shift
17945 for mf
17946 do
17947 # Strip MF so we end up with the name of the file.
17948 mf=`echo "$mf" | sed -e 's/:.*$//'`
17949 # Check whether this is an Automake generated Makefile or not.
17950 # We used to match only the files named 'Makefile.in', but
17951 # some people rename them; so instead we look at the file content.
17952 # Grep'ing the first line is not enough: some people post-process
17953 # each Makefile.in and add a new line on top of each file to say so.
17954 # Grep'ing the whole file is not good either: AIX grep has a line
17955 # limit of 2048, but all sed's we know have understand at least 4000.
17956 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1 ; then
17957 dirpart=`$as_dirname -- "$mf" ||
17958 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17959 X"$mf" : 'X\(//\)[^/]' \| \
17960 X"$mf" : 'X\(//\)$' \| \
17961 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17962 $as_echo X"$mf" |
17963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17964 s//\1/
17965 q
17966 }
17967 /^X\(\/\/\)[^/].*/{
17968 s//\1/
17969 q
17970 }
17971 /^X\(\/\/\)$/{
17972 s//\1/
17973 q
17974 }
17975 /^X\(\/\).*/{
17976 s//\1/
17977 q
17978 }
17979 s/.*/./; q'`
17980 else
17981 continue
17982 fi
17983 # Extract the definition of DEPDIR, am__include, and am__quote
17984 # from the Makefile without running 'make'.
17985 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17986 test -z "$DEPDIR" && continue
17987 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17988 test -z "$am__include" && continue
17989 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17990 # Find all dependency output files, they are included files with
17991 # $(DEPDIR) in their names. We invoke sed twice because it is the
17992 # simplest approach to changing $(DEPDIR) to its actual value in the
17993 # expansion.
17994 for file in `sed -n "
17995 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17996 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17997 # Make sure the directory exists.
17998 test -f "$dirpart/$file" && continue
17999 fdir=`$as_dirname -- "$file" ||
18000 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18001 X"$file" : 'X\(//\)[^/]' \| \
18002 X"$file" : 'X\(//\)$' \| \
18003 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18004 $as_echo X"$file" |
18005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18006 s//\1/
18007 q
18008 }
18009 /^X\(\/\/\)[^/].*/{
18010 s//\1/
18011 q
18012 }
18013 /^X\(\/\/\)$/{
18014 s//\1/
18015 q
18016 }
18017 /^X\(\/\).*/{
18018 s//\1/
18019 q
18020 }
18021 s/.*/./; q'`
18022 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18023 # echo "creating $dirpart/$file"
18024 echo '# dummy' > "$dirpart/$file"
18025 done
18026 done
18027 }
18028 ;;
13032 "libtool":C) 18029 "libtool":C)
13033 18030
13034 # See if we are running on zsh, and set the options which allow our 18031 # See if we are running on zsh, and set the options that allow our
13035 # commands through without removal of \ escapes. 18032 # commands through without removal of \ escapes.
13036 if test -n "${ZSH_VERSION+set}" ; then 18033 if test -n "${ZSH_VERSION+set}"; then
13037 setopt NO_GLOB_SUBST 18034 setopt NO_GLOB_SUBST
13038 fi 18035 fi
13039 18036
13040 cfgfile="${ofile}T" 18037 cfgfile=${ofile}T
13041 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18038 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13042 $RM "$cfgfile" 18039 $RM "$cfgfile"
13043 18040
13044 cat <<_LT_EOF >> "$cfgfile" 18041 cat <<_LT_EOF >> "$cfgfile"
13045 #! $SHELL 18042 #! $SHELL
13046 18043 # Generated automatically by $as_me ($PACKAGE) $VERSION
13047 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building suppo rt services.
13048 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13049 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13050 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 18045 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18046
18047 # Provide generalized library-building support services.
18048 # Written by Gordon Matzigkeit, 1996
18049
18050 # Copyright (C) 2014 Free Software Foundation, Inc.
18051 # This is free software; see the source for copying conditions. There is NO
18052 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18053
18054 # GNU Libtool is free software; you can redistribute it and/or modify
18055 # it under the terms of the GNU General Public License as published by
18056 # the Free Software Foundation; either version 2 of of the License, or
18057 # (at your option) any later version.
13051 # 18058 #
13052 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18059 # As a special exception to the GNU General Public License, if you
13053 # 2006, 2007, 2008 Free Software Foundation, Inc. 18060 # distribute this file as part of a program or library that is built
13054 # Written by Gordon Matzigkeit, 1996 18061 # using GNU Libtool, you may include this file under the same
18062 # distribution terms that you use for the rest of that program.
13055 # 18063 #
13056 # This file is part of GNU Libtool. 18064 # GNU Libtool is distributed in the hope that it will be useful, but
13057 # 18065 # WITHOUT ANY WARRANTY; without even the implied warranty of
13058 # GNU Libtool is free software; you can redistribute it and/or
13059 # modify it under the terms of the GNU General Public License as
13060 # published by the Free Software Foundation; either version 2 of
13061 # the License, or (at your option) any later version.
13062 #
13063 # As a special exception to the GNU General Public License,
13064 # if you distribute this file as part of a program or library that
13065 # is built using GNU Libtool, you may include this file under the
13066 # same distribution terms that you use for the rest of that program.
13067 #
13068 # GNU Libtool is distributed in the hope that it will be useful,
13069 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13070 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18066 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13071 # GNU General Public License for more details. 18067 # GNU General Public License for more details.
13072 # 18068 #
13073 # You should have received a copy of the GNU General Public License 18069 # You should have received a copy of the GNU General Public License
13074 # along with GNU Libtool; see the file COPYING. If not, a copy 18070 # along with this program. If not, see <http://www.gnu.org/licenses/>.
13075 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13076 # obtained by writing to the Free Software Foundation, Inc.,
13077 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13078 18071
13079 18072
13080 # The names of the tagged configurations supported by this script. 18073 # The names of the tagged configurations supported by this script.
13081 available_tags="" 18074 available_tags=''
18075
18076 # Configured defaults for sys_lib_dlsearch_path munging.
18077 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
13082 18078
13083 # ### BEGIN LIBTOOL CONFIG 18079 # ### BEGIN LIBTOOL CONFIG
13084 18080
13085 # Which release of libtool.m4 was used? 18081 # Which release of libtool.m4 was used?
13086 macro_version=$macro_version 18082 macro_version=$macro_version
13087 macro_revision=$macro_revision 18083 macro_revision=$macro_revision
13088 18084
13089 # Whether or not to build shared libraries. 18085 # Whether or not to build shared libraries.
13090 build_libtool_libs=$enable_shared 18086 build_libtool_libs=$enable_shared
13091 18087
13092 # Whether or not to build static libraries. 18088 # Whether or not to build static libraries.
13093 build_old_libs=$enable_static 18089 build_old_libs=$enable_static
13094 18090
13095 # What type of objects to build. 18091 # What type of objects to build.
13096 pic_mode=$pic_mode 18092 pic_mode=$pic_mode
13097 18093
13098 # Whether or not to optimize for fast installation. 18094 # Whether or not to optimize for fast installation.
13099 fast_install=$enable_fast_install 18095 fast_install=$enable_fast_install
13100 18096
18097 # Shared archive member basename,for filename based shared library versioning on AIX.
18098 shared_archive_member_spec=$shared_archive_member_spec
18099
18100 # Shell to use when invoking shell scripts.
18101 SHELL=$lt_SHELL
18102
18103 # An echo program that protects backslashes.
18104 ECHO=$lt_ECHO
18105
18106 # The PATH separator for the build system.
18107 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18108
13101 # The host system. 18109 # The host system.
13102 host_alias=$host_alias 18110 host_alias=$host_alias
13103 host=$host 18111 host=$host
13104 host_os=$host_os 18112 host_os=$host_os
13105 18113
13106 # The build system. 18114 # The build system.
13107 build_alias=$build_alias 18115 build_alias=$build_alias
13108 build=$build 18116 build=$build
13109 build_os=$build_os 18117 build_os=$build_os
13110 18118
(...skipping 29 matching lines...) Expand all
13140 18148
13141 # whether the shell understands "unset". 18149 # whether the shell understands "unset".
13142 lt_unset=$lt_unset 18150 lt_unset=$lt_unset
13143 18151
13144 # turn spaces into newlines. 18152 # turn spaces into newlines.
13145 SP2NL=$lt_lt_SP2NL 18153 SP2NL=$lt_lt_SP2NL
13146 18154
13147 # turn newlines into spaces. 18155 # turn newlines into spaces.
13148 NL2SP=$lt_lt_NL2SP 18156 NL2SP=$lt_lt_NL2SP
13149 18157
13150 # How to create reloadable object files. 18158 # convert \$build file names to \$host format.
13151 reload_flag=$lt_reload_flag 18159 to_host_file_cmd=$lt_cv_to_host_file_cmd
13152 reload_cmds=$lt_reload_cmds 18160
18161 # convert \$build files to toolchain format.
18162 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13153 18163
13154 # An object symbol dumper. 18164 # An object symbol dumper.
13155 OBJDUMP=$lt_OBJDUMP 18165 OBJDUMP=$lt_OBJDUMP
13156 18166
13157 # Method to check whether dependent libraries are shared objects. 18167 # Method to check whether dependent libraries are shared objects.
13158 deplibs_check_method=$lt_deplibs_check_method 18168 deplibs_check_method=$lt_deplibs_check_method
13159 18169
13160 # Command to use when deplibs_check_method == "file_magic". 18170 # Command to use when deplibs_check_method = "file_magic".
13161 file_magic_cmd=$lt_file_magic_cmd 18171 file_magic_cmd=$lt_file_magic_cmd
13162 18172
18173 # How to find potential files when deplibs_check_method = "file_magic".
18174 file_magic_glob=$lt_file_magic_glob
18175
18176 # Find potential files using nocaseglob when deplibs_check_method = "file_magic" .
18177 want_nocaseglob=$lt_want_nocaseglob
18178
18179 # DLL creation program.
18180 DLLTOOL=$lt_DLLTOOL
18181
18182 # Command to associate shared and link libraries.
18183 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18184
13163 # The archiver. 18185 # The archiver.
13164 AR=$lt_AR 18186 AR=$lt_AR
18187
18188 # Flags to create an archive.
13165 AR_FLAGS=$lt_AR_FLAGS 18189 AR_FLAGS=$lt_AR_FLAGS
13166 18190
18191 # How to feed a file listing to the archiver.
18192 archiver_list_spec=$lt_archiver_list_spec
18193
13167 # A symbol stripping program. 18194 # A symbol stripping program.
13168 STRIP=$lt_STRIP 18195 STRIP=$lt_STRIP
13169 18196
13170 # Commands used to install an old-style archive. 18197 # Commands used to install an old-style archive.
13171 RANLIB=$lt_RANLIB 18198 RANLIB=$lt_RANLIB
13172 old_postinstall_cmds=$lt_old_postinstall_cmds 18199 old_postinstall_cmds=$lt_old_postinstall_cmds
13173 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18200 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13174 18201
18202 # Whether to use a lock for old archive extraction.
18203 lock_old_archive_extraction=$lock_old_archive_extraction
18204
13175 # A C compiler. 18205 # A C compiler.
13176 LTCC=$lt_CC 18206 LTCC=$lt_CC
13177 18207
13178 # LTCC compiler flags. 18208 # LTCC compiler flags.
13179 LTCFLAGS=$lt_CFLAGS 18209 LTCFLAGS=$lt_CFLAGS
13180 18210
13181 # Take the output of nm and produce a listing of raw symbols and C names. 18211 # Take the output of nm and produce a listing of raw symbols and C names.
13182 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18212 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13183 18213
13184 # Transform the output of nm in a proper C declaration. 18214 # Transform the output of nm in a proper C declaration.
13185 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18215 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13186 18216
18217 # Transform the output of nm into a list of symbols to manually relocate.
18218 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18219
13187 # Transform the output of nm in a C name address pair. 18220 # Transform the output of nm in a C name address pair.
13188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13189 18222
13190 # Transform the output of nm in a C name address pair when lib prefix is needed. 18223 # Transform the output of nm in a C name address pair when lib prefix is needed.
13191 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name _address_lib_prefix 18224 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name _address_lib_prefix
13192 18225
18226 # The name lister interface.
18227 nm_interface=$lt_lt_cv_nm_interface
18228
18229 # Specify filename containing input files for \$NM.
18230 nm_file_list_spec=$lt_nm_file_list_spec
18231
18232 # The root where to search for dependent libraries,and where our libraries shoul d be installed.
18233 lt_sysroot=$lt_sysroot
18234
18235 # Command to truncate a binary pipe.
18236 lt_truncate_bin=$lt_lt_cv_truncate_bin
18237
13193 # The name of the directory that contains temporary libtool files. 18238 # The name of the directory that contains temporary libtool files.
13194 objdir=$objdir 18239 objdir=$objdir
13195 18240
13196 # Shell to use when invoking shell scripts.
13197 SHELL=$lt_SHELL
13198
13199 # An echo program that does not interpret backslashes.
13200 ECHO=$lt_ECHO
13201
13202 # Used to examine libraries when file_magic_cmd begins with "file". 18241 # Used to examine libraries when file_magic_cmd begins with "file".
13203 MAGIC_CMD=$MAGIC_CMD 18242 MAGIC_CMD=$MAGIC_CMD
13204 18243
13205 # Must we lock files when doing compilation? 18244 # Must we lock files when doing compilation?
13206 need_locks=$lt_need_locks 18245 need_locks=$lt_need_locks
13207 18246
18247 # Manifest tool.
18248 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18249
13208 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18250 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13209 DSYMUTIL=$lt_DSYMUTIL 18251 DSYMUTIL=$lt_DSYMUTIL
13210 18252
13211 # Tool to change global to local symbols on Mac OS X. 18253 # Tool to change global to local symbols on Mac OS X.
13212 NMEDIT=$lt_NMEDIT 18254 NMEDIT=$lt_NMEDIT
13213 18255
13214 # Tool to manipulate fat objects and archives on Mac OS X. 18256 # Tool to manipulate fat objects and archives on Mac OS X.
13215 LIPO=$lt_LIPO 18257 LIPO=$lt_LIPO
13216 18258
13217 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 18259 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
13254 # Format of library name prefix. 18296 # Format of library name prefix.
13255 libname_spec=$lt_libname_spec 18297 libname_spec=$lt_libname_spec
13256 18298
13257 # List of archive names. First name is the real one, the rest are links. 18299 # List of archive names. First name is the real one, the rest are links.
13258 # The last name is the one that the linker finds with -lNAME 18300 # The last name is the one that the linker finds with -lNAME
13259 library_names_spec=$lt_library_names_spec 18301 library_names_spec=$lt_library_names_spec
13260 18302
13261 # The coded name of the library, if different from the real name. 18303 # The coded name of the library, if different from the real name.
13262 soname_spec=$lt_soname_spec 18304 soname_spec=$lt_soname_spec
13263 18305
18306 # Permission mode override for installation of shared libraries.
18307 install_override_mode=$lt_install_override_mode
18308
13264 # Command to use after installation of a shared archive. 18309 # Command to use after installation of a shared archive.
13265 postinstall_cmds=$lt_postinstall_cmds 18310 postinstall_cmds=$lt_postinstall_cmds
13266 18311
13267 # Command to use after uninstallation of a shared archive. 18312 # Command to use after uninstallation of a shared archive.
13268 postuninstall_cmds=$lt_postuninstall_cmds 18313 postuninstall_cmds=$lt_postuninstall_cmds
13269 18314
13270 # Commands used to finish a libtool library installation in a directory. 18315 # Commands used to finish a libtool library installation in a directory.
13271 finish_cmds=$lt_finish_cmds 18316 finish_cmds=$lt_finish_cmds
13272 18317
13273 # As "finish_cmds", except a single script fragment to be evaled but 18318 # As "finish_cmds", except a single script fragment to be evaled but
13274 # not shown. 18319 # not shown.
13275 finish_eval=$lt_finish_eval 18320 finish_eval=$lt_finish_eval
13276 18321
13277 # Whether we should hardcode library paths into libraries. 18322 # Whether we should hardcode library paths into libraries.
13278 hardcode_into_libs=$hardcode_into_libs 18323 hardcode_into_libs=$hardcode_into_libs
13279 18324
13280 # Compile-time system search path for libraries. 18325 # Compile-time system search path for libraries.
13281 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18326 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13282 18327
13283 # Run-time system search path for libraries. 18328 # Detected run-time system search path for libraries.
13284 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18329 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18330
18331 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18332 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
13285 18333
13286 # Whether dlopen is supported. 18334 # Whether dlopen is supported.
13287 dlopen_support=$enable_dlopen 18335 dlopen_support=$enable_dlopen
13288 18336
13289 # Whether dlopen of programs is supported. 18337 # Whether dlopen of programs is supported.
13290 dlopen_self=$enable_dlopen_self 18338 dlopen_self=$enable_dlopen_self
13291 18339
13292 # Whether dlopen of statically linked programs is supported. 18340 # Whether dlopen of statically linked programs is supported.
13293 dlopen_self_static=$enable_dlopen_self_static 18341 dlopen_self_static=$enable_dlopen_self_static
13294 18342
13295 # Commands to strip libraries. 18343 # Commands to strip libraries.
13296 old_striplib=$lt_old_striplib 18344 old_striplib=$lt_old_striplib
13297 striplib=$lt_striplib 18345 striplib=$lt_striplib
13298 18346
13299 18347
13300 # The linker used to build libraries. 18348 # The linker used to build libraries.
13301 LD=$lt_LD 18349 LD=$lt_LD
13302 18350
18351 # How to create reloadable object files.
18352 reload_flag=$lt_reload_flag
18353 reload_cmds=$lt_reload_cmds
18354
13303 # Commands used to build an old-style archive. 18355 # Commands used to build an old-style archive.
13304 old_archive_cmds=$lt_old_archive_cmds 18356 old_archive_cmds=$lt_old_archive_cmds
13305 18357
13306 # A language specific compiler. 18358 # A language specific compiler.
13307 CC=$lt_compiler 18359 CC=$lt_compiler
13308 18360
13309 # Is the compiler the GNU compiler? 18361 # Is the compiler the GNU compiler?
13310 with_gcc=$GCC 18362 with_gcc=$GCC
13311 18363
13312 # Compiler flag to turn off builtin functions. 18364 # Compiler flag to turn off builtin functions.
13313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13314 18366
18367 # Additional compiler flags for building library objects.
18368 pic_flag=$lt_lt_prog_compiler_pic
18369
13315 # How to pass a linker flag through the compiler. 18370 # How to pass a linker flag through the compiler.
13316 wl=$lt_lt_prog_compiler_wl 18371 wl=$lt_lt_prog_compiler_wl
13317 18372
13318 # Additional compiler flags for building library objects.
13319 pic_flag=$lt_lt_prog_compiler_pic
13320
13321 # Compiler flag to prevent dynamic linking. 18373 # Compiler flag to prevent dynamic linking.
13322 link_static_flag=$lt_lt_prog_compiler_static 18374 link_static_flag=$lt_lt_prog_compiler_static
13323 18375
13324 # Does compiler simultaneously support -c and -o options? 18376 # Does compiler simultaneously support -c and -o options?
13325 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13326 18378
13327 # Whether or not to add -lc for building shared libraries. 18379 # Whether or not to add -lc for building shared libraries.
13328 build_libtool_need_lc=$archive_cmds_need_lc 18380 build_libtool_need_lc=$archive_cmds_need_lc
13329 18381
13330 # Whether or not to disallow shared libs when runtime libs are static. 18382 # Whether or not to disallow shared libs when runtime libs are static.
(...skipping 29 matching lines...) Expand all
13360 # Flag that allows shared libraries with undefined symbols to be built. 18412 # Flag that allows shared libraries with undefined symbols to be built.
13361 allow_undefined_flag=$lt_allow_undefined_flag 18413 allow_undefined_flag=$lt_allow_undefined_flag
13362 18414
13363 # Flag that enforces no undefined symbols. 18415 # Flag that enforces no undefined symbols.
13364 no_undefined_flag=$lt_no_undefined_flag 18416 no_undefined_flag=$lt_no_undefined_flag
13365 18417
13366 # Flag to hardcode \$libdir into a binary during linking. 18418 # Flag to hardcode \$libdir into a binary during linking.
13367 # This must work even if \$libdir does not exist 18419 # This must work even if \$libdir does not exist
13368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13369 18421
13370 # If ld is used when linking, flag to hardcode \$libdir into a binary
13371 # during linking. This must work even if \$libdir does not exist.
13372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13373
13374 # Whether we need a single "-rpath" flag with a separated argument. 18422 # Whether we need a single "-rpath" flag with a separated argument.
13375 hardcode_libdir_separator=$lt_hardcode_libdir_separator 18423 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13376 18424
13377 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18425 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
13378 # DIR into the resulting binary. 18426 # DIR into the resulting binary.
13379 hardcode_direct=$hardcode_direct 18427 hardcode_direct=$hardcode_direct
13380 18428
13381 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18429 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
13382 # DIR into the resulting binary and the resulting library dependency is 18430 # DIR into the resulting binary and the resulting library dependency is
13383 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18431 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
13384 # library is relocated. 18432 # library is relocated.
13385 hardcode_direct_absolute=$hardcode_direct_absolute 18433 hardcode_direct_absolute=$hardcode_direct_absolute
13386 18434
13387 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18435 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13388 # into the resulting binary. 18436 # into the resulting binary.
13389 hardcode_minus_L=$hardcode_minus_L 18437 hardcode_minus_L=$hardcode_minus_L
13390 18438
13391 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18439 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13392 # into the resulting binary. 18440 # into the resulting binary.
13393 hardcode_shlibpath_var=$hardcode_shlibpath_var 18441 hardcode_shlibpath_var=$hardcode_shlibpath_var
13394 18442
13395 # Set to "yes" if building a shared library automatically hardcodes DIR 18443 # Set to "yes" if building a shared library automatically hardcodes DIR
13396 # into the library and all subsequent libraries and executables linked 18444 # into the library and all subsequent libraries and executables linked
13397 # against it. 18445 # against it.
13398 hardcode_automatic=$hardcode_automatic 18446 hardcode_automatic=$hardcode_automatic
13399 18447
13400 # Set to yes if linker adds runtime paths of dependent libraries 18448 # Set to yes if linker adds runtime paths of dependent libraries
13401 # to runtime path list. 18449 # to runtime path list.
13402 inherit_rpath=$inherit_rpath 18450 inherit_rpath=$inherit_rpath
13403 18451
13404 # Whether libtool must link a program against all its dependency libraries. 18452 # Whether libtool must link a program against all its dependency libraries.
13405 link_all_deplibs=$link_all_deplibs 18453 link_all_deplibs=$link_all_deplibs
13406 18454
13407 # Fix the shell variable \$srcfile for the compiler.
13408 fix_srcfile_path=$lt_fix_srcfile_path
13409
13410 # Set to "yes" if exported symbols are required. 18455 # Set to "yes" if exported symbols are required.
13411 always_export_symbols=$always_export_symbols 18456 always_export_symbols=$always_export_symbols
13412 18457
13413 # The commands to list exported symbols. 18458 # The commands to list exported symbols.
13414 export_symbols_cmds=$lt_export_symbols_cmds 18459 export_symbols_cmds=$lt_export_symbols_cmds
13415 18460
13416 # Symbols that should not be listed in the preloaded symbols. 18461 # Symbols that should not be listed in the preloaded symbols.
13417 exclude_expsyms=$lt_exclude_expsyms 18462 exclude_expsyms=$lt_exclude_expsyms
13418 18463
13419 # Symbols that must always be exported. 18464 # Symbols that must always be exported.
13420 include_expsyms=$lt_include_expsyms 18465 include_expsyms=$lt_include_expsyms
13421 18466
13422 # Commands necessary for linking programs (against libraries) with templates. 18467 # Commands necessary for linking programs (against libraries) with templates.
13423 prelink_cmds=$lt_prelink_cmds 18468 prelink_cmds=$lt_prelink_cmds
13424 18469
18470 # Commands necessary for finishing linking programs.
18471 postlink_cmds=$lt_postlink_cmds
18472
13425 # Specify filename containing input files. 18473 # Specify filename containing input files.
13426 file_list_spec=$lt_file_list_spec 18474 file_list_spec=$lt_file_list_spec
13427 18475
13428 # How to hardcode a shared library path into an executable. 18476 # How to hardcode a shared library path into an executable.
13429 hardcode_action=$hardcode_action 18477 hardcode_action=$hardcode_action
13430 18478
13431 # ### END LIBTOOL CONFIG 18479 # ### END LIBTOOL CONFIG
13432 18480
13433 _LT_EOF 18481 _LT_EOF
13434 18482
18483 cat <<'_LT_EOF' >> "$cfgfile"
18484
18485 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18486
18487 # func_munge_path_list VARIABLE PATH
18488 # -----------------------------------
18489 # VARIABLE is name of variable containing _space_ separated list of
18490 # directories to be munged by the contents of PATH, which is string
18491 # having a format:
18492 # "DIR[:DIR]:"
18493 # string "DIR[ DIR]" will be prepended to VARIABLE
18494 # ":DIR[:DIR]"
18495 # string "DIR[ DIR]" will be appended to VARIABLE
18496 # "DIRP[:DIRP]::[DIRA:]DIRA"
18497 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18498 # "DIRA[ DIRA]" will be appended to VARIABLE
18499 # "DIR[:DIR]"
18500 # VARIABLE will be replaced by "DIR[ DIR]"
18501 func_munge_path_list ()
18502 {
18503 case x$2 in
18504 x)
18505 ;;
18506 *:)
18507 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18508 ;;
18509 x:*)
18510 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18511 ;;
18512 *::*)
18513 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18514 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18515 ;;
18516 *)
18517 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18518 ;;
18519 esac
18520 }
18521
18522
18523 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18524 func_cc_basename ()
18525 {
18526 for cc_temp in $*""; do
18527 case $cc_temp in
18528 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18529 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18530 \-*) ;;
18531 *) break;;
18532 esac
18533 done
18534 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%% "`
18535 }
18536
18537
18538 # ### END FUNCTIONS SHARED WITH CONFIGURE
18539
18540 _LT_EOF
18541
13435 case $host_os in 18542 case $host_os in
13436 aix3*) 18543 aix3*)
13437 cat <<\_LT_EOF >> "$cfgfile" 18544 cat <<\_LT_EOF >> "$cfgfile"
13438 # AIX sometimes has problems with the GCC collect2 program. For some 18545 # AIX sometimes has problems with the GCC collect2 program. For some
13439 # reason, if we set the COLLECT_NAMES environment variable, the problems 18546 # reason, if we set the COLLECT_NAMES environment variable, the problems
13440 # vanish in a puff of smoke. 18547 # vanish in a puff of smoke.
13441 if test "X${COLLECT_NAMES+set}" != Xset; then 18548 if test set != "${COLLECT_NAMES+set}"; then
13442 COLLECT_NAMES= 18549 COLLECT_NAMES=
13443 export COLLECT_NAMES 18550 export COLLECT_NAMES
13444 fi 18551 fi
13445 _LT_EOF 18552 _LT_EOF
13446 ;; 18553 ;;
13447 esac 18554 esac
13448 18555
13449 18556
13450 ltmain="$ac_aux_dir/ltmain.sh" 18557 ltmain=$ac_aux_dir/ltmain.sh
13451 18558
13452 18559
13453 # We use sed instead of cat because bash on DJGPP gets confused if 18560 # We use sed instead of cat because bash on DJGPP gets confused if
13454 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18561 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13455 # text mode, it properly converts lines to CR/LF. This bash problem 18562 # text mode, it properly converts lines to CR/LF. This bash problem
13456 # is reportedly fixed, but why not run on old versions too? 18563 # is reportedly fixed, but why not run on old versions too?
13457 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 18564 sed '$q' "$ltmain" >> "$cfgfile" \
13458 || (rm -f "$cfgfile"; exit 1) 18565 || (rm -f "$cfgfile"; exit 1)
13459 18566
13460 case $xsi_shell in 18567 mv -f "$cfgfile" "$ofile" ||
13461 yes)
13462 cat << \_LT_EOF >> "$cfgfile"
13463
13464 # func_dirname file append nondir_replacement
13465 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13466 # otherwise set result to NONDIR_REPLACEMENT.
13467 func_dirname ()
13468 {
13469 case ${1} in
13470 */*) func_dirname_result="${1%/*}${2}" ;;
13471 * ) func_dirname_result="${3}" ;;
13472 esac
13473 }
13474
13475 # func_basename file
13476 func_basename ()
13477 {
13478 func_basename_result="${1##*/}"
13479 }
13480
13481 # func_dirname_and_basename file append nondir_replacement
13482 # perform func_basename and func_dirname in a single function
13483 # call:
13484 # dirname: Compute the dirname of FILE. If nonempty,
13485 # add APPEND to the result, otherwise set result
13486 # to NONDIR_REPLACEMENT.
13487 # value returned in "$func_dirname_result"
13488 # basename: Compute filename of FILE.
13489 # value retuned in "$func_basename_result"
13490 # Implementation must be kept synchronized with func_dirname
13491 # and func_basename. For efficiency, we do not delegate to
13492 # those functions but instead duplicate the functionality here.
13493 func_dirname_and_basename ()
13494 {
13495 case ${1} in
13496 */*) func_dirname_result="${1%/*}${2}" ;;
13497 * ) func_dirname_result="${3}" ;;
13498 esac
13499 func_basename_result="${1##*/}"
13500 }
13501
13502 # func_stripname prefix suffix name
13503 # strip PREFIX and SUFFIX off of NAME.
13504 # PREFIX and SUFFIX must not contain globbing or regex special
13505 # characters, hashes, percent signs, but SUFFIX may contain a leading
13506 # dot (in which case that matches only a dot).
13507 func_stripname ()
13508 {
13509 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13510 # positional parameters, so assign one to ordinary parameter first.
13511 func_stripname_result=${3}
13512 func_stripname_result=${func_stripname_result#"${1}"}
13513 func_stripname_result=${func_stripname_result%"${2}"}
13514 }
13515
13516 # func_opt_split
13517 func_opt_split ()
13518 {
13519 func_opt_split_opt=${1%%=*}
13520 func_opt_split_arg=${1#*=}
13521 }
13522
13523 # func_lo2o object
13524 func_lo2o ()
13525 {
13526 case ${1} in
13527 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13528 *) func_lo2o_result=${1} ;;
13529 esac
13530 }
13531
13532 # func_xform libobj-or-source
13533 func_xform ()
13534 {
13535 func_xform_result=${1%.*}.lo
13536 }
13537
13538 # func_arith arithmetic-term...
13539 func_arith ()
13540 {
13541 func_arith_result=$(( $* ))
13542 }
13543
13544 # func_len string
13545 # STRING may not start with a hyphen.
13546 func_len ()
13547 {
13548 func_len_result=${#1}
13549 }
13550
13551 _LT_EOF
13552 ;;
13553 *) # Bourne compatible functions.
13554 cat << \_LT_EOF >> "$cfgfile"
13555
13556 # func_dirname file append nondir_replacement
13557 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13558 # otherwise set result to NONDIR_REPLACEMENT.
13559 func_dirname ()
13560 {
13561 # Extract subdirectory from the argument.
13562 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13563 if test "X$func_dirname_result" = "X${1}"; then
13564 func_dirname_result="${3}"
13565 else
13566 func_dirname_result="$func_dirname_result${2}"
13567 fi
13568 }
13569
13570 # func_basename file
13571 func_basename ()
13572 {
13573 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13574 }
13575
13576
13577 # func_stripname prefix suffix name
13578 # strip PREFIX and SUFFIX off of NAME.
13579 # PREFIX and SUFFIX must not contain globbing or regex special
13580 # characters, hashes, percent signs, but SUFFIX may contain a leading
13581 # dot (in which case that matches only a dot).
13582 # func_strip_suffix prefix name
13583 func_stripname ()
13584 {
13585 case ${2} in
13586 .*) func_stripname_result=`$ECHO "X${3}" \
13587 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13588 *) func_stripname_result=`$ECHO "X${3}" \
13589 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13590 esac
13591 }
13592
13593 # sed scripts:
13594 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13595 my_sed_long_arg='1s/^-[^=]*=//'
13596
13597 # func_opt_split
13598 func_opt_split ()
13599 {
13600 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13601 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13602 }
13603
13604 # func_lo2o object
13605 func_lo2o ()
13606 {
13607 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13608 }
13609
13610 # func_xform libobj-or-source
13611 func_xform ()
13612 {
13613 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13614 }
13615
13616 # func_arith arithmetic-term...
13617 func_arith ()
13618 {
13619 func_arith_result=`expr "$@"`
13620 }
13621
13622 # func_len string
13623 # STRING may not start with a hyphen.
13624 func_len ()
13625 {
13626 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13627 }
13628
13629 _LT_EOF
13630 esac
13631
13632 case $lt_shell_append in
13633 yes)
13634 cat << \_LT_EOF >> "$cfgfile"
13635
13636 # func_append var value
13637 # Append VALUE to the end of shell variable VAR.
13638 func_append ()
13639 {
13640 eval "$1+=\$2"
13641 }
13642 _LT_EOF
13643 ;;
13644 *)
13645 cat << \_LT_EOF >> "$cfgfile"
13646
13647 # func_append var value
13648 # Append VALUE to the end of shell variable VAR.
13649 func_append ()
13650 {
13651 eval "$1=\$$1\$2"
13652 }
13653
13654 _LT_EOF
13655 ;;
13656 esac
13657
13658
13659 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfil e" \
13660 || (rm -f "$cfgfile"; exit 1)
13661
13662 mv -f "$cfgfile" "$ofile" ||
13663 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18568 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13664 chmod +x "$ofile" 18569 chmod +x "$ofile"
13665 18570
13666 ;; 18571 ;;
18572 "python/setup.py":F) chmod +x python/setup.py ;;
18573 "xml2-config":F) chmod +x xml2-config ;;
13667 18574
13668 esac 18575 esac
13669 done # for ac_tag 18576 done # for ac_tag
13670 18577
13671 18578
13672 as_fn_exit 0 18579 as_fn_exit 0
13673 _ACEOF 18580 _ACEOF
13674 ac_clean_files=$ac_clean_files_save 18581 ac_clean_files=$ac_clean_files_save
13675 18582
13676 test $ac_write_fail = 0 || 18583 test $ac_write_fail = 0 ||
(...skipping 18 matching lines...) Expand all
13695 exec 5>>config.log 18602 exec 5>>config.log
13696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18603 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13697 # would make configure fail if this is the last instruction. 18604 # would make configure fail if this is the last instruction.
13698 $ac_cs_success || as_fn_exit 1 18605 $ac_cs_success || as_fn_exit 1
13699 fi 18606 fi
13700 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18607 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_un recognized_opts" >&5 18608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_un recognized_opts" >&5
13702 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18609 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13703 fi 18610 fi
13704 18611
18612
18613 echo Done configuring
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698