Mercurial > urweb
comparison configure @ 1132:d4cd54a4ea06
First attempt to switch to Automake, to get shared libraries built in OSX
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 28 Jan 2010 09:56:08 -0500 |
parents | bed675db3aff |
children | f6cb1cb2d7a8 |
comparison
equal
deleted
inserted
replaced
1131:94e83c5533d2 | 1132:d4cd54a4ea06 |
---|---|
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.65. | 3 # Generated by GNU Autoconf 2.65 for urweb 1.0. |
4 # | 4 # |
5 # | 5 # |
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
8 # Inc. | 8 # Inc. |
168 fi | 168 fi |
169 test x\$exitcode = x0 || exit 1" | 169 test x\$exitcode = x0 || exit 1" |
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" | 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
174 test \$(( 1 + 1 )) = 2 || exit 1" | |
174 if (eval "$as_required") 2>/dev/null; then : | 175 if (eval "$as_required") 2>/dev/null; then : |
175 as_have_required=yes | 176 as_have_required=yes |
176 else | 177 else |
177 as_have_required=no | 178 as_have_required=no |
178 fi | 179 fi |
523 | 524 |
524 # Sed expression to map a string onto a valid variable name. | 525 # Sed expression to map a string onto a valid variable name. |
525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
526 | 527 |
527 | 528 |
529 | |
530 # Check that we are running under the correct shell. | |
531 SHELL=${CONFIG_SHELL-/bin/sh} | |
532 | |
533 case X$lt_ECHO in | |
534 X*--fallback-echo) | |
535 # Remove one level of quotation (which was required for Make). | |
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
537 ;; | |
538 esac | |
539 | |
540 ECHO=${lt_ECHO-echo} | |
541 if test "X$1" = X--no-reexec; then | |
542 # Discard the --no-reexec flag, and continue. | |
543 shift | |
544 elif test "X$1" = X--fallback-echo; then | |
545 # Avoid inline document here, it may be left over | |
546 : | |
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
548 # Yippee, $ECHO works! | |
549 : | |
550 else | |
551 # Restart under the correct shell. | |
552 exec $SHELL "$0" --no-reexec ${1+"$@"} | |
553 fi | |
554 | |
555 if test "X$1" = X--fallback-echo; then | |
556 # used as fallback echo | |
557 shift | |
558 cat <<_LT_EOF | |
559 $* | |
560 _LT_EOF | |
561 exit 0 | |
562 fi | |
563 | |
564 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
565 # if CDPATH is set. | |
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
567 | |
568 if test -z "$lt_ECHO"; then | |
569 if test "X${echo_test_string+set}" != Xset; then | |
570 # find a string as large as possible, as long as the shell can cope with it | |
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
575 then | |
576 break | |
577 fi | |
578 done | |
579 fi | |
580 | |
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
583 test "X$echo_testing_string" = "X$echo_test_string"; then | |
584 : | |
585 else | |
586 # The Solaris, AIX, and Digital Unix default echo programs unquote | |
587 # backslashes. This makes it impossible to quote backslashes using | |
588 # echo "$something" | sed 's/\\/\\\\/g' | |
589 # | |
590 # So, first we look for a working echo in the user's PATH. | |
591 | |
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
593 for dir in $PATH /usr/ucb; do | |
594 IFS="$lt_save_ifs" | |
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
598 test "X$echo_testing_string" = "X$echo_test_string"; then | |
599 ECHO="$dir/echo" | |
600 break | |
601 fi | |
602 done | |
603 IFS="$lt_save_ifs" | |
604 | |
605 if test "X$ECHO" = Xecho; then | |
606 # We didn't find a better echo, so look for alternatives. | |
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
609 test "X$echo_testing_string" = "X$echo_test_string"; then | |
610 # This shell has a builtin print -r that does the trick. | |
611 ECHO='print -r' | |
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
613 test "X$CONFIG_SHELL" != X/bin/ksh; then | |
614 # If we have ksh, try running configure again with it. | |
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
616 export ORIGINAL_CONFIG_SHELL | |
617 CONFIG_SHELL=/bin/ksh | |
618 export CONFIG_SHELL | |
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
620 else | |
621 # Try using printf. | |
622 ECHO='printf %s\n' | |
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
625 test "X$echo_testing_string" = "X$echo_test_string"; then | |
626 # Cool, printf works | |
627 : | |
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
629 test "X$echo_testing_string" = 'X\t' && | |
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
631 test "X$echo_testing_string" = "X$echo_test_string"; then | |
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
633 export CONFIG_SHELL | |
634 SHELL="$CONFIG_SHELL" | |
635 export SHELL | |
636 ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
638 test "X$echo_testing_string" = 'X\t' && | |
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
640 test "X$echo_testing_string" = "X$echo_test_string"; then | |
641 ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
642 else | |
643 # maybe with a smaller string... | |
644 prev=: | |
645 | |
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
648 then | |
649 break | |
650 fi | |
651 prev="$cmd" | |
652 done | |
653 | |
654 if test "$prev" != 'sed 50q "$0"'; then | |
655 echo_test_string=`eval $prev` | |
656 export echo_test_string | |
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
658 else | |
659 # Oops. We lost completely, so just stick with echo. | |
660 ECHO=echo | |
661 fi | |
662 fi | |
663 fi | |
664 fi | |
665 fi | |
666 fi | |
667 | |
668 # Copy echo and quote the copy suitably for passing to libtool from | |
669 # the Makefile, instead of quoting the original, which is used later. | |
670 lt_ECHO=$ECHO | |
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
673 fi | |
674 | |
675 | |
676 | |
677 | |
528 test -n "$DJDIR" || exec 7<&0 </dev/null | 678 test -n "$DJDIR" || exec 7<&0 </dev/null |
529 exec 6>&1 | 679 exec 6>&1 |
530 | 680 |
531 # Name of the host. | 681 # Name of the host. |
532 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
544 subdirs= | 694 subdirs= |
545 MFLAGS= | 695 MFLAGS= |
546 MAKEFLAGS= | 696 MAKEFLAGS= |
547 | 697 |
548 # Identity of this package. | 698 # Identity of this package. |
549 PACKAGE_NAME= | 699 PACKAGE_NAME='urweb' |
550 PACKAGE_TARNAME= | 700 PACKAGE_TARNAME='urweb' |
551 PACKAGE_VERSION= | 701 PACKAGE_VERSION='1.0' |
552 PACKAGE_STRING= | 702 PACKAGE_STRING='urweb 1.0' |
553 PACKAGE_BUGREPORT= | 703 PACKAGE_BUGREPORT='' |
554 PACKAGE_URL= | 704 PACKAGE_URL='' |
555 | 705 |
556 ac_unique_file="THIS_IS_URWEB" | 706 # Factoring default headers for most tests. |
557 ac_subst_vars='LTLIBOBJS | 707 ac_includes_default="\ |
708 #include <stdio.h> | |
709 #ifdef HAVE_SYS_TYPES_H | |
710 # include <sys/types.h> | |
711 #endif | |
712 #ifdef HAVE_SYS_STAT_H | |
713 # include <sys/stat.h> | |
714 #endif | |
715 #ifdef STDC_HEADERS | |
716 # include <stdlib.h> | |
717 # include <stddef.h> | |
718 #else | |
719 # ifdef HAVE_STDLIB_H | |
720 # include <stdlib.h> | |
721 # endif | |
722 #endif | |
723 #ifdef HAVE_STRING_H | |
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
725 # include <memory.h> | |
726 # endif | |
727 # include <string.h> | |
728 #endif | |
729 #ifdef HAVE_STRINGS_H | |
730 # include <strings.h> | |
731 #endif | |
732 #ifdef HAVE_INTTYPES_H | |
733 # include <inttypes.h> | |
734 #endif | |
735 #ifdef HAVE_STDINT_H | |
736 # include <stdint.h> | |
737 #endif | |
738 #ifdef HAVE_UNISTD_H | |
739 # include <unistd.h> | |
740 #endif" | |
741 | |
742 ac_subst_vars='am__EXEEXT_FALSE | |
743 am__EXEEXT_TRUE | |
744 LTLIBOBJS | |
558 LIBOBJS | 745 LIBOBJS |
559 do_not_edit | |
560 GCCARGS | 746 GCCARGS |
561 SITELISP | 747 SITELISP |
562 INCLUDE | 748 INCLUDE |
563 LIB | 749 LIB |
564 BIN | 750 BIN |
751 CPP | |
752 OTOOL64 | |
753 OTOOL | |
754 LIPO | |
755 NMEDIT | |
756 DSYMUTIL | |
757 lt_ECHO | |
758 RANLIB | |
759 AR | |
760 OBJDUMP | |
761 LN_S | |
762 NM | |
763 ac_ct_DUMPBIN | |
764 DUMPBIN | |
765 LD | |
766 FGREP | |
767 EGREP | |
768 GREP | |
769 SED | |
770 host_os | |
771 host_vendor | |
772 host_cpu | |
773 host | |
774 build_os | |
775 build_vendor | |
776 build_cpu | |
777 build | |
778 LIBTOOL | |
779 am__fastdepCC_FALSE | |
780 am__fastdepCC_TRUE | |
781 CCDEPMODE | |
782 AMDEPBACKSLASH | |
783 AMDEP_FALSE | |
784 AMDEP_TRUE | |
785 am__quote | |
786 am__include | |
787 DEPDIR | |
788 OBJEXT | |
789 EXEEXT | |
790 ac_ct_CC | |
791 CPPFLAGS | |
792 LDFLAGS | |
793 CFLAGS | |
794 CC | |
795 am__untar | |
796 am__tar | |
797 AMTAR | |
798 am__leading_dot | |
799 SET_MAKE | |
800 AWK | |
801 mkdir_p | |
802 MKDIR_P | |
803 INSTALL_STRIP_PROGRAM | |
804 STRIP | |
805 install_sh | |
806 MAKEINFO | |
807 AUTOHEADER | |
808 AUTOMAKE | |
809 AUTOCONF | |
810 ACLOCAL | |
811 VERSION | |
812 PACKAGE | |
813 CYGPATH_W | |
814 am__isrc | |
815 INSTALL_DATA | |
816 INSTALL_SCRIPT | |
817 INSTALL_PROGRAM | |
565 target_alias | 818 target_alias |
566 host_alias | 819 host_alias |
567 build_alias | 820 build_alias |
568 LIBS | 821 LIBS |
569 ECHO_T | 822 ECHO_T |
601 PATH_SEPARATOR | 854 PATH_SEPARATOR |
602 SHELL' | 855 SHELL' |
603 ac_subst_files='' | 856 ac_subst_files='' |
604 ac_user_opts=' | 857 ac_user_opts=' |
605 enable_option_checking | 858 enable_option_checking |
859 enable_dependency_tracking | |
860 enable_shared | |
861 enable_static | |
862 with_pic | |
863 enable_fast_install | |
864 with_gnu_ld | |
865 enable_libtool_lock | |
606 ' | 866 ' |
607 ac_precious_vars='build_alias | 867 ac_precious_vars='build_alias |
608 host_alias | 868 host_alias |
609 target_alias' | 869 target_alias |
870 CC | |
871 CFLAGS | |
872 LDFLAGS | |
873 LIBS | |
874 CPPFLAGS | |
875 CPP' | |
610 | 876 |
611 | 877 |
612 # Initialize some variables set by options. | 878 # Initialize some variables set by options. |
613 ac_init_help= | 879 ac_init_help= |
614 ac_init_version=false | 880 ac_init_version=false |
645 sysconfdir='${prefix}/etc' | 911 sysconfdir='${prefix}/etc' |
646 sharedstatedir='${prefix}/com' | 912 sharedstatedir='${prefix}/com' |
647 localstatedir='${prefix}/var' | 913 localstatedir='${prefix}/var' |
648 includedir='${prefix}/include' | 914 includedir='${prefix}/include' |
649 oldincludedir='/usr/include' | 915 oldincludedir='/usr/include' |
650 docdir='${datarootdir}/doc/${PACKAGE}' | 916 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
651 infodir='${datarootdir}/info' | 917 infodir='${datarootdir}/info' |
652 htmldir='${docdir}' | 918 htmldir='${docdir}' |
653 dvidir='${docdir}' | 919 dvidir='${docdir}' |
654 pdfdir='${docdir}' | 920 pdfdir='${docdir}' |
655 psdir='${docdir}' | 921 psdir='${docdir}' |
1146 # | 1412 # |
1147 if test "$ac_init_help" = "long"; then | 1413 if test "$ac_init_help" = "long"; then |
1148 # Omit some internal or obsolete options to make the list less imposing. | 1414 # Omit some internal or obsolete options to make the list less imposing. |
1149 # This message is too long to be a string in the A/UX 3.1 sh. | 1415 # This message is too long to be a string in the A/UX 3.1 sh. |
1150 cat <<_ACEOF | 1416 cat <<_ACEOF |
1151 \`configure' configures this package to adapt to many kinds of systems. | 1417 \`configure' configures urweb 1.0 to adapt to many kinds of systems. |
1152 | 1418 |
1153 Usage: $0 [OPTION]... [VAR=VALUE]... | 1419 Usage: $0 [OPTION]... [VAR=VALUE]... |
1154 | 1420 |
1155 To assign environment variables (e.g., CC, CFLAGS...), specify them as | 1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1156 VAR=VALUE. See below for descriptions of some of the useful variables. | 1422 VAR=VALUE. See below for descriptions of some of the useful variables. |
1194 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | 1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1195 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | 1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1196 --infodir=DIR info documentation [DATAROOTDIR/info] | 1462 --infodir=DIR info documentation [DATAROOTDIR/info] |
1197 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | 1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1198 --mandir=DIR man documentation [DATAROOTDIR/man] | 1464 --mandir=DIR man documentation [DATAROOTDIR/man] |
1199 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | 1465 --docdir=DIR documentation root [DATAROOTDIR/doc/urweb] |
1200 --htmldir=DIR html documentation [DOCDIR] | 1466 --htmldir=DIR html documentation [DOCDIR] |
1201 --dvidir=DIR dvi documentation [DOCDIR] | 1467 --dvidir=DIR dvi documentation [DOCDIR] |
1202 --pdfdir=DIR pdf documentation [DOCDIR] | 1468 --pdfdir=DIR pdf documentation [DOCDIR] |
1203 --psdir=DIR ps documentation [DOCDIR] | 1469 --psdir=DIR ps documentation [DOCDIR] |
1204 _ACEOF | 1470 _ACEOF |
1205 | 1471 |
1206 cat <<\_ACEOF | 1472 cat <<\_ACEOF |
1473 | |
1474 Program names: | |
1475 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1476 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1478 | |
1479 System types: | |
1480 --build=BUILD configure for building on BUILD [guessed] | |
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1207 _ACEOF | 1482 _ACEOF |
1208 fi | 1483 fi |
1209 | 1484 |
1210 if test -n "$ac_init_help"; then | 1485 if test -n "$ac_init_help"; then |
1211 | 1486 case $ac_init_help in |
1487 short | recursive ) echo "Configuration of urweb 1.0:";; | |
1488 esac | |
1212 cat <<\_ACEOF | 1489 cat <<\_ACEOF |
1490 | |
1491 Optional Features: | |
1492 --disable-option-checking ignore unrecognized --enable/--with options | |
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1495 --disable-dependency-tracking speeds up one-time build | |
1496 --enable-dependency-tracking do not reject slow dependency extractors | |
1497 --enable-shared[=PKGS] build shared libraries [default=yes] | |
1498 --enable-static[=PKGS] build static libraries [default=yes] | |
1499 --enable-fast-install[=PKGS] | |
1500 optimize for fast installation [default=yes] | |
1501 --disable-libtool-lock avoid locking (might break parallel builds) | |
1502 | |
1503 Optional Packages: | |
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1506 --with-pic try to use only PIC/non-PIC objects [default=use | |
1507 both] | |
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1509 | |
1510 Some influential environment variables: | |
1511 CC C compiler command | |
1512 CFLAGS C compiler flags | |
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1514 nonstandard directory <lib dir> | |
1515 LIBS libraries to pass to the linker, e.g. -l<library> | |
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1517 you have headers in a nonstandard directory <include dir> | |
1518 CPP C preprocessor | |
1519 | |
1520 Use these variables to override the choices made by `configure' or to help | |
1521 it to find libraries and programs with nonstandard names/locations. | |
1213 | 1522 |
1214 Report bugs to the package provider. | 1523 Report bugs to the package provider. |
1215 _ACEOF | 1524 _ACEOF |
1216 ac_status=$? | 1525 ac_status=$? |
1217 fi | 1526 fi |
1272 fi | 1581 fi |
1273 | 1582 |
1274 test -n "$ac_init_help" && exit $ac_status | 1583 test -n "$ac_init_help" && exit $ac_status |
1275 if $ac_init_version; then | 1584 if $ac_init_version; then |
1276 cat <<\_ACEOF | 1585 cat <<\_ACEOF |
1277 configure | 1586 urweb configure 1.0 |
1278 generated by GNU Autoconf 2.65 | 1587 generated by GNU Autoconf 2.65 |
1279 | 1588 |
1280 Copyright (C) 2009 Free Software Foundation, Inc. | 1589 Copyright (C) 2009 Free Software Foundation, Inc. |
1281 This configure script is free software; the Free Software Foundation | 1590 This configure script is free software; the Free Software Foundation |
1282 gives unlimited permission to copy, distribute and modify it. | 1591 gives unlimited permission to copy, distribute and modify it. |
1285 fi | 1594 fi |
1286 | 1595 |
1287 ## ------------------------ ## | 1596 ## ------------------------ ## |
1288 ## Autoconf initialization. ## | 1597 ## Autoconf initialization. ## |
1289 ## ------------------------ ## | 1598 ## ------------------------ ## |
1599 | |
1600 # ac_fn_c_try_compile LINENO | |
1601 # -------------------------- | |
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1603 ac_fn_c_try_compile () | |
1604 { | |
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1606 rm -f conftest.$ac_objext | |
1607 if { { ac_try="$ac_compile" | |
1608 case "(($ac_try" in | |
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1610 *) ac_try_echo=$ac_try;; | |
1611 esac | |
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1613 $as_echo "$ac_try_echo"; } >&5 | |
1614 (eval "$ac_compile") 2>conftest.err | |
1615 ac_status=$? | |
1616 if test -s conftest.err; then | |
1617 grep -v '^ *+' conftest.err >conftest.er1 | |
1618 cat conftest.er1 >&5 | |
1619 mv -f conftest.er1 conftest.err | |
1620 fi | |
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1622 test $ac_status = 0; } && { | |
1623 test -z "$ac_c_werror_flag" || | |
1624 test ! -s conftest.err | |
1625 } && test -s conftest.$ac_objext; then : | |
1626 ac_retval=0 | |
1627 else | |
1628 $as_echo "$as_me: failed program was:" >&5 | |
1629 sed 's/^/| /' conftest.$ac_ext >&5 | |
1630 | |
1631 ac_retval=1 | |
1632 fi | |
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1634 as_fn_set_status $ac_retval | |
1635 | |
1636 } # ac_fn_c_try_compile | |
1637 | |
1638 # ac_fn_c_try_link LINENO | |
1639 # ----------------------- | |
1640 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1641 ac_fn_c_try_link () | |
1642 { | |
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1644 rm -f conftest.$ac_objext conftest$ac_exeext | |
1645 if { { ac_try="$ac_link" | |
1646 case "(($ac_try" in | |
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1648 *) ac_try_echo=$ac_try;; | |
1649 esac | |
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1651 $as_echo "$ac_try_echo"; } >&5 | |
1652 (eval "$ac_link") 2>conftest.err | |
1653 ac_status=$? | |
1654 if test -s conftest.err; then | |
1655 grep -v '^ *+' conftest.err >conftest.er1 | |
1656 cat conftest.er1 >&5 | |
1657 mv -f conftest.er1 conftest.err | |
1658 fi | |
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1660 test $ac_status = 0; } && { | |
1661 test -z "$ac_c_werror_flag" || | |
1662 test ! -s conftest.err | |
1663 } && test -s conftest$ac_exeext && { | |
1664 test "$cross_compiling" = yes || | |
1665 $as_test_x conftest$ac_exeext | |
1666 }; then : | |
1667 ac_retval=0 | |
1668 else | |
1669 $as_echo "$as_me: failed program was:" >&5 | |
1670 sed 's/^/| /' conftest.$ac_ext >&5 | |
1671 | |
1672 ac_retval=1 | |
1673 fi | |
1674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1676 # interfere with the next link command; also delete a directory that is | |
1677 # left behind by Apple's compiler. We do this before executing the actions. | |
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1680 as_fn_set_status $ac_retval | |
1681 | |
1682 } # ac_fn_c_try_link | |
1683 | |
1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1685 # ------------------------------------------------------- | |
1686 # Tests whether HEADER exists and can be compiled using the include files in | |
1687 # INCLUDES, setting the cache variable VAR accordingly. | |
1688 ac_fn_c_check_header_compile () | |
1689 { | |
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1692 $as_echo_n "checking for $2... " >&6; } | |
1693 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1694 $as_echo_n "(cached) " >&6 | |
1695 else | |
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1697 /* end confdefs.h. */ | |
1698 $4 | |
1699 #include <$2> | |
1700 _ACEOF | |
1701 if ac_fn_c_try_compile "$LINENO"; then : | |
1702 eval "$3=yes" | |
1703 else | |
1704 eval "$3=no" | |
1705 fi | |
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1707 fi | |
1708 eval ac_res=\$$3 | |
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1710 $as_echo "$ac_res" >&6; } | |
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1712 | |
1713 } # ac_fn_c_check_header_compile | |
1714 | |
1715 # ac_fn_c_try_cpp LINENO | |
1716 # ---------------------- | |
1717 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1718 ac_fn_c_try_cpp () | |
1719 { | |
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1721 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1722 case "(($ac_try" in | |
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1724 *) ac_try_echo=$ac_try;; | |
1725 esac | |
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1727 $as_echo "$ac_try_echo"; } >&5 | |
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1729 ac_status=$? | |
1730 if test -s conftest.err; then | |
1731 grep -v '^ *+' conftest.err >conftest.er1 | |
1732 cat conftest.er1 >&5 | |
1733 mv -f conftest.er1 conftest.err | |
1734 fi | |
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1736 test $ac_status = 0; } >/dev/null && { | |
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1738 test ! -s conftest.err | |
1739 }; then : | |
1740 ac_retval=0 | |
1741 else | |
1742 $as_echo "$as_me: failed program was:" >&5 | |
1743 sed 's/^/| /' conftest.$ac_ext >&5 | |
1744 | |
1745 ac_retval=1 | |
1746 fi | |
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1748 as_fn_set_status $ac_retval | |
1749 | |
1750 } # ac_fn_c_try_cpp | |
1751 | |
1752 # ac_fn_c_try_run LINENO | |
1753 # ---------------------- | |
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1755 # that executables *can* be run. | |
1756 ac_fn_c_try_run () | |
1757 { | |
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1759 if { { ac_try="$ac_link" | |
1760 case "(($ac_try" in | |
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1762 *) ac_try_echo=$ac_try;; | |
1763 esac | |
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1765 $as_echo "$ac_try_echo"; } >&5 | |
1766 (eval "$ac_link") 2>&5 | |
1767 ac_status=$? | |
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1770 { { case "(($ac_try" in | |
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1772 *) ac_try_echo=$ac_try;; | |
1773 esac | |
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1775 $as_echo "$ac_try_echo"; } >&5 | |
1776 (eval "$ac_try") 2>&5 | |
1777 ac_status=$? | |
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1779 test $ac_status = 0; }; }; then : | |
1780 ac_retval=0 | |
1781 else | |
1782 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1783 $as_echo "$as_me: failed program was:" >&5 | |
1784 sed 's/^/| /' conftest.$ac_ext >&5 | |
1785 | |
1786 ac_retval=$ac_status | |
1787 fi | |
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1790 as_fn_set_status $ac_retval | |
1791 | |
1792 } # ac_fn_c_try_run | |
1793 | |
1794 # ac_fn_c_check_func LINENO FUNC VAR | |
1795 # ---------------------------------- | |
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1797 ac_fn_c_check_func () | |
1798 { | |
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1801 $as_echo_n "checking for $2... " >&6; } | |
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1803 $as_echo_n "(cached) " >&6 | |
1804 else | |
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1806 /* end confdefs.h. */ | |
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1809 #define $2 innocuous_$2 | |
1810 | |
1811 /* System header to define __stub macros and hopefully few prototypes, | |
1812 which can conflict with char $2 (); below. | |
1813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1814 <limits.h> exists even on freestanding compilers. */ | |
1815 | |
1816 #ifdef __STDC__ | |
1817 # include <limits.h> | |
1818 #else | |
1819 # include <assert.h> | |
1820 #endif | |
1821 | |
1822 #undef $2 | |
1823 | |
1824 /* Override any GCC internal prototype to avoid an error. | |
1825 Use char because int might match the return type of a GCC | |
1826 builtin and then its argument prototype would still apply. */ | |
1827 #ifdef __cplusplus | |
1828 extern "C" | |
1829 #endif | |
1830 char $2 (); | |
1831 /* The GNU C library defines this for functions which it implements | |
1832 to always fail with ENOSYS. Some functions are actually named | |
1833 something starting with __ and the normal name is an alias. */ | |
1834 #if defined __stub_$2 || defined __stub___$2 | |
1835 choke me | |
1836 #endif | |
1837 | |
1838 int | |
1839 main () | |
1840 { | |
1841 return $2 (); | |
1842 ; | |
1843 return 0; | |
1844 } | |
1845 _ACEOF | |
1846 if ac_fn_c_try_link "$LINENO"; then : | |
1847 eval "$3=yes" | |
1848 else | |
1849 eval "$3=no" | |
1850 fi | |
1851 rm -f core conftest.err conftest.$ac_objext \ | |
1852 conftest$ac_exeext conftest.$ac_ext | |
1853 fi | |
1854 eval ac_res=\$$3 | |
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1856 $as_echo "$ac_res" >&6; } | |
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1858 | |
1859 } # ac_fn_c_check_func | |
1290 cat >config.log <<_ACEOF | 1860 cat >config.log <<_ACEOF |
1291 This file contains any messages produced by compilers while | 1861 This file contains any messages produced by compilers while |
1292 running configure, to aid debugging if configure makes a mistake. | 1862 running configure, to aid debugging if configure makes a mistake. |
1293 | 1863 |
1294 It was created by $as_me, which was | 1864 It was created by urweb $as_me 1.0, which was |
1295 generated by GNU Autoconf 2.65. Invocation command line was | 1865 generated by GNU Autoconf 2.65. Invocation command line was |
1296 | 1866 |
1297 $ $0 $@ | 1867 $ $0 $@ |
1298 | 1868 |
1299 _ACEOF | 1869 _ACEOF |
1636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 2206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 2207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1638 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 2208 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1639 | 2209 |
1640 | 2210 |
1641 | 2211 am__api_version='1.11' |
1642 | 2212 |
1643 # sm: require a late-enough autoconf; this is the version number | 2213 ac_aux_dir= |
1644 # that's on manju, so I assume it's ok | 2214 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1645 | 2215 for ac_t in install-sh install.sh shtool; do |
1646 | 2216 if test -f "$ac_dir/$ac_t"; then |
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ur/Web" >&5 | 2217 ac_aux_dir=$ac_dir |
1648 $as_echo "$as_me: Configuring Ur/Web" >&6;} | 2218 ac_install_sh="$ac_aux_dir/$ac_t -c" |
1649 | 2219 break 2 |
1650 # make sure I haven't forgotten to run autoconf | 2220 fi |
1651 if test configure -ot configure.ac; then | 2221 done |
1652 as_fn_error "configure is older than configure.in; you forgot to run autoconf" "$LINENO" 5 | 2222 done |
1653 fi | 2223 if test -z "$ac_aux_dir"; then |
1654 | 2224 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
1655 # ---------------- generic functions ----------------- | 2225 fi |
1656 # debugging diagnostic; set to 'echo' to debug or 'true' for production | 2226 |
1657 diagnostic() { | 2227 # These three variables are undocumented and unsupported, |
1658 #echo "$@" | 2228 # and are intended to be withdrawn in a future Autoconf release. |
1659 true "$@" | 2229 # They can cause serious problems if a builder's source tree is in a directory |
2230 # whose full name contains unusual characters. | |
2231 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2232 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2233 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2234 | |
2235 | |
2236 # Find a good install program. We prefer a C program (faster), | |
2237 # so one script is as good as another. But avoid the broken or | |
2238 # incompatible versions: | |
2239 # SysV /etc/install, /usr/sbin/install | |
2240 # SunOS /usr/etc/install | |
2241 # IRIX /sbin/install | |
2242 # AIX /bin/install | |
2243 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2247 # OS/2's system install, which has a completely different semantic | |
2248 # ./install, which can be erroneously created by make from ./install.sh. | |
2249 # Reject install programs that cannot install multiple files. | |
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2251 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2252 if test -z "$INSTALL"; then | |
2253 if test "${ac_cv_path_install+set}" = set; then : | |
2254 $as_echo_n "(cached) " >&6 | |
2255 else | |
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2257 for as_dir in $PATH | |
2258 do | |
2259 IFS=$as_save_IFS | |
2260 test -z "$as_dir" && as_dir=. | |
2261 # Account for people who put trailing slashes in PATH elements. | |
2262 case $as_dir/ in #(( | |
2263 ./ | .// | /[cC]/* | \ | |
2264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2265 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2266 /usr/ucb/* ) ;; | |
2267 *) | |
2268 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2269 # Don't use installbsd from OSF since it installs stuff as root | |
2270 # by default. | |
2271 for ac_prog in ginstall scoinst install; do | |
2272 for ac_exec_ext in '' $ac_executable_extensions; do | |
2273 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2274 if test $ac_prog = install && | |
2275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2276 # AIX install. It has an incompatible calling convention. | |
2277 : | |
2278 elif test $ac_prog = install && | |
2279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2280 # program-specific install script used by HP pwplus--don't use. | |
2281 : | |
2282 else | |
2283 rm -rf conftest.one conftest.two conftest.dir | |
2284 echo one > conftest.one | |
2285 echo two > conftest.two | |
2286 mkdir conftest.dir | |
2287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2288 test -s conftest.one && test -s conftest.two && | |
2289 test -s conftest.dir/conftest.one && | |
2290 test -s conftest.dir/conftest.two | |
2291 then | |
2292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2293 break 3 | |
2294 fi | |
2295 fi | |
2296 fi | |
2297 done | |
2298 done | |
2299 ;; | |
2300 esac | |
2301 | |
2302 done | |
2303 IFS=$as_save_IFS | |
2304 | |
2305 rm -rf conftest.one conftest.two conftest.dir | |
2306 | |
2307 fi | |
2308 if test "${ac_cv_path_install+set}" = set; then | |
2309 INSTALL=$ac_cv_path_install | |
2310 else | |
2311 # As a last resort, use the slow shell script. Don't cache a | |
2312 # value for INSTALL within a source directory, because that will | |
2313 # break other packages using the cache if that directory is | |
2314 # removed, or if the value is a relative name. | |
2315 INSTALL=$ac_install_sh | |
2316 fi | |
2317 fi | |
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2319 $as_echo "$INSTALL" >&6; } | |
2320 | |
2321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2322 # It thinks the first close brace ends the variable substitution. | |
2323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2324 | |
2325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2326 | |
2327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2328 | |
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2330 $as_echo_n "checking whether build environment is sane... " >&6; } | |
2331 # Just in case | |
2332 sleep 1 | |
2333 echo timestamp > conftest.file | |
2334 # Reject unsafe characters in $srcdir or the absolute working directory | |
2335 # name. Accept space and tab only in the latter. | |
2336 am_lf=' | |
2337 ' | |
2338 case `pwd` in | |
2339 *[\\\"\#\$\&\'\`$am_lf]*) | |
2340 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
2341 esac | |
2342 case $srcdir in | |
2343 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2344 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
2345 esac | |
2346 | |
2347 # Do `set' in a subshell so we don't clobber the current shell's | |
2348 # arguments. Must try -L first in case configure is actually a | |
2349 # symlink; some systems play weird games with the mod time of symlinks | |
2350 # (eg FreeBSD returns the mod time of the symlink's containing | |
2351 # directory). | |
2352 if ( | |
2353 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2354 if test "$*" = "X"; then | |
2355 # -L didn't work. | |
2356 set X `ls -t "$srcdir/configure" conftest.file` | |
2357 fi | |
2358 rm -f conftest.file | |
2359 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2360 && test "$*" != "X conftest.file $srcdir/configure"; then | |
2361 | |
2362 # If neither matched, then we have a broken ls. This can happen | |
2363 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2364 # broken ls alias from the environment. This has actually | |
2365 # happened. Such a system could not be considered "sane". | |
2366 as_fn_error "ls -t appears to fail. Make sure there is not a broken | |
2367 alias in your environment" "$LINENO" 5 | |
2368 fi | |
2369 | |
2370 test "$2" = conftest.file | |
2371 ) | |
2372 then | |
2373 # Ok. | |
2374 : | |
2375 else | |
2376 as_fn_error "newly created file is older than distributed files! | |
2377 Check your system clock" "$LINENO" 5 | |
2378 fi | |
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2380 $as_echo "yes" >&6; } | |
2381 test "$program_prefix" != NONE && | |
2382 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2383 # Use a double $ so make ignores it. | |
2384 test "$program_suffix" != NONE && | |
2385 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2386 # Double any \ or $. | |
2387 # By default was `s,x,x', remove it if useless. | |
2388 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2389 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2390 | |
2391 # expand $ac_aux_dir to an absolute path | |
2392 am_aux_dir=`cd $ac_aux_dir && pwd` | |
2393 | |
2394 if test x"${MISSING+set}" != xset; then | |
2395 case $am_aux_dir in | |
2396 *\ * | *\ *) | |
2397 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2398 *) | |
2399 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2400 esac | |
2401 fi | |
2402 # Use eval to expand $SHELL | |
2403 if eval "$MISSING --run true"; then | |
2404 am_missing_run="$MISSING --run " | |
2405 else | |
2406 am_missing_run= | |
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
2408 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2409 fi | |
2410 | |
2411 if test x"${install_sh}" != xset; then | |
2412 case $am_aux_dir in | |
2413 *\ * | *\ *) | |
2414 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2415 *) | |
2416 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2417 esac | |
2418 fi | |
2419 | |
2420 # Installed binaries are usually stripped using `strip' when the user | |
2421 # run `make install-strip'. However `strip' might not be the right | |
2422 # tool to use in cross-compilation environments, therefore Automake | |
2423 # will honor the `STRIP' environment variable to overrule this program. | |
2424 if test "$cross_compiling" != no; then | |
2425 if test -n "$ac_tool_prefix"; then | |
2426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2427 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2429 $as_echo_n "checking for $ac_word... " >&6; } | |
2430 if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2431 $as_echo_n "(cached) " >&6 | |
2432 else | |
2433 if test -n "$STRIP"; then | |
2434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2435 else | |
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2437 for as_dir in $PATH | |
2438 do | |
2439 IFS=$as_save_IFS | |
2440 test -z "$as_dir" && as_dir=. | |
2441 for ac_exec_ext in '' $ac_executable_extensions; do | |
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2443 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2445 break 2 | |
2446 fi | |
2447 done | |
2448 done | |
2449 IFS=$as_save_IFS | |
2450 | |
2451 fi | |
2452 fi | |
2453 STRIP=$ac_cv_prog_STRIP | |
2454 if test -n "$STRIP"; then | |
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2456 $as_echo "$STRIP" >&6; } | |
2457 else | |
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2459 $as_echo "no" >&6; } | |
2460 fi | |
2461 | |
2462 | |
2463 fi | |
2464 if test -z "$ac_cv_prog_STRIP"; then | |
2465 ac_ct_STRIP=$STRIP | |
2466 # Extract the first word of "strip", so it can be a program name with args. | |
2467 set dummy strip; ac_word=$2 | |
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2469 $as_echo_n "checking for $ac_word... " >&6; } | |
2470 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2471 $as_echo_n "(cached) " >&6 | |
2472 else | |
2473 if test -n "$ac_ct_STRIP"; then | |
2474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2475 else | |
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2477 for as_dir in $PATH | |
2478 do | |
2479 IFS=$as_save_IFS | |
2480 test -z "$as_dir" && as_dir=. | |
2481 for ac_exec_ext in '' $ac_executable_extensions; do | |
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2483 ac_cv_prog_ac_ct_STRIP="strip" | |
2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2485 break 2 | |
2486 fi | |
2487 done | |
2488 done | |
2489 IFS=$as_save_IFS | |
2490 | |
2491 fi | |
2492 fi | |
2493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2494 if test -n "$ac_ct_STRIP"; then | |
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2496 $as_echo "$ac_ct_STRIP" >&6; } | |
2497 else | |
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2499 $as_echo "no" >&6; } | |
2500 fi | |
2501 | |
2502 if test "x$ac_ct_STRIP" = x; then | |
2503 STRIP=":" | |
2504 else | |
2505 case $cross_compiling:$ac_tool_warned in | |
2506 yes:) | |
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2509 ac_tool_warned=yes ;; | |
2510 esac | |
2511 STRIP=$ac_ct_STRIP | |
2512 fi | |
2513 else | |
2514 STRIP="$ac_cv_prog_STRIP" | |
2515 fi | |
2516 | |
2517 fi | |
2518 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2519 | |
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2521 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2522 if test -z "$MKDIR_P"; then | |
2523 if test "${ac_cv_path_mkdir+set}" = set; then : | |
2524 $as_echo_n "(cached) " >&6 | |
2525 else | |
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2527 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2528 do | |
2529 IFS=$as_save_IFS | |
2530 test -z "$as_dir" && as_dir=. | |
2531 for ac_prog in mkdir gmkdir; do | |
2532 for ac_exec_ext in '' $ac_executable_extensions; do | |
2533 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
2534 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2535 'mkdir (GNU coreutils) '* | \ | |
2536 'mkdir (coreutils) '* | \ | |
2537 'mkdir (fileutils) '4.1*) | |
2538 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2539 break 3;; | |
2540 esac | |
2541 done | |
2542 done | |
2543 done | |
2544 IFS=$as_save_IFS | |
2545 | |
2546 fi | |
2547 | |
2548 test -d ./--version && rmdir ./--version | |
2549 if test "${ac_cv_path_mkdir+set}" = set; then | |
2550 MKDIR_P="$ac_cv_path_mkdir -p" | |
2551 else | |
2552 # As a last resort, use the slow shell script. Don't cache a | |
2553 # value for MKDIR_P within a source directory, because that will | |
2554 # break other packages using the cache if that directory is | |
2555 # removed, or if the value is a relative name. | |
2556 MKDIR_P="$ac_install_sh -d" | |
2557 fi | |
2558 fi | |
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2560 $as_echo "$MKDIR_P" >&6; } | |
2561 | |
2562 mkdir_p="$MKDIR_P" | |
2563 case $mkdir_p in | |
2564 [\\/$]* | ?:[\\/]*) ;; | |
2565 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2566 esac | |
2567 | |
2568 for ac_prog in gawk mawk nawk awk | |
2569 do | |
2570 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2571 set dummy $ac_prog; ac_word=$2 | |
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2573 $as_echo_n "checking for $ac_word... " >&6; } | |
2574 if test "${ac_cv_prog_AWK+set}" = set; then : | |
2575 $as_echo_n "(cached) " >&6 | |
2576 else | |
2577 if test -n "$AWK"; then | |
2578 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2579 else | |
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2581 for as_dir in $PATH | |
2582 do | |
2583 IFS=$as_save_IFS | |
2584 test -z "$as_dir" && as_dir=. | |
2585 for ac_exec_ext in '' $ac_executable_extensions; do | |
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2587 ac_cv_prog_AWK="$ac_prog" | |
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2589 break 2 | |
2590 fi | |
2591 done | |
2592 done | |
2593 IFS=$as_save_IFS | |
2594 | |
2595 fi | |
2596 fi | |
2597 AWK=$ac_cv_prog_AWK | |
2598 if test -n "$AWK"; then | |
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2600 $as_echo "$AWK" >&6; } | |
2601 else | |
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2603 $as_echo "no" >&6; } | |
2604 fi | |
2605 | |
2606 | |
2607 test -n "$AWK" && break | |
2608 done | |
2609 | |
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2611 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2612 set x ${MAKE-make} | |
2613 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2614 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
2615 $as_echo_n "(cached) " >&6 | |
2616 else | |
2617 cat >conftest.make <<\_ACEOF | |
2618 SHELL = /bin/sh | |
2619 all: | |
2620 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2621 _ACEOF | |
2622 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2623 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2624 *@@@%%%=?*=@@@%%%*) | |
2625 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2626 *) | |
2627 eval ac_cv_prog_make_${ac_make}_set=no;; | |
2628 esac | |
2629 rm -f conftest.make | |
2630 fi | |
2631 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2633 $as_echo "yes" >&6; } | |
2634 SET_MAKE= | |
2635 else | |
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2637 $as_echo "no" >&6; } | |
2638 SET_MAKE="MAKE=${MAKE-make}" | |
2639 fi | |
2640 | |
2641 rm -rf .tst 2>/dev/null | |
2642 mkdir .tst 2>/dev/null | |
2643 if test -d .tst; then | |
2644 am__leading_dot=. | |
2645 else | |
2646 am__leading_dot=_ | |
2647 fi | |
2648 rmdir .tst 2>/dev/null | |
2649 | |
2650 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2651 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2652 # is not polluted with repeated "-I." | |
2653 am__isrc=' -I$(srcdir)' | |
2654 # test to see if srcdir already configured | |
2655 if test -f $srcdir/config.status; then | |
2656 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2657 fi | |
2658 fi | |
2659 | |
2660 # test whether we have cygpath | |
2661 if test -z "$CYGPATH_W"; then | |
2662 if (cygpath --version) >/dev/null 2>/dev/null; then | |
2663 CYGPATH_W='cygpath -w' | |
2664 else | |
2665 CYGPATH_W=echo | |
2666 fi | |
2667 fi | |
2668 | |
2669 | |
2670 # Define the identity of the package. | |
2671 PACKAGE='urweb' | |
2672 VERSION='1.0' | |
2673 | |
2674 | |
2675 cat >>confdefs.h <<_ACEOF | |
2676 #define PACKAGE "$PACKAGE" | |
2677 _ACEOF | |
2678 | |
2679 | |
2680 cat >>confdefs.h <<_ACEOF | |
2681 #define VERSION "$VERSION" | |
2682 _ACEOF | |
2683 | |
2684 # Some tools Automake needs. | |
2685 | |
2686 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2687 | |
2688 | |
2689 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2690 | |
2691 | |
2692 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2693 | |
2694 | |
2695 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2696 | |
2697 | |
2698 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2699 | |
2700 # We need awk for the "check" target. The system "awk" is bad on | |
2701 # some platforms. | |
2702 # Always define AMTAR for backward compatibility. | |
2703 | |
2704 AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2705 | |
2706 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2707 | |
2708 | |
2709 | |
2710 | |
2711 | |
2712 ac_ext=c | |
2713 ac_cpp='$CPP $CPPFLAGS' | |
2714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2716 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2717 if test -n "$ac_tool_prefix"; then | |
2718 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2719 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2721 $as_echo_n "checking for $ac_word... " >&6; } | |
2722 if test "${ac_cv_prog_CC+set}" = set; then : | |
2723 $as_echo_n "(cached) " >&6 | |
2724 else | |
2725 if test -n "$CC"; then | |
2726 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2727 else | |
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2729 for as_dir in $PATH | |
2730 do | |
2731 IFS=$as_save_IFS | |
2732 test -z "$as_dir" && as_dir=. | |
2733 for ac_exec_ext in '' $ac_executable_extensions; do | |
2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2735 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2737 break 2 | |
2738 fi | |
2739 done | |
2740 done | |
2741 IFS=$as_save_IFS | |
2742 | |
2743 fi | |
2744 fi | |
2745 CC=$ac_cv_prog_CC | |
2746 if test -n "$CC"; then | |
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2748 $as_echo "$CC" >&6; } | |
2749 else | |
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2751 $as_echo "no" >&6; } | |
2752 fi | |
2753 | |
2754 | |
2755 fi | |
2756 if test -z "$ac_cv_prog_CC"; then | |
2757 ac_ct_CC=$CC | |
2758 # Extract the first word of "gcc", so it can be a program name with args. | |
2759 set dummy gcc; ac_word=$2 | |
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2761 $as_echo_n "checking for $ac_word... " >&6; } | |
2762 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2763 $as_echo_n "(cached) " >&6 | |
2764 else | |
2765 if test -n "$ac_ct_CC"; then | |
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2767 else | |
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2769 for as_dir in $PATH | |
2770 do | |
2771 IFS=$as_save_IFS | |
2772 test -z "$as_dir" && as_dir=. | |
2773 for ac_exec_ext in '' $ac_executable_extensions; do | |
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2775 ac_cv_prog_ac_ct_CC="gcc" | |
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2777 break 2 | |
2778 fi | |
2779 done | |
2780 done | |
2781 IFS=$as_save_IFS | |
2782 | |
2783 fi | |
2784 fi | |
2785 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2786 if test -n "$ac_ct_CC"; then | |
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2788 $as_echo "$ac_ct_CC" >&6; } | |
2789 else | |
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2791 $as_echo "no" >&6; } | |
2792 fi | |
2793 | |
2794 if test "x$ac_ct_CC" = x; then | |
2795 CC="" | |
2796 else | |
2797 case $cross_compiling:$ac_tool_warned in | |
2798 yes:) | |
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2801 ac_tool_warned=yes ;; | |
2802 esac | |
2803 CC=$ac_ct_CC | |
2804 fi | |
2805 else | |
2806 CC="$ac_cv_prog_CC" | |
2807 fi | |
2808 | |
2809 if test -z "$CC"; then | |
2810 if test -n "$ac_tool_prefix"; then | |
2811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2812 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2814 $as_echo_n "checking for $ac_word... " >&6; } | |
2815 if test "${ac_cv_prog_CC+set}" = set; then : | |
2816 $as_echo_n "(cached) " >&6 | |
2817 else | |
2818 if test -n "$CC"; then | |
2819 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2820 else | |
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2822 for as_dir in $PATH | |
2823 do | |
2824 IFS=$as_save_IFS | |
2825 test -z "$as_dir" && as_dir=. | |
2826 for ac_exec_ext in '' $ac_executable_extensions; do | |
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2828 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2830 break 2 | |
2831 fi | |
2832 done | |
2833 done | |
2834 IFS=$as_save_IFS | |
2835 | |
2836 fi | |
2837 fi | |
2838 CC=$ac_cv_prog_CC | |
2839 if test -n "$CC"; then | |
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2841 $as_echo "$CC" >&6; } | |
2842 else | |
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2844 $as_echo "no" >&6; } | |
2845 fi | |
2846 | |
2847 | |
2848 fi | |
2849 fi | |
2850 if test -z "$CC"; then | |
2851 # Extract the first word of "cc", so it can be a program name with args. | |
2852 set dummy cc; ac_word=$2 | |
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2854 $as_echo_n "checking for $ac_word... " >&6; } | |
2855 if test "${ac_cv_prog_CC+set}" = set; then : | |
2856 $as_echo_n "(cached) " >&6 | |
2857 else | |
2858 if test -n "$CC"; then | |
2859 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2860 else | |
2861 ac_prog_rejected=no | |
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2863 for as_dir in $PATH | |
2864 do | |
2865 IFS=$as_save_IFS | |
2866 test -z "$as_dir" && as_dir=. | |
2867 for ac_exec_ext in '' $ac_executable_extensions; do | |
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2870 ac_prog_rejected=yes | |
2871 continue | |
2872 fi | |
2873 ac_cv_prog_CC="cc" | |
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2875 break 2 | |
2876 fi | |
2877 done | |
2878 done | |
2879 IFS=$as_save_IFS | |
2880 | |
2881 if test $ac_prog_rejected = yes; then | |
2882 # We found a bogon in the path, so make sure we never use it. | |
2883 set dummy $ac_cv_prog_CC | |
2884 shift | |
2885 if test $# != 0; then | |
2886 # We chose a different compiler from the bogus one. | |
2887 # However, it has the same basename, so the bogon will be chosen | |
2888 # first if we set CC to just the basename; use the full file name. | |
2889 shift | |
2890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2891 fi | |
2892 fi | |
2893 fi | |
2894 fi | |
2895 CC=$ac_cv_prog_CC | |
2896 if test -n "$CC"; then | |
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2898 $as_echo "$CC" >&6; } | |
2899 else | |
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2901 $as_echo "no" >&6; } | |
2902 fi | |
2903 | |
2904 | |
2905 fi | |
2906 if test -z "$CC"; then | |
2907 if test -n "$ac_tool_prefix"; then | |
2908 for ac_prog in cl.exe | |
2909 do | |
2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2913 $as_echo_n "checking for $ac_word... " >&6; } | |
2914 if test "${ac_cv_prog_CC+set}" = set; then : | |
2915 $as_echo_n "(cached) " >&6 | |
2916 else | |
2917 if test -n "$CC"; then | |
2918 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2919 else | |
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2921 for as_dir in $PATH | |
2922 do | |
2923 IFS=$as_save_IFS | |
2924 test -z "$as_dir" && as_dir=. | |
2925 for ac_exec_ext in '' $ac_executable_extensions; do | |
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2929 break 2 | |
2930 fi | |
2931 done | |
2932 done | |
2933 IFS=$as_save_IFS | |
2934 | |
2935 fi | |
2936 fi | |
2937 CC=$ac_cv_prog_CC | |
2938 if test -n "$CC"; then | |
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2940 $as_echo "$CC" >&6; } | |
2941 else | |
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2943 $as_echo "no" >&6; } | |
2944 fi | |
2945 | |
2946 | |
2947 test -n "$CC" && break | |
2948 done | |
2949 fi | |
2950 if test -z "$CC"; then | |
2951 ac_ct_CC=$CC | |
2952 for ac_prog in cl.exe | |
2953 do | |
2954 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2955 set dummy $ac_prog; ac_word=$2 | |
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2957 $as_echo_n "checking for $ac_word... " >&6; } | |
2958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2959 $as_echo_n "(cached) " >&6 | |
2960 else | |
2961 if test -n "$ac_ct_CC"; then | |
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2963 else | |
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2965 for as_dir in $PATH | |
2966 do | |
2967 IFS=$as_save_IFS | |
2968 test -z "$as_dir" && as_dir=. | |
2969 for ac_exec_ext in '' $ac_executable_extensions; do | |
2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2971 ac_cv_prog_ac_ct_CC="$ac_prog" | |
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2973 break 2 | |
2974 fi | |
2975 done | |
2976 done | |
2977 IFS=$as_save_IFS | |
2978 | |
2979 fi | |
2980 fi | |
2981 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2982 if test -n "$ac_ct_CC"; then | |
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2984 $as_echo "$ac_ct_CC" >&6; } | |
2985 else | |
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2987 $as_echo "no" >&6; } | |
2988 fi | |
2989 | |
2990 | |
2991 test -n "$ac_ct_CC" && break | |
2992 done | |
2993 | |
2994 if test "x$ac_ct_CC" = x; then | |
2995 CC="" | |
2996 else | |
2997 case $cross_compiling:$ac_tool_warned in | |
2998 yes:) | |
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3001 ac_tool_warned=yes ;; | |
3002 esac | |
3003 CC=$ac_ct_CC | |
3004 fi | |
3005 fi | |
3006 | |
3007 fi | |
3008 | |
3009 | |
3010 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3012 as_fn_error "no acceptable C compiler found in \$PATH | |
3013 See \`config.log' for more details." "$LINENO" 5; } | |
3014 | |
3015 # Provide some information about the compiler. | |
3016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3017 set X $ac_compile | |
3018 ac_compiler=$2 | |
3019 for ac_option in --version -v -V -qversion; do | |
3020 { { ac_try="$ac_compiler $ac_option >&5" | |
3021 case "(($ac_try" in | |
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3023 *) ac_try_echo=$ac_try;; | |
3024 esac | |
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3026 $as_echo "$ac_try_echo"; } >&5 | |
3027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3028 ac_status=$? | |
3029 if test -s conftest.err; then | |
3030 sed '10a\ | |
3031 ... rest of stderr output deleted ... | |
3032 10q' conftest.err >conftest.er1 | |
3033 cat conftest.er1 >&5 | |
3034 fi | |
3035 rm -f conftest.er1 conftest.err | |
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3037 test $ac_status = 0; } | |
3038 done | |
3039 | |
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3041 /* end confdefs.h. */ | |
3042 | |
3043 int | |
3044 main () | |
3045 { | |
3046 | |
3047 ; | |
3048 return 0; | |
1660 } | 3049 } |
3050 _ACEOF | |
3051 ac_clean_files_save=$ac_clean_files | |
3052 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3053 # Try to create an executable without -o first, disregard a.out. | |
3054 # It will help us diagnose broken compilers, and finding out an intuition | |
3055 # of exeext. | |
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3057 $as_echo_n "checking whether the C compiler works... " >&6; } | |
3058 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3059 | |
3060 # The possible output files: | |
3061 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3062 | |
3063 ac_rmfiles= | |
3064 for ac_file in $ac_files | |
3065 do | |
3066 case $ac_file in | |
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3068 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3069 esac | |
3070 done | |
3071 rm -f $ac_rmfiles | |
3072 | |
3073 if { { ac_try="$ac_link_default" | |
3074 case "(($ac_try" in | |
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3076 *) ac_try_echo=$ac_try;; | |
3077 esac | |
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3079 $as_echo "$ac_try_echo"; } >&5 | |
3080 (eval "$ac_link_default") 2>&5 | |
3081 ac_status=$? | |
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3083 test $ac_status = 0; }; then : | |
3084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3085 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3086 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3087 # so that the user can short-circuit this test for compilers unknown to | |
3088 # Autoconf. | |
3089 for ac_file in $ac_files '' | |
3090 do | |
3091 test -f "$ac_file" || continue | |
3092 case $ac_file in | |
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3094 ;; | |
3095 [ab].out ) | |
3096 # We found the default executable, but exeext='' is most | |
3097 # certainly right. | |
3098 break;; | |
3099 *.* ) | |
3100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3101 then :; else | |
3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3103 fi | |
3104 # We set ac_cv_exeext here because the later test for it is not | |
3105 # safe: cross compilers may not add the suffix if given an `-o' | |
3106 # argument, so we may need to know it at that point already. | |
3107 # Even if this section looks crufty: it has the advantage of | |
3108 # actually working. | |
3109 break;; | |
3110 * ) | |
3111 break;; | |
3112 esac | |
3113 done | |
3114 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3115 | |
3116 else | |
3117 ac_file='' | |
3118 fi | |
3119 if test -z "$ac_file"; then : | |
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3121 $as_echo "no" >&6; } | |
3122 $as_echo "$as_me: failed program was:" >&5 | |
3123 sed 's/^/| /' conftest.$ac_ext >&5 | |
3124 | |
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3127 { as_fn_set_status 77 | |
3128 as_fn_error "C compiler cannot create executables | |
3129 See \`config.log' for more details." "$LINENO" 5; }; } | |
3130 else | |
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3132 $as_echo "yes" >&6; } | |
3133 fi | |
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3135 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3137 $as_echo "$ac_file" >&6; } | |
3138 ac_exeext=$ac_cv_exeext | |
3139 | |
3140 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3141 ac_clean_files=$ac_clean_files_save | |
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3143 $as_echo_n "checking for suffix of executables... " >&6; } | |
3144 if { { ac_try="$ac_link" | |
3145 case "(($ac_try" in | |
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3147 *) ac_try_echo=$ac_try;; | |
3148 esac | |
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3150 $as_echo "$ac_try_echo"; } >&5 | |
3151 (eval "$ac_link") 2>&5 | |
3152 ac_status=$? | |
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3154 test $ac_status = 0; }; then : | |
3155 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3156 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3157 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3158 # `rm'. | |
3159 for ac_file in conftest.exe conftest conftest.*; do | |
3160 test -f "$ac_file" || continue | |
3161 case $ac_file in | |
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3164 break;; | |
3165 * ) break;; | |
3166 esac | |
3167 done | |
3168 else | |
3169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3171 as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3172 See \`config.log' for more details." "$LINENO" 5; } | |
3173 fi | |
3174 rm -f conftest conftest$ac_cv_exeext | |
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3176 $as_echo "$ac_cv_exeext" >&6; } | |
3177 | |
3178 rm -f conftest.$ac_ext | |
3179 EXEEXT=$ac_cv_exeext | |
3180 ac_exeext=$EXEEXT | |
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3182 /* end confdefs.h. */ | |
3183 #include <stdio.h> | |
3184 int | |
3185 main () | |
3186 { | |
3187 FILE *f = fopen ("conftest.out", "w"); | |
3188 return ferror (f) || fclose (f) != 0; | |
3189 | |
3190 ; | |
3191 return 0; | |
3192 } | |
3193 _ACEOF | |
3194 ac_clean_files="$ac_clean_files conftest.out" | |
3195 # Check that the compiler produces executables we can run. If not, either | |
3196 # the compiler is broken, or we cross compile. | |
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3198 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3199 if test "$cross_compiling" != yes; then | |
3200 { { ac_try="$ac_link" | |
3201 case "(($ac_try" in | |
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3203 *) ac_try_echo=$ac_try;; | |
3204 esac | |
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3206 $as_echo "$ac_try_echo"; } >&5 | |
3207 (eval "$ac_link") 2>&5 | |
3208 ac_status=$? | |
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3210 test $ac_status = 0; } | |
3211 if { ac_try='./conftest$ac_cv_exeext' | |
3212 { { case "(($ac_try" in | |
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3214 *) ac_try_echo=$ac_try;; | |
3215 esac | |
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3217 $as_echo "$ac_try_echo"; } >&5 | |
3218 (eval "$ac_try") 2>&5 | |
3219 ac_status=$? | |
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3221 test $ac_status = 0; }; }; then | |
3222 cross_compiling=no | |
3223 else | |
3224 if test "$cross_compiling" = maybe; then | |
3225 cross_compiling=yes | |
3226 else | |
3227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3229 as_fn_error "cannot run C compiled programs. | |
3230 If you meant to cross compile, use \`--host'. | |
3231 See \`config.log' for more details." "$LINENO" 5; } | |
3232 fi | |
3233 fi | |
3234 fi | |
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3236 $as_echo "$cross_compiling" >&6; } | |
3237 | |
3238 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3239 ac_clean_files=$ac_clean_files_save | |
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3241 $as_echo_n "checking for suffix of object files... " >&6; } | |
3242 if test "${ac_cv_objext+set}" = set; then : | |
3243 $as_echo_n "(cached) " >&6 | |
3244 else | |
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3246 /* end confdefs.h. */ | |
3247 | |
3248 int | |
3249 main () | |
3250 { | |
3251 | |
3252 ; | |
3253 return 0; | |
3254 } | |
3255 _ACEOF | |
3256 rm -f conftest.o conftest.obj | |
3257 if { { ac_try="$ac_compile" | |
3258 case "(($ac_try" in | |
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3260 *) ac_try_echo=$ac_try;; | |
3261 esac | |
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3263 $as_echo "$ac_try_echo"; } >&5 | |
3264 (eval "$ac_compile") 2>&5 | |
3265 ac_status=$? | |
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3267 test $ac_status = 0; }; then : | |
3268 for ac_file in conftest.o conftest.obj conftest.*; do | |
3269 test -f "$ac_file" || continue; | |
3270 case $ac_file in | |
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3273 break;; | |
3274 esac | |
3275 done | |
3276 else | |
3277 $as_echo "$as_me: failed program was:" >&5 | |
3278 sed 's/^/| /' conftest.$ac_ext >&5 | |
3279 | |
3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3282 as_fn_error "cannot compute suffix of object files: cannot compile | |
3283 See \`config.log' for more details." "$LINENO" 5; } | |
3284 fi | |
3285 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3286 fi | |
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3288 $as_echo "$ac_cv_objext" >&6; } | |
3289 OBJEXT=$ac_cv_objext | |
3290 ac_objext=$OBJEXT | |
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3292 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3293 if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3294 $as_echo_n "(cached) " >&6 | |
3295 else | |
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3297 /* end confdefs.h. */ | |
3298 | |
3299 int | |
3300 main () | |
3301 { | |
3302 #ifndef __GNUC__ | |
3303 choke me | |
3304 #endif | |
3305 | |
3306 ; | |
3307 return 0; | |
3308 } | |
3309 _ACEOF | |
3310 if ac_fn_c_try_compile "$LINENO"; then : | |
3311 ac_compiler_gnu=yes | |
3312 else | |
3313 ac_compiler_gnu=no | |
3314 fi | |
3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3316 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3317 | |
3318 fi | |
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3320 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3321 if test $ac_compiler_gnu = yes; then | |
3322 GCC=yes | |
3323 else | |
3324 GCC= | |
3325 fi | |
3326 ac_test_CFLAGS=${CFLAGS+set} | |
3327 ac_save_CFLAGS=$CFLAGS | |
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3329 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3330 if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3331 $as_echo_n "(cached) " >&6 | |
3332 else | |
3333 ac_save_c_werror_flag=$ac_c_werror_flag | |
3334 ac_c_werror_flag=yes | |
3335 ac_cv_prog_cc_g=no | |
3336 CFLAGS="-g" | |
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3338 /* end confdefs.h. */ | |
3339 | |
3340 int | |
3341 main () | |
3342 { | |
3343 | |
3344 ; | |
3345 return 0; | |
3346 } | |
3347 _ACEOF | |
3348 if ac_fn_c_try_compile "$LINENO"; then : | |
3349 ac_cv_prog_cc_g=yes | |
3350 else | |
3351 CFLAGS="" | |
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3353 /* end confdefs.h. */ | |
3354 | |
3355 int | |
3356 main () | |
3357 { | |
3358 | |
3359 ; | |
3360 return 0; | |
3361 } | |
3362 _ACEOF | |
3363 if ac_fn_c_try_compile "$LINENO"; then : | |
3364 | |
3365 else | |
3366 ac_c_werror_flag=$ac_save_c_werror_flag | |
3367 CFLAGS="-g" | |
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3369 /* end confdefs.h. */ | |
3370 | |
3371 int | |
3372 main () | |
3373 { | |
3374 | |
3375 ; | |
3376 return 0; | |
3377 } | |
3378 _ACEOF | |
3379 if ac_fn_c_try_compile "$LINENO"; then : | |
3380 ac_cv_prog_cc_g=yes | |
3381 fi | |
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3383 fi | |
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3385 fi | |
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3387 ac_c_werror_flag=$ac_save_c_werror_flag | |
3388 fi | |
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3390 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3391 if test "$ac_test_CFLAGS" = set; then | |
3392 CFLAGS=$ac_save_CFLAGS | |
3393 elif test $ac_cv_prog_cc_g = yes; then | |
3394 if test "$GCC" = yes; then | |
3395 CFLAGS="-g -O2" | |
3396 else | |
3397 CFLAGS="-g" | |
3398 fi | |
3399 else | |
3400 if test "$GCC" = yes; then | |
3401 CFLAGS="-O2" | |
3402 else | |
3403 CFLAGS= | |
3404 fi | |
3405 fi | |
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3407 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3408 if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3409 $as_echo_n "(cached) " >&6 | |
3410 else | |
3411 ac_cv_prog_cc_c89=no | |
3412 ac_save_CC=$CC | |
3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3414 /* end confdefs.h. */ | |
3415 #include <stdarg.h> | |
3416 #include <stdio.h> | |
3417 #include <sys/types.h> | |
3418 #include <sys/stat.h> | |
3419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3420 struct buf { int x; }; | |
3421 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3422 static char *e (p, i) | |
3423 char **p; | |
3424 int i; | |
3425 { | |
3426 return p[i]; | |
3427 } | |
3428 static char *f (char * (*g) (char **, int), char **p, ...) | |
3429 { | |
3430 char *s; | |
3431 va_list v; | |
3432 va_start (v,p); | |
3433 s = g (p, va_arg (v,int)); | |
3434 va_end (v); | |
3435 return s; | |
3436 } | |
3437 | |
3438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3439 function prototypes and stuff, but not '\xHH' hex character constants. | |
3440 These don't provoke an error unfortunately, instead are silently treated | |
3441 as 'x'. The following induces an error, until -std is added to get | |
3442 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3443 array size at least. It's necessary to write '\x00'==0 to get something | |
3444 that's true only with -std. */ | |
3445 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3446 | |
3447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3448 inside strings and character constants. */ | |
3449 #define FOO(x) 'x' | |
3450 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3451 | |
3452 int test (int i, double x); | |
3453 struct s1 {int (*f) (int a);}; | |
3454 struct s2 {int (*f) (double a);}; | |
3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3456 int argc; | |
3457 char **argv; | |
3458 int | |
3459 main () | |
3460 { | |
3461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3462 ; | |
3463 return 0; | |
3464 } | |
3465 _ACEOF | |
3466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3467 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3468 do | |
3469 CC="$ac_save_CC $ac_arg" | |
3470 if ac_fn_c_try_compile "$LINENO"; then : | |
3471 ac_cv_prog_cc_c89=$ac_arg | |
3472 fi | |
3473 rm -f core conftest.err conftest.$ac_objext | |
3474 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3475 done | |
3476 rm -f conftest.$ac_ext | |
3477 CC=$ac_save_CC | |
3478 | |
3479 fi | |
3480 # AC_CACHE_VAL | |
3481 case "x$ac_cv_prog_cc_c89" in | |
3482 x) | |
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3484 $as_echo "none needed" >&6; } ;; | |
3485 xno) | |
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3487 $as_echo "unsupported" >&6; } ;; | |
3488 *) | |
3489 CC="$CC $ac_cv_prog_cc_c89" | |
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3491 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3492 esac | |
3493 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3494 | |
3495 fi | |
3496 | |
3497 ac_ext=c | |
3498 ac_cpp='$CPP $CPPFLAGS' | |
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3502 DEPDIR="${am__leading_dot}deps" | |
3503 | |
3504 ac_config_commands="$ac_config_commands depfiles" | |
3505 | |
3506 | |
3507 am_make=${MAKE-make} | |
3508 cat > confinc << 'END' | |
3509 am__doit: | |
3510 @echo this is the am__doit target | |
3511 .PHONY: am__doit | |
3512 END | |
3513 # If we don't find an include directive, just comment out the code. | |
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3515 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3516 am__include="#" | |
3517 am__quote= | |
3518 _am_result=none | |
3519 # First try GNU make style include. | |
3520 echo "include confinc" > confmf | |
3521 # Ignore all kinds of additional output from `make'. | |
3522 case `$am_make -s -f confmf 2> /dev/null` in #( | |
3523 *the\ am__doit\ target*) | |
3524 am__include=include | |
3525 am__quote= | |
3526 _am_result=GNU | |
3527 ;; | |
3528 esac | |
3529 # Now try BSD make style include. | |
3530 if test "$am__include" = "#"; then | |
3531 echo '.include "confinc"' > confmf | |
3532 case `$am_make -s -f confmf 2> /dev/null` in #( | |
3533 *the\ am__doit\ target*) | |
3534 am__include=.include | |
3535 am__quote="\"" | |
3536 _am_result=BSD | |
3537 ;; | |
3538 esac | |
3539 fi | |
3540 | |
3541 | |
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3543 $as_echo "$_am_result" >&6; } | |
3544 rm -f confinc confmf | |
3545 | |
3546 # Check whether --enable-dependency-tracking was given. | |
3547 if test "${enable_dependency_tracking+set}" = set; then : | |
3548 enableval=$enable_dependency_tracking; | |
3549 fi | |
3550 | |
3551 if test "x$enable_dependency_tracking" != xno; then | |
3552 am_depcomp="$ac_aux_dir/depcomp" | |
3553 AMDEPBACKSLASH='\' | |
3554 fi | |
3555 if test "x$enable_dependency_tracking" != xno; then | |
3556 AMDEP_TRUE= | |
3557 AMDEP_FALSE='#' | |
3558 else | |
3559 AMDEP_TRUE='#' | |
3560 AMDEP_FALSE= | |
3561 fi | |
3562 | |
3563 | |
3564 | |
3565 depcc="$CC" am_compiler_list= | |
3566 | |
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3568 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3569 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3570 $as_echo_n "(cached) " >&6 | |
3571 else | |
3572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3573 # We make a subdir and do the tests there. Otherwise we can end up | |
3574 # making bogus files that we don't know about and never remove. For | |
3575 # instance it was reported that on HP-UX the gcc test will end up | |
3576 # making a dummy file named `D' -- because `-MD' means `put the output | |
3577 # in D'. | |
3578 mkdir conftest.dir | |
3579 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3580 # using a relative directory. | |
3581 cp "$am_depcomp" conftest.dir | |
3582 cd conftest.dir | |
3583 # We will build objects and dependencies in a subdirectory because | |
3584 # it helps to detect inapplicable dependency modes. For instance | |
3585 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3586 # side effect of compilation, but ICC will put the dependencies in | |
3587 # the current directory while Tru64 will put them in the object | |
3588 # directory. | |
3589 mkdir sub | |
3590 | |
3591 am_cv_CC_dependencies_compiler_type=none | |
3592 if test "$am_compiler_list" = ""; then | |
3593 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3594 fi | |
3595 am__universal=false | |
3596 case " $depcc " in #( | |
3597 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3598 esac | |
3599 | |
3600 for depmode in $am_compiler_list; do | |
3601 # Setup a source with many dependencies, because some compilers | |
3602 # like to wrap large dependency lists on column 80 (with \), and | |
3603 # we should not choose a depcomp mode which is confused by this. | |
3604 # | |
3605 # We need to recreate these files for each test, as the compiler may | |
3606 # overwrite some of them when testing with obscure command lines. | |
3607 # This happens at least with the AIX C compiler. | |
3608 : > sub/conftest.c | |
3609 for i in 1 2 3 4 5 6; do | |
3610 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3611 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3612 # Solaris 8's {/usr,}/bin/sh. | |
3613 touch sub/conftst$i.h | |
3614 done | |
3615 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3616 | |
3617 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3618 # mode. It turns out that the SunPro C++ compiler does not properly | |
3619 # handle `-M -o', and we need to detect this. Also, some Intel | |
3620 # versions had trouble with output in subdirs | |
3621 am__obj=sub/conftest.${OBJEXT-o} | |
3622 am__minus_obj="-o $am__obj" | |
3623 case $depmode in | |
3624 gcc) | |
3625 # This depmode causes a compiler race in universal mode. | |
3626 test "$am__universal" = false || continue | |
3627 ;; | |
3628 nosideeffect) | |
3629 # after this tag, mechanisms are not by side-effect, so they'll | |
3630 # only be used when explicitly requested | |
3631 if test "x$enable_dependency_tracking" = xyes; then | |
3632 continue | |
3633 else | |
3634 break | |
3635 fi | |
3636 ;; | |
3637 msvisualcpp | msvcmsys) | |
3638 # This compiler won't grok `-c -o', but also, the minuso test has | |
3639 # not run yet. These depmodes are late enough in the game, and | |
3640 # so weak that their functioning should not be impacted. | |
3641 am__obj=conftest.${OBJEXT-o} | |
3642 am__minus_obj= | |
3643 ;; | |
3644 none) break ;; | |
3645 esac | |
3646 if depmode=$depmode \ | |
3647 source=sub/conftest.c object=$am__obj \ | |
3648 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3649 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3650 >/dev/null 2>conftest.err && | |
3651 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3652 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3653 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3654 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3655 # icc doesn't choke on unknown options, it will just issue warnings | |
3656 # or remarks (even with -Werror). So we grep stderr for any message | |
3657 # that says an option was ignored or not supported. | |
3658 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3659 # icc: Command line warning: ignoring option '-M'; no argument required | |
3660 # The diagnosis changed in icc 8.0: | |
3661 # icc: Command line remark: option '-MP' not supported | |
3662 if (grep 'ignoring option' conftest.err || | |
3663 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3664 am_cv_CC_dependencies_compiler_type=$depmode | |
3665 break | |
3666 fi | |
3667 fi | |
3668 done | |
3669 | |
3670 cd .. | |
3671 rm -rf conftest.dir | |
3672 else | |
3673 am_cv_CC_dependencies_compiler_type=none | |
3674 fi | |
3675 | |
3676 fi | |
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3678 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3679 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3680 | |
3681 if | |
3682 test "x$enable_dependency_tracking" != xno \ | |
3683 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3684 am__fastdepCC_TRUE= | |
3685 am__fastdepCC_FALSE='#' | |
3686 else | |
3687 am__fastdepCC_TRUE='#' | |
3688 am__fastdepCC_FALSE= | |
3689 fi | |
3690 | |
3691 | |
3692 case `pwd` in | |
3693 *\ * | *\ *) | |
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
3695 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
3696 esac | |
3697 | |
3698 | |
3699 | |
3700 macro_version='2.2.6b' | |
3701 macro_revision='1.3017' | |
3702 | |
3703 | |
3704 | |
3705 | |
3706 | |
3707 | |
3708 | |
3709 | |
3710 | |
3711 | |
3712 | |
3713 | |
3714 | |
3715 ltmain="$ac_aux_dir/ltmain.sh" | |
3716 | |
3717 # Make sure we can run config.sub. | |
3718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3719 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3720 | |
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3722 $as_echo_n "checking build system type... " >&6; } | |
3723 if test "${ac_cv_build+set}" = set; then : | |
3724 $as_echo_n "(cached) " >&6 | |
3725 else | |
3726 ac_build_alias=$build_alias | |
3727 test "x$ac_build_alias" = x && | |
3728 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3729 test "x$ac_build_alias" = x && | |
3730 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
3731 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3732 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
3733 | |
3734 fi | |
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3736 $as_echo "$ac_cv_build" >&6; } | |
3737 case $ac_cv_build in | |
3738 *-*-*) ;; | |
3739 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
3740 esac | |
3741 build=$ac_cv_build | |
3742 ac_save_IFS=$IFS; IFS='-' | |
3743 set x $ac_cv_build | |
3744 shift | |
3745 build_cpu=$1 | |
3746 build_vendor=$2 | |
3747 shift; shift | |
3748 # Remember, the first character of IFS is used to create $*, | |
3749 # except with old shells: | |
3750 build_os=$* | |
3751 IFS=$ac_save_IFS | |
3752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3753 | |
3754 | |
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3756 $as_echo_n "checking host system type... " >&6; } | |
3757 if test "${ac_cv_host+set}" = set; then : | |
3758 $as_echo_n "(cached) " >&6 | |
3759 else | |
3760 if test "x$host_alias" = x; then | |
3761 ac_cv_host=$ac_cv_build | |
3762 else | |
3763 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3764 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3765 fi | |
3766 | |
3767 fi | |
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3769 $as_echo "$ac_cv_host" >&6; } | |
3770 case $ac_cv_host in | |
3771 *-*-*) ;; | |
3772 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
3773 esac | |
3774 host=$ac_cv_host | |
3775 ac_save_IFS=$IFS; IFS='-' | |
3776 set x $ac_cv_host | |
3777 shift | |
3778 host_cpu=$1 | |
3779 host_vendor=$2 | |
3780 shift; shift | |
3781 # Remember, the first character of IFS is used to create $*, | |
3782 # except with old shells: | |
3783 host_os=$* | |
3784 IFS=$ac_save_IFS | |
3785 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3786 | |
3787 | |
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
3789 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
3790 if test "${ac_cv_path_SED+set}" = set; then : | |
3791 $as_echo_n "(cached) " >&6 | |
3792 else | |
3793 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3794 for ac_i in 1 2 3 4 5 6 7; do | |
3795 ac_script="$ac_script$as_nl$ac_script" | |
3796 done | |
3797 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3798 { ac_script=; unset ac_script;} | |
3799 if test -z "$SED"; then | |
3800 ac_path_SED_found=false | |
3801 # Loop through the user's path and test for each of PROGNAME-LIST | |
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3803 for as_dir in $PATH | |
3804 do | |
3805 IFS=$as_save_IFS | |
3806 test -z "$as_dir" && as_dir=. | |
3807 for ac_prog in sed gsed; do | |
3808 for ac_exec_ext in '' $ac_executable_extensions; do | |
3809 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
3810 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
3811 # Check for GNU ac_path_SED and select it if it is found. | |
3812 # Check for GNU $ac_path_SED | |
3813 case `"$ac_path_SED" --version 2>&1` in | |
3814 *GNU*) | |
3815 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3816 *) | |
3817 ac_count=0 | |
3818 $as_echo_n 0123456789 >"conftest.in" | |
3819 while : | |
3820 do | |
3821 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3822 mv "conftest.tmp" "conftest.in" | |
3823 cp "conftest.in" "conftest.nl" | |
3824 $as_echo '' >> "conftest.nl" | |
3825 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3827 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3828 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3829 # Best one so far, save it but keep looking for a better one | |
3830 ac_cv_path_SED="$ac_path_SED" | |
3831 ac_path_SED_max=$ac_count | |
3832 fi | |
3833 # 10*(2^10) chars as input seems more than enough | |
3834 test $ac_count -gt 10 && break | |
3835 done | |
3836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3837 esac | |
3838 | |
3839 $ac_path_SED_found && break 3 | |
3840 done | |
3841 done | |
3842 done | |
3843 IFS=$as_save_IFS | |
3844 if test -z "$ac_cv_path_SED"; then | |
3845 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3846 fi | |
3847 else | |
3848 ac_cv_path_SED=$SED | |
3849 fi | |
3850 | |
3851 fi | |
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3853 $as_echo "$ac_cv_path_SED" >&6; } | |
3854 SED="$ac_cv_path_SED" | |
3855 rm -f conftest.sed | |
3856 | |
3857 test -z "$SED" && SED=sed | |
3858 Xsed="$SED -e 1s/^X//" | |
3859 | |
3860 | |
3861 | |
3862 | |
3863 | |
3864 | |
3865 | |
3866 | |
3867 | |
3868 | |
3869 | |
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3872 if test "${ac_cv_path_GREP+set}" = set; then : | |
3873 $as_echo_n "(cached) " >&6 | |
3874 else | |
3875 if test -z "$GREP"; then | |
3876 ac_path_GREP_found=false | |
3877 # Loop through the user's path and test for each of PROGNAME-LIST | |
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3880 do | |
3881 IFS=$as_save_IFS | |
3882 test -z "$as_dir" && as_dir=. | |
3883 for ac_prog in grep ggrep; do | |
3884 for ac_exec_ext in '' $ac_executable_extensions; do | |
3885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3887 # Check for GNU ac_path_GREP and select it if it is found. | |
3888 # Check for GNU $ac_path_GREP | |
3889 case `"$ac_path_GREP" --version 2>&1` in | |
3890 *GNU*) | |
3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3892 *) | |
3893 ac_count=0 | |
3894 $as_echo_n 0123456789 >"conftest.in" | |
3895 while : | |
3896 do | |
3897 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3898 mv "conftest.tmp" "conftest.in" | |
3899 cp "conftest.in" "conftest.nl" | |
3900 $as_echo 'GREP' >> "conftest.nl" | |
3901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3903 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3904 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3905 # Best one so far, save it but keep looking for a better one | |
3906 ac_cv_path_GREP="$ac_path_GREP" | |
3907 ac_path_GREP_max=$ac_count | |
3908 fi | |
3909 # 10*(2^10) chars as input seems more than enough | |
3910 test $ac_count -gt 10 && break | |
3911 done | |
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3913 esac | |
3914 | |
3915 $ac_path_GREP_found && break 3 | |
3916 done | |
3917 done | |
3918 done | |
3919 IFS=$as_save_IFS | |
3920 if test -z "$ac_cv_path_GREP"; then | |
3921 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3922 fi | |
3923 else | |
3924 ac_cv_path_GREP=$GREP | |
3925 fi | |
3926 | |
3927 fi | |
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3929 $as_echo "$ac_cv_path_GREP" >&6; } | |
3930 GREP="$ac_cv_path_GREP" | |
3931 | |
3932 | |
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3934 $as_echo_n "checking for egrep... " >&6; } | |
3935 if test "${ac_cv_path_EGREP+set}" = set; then : | |
3936 $as_echo_n "(cached) " >&6 | |
3937 else | |
3938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3939 then ac_cv_path_EGREP="$GREP -E" | |
3940 else | |
3941 if test -z "$EGREP"; then | |
3942 ac_path_EGREP_found=false | |
3943 # Loop through the user's path and test for each of PROGNAME-LIST | |
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3946 do | |
3947 IFS=$as_save_IFS | |
3948 test -z "$as_dir" && as_dir=. | |
3949 for ac_prog in egrep; do | |
3950 for ac_exec_ext in '' $ac_executable_extensions; do | |
3951 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3952 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3953 # Check for GNU ac_path_EGREP and select it if it is found. | |
3954 # Check for GNU $ac_path_EGREP | |
3955 case `"$ac_path_EGREP" --version 2>&1` in | |
3956 *GNU*) | |
3957 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3958 *) | |
3959 ac_count=0 | |
3960 $as_echo_n 0123456789 >"conftest.in" | |
3961 while : | |
3962 do | |
3963 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3964 mv "conftest.tmp" "conftest.in" | |
3965 cp "conftest.in" "conftest.nl" | |
3966 $as_echo 'EGREP' >> "conftest.nl" | |
3967 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3969 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3970 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3971 # Best one so far, save it but keep looking for a better one | |
3972 ac_cv_path_EGREP="$ac_path_EGREP" | |
3973 ac_path_EGREP_max=$ac_count | |
3974 fi | |
3975 # 10*(2^10) chars as input seems more than enough | |
3976 test $ac_count -gt 10 && break | |
3977 done | |
3978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3979 esac | |
3980 | |
3981 $ac_path_EGREP_found && break 3 | |
3982 done | |
3983 done | |
3984 done | |
3985 IFS=$as_save_IFS | |
3986 if test -z "$ac_cv_path_EGREP"; then | |
3987 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3988 fi | |
3989 else | |
3990 ac_cv_path_EGREP=$EGREP | |
3991 fi | |
3992 | |
3993 fi | |
3994 fi | |
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3996 $as_echo "$ac_cv_path_EGREP" >&6; } | |
3997 EGREP="$ac_cv_path_EGREP" | |
3998 | |
3999 | |
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4001 $as_echo_n "checking for fgrep... " >&6; } | |
4002 if test "${ac_cv_path_FGREP+set}" = set; then : | |
4003 $as_echo_n "(cached) " >&6 | |
4004 else | |
4005 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4006 then ac_cv_path_FGREP="$GREP -F" | |
4007 else | |
4008 if test -z "$FGREP"; then | |
4009 ac_path_FGREP_found=false | |
4010 # Loop through the user's path and test for each of PROGNAME-LIST | |
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4013 do | |
4014 IFS=$as_save_IFS | |
4015 test -z "$as_dir" && as_dir=. | |
4016 for ac_prog in fgrep; do | |
4017 for ac_exec_ext in '' $ac_executable_extensions; do | |
4018 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4019 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
4020 # Check for GNU ac_path_FGREP and select it if it is found. | |
4021 # Check for GNU $ac_path_FGREP | |
4022 case `"$ac_path_FGREP" --version 2>&1` in | |
4023 *GNU*) | |
4024 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4025 *) | |
4026 ac_count=0 | |
4027 $as_echo_n 0123456789 >"conftest.in" | |
4028 while : | |
4029 do | |
4030 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4031 mv "conftest.tmp" "conftest.in" | |
4032 cp "conftest.in" "conftest.nl" | |
4033 $as_echo 'FGREP' >> "conftest.nl" | |
4034 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4036 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4037 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4038 # Best one so far, save it but keep looking for a better one | |
4039 ac_cv_path_FGREP="$ac_path_FGREP" | |
4040 ac_path_FGREP_max=$ac_count | |
4041 fi | |
4042 # 10*(2^10) chars as input seems more than enough | |
4043 test $ac_count -gt 10 && break | |
4044 done | |
4045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4046 esac | |
4047 | |
4048 $ac_path_FGREP_found && break 3 | |
4049 done | |
4050 done | |
4051 done | |
4052 IFS=$as_save_IFS | |
4053 if test -z "$ac_cv_path_FGREP"; then | |
4054 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4055 fi | |
4056 else | |
4057 ac_cv_path_FGREP=$FGREP | |
4058 fi | |
4059 | |
4060 fi | |
4061 fi | |
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4063 $as_echo "$ac_cv_path_FGREP" >&6; } | |
4064 FGREP="$ac_cv_path_FGREP" | |
4065 | |
4066 | |
4067 test -z "$GREP" && GREP=grep | |
4068 | |
4069 | |
4070 | |
4071 | |
4072 | |
4073 | |
4074 | |
4075 | |
4076 | |
4077 | |
4078 | |
4079 | |
4080 | |
4081 | |
4082 | |
4083 | |
4084 | |
4085 | |
4086 | |
4087 # Check whether --with-gnu-ld was given. | |
4088 if test "${with_gnu_ld+set}" = set; then : | |
4089 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4090 else | |
4091 with_gnu_ld=no | |
4092 fi | |
4093 | |
4094 ac_prog=ld | |
4095 if test "$GCC" = yes; then | |
4096 # Check if gcc -print-prog-name=ld gives a path. | |
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4098 $as_echo_n "checking for ld used by $CC... " >&6; } | |
4099 case $host in | |
4100 *-*-mingw*) | |
4101 # gcc leaves a trailing carriage return which upsets mingw | |
4102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4103 *) | |
4104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4105 esac | |
4106 case $ac_prog in | |
4107 # Accept absolute paths. | |
4108 [\\/]* | ?:[\\/]*) | |
4109 re_direlt='/[^/][^/]*/\.\./' | |
4110 # Canonicalize the pathname of ld | |
4111 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4112 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4113 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4114 done | |
4115 test -z "$LD" && LD="$ac_prog" | |
4116 ;; | |
4117 "") | |
4118 # If it fails, then pretend we aren't using GCC. | |
4119 ac_prog=ld | |
4120 ;; | |
4121 *) | |
4122 # If it is relative, then search for the first ld in PATH. | |
4123 with_gnu_ld=unknown | |
4124 ;; | |
4125 esac | |
4126 elif test "$with_gnu_ld" = yes; then | |
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
4128 $as_echo_n "checking for GNU ld... " >&6; } | |
4129 else | |
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
4131 $as_echo_n "checking for non-GNU ld... " >&6; } | |
4132 fi | |
4133 if test "${lt_cv_path_LD+set}" = set; then : | |
4134 $as_echo_n "(cached) " >&6 | |
4135 else | |
4136 if test -z "$LD"; then | |
4137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4138 for ac_dir in $PATH; do | |
4139 IFS="$lt_save_ifs" | |
4140 test -z "$ac_dir" && ac_dir=. | |
4141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4142 lt_cv_path_LD="$ac_dir/$ac_prog" | |
4143 # Check to see if the program is GNU ld. I'd rather use --version, | |
4144 # but apparently some variants of GNU ld only accept -v. | |
4145 # Break only if it was the GNU/non-GNU ld that we prefer. | |
4146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4147 *GNU* | *'with BFD'*) | |
4148 test "$with_gnu_ld" != no && break | |
4149 ;; | |
4150 *) | |
4151 test "$with_gnu_ld" != yes && break | |
4152 ;; | |
4153 esac | |
4154 fi | |
4155 done | |
4156 IFS="$lt_save_ifs" | |
4157 else | |
4158 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4159 fi | |
4160 fi | |
4161 | |
4162 LD="$lt_cv_path_LD" | |
4163 if test -n "$LD"; then | |
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4165 $as_echo "$LD" >&6; } | |
4166 else | |
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4168 $as_echo "no" >&6; } | |
4169 fi | |
4170 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
4172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
4173 if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
4174 $as_echo_n "(cached) " >&6 | |
4175 else | |
4176 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4177 case `$LD -v 2>&1 </dev/null` in | |
4178 *GNU* | *'with BFD'*) | |
4179 lt_cv_prog_gnu_ld=yes | |
4180 ;; | |
4181 *) | |
4182 lt_cv_prog_gnu_ld=no | |
4183 ;; | |
4184 esac | |
4185 fi | |
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
4187 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
4188 with_gnu_ld=$lt_cv_prog_gnu_ld | |
4189 | |
4190 | |
4191 | |
4192 | |
4193 | |
4194 | |
4195 | |
4196 | |
4197 | |
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4199 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
4200 if test "${lt_cv_path_NM+set}" = set; then : | |
4201 $as_echo_n "(cached) " >&6 | |
4202 else | |
4203 if test -n "$NM"; then | |
4204 # Let the user override the test. | |
4205 lt_cv_path_NM="$NM" | |
4206 else | |
4207 lt_nm_to_check="${ac_tool_prefix}nm" | |
4208 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4209 lt_nm_to_check="$lt_nm_to_check nm" | |
4210 fi | |
4211 for lt_tmp_nm in $lt_nm_to_check; do | |
4212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4213 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4214 IFS="$lt_save_ifs" | |
4215 test -z "$ac_dir" && ac_dir=. | |
4216 tmp_nm="$ac_dir/$lt_tmp_nm" | |
4217 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4218 # Check to see if the nm accepts a BSD-compat flag. | |
4219 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4220 # nm: unknown option "B" ignored | |
4221 # Tru64's nm complains that /dev/null is an invalid object file | |
4222 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4223 */dev/null* | *'Invalid file or object type'*) | |
4224 lt_cv_path_NM="$tmp_nm -B" | |
4225 break | |
4226 ;; | |
4227 *) | |
4228 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4229 */dev/null*) | |
4230 lt_cv_path_NM="$tmp_nm -p" | |
4231 break | |
4232 ;; | |
4233 *) | |
4234 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4235 continue # so that we can try to find one that supports BSD flags | |
4236 ;; | |
4237 esac | |
4238 ;; | |
4239 esac | |
4240 fi | |
4241 done | |
4242 IFS="$lt_save_ifs" | |
4243 done | |
4244 : ${lt_cv_path_NM=no} | |
4245 fi | |
4246 fi | |
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
4248 $as_echo "$lt_cv_path_NM" >&6; } | |
4249 if test "$lt_cv_path_NM" != "no"; then | |
4250 NM="$lt_cv_path_NM" | |
4251 else | |
4252 # Didn't find any BSD compatible name lister, look for dumpbin. | |
4253 if test -n "$ac_tool_prefix"; then | |
4254 for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4255 do | |
4256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4259 $as_echo_n "checking for $ac_word... " >&6; } | |
4260 if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
4261 $as_echo_n "(cached) " >&6 | |
4262 else | |
4263 if test -n "$DUMPBIN"; then | |
4264 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4265 else | |
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4267 for as_dir in $PATH | |
4268 do | |
4269 IFS=$as_save_IFS | |
4270 test -z "$as_dir" && as_dir=. | |
4271 for ac_exec_ext in '' $ac_executable_extensions; do | |
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4273 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4275 break 2 | |
4276 fi | |
4277 done | |
4278 done | |
4279 IFS=$as_save_IFS | |
4280 | |
4281 fi | |
4282 fi | |
4283 DUMPBIN=$ac_cv_prog_DUMPBIN | |
4284 if test -n "$DUMPBIN"; then | |
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
4286 $as_echo "$DUMPBIN" >&6; } | |
4287 else | |
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4289 $as_echo "no" >&6; } | |
4290 fi | |
4291 | |
4292 | |
4293 test -n "$DUMPBIN" && break | |
4294 done | |
4295 fi | |
4296 if test -z "$DUMPBIN"; then | |
4297 ac_ct_DUMPBIN=$DUMPBIN | |
4298 for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4299 do | |
4300 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4301 set dummy $ac_prog; ac_word=$2 | |
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4303 $as_echo_n "checking for $ac_word... " >&6; } | |
4304 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
4305 $as_echo_n "(cached) " >&6 | |
4306 else | |
4307 if test -n "$ac_ct_DUMPBIN"; then | |
4308 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4309 else | |
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4311 for as_dir in $PATH | |
4312 do | |
4313 IFS=$as_save_IFS | |
4314 test -z "$as_dir" && as_dir=. | |
4315 for ac_exec_ext in '' $ac_executable_extensions; do | |
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4317 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4319 break 2 | |
4320 fi | |
4321 done | |
4322 done | |
4323 IFS=$as_save_IFS | |
4324 | |
4325 fi | |
4326 fi | |
4327 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4328 if test -n "$ac_ct_DUMPBIN"; then | |
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
4330 $as_echo "$ac_ct_DUMPBIN" >&6; } | |
4331 else | |
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4333 $as_echo "no" >&6; } | |
4334 fi | |
4335 | |
4336 | |
4337 test -n "$ac_ct_DUMPBIN" && break | |
4338 done | |
4339 | |
4340 if test "x$ac_ct_DUMPBIN" = x; then | |
4341 DUMPBIN=":" | |
4342 else | |
4343 case $cross_compiling:$ac_tool_warned in | |
4344 yes:) | |
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4347 ac_tool_warned=yes ;; | |
4348 esac | |
4349 DUMPBIN=$ac_ct_DUMPBIN | |
4350 fi | |
4351 fi | |
4352 | |
4353 | |
4354 if test "$DUMPBIN" != ":"; then | |
4355 NM="$DUMPBIN" | |
4356 fi | |
4357 fi | |
4358 test -z "$NM" && NM=nm | |
4359 | |
4360 | |
4361 | |
4362 | |
4363 | |
4364 | |
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
4366 $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
4367 if test "${lt_cv_nm_interface+set}" = set; then : | |
4368 $as_echo_n "(cached) " >&6 | |
4369 else | |
4370 lt_cv_nm_interface="BSD nm" | |
4371 echo "int some_variable = 0;" > conftest.$ac_ext | |
4372 (eval echo "\"\$as_me:4372: $ac_compile\"" >&5) | |
4373 (eval "$ac_compile" 2>conftest.err) | |
4374 cat conftest.err >&5 | |
4375 (eval echo "\"\$as_me:4375: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4376 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4377 cat conftest.err >&5 | |
4378 (eval echo "\"\$as_me:4378: output\"" >&5) | |
4379 cat conftest.out >&5 | |
4380 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4381 lt_cv_nm_interface="MS dumpbin" | |
4382 fi | |
4383 rm -f conftest* | |
4384 fi | |
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
4386 $as_echo "$lt_cv_nm_interface" >&6; } | |
4387 | |
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
4389 $as_echo_n "checking whether ln -s works... " >&6; } | |
4390 LN_S=$as_ln_s | |
4391 if test "$LN_S" = "ln -s"; then | |
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4393 $as_echo "yes" >&6; } | |
4394 else | |
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
4396 $as_echo "no, using $LN_S" >&6; } | |
4397 fi | |
4398 | |
4399 # find the maximum length of command line arguments | |
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
4401 $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
4402 if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
4403 $as_echo_n "(cached) " >&6 | |
4404 else | |
4405 i=0 | |
4406 teststring="ABCD" | |
4407 | |
4408 case $build_os in | |
4409 msdosdjgpp*) | |
4410 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4411 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4412 # during glob expansion). Even if it were fixed, the result of this | |
4413 # check would be larger than it should be. | |
4414 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4415 ;; | |
4416 | |
4417 gnu*) | |
4418 # Under GNU Hurd, this test is not required because there is | |
4419 # no limit to the length of command line arguments. | |
4420 # Libtool will interpret -1 as no limit whatsoever | |
4421 lt_cv_sys_max_cmd_len=-1; | |
4422 ;; | |
4423 | |
4424 cygwin* | mingw* | cegcc*) | |
4425 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4426 # about 5 minutes as the teststring grows exponentially. | |
4427 # Worse, since 9x/ME are not pre-emptively multitasking, | |
4428 # you end up with a "frozen" computer, even though with patience | |
4429 # the test eventually succeeds (with a max line length of 256k). | |
4430 # Instead, let's just punt: use the minimum linelength reported by | |
4431 # all of the supported platforms: 8192 (on NT/2K/XP). | |
4432 lt_cv_sys_max_cmd_len=8192; | |
4433 ;; | |
4434 | |
4435 amigaos*) | |
4436 # On AmigaOS with pdksh, this test takes hours, literally. | |
4437 # So we just punt and use a minimum line length of 8192. | |
4438 lt_cv_sys_max_cmd_len=8192; | |
4439 ;; | |
4440 | |
4441 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4442 # This has been around since 386BSD, at least. Likely further. | |
4443 if test -x /sbin/sysctl; then | |
4444 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4445 elif test -x /usr/sbin/sysctl; then | |
4446 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4447 else | |
4448 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4449 fi | |
4450 # And add a safety zone | |
4451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4453 ;; | |
4454 | |
4455 interix*) | |
4456 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4457 lt_cv_sys_max_cmd_len=196608 | |
4458 ;; | |
4459 | |
4460 osf*) | |
4461 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4462 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4463 # nice to cause kernel panics so lets avoid the loop below. | |
4464 # First set a reasonable default. | |
4465 lt_cv_sys_max_cmd_len=16384 | |
4466 # | |
4467 if test -x /sbin/sysconfig; then | |
4468 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4469 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4470 esac | |
4471 fi | |
4472 ;; | |
4473 sco3.2v5*) | |
4474 lt_cv_sys_max_cmd_len=102400 | |
4475 ;; | |
4476 sysv5* | sco5v6* | sysv4.2uw2*) | |
4477 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4478 if test -n "$kargmax"; then | |
4479 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4480 else | |
4481 lt_cv_sys_max_cmd_len=32768 | |
4482 fi | |
4483 ;; | |
4484 *) | |
4485 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4486 if test -n "$lt_cv_sys_max_cmd_len"; then | |
4487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4489 else | |
4490 # Make teststring a little bigger before we do anything with it. | |
4491 # a 1K string should be a reasonable start. | |
4492 for i in 1 2 3 4 5 6 7 8 ; do | |
4493 teststring=$teststring$teststring | |
4494 done | |
4495 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4496 # If test is not a shell built-in, we'll probably end up computing a | |
4497 # maximum length that is only half of the actual maximum length, but | |
4498 # we can't tell. | |
4499 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4500 = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4501 test $i != 17 # 1/2 MB should be enough | |
4502 do | |
4503 i=`expr $i + 1` | |
4504 teststring=$teststring$teststring | |
4505 done | |
4506 # Only check the string length outside the loop. | |
4507 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4508 teststring= | |
4509 # Add a significant safety factor because C++ compilers can tack on | |
4510 # massive amounts of additional arguments before passing them to the | |
4511 # linker. It appears as though 1/2 is a usable value. | |
4512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4513 fi | |
4514 ;; | |
4515 esac | |
4516 | |
4517 fi | |
4518 | |
4519 if test -n $lt_cv_sys_max_cmd_len ; then | |
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
4521 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
4522 else | |
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
4524 $as_echo "none" >&6; } | |
4525 fi | |
4526 max_cmd_len=$lt_cv_sys_max_cmd_len | |
4527 | |
4528 | |
4529 | |
4530 | |
4531 | |
4532 | |
4533 : ${CP="cp -f"} | |
4534 : ${MV="mv -f"} | |
4535 : ${RM="rm -f"} | |
4536 | |
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
4538 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
4539 # Try some XSI features | |
4540 xsi_shell=no | |
4541 ( _lt_dummy="a/b/c" | |
4542 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4543 = c,a/b,, \ | |
4544 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4545 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4546 && xsi_shell=yes | |
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
4548 $as_echo "$xsi_shell" >&6; } | |
4549 | |
4550 | |
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
4552 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
4553 lt_shell_append=no | |
4554 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4555 >/dev/null 2>&1 \ | |
4556 && lt_shell_append=yes | |
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
4558 $as_echo "$lt_shell_append" >&6; } | |
4559 | |
4560 | |
4561 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4562 lt_unset=unset | |
4563 else | |
4564 lt_unset=false | |
4565 fi | |
4566 | |
4567 | |
4568 | |
4569 | |
4570 | |
4571 # test EBCDIC or ASCII | |
4572 case `echo X|tr X '\101'` in | |
4573 A) # ASCII based system | |
4574 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4575 lt_SP2NL='tr \040 \012' | |
4576 lt_NL2SP='tr \015\012 \040\040' | |
4577 ;; | |
4578 *) # EBCDIC based system | |
4579 lt_SP2NL='tr \100 \n' | |
4580 lt_NL2SP='tr \r\n \100\100' | |
4581 ;; | |
4582 esac | |
4583 | |
4584 | |
4585 | |
4586 | |
4587 | |
4588 | |
4589 | |
4590 | |
4591 | |
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
4593 $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
4594 if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
4595 $as_echo_n "(cached) " >&6 | |
4596 else | |
4597 lt_cv_ld_reload_flag='-r' | |
4598 fi | |
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
4600 $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
4601 reload_flag=$lt_cv_ld_reload_flag | |
4602 case $reload_flag in | |
4603 "" | " "*) ;; | |
4604 *) reload_flag=" $reload_flag" ;; | |
4605 esac | |
4606 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4607 case $host_os in | |
4608 darwin*) | |
4609 if test "$GCC" = yes; then | |
4610 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4611 else | |
4612 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4613 fi | |
4614 ;; | |
4615 esac | |
4616 | |
4617 | |
4618 | |
4619 | |
4620 | |
4621 | |
4622 | |
4623 | |
4624 | |
4625 if test -n "$ac_tool_prefix"; then | |
4626 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4627 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4629 $as_echo_n "checking for $ac_word... " >&6; } | |
4630 if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
4631 $as_echo_n "(cached) " >&6 | |
4632 else | |
4633 if test -n "$OBJDUMP"; then | |
4634 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4635 else | |
4636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4637 for as_dir in $PATH | |
4638 do | |
4639 IFS=$as_save_IFS | |
4640 test -z "$as_dir" && as_dir=. | |
4641 for ac_exec_ext in '' $ac_executable_extensions; do | |
4642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4643 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4645 break 2 | |
4646 fi | |
4647 done | |
4648 done | |
4649 IFS=$as_save_IFS | |
4650 | |
4651 fi | |
4652 fi | |
4653 OBJDUMP=$ac_cv_prog_OBJDUMP | |
4654 if test -n "$OBJDUMP"; then | |
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4656 $as_echo "$OBJDUMP" >&6; } | |
4657 else | |
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4659 $as_echo "no" >&6; } | |
4660 fi | |
4661 | |
4662 | |
4663 fi | |
4664 if test -z "$ac_cv_prog_OBJDUMP"; then | |
4665 ac_ct_OBJDUMP=$OBJDUMP | |
4666 # Extract the first word of "objdump", so it can be a program name with args. | |
4667 set dummy objdump; ac_word=$2 | |
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4669 $as_echo_n "checking for $ac_word... " >&6; } | |
4670 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
4671 $as_echo_n "(cached) " >&6 | |
4672 else | |
4673 if test -n "$ac_ct_OBJDUMP"; then | |
4674 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4675 else | |
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4677 for as_dir in $PATH | |
4678 do | |
4679 IFS=$as_save_IFS | |
4680 test -z "$as_dir" && as_dir=. | |
4681 for ac_exec_ext in '' $ac_executable_extensions; do | |
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4683 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4685 break 2 | |
4686 fi | |
4687 done | |
4688 done | |
4689 IFS=$as_save_IFS | |
4690 | |
4691 fi | |
4692 fi | |
4693 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4694 if test -n "$ac_ct_OBJDUMP"; then | |
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4696 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
4697 else | |
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4699 $as_echo "no" >&6; } | |
4700 fi | |
4701 | |
4702 if test "x$ac_ct_OBJDUMP" = x; then | |
4703 OBJDUMP="false" | |
4704 else | |
4705 case $cross_compiling:$ac_tool_warned in | |
4706 yes:) | |
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4709 ac_tool_warned=yes ;; | |
4710 esac | |
4711 OBJDUMP=$ac_ct_OBJDUMP | |
4712 fi | |
4713 else | |
4714 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4715 fi | |
4716 | |
4717 test -z "$OBJDUMP" && OBJDUMP=objdump | |
4718 | |
4719 | |
4720 | |
4721 | |
4722 | |
4723 | |
4724 | |
4725 | |
4726 | |
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
4728 $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
4729 if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
4730 $as_echo_n "(cached) " >&6 | |
4731 else | |
4732 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4733 lt_cv_file_magic_test_file= | |
4734 lt_cv_deplibs_check_method='unknown' | |
4735 # Need to set the preceding variable on all platforms that support | |
4736 # interlibrary dependencies. | |
4737 # 'none' -- dependencies not supported. | |
4738 # `unknown' -- same as none, but documents that we really don't know. | |
4739 # 'pass_all' -- all dependencies passed with no checks. | |
4740 # 'test_compile' -- check by making test program. | |
4741 # 'file_magic [[regex]]' -- check by looking for files in library path | |
4742 # which responds to the $file_magic_cmd with a given extended regex. | |
4743 # If you have `file' or equivalent on your system and you're not sure | |
4744 # whether `pass_all' will *always* work, you probably want this one. | |
4745 | |
4746 case $host_os in | |
4747 aix[4-9]*) | |
4748 lt_cv_deplibs_check_method=pass_all | |
4749 ;; | |
4750 | |
4751 beos*) | |
4752 lt_cv_deplibs_check_method=pass_all | |
4753 ;; | |
4754 | |
4755 bsdi[45]*) | |
4756 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4757 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4758 lt_cv_file_magic_test_file=/shlib/libc.so | |
4759 ;; | |
4760 | |
4761 cygwin*) | |
4762 # func_win32_libid is a shell function defined in ltmain.sh | |
4763 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4764 lt_cv_file_magic_cmd='func_win32_libid' | |
4765 ;; | |
4766 | |
4767 mingw* | pw32*) | |
4768 # Base MSYS/MinGW do not provide the 'file' command needed by | |
4769 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4770 # unless we find 'file', for example because we are cross-compiling. | |
4771 if ( file / ) >/dev/null 2>&1; then | |
4772 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4773 lt_cv_file_magic_cmd='func_win32_libid' | |
4774 else | |
4775 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4776 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4777 fi | |
4778 ;; | |
4779 | |
4780 cegcc) | |
4781 # use the weaker test based on 'objdump'. See mingw*. | |
4782 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4783 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4784 ;; | |
4785 | |
4786 darwin* | rhapsody*) | |
4787 lt_cv_deplibs_check_method=pass_all | |
4788 ;; | |
4789 | |
4790 freebsd* | dragonfly*) | |
4791 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4792 case $host_cpu in | |
4793 i*86 ) | |
4794 # Not sure whether the presence of OpenBSD here was a mistake. | |
4795 # Let's accept both of them until this is cleared up. | |
4796 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
4797 lt_cv_file_magic_cmd=/usr/bin/file | |
4798 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4799 ;; | |
4800 esac | |
4801 else | |
4802 lt_cv_deplibs_check_method=pass_all | |
4803 fi | |
4804 ;; | |
4805 | |
4806 gnu*) | |
4807 lt_cv_deplibs_check_method=pass_all | |
4808 ;; | |
4809 | |
4810 hpux10.20* | hpux11*) | |
4811 lt_cv_file_magic_cmd=/usr/bin/file | |
4812 case $host_cpu in | |
4813 ia64*) | |
4814 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4815 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4816 ;; | |
4817 hppa*64*) | |
4818 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
4819 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4820 ;; | |
4821 *) | |
4822 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4823 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4824 ;; | |
4825 esac | |
4826 ;; | |
4827 | |
4828 interix[3-9]*) | |
4829 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4831 ;; | |
4832 | |
4833 irix5* | irix6* | nonstopux*) | |
4834 case $LD in | |
4835 *-32|*"-32 ") libmagic=32-bit;; | |
4836 *-n32|*"-n32 ") libmagic=N32;; | |
4837 *-64|*"-64 ") libmagic=64-bit;; | |
4838 *) libmagic=never-match;; | |
4839 esac | |
4840 lt_cv_deplibs_check_method=pass_all | |
4841 ;; | |
4842 | |
4843 # This must be Linux ELF. | |
4844 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4845 lt_cv_deplibs_check_method=pass_all | |
4846 ;; | |
4847 | |
4848 netbsd* | netbsdelf*-gnu) | |
4849 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4851 else | |
4852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4853 fi | |
4854 ;; | |
4855 | |
4856 newos6*) | |
4857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4858 lt_cv_file_magic_cmd=/usr/bin/file | |
4859 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4860 ;; | |
4861 | |
4862 *nto* | *qnx*) | |
4863 lt_cv_deplibs_check_method=pass_all | |
4864 ;; | |
4865 | |
4866 openbsd*) | |
4867 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
4869 else | |
4870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4871 fi | |
4872 ;; | |
4873 | |
4874 osf3* | osf4* | osf5*) | |
4875 lt_cv_deplibs_check_method=pass_all | |
4876 ;; | |
4877 | |
4878 rdos*) | |
4879 lt_cv_deplibs_check_method=pass_all | |
4880 ;; | |
4881 | |
4882 solaris*) | |
4883 lt_cv_deplibs_check_method=pass_all | |
4884 ;; | |
4885 | |
4886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4887 lt_cv_deplibs_check_method=pass_all | |
4888 ;; | |
4889 | |
4890 sysv4 | sysv4.3*) | |
4891 case $host_vendor in | |
4892 motorola) | |
4893 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
4894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4895 ;; | |
4896 ncr) | |
4897 lt_cv_deplibs_check_method=pass_all | |
4898 ;; | |
4899 sequent) | |
4900 lt_cv_file_magic_cmd='/bin/file' | |
4901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4902 ;; | |
4903 sni) | |
4904 lt_cv_file_magic_cmd='/bin/file' | |
4905 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4906 lt_cv_file_magic_test_file=/lib/libc.so | |
4907 ;; | |
4908 siemens) | |
4909 lt_cv_deplibs_check_method=pass_all | |
4910 ;; | |
4911 pc) | |
4912 lt_cv_deplibs_check_method=pass_all | |
4913 ;; | |
4914 esac | |
4915 ;; | |
4916 | |
4917 tpf*) | |
4918 lt_cv_deplibs_check_method=pass_all | |
4919 ;; | |
4920 esac | |
4921 | |
4922 fi | |
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
4924 $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
4925 file_magic_cmd=$lt_cv_file_magic_cmd | |
4926 deplibs_check_method=$lt_cv_deplibs_check_method | |
4927 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4928 | |
4929 | |
4930 | |
4931 | |
4932 | |
4933 | |
4934 | |
4935 | |
4936 | |
4937 | |
4938 | |
4939 | |
4940 if test -n "$ac_tool_prefix"; then | |
4941 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4942 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4944 $as_echo_n "checking for $ac_word... " >&6; } | |
4945 if test "${ac_cv_prog_AR+set}" = set; then : | |
4946 $as_echo_n "(cached) " >&6 | |
4947 else | |
4948 if test -n "$AR"; then | |
4949 ac_cv_prog_AR="$AR" # Let the user override the test. | |
4950 else | |
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4952 for as_dir in $PATH | |
4953 do | |
4954 IFS=$as_save_IFS | |
4955 test -z "$as_dir" && as_dir=. | |
4956 for ac_exec_ext in '' $ac_executable_extensions; do | |
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4958 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4960 break 2 | |
4961 fi | |
4962 done | |
4963 done | |
4964 IFS=$as_save_IFS | |
4965 | |
4966 fi | |
4967 fi | |
4968 AR=$ac_cv_prog_AR | |
4969 if test -n "$AR"; then | |
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4971 $as_echo "$AR" >&6; } | |
4972 else | |
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4974 $as_echo "no" >&6; } | |
4975 fi | |
4976 | |
4977 | |
4978 fi | |
4979 if test -z "$ac_cv_prog_AR"; then | |
4980 ac_ct_AR=$AR | |
4981 # Extract the first word of "ar", so it can be a program name with args. | |
4982 set dummy ar; ac_word=$2 | |
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4984 $as_echo_n "checking for $ac_word... " >&6; } | |
4985 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
4986 $as_echo_n "(cached) " >&6 | |
4987 else | |
4988 if test -n "$ac_ct_AR"; then | |
4989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4990 else | |
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4992 for as_dir in $PATH | |
4993 do | |
4994 IFS=$as_save_IFS | |
4995 test -z "$as_dir" && as_dir=. | |
4996 for ac_exec_ext in '' $ac_executable_extensions; do | |
4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4998 ac_cv_prog_ac_ct_AR="ar" | |
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5000 break 2 | |
5001 fi | |
5002 done | |
5003 done | |
5004 IFS=$as_save_IFS | |
5005 | |
5006 fi | |
5007 fi | |
5008 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5009 if test -n "$ac_ct_AR"; then | |
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5011 $as_echo "$ac_ct_AR" >&6; } | |
5012 else | |
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5014 $as_echo "no" >&6; } | |
5015 fi | |
5016 | |
5017 if test "x$ac_ct_AR" = x; then | |
5018 AR="false" | |
5019 else | |
5020 case $cross_compiling:$ac_tool_warned in | |
5021 yes:) | |
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5024 ac_tool_warned=yes ;; | |
5025 esac | |
5026 AR=$ac_ct_AR | |
5027 fi | |
5028 else | |
5029 AR="$ac_cv_prog_AR" | |
5030 fi | |
5031 | |
5032 test -z "$AR" && AR=ar | |
5033 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5034 | |
5035 | |
5036 | |
5037 | |
5038 | |
5039 | |
5040 | |
5041 | |
5042 | |
5043 | |
5044 | |
5045 if test -n "$ac_tool_prefix"; then | |
5046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5047 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5049 $as_echo_n "checking for $ac_word... " >&6; } | |
5050 if test "${ac_cv_prog_STRIP+set}" = set; then : | |
5051 $as_echo_n "(cached) " >&6 | |
5052 else | |
5053 if test -n "$STRIP"; then | |
5054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5055 else | |
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5057 for as_dir in $PATH | |
5058 do | |
5059 IFS=$as_save_IFS | |
5060 test -z "$as_dir" && as_dir=. | |
5061 for ac_exec_ext in '' $ac_executable_extensions; do | |
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5063 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5065 break 2 | |
5066 fi | |
5067 done | |
5068 done | |
5069 IFS=$as_save_IFS | |
5070 | |
5071 fi | |
5072 fi | |
5073 STRIP=$ac_cv_prog_STRIP | |
5074 if test -n "$STRIP"; then | |
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5076 $as_echo "$STRIP" >&6; } | |
5077 else | |
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5079 $as_echo "no" >&6; } | |
5080 fi | |
5081 | |
5082 | |
5083 fi | |
5084 if test -z "$ac_cv_prog_STRIP"; then | |
5085 ac_ct_STRIP=$STRIP | |
5086 # Extract the first word of "strip", so it can be a program name with args. | |
5087 set dummy strip; ac_word=$2 | |
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5089 $as_echo_n "checking for $ac_word... " >&6; } | |
5090 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
5091 $as_echo_n "(cached) " >&6 | |
5092 else | |
5093 if test -n "$ac_ct_STRIP"; then | |
5094 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5095 else | |
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5097 for as_dir in $PATH | |
5098 do | |
5099 IFS=$as_save_IFS | |
5100 test -z "$as_dir" && as_dir=. | |
5101 for ac_exec_ext in '' $ac_executable_extensions; do | |
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5103 ac_cv_prog_ac_ct_STRIP="strip" | |
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5105 break 2 | |
5106 fi | |
5107 done | |
5108 done | |
5109 IFS=$as_save_IFS | |
5110 | |
5111 fi | |
5112 fi | |
5113 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
5114 if test -n "$ac_ct_STRIP"; then | |
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
5116 $as_echo "$ac_ct_STRIP" >&6; } | |
5117 else | |
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5119 $as_echo "no" >&6; } | |
5120 fi | |
5121 | |
5122 if test "x$ac_ct_STRIP" = x; then | |
5123 STRIP=":" | |
5124 else | |
5125 case $cross_compiling:$ac_tool_warned in | |
5126 yes:) | |
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5129 ac_tool_warned=yes ;; | |
5130 esac | |
5131 STRIP=$ac_ct_STRIP | |
5132 fi | |
5133 else | |
5134 STRIP="$ac_cv_prog_STRIP" | |
5135 fi | |
5136 | |
5137 test -z "$STRIP" && STRIP=: | |
5138 | |
5139 | |
5140 | |
5141 | |
5142 | |
5143 | |
5144 if test -n "$ac_tool_prefix"; then | |
5145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5148 $as_echo_n "checking for $ac_word... " >&6; } | |
5149 if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
5150 $as_echo_n "(cached) " >&6 | |
5151 else | |
5152 if test -n "$RANLIB"; then | |
5153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5154 else | |
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5156 for as_dir in $PATH | |
5157 do | |
5158 IFS=$as_save_IFS | |
5159 test -z "$as_dir" && as_dir=. | |
5160 for ac_exec_ext in '' $ac_executable_extensions; do | |
5161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5164 break 2 | |
5165 fi | |
5166 done | |
5167 done | |
5168 IFS=$as_save_IFS | |
5169 | |
5170 fi | |
5171 fi | |
5172 RANLIB=$ac_cv_prog_RANLIB | |
5173 if test -n "$RANLIB"; then | |
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5175 $as_echo "$RANLIB" >&6; } | |
5176 else | |
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5178 $as_echo "no" >&6; } | |
5179 fi | |
5180 | |
5181 | |
5182 fi | |
5183 if test -z "$ac_cv_prog_RANLIB"; then | |
5184 ac_ct_RANLIB=$RANLIB | |
5185 # Extract the first word of "ranlib", so it can be a program name with args. | |
5186 set dummy ranlib; ac_word=$2 | |
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5188 $as_echo_n "checking for $ac_word... " >&6; } | |
5189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
5190 $as_echo_n "(cached) " >&6 | |
5191 else | |
5192 if test -n "$ac_ct_RANLIB"; then | |
5193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5194 else | |
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5196 for as_dir in $PATH | |
5197 do | |
5198 IFS=$as_save_IFS | |
5199 test -z "$as_dir" && as_dir=. | |
5200 for ac_exec_ext in '' $ac_executable_extensions; do | |
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5202 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5204 break 2 | |
5205 fi | |
5206 done | |
5207 done | |
5208 IFS=$as_save_IFS | |
5209 | |
5210 fi | |
5211 fi | |
5212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5213 if test -n "$ac_ct_RANLIB"; then | |
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5215 $as_echo "$ac_ct_RANLIB" >&6; } | |
5216 else | |
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5218 $as_echo "no" >&6; } | |
5219 fi | |
5220 | |
5221 if test "x$ac_ct_RANLIB" = x; then | |
5222 RANLIB=":" | |
5223 else | |
5224 case $cross_compiling:$ac_tool_warned in | |
5225 yes:) | |
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5228 ac_tool_warned=yes ;; | |
5229 esac | |
5230 RANLIB=$ac_ct_RANLIB | |
5231 fi | |
5232 else | |
5233 RANLIB="$ac_cv_prog_RANLIB" | |
5234 fi | |
5235 | |
5236 test -z "$RANLIB" && RANLIB=: | |
5237 | |
5238 | |
5239 | |
5240 | |
5241 | |
5242 | |
5243 # Determine commands to create old-style static archives. | |
5244 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5245 old_postinstall_cmds='chmod 644 $oldlib' | |
5246 old_postuninstall_cmds= | |
5247 | |
5248 if test -n "$RANLIB"; then | |
5249 case $host_os in | |
5250 openbsd*) | |
5251 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5252 ;; | |
5253 *) | |
5254 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5255 ;; | |
5256 esac | |
5257 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
5258 fi | |
5259 | |
5260 | |
5261 | |
5262 | |
5263 | |
5264 | |
5265 | |
5266 | |
5267 | |
5268 | |
5269 | |
5270 | |
5271 | |
5272 | |
5273 | |
5274 | |
5275 | |
5276 | |
5277 | |
5278 | |
5279 | |
5280 | |
5281 | |
5282 | |
5283 | |
5284 | |
5285 | |
5286 | |
5287 | |
5288 | |
5289 | |
5290 | |
5291 | |
5292 | |
5293 # If no C compiler was specified, use CC. | |
5294 LTCC=${LTCC-"$CC"} | |
5295 | |
5296 # If no C compiler flags were specified, use CFLAGS. | |
5297 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5298 | |
5299 # Allow CC to be a program name with arguments. | |
5300 compiler=$CC | |
5301 | |
5302 | |
5303 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
5305 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
5306 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
5307 $as_echo_n "(cached) " >&6 | |
5308 else | |
5309 | |
5310 # These are sane defaults that work on at least a few old systems. | |
5311 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5312 | |
5313 # Character class describing NM global symbol codes. | |
5314 symcode='[BCDEGRST]' | |
5315 | |
5316 # Regexp to match symbols that can be accessed directly from C. | |
5317 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5318 | |
5319 # Define system-specific variables. | |
5320 case $host_os in | |
5321 aix*) | |
5322 symcode='[BCDT]' | |
5323 ;; | |
5324 cygwin* | mingw* | pw32* | cegcc*) | |
5325 symcode='[ABCDGISTW]' | |
5326 ;; | |
5327 hpux*) | |
5328 if test "$host_cpu" = ia64; then | |
5329 symcode='[ABCDEGRST]' | |
5330 fi | |
5331 ;; | |
5332 irix* | nonstopux*) | |
5333 symcode='[BCDEGRST]' | |
5334 ;; | |
5335 osf*) | |
5336 symcode='[BCDEGQRST]' | |
5337 ;; | |
5338 solaris*) | |
5339 symcode='[BDRT]' | |
5340 ;; | |
5341 sco3.2v5*) | |
5342 symcode='[DT]' | |
5343 ;; | |
5344 sysv4.2uw2*) | |
5345 symcode='[DT]' | |
5346 ;; | |
5347 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5348 symcode='[ABDT]' | |
5349 ;; | |
5350 sysv4) | |
5351 symcode='[DFNSTU]' | |
5352 ;; | |
5353 esac | |
5354 | |
5355 # If we're using GNU nm, then use its standard symbol codes. | |
5356 case `$NM -V 2>&1` in | |
5357 *GNU* | *'with BFD'*) | |
5358 symcode='[ABCDGIRSTW]' ;; | |
5359 esac | |
5360 | |
5361 # Transform an extracted symbol line into a proper C declaration. | |
5362 # Some systems (esp. on ia64) link data and code symbols differently, | |
5363 # so use this general approach. | |
5364 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5365 | |
5366 # Transform an extracted symbol line into symbol name and symbol address | |
5367 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5368 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\", (void *) \&\2},/p'" | |
5369 | |
5370 # Handle CRLF in mingw tool chain | |
5371 opt_cr= | |
5372 case $build_os in | |
5373 mingw*) | |
5374 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5375 ;; | |
5376 esac | |
5377 | |
5378 # Try without a prefix underscore, then with it. | |
5379 for ac_symprfx in "" "_"; do | |
5380 | |
5381 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5382 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5383 | |
5384 # Write the raw and C identifiers. | |
5385 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5386 # Fake it for dumpbin and say T for any non-static function | |
5387 # and D for any global variable. | |
5388 # Also find C++ and __fastcall symbols from MSVC++, | |
5389 # which start with @ or ?. | |
5390 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5391 " {last_section=section; section=\$ 3};"\ | |
5392 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5393 " \$ 0!~/External *\|/{next};"\ | |
5394 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5395 " {if(hide[section]) next};"\ | |
5396 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5397 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5398 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5399 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5400 " ' prfx=^$ac_symprfx" | |
5401 else | |
5402 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5403 fi | |
5404 | |
5405 # Check to see that the pipe works correctly. | |
5406 pipe_works=no | |
5407 | |
5408 rm -f conftest* | |
5409 cat > conftest.$ac_ext <<_LT_EOF | |
5410 #ifdef __cplusplus | |
5411 extern "C" { | |
5412 #endif | |
5413 char nm_test_var; | |
5414 void nm_test_func(void); | |
5415 void nm_test_func(void){} | |
5416 #ifdef __cplusplus | |
5417 } | |
5418 #endif | |
5419 int main(){nm_test_var='a';nm_test_func();return(0);} | |
5420 _LT_EOF | |
5421 | |
5422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5423 (eval $ac_compile) 2>&5 | |
5424 ac_status=$? | |
5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5426 test $ac_status = 0; }; then | |
5427 # Now try to grab the symbols. | |
5428 nlist=conftest.nm | |
5429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 | |
5430 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5431 ac_status=$? | |
5432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5433 test $ac_status = 0; } && test -s "$nlist"; then | |
5434 # Try sorting and uniquifying the output. | |
5435 if sort "$nlist" | uniq > "$nlist"T; then | |
5436 mv -f "$nlist"T "$nlist" | |
5437 else | |
5438 rm -f "$nlist"T | |
5439 fi | |
5440 | |
5441 # Make sure that we snagged all the symbols we need. | |
5442 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5443 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5444 cat <<_LT_EOF > conftest.$ac_ext | |
5445 #ifdef __cplusplus | |
5446 extern "C" { | |
5447 #endif | |
5448 | |
5449 _LT_EOF | |
5450 # Now generate the symbol file. | |
5451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5452 | |
5453 cat <<_LT_EOF >> conftest.$ac_ext | |
5454 | |
5455 /* The mapping between symbol names and symbols. */ | |
5456 const struct { | |
5457 const char *name; | |
5458 void *address; | |
5459 } | |
5460 lt__PROGRAM__LTX_preloaded_symbols[] = | |
5461 { | |
5462 { "@PROGRAM@", (void *) 0 }, | |
5463 _LT_EOF | |
5464 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5465 cat <<\_LT_EOF >> conftest.$ac_ext | |
5466 {0, (void *) 0} | |
5467 }; | |
5468 | |
5469 /* This works around a problem in FreeBSD linker */ | |
5470 #ifdef FREEBSD_WORKAROUND | |
5471 static const void *lt_preloaded_setup() { | |
5472 return lt__PROGRAM__LTX_preloaded_symbols; | |
5473 } | |
5474 #endif | |
5475 | |
5476 #ifdef __cplusplus | |
5477 } | |
5478 #endif | |
5479 _LT_EOF | |
5480 # Now try linking the two files. | |
5481 mv conftest.$ac_objext conftstm.$ac_objext | |
5482 lt_save_LIBS="$LIBS" | |
5483 lt_save_CFLAGS="$CFLAGS" | |
5484 LIBS="conftstm.$ac_objext" | |
5485 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
5487 (eval $ac_link) 2>&5 | |
5488 ac_status=$? | |
5489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5490 test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
5491 pipe_works=yes | |
5492 fi | |
5493 LIBS="$lt_save_LIBS" | |
5494 CFLAGS="$lt_save_CFLAGS" | |
5495 else | |
5496 echo "cannot find nm_test_func in $nlist" >&5 | |
5497 fi | |
5498 else | |
5499 echo "cannot find nm_test_var in $nlist" >&5 | |
5500 fi | |
5501 else | |
5502 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5503 fi | |
5504 else | |
5505 echo "$progname: failed program was:" >&5 | |
5506 cat conftest.$ac_ext >&5 | |
5507 fi | |
5508 rm -rf conftest* conftst* | |
5509 | |
5510 # Do not use the global_symbol_pipe unless it works. | |
5511 if test "$pipe_works" = yes; then | |
5512 break | |
5513 else | |
5514 lt_cv_sys_global_symbol_pipe= | |
5515 fi | |
5516 done | |
5517 | |
5518 fi | |
5519 | |
5520 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
5521 lt_cv_sys_global_symbol_to_cdecl= | |
5522 fi | |
5523 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
5525 $as_echo "failed" >&6; } | |
5526 else | |
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
5528 $as_echo "ok" >&6; } | |
5529 fi | |
5530 | |
5531 | |
5532 | |
5533 | |
5534 | |
5535 | |
5536 | |
5537 | |
5538 | |
5539 | |
5540 | |
5541 | |
5542 | |
5543 | |
5544 | |
5545 | |
5546 | |
5547 | |
5548 | |
5549 | |
5550 | |
5551 | |
5552 | |
5553 # Check whether --enable-libtool-lock was given. | |
5554 if test "${enable_libtool_lock+set}" = set; then : | |
5555 enableval=$enable_libtool_lock; | |
5556 fi | |
5557 | |
5558 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5559 | |
5560 # Some flags need to be propagated to the compiler or linker for good | |
5561 # libtool support. | |
5562 case $host in | |
5563 ia64-*-hpux*) | |
5564 # Find out which ABI we are using. | |
5565 echo 'int i;' > conftest.$ac_ext | |
5566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5567 (eval $ac_compile) 2>&5 | |
5568 ac_status=$? | |
5569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5570 test $ac_status = 0; }; then | |
5571 case `/usr/bin/file conftest.$ac_objext` in | |
5572 *ELF-32*) | |
5573 HPUX_IA64_MODE="32" | |
5574 ;; | |
5575 *ELF-64*) | |
5576 HPUX_IA64_MODE="64" | |
5577 ;; | |
5578 esac | |
5579 fi | |
5580 rm -rf conftest* | |
5581 ;; | |
5582 *-*-irix6*) | |
5583 # Find out which ABI we are using. | |
5584 echo '#line 5584 "configure"' > conftest.$ac_ext | |
5585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5586 (eval $ac_compile) 2>&5 | |
5587 ac_status=$? | |
5588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5589 test $ac_status = 0; }; then | |
5590 if test "$lt_cv_prog_gnu_ld" = yes; then | |
5591 case `/usr/bin/file conftest.$ac_objext` in | |
5592 *32-bit*) | |
5593 LD="${LD-ld} -melf32bsmip" | |
5594 ;; | |
5595 *N32*) | |
5596 LD="${LD-ld} -melf32bmipn32" | |
5597 ;; | |
5598 *64-bit*) | |
5599 LD="${LD-ld} -melf64bmip" | |
5600 ;; | |
5601 esac | |
5602 else | |
5603 case `/usr/bin/file conftest.$ac_objext` in | |
5604 *32-bit*) | |
5605 LD="${LD-ld} -32" | |
5606 ;; | |
5607 *N32*) | |
5608 LD="${LD-ld} -n32" | |
5609 ;; | |
5610 *64-bit*) | |
5611 LD="${LD-ld} -64" | |
5612 ;; | |
5613 esac | |
5614 fi | |
5615 fi | |
5616 rm -rf conftest* | |
5617 ;; | |
5618 | |
5619 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5620 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5621 # Find out which ABI we are using. | |
5622 echo 'int i;' > conftest.$ac_ext | |
5623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5624 (eval $ac_compile) 2>&5 | |
5625 ac_status=$? | |
5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5627 test $ac_status = 0; }; then | |
5628 case `/usr/bin/file conftest.o` in | |
5629 *32-bit*) | |
5630 case $host in | |
5631 x86_64-*kfreebsd*-gnu) | |
5632 LD="${LD-ld} -m elf_i386_fbsd" | |
5633 ;; | |
5634 x86_64-*linux*) | |
5635 LD="${LD-ld} -m elf_i386" | |
5636 ;; | |
5637 ppc64-*linux*|powerpc64-*linux*) | |
5638 LD="${LD-ld} -m elf32ppclinux" | |
5639 ;; | |
5640 s390x-*linux*) | |
5641 LD="${LD-ld} -m elf_s390" | |
5642 ;; | |
5643 sparc64-*linux*) | |
5644 LD="${LD-ld} -m elf32_sparc" | |
5645 ;; | |
5646 esac | |
5647 ;; | |
5648 *64-bit*) | |
5649 case $host in | |
5650 x86_64-*kfreebsd*-gnu) | |
5651 LD="${LD-ld} -m elf_x86_64_fbsd" | |
5652 ;; | |
5653 x86_64-*linux*) | |
5654 LD="${LD-ld} -m elf_x86_64" | |
5655 ;; | |
5656 ppc*-*linux*|powerpc*-*linux*) | |
5657 LD="${LD-ld} -m elf64ppc" | |
5658 ;; | |
5659 s390*-*linux*|s390*-*tpf*) | |
5660 LD="${LD-ld} -m elf64_s390" | |
5661 ;; | |
5662 sparc*-*linux*) | |
5663 LD="${LD-ld} -m elf64_sparc" | |
5664 ;; | |
5665 esac | |
5666 ;; | |
5667 esac | |
5668 fi | |
5669 rm -rf conftest* | |
5670 ;; | |
5671 | |
5672 *-*-sco3.2v5*) | |
5673 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5674 SAVE_CFLAGS="$CFLAGS" | |
5675 CFLAGS="$CFLAGS -belf" | |
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
5677 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
5678 if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
5679 $as_echo_n "(cached) " >&6 | |
5680 else | |
5681 ac_ext=c | |
5682 ac_cpp='$CPP $CPPFLAGS' | |
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5686 | |
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5688 /* end confdefs.h. */ | |
5689 | |
5690 int | |
5691 main () | |
5692 { | |
5693 | |
5694 ; | |
5695 return 0; | |
5696 } | |
5697 _ACEOF | |
5698 if ac_fn_c_try_link "$LINENO"; then : | |
5699 lt_cv_cc_needs_belf=yes | |
5700 else | |
5701 lt_cv_cc_needs_belf=no | |
5702 fi | |
5703 rm -f core conftest.err conftest.$ac_objext \ | |
5704 conftest$ac_exeext conftest.$ac_ext | |
5705 ac_ext=c | |
5706 ac_cpp='$CPP $CPPFLAGS' | |
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5710 | |
5711 fi | |
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
5713 $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
5714 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5715 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5716 CFLAGS="$SAVE_CFLAGS" | |
5717 fi | |
5718 ;; | |
5719 sparc*-*solaris*) | |
5720 # Find out which ABI we are using. | |
5721 echo 'int i;' > conftest.$ac_ext | |
5722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
5723 (eval $ac_compile) 2>&5 | |
5724 ac_status=$? | |
5725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5726 test $ac_status = 0; }; then | |
5727 case `/usr/bin/file conftest.o` in | |
5728 *64-bit*) | |
5729 case $lt_cv_prog_gnu_ld in | |
5730 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5731 *) | |
5732 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5733 LD="${LD-ld} -64" | |
5734 fi | |
5735 ;; | |
5736 esac | |
5737 ;; | |
5738 esac | |
5739 fi | |
5740 rm -rf conftest* | |
5741 ;; | |
5742 esac | |
5743 | |
5744 need_locks="$enable_libtool_lock" | |
5745 | |
5746 | |
5747 case $host_os in | |
5748 rhapsody* | darwin*) | |
5749 if test -n "$ac_tool_prefix"; then | |
5750 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5751 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5753 $as_echo_n "checking for $ac_word... " >&6; } | |
5754 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
5755 $as_echo_n "(cached) " >&6 | |
5756 else | |
5757 if test -n "$DSYMUTIL"; then | |
5758 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5759 else | |
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5761 for as_dir in $PATH | |
5762 do | |
5763 IFS=$as_save_IFS | |
5764 test -z "$as_dir" && as_dir=. | |
5765 for ac_exec_ext in '' $ac_executable_extensions; do | |
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5767 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5769 break 2 | |
5770 fi | |
5771 done | |
5772 done | |
5773 IFS=$as_save_IFS | |
5774 | |
5775 fi | |
5776 fi | |
5777 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5778 if test -n "$DSYMUTIL"; then | |
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
5780 $as_echo "$DSYMUTIL" >&6; } | |
5781 else | |
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5783 $as_echo "no" >&6; } | |
5784 fi | |
5785 | |
5786 | |
5787 fi | |
5788 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5789 ac_ct_DSYMUTIL=$DSYMUTIL | |
5790 # Extract the first word of "dsymutil", so it can be a program name with args. | |
5791 set dummy dsymutil; ac_word=$2 | |
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5793 $as_echo_n "checking for $ac_word... " >&6; } | |
5794 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
5795 $as_echo_n "(cached) " >&6 | |
5796 else | |
5797 if test -n "$ac_ct_DSYMUTIL"; then | |
5798 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5799 else | |
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5801 for as_dir in $PATH | |
5802 do | |
5803 IFS=$as_save_IFS | |
5804 test -z "$as_dir" && as_dir=. | |
5805 for ac_exec_ext in '' $ac_executable_extensions; do | |
5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5807 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5809 break 2 | |
5810 fi | |
5811 done | |
5812 done | |
5813 IFS=$as_save_IFS | |
5814 | |
5815 fi | |
5816 fi | |
5817 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5818 if test -n "$ac_ct_DSYMUTIL"; then | |
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
5820 $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
5821 else | |
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5823 $as_echo "no" >&6; } | |
5824 fi | |
5825 | |
5826 if test "x$ac_ct_DSYMUTIL" = x; then | |
5827 DSYMUTIL=":" | |
5828 else | |
5829 case $cross_compiling:$ac_tool_warned in | |
5830 yes:) | |
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5833 ac_tool_warned=yes ;; | |
5834 esac | |
5835 DSYMUTIL=$ac_ct_DSYMUTIL | |
5836 fi | |
5837 else | |
5838 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5839 fi | |
5840 | |
5841 if test -n "$ac_tool_prefix"; then | |
5842 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5843 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5845 $as_echo_n "checking for $ac_word... " >&6; } | |
5846 if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
5847 $as_echo_n "(cached) " >&6 | |
5848 else | |
5849 if test -n "$NMEDIT"; then | |
5850 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5851 else | |
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5853 for as_dir in $PATH | |
5854 do | |
5855 IFS=$as_save_IFS | |
5856 test -z "$as_dir" && as_dir=. | |
5857 for ac_exec_ext in '' $ac_executable_extensions; do | |
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5859 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5861 break 2 | |
5862 fi | |
5863 done | |
5864 done | |
5865 IFS=$as_save_IFS | |
5866 | |
5867 fi | |
5868 fi | |
5869 NMEDIT=$ac_cv_prog_NMEDIT | |
5870 if test -n "$NMEDIT"; then | |
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
5872 $as_echo "$NMEDIT" >&6; } | |
5873 else | |
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5875 $as_echo "no" >&6; } | |
5876 fi | |
5877 | |
5878 | |
5879 fi | |
5880 if test -z "$ac_cv_prog_NMEDIT"; then | |
5881 ac_ct_NMEDIT=$NMEDIT | |
5882 # Extract the first word of "nmedit", so it can be a program name with args. | |
5883 set dummy nmedit; ac_word=$2 | |
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5885 $as_echo_n "checking for $ac_word... " >&6; } | |
5886 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
5887 $as_echo_n "(cached) " >&6 | |
5888 else | |
5889 if test -n "$ac_ct_NMEDIT"; then | |
5890 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
5891 else | |
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5893 for as_dir in $PATH | |
5894 do | |
5895 IFS=$as_save_IFS | |
5896 test -z "$as_dir" && as_dir=. | |
5897 for ac_exec_ext in '' $ac_executable_extensions; do | |
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5899 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
5900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5901 break 2 | |
5902 fi | |
5903 done | |
5904 done | |
5905 IFS=$as_save_IFS | |
5906 | |
5907 fi | |
5908 fi | |
5909 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
5910 if test -n "$ac_ct_NMEDIT"; then | |
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
5912 $as_echo "$ac_ct_NMEDIT" >&6; } | |
5913 else | |
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5915 $as_echo "no" >&6; } | |
5916 fi | |
5917 | |
5918 if test "x$ac_ct_NMEDIT" = x; then | |
5919 NMEDIT=":" | |
5920 else | |
5921 case $cross_compiling:$ac_tool_warned in | |
5922 yes:) | |
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5925 ac_tool_warned=yes ;; | |
5926 esac | |
5927 NMEDIT=$ac_ct_NMEDIT | |
5928 fi | |
5929 else | |
5930 NMEDIT="$ac_cv_prog_NMEDIT" | |
5931 fi | |
5932 | |
5933 if test -n "$ac_tool_prefix"; then | |
5934 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
5935 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5937 $as_echo_n "checking for $ac_word... " >&6; } | |
5938 if test "${ac_cv_prog_LIPO+set}" = set; then : | |
5939 $as_echo_n "(cached) " >&6 | |
5940 else | |
5941 if test -n "$LIPO"; then | |
5942 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
5943 else | |
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5945 for as_dir in $PATH | |
5946 do | |
5947 IFS=$as_save_IFS | |
5948 test -z "$as_dir" && as_dir=. | |
5949 for ac_exec_ext in '' $ac_executable_extensions; do | |
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5951 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5953 break 2 | |
5954 fi | |
5955 done | |
5956 done | |
5957 IFS=$as_save_IFS | |
5958 | |
5959 fi | |
5960 fi | |
5961 LIPO=$ac_cv_prog_LIPO | |
5962 if test -n "$LIPO"; then | |
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
5964 $as_echo "$LIPO" >&6; } | |
5965 else | |
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5967 $as_echo "no" >&6; } | |
5968 fi | |
5969 | |
5970 | |
5971 fi | |
5972 if test -z "$ac_cv_prog_LIPO"; then | |
5973 ac_ct_LIPO=$LIPO | |
5974 # Extract the first word of "lipo", so it can be a program name with args. | |
5975 set dummy lipo; ac_word=$2 | |
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5977 $as_echo_n "checking for $ac_word... " >&6; } | |
5978 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
5979 $as_echo_n "(cached) " >&6 | |
5980 else | |
5981 if test -n "$ac_ct_LIPO"; then | |
5982 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
5983 else | |
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5985 for as_dir in $PATH | |
5986 do | |
5987 IFS=$as_save_IFS | |
5988 test -z "$as_dir" && as_dir=. | |
5989 for ac_exec_ext in '' $ac_executable_extensions; do | |
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5991 ac_cv_prog_ac_ct_LIPO="lipo" | |
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5993 break 2 | |
5994 fi | |
5995 done | |
5996 done | |
5997 IFS=$as_save_IFS | |
5998 | |
5999 fi | |
6000 fi | |
6001 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6002 if test -n "$ac_ct_LIPO"; then | |
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
6004 $as_echo "$ac_ct_LIPO" >&6; } | |
6005 else | |
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6007 $as_echo "no" >&6; } | |
6008 fi | |
6009 | |
6010 if test "x$ac_ct_LIPO" = x; then | |
6011 LIPO=":" | |
6012 else | |
6013 case $cross_compiling:$ac_tool_warned in | |
6014 yes:) | |
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6017 ac_tool_warned=yes ;; | |
6018 esac | |
6019 LIPO=$ac_ct_LIPO | |
6020 fi | |
6021 else | |
6022 LIPO="$ac_cv_prog_LIPO" | |
6023 fi | |
6024 | |
6025 if test -n "$ac_tool_prefix"; then | |
6026 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6027 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6029 $as_echo_n "checking for $ac_word... " >&6; } | |
6030 if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
6031 $as_echo_n "(cached) " >&6 | |
6032 else | |
6033 if test -n "$OTOOL"; then | |
6034 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6035 else | |
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6037 for as_dir in $PATH | |
6038 do | |
6039 IFS=$as_save_IFS | |
6040 test -z "$as_dir" && as_dir=. | |
6041 for ac_exec_ext in '' $ac_executable_extensions; do | |
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6043 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6045 break 2 | |
6046 fi | |
6047 done | |
6048 done | |
6049 IFS=$as_save_IFS | |
6050 | |
6051 fi | |
6052 fi | |
6053 OTOOL=$ac_cv_prog_OTOOL | |
6054 if test -n "$OTOOL"; then | |
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
6056 $as_echo "$OTOOL" >&6; } | |
6057 else | |
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6059 $as_echo "no" >&6; } | |
6060 fi | |
6061 | |
6062 | |
6063 fi | |
6064 if test -z "$ac_cv_prog_OTOOL"; then | |
6065 ac_ct_OTOOL=$OTOOL | |
6066 # Extract the first word of "otool", so it can be a program name with args. | |
6067 set dummy otool; ac_word=$2 | |
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6069 $as_echo_n "checking for $ac_word... " >&6; } | |
6070 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
6071 $as_echo_n "(cached) " >&6 | |
6072 else | |
6073 if test -n "$ac_ct_OTOOL"; then | |
6074 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6075 else | |
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6077 for as_dir in $PATH | |
6078 do | |
6079 IFS=$as_save_IFS | |
6080 test -z "$as_dir" && as_dir=. | |
6081 for ac_exec_ext in '' $ac_executable_extensions; do | |
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6083 ac_cv_prog_ac_ct_OTOOL="otool" | |
6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6085 break 2 | |
6086 fi | |
6087 done | |
6088 done | |
6089 IFS=$as_save_IFS | |
6090 | |
6091 fi | |
6092 fi | |
6093 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6094 if test -n "$ac_ct_OTOOL"; then | |
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
6096 $as_echo "$ac_ct_OTOOL" >&6; } | |
6097 else | |
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6099 $as_echo "no" >&6; } | |
6100 fi | |
6101 | |
6102 if test "x$ac_ct_OTOOL" = x; then | |
6103 OTOOL=":" | |
6104 else | |
6105 case $cross_compiling:$ac_tool_warned in | |
6106 yes:) | |
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6109 ac_tool_warned=yes ;; | |
6110 esac | |
6111 OTOOL=$ac_ct_OTOOL | |
6112 fi | |
6113 else | |
6114 OTOOL="$ac_cv_prog_OTOOL" | |
6115 fi | |
6116 | |
6117 if test -n "$ac_tool_prefix"; then | |
6118 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6119 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6121 $as_echo_n "checking for $ac_word... " >&6; } | |
6122 if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
6123 $as_echo_n "(cached) " >&6 | |
6124 else | |
6125 if test -n "$OTOOL64"; then | |
6126 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6127 else | |
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6129 for as_dir in $PATH | |
6130 do | |
6131 IFS=$as_save_IFS | |
6132 test -z "$as_dir" && as_dir=. | |
6133 for ac_exec_ext in '' $ac_executable_extensions; do | |
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6135 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6137 break 2 | |
6138 fi | |
6139 done | |
6140 done | |
6141 IFS=$as_save_IFS | |
6142 | |
6143 fi | |
6144 fi | |
6145 OTOOL64=$ac_cv_prog_OTOOL64 | |
6146 if test -n "$OTOOL64"; then | |
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
6148 $as_echo "$OTOOL64" >&6; } | |
6149 else | |
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6151 $as_echo "no" >&6; } | |
6152 fi | |
6153 | |
6154 | |
6155 fi | |
6156 if test -z "$ac_cv_prog_OTOOL64"; then | |
6157 ac_ct_OTOOL64=$OTOOL64 | |
6158 # Extract the first word of "otool64", so it can be a program name with args. | |
6159 set dummy otool64; ac_word=$2 | |
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6161 $as_echo_n "checking for $ac_word... " >&6; } | |
6162 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
6163 $as_echo_n "(cached) " >&6 | |
6164 else | |
6165 if test -n "$ac_ct_OTOOL64"; then | |
6166 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6167 else | |
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6169 for as_dir in $PATH | |
6170 do | |
6171 IFS=$as_save_IFS | |
6172 test -z "$as_dir" && as_dir=. | |
6173 for ac_exec_ext in '' $ac_executable_extensions; do | |
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6175 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6177 break 2 | |
6178 fi | |
6179 done | |
6180 done | |
6181 IFS=$as_save_IFS | |
6182 | |
6183 fi | |
6184 fi | |
6185 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6186 if test -n "$ac_ct_OTOOL64"; then | |
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
6188 $as_echo "$ac_ct_OTOOL64" >&6; } | |
6189 else | |
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6191 $as_echo "no" >&6; } | |
6192 fi | |
6193 | |
6194 if test "x$ac_ct_OTOOL64" = x; then | |
6195 OTOOL64=":" | |
6196 else | |
6197 case $cross_compiling:$ac_tool_warned in | |
6198 yes:) | |
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6201 ac_tool_warned=yes ;; | |
6202 esac | |
6203 OTOOL64=$ac_ct_OTOOL64 | |
6204 fi | |
6205 else | |
6206 OTOOL64="$ac_cv_prog_OTOOL64" | |
6207 fi | |
6208 | |
6209 | |
6210 | |
6211 | |
6212 | |
6213 | |
6214 | |
6215 | |
6216 | |
6217 | |
6218 | |
6219 | |
6220 | |
6221 | |
6222 | |
6223 | |
6224 | |
6225 | |
6226 | |
6227 | |
6228 | |
6229 | |
6230 | |
6231 | |
6232 | |
6233 | |
6234 | |
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
6236 $as_echo_n "checking for -single_module linker flag... " >&6; } | |
6237 if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
6238 $as_echo_n "(cached) " >&6 | |
6239 else | |
6240 lt_cv_apple_cc_single_mod=no | |
6241 if test -z "${LT_MULTI_MODULE}"; then | |
6242 # By default we will add the -single_module flag. You can override | |
6243 # by either setting the environment variable LT_MULTI_MODULE | |
6244 # non-empty at configure time, or by adding -multi_module to the | |
6245 # link flags. | |
6246 rm -rf libconftest.dylib* | |
6247 echo "int foo(void){return 1;}" > conftest.c | |
6248 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6249 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6250 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6251 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6252 _lt_result=$? | |
6253 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6254 lt_cv_apple_cc_single_mod=yes | |
6255 else | |
6256 cat conftest.err >&5 | |
6257 fi | |
6258 rm -rf libconftest.dylib* | |
6259 rm -f conftest.* | |
6260 fi | |
6261 fi | |
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
6263 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
6265 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
6266 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
6267 $as_echo_n "(cached) " >&6 | |
6268 else | |
6269 lt_cv_ld_exported_symbols_list=no | |
6270 save_LDFLAGS=$LDFLAGS | |
6271 echo "_main" > conftest.sym | |
6272 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6274 /* end confdefs.h. */ | |
6275 | |
6276 int | |
6277 main () | |
6278 { | |
6279 | |
6280 ; | |
6281 return 0; | |
6282 } | |
6283 _ACEOF | |
6284 if ac_fn_c_try_link "$LINENO"; then : | |
6285 lt_cv_ld_exported_symbols_list=yes | |
6286 else | |
6287 lt_cv_ld_exported_symbols_list=no | |
6288 fi | |
6289 rm -f core conftest.err conftest.$ac_objext \ | |
6290 conftest$ac_exeext conftest.$ac_ext | |
6291 LDFLAGS="$save_LDFLAGS" | |
6292 | |
6293 fi | |
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6295 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
6296 case $host_os in | |
6297 rhapsody* | darwin1.[012]) | |
6298 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6299 darwin1.*) | |
6300 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6301 darwin*) # darwin 5.x on | |
6302 # if running on 10.5 or later, the deployment target defaults | |
6303 # to the OS version, if on x86, and 10.4, the deployment | |
6304 # target defaults to 10.4. Don't you love it? | |
6305 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6306 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6307 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6308 10.[012]*) | |
6309 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6310 10.*) | |
6311 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6312 esac | |
6313 ;; | |
6314 esac | |
6315 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6316 _lt_dar_single_mod='$single_module' | |
6317 fi | |
6318 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6319 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6320 else | |
6321 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6322 fi | |
6323 if test "$DSYMUTIL" != ":"; then | |
6324 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6325 else | |
6326 _lt_dsymutil= | |
6327 fi | |
6328 ;; | |
6329 esac | |
6330 | |
6331 ac_ext=c | |
6332 ac_cpp='$CPP $CPPFLAGS' | |
6333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6335 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
6337 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
6338 # On Suns, sometimes $CPP names a directory. | |
6339 if test -n "$CPP" && test -d "$CPP"; then | |
6340 CPP= | |
6341 fi | |
6342 if test -z "$CPP"; then | |
6343 if test "${ac_cv_prog_CPP+set}" = set; then : | |
6344 $as_echo_n "(cached) " >&6 | |
6345 else | |
6346 # Double quotes because CPP needs to be expanded | |
6347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
6348 do | |
6349 ac_preproc_ok=false | |
6350 for ac_c_preproc_warn_flag in '' yes | |
6351 do | |
6352 # Use a header file that comes with gcc, so configuring glibc | |
6353 # with a fresh cross-compiler works. | |
6354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6355 # <limits.h> exists even on freestanding compilers. | |
6356 # On the NeXT, cc -E runs the code through the compiler's parser, | |
6357 # not just through cpp. "Syntax error" is here to catch this case. | |
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6359 /* end confdefs.h. */ | |
6360 #ifdef __STDC__ | |
6361 # include <limits.h> | |
6362 #else | |
6363 # include <assert.h> | |
6364 #endif | |
6365 Syntax error | |
6366 _ACEOF | |
6367 if ac_fn_c_try_cpp "$LINENO"; then : | |
6368 | |
6369 else | |
6370 # Broken: fails on valid input. | |
6371 continue | |
6372 fi | |
6373 rm -f conftest.err conftest.$ac_ext | |
6374 | |
6375 # OK, works on sane cases. Now check whether nonexistent headers | |
6376 # can be detected and how. | |
6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6378 /* end confdefs.h. */ | |
6379 #include <ac_nonexistent.h> | |
6380 _ACEOF | |
6381 if ac_fn_c_try_cpp "$LINENO"; then : | |
6382 # Broken: success on invalid input. | |
6383 continue | |
6384 else | |
6385 # Passes both tests. | |
6386 ac_preproc_ok=: | |
6387 break | |
6388 fi | |
6389 rm -f conftest.err conftest.$ac_ext | |
6390 | |
6391 done | |
6392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6393 rm -f conftest.err conftest.$ac_ext | |
6394 if $ac_preproc_ok; then : | |
6395 break | |
6396 fi | |
6397 | |
6398 done | |
6399 ac_cv_prog_CPP=$CPP | |
6400 | |
6401 fi | |
6402 CPP=$ac_cv_prog_CPP | |
6403 else | |
6404 ac_cv_prog_CPP=$CPP | |
6405 fi | |
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
6407 $as_echo "$CPP" >&6; } | |
6408 ac_preproc_ok=false | |
6409 for ac_c_preproc_warn_flag in '' yes | |
6410 do | |
6411 # Use a header file that comes with gcc, so configuring glibc | |
6412 # with a fresh cross-compiler works. | |
6413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6414 # <limits.h> exists even on freestanding compilers. | |
6415 # On the NeXT, cc -E runs the code through the compiler's parser, | |
6416 # not just through cpp. "Syntax error" is here to catch this case. | |
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6418 /* end confdefs.h. */ | |
6419 #ifdef __STDC__ | |
6420 # include <limits.h> | |
6421 #else | |
6422 # include <assert.h> | |
6423 #endif | |
6424 Syntax error | |
6425 _ACEOF | |
6426 if ac_fn_c_try_cpp "$LINENO"; then : | |
6427 | |
6428 else | |
6429 # Broken: fails on valid input. | |
6430 continue | |
6431 fi | |
6432 rm -f conftest.err conftest.$ac_ext | |
6433 | |
6434 # OK, works on sane cases. Now check whether nonexistent headers | |
6435 # can be detected and how. | |
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6437 /* end confdefs.h. */ | |
6438 #include <ac_nonexistent.h> | |
6439 _ACEOF | |
6440 if ac_fn_c_try_cpp "$LINENO"; then : | |
6441 # Broken: success on invalid input. | |
6442 continue | |
6443 else | |
6444 # Passes both tests. | |
6445 ac_preproc_ok=: | |
6446 break | |
6447 fi | |
6448 rm -f conftest.err conftest.$ac_ext | |
6449 | |
6450 done | |
6451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6452 rm -f conftest.err conftest.$ac_ext | |
6453 if $ac_preproc_ok; then : | |
6454 | |
6455 else | |
6456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
6457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
6458 as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
6459 See \`config.log' for more details." "$LINENO" 5; } | |
6460 fi | |
6461 | |
6462 ac_ext=c | |
6463 ac_cpp='$CPP $CPPFLAGS' | |
6464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6466 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6467 | |
6468 | |
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
6470 $as_echo_n "checking for ANSI C header files... " >&6; } | |
6471 if test "${ac_cv_header_stdc+set}" = set; then : | |
6472 $as_echo_n "(cached) " >&6 | |
6473 else | |
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6475 /* end confdefs.h. */ | |
6476 #include <stdlib.h> | |
6477 #include <stdarg.h> | |
6478 #include <string.h> | |
6479 #include <float.h> | |
6480 | |
6481 int | |
6482 main () | |
6483 { | |
6484 | |
6485 ; | |
6486 return 0; | |
6487 } | |
6488 _ACEOF | |
6489 if ac_fn_c_try_compile "$LINENO"; then : | |
6490 ac_cv_header_stdc=yes | |
6491 else | |
6492 ac_cv_header_stdc=no | |
6493 fi | |
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6495 | |
6496 if test $ac_cv_header_stdc = yes; then | |
6497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6499 /* end confdefs.h. */ | |
6500 #include <string.h> | |
6501 | |
6502 _ACEOF | |
6503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6504 $EGREP "memchr" >/dev/null 2>&1; then : | |
6505 | |
6506 else | |
6507 ac_cv_header_stdc=no | |
6508 fi | |
6509 rm -f conftest* | |
6510 | |
6511 fi | |
6512 | |
6513 if test $ac_cv_header_stdc = yes; then | |
6514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6516 /* end confdefs.h. */ | |
6517 #include <stdlib.h> | |
6518 | |
6519 _ACEOF | |
6520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6521 $EGREP "free" >/dev/null 2>&1; then : | |
6522 | |
6523 else | |
6524 ac_cv_header_stdc=no | |
6525 fi | |
6526 rm -f conftest* | |
6527 | |
6528 fi | |
6529 | |
6530 if test $ac_cv_header_stdc = yes; then | |
6531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6532 if test "$cross_compiling" = yes; then : | |
6533 : | |
6534 else | |
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6536 /* end confdefs.h. */ | |
6537 #include <ctype.h> | |
6538 #include <stdlib.h> | |
6539 #if ((' ' & 0x0FF) == 0x020) | |
6540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6542 #else | |
6543 # define ISLOWER(c) \ | |
6544 (('a' <= (c) && (c) <= 'i') \ | |
6545 || ('j' <= (c) && (c) <= 'r') \ | |
6546 || ('s' <= (c) && (c) <= 'z')) | |
6547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6548 #endif | |
6549 | |
6550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6551 int | |
6552 main () | |
6553 { | |
6554 int i; | |
6555 for (i = 0; i < 256; i++) | |
6556 if (XOR (islower (i), ISLOWER (i)) | |
6557 || toupper (i) != TOUPPER (i)) | |
6558 return 2; | |
6559 return 0; | |
6560 } | |
6561 _ACEOF | |
6562 if ac_fn_c_try_run "$LINENO"; then : | |
6563 | |
6564 else | |
6565 ac_cv_header_stdc=no | |
6566 fi | |
6567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6568 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6569 fi | |
6570 | |
6571 fi | |
6572 fi | |
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
6574 $as_echo "$ac_cv_header_stdc" >&6; } | |
6575 if test $ac_cv_header_stdc = yes; then | |
6576 | |
6577 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
6578 | |
6579 fi | |
6580 | |
6581 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6583 inttypes.h stdint.h unistd.h | |
6584 do : | |
6585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
6587 " | |
6588 eval as_val=\$$as_ac_Header | |
6589 if test "x$as_val" = x""yes; then : | |
6590 cat >>confdefs.h <<_ACEOF | |
6591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6592 _ACEOF | |
6593 | |
6594 fi | |
6595 | |
6596 done | |
6597 | |
6598 | |
6599 for ac_header in dlfcn.h | |
6600 do : | |
6601 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
6602 " | |
6603 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
6604 cat >>confdefs.h <<_ACEOF | |
6605 #define HAVE_DLFCN_H 1 | |
6606 _ACEOF | |
6607 | |
6608 fi | |
6609 | |
6610 done | |
6611 | |
6612 | |
6613 | |
6614 # Set options | |
6615 | |
6616 | |
6617 | |
6618 enable_dlopen=no | |
6619 | |
6620 | |
6621 enable_win32_dll=no | |
6622 | |
6623 | |
6624 # Check whether --enable-shared was given. | |
6625 if test "${enable_shared+set}" = set; then : | |
6626 enableval=$enable_shared; p=${PACKAGE-default} | |
6627 case $enableval in | |
6628 yes) enable_shared=yes ;; | |
6629 no) enable_shared=no ;; | |
6630 *) | |
6631 enable_shared=no | |
6632 # Look at the argument we got. We use all the common list separators. | |
6633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6634 for pkg in $enableval; do | |
6635 IFS="$lt_save_ifs" | |
6636 if test "X$pkg" = "X$p"; then | |
6637 enable_shared=yes | |
6638 fi | |
6639 done | |
6640 IFS="$lt_save_ifs" | |
6641 ;; | |
6642 esac | |
6643 else | |
6644 enable_shared=yes | |
6645 fi | |
6646 | |
6647 | |
6648 | |
6649 | |
6650 | |
6651 | |
6652 | |
6653 | |
6654 | |
6655 # Check whether --enable-static was given. | |
6656 if test "${enable_static+set}" = set; then : | |
6657 enableval=$enable_static; p=${PACKAGE-default} | |
6658 case $enableval in | |
6659 yes) enable_static=yes ;; | |
6660 no) enable_static=no ;; | |
6661 *) | |
6662 enable_static=no | |
6663 # Look at the argument we got. We use all the common list separators. | |
6664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6665 for pkg in $enableval; do | |
6666 IFS="$lt_save_ifs" | |
6667 if test "X$pkg" = "X$p"; then | |
6668 enable_static=yes | |
6669 fi | |
6670 done | |
6671 IFS="$lt_save_ifs" | |
6672 ;; | |
6673 esac | |
6674 else | |
6675 enable_static=yes | |
6676 fi | |
6677 | |
6678 | |
6679 | |
6680 | |
6681 | |
6682 | |
6683 | |
6684 | |
6685 | |
6686 | |
6687 # Check whether --with-pic was given. | |
6688 if test "${with_pic+set}" = set; then : | |
6689 withval=$with_pic; pic_mode="$withval" | |
6690 else | |
6691 pic_mode=default | |
6692 fi | |
6693 | |
6694 | |
6695 test -z "$pic_mode" && pic_mode=default | |
6696 | |
6697 | |
6698 | |
6699 | |
6700 | |
6701 | |
6702 | |
6703 # Check whether --enable-fast-install was given. | |
6704 if test "${enable_fast_install+set}" = set; then : | |
6705 enableval=$enable_fast_install; p=${PACKAGE-default} | |
6706 case $enableval in | |
6707 yes) enable_fast_install=yes ;; | |
6708 no) enable_fast_install=no ;; | |
6709 *) | |
6710 enable_fast_install=no | |
6711 # Look at the argument we got. We use all the common list separators. | |
6712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6713 for pkg in $enableval; do | |
6714 IFS="$lt_save_ifs" | |
6715 if test "X$pkg" = "X$p"; then | |
6716 enable_fast_install=yes | |
6717 fi | |
6718 done | |
6719 IFS="$lt_save_ifs" | |
6720 ;; | |
6721 esac | |
6722 else | |
6723 enable_fast_install=yes | |
6724 fi | |
6725 | |
6726 | |
6727 | |
6728 | |
6729 | |
6730 | |
6731 | |
6732 | |
6733 | |
6734 | |
6735 | |
6736 # This can be used to rebuild libtool when needed | |
6737 LIBTOOL_DEPS="$ltmain" | |
6738 | |
6739 # Always use our own libtool. | |
6740 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6741 | |
6742 | |
6743 | |
6744 | |
6745 | |
6746 | |
6747 | |
6748 | |
6749 | |
6750 | |
6751 | |
6752 | |
6753 | |
6754 | |
6755 | |
6756 | |
6757 | |
6758 | |
6759 | |
6760 | |
6761 | |
6762 | |
6763 | |
6764 | |
6765 | |
6766 test -z "$LN_S" && LN_S="ln -s" | |
6767 | |
6768 | |
6769 | |
6770 | |
6771 | |
6772 | |
6773 | |
6774 | |
6775 | |
6776 | |
6777 | |
6778 | |
6779 | |
6780 | |
6781 if test -n "${ZSH_VERSION+set}" ; then | |
6782 setopt NO_GLOB_SUBST | |
6783 fi | |
6784 | |
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
6786 $as_echo_n "checking for objdir... " >&6; } | |
6787 if test "${lt_cv_objdir+set}" = set; then : | |
6788 $as_echo_n "(cached) " >&6 | |
6789 else | |
6790 rm -f .libs 2>/dev/null | |
6791 mkdir .libs 2>/dev/null | |
6792 if test -d .libs; then | |
6793 lt_cv_objdir=.libs | |
6794 else | |
6795 # MS-DOS does not allow filenames that begin with a dot. | |
6796 lt_cv_objdir=_libs | |
6797 fi | |
6798 rmdir .libs 2>/dev/null | |
6799 fi | |
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
6801 $as_echo "$lt_cv_objdir" >&6; } | |
6802 objdir=$lt_cv_objdir | |
6803 | |
6804 | |
6805 | |
6806 | |
6807 | |
6808 cat >>confdefs.h <<_ACEOF | |
6809 #define LT_OBJDIR "$lt_cv_objdir/" | |
6810 _ACEOF | |
6811 | |
6812 | |
6813 | |
6814 | |
6815 | |
6816 | |
6817 | |
6818 | |
6819 | |
6820 | |
6821 | |
6822 | |
6823 | |
6824 | |
6825 | |
6826 | |
6827 | |
6828 case $host_os in | |
6829 aix3*) | |
6830 # AIX sometimes has problems with the GCC collect2 program. For some | |
6831 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6832 # vanish in a puff of smoke. | |
6833 if test "X${COLLECT_NAMES+set}" != Xset; then | |
6834 COLLECT_NAMES= | |
6835 export COLLECT_NAMES | |
6836 fi | |
6837 ;; | |
6838 esac | |
6839 | |
6840 # Sed substitution that helps us do robust quoting. It backslashifies | |
6841 # metacharacters that are still active within double-quoted strings. | |
6842 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6843 | |
6844 # Same as above, but do not quote variable references. | |
6845 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6846 | |
6847 # Sed substitution to delay expansion of an escaped shell variable in a | |
6848 # double_quote_subst'ed string. | |
6849 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6850 | |
6851 # Sed substitution to delay expansion of an escaped single quote. | |
6852 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6853 | |
6854 # Sed substitution to avoid accidental globbing in evaled expressions | |
6855 no_glob_subst='s/\*/\\\*/g' | |
6856 | |
6857 # Global variables: | |
6858 ofile=libtool | |
6859 can_build_shared=yes | |
6860 | |
6861 # All known linkers require a `.a' archive for static linking (except MSVC, | |
6862 # which needs '.lib'). | |
6863 libext=a | |
6864 | |
6865 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6866 | |
6867 old_CC="$CC" | |
6868 old_CFLAGS="$CFLAGS" | |
6869 | |
6870 # Set sane defaults for various variables | |
6871 test -z "$CC" && CC=cc | |
6872 test -z "$LTCC" && LTCC=$CC | |
6873 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6874 test -z "$LD" && LD=ld | |
6875 test -z "$ac_objext" && ac_objext=o | |
6876 | |
6877 for cc_temp in $compiler""; do | |
6878 case $cc_temp in | |
6879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6881 \-*) ;; | |
6882 *) break;; | |
6883 esac | |
6884 done | |
6885 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6886 | |
6887 | |
6888 # Only perform the check for file, if the check method requires it | |
6889 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6890 case $deplibs_check_method in | |
6891 file_magic*) | |
6892 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
6894 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
6895 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6896 $as_echo_n "(cached) " >&6 | |
6897 else | |
6898 case $MAGIC_CMD in | |
6899 [\\/*] | ?:[\\/]*) | |
6900 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6901 ;; | |
6902 *) | |
6903 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6905 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6906 for ac_dir in $ac_dummy; do | |
6907 IFS="$lt_save_ifs" | |
6908 test -z "$ac_dir" && ac_dir=. | |
6909 if test -f $ac_dir/${ac_tool_prefix}file; then | |
6910 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6911 if test -n "$file_magic_test_file"; then | |
6912 case $deplibs_check_method in | |
6913 "file_magic "*) | |
6914 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6915 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6916 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6917 $EGREP "$file_magic_regex" > /dev/null; then | |
6918 : | |
6919 else | |
6920 cat <<_LT_EOF 1>&2 | |
6921 | |
6922 *** Warning: the command libtool uses to detect shared libraries, | |
6923 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6924 *** The result is that libtool may fail to recognize shared libraries | |
6925 *** as such. This will affect the creation of libtool libraries that | |
6926 *** depend on shared libraries, but programs linked with such libtool | |
6927 *** libraries will work regardless of this problem. Nevertheless, you | |
6928 *** may want to report the problem to your system manager and/or to | |
6929 *** bug-libtool@gnu.org | |
6930 | |
6931 _LT_EOF | |
6932 fi ;; | |
6933 esac | |
6934 fi | |
6935 break | |
6936 fi | |
6937 done | |
6938 IFS="$lt_save_ifs" | |
6939 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6940 ;; | |
6941 esac | |
6942 fi | |
6943 | |
6944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6945 if test -n "$MAGIC_CMD"; then | |
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
6947 $as_echo "$MAGIC_CMD" >&6; } | |
6948 else | |
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6950 $as_echo "no" >&6; } | |
6951 fi | |
6952 | |
6953 | |
6954 | |
6955 | |
6956 | |
6957 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6958 if test -n "$ac_tool_prefix"; then | |
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
6960 $as_echo_n "checking for file... " >&6; } | |
6961 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
6962 $as_echo_n "(cached) " >&6 | |
6963 else | |
6964 case $MAGIC_CMD in | |
6965 [\\/*] | ?:[\\/]*) | |
6966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6967 ;; | |
6968 *) | |
6969 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6972 for ac_dir in $ac_dummy; do | |
6973 IFS="$lt_save_ifs" | |
6974 test -z "$ac_dir" && ac_dir=. | |
6975 if test -f $ac_dir/file; then | |
6976 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6977 if test -n "$file_magic_test_file"; then | |
6978 case $deplibs_check_method in | |
6979 "file_magic "*) | |
6980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6983 $EGREP "$file_magic_regex" > /dev/null; then | |
6984 : | |
6985 else | |
6986 cat <<_LT_EOF 1>&2 | |
6987 | |
6988 *** Warning: the command libtool uses to detect shared libraries, | |
6989 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6990 *** The result is that libtool may fail to recognize shared libraries | |
6991 *** as such. This will affect the creation of libtool libraries that | |
6992 *** depend on shared libraries, but programs linked with such libtool | |
6993 *** libraries will work regardless of this problem. Nevertheless, you | |
6994 *** may want to report the problem to your system manager and/or to | |
6995 *** bug-libtool@gnu.org | |
6996 | |
6997 _LT_EOF | |
6998 fi ;; | |
6999 esac | |
7000 fi | |
7001 break | |
7002 fi | |
7003 done | |
7004 IFS="$lt_save_ifs" | |
7005 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7006 ;; | |
7007 esac | |
7008 fi | |
7009 | |
7010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7011 if test -n "$MAGIC_CMD"; then | |
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7013 $as_echo "$MAGIC_CMD" >&6; } | |
7014 else | |
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7016 $as_echo "no" >&6; } | |
7017 fi | |
7018 | |
7019 | |
7020 else | |
7021 MAGIC_CMD=: | |
7022 fi | |
7023 fi | |
7024 | |
7025 fi | |
7026 ;; | |
7027 esac | |
7028 | |
7029 # Use C for the default configuration in the libtool script | |
7030 | |
7031 lt_save_CC="$CC" | |
7032 ac_ext=c | |
7033 ac_cpp='$CPP $CPPFLAGS' | |
7034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7036 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7037 | |
7038 | |
7039 # Source file extension for C test sources. | |
7040 ac_ext=c | |
7041 | |
7042 # Object file extension for compiled C test sources. | |
7043 objext=o | |
7044 objext=$objext | |
7045 | |
7046 # Code to be used in simple compile tests | |
7047 lt_simple_compile_test_code="int some_variable = 0;" | |
7048 | |
7049 # Code to be used in simple link tests | |
7050 lt_simple_link_test_code='int main(){return(0);}' | |
7051 | |
7052 | |
7053 | |
7054 | |
7055 | |
7056 | |
7057 | |
7058 # If no C compiler was specified, use CC. | |
7059 LTCC=${LTCC-"$CC"} | |
7060 | |
7061 # If no C compiler flags were specified, use CFLAGS. | |
7062 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7063 | |
7064 # Allow CC to be a program name with arguments. | |
7065 compiler=$CC | |
7066 | |
7067 # Save the default compiler, since it gets overwritten when the other | |
7068 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7069 compiler_DEFAULT=$CC | |
7070 | |
7071 # save warnings/boilerplate of simple test code | |
7072 ac_outfile=conftest.$ac_objext | |
7073 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
7074 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7075 _lt_compiler_boilerplate=`cat conftest.err` | |
7076 $RM conftest* | |
7077 | |
7078 ac_outfile=conftest.$ac_objext | |
7079 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
7080 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
7081 _lt_linker_boilerplate=`cat conftest.err` | |
7082 $RM -r conftest* | |
7083 | |
7084 | |
7085 if test -n "$compiler"; then | |
7086 | |
7087 lt_prog_compiler_no_builtin_flag= | |
7088 | |
7089 if test "$GCC" = yes; then | |
7090 lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
7091 | |
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7093 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
7094 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
7095 $as_echo_n "(cached) " >&6 | |
7096 else | |
7097 lt_cv_prog_compiler_rtti_exceptions=no | |
7098 ac_outfile=conftest.$ac_objext | |
7099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7100 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
7101 # Insert the option either (1) after the last *FLAGS variable, or | |
7102 # (2) before a word containing "conftest.", or (3) at the end. | |
7103 # Note that $ac_compile itself does not contain backslashes and begins | |
7104 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7105 # The option is referenced via a variable to avoid confusing sed. | |
7106 lt_compile=`echo "$ac_compile" | $SED \ | |
7107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7109 -e 's:$: $lt_compiler_flag:'` | |
7110 (eval echo "\"\$as_me:7110: $lt_compile\"" >&5) | |
7111 (eval "$lt_compile" 2>conftest.err) | |
7112 ac_status=$? | |
7113 cat conftest.err >&5 | |
7114 echo "$as_me:7114: \$? = $ac_status" >&5 | |
7115 if (exit $ac_status) && test -s "$ac_outfile"; then | |
7116 # The compiler can only warn and ignore the option if not recognized | |
7117 # So say no if there are warnings other than the usual output. | |
7118 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7121 lt_cv_prog_compiler_rtti_exceptions=yes | |
7122 fi | |
7123 fi | |
7124 $RM conftest* | |
7125 | |
7126 fi | |
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
7128 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
7129 | |
7130 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
7131 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
7132 else | |
7133 : | |
7134 fi | |
7135 | |
7136 fi | |
7137 | |
7138 | |
7139 | |
7140 | |
7141 | |
7142 | |
7143 lt_prog_compiler_wl= | |
7144 lt_prog_compiler_pic= | |
7145 lt_prog_compiler_static= | |
7146 | |
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
7148 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
7149 | |
7150 if test "$GCC" = yes; then | |
7151 lt_prog_compiler_wl='-Wl,' | |
7152 lt_prog_compiler_static='-static' | |
7153 | |
7154 case $host_os in | |
7155 aix*) | |
7156 # All AIX code is PIC. | |
7157 if test "$host_cpu" = ia64; then | |
7158 # AIX 5 now supports IA64 processor | |
7159 lt_prog_compiler_static='-Bstatic' | |
7160 fi | |
7161 ;; | |
7162 | |
7163 amigaos*) | |
7164 case $host_cpu in | |
7165 powerpc) | |
7166 # see comment about AmigaOS4 .so support | |
7167 lt_prog_compiler_pic='-fPIC' | |
7168 ;; | |
7169 m68k) | |
7170 # FIXME: we need at least 68020 code to build shared libraries, but | |
7171 # adding the `-m68020' flag to GCC prevents building anything better, | |
7172 # like `-m68040'. | |
7173 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7174 ;; | |
7175 esac | |
7176 ;; | |
7177 | |
7178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
7179 # PIC is the default for these OSes. | |
7180 ;; | |
7181 | |
7182 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
7183 # This hack is so that the source file can tell whether it is being | |
7184 # built for inclusion in a dll (and should export symbols for example). | |
7185 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7186 # (--disable-auto-import) libraries | |
7187 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7188 ;; | |
7189 | |
7190 darwin* | rhapsody*) | |
7191 # PIC is the default on this platform | |
7192 # Common symbols not allowed in MH_DYLIB files | |
7193 lt_prog_compiler_pic='-fno-common' | |
7194 ;; | |
7195 | |
7196 hpux*) | |
7197 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7198 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7199 # sets the default TLS model and affects inlining. | |
7200 case $host_cpu in | |
7201 hppa*64*) | |
7202 # +Z the default | |
7203 ;; | |
7204 *) | |
7205 lt_prog_compiler_pic='-fPIC' | |
7206 ;; | |
7207 esac | |
7208 ;; | |
7209 | |
7210 interix[3-9]*) | |
7211 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
7212 # Instead, we relocate shared libraries at runtime. | |
7213 ;; | |
7214 | |
7215 msdosdjgpp*) | |
7216 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
7217 # on systems that don't support them. | |
7218 lt_prog_compiler_can_build_shared=no | |
7219 enable_shared=no | |
7220 ;; | |
7221 | |
7222 *nto* | *qnx*) | |
7223 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7224 # it will coredump. | |
7225 lt_prog_compiler_pic='-fPIC -shared' | |
7226 ;; | |
7227 | |
7228 sysv4*MP*) | |
7229 if test -d /usr/nec; then | |
7230 lt_prog_compiler_pic=-Kconform_pic | |
7231 fi | |
7232 ;; | |
7233 | |
7234 *) | |
7235 lt_prog_compiler_pic='-fPIC' | |
7236 ;; | |
7237 esac | |
7238 else | |
7239 # PORTME Check for flag to pass linker flags through the system compiler. | |
7240 case $host_os in | |
7241 aix*) | |
7242 lt_prog_compiler_wl='-Wl,' | |
7243 if test "$host_cpu" = ia64; then | |
7244 # AIX 5 now supports IA64 processor | |
7245 lt_prog_compiler_static='-Bstatic' | |
7246 else | |
7247 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
7248 fi | |
7249 ;; | |
7250 | |
7251 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
7252 # This hack is so that the source file can tell whether it is being | |
7253 # built for inclusion in a dll (and should export symbols for example). | |
7254 lt_prog_compiler_pic='-DDLL_EXPORT' | |
7255 ;; | |
7256 | |
7257 hpux9* | hpux10* | hpux11*) | |
7258 lt_prog_compiler_wl='-Wl,' | |
7259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7260 # not for PA HP-UX. | |
7261 case $host_cpu in | |
7262 hppa*64*|ia64*) | |
7263 # +Z the default | |
7264 ;; | |
7265 *) | |
7266 lt_prog_compiler_pic='+Z' | |
7267 ;; | |
7268 esac | |
7269 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7270 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7271 ;; | |
7272 | |
7273 irix5* | irix6* | nonstopux*) | |
7274 lt_prog_compiler_wl='-Wl,' | |
7275 # PIC (with -KPIC) is the default. | |
7276 lt_prog_compiler_static='-non_shared' | |
7277 ;; | |
7278 | |
7279 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
7280 case $cc_basename in | |
7281 # old Intel for x86_64 which still supported -KPIC. | |
7282 ecc*) | |
7283 lt_prog_compiler_wl='-Wl,' | |
7284 lt_prog_compiler_pic='-KPIC' | |
7285 lt_prog_compiler_static='-static' | |
7286 ;; | |
7287 # icc used to be incompatible with GCC. | |
7288 # ICC 10 doesn't accept -KPIC any more. | |
7289 icc* | ifort*) | |
7290 lt_prog_compiler_wl='-Wl,' | |
7291 lt_prog_compiler_pic='-fPIC' | |
7292 lt_prog_compiler_static='-static' | |
7293 ;; | |
7294 # Lahey Fortran 8.1. | |
7295 lf95*) | |
7296 lt_prog_compiler_wl='-Wl,' | |
7297 lt_prog_compiler_pic='--shared' | |
7298 lt_prog_compiler_static='--static' | |
7299 ;; | |
7300 pgcc* | pgf77* | pgf90* | pgf95*) | |
7301 # Portland Group compilers (*not* the Pentium gcc compiler, | |
7302 # which looks to be a dead project) | |
7303 lt_prog_compiler_wl='-Wl,' | |
7304 lt_prog_compiler_pic='-fpic' | |
7305 lt_prog_compiler_static='-Bstatic' | |
7306 ;; | |
7307 ccc*) | |
7308 lt_prog_compiler_wl='-Wl,' | |
7309 # All Alpha code is PIC. | |
7310 lt_prog_compiler_static='-non_shared' | |
7311 ;; | |
7312 xl*) | |
7313 # IBM XL C 8.0/Fortran 10.1 on PPC | |
7314 lt_prog_compiler_wl='-Wl,' | |
7315 lt_prog_compiler_pic='-qpic' | |
7316 lt_prog_compiler_static='-qstaticlink' | |
7317 ;; | |
7318 *) | |
7319 case `$CC -V 2>&1 | sed 5q` in | |
7320 *Sun\ C*) | |
7321 # Sun C 5.9 | |
7322 lt_prog_compiler_pic='-KPIC' | |
7323 lt_prog_compiler_static='-Bstatic' | |
7324 lt_prog_compiler_wl='-Wl,' | |
7325 ;; | |
7326 *Sun\ F*) | |
7327 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7328 lt_prog_compiler_pic='-KPIC' | |
7329 lt_prog_compiler_static='-Bstatic' | |
7330 lt_prog_compiler_wl='' | |
7331 ;; | |
7332 esac | |
7333 ;; | |
7334 esac | |
7335 ;; | |
7336 | |
7337 newsos6) | |
7338 lt_prog_compiler_pic='-KPIC' | |
7339 lt_prog_compiler_static='-Bstatic' | |
7340 ;; | |
7341 | |
7342 *nto* | *qnx*) | |
7343 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7344 # it will coredump. | |
7345 lt_prog_compiler_pic='-fPIC -shared' | |
7346 ;; | |
7347 | |
7348 osf3* | osf4* | osf5*) | |
7349 lt_prog_compiler_wl='-Wl,' | |
7350 # All OSF/1 code is PIC. | |
7351 lt_prog_compiler_static='-non_shared' | |
7352 ;; | |
7353 | |
7354 rdos*) | |
7355 lt_prog_compiler_static='-non_shared' | |
7356 ;; | |
7357 | |
7358 solaris*) | |
7359 lt_prog_compiler_pic='-KPIC' | |
7360 lt_prog_compiler_static='-Bstatic' | |
7361 case $cc_basename in | |
7362 f77* | f90* | f95*) | |
7363 lt_prog_compiler_wl='-Qoption ld ';; | |
7364 *) | |
7365 lt_prog_compiler_wl='-Wl,';; | |
7366 esac | |
7367 ;; | |
7368 | |
7369 sunos4*) | |
7370 lt_prog_compiler_wl='-Qoption ld ' | |
7371 lt_prog_compiler_pic='-PIC' | |
7372 lt_prog_compiler_static='-Bstatic' | |
7373 ;; | |
7374 | |
7375 sysv4 | sysv4.2uw2* | sysv4.3*) | |
7376 lt_prog_compiler_wl='-Wl,' | |
7377 lt_prog_compiler_pic='-KPIC' | |
7378 lt_prog_compiler_static='-Bstatic' | |
7379 ;; | |
7380 | |
7381 sysv4*MP*) | |
7382 if test -d /usr/nec ;then | |
7383 lt_prog_compiler_pic='-Kconform_pic' | |
7384 lt_prog_compiler_static='-Bstatic' | |
7385 fi | |
7386 ;; | |
7387 | |
7388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7389 lt_prog_compiler_wl='-Wl,' | |
7390 lt_prog_compiler_pic='-KPIC' | |
7391 lt_prog_compiler_static='-Bstatic' | |
7392 ;; | |
7393 | |
7394 unicos*) | |
7395 lt_prog_compiler_wl='-Wl,' | |
7396 lt_prog_compiler_can_build_shared=no | |
7397 ;; | |
7398 | |
7399 uts4*) | |
7400 lt_prog_compiler_pic='-pic' | |
7401 lt_prog_compiler_static='-Bstatic' | |
7402 ;; | |
7403 | |
7404 *) | |
7405 lt_prog_compiler_can_build_shared=no | |
7406 ;; | |
7407 esac | |
7408 fi | |
7409 | |
7410 case $host_os in | |
7411 # For platforms which do not support PIC, -DPIC is meaningless: | |
7412 *djgpp*) | |
7413 lt_prog_compiler_pic= | |
7414 ;; | |
7415 *) | |
7416 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7417 ;; | |
7418 esac | |
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7420 $as_echo "$lt_prog_compiler_pic" >&6; } | |
7421 | |
7422 | |
7423 | |
7424 | |
7425 | |
7426 | |
7427 # | |
7428 # Check to make sure the PIC flag actually works. | |
7429 # | |
7430 if test -n "$lt_prog_compiler_pic"; then | |
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7432 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
7433 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
7434 $as_echo_n "(cached) " >&6 | |
7435 else | |
7436 lt_cv_prog_compiler_pic_works=no | |
7437 ac_outfile=conftest.$ac_objext | |
7438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7439 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7440 # Insert the option either (1) after the last *FLAGS variable, or | |
7441 # (2) before a word containing "conftest.", or (3) at the end. | |
7442 # Note that $ac_compile itself does not contain backslashes and begins | |
7443 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7444 # The option is referenced via a variable to avoid confusing sed. | |
7445 lt_compile=`echo "$ac_compile" | $SED \ | |
7446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7448 -e 's:$: $lt_compiler_flag:'` | |
7449 (eval echo "\"\$as_me:7449: $lt_compile\"" >&5) | |
7450 (eval "$lt_compile" 2>conftest.err) | |
7451 ac_status=$? | |
7452 cat conftest.err >&5 | |
7453 echo "$as_me:7453: \$? = $ac_status" >&5 | |
7454 if (exit $ac_status) && test -s "$ac_outfile"; then | |
7455 # The compiler can only warn and ignore the option if not recognized | |
7456 # So say no if there are warnings other than the usual output. | |
7457 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7460 lt_cv_prog_compiler_pic_works=yes | |
7461 fi | |
7462 fi | |
7463 $RM conftest* | |
7464 | |
7465 fi | |
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
7467 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
7468 | |
7469 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
7470 case $lt_prog_compiler_pic in | |
7471 "" | " "*) ;; | |
7472 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7473 esac | |
7474 else | |
7475 lt_prog_compiler_pic= | |
7476 lt_prog_compiler_can_build_shared=no | |
7477 fi | |
7478 | |
7479 fi | |
7480 | |
7481 | |
7482 | |
7483 | |
7484 | |
7485 | |
7486 # | |
7487 # Check to make sure the static flag actually works. | |
7488 # | |
7489 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7491 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
7492 if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
7493 $as_echo_n "(cached) " >&6 | |
7494 else | |
7495 lt_cv_prog_compiler_static_works=no | |
7496 save_LDFLAGS="$LDFLAGS" | |
7497 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7498 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7499 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7500 # The linker can only warn and ignore the option if not recognized | |
7501 # So say no if there are warnings | |
7502 if test -s conftest.err; then | |
7503 # Append any errors to the config.log. | |
7504 cat conftest.err 1>&5 | |
7505 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7507 if diff conftest.exp conftest.er2 >/dev/null; then | |
7508 lt_cv_prog_compiler_static_works=yes | |
7509 fi | |
7510 else | |
7511 lt_cv_prog_compiler_static_works=yes | |
7512 fi | |
7513 fi | |
7514 $RM -r conftest* | |
7515 LDFLAGS="$save_LDFLAGS" | |
7516 | |
7517 fi | |
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
7519 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
7520 | |
7521 if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
7522 : | |
7523 else | |
7524 lt_prog_compiler_static= | |
7525 fi | |
7526 | |
7527 | |
7528 | |
7529 | |
7530 | |
7531 | |
7532 | |
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7534 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7535 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7536 $as_echo_n "(cached) " >&6 | |
7537 else | |
7538 lt_cv_prog_compiler_c_o=no | |
7539 $RM -r conftest 2>/dev/null | |
7540 mkdir conftest | |
7541 cd conftest | |
7542 mkdir out | |
7543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7544 | |
7545 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7546 # Insert the option either (1) after the last *FLAGS variable, or | |
7547 # (2) before a word containing "conftest.", or (3) at the end. | |
7548 # Note that $ac_compile itself does not contain backslashes and begins | |
7549 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7550 lt_compile=`echo "$ac_compile" | $SED \ | |
7551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7553 -e 's:$: $lt_compiler_flag:'` | |
7554 (eval echo "\"\$as_me:7554: $lt_compile\"" >&5) | |
7555 (eval "$lt_compile" 2>out/conftest.err) | |
7556 ac_status=$? | |
7557 cat out/conftest.err >&5 | |
7558 echo "$as_me:7558: \$? = $ac_status" >&5 | |
7559 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7560 then | |
7561 # The compiler can only warn and ignore the option if not recognized | |
7562 # So say no if there are warnings | |
7563 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7566 lt_cv_prog_compiler_c_o=yes | |
7567 fi | |
7568 fi | |
7569 chmod u+w . 2>&5 | |
7570 $RM conftest* | |
7571 # SGI C++ compiler will create directory out/ii_files/ for | |
7572 # template instantiation | |
7573 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7574 $RM out/* && rmdir out | |
7575 cd .. | |
7576 $RM -r conftest | |
7577 $RM conftest* | |
7578 | |
7579 fi | |
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7581 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7582 | |
7583 | |
7584 | |
7585 | |
7586 | |
7587 | |
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
7590 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
7591 $as_echo_n "(cached) " >&6 | |
7592 else | |
7593 lt_cv_prog_compiler_c_o=no | |
7594 $RM -r conftest 2>/dev/null | |
7595 mkdir conftest | |
7596 cd conftest | |
7597 mkdir out | |
7598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7599 | |
7600 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7601 # Insert the option either (1) after the last *FLAGS variable, or | |
7602 # (2) before a word containing "conftest.", or (3) at the end. | |
7603 # Note that $ac_compile itself does not contain backslashes and begins | |
7604 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7605 lt_compile=`echo "$ac_compile" | $SED \ | |
7606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7608 -e 's:$: $lt_compiler_flag:'` | |
7609 (eval echo "\"\$as_me:7609: $lt_compile\"" >&5) | |
7610 (eval "$lt_compile" 2>out/conftest.err) | |
7611 ac_status=$? | |
7612 cat out/conftest.err >&5 | |
7613 echo "$as_me:7613: \$? = $ac_status" >&5 | |
7614 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7615 then | |
7616 # The compiler can only warn and ignore the option if not recognized | |
7617 # So say no if there are warnings | |
7618 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7621 lt_cv_prog_compiler_c_o=yes | |
7622 fi | |
7623 fi | |
7624 chmod u+w . 2>&5 | |
7625 $RM conftest* | |
7626 # SGI C++ compiler will create directory out/ii_files/ for | |
7627 # template instantiation | |
7628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7629 $RM out/* && rmdir out | |
7630 cd .. | |
7631 $RM -r conftest | |
7632 $RM conftest* | |
7633 | |
7634 fi | |
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
7636 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
7637 | |
7638 | |
7639 | |
7640 | |
7641 hard_links="nottested" | |
7642 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7643 # do not overwrite the value of need_locks provided by the user | |
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
7645 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
7646 hard_links=yes | |
7647 $RM conftest* | |
7648 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7649 touch conftest.a | |
7650 ln conftest.a conftest.b 2>&5 || hard_links=no | |
7651 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
7653 $as_echo "$hard_links" >&6; } | |
7654 if test "$hard_links" = no; then | |
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7656 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7657 need_locks=warn | |
7658 fi | |
7659 else | |
7660 need_locks=no | |
7661 fi | |
7662 | |
7663 | |
7664 | |
7665 | |
7666 | |
7667 | |
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7669 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
7670 | |
7671 runpath_var= | |
7672 allow_undefined_flag= | |
7673 always_export_symbols=no | |
7674 archive_cmds= | |
7675 archive_expsym_cmds= | |
7676 compiler_needs_object=no | |
7677 enable_shared_with_static_runtimes=no | |
7678 export_dynamic_flag_spec= | |
7679 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7680 hardcode_automatic=no | |
7681 hardcode_direct=no | |
7682 hardcode_direct_absolute=no | |
7683 hardcode_libdir_flag_spec= | |
7684 hardcode_libdir_flag_spec_ld= | |
7685 hardcode_libdir_separator= | |
7686 hardcode_minus_L=no | |
7687 hardcode_shlibpath_var=unsupported | |
7688 inherit_rpath=no | |
7689 link_all_deplibs=unknown | |
7690 module_cmds= | |
7691 module_expsym_cmds= | |
7692 old_archive_from_new_cmds= | |
7693 old_archive_from_expsyms_cmds= | |
7694 thread_safe_flag_spec= | |
7695 whole_archive_flag_spec= | |
7696 # include_expsyms should be a list of space-separated symbols to be *always* | |
7697 # included in the symbol list | |
7698 include_expsyms= | |
7699 # exclude_expsyms can be an extended regexp of symbols to exclude | |
7700 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7701 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7702 # as well as any symbol that contains `d'. | |
7703 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
7704 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7705 # platforms (ab)use it in PIC code, but their linkers get confused if | |
7706 # the symbol is explicitly referenced. Since portable code cannot | |
7707 # rely on this symbol name, it's probably fine to never include it in | |
7708 # preloaded symbol tables. | |
7709 # Exclude shared library initialization/finalization symbols. | |
7710 extract_expsyms_cmds= | |
7711 | |
7712 case $host_os in | |
7713 cygwin* | mingw* | pw32* | cegcc*) | |
7714 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7715 # When not using gcc, we currently assume that we are using | |
7716 # Microsoft Visual C++. | |
7717 if test "$GCC" != yes; then | |
7718 with_gnu_ld=no | |
7719 fi | |
7720 ;; | |
7721 interix*) | |
7722 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7723 with_gnu_ld=yes | |
7724 ;; | |
7725 openbsd*) | |
7726 with_gnu_ld=no | |
7727 ;; | |
7728 linux* | k*bsd*-gnu) | |
7729 link_all_deplibs=no | |
7730 ;; | |
7731 esac | |
7732 | |
7733 ld_shlibs=yes | |
7734 if test "$with_gnu_ld" = yes; then | |
7735 # If archive_cmds runs LD, not CC, wlarc should be empty | |
7736 wlarc='${wl}' | |
7737 | |
7738 # Set some defaults for GNU ld with shared library support. These | |
7739 # are reset later if shared libraries are not supported. Putting them | |
7740 # here allows them to be overridden if necessary. | |
7741 runpath_var=LD_RUN_PATH | |
7742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7743 export_dynamic_flag_spec='${wl}--export-dynamic' | |
7744 # ancient GNU ld didn't support --whole-archive et. al. | |
7745 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7746 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7747 else | |
7748 whole_archive_flag_spec= | |
7749 fi | |
7750 supports_anon_versioning=no | |
7751 case `$LD -v 2>&1` in | |
7752 *GNU\ gold*) supports_anon_versioning=yes ;; | |
7753 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7754 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7755 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7756 *\ 2.11.*) ;; # other 2.11 versions | |
7757 *) supports_anon_versioning=yes ;; | |
7758 esac | |
7759 | |
7760 # See if GNU ld supports shared libraries. | |
7761 case $host_os in | |
7762 aix[3-9]*) | |
7763 # On AIX/PPC, the GNU linker is very broken | |
7764 if test "$host_cpu" != ia64; then | |
7765 ld_shlibs=no | |
7766 cat <<_LT_EOF 1>&2 | |
7767 | |
7768 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7769 *** to be unable to reliably create shared libraries on AIX. | |
7770 *** Therefore, libtool is disabling shared libraries support. If you | |
7771 *** really care for shared libraries, you may want to modify your PATH | |
7772 *** so that a non-GNU linker is found, and then restart. | |
7773 | |
7774 _LT_EOF | |
7775 fi | |
7776 ;; | |
7777 | |
7778 amigaos*) | |
7779 case $host_cpu in | |
7780 powerpc) | |
7781 # see comment about AmigaOS4 .so support | |
7782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7783 archive_expsym_cmds='' | |
7784 ;; | |
7785 m68k) | |
7786 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
7787 hardcode_libdir_flag_spec='-L$libdir' | |
7788 hardcode_minus_L=yes | |
7789 ;; | |
7790 esac | |
7791 ;; | |
7792 | |
7793 beos*) | |
7794 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7795 allow_undefined_flag=unsupported | |
7796 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7797 # support --undefined. This deserves some investigation. FIXME | |
7798 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7799 else | |
7800 ld_shlibs=no | |
7801 fi | |
7802 ;; | |
7803 | |
7804 cygwin* | mingw* | pw32* | cegcc*) | |
7805 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7806 # as there is no search path for DLLs. | |
7807 hardcode_libdir_flag_spec='-L$libdir' | |
7808 allow_undefined_flag=unsupported | |
7809 always_export_symbols=no | |
7810 enable_shared_with_static_runtimes=yes | |
7811 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7812 | |
7813 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7815 # If the export-symbols file already is a .def file (1st line | |
7816 # is EXPORTS), use it as is; otherwise, prepend... | |
7817 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7818 cp $export_symbols $output_objdir/$soname.def; | |
7819 else | |
7820 echo EXPORTS > $output_objdir/$soname.def; | |
7821 cat $export_symbols >> $output_objdir/$soname.def; | |
7822 fi~ | |
7823 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7824 else | |
7825 ld_shlibs=no | |
7826 fi | |
7827 ;; | |
7828 | |
7829 interix[3-9]*) | |
7830 hardcode_direct=no | |
7831 hardcode_shlibpath_var=no | |
7832 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7833 export_dynamic_flag_spec='${wl}-E' | |
7834 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7835 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7836 # default) and relocated if they conflict, which is a slow very memory | |
7837 # consuming and fragmenting process. To avoid this, we pick a random, | |
7838 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7839 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7841 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' | |
7842 ;; | |
7843 | |
7844 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
7845 tmp_diet=no | |
7846 if test "$host_os" = linux-dietlibc; then | |
7847 case $cc_basename in | |
7848 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7849 esac | |
7850 fi | |
7851 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7852 && test "$tmp_diet" = no | |
7853 then | |
7854 tmp_addflag= | |
7855 tmp_sharedflag='-shared' | |
7856 case $cc_basename,$host_cpu in | |
7857 pgcc*) # Portland Group C compiler | |
7858 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' | |
7859 tmp_addflag=' $pic_flag' | |
7860 ;; | |
7861 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7862 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' | |
7863 tmp_addflag=' $pic_flag -Mnomain' ;; | |
7864 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7865 tmp_addflag=' -i_dynamic' ;; | |
7866 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7867 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7868 ifc* | ifort*) # Intel Fortran compiler | |
7869 tmp_addflag=' -nofor_main' ;; | |
7870 lf95*) # Lahey Fortran 8.1 | |
7871 whole_archive_flag_spec= | |
7872 tmp_sharedflag='--shared' ;; | |
7873 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
7874 tmp_sharedflag='-qmkshrobj' | |
7875 tmp_addflag= ;; | |
7876 esac | |
7877 case `$CC -V 2>&1 | sed 5q` in | |
7878 *Sun\ C*) # Sun C 5.9 | |
7879 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7880 compiler_needs_object=yes | |
7881 tmp_sharedflag='-G' ;; | |
7882 *Sun\ F*) # Sun Fortran 8.3 | |
7883 tmp_sharedflag='-G' ;; | |
7884 esac | |
7885 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7886 | |
7887 if test "x$supports_anon_versioning" = xyes; then | |
7888 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7890 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7891 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7892 fi | |
7893 | |
7894 case $cc_basename in | |
7895 xlf*) | |
7896 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
7897 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
7898 hardcode_libdir_flag_spec= | |
7899 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7900 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
7901 if test "x$supports_anon_versioning" = xyes; then | |
7902 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7903 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7904 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7905 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
7906 fi | |
7907 ;; | |
7908 esac | |
7909 else | |
7910 ld_shlibs=no | |
7911 fi | |
7912 ;; | |
7913 | |
7914 netbsd* | netbsdelf*-gnu) | |
7915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7916 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7917 wlarc= | |
7918 else | |
7919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7921 fi | |
7922 ;; | |
7923 | |
7924 solaris*) | |
7925 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7926 ld_shlibs=no | |
7927 cat <<_LT_EOF 1>&2 | |
7928 | |
7929 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7930 *** create shared libraries on Solaris systems. Therefore, libtool | |
7931 *** is disabling shared libraries support. We urge you to upgrade GNU | |
7932 *** binutils to release 2.9.1 or newer. Another option is to modify | |
7933 *** your PATH or compiler configuration so that the native linker is | |
7934 *** used, and then restart. | |
7935 | |
7936 _LT_EOF | |
7937 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7940 else | |
7941 ld_shlibs=no | |
7942 fi | |
7943 ;; | |
7944 | |
7945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7946 case `$LD -v 2>&1` in | |
7947 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7948 ld_shlibs=no | |
7949 cat <<_LT_EOF 1>&2 | |
7950 | |
7951 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7952 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7953 *** is disabling shared libraries support. We urge you to upgrade GNU | |
7954 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7955 *** your PATH or compiler configuration so that the native linker is | |
7956 *** used, and then restart. | |
7957 | |
7958 _LT_EOF | |
7959 ;; | |
7960 *) | |
7961 # For security reasons, it is highly recommended that you always | |
7962 # use absolute paths for naming shared libraries, and exclude the | |
7963 # DT_RUNPATH tag from executables and libraries. But doing so | |
7964 # requires that you compile everything twice, which is a pain. | |
7965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7969 else | |
7970 ld_shlibs=no | |
7971 fi | |
7972 ;; | |
7973 esac | |
7974 ;; | |
7975 | |
7976 sunos4*) | |
7977 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7978 wlarc= | |
7979 hardcode_direct=yes | |
7980 hardcode_shlibpath_var=no | |
7981 ;; | |
7982 | |
7983 *) | |
7984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7987 else | |
7988 ld_shlibs=no | |
7989 fi | |
7990 ;; | |
7991 esac | |
7992 | |
7993 if test "$ld_shlibs" = no; then | |
7994 runpath_var= | |
7995 hardcode_libdir_flag_spec= | |
7996 export_dynamic_flag_spec= | |
7997 whole_archive_flag_spec= | |
7998 fi | |
7999 else | |
8000 # PORTME fill in a description of your system's linker (not GNU ld) | |
8001 case $host_os in | |
8002 aix3*) | |
8003 allow_undefined_flag=unsupported | |
8004 always_export_symbols=yes | |
8005 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
8006 # Note: this linker hardcodes the directories in LIBPATH if there | |
8007 # are no directories specified by -L. | |
8008 hardcode_minus_L=yes | |
8009 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8010 # Neither direct hardcoding nor static linking is supported with a | |
8011 # broken collect2. | |
8012 hardcode_direct=unsupported | |
8013 fi | |
8014 ;; | |
8015 | |
8016 aix[4-9]*) | |
8017 if test "$host_cpu" = ia64; then | |
8018 # On IA64, the linker does run time linking by default, so we don't | |
8019 # have to do anything special. | |
8020 aix_use_runtimelinking=no | |
8021 exp_sym_flag='-Bexport' | |
8022 no_entry_flag="" | |
8023 else | |
8024 # If we're using GNU nm, then we don't want the "-C" option. | |
8025 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
8026 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
8027 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' | |
8028 else | |
8029 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' | |
8030 fi | |
8031 aix_use_runtimelinking=no | |
8032 | |
8033 # Test if we are trying to use run time linking or normal | |
8034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
8035 # need to do runtime linking. | |
8036 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
8037 for ld_flag in $LDFLAGS; do | |
8038 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
8039 aix_use_runtimelinking=yes | |
8040 break | |
8041 fi | |
8042 done | |
8043 ;; | |
8044 esac | |
8045 | |
8046 exp_sym_flag='-bexport' | |
8047 no_entry_flag='-bnoentry' | |
8048 fi | |
8049 | |
8050 # When large executables or shared objects are built, AIX ld can | |
8051 # have problems creating the table of contents. If linking a library | |
8052 # or program results in "error TOC overflow" add -mminimal-toc to | |
8053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
8054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
8055 | |
8056 archive_cmds='' | |
8057 hardcode_direct=yes | |
8058 hardcode_direct_absolute=yes | |
8059 hardcode_libdir_separator=':' | |
8060 link_all_deplibs=yes | |
8061 file_list_spec='${wl}-f,' | |
8062 | |
8063 if test "$GCC" = yes; then | |
8064 case $host_os in aix4.[012]|aix4.[012].*) | |
8065 # We only want to do this on AIX 4.2 and lower, the check | |
8066 # below for broken collect2 doesn't work under 4.3+ | |
8067 collect2name=`${CC} -print-prog-name=collect2` | |
8068 if test -f "$collect2name" && | |
8069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
8070 then | |
8071 # We have reworked collect2 | |
8072 : | |
8073 else | |
8074 # We have old collect2 | |
8075 hardcode_direct=unsupported | |
8076 # It fails to find uninstalled libraries when the uninstalled | |
8077 # path is not listed in the libpath. Setting hardcode_minus_L | |
8078 # to unsupported forces relinking | |
8079 hardcode_minus_L=yes | |
8080 hardcode_libdir_flag_spec='-L$libdir' | |
8081 hardcode_libdir_separator= | |
8082 fi | |
8083 ;; | |
8084 esac | |
8085 shared_flag='-shared' | |
8086 if test "$aix_use_runtimelinking" = yes; then | |
8087 shared_flag="$shared_flag "'${wl}-G' | |
8088 fi | |
8089 link_all_deplibs=no | |
8090 else | |
8091 # not using gcc | |
8092 if test "$host_cpu" = ia64; then | |
8093 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
8094 # chokes on -Wl,-G. The following line is correct: | |
8095 shared_flag='-G' | |
8096 else | |
8097 if test "$aix_use_runtimelinking" = yes; then | |
8098 shared_flag='${wl}-G' | |
8099 else | |
8100 shared_flag='${wl}-bM:SRE' | |
8101 fi | |
8102 fi | |
8103 fi | |
8104 | |
8105 export_dynamic_flag_spec='${wl}-bexpall' | |
8106 # It seems that -bexpall does not export symbols beginning with | |
8107 # underscore (_), so it is better to generate a list of symbols to export. | |
8108 always_export_symbols=yes | |
8109 if test "$aix_use_runtimelinking" = yes; then | |
8110 # Warning - without using the other runtime loading flags (-brtl), | |
8111 # -berok will link without error, but may produce a broken library. | |
8112 allow_undefined_flag='-berok' | |
8113 # Determine the default libpath from the value encoded in an | |
8114 # empty executable. | |
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8116 /* end confdefs.h. */ | |
8117 | |
8118 int | |
8119 main () | |
8120 { | |
8121 | |
8122 ; | |
8123 return 0; | |
8124 } | |
8125 _ACEOF | |
8126 if ac_fn_c_try_link "$LINENO"; then : | |
8127 | |
8128 lt_aix_libpath_sed=' | |
8129 /Import File Strings/,/^$/ { | |
8130 /^0/ { | |
8131 s/^0 *\(.*\)$/\1/ | |
8132 p | |
8133 } | |
8134 }' | |
8135 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8136 # Check for a 64-bit object if we didn't find anything. | |
8137 if test -z "$aix_libpath"; then | |
8138 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8139 fi | |
8140 fi | |
8141 rm -f core conftest.err conftest.$ac_objext \ | |
8142 conftest$ac_exeext conftest.$ac_ext | |
8143 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8144 | |
8145 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8146 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_sym_flag:\$export_symbols $shared_flag" | |
8147 else | |
8148 if test "$host_cpu" = ia64; then | |
8149 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
8150 allow_undefined_flag="-z nodefs" | |
8151 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
8152 else | |
8153 # Determine the default libpath from the value encoded in an | |
8154 # empty executable. | |
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8156 /* end confdefs.h. */ | |
8157 | |
8158 int | |
8159 main () | |
8160 { | |
8161 | |
8162 ; | |
8163 return 0; | |
8164 } | |
8165 _ACEOF | |
8166 if ac_fn_c_try_link "$LINENO"; then : | |
8167 | |
8168 lt_aix_libpath_sed=' | |
8169 /Import File Strings/,/^$/ { | |
8170 /^0/ { | |
8171 s/^0 *\(.*\)$/\1/ | |
8172 p | |
8173 } | |
8174 }' | |
8175 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8176 # Check for a 64-bit object if we didn't find anything. | |
8177 if test -z "$aix_libpath"; then | |
8178 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8179 fi | |
8180 fi | |
8181 rm -f core conftest.err conftest.$ac_objext \ | |
8182 conftest$ac_exeext conftest.$ac_ext | |
8183 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
8184 | |
8185 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
8186 # Warning - without using the other run time loading flags, | |
8187 # -berok will link without error, but may produce a broken library. | |
8188 no_undefined_flag=' ${wl}-bernotok' | |
8189 allow_undefined_flag=' ${wl}-berok' | |
8190 # Exported symbols can be pulled into shared objects from archives | |
8191 whole_archive_flag_spec='$convenience' | |
8192 archive_cmds_need_lc=yes | |
8193 # This is similar to how AIX traditionally builds its shared libraries. | |
8194 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
8195 fi | |
8196 fi | |
8197 ;; | |
8198 | |
8199 amigaos*) | |
8200 case $host_cpu in | |
8201 powerpc) | |
8202 # see comment about AmigaOS4 .so support | |
8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8204 archive_expsym_cmds='' | |
8205 ;; | |
8206 m68k) | |
8207 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
8208 hardcode_libdir_flag_spec='-L$libdir' | |
8209 hardcode_minus_L=yes | |
8210 ;; | |
8211 esac | |
8212 ;; | |
8213 | |
8214 bsdi[45]*) | |
8215 export_dynamic_flag_spec=-rdynamic | |
8216 ;; | |
8217 | |
8218 cygwin* | mingw* | pw32* | cegcc*) | |
8219 # When not using gcc, we currently assume that we are using | |
8220 # Microsoft Visual C++. | |
8221 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
8222 # no search path for DLLs. | |
8223 hardcode_libdir_flag_spec=' ' | |
8224 allow_undefined_flag=unsupported | |
8225 # Tell ltmain to make .lib files, not .a files. | |
8226 libext=lib | |
8227 # Tell ltmain to make .dll files, not .so files. | |
8228 shrext_cmds=".dll" | |
8229 # FIXME: Setting linknames here is a bad hack. | |
8230 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8231 # The linker will automatically build a .lib file if we build a DLL. | |
8232 old_archive_from_new_cmds='true' | |
8233 # FIXME: Should let the user specify the lib program. | |
8234 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8235 fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8236 enable_shared_with_static_runtimes=yes | |
8237 ;; | |
8238 | |
8239 darwin* | rhapsody*) | |
8240 | |
8241 | |
8242 archive_cmds_need_lc=no | |
8243 hardcode_direct=no | |
8244 hardcode_automatic=yes | |
8245 hardcode_shlibpath_var=unsupported | |
8246 whole_archive_flag_spec='' | |
8247 link_all_deplibs=yes | |
8248 allow_undefined_flag="$_lt_dar_allow_undefined" | |
8249 case $cc_basename in | |
8250 ifort*) _lt_dar_can_shared=yes ;; | |
8251 *) _lt_dar_can_shared=$GCC ;; | |
8252 esac | |
8253 if test "$_lt_dar_can_shared" = "yes"; then | |
8254 output_verbose_link_cmd=echo | |
8255 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
8256 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
8257 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-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}" | |
8258 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}" | |
8259 | |
8260 else | |
8261 ld_shlibs=no | |
8262 fi | |
8263 | |
8264 ;; | |
8265 | |
8266 dgux*) | |
8267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8268 hardcode_libdir_flag_spec='-L$libdir' | |
8269 hardcode_shlibpath_var=no | |
8270 ;; | |
8271 | |
8272 freebsd1*) | |
8273 ld_shlibs=no | |
8274 ;; | |
8275 | |
8276 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8277 # support. Future versions do this automatically, but an explicit c++rt0.o | |
8278 # does not break anything, and helps significantly (at the cost of a little | |
8279 # extra space). | |
8280 freebsd2.2*) | |
8281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8282 hardcode_libdir_flag_spec='-R$libdir' | |
8283 hardcode_direct=yes | |
8284 hardcode_shlibpath_var=no | |
8285 ;; | |
8286 | |
8287 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8288 freebsd2*) | |
8289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8290 hardcode_direct=yes | |
8291 hardcode_minus_L=yes | |
8292 hardcode_shlibpath_var=no | |
8293 ;; | |
8294 | |
8295 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8296 freebsd* | dragonfly*) | |
8297 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8298 hardcode_libdir_flag_spec='-R$libdir' | |
8299 hardcode_direct=yes | |
8300 hardcode_shlibpath_var=no | |
8301 ;; | |
8302 | |
8303 hpux9*) | |
8304 if test "$GCC" = yes; then | |
8305 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' | |
8306 else | |
8307 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
8308 fi | |
8309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8310 hardcode_libdir_separator=: | |
8311 hardcode_direct=yes | |
8312 | |
8313 # hardcode_minus_L: Not really in the search PATH, | |
8314 # but as the default location of the library. | |
8315 hardcode_minus_L=yes | |
8316 export_dynamic_flag_spec='${wl}-E' | |
8317 ;; | |
8318 | |
8319 hpux10*) | |
8320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8321 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8322 else | |
8323 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8324 fi | |
8325 if test "$with_gnu_ld" = no; then | |
8326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8327 hardcode_libdir_flag_spec_ld='+b $libdir' | |
8328 hardcode_libdir_separator=: | |
8329 hardcode_direct=yes | |
8330 hardcode_direct_absolute=yes | |
8331 export_dynamic_flag_spec='${wl}-E' | |
8332 # hardcode_minus_L: Not really in the search PATH, | |
8333 # but as the default location of the library. | |
8334 hardcode_minus_L=yes | |
8335 fi | |
8336 ;; | |
8337 | |
8338 hpux11*) | |
8339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8340 case $host_cpu in | |
8341 hppa*64*) | |
8342 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8343 ;; | |
8344 ia64*) | |
8345 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8346 ;; | |
8347 *) | |
8348 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8349 ;; | |
8350 esac | |
8351 else | |
8352 case $host_cpu in | |
8353 hppa*64*) | |
8354 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8355 ;; | |
8356 ia64*) | |
8357 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8358 ;; | |
8359 *) | |
8360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8361 ;; | |
8362 esac | |
8363 fi | |
8364 if test "$with_gnu_ld" = no; then | |
8365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8366 hardcode_libdir_separator=: | |
8367 | |
8368 case $host_cpu in | |
8369 hppa*64*|ia64*) | |
8370 hardcode_direct=no | |
8371 hardcode_shlibpath_var=no | |
8372 ;; | |
8373 *) | |
8374 hardcode_direct=yes | |
8375 hardcode_direct_absolute=yes | |
8376 export_dynamic_flag_spec='${wl}-E' | |
8377 | |
8378 # hardcode_minus_L: Not really in the search PATH, | |
8379 # but as the default location of the library. | |
8380 hardcode_minus_L=yes | |
8381 ;; | |
8382 esac | |
8383 fi | |
8384 ;; | |
8385 | |
8386 irix5* | irix6* | nonstopux*) | |
8387 if test "$GCC" = yes; then | |
8388 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' | |
8389 # Try to use the -exported_symbol ld option, if it does not | |
8390 # work, assume that -exports_file does not work either and | |
8391 # implicitly export all symbols. | |
8392 save_LDFLAGS="$LDFLAGS" | |
8393 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8395 /* end confdefs.h. */ | |
8396 int foo(void) {} | |
8397 _ACEOF | |
8398 if ac_fn_c_try_link "$LINENO"; then : | |
8399 archive_expsym_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 ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
8400 | |
8401 fi | |
8402 rm -f core conftest.err conftest.$ac_objext \ | |
8403 conftest$ac_exeext conftest.$ac_ext | |
8404 LDFLAGS="$save_LDFLAGS" | |
8405 else | |
8406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8407 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8408 fi | |
8409 archive_cmds_need_lc='no' | |
8410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8411 hardcode_libdir_separator=: | |
8412 inherit_rpath=yes | |
8413 link_all_deplibs=yes | |
8414 ;; | |
8415 | |
8416 netbsd* | netbsdelf*-gnu) | |
8417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8419 else | |
8420 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8421 fi | |
8422 hardcode_libdir_flag_spec='-R$libdir' | |
8423 hardcode_direct=yes | |
8424 hardcode_shlibpath_var=no | |
8425 ;; | |
8426 | |
8427 newsos6) | |
8428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8429 hardcode_direct=yes | |
8430 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8431 hardcode_libdir_separator=: | |
8432 hardcode_shlibpath_var=no | |
8433 ;; | |
8434 | |
8435 *nto* | *qnx*) | |
8436 ;; | |
8437 | |
8438 openbsd*) | |
8439 if test -f /usr/libexec/ld.so; then | |
8440 hardcode_direct=yes | |
8441 hardcode_shlibpath_var=no | |
8442 hardcode_direct_absolute=yes | |
8443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8444 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8445 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8446 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8447 export_dynamic_flag_spec='${wl}-E' | |
8448 else | |
8449 case $host_os in | |
8450 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8451 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8452 hardcode_libdir_flag_spec='-R$libdir' | |
8453 ;; | |
8454 *) | |
8455 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8456 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8457 ;; | |
8458 esac | |
8459 fi | |
8460 else | |
8461 ld_shlibs=no | |
8462 fi | |
8463 ;; | |
8464 | |
8465 os2*) | |
8466 hardcode_libdir_flag_spec='-L$libdir' | |
8467 hardcode_minus_L=yes | |
8468 allow_undefined_flag=unsupported | |
8469 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
8470 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8471 ;; | |
8472 | |
8473 osf3*) | |
8474 if test "$GCC" = yes; then | |
8475 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8476 archive_cmds='$CC -shared${allow_undefined_flag} $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' | |
8477 else | |
8478 allow_undefined_flag=' -expect_unresolved \*' | |
8479 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8480 fi | |
8481 archive_cmds_need_lc='no' | |
8482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8483 hardcode_libdir_separator=: | |
8484 ;; | |
8485 | |
8486 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8487 if test "$GCC" = yes; then | |
8488 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8489 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_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' | |
8490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8491 else | |
8492 allow_undefined_flag=' -expect_unresolved \*' | |
8493 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8494 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~ | |
8495 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
8496 | |
8497 # Both c and cxx compiler support -rpath directly | |
8498 hardcode_libdir_flag_spec='-rpath $libdir' | |
8499 fi | |
8500 archive_cmds_need_lc='no' | |
8501 hardcode_libdir_separator=: | |
8502 ;; | |
8503 | |
8504 solaris*) | |
8505 no_undefined_flag=' -z defs' | |
8506 if test "$GCC" = yes; then | |
8507 wlarc='${wl}' | |
8508 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8509 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8510 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8511 else | |
8512 case `$CC -V 2>&1` in | |
8513 *"Compilers 5.0"*) | |
8514 wlarc='' | |
8515 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8516 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8517 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8518 ;; | |
8519 *) | |
8520 wlarc='${wl}' | |
8521 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8522 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8523 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8524 ;; | |
8525 esac | |
8526 fi | |
8527 hardcode_libdir_flag_spec='-R$libdir' | |
8528 hardcode_shlibpath_var=no | |
8529 case $host_os in | |
8530 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8531 *) | |
8532 # The compiler driver will combine and reorder linker options, | |
8533 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8534 # but is careful enough not to reorder. | |
8535 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8536 if test "$GCC" = yes; then | |
8537 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8538 else | |
8539 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8540 fi | |
8541 ;; | |
8542 esac | |
8543 link_all_deplibs=yes | |
8544 ;; | |
8545 | |
8546 sunos4*) | |
8547 if test "x$host_vendor" = xsequent; then | |
8548 # Use $CC to link under sequent, because it throws in some extra .o | |
8549 # files that make .init and .fini sections work. | |
8550 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8551 else | |
8552 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8553 fi | |
8554 hardcode_libdir_flag_spec='-L$libdir' | |
8555 hardcode_direct=yes | |
8556 hardcode_minus_L=yes | |
8557 hardcode_shlibpath_var=no | |
8558 ;; | |
8559 | |
8560 sysv4) | |
8561 case $host_vendor in | |
8562 sni) | |
8563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8564 hardcode_direct=yes # is this really true??? | |
8565 ;; | |
8566 siemens) | |
8567 ## LD is ld it makes a PLAMLIB | |
8568 ## CC just makes a GrossModule. | |
8569 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8570 reload_cmds='$CC -r -o $output$reload_objs' | |
8571 hardcode_direct=no | |
8572 ;; | |
8573 motorola) | |
8574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8575 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8576 ;; | |
8577 esac | |
8578 runpath_var='LD_RUN_PATH' | |
8579 hardcode_shlibpath_var=no | |
8580 ;; | |
8581 | |
8582 sysv4.3*) | |
8583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8584 hardcode_shlibpath_var=no | |
8585 export_dynamic_flag_spec='-Bexport' | |
8586 ;; | |
8587 | |
8588 sysv4*MP*) | |
8589 if test -d /usr/nec; then | |
8590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8591 hardcode_shlibpath_var=no | |
8592 runpath_var=LD_RUN_PATH | |
8593 hardcode_runpath_var=yes | |
8594 ld_shlibs=yes | |
8595 fi | |
8596 ;; | |
8597 | |
8598 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8599 no_undefined_flag='${wl}-z,text' | |
8600 archive_cmds_need_lc=no | |
8601 hardcode_shlibpath_var=no | |
8602 runpath_var='LD_RUN_PATH' | |
8603 | |
8604 if test "$GCC" = yes; then | |
8605 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8606 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8607 else | |
8608 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8609 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8610 fi | |
8611 ;; | |
8612 | |
8613 sysv5* | sco3.2v5* | sco5v6*) | |
8614 # Note: We can NOT use -z defs as we might desire, because we do not | |
8615 # link with -lc, and that would cause any symbols used from libc to | |
8616 # always be unresolved, which means just about no library would | |
8617 # ever link correctly. If we're not using GNU ld we use -z text | |
8618 # though, which does catch some bad symbols but isn't as heavy-handed | |
8619 # as -z defs. | |
8620 no_undefined_flag='${wl}-z,text' | |
8621 allow_undefined_flag='${wl}-z,nodefs' | |
8622 archive_cmds_need_lc=no | |
8623 hardcode_shlibpath_var=no | |
8624 hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8625 hardcode_libdir_separator=':' | |
8626 link_all_deplibs=yes | |
8627 export_dynamic_flag_spec='${wl}-Bexport' | |
8628 runpath_var='LD_RUN_PATH' | |
8629 | |
8630 if test "$GCC" = yes; then | |
8631 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8632 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8633 else | |
8634 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8635 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8636 fi | |
8637 ;; | |
8638 | |
8639 uts4*) | |
8640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8641 hardcode_libdir_flag_spec='-L$libdir' | |
8642 hardcode_shlibpath_var=no | |
8643 ;; | |
8644 | |
8645 *) | |
8646 ld_shlibs=no | |
8647 ;; | |
8648 esac | |
8649 | |
8650 if test x$host_vendor = xsni; then | |
8651 case $host in | |
8652 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8653 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8654 ;; | |
8655 esac | |
8656 fi | |
8657 fi | |
8658 | |
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
8660 $as_echo "$ld_shlibs" >&6; } | |
8661 test "$ld_shlibs" = no && can_build_shared=no | |
8662 | |
8663 with_gnu_ld=$with_gnu_ld | |
8664 | |
8665 | |
8666 | |
8667 | |
8668 | |
8669 | |
8670 | |
8671 | |
8672 | |
8673 | |
8674 | |
8675 | |
8676 | |
8677 | |
8678 | |
8679 # | |
8680 # Do we need to explicitly link libc? | |
8681 # | |
8682 case "x$archive_cmds_need_lc" in | |
8683 x|xyes) | |
8684 # Assume -lc should be added | |
8685 archive_cmds_need_lc=yes | |
8686 | |
8687 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8688 case $archive_cmds in | |
8689 *'~'*) | |
8690 # FIXME: we may have to deal with multi-command sequences. | |
8691 ;; | |
8692 '$CC '*) | |
8693 # Test whether the compiler implicitly links with -lc since on some | |
8694 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8695 # to ld, don't add -lc before -lgcc. | |
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
8697 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
8698 $RM conftest* | |
8699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8700 | |
8701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8702 (eval $ac_compile) 2>&5 | |
8703 ac_status=$? | |
8704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8705 test $ac_status = 0; } 2>conftest.err; then | |
8706 soname=conftest | |
8707 lib=conftest | |
8708 libobjs=conftest.$ac_objext | |
8709 deplibs= | |
8710 wl=$lt_prog_compiler_wl | |
8711 pic_flag=$lt_prog_compiler_pic | |
8712 compiler_flags=-v | |
8713 linker_flags=-v | |
8714 verstring= | |
8715 output_objdir=. | |
8716 libname=conftest | |
8717 lt_save_allow_undefined_flag=$allow_undefined_flag | |
8718 allow_undefined_flag= | |
8719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8720 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8721 ac_status=$? | |
8722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8723 test $ac_status = 0; } | |
8724 then | |
8725 archive_cmds_need_lc=no | |
8726 else | |
8727 archive_cmds_need_lc=yes | |
8728 fi | |
8729 allow_undefined_flag=$lt_save_allow_undefined_flag | |
8730 else | |
8731 cat conftest.err 1>&5 | |
8732 fi | |
8733 $RM conftest* | |
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 | |
8735 $as_echo "$archive_cmds_need_lc" >&6; } | |
8736 ;; | |
8737 esac | |
8738 fi | |
8739 ;; | |
8740 esac | |
8741 | |
8742 | |
8743 | |
8744 | |
8745 | |
8746 | |
8747 | |
8748 | |
8749 | |
8750 | |
8751 | |
8752 | |
8753 | |
8754 | |
8755 | |
8756 | |
8757 | |
8758 | |
8759 | |
8760 | |
8761 | |
8762 | |
8763 | |
8764 | |
8765 | |
8766 | |
8767 | |
8768 | |
8769 | |
8770 | |
8771 | |
8772 | |
8773 | |
8774 | |
8775 | |
8776 | |
8777 | |
8778 | |
8779 | |
8780 | |
8781 | |
8782 | |
8783 | |
8784 | |
8785 | |
8786 | |
8787 | |
8788 | |
8789 | |
8790 | |
8791 | |
8792 | |
8793 | |
8794 | |
8795 | |
8796 | |
8797 | |
8798 | |
8799 | |
8800 | |
8801 | |
8802 | |
8803 | |
8804 | |
8805 | |
8806 | |
8807 | |
8808 | |
8809 | |
8810 | |
8811 | |
8812 | |
8813 | |
8814 | |
8815 | |
8816 | |
8817 | |
8818 | |
8819 | |
8820 | |
8821 | |
8822 | |
8823 | |
8824 | |
8825 | |
8826 | |
8827 | |
8828 | |
8829 | |
8830 | |
8831 | |
8832 | |
8833 | |
8834 | |
8835 | |
8836 | |
8837 | |
8838 | |
8839 | |
8840 | |
8841 | |
8842 | |
8843 | |
8844 | |
8845 | |
8846 | |
8847 | |
8848 | |
8849 | |
8850 | |
8851 | |
8852 | |
8853 | |
8854 | |
8855 | |
8856 | |
8857 | |
8858 | |
8859 | |
8860 | |
8861 | |
8862 | |
8863 | |
8864 | |
8865 | |
8866 | |
8867 | |
8868 | |
8869 | |
8870 | |
8871 | |
8872 | |
8873 | |
8874 | |
8875 | |
8876 | |
8877 | |
8878 | |
8879 | |
8880 | |
8881 | |
8882 | |
8883 | |
8884 | |
8885 | |
8886 | |
8887 | |
8888 | |
8889 | |
8890 | |
8891 | |
8892 | |
8893 | |
8894 | |
8895 | |
8896 | |
8897 | |
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
8899 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
8900 | |
8901 if test "$GCC" = yes; then | |
8902 case $host_os in | |
8903 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8904 *) lt_awk_arg="/^libraries:/" ;; | |
8905 esac | |
8906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8907 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8908 # if the path contains ";" then we assume it to be the separator | |
8909 # otherwise default to the standard path separator (i.e. ":") - it is | |
8910 # assumed that no part of a normal pathname contains ";" but that should | |
8911 # okay in the real world where ";" in dirpaths is itself problematic. | |
8912 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8913 else | |
8914 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8915 fi | |
8916 # Ok, now we have the path, separated by spaces, we can step through it | |
8917 # and add multilib dir if necessary. | |
8918 lt_tmp_lt_search_path_spec= | |
8919 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8920 for lt_sys_path in $lt_search_path_spec; do | |
8921 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8922 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8923 else | |
8924 test -d "$lt_sys_path" && \ | |
8925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8926 fi | |
8927 done | |
8928 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8929 BEGIN {RS=" "; FS="/|\n";} { | |
8930 lt_foo=""; | |
8931 lt_count=0; | |
8932 for (lt_i = NF; lt_i > 0; lt_i--) { | |
8933 if ($lt_i != "" && $lt_i != ".") { | |
8934 if ($lt_i == "..") { | |
8935 lt_count++; | |
8936 } else { | |
8937 if (lt_count == 0) { | |
8938 lt_foo="/" $lt_i lt_foo; | |
8939 } else { | |
8940 lt_count--; | |
8941 } | |
8942 } | |
8943 } | |
8944 } | |
8945 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8946 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8947 }'` | |
8948 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8949 else | |
8950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8951 fi | |
8952 library_names_spec= | |
8953 libname_spec='lib$name' | |
8954 soname_spec= | |
8955 shrext_cmds=".so" | |
8956 postinstall_cmds= | |
8957 postuninstall_cmds= | |
8958 finish_cmds= | |
8959 finish_eval= | |
8960 shlibpath_var= | |
8961 shlibpath_overrides_runpath=unknown | |
8962 version_type=none | |
8963 dynamic_linker="$host_os ld.so" | |
8964 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8965 need_lib_prefix=unknown | |
8966 hardcode_into_libs=no | |
8967 | |
8968 # when you set need_version to no, make sure it does not cause -set_version | |
8969 # flags to be left without arguments | |
8970 need_version=unknown | |
8971 | |
8972 case $host_os in | |
8973 aix3*) | |
8974 version_type=linux | |
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8976 shlibpath_var=LIBPATH | |
8977 | |
8978 # AIX 3 has no versioning support, so we append a major version to the name. | |
8979 soname_spec='${libname}${release}${shared_ext}$major' | |
8980 ;; | |
8981 | |
8982 aix[4-9]*) | |
8983 version_type=linux | |
8984 need_lib_prefix=no | |
8985 need_version=no | |
8986 hardcode_into_libs=yes | |
8987 if test "$host_cpu" = ia64; then | |
8988 # AIX 5 supports IA64 | |
8989 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8990 shlibpath_var=LD_LIBRARY_PATH | |
8991 else | |
8992 # With GCC up to 2.95.x, collect2 would create an import file | |
8993 # for dependence libraries. The import file would start with | |
8994 # the line `#! .'. This would cause the generated library to | |
8995 # depend on `.', always an invalid library. This was fixed in | |
8996 # development snapshots of GCC prior to 3.0. | |
8997 case $host_os in | |
8998 aix4 | aix4.[01] | aix4.[01].*) | |
8999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
9000 echo ' yes ' | |
9001 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
9002 : | |
9003 else | |
9004 can_build_shared=no | |
9005 fi | |
9006 ;; | |
9007 esac | |
9008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
9009 # soname into executable. Probably we can add versioning support to | |
9010 # collect2, so additional links can be useful in future. | |
9011 if test "$aix_use_runtimelinking" = yes; then | |
9012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
9013 # instead of lib<name>.a to let people know that these are not | |
9014 # typical AIX shared libraries. | |
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9016 else | |
9017 # We preserve .a as extension for shared libraries through AIX4.2 | |
9018 # and later when we are not doing run time linking. | |
9019 library_names_spec='${libname}${release}.a $libname.a' | |
9020 soname_spec='${libname}${release}${shared_ext}$major' | |
9021 fi | |
9022 shlibpath_var=LIBPATH | |
9023 fi | |
9024 ;; | |
9025 | |
9026 amigaos*) | |
9027 case $host_cpu in | |
9028 powerpc) | |
9029 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
9030 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9032 ;; | |
9033 m68k) | |
9034 library_names_spec='$libname.ixlibrary $libname.a' | |
9035 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9036 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
9037 ;; | |
9038 esac | |
9039 ;; | |
9040 | |
9041 beos*) | |
9042 library_names_spec='${libname}${shared_ext}' | |
9043 dynamic_linker="$host_os ld.so" | |
9044 shlibpath_var=LIBRARY_PATH | |
9045 ;; | |
9046 | |
9047 bsdi[45]*) | |
9048 version_type=linux | |
9049 need_version=no | |
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9051 soname_spec='${libname}${release}${shared_ext}$major' | |
9052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
9053 shlibpath_var=LD_LIBRARY_PATH | |
9054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
9055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
9056 # the default ld.so.conf also contains /usr/contrib/lib and | |
9057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
9058 # libtool to hard-code these into programs | |
9059 ;; | |
9060 | |
9061 cygwin* | mingw* | pw32* | cegcc*) | |
9062 version_type=windows | |
9063 shrext_cmds=".dll" | |
9064 need_version=no | |
9065 need_lib_prefix=no | |
9066 | |
9067 case $GCC,$host_os in | |
9068 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
9069 library_names_spec='$libname.dll.a' | |
9070 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
9071 postinstall_cmds='base_file=`basename \${file}`~ | |
9072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
9073 dldir=$destdir/`dirname \$dlpath`~ | |
9074 test -d \$dldir || mkdir -p \$dldir~ | |
9075 $install_prog $dir/$dlname \$dldir/$dlname~ | |
9076 chmod a+x \$dldir/$dlname~ | |
9077 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9078 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9079 fi' | |
9080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
9081 dlpath=$dir/\$dldll~ | |
9082 $RM \$dlpath' | |
9083 shlibpath_overrides_runpath=yes | |
9084 | |
9085 case $host_os in | |
9086 cygwin*) | |
9087 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
9088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9089 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
9090 ;; | |
9091 mingw* | cegcc*) | |
9092 # MinGW DLLs use traditional 'lib' prefix | |
9093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9094 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9095 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
9096 # It is most probably a Windows format PATH printed by | |
9097 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
9098 # path with ; separators, and with drive letters. We can handle the | |
9099 # drive letters (cygwin fileutils understands them), so leave them, | |
9100 # especially as we might pass files found there to a mingw objdump, | |
9101 # which wouldn't understand a cygwinified path. Ahh. | |
9102 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
9103 else | |
9104 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9105 fi | |
9106 ;; | |
9107 pw32*) | |
9108 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
9109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
9110 ;; | |
9111 esac | |
9112 ;; | |
9113 | |
9114 *) | |
9115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
9116 ;; | |
9117 esac | |
9118 dynamic_linker='Win32 ld.exe' | |
9119 # FIXME: first we should search . and the directory the executable is in | |
9120 shlibpath_var=PATH | |
9121 ;; | |
9122 | |
9123 darwin* | rhapsody*) | |
9124 dynamic_linker="$host_os dyld" | |
9125 version_type=darwin | |
9126 need_lib_prefix=no | |
9127 need_version=no | |
9128 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
9129 soname_spec='${libname}${release}${major}$shared_ext' | |
9130 shlibpath_overrides_runpath=yes | |
9131 shlibpath_var=DYLD_LIBRARY_PATH | |
9132 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
9133 | |
9134 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
9135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
9136 ;; | |
9137 | |
9138 dgux*) | |
9139 version_type=linux | |
9140 need_lib_prefix=no | |
9141 need_version=no | |
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
9143 soname_spec='${libname}${release}${shared_ext}$major' | |
9144 shlibpath_var=LD_LIBRARY_PATH | |
9145 ;; | |
9146 | |
9147 freebsd1*) | |
9148 dynamic_linker=no | |
9149 ;; | |
9150 | |
9151 freebsd* | dragonfly*) | |
9152 # DragonFly does not have aout. When/if they implement a new | |
9153 # versioning mechanism, adjust this. | |
9154 if test -x /usr/bin/objformat; then | |
9155 objformat=`/usr/bin/objformat` | |
9156 else | |
9157 case $host_os in | |
9158 freebsd[123]*) objformat=aout ;; | |
9159 *) objformat=elf ;; | |
9160 esac | |
9161 fi | |
9162 version_type=freebsd-$objformat | |
9163 case $version_type in | |
9164 freebsd-elf*) | |
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9166 need_version=no | |
9167 need_lib_prefix=no | |
9168 ;; | |
9169 freebsd-*) | |
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
9171 need_version=yes | |
9172 ;; | |
9173 esac | |
9174 shlibpath_var=LD_LIBRARY_PATH | |
9175 case $host_os in | |
9176 freebsd2*) | |
9177 shlibpath_overrides_runpath=yes | |
9178 ;; | |
9179 freebsd3.[01]* | freebsdelf3.[01]*) | |
9180 shlibpath_overrides_runpath=yes | |
9181 hardcode_into_libs=yes | |
9182 ;; | |
9183 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
9184 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
9185 shlibpath_overrides_runpath=no | |
9186 hardcode_into_libs=yes | |
9187 ;; | |
9188 *) # from 4.6 on, and DragonFly | |
9189 shlibpath_overrides_runpath=yes | |
9190 hardcode_into_libs=yes | |
9191 ;; | |
9192 esac | |
9193 ;; | |
9194 | |
9195 gnu*) | |
9196 version_type=linux | |
9197 need_lib_prefix=no | |
9198 need_version=no | |
9199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9200 soname_spec='${libname}${release}${shared_ext}$major' | |
9201 shlibpath_var=LD_LIBRARY_PATH | |
9202 hardcode_into_libs=yes | |
9203 ;; | |
9204 | |
9205 hpux9* | hpux10* | hpux11*) | |
9206 # Give a soname corresponding to the major version so that dld.sl refuses to | |
9207 # link against other versions. | |
9208 version_type=sunos | |
9209 need_lib_prefix=no | |
9210 need_version=no | |
9211 case $host_cpu in | |
9212 ia64*) | |
9213 shrext_cmds='.so' | |
9214 hardcode_into_libs=yes | |
9215 dynamic_linker="$host_os dld.so" | |
9216 shlibpath_var=LD_LIBRARY_PATH | |
9217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9219 soname_spec='${libname}${release}${shared_ext}$major' | |
9220 if test "X$HPUX_IA64_MODE" = X32; then | |
9221 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9222 else | |
9223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9224 fi | |
9225 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9226 ;; | |
9227 hppa*64*) | |
9228 shrext_cmds='.sl' | |
9229 hardcode_into_libs=yes | |
9230 dynamic_linker="$host_os dld.sl" | |
9231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9234 soname_spec='${libname}${release}${shared_ext}$major' | |
9235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9237 ;; | |
9238 *) | |
9239 shrext_cmds='.sl' | |
9240 dynamic_linker="$host_os dld.sl" | |
9241 shlibpath_var=SHLIB_PATH | |
9242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9244 soname_spec='${libname}${release}${shared_ext}$major' | |
9245 ;; | |
9246 esac | |
9247 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9248 postinstall_cmds='chmod 555 $lib' | |
9249 ;; | |
9250 | |
9251 interix[3-9]*) | |
9252 version_type=linux | |
9253 need_lib_prefix=no | |
9254 need_version=no | |
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9256 soname_spec='${libname}${release}${shared_ext}$major' | |
9257 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9258 shlibpath_var=LD_LIBRARY_PATH | |
9259 shlibpath_overrides_runpath=no | |
9260 hardcode_into_libs=yes | |
9261 ;; | |
9262 | |
9263 irix5* | irix6* | nonstopux*) | |
9264 case $host_os in | |
9265 nonstopux*) version_type=nonstopux ;; | |
9266 *) | |
9267 if test "$lt_cv_prog_gnu_ld" = yes; then | |
9268 version_type=linux | |
9269 else | |
9270 version_type=irix | |
9271 fi ;; | |
9272 esac | |
9273 need_lib_prefix=no | |
9274 need_version=no | |
9275 soname_spec='${libname}${release}${shared_ext}$major' | |
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9277 case $host_os in | |
9278 irix5* | nonstopux*) | |
9279 libsuff= shlibsuff= | |
9280 ;; | |
9281 *) | |
9282 case $LD in # libtool.m4 will add one of these switches to LD | |
9283 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9284 libsuff= shlibsuff= libmagic=32-bit;; | |
9285 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9286 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9287 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9288 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9289 *) libsuff= shlibsuff= libmagic=never-match;; | |
9290 esac | |
9291 ;; | |
9292 esac | |
9293 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9294 shlibpath_overrides_runpath=no | |
9295 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9296 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9297 hardcode_into_libs=yes | |
9298 ;; | |
9299 | |
9300 # No shared lib support for Linux oldld, aout, or coff. | |
9301 linux*oldld* | linux*aout* | linux*coff*) | |
9302 dynamic_linker=no | |
9303 ;; | |
9304 | |
9305 # This must be Linux ELF. | |
9306 linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
9307 version_type=linux | |
9308 need_lib_prefix=no | |
9309 need_version=no | |
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9311 soname_spec='${libname}${release}${shared_ext}$major' | |
9312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9313 shlibpath_var=LD_LIBRARY_PATH | |
9314 shlibpath_overrides_runpath=no | |
9315 # Some binutils ld are patched to set DT_RUNPATH | |
9316 save_LDFLAGS=$LDFLAGS | |
9317 save_libdir=$libdir | |
9318 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9319 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9321 /* end confdefs.h. */ | |
9322 | |
9323 int | |
9324 main () | |
9325 { | |
9326 | |
9327 ; | |
9328 return 0; | |
9329 } | |
9330 _ACEOF | |
9331 if ac_fn_c_try_link "$LINENO"; then : | |
9332 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
9333 shlibpath_overrides_runpath=yes | |
9334 fi | |
9335 fi | |
9336 rm -f core conftest.err conftest.$ac_objext \ | |
9337 conftest$ac_exeext conftest.$ac_ext | |
9338 LDFLAGS=$save_LDFLAGS | |
9339 libdir=$save_libdir | |
9340 | |
9341 # This implies no fast_install, which is unacceptable. | |
9342 # Some rework will be needed to allow for fast_install | |
9343 # before this can be enabled. | |
9344 hardcode_into_libs=yes | |
9345 | |
9346 # Append ld.so.conf contents to the search path | |
9347 if test -f /etc/ld.so.conf; then | |
9348 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 | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
9349 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9350 fi | |
9351 | |
9352 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9353 # powerpc, because MkLinux only supported shared libraries with the | |
9354 # GNU dynamic linker. Since this was broken with cross compilers, | |
9355 # most powerpc-linux boxes support dynamic linking these days and | |
9356 # people can always --disable-shared, the test was removed, and we | |
9357 # assume the GNU/Linux dynamic linker is in use. | |
9358 dynamic_linker='GNU/Linux ld.so' | |
9359 ;; | |
9360 | |
9361 netbsdelf*-gnu) | |
9362 version_type=linux | |
9363 need_lib_prefix=no | |
9364 need_version=no | |
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9366 soname_spec='${libname}${release}${shared_ext}$major' | |
9367 shlibpath_var=LD_LIBRARY_PATH | |
9368 shlibpath_overrides_runpath=no | |
9369 hardcode_into_libs=yes | |
9370 dynamic_linker='NetBSD ld.elf_so' | |
9371 ;; | |
9372 | |
9373 netbsd*) | |
9374 version_type=sunos | |
9375 need_lib_prefix=no | |
9376 need_version=no | |
9377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9380 dynamic_linker='NetBSD (a.out) ld.so' | |
9381 else | |
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9383 soname_spec='${libname}${release}${shared_ext}$major' | |
9384 dynamic_linker='NetBSD ld.elf_so' | |
9385 fi | |
9386 shlibpath_var=LD_LIBRARY_PATH | |
9387 shlibpath_overrides_runpath=yes | |
9388 hardcode_into_libs=yes | |
9389 ;; | |
9390 | |
9391 newsos6) | |
9392 version_type=linux | |
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9394 shlibpath_var=LD_LIBRARY_PATH | |
9395 shlibpath_overrides_runpath=yes | |
9396 ;; | |
9397 | |
9398 *nto* | *qnx*) | |
9399 version_type=qnx | |
9400 need_lib_prefix=no | |
9401 need_version=no | |
9402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9403 soname_spec='${libname}${release}${shared_ext}$major' | |
9404 shlibpath_var=LD_LIBRARY_PATH | |
9405 shlibpath_overrides_runpath=no | |
9406 hardcode_into_libs=yes | |
9407 dynamic_linker='ldqnx.so' | |
9408 ;; | |
9409 | |
9410 openbsd*) | |
9411 version_type=sunos | |
9412 sys_lib_dlsearch_path_spec="/usr/lib" | |
9413 need_lib_prefix=no | |
9414 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9415 case $host_os in | |
9416 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9417 *) need_version=no ;; | |
9418 esac | |
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9421 shlibpath_var=LD_LIBRARY_PATH | |
9422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9423 case $host_os in | |
9424 openbsd2.[89] | openbsd2.[89].*) | |
9425 shlibpath_overrides_runpath=no | |
9426 ;; | |
9427 *) | |
9428 shlibpath_overrides_runpath=yes | |
9429 ;; | |
9430 esac | |
9431 else | |
9432 shlibpath_overrides_runpath=yes | |
9433 fi | |
9434 ;; | |
9435 | |
9436 os2*) | |
9437 libname_spec='$name' | |
9438 shrext_cmds=".dll" | |
9439 need_lib_prefix=no | |
9440 library_names_spec='$libname${shared_ext} $libname.a' | |
9441 dynamic_linker='OS/2 ld.exe' | |
9442 shlibpath_var=LIBPATH | |
9443 ;; | |
9444 | |
9445 osf3* | osf4* | osf5*) | |
9446 version_type=osf | |
9447 need_lib_prefix=no | |
9448 need_version=no | |
9449 soname_spec='${libname}${release}${shared_ext}$major' | |
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9451 shlibpath_var=LD_LIBRARY_PATH | |
9452 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9453 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9454 ;; | |
9455 | |
9456 rdos*) | |
9457 dynamic_linker=no | |
9458 ;; | |
9459 | |
9460 solaris*) | |
9461 version_type=linux | |
9462 need_lib_prefix=no | |
9463 need_version=no | |
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9465 soname_spec='${libname}${release}${shared_ext}$major' | |
9466 shlibpath_var=LD_LIBRARY_PATH | |
9467 shlibpath_overrides_runpath=yes | |
9468 hardcode_into_libs=yes | |
9469 # ldd complains unless libraries are executable | |
9470 postinstall_cmds='chmod +x $lib' | |
9471 ;; | |
9472 | |
9473 sunos4*) | |
9474 version_type=sunos | |
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9477 shlibpath_var=LD_LIBRARY_PATH | |
9478 shlibpath_overrides_runpath=yes | |
9479 if test "$with_gnu_ld" = yes; then | |
9480 need_lib_prefix=no | |
9481 fi | |
9482 need_version=yes | |
9483 ;; | |
9484 | |
9485 sysv4 | sysv4.3*) | |
9486 version_type=linux | |
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9488 soname_spec='${libname}${release}${shared_ext}$major' | |
9489 shlibpath_var=LD_LIBRARY_PATH | |
9490 case $host_vendor in | |
9491 sni) | |
9492 shlibpath_overrides_runpath=no | |
9493 need_lib_prefix=no | |
9494 runpath_var=LD_RUN_PATH | |
9495 ;; | |
9496 siemens) | |
9497 need_lib_prefix=no | |
9498 ;; | |
9499 motorola) | |
9500 need_lib_prefix=no | |
9501 need_version=no | |
9502 shlibpath_overrides_runpath=no | |
9503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9504 ;; | |
9505 esac | |
9506 ;; | |
9507 | |
9508 sysv4*MP*) | |
9509 if test -d /usr/nec ;then | |
9510 version_type=linux | |
9511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9512 soname_spec='$libname${shared_ext}.$major' | |
9513 shlibpath_var=LD_LIBRARY_PATH | |
9514 fi | |
9515 ;; | |
9516 | |
9517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9518 version_type=freebsd-elf | |
9519 need_lib_prefix=no | |
9520 need_version=no | |
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9522 soname_spec='${libname}${release}${shared_ext}$major' | |
9523 shlibpath_var=LD_LIBRARY_PATH | |
9524 shlibpath_overrides_runpath=yes | |
9525 hardcode_into_libs=yes | |
9526 if test "$with_gnu_ld" = yes; then | |
9527 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9528 else | |
9529 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9530 case $host_os in | |
9531 sco3.2v5*) | |
9532 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9533 ;; | |
9534 esac | |
9535 fi | |
9536 sys_lib_dlsearch_path_spec='/usr/lib' | |
9537 ;; | |
9538 | |
9539 tpf*) | |
9540 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9541 version_type=linux | |
9542 need_lib_prefix=no | |
9543 need_version=no | |
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9545 shlibpath_var=LD_LIBRARY_PATH | |
9546 shlibpath_overrides_runpath=no | |
9547 hardcode_into_libs=yes | |
9548 ;; | |
9549 | |
9550 uts4*) | |
9551 version_type=linux | |
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9553 soname_spec='${libname}${release}${shared_ext}$major' | |
9554 shlibpath_var=LD_LIBRARY_PATH | |
9555 ;; | |
9556 | |
9557 *) | |
9558 dynamic_linker=no | |
9559 ;; | |
9560 esac | |
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
9562 $as_echo "$dynamic_linker" >&6; } | |
9563 test "$dynamic_linker" = no && can_build_shared=no | |
9564 | |
9565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9566 if test "$GCC" = yes; then | |
9567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9568 fi | |
9569 | |
9570 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
9571 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9572 fi | |
9573 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
9574 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
9575 fi | |
9576 | |
9577 | |
9578 | |
9579 | |
9580 | |
9581 | |
9582 | |
9583 | |
9584 | |
9585 | |
9586 | |
9587 | |
9588 | |
9589 | |
9590 | |
9591 | |
9592 | |
9593 | |
9594 | |
9595 | |
9596 | |
9597 | |
9598 | |
9599 | |
9600 | |
9601 | |
9602 | |
9603 | |
9604 | |
9605 | |
9606 | |
9607 | |
9608 | |
9609 | |
9610 | |
9611 | |
9612 | |
9613 | |
9614 | |
9615 | |
9616 | |
9617 | |
9618 | |
9619 | |
9620 | |
9621 | |
9622 | |
9623 | |
9624 | |
9625 | |
9626 | |
9627 | |
9628 | |
9629 | |
9630 | |
9631 | |
9632 | |
9633 | |
9634 | |
9635 | |
9636 | |
9637 | |
9638 | |
9639 | |
9640 | |
9641 | |
9642 | |
9643 | |
9644 | |
9645 | |
9646 | |
9647 | |
9648 | |
9649 | |
9650 | |
9651 | |
9652 | |
9653 | |
9654 | |
9655 | |
9656 | |
9657 | |
9658 | |
9659 | |
9660 | |
9661 | |
9662 | |
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
9664 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
9665 hardcode_action= | |
9666 if test -n "$hardcode_libdir_flag_spec" || | |
9667 test -n "$runpath_var" || | |
9668 test "X$hardcode_automatic" = "Xyes" ; then | |
9669 | |
9670 # We can hardcode non-existent directories. | |
9671 if test "$hardcode_direct" != no && | |
9672 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9673 # have to relink, otherwise we might link with an installed library | |
9674 # when we should be linking with a yet-to-be-installed one | |
9675 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9676 test "$hardcode_minus_L" != no; then | |
9677 # Linking always hardcodes the temporary library directory. | |
9678 hardcode_action=relink | |
9679 else | |
9680 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9681 hardcode_action=immediate | |
9682 fi | |
9683 else | |
9684 # We cannot hardcode anything, or else we can only hardcode existing | |
9685 # directories. | |
9686 hardcode_action=unsupported | |
9687 fi | |
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
9689 $as_echo "$hardcode_action" >&6; } | |
9690 | |
9691 if test "$hardcode_action" = relink || | |
9692 test "$inherit_rpath" = yes; then | |
9693 # Fast installation is not supported | |
9694 enable_fast_install=no | |
9695 elif test "$shlibpath_overrides_runpath" = yes || | |
9696 test "$enable_shared" = no; then | |
9697 # Fast installation is not necessary | |
9698 enable_fast_install=needless | |
9699 fi | |
9700 | |
9701 | |
9702 | |
9703 | |
9704 | |
9705 | |
9706 if test "x$enable_dlopen" != xyes; then | |
9707 enable_dlopen=unknown | |
9708 enable_dlopen_self=unknown | |
9709 enable_dlopen_self_static=unknown | |
9710 else | |
9711 lt_cv_dlopen=no | |
9712 lt_cv_dlopen_libs= | |
9713 | |
9714 case $host_os in | |
9715 beos*) | |
9716 lt_cv_dlopen="load_add_on" | |
9717 lt_cv_dlopen_libs= | |
9718 lt_cv_dlopen_self=yes | |
9719 ;; | |
9720 | |
9721 mingw* | pw32* | cegcc*) | |
9722 lt_cv_dlopen="LoadLibrary" | |
9723 lt_cv_dlopen_libs= | |
9724 ;; | |
9725 | |
9726 cygwin*) | |
9727 lt_cv_dlopen="dlopen" | |
9728 lt_cv_dlopen_libs= | |
9729 ;; | |
9730 | |
9731 darwin*) | |
9732 # if libdl is installed we need to link against it | |
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9734 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9735 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9736 $as_echo_n "(cached) " >&6 | |
9737 else | |
9738 ac_check_lib_save_LIBS=$LIBS | |
9739 LIBS="-ldl $LIBS" | |
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9741 /* end confdefs.h. */ | |
9742 | |
9743 /* Override any GCC internal prototype to avoid an error. | |
9744 Use char because int might match the return type of a GCC | |
9745 builtin and then its argument prototype would still apply. */ | |
9746 #ifdef __cplusplus | |
9747 extern "C" | |
9748 #endif | |
9749 char dlopen (); | |
9750 int | |
9751 main () | |
9752 { | |
9753 return dlopen (); | |
9754 ; | |
9755 return 0; | |
9756 } | |
9757 _ACEOF | |
9758 if ac_fn_c_try_link "$LINENO"; then : | |
9759 ac_cv_lib_dl_dlopen=yes | |
9760 else | |
9761 ac_cv_lib_dl_dlopen=no | |
9762 fi | |
9763 rm -f core conftest.err conftest.$ac_objext \ | |
9764 conftest$ac_exeext conftest.$ac_ext | |
9765 LIBS=$ac_check_lib_save_LIBS | |
9766 fi | |
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9769 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9770 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9771 else | |
9772 | |
9773 lt_cv_dlopen="dyld" | |
9774 lt_cv_dlopen_libs= | |
9775 lt_cv_dlopen_self=yes | |
9776 | |
9777 fi | |
9778 | |
9779 ;; | |
9780 | |
9781 *) | |
9782 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
9783 if test "x$ac_cv_func_shl_load" = x""yes; then : | |
9784 lt_cv_dlopen="shl_load" | |
9785 else | |
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
9787 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
9788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
9789 $as_echo_n "(cached) " >&6 | |
9790 else | |
9791 ac_check_lib_save_LIBS=$LIBS | |
9792 LIBS="-ldld $LIBS" | |
9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9794 /* end confdefs.h. */ | |
9795 | |
9796 /* Override any GCC internal prototype to avoid an error. | |
9797 Use char because int might match the return type of a GCC | |
9798 builtin and then its argument prototype would still apply. */ | |
9799 #ifdef __cplusplus | |
9800 extern "C" | |
9801 #endif | |
9802 char shl_load (); | |
9803 int | |
9804 main () | |
9805 { | |
9806 return shl_load (); | |
9807 ; | |
9808 return 0; | |
9809 } | |
9810 _ACEOF | |
9811 if ac_fn_c_try_link "$LINENO"; then : | |
9812 ac_cv_lib_dld_shl_load=yes | |
9813 else | |
9814 ac_cv_lib_dld_shl_load=no | |
9815 fi | |
9816 rm -f core conftest.err conftest.$ac_objext \ | |
9817 conftest$ac_exeext conftest.$ac_ext | |
9818 LIBS=$ac_check_lib_save_LIBS | |
9819 fi | |
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
9821 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
9822 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
9823 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
9824 else | |
9825 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
9826 if test "x$ac_cv_func_dlopen" = x""yes; then : | |
9827 lt_cv_dlopen="dlopen" | |
9828 else | |
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
9830 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
9831 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
9832 $as_echo_n "(cached) " >&6 | |
9833 else | |
9834 ac_check_lib_save_LIBS=$LIBS | |
9835 LIBS="-ldl $LIBS" | |
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9837 /* end confdefs.h. */ | |
9838 | |
9839 /* Override any GCC internal prototype to avoid an error. | |
9840 Use char because int might match the return type of a GCC | |
9841 builtin and then its argument prototype would still apply. */ | |
9842 #ifdef __cplusplus | |
9843 extern "C" | |
9844 #endif | |
9845 char dlopen (); | |
9846 int | |
9847 main () | |
9848 { | |
9849 return dlopen (); | |
9850 ; | |
9851 return 0; | |
9852 } | |
9853 _ACEOF | |
9854 if ac_fn_c_try_link "$LINENO"; then : | |
9855 ac_cv_lib_dl_dlopen=yes | |
9856 else | |
9857 ac_cv_lib_dl_dlopen=no | |
9858 fi | |
9859 rm -f core conftest.err conftest.$ac_objext \ | |
9860 conftest$ac_exeext conftest.$ac_ext | |
9861 LIBS=$ac_check_lib_save_LIBS | |
9862 fi | |
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
9864 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
9865 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
9866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9867 else | |
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
9869 $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
9870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
9871 $as_echo_n "(cached) " >&6 | |
9872 else | |
9873 ac_check_lib_save_LIBS=$LIBS | |
9874 LIBS="-lsvld $LIBS" | |
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9876 /* end confdefs.h. */ | |
9877 | |
9878 /* Override any GCC internal prototype to avoid an error. | |
9879 Use char because int might match the return type of a GCC | |
9880 builtin and then its argument prototype would still apply. */ | |
9881 #ifdef __cplusplus | |
9882 extern "C" | |
9883 #endif | |
9884 char dlopen (); | |
9885 int | |
9886 main () | |
9887 { | |
9888 return dlopen (); | |
9889 ; | |
9890 return 0; | |
9891 } | |
9892 _ACEOF | |
9893 if ac_fn_c_try_link "$LINENO"; then : | |
9894 ac_cv_lib_svld_dlopen=yes | |
9895 else | |
9896 ac_cv_lib_svld_dlopen=no | |
9897 fi | |
9898 rm -f core conftest.err conftest.$ac_objext \ | |
9899 conftest$ac_exeext conftest.$ac_ext | |
9900 LIBS=$ac_check_lib_save_LIBS | |
9901 fi | |
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
9903 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
9904 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
9905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9906 else | |
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
9908 $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
9909 if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
9910 $as_echo_n "(cached) " >&6 | |
9911 else | |
9912 ac_check_lib_save_LIBS=$LIBS | |
9913 LIBS="-ldld $LIBS" | |
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9915 /* end confdefs.h. */ | |
9916 | |
9917 /* Override any GCC internal prototype to avoid an error. | |
9918 Use char because int might match the return type of a GCC | |
9919 builtin and then its argument prototype would still apply. */ | |
9920 #ifdef __cplusplus | |
9921 extern "C" | |
9922 #endif | |
9923 char dld_link (); | |
9924 int | |
9925 main () | |
9926 { | |
9927 return dld_link (); | |
9928 ; | |
9929 return 0; | |
9930 } | |
9931 _ACEOF | |
9932 if ac_fn_c_try_link "$LINENO"; then : | |
9933 ac_cv_lib_dld_dld_link=yes | |
9934 else | |
9935 ac_cv_lib_dld_dld_link=no | |
9936 fi | |
9937 rm -f core conftest.err conftest.$ac_objext \ | |
9938 conftest$ac_exeext conftest.$ac_ext | |
9939 LIBS=$ac_check_lib_save_LIBS | |
9940 fi | |
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
9942 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
9943 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
9944 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
9945 fi | |
9946 | |
9947 | |
9948 fi | |
9949 | |
9950 | |
9951 fi | |
9952 | |
9953 | |
9954 fi | |
9955 | |
9956 | |
9957 fi | |
9958 | |
9959 | |
9960 fi | |
9961 | |
9962 ;; | |
9963 esac | |
9964 | |
9965 if test "x$lt_cv_dlopen" != xno; then | |
9966 enable_dlopen=yes | |
9967 else | |
9968 enable_dlopen=no | |
9969 fi | |
9970 | |
9971 case $lt_cv_dlopen in | |
9972 dlopen) | |
9973 save_CPPFLAGS="$CPPFLAGS" | |
9974 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9975 | |
9976 save_LDFLAGS="$LDFLAGS" | |
9977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
9978 | |
9979 save_LIBS="$LIBS" | |
9980 LIBS="$lt_cv_dlopen_libs $LIBS" | |
9981 | |
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
9983 $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
9984 if test "${lt_cv_dlopen_self+set}" = set; then : | |
9985 $as_echo_n "(cached) " >&6 | |
9986 else | |
9987 if test "$cross_compiling" = yes; then : | |
9988 lt_cv_dlopen_self=cross | |
9989 else | |
9990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9991 lt_status=$lt_dlunknown | |
9992 cat > conftest.$ac_ext <<_LT_EOF | |
9993 #line 9993 "configure" | |
9994 #include "confdefs.h" | |
9995 | |
9996 #if HAVE_DLFCN_H | |
9997 #include <dlfcn.h> | |
9998 #endif | |
9999 | |
10000 #include <stdio.h> | |
10001 | |
10002 #ifdef RTLD_GLOBAL | |
10003 # define LT_DLGLOBAL RTLD_GLOBAL | |
10004 #else | |
10005 # ifdef DL_GLOBAL | |
10006 # define LT_DLGLOBAL DL_GLOBAL | |
10007 # else | |
10008 # define LT_DLGLOBAL 0 | |
10009 # endif | |
10010 #endif | |
10011 | |
10012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10013 find out it does not work in some platform. */ | |
10014 #ifndef LT_DLLAZY_OR_NOW | |
10015 # ifdef RTLD_LAZY | |
10016 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10017 # else | |
10018 # ifdef DL_LAZY | |
10019 # define LT_DLLAZY_OR_NOW DL_LAZY | |
10020 # else | |
10021 # ifdef RTLD_NOW | |
10022 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10023 # else | |
10024 # ifdef DL_NOW | |
10025 # define LT_DLLAZY_OR_NOW DL_NOW | |
10026 # else | |
10027 # define LT_DLLAZY_OR_NOW 0 | |
10028 # endif | |
10029 # endif | |
10030 # endif | |
10031 # endif | |
10032 #endif | |
10033 | |
10034 void fnord() { int i=42;} | |
10035 int main () | |
10036 { | |
10037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10038 int status = $lt_dlunknown; | |
10039 | |
10040 if (self) | |
10041 { | |
10042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10043 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10044 /* dlclose (self); */ | |
10045 } | |
10046 else | |
10047 puts (dlerror ()); | |
10048 | |
10049 return status; | |
10050 } | |
10051 _LT_EOF | |
10052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
10053 (eval $ac_link) 2>&5 | |
10054 ac_status=$? | |
10055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10056 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10057 (./conftest; exit; ) >&5 2>/dev/null | |
10058 lt_status=$? | |
10059 case x$lt_status in | |
10060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10063 esac | |
10064 else : | |
10065 # compilation failed | |
10066 lt_cv_dlopen_self=no | |
10067 fi | |
10068 fi | |
10069 rm -fr conftest* | |
10070 | |
10071 | |
10072 fi | |
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
10074 $as_echo "$lt_cv_dlopen_self" >&6; } | |
10075 | |
10076 if test "x$lt_cv_dlopen_self" = xyes; then | |
10077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
10079 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
10080 if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
10081 $as_echo_n "(cached) " >&6 | |
10082 else | |
10083 if test "$cross_compiling" = yes; then : | |
10084 lt_cv_dlopen_self_static=cross | |
10085 else | |
10086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10087 lt_status=$lt_dlunknown | |
10088 cat > conftest.$ac_ext <<_LT_EOF | |
10089 #line 10089 "configure" | |
10090 #include "confdefs.h" | |
10091 | |
10092 #if HAVE_DLFCN_H | |
10093 #include <dlfcn.h> | |
10094 #endif | |
10095 | |
10096 #include <stdio.h> | |
10097 | |
10098 #ifdef RTLD_GLOBAL | |
10099 # define LT_DLGLOBAL RTLD_GLOBAL | |
10100 #else | |
10101 # ifdef DL_GLOBAL | |
10102 # define LT_DLGLOBAL DL_GLOBAL | |
10103 # else | |
10104 # define LT_DLGLOBAL 0 | |
10105 # endif | |
10106 #endif | |
10107 | |
10108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10109 find out it does not work in some platform. */ | |
10110 #ifndef LT_DLLAZY_OR_NOW | |
10111 # ifdef RTLD_LAZY | |
10112 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10113 # else | |
10114 # ifdef DL_LAZY | |
10115 # define LT_DLLAZY_OR_NOW DL_LAZY | |
10116 # else | |
10117 # ifdef RTLD_NOW | |
10118 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10119 # else | |
10120 # ifdef DL_NOW | |
10121 # define LT_DLLAZY_OR_NOW DL_NOW | |
10122 # else | |
10123 # define LT_DLLAZY_OR_NOW 0 | |
10124 # endif | |
10125 # endif | |
10126 # endif | |
10127 # endif | |
10128 #endif | |
10129 | |
10130 void fnord() { int i=42;} | |
10131 int main () | |
10132 { | |
10133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10134 int status = $lt_dlunknown; | |
10135 | |
10136 if (self) | |
10137 { | |
10138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10140 /* dlclose (self); */ | |
10141 } | |
10142 else | |
10143 puts (dlerror ()); | |
10144 | |
10145 return status; | |
10146 } | |
10147 _LT_EOF | |
10148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
10149 (eval $ac_link) 2>&5 | |
10150 ac_status=$? | |
10151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10153 (./conftest; exit; ) >&5 2>/dev/null | |
10154 lt_status=$? | |
10155 case x$lt_status in | |
10156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10158 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10159 esac | |
10160 else : | |
10161 # compilation failed | |
10162 lt_cv_dlopen_self_static=no | |
10163 fi | |
10164 fi | |
10165 rm -fr conftest* | |
10166 | |
10167 | |
10168 fi | |
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
10170 $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
10171 fi | |
10172 | |
10173 CPPFLAGS="$save_CPPFLAGS" | |
10174 LDFLAGS="$save_LDFLAGS" | |
10175 LIBS="$save_LIBS" | |
10176 ;; | |
10177 esac | |
10178 | |
10179 case $lt_cv_dlopen_self in | |
10180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10181 *) enable_dlopen_self=unknown ;; | |
10182 esac | |
10183 | |
10184 case $lt_cv_dlopen_self_static in | |
10185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10186 *) enable_dlopen_self_static=unknown ;; | |
10187 esac | |
10188 fi | |
10189 | |
10190 | |
10191 | |
10192 | |
10193 | |
10194 | |
10195 | |
10196 | |
10197 | |
10198 | |
10199 | |
10200 | |
10201 | |
10202 | |
10203 | |
10204 | |
10205 | |
10206 striplib= | |
10207 old_striplib= | |
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
10209 $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
10210 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10212 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10214 $as_echo "yes" >&6; } | |
10215 else | |
10216 # FIXME - insert some real tests, host_os isn't really good enough | |
10217 case $host_os in | |
10218 darwin*) | |
10219 if test -n "$STRIP" ; then | |
10220 striplib="$STRIP -x" | |
10221 old_striplib="$STRIP -S" | |
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10223 $as_echo "yes" >&6; } | |
10224 else | |
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10226 $as_echo "no" >&6; } | |
10227 fi | |
10228 ;; | |
10229 *) | |
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10231 $as_echo "no" >&6; } | |
10232 ;; | |
10233 esac | |
10234 fi | |
10235 | |
10236 | |
10237 | |
10238 | |
10239 | |
10240 | |
10241 | |
10242 | |
10243 | |
10244 | |
10245 | |
10246 | |
10247 # Report which library types will actually be built | |
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
10249 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
10251 $as_echo "$can_build_shared" >&6; } | |
10252 | |
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
10254 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
10255 test "$can_build_shared" = "no" && enable_shared=no | |
10256 | |
10257 # On AIX, shared libraries and static libraries use the same namespace, and | |
10258 # are all built from PIC. | |
10259 case $host_os in | |
10260 aix3*) | |
10261 test "$enable_shared" = yes && enable_static=no | |
10262 if test -n "$RANLIB"; then | |
10263 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10264 postinstall_cmds='$RANLIB $lib' | |
10265 fi | |
10266 ;; | |
10267 | |
10268 aix[4-9]*) | |
10269 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
10270 test "$enable_shared" = yes && enable_static=no | |
10271 fi | |
10272 ;; | |
10273 esac | |
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
10275 $as_echo "$enable_shared" >&6; } | |
10276 | |
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
10278 $as_echo_n "checking whether to build static libraries... " >&6; } | |
10279 # Make sure either enable_shared or enable_static is yes. | |
10280 test "$enable_shared" = yes || enable_static=yes | |
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
10282 $as_echo "$enable_static" >&6; } | |
10283 | |
10284 | |
10285 | |
10286 | |
10287 fi | |
10288 ac_ext=c | |
10289 ac_cpp='$CPP $CPPFLAGS' | |
10290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10292 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10293 | |
10294 CC="$lt_save_CC" | |
10295 | |
10296 | |
10297 | |
10298 | |
10299 | |
10300 | |
10301 | |
10302 | |
10303 | |
10304 | |
10305 | |
10306 | |
10307 | |
10308 ac_config_commands="$ac_config_commands libtool" | |
10309 | |
10310 | |
10311 | |
10312 | |
10313 # Only expand once: | |
10314 | |
10315 | |
1661 | 10316 |
1662 if test $prefix = "NONE"; then | 10317 if test $prefix = "NONE"; then |
1663 prefix=/usr/local | 10318 prefix=/usr/local |
1664 fi | 10319 fi |
1665 | 10320 |
1678 if test -z $SITELISP; then | 10333 if test -z $SITELISP; then |
1679 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode | 10334 SITELISP=$prefix/share/emacs/site-lisp/urweb-mode |
1680 fi | 10335 fi |
1681 | 10336 |
1682 | 10337 |
1683 do_not_edit="Do not edit this file. It was generated automatically from" | 10338 |
1684 | 10339 |
1685 | 10340 |
1686 # ----------------- finish up ------------------- | 10341 |
1687 # names of the variables that get substituted in files; for example, | 10342 |
1688 # write @ARCHOS@ somewhere in a written file to get it substituted | 10343 ac_config_files="$ac_config_files Makefile src/c/Makefile src/config.sml" |
1689 | 10344 |
1690 | |
1691 | |
1692 | |
1693 | |
1694 | |
1695 | |
1696 # finish the configure script and generate various files; ./configure | |
1697 # will apply variable substitutions to <filename>.in to generate <filename>; | |
1698 # I find it useful to mark generated files as read-only so I don't | |
1699 # accidentally edit them (and then lose my changes when ./configure | |
1700 # runs again); I had originally done the chmod after AC_OUTPUT, but | |
1701 # the problem is then the chmod doesn't run inside ./config.status | |
1702 | |
1703 # MY_AC_CONFIG_FILES(filename) | |
1704 # do AC_CONFIG_FILES(filename, chmod a-w filename) | |
1705 | |
1706 | |
1707 { | |
1708 if test -f Makefile.in; then | |
1709 ac_config_files="$ac_config_files Makefile" | |
1710 | |
1711 else | |
1712 true | |
1713 #echo "skipping [Makefile] because it's not in this distribution" | |
1714 fi | |
1715 } | |
1716 { | |
1717 if test -f src/config.sml.in; then | |
1718 ac_config_files="$ac_config_files src/config.sml" | |
1719 | |
1720 else | |
1721 true | |
1722 #echo "skipping [src/config.sml] because it's not in this distribution" | |
1723 fi | |
1724 } | |
1725 | 10345 |
1726 cat >confcache <<\_ACEOF | 10346 cat >confcache <<\_ACEOF |
1727 # This file is a shell script that caches the results of configure | 10347 # This file is a shell script that caches the results of configure |
1728 # tests run on this system so they can be shared between configure | 10348 # tests run on this system so they can be shared between configure |
1729 # scripts and configure runs, see configure's option --config-cache. | 10349 # scripts and configure runs, see configure's option --config-cache. |
1854 LIBOBJS=$ac_libobjs | 10474 LIBOBJS=$ac_libobjs |
1855 | 10475 |
1856 LTLIBOBJS=$ac_ltlibobjs | 10476 LTLIBOBJS=$ac_ltlibobjs |
1857 | 10477 |
1858 | 10478 |
10479 if test -n "$EXEEXT"; then | |
10480 am__EXEEXT_TRUE= | |
10481 am__EXEEXT_FALSE='#' | |
10482 else | |
10483 am__EXEEXT_TRUE='#' | |
10484 am__EXEEXT_FALSE= | |
10485 fi | |
10486 | |
10487 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
10488 as_fn_error "conditional \"AMDEP\" was never defined. | |
10489 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
10490 fi | |
10491 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
10492 as_fn_error "conditional \"am__fastdepCC\" was never defined. | |
10493 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
10494 fi | |
1859 | 10495 |
1860 : ${CONFIG_STATUS=./config.status} | 10496 : ${CONFIG_STATUS=./config.status} |
1861 ac_write_fail=0 | 10497 ac_write_fail=0 |
1862 ac_clean_files_save=$ac_clean_files | 10498 ac_clean_files_save=$ac_clean_files |
1863 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 10499 ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
2262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 10898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2263 # Save the log message, to keep $0 and so on meaningful, and to | 10899 # Save the log message, to keep $0 and so on meaningful, and to |
2264 # report actual input values of CONFIG_FILES etc. instead of their | 10900 # report actual input values of CONFIG_FILES etc. instead of their |
2265 # values after options handling. | 10901 # values after options handling. |
2266 ac_log=" | 10902 ac_log=" |
2267 This file was extended by $as_me, which was | 10903 This file was extended by urweb $as_me 1.0, which was |
2268 generated by GNU Autoconf 2.65. Invocation command line was | 10904 generated by GNU Autoconf 2.65. Invocation command line was |
2269 | 10905 |
2270 CONFIG_FILES = $CONFIG_FILES | 10906 CONFIG_FILES = $CONFIG_FILES |
2271 CONFIG_HEADERS = $CONFIG_HEADERS | 10907 CONFIG_HEADERS = $CONFIG_HEADERS |
2272 CONFIG_LINKS = $CONFIG_LINKS | 10908 CONFIG_LINKS = $CONFIG_LINKS |
2285 | 10921 |
2286 | 10922 |
2287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 10923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2288 # Files that config.status was made for. | 10924 # Files that config.status was made for. |
2289 config_files="$ac_config_files" | 10925 config_files="$ac_config_files" |
10926 config_commands="$ac_config_commands" | |
2290 | 10927 |
2291 _ACEOF | 10928 _ACEOF |
2292 | 10929 |
2293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 10930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2294 ac_cs_usage="\ | 10931 ac_cs_usage="\ |
2309 instantiate the configuration file FILE | 10946 instantiate the configuration file FILE |
2310 | 10947 |
2311 Configuration files: | 10948 Configuration files: |
2312 $config_files | 10949 $config_files |
2313 | 10950 |
10951 Configuration commands: | |
10952 $config_commands | |
10953 | |
2314 Report bugs to the package provider." | 10954 Report bugs to the package provider." |
2315 | 10955 |
2316 _ACEOF | 10956 _ACEOF |
2317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 10957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2318 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 10958 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
2319 ac_cs_version="\\ | 10959 ac_cs_version="\\ |
2320 config.status | 10960 urweb config.status 1.0 |
2321 configured by $0, generated by GNU Autoconf 2.65, | 10961 configured by $0, generated by GNU Autoconf 2.65, |
2322 with options \\"\$ac_cs_config\\" | 10962 with options \\"\$ac_cs_config\\" |
2323 | 10963 |
2324 Copyright (C) 2009 Free Software Foundation, Inc. | 10964 Copyright (C) 2009 Free Software Foundation, Inc. |
2325 This config.status script is free software; the Free Software Foundation | 10965 This config.status script is free software; the Free Software Foundation |
2326 gives unlimited permission to copy, distribute and modify it." | 10966 gives unlimited permission to copy, distribute and modify it." |
2327 | 10967 |
2328 ac_pwd='$ac_pwd' | 10968 ac_pwd='$ac_pwd' |
2329 srcdir='$srcdir' | 10969 srcdir='$srcdir' |
10970 INSTALL='$INSTALL' | |
10971 MKDIR_P='$MKDIR_P' | |
10972 AWK='$AWK' | |
2330 test -n "\$AWK" || AWK=awk | 10973 test -n "\$AWK" || AWK=awk |
2331 _ACEOF | 10974 _ACEOF |
2332 | 10975 |
2333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 10976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2334 # The default lists apply if the user does not specify any file. | 10977 # The default lists apply if the user does not specify any file. |
2411 $as_echo "$ac_log" | 11054 $as_echo "$ac_log" |
2412 } >&5 | 11055 } >&5 |
2413 | 11056 |
2414 _ACEOF | 11057 _ACEOF |
2415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 11058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
11059 # | |
11060 # INIT-COMMANDS | |
11061 # | |
11062 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
11063 | |
11064 | |
11065 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
11066 # if CDPATH is set. | |
11067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
11068 | |
11069 sed_quote_subst='$sed_quote_subst' | |
11070 double_quote_subst='$double_quote_subst' | |
11071 delay_variable_subst='$delay_variable_subst' | |
11072 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
11073 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
11074 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
11075 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
11076 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
11077 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
11078 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
11079 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
11080 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
11081 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
11082 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
11083 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
11084 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
11085 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
11086 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
11087 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
11088 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
11089 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
11090 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
11091 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
11092 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
11093 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
11094 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
11095 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
11096 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
11097 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
11098 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11099 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11100 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
11101 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
11102 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
11103 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
11104 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
11105 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
11106 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
11107 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11108 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11109 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11110 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
11111 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
11112 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
11113 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
11114 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
11115 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
11116 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"`' | |
11117 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"`' | |
11118 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
11119 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
11120 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
11121 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
11122 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11123 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
11124 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
11125 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
11126 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
11127 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
11128 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
11129 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
11130 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
11131 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
11132 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
11133 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
11134 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11135 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11136 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
11137 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
11138 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11139 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11140 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
11141 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11142 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11143 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11144 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11145 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11146 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11147 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
11148 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11149 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
11150 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11151 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
11152 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
11153 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
11154 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
11155 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
11156 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
11157 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
11158 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
11159 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
11160 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
11161 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
11162 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11163 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
11164 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
11165 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11166 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11167 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
11168 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
11169 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
11170 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
11171 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
11172 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
11173 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
11174 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11175 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11176 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11177 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11178 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11179 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
11180 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
11181 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
11182 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11183 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
11184 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
11185 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
11186 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
11187 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
11188 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
11189 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
11190 | |
11191 LTCC='$LTCC' | |
11192 LTCFLAGS='$LTCFLAGS' | |
11193 compiler='$compiler_DEFAULT' | |
11194 | |
11195 # Quote evaled strings. | |
11196 for var in SED \ | |
11197 GREP \ | |
11198 EGREP \ | |
11199 FGREP \ | |
11200 LD \ | |
11201 NM \ | |
11202 LN_S \ | |
11203 lt_SP2NL \ | |
11204 lt_NL2SP \ | |
11205 reload_flag \ | |
11206 OBJDUMP \ | |
11207 deplibs_check_method \ | |
11208 file_magic_cmd \ | |
11209 AR \ | |
11210 AR_FLAGS \ | |
11211 STRIP \ | |
11212 RANLIB \ | |
11213 CC \ | |
11214 CFLAGS \ | |
11215 compiler \ | |
11216 lt_cv_sys_global_symbol_pipe \ | |
11217 lt_cv_sys_global_symbol_to_cdecl \ | |
11218 lt_cv_sys_global_symbol_to_c_name_address \ | |
11219 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
11220 SHELL \ | |
11221 ECHO \ | |
11222 lt_prog_compiler_no_builtin_flag \ | |
11223 lt_prog_compiler_wl \ | |
11224 lt_prog_compiler_pic \ | |
11225 lt_prog_compiler_static \ | |
11226 lt_cv_prog_compiler_c_o \ | |
11227 need_locks \ | |
11228 DSYMUTIL \ | |
11229 NMEDIT \ | |
11230 LIPO \ | |
11231 OTOOL \ | |
11232 OTOOL64 \ | |
11233 shrext_cmds \ | |
11234 export_dynamic_flag_spec \ | |
11235 whole_archive_flag_spec \ | |
11236 compiler_needs_object \ | |
11237 with_gnu_ld \ | |
11238 allow_undefined_flag \ | |
11239 no_undefined_flag \ | |
11240 hardcode_libdir_flag_spec \ | |
11241 hardcode_libdir_flag_spec_ld \ | |
11242 hardcode_libdir_separator \ | |
11243 fix_srcfile_path \ | |
11244 exclude_expsyms \ | |
11245 include_expsyms \ | |
11246 file_list_spec \ | |
11247 variables_saved_for_relink \ | |
11248 libname_spec \ | |
11249 library_names_spec \ | |
11250 soname_spec \ | |
11251 finish_eval \ | |
11252 old_striplib \ | |
11253 striplib; do | |
11254 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
11255 *[\\\\\\\`\\"\\\$]*) | |
11256 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
11257 ;; | |
11258 *) | |
11259 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
11260 ;; | |
11261 esac | |
11262 done | |
11263 | |
11264 # Double-quote double-evaled strings. | |
11265 for var in reload_cmds \ | |
11266 old_postinstall_cmds \ | |
11267 old_postuninstall_cmds \ | |
11268 old_archive_cmds \ | |
11269 extract_expsyms_cmds \ | |
11270 old_archive_from_new_cmds \ | |
11271 old_archive_from_expsyms_cmds \ | |
11272 archive_cmds \ | |
11273 archive_expsym_cmds \ | |
11274 module_cmds \ | |
11275 module_expsym_cmds \ | |
11276 export_symbols_cmds \ | |
11277 prelink_cmds \ | |
11278 postinstall_cmds \ | |
11279 postuninstall_cmds \ | |
11280 finish_cmds \ | |
11281 sys_lib_search_path_spec \ | |
11282 sys_lib_dlsearch_path_spec; do | |
11283 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
11284 *[\\\\\\\`\\"\\\$]*) | |
11285 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
11286 ;; | |
11287 *) | |
11288 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
11289 ;; | |
11290 esac | |
11291 done | |
11292 | |
11293 # Fix-up fallback echo if it was mangled by the above quoting rules. | |
11294 case \$lt_ECHO in | |
11295 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
11296 ;; | |
11297 esac | |
11298 | |
11299 ac_aux_dir='$ac_aux_dir' | |
11300 xsi_shell='$xsi_shell' | |
11301 lt_shell_append='$lt_shell_append' | |
11302 | |
11303 # See if we are running on zsh, and set the options which allow our | |
11304 # commands through without removal of \ escapes INIT. | |
11305 if test -n "\${ZSH_VERSION+set}" ; then | |
11306 setopt NO_GLOB_SUBST | |
11307 fi | |
11308 | |
11309 | |
11310 PACKAGE='$PACKAGE' | |
11311 VERSION='$VERSION' | |
11312 TIMESTAMP='$TIMESTAMP' | |
11313 RM='$RM' | |
11314 ofile='$ofile' | |
11315 | |
11316 | |
11317 | |
11318 | |
2416 _ACEOF | 11319 _ACEOF |
2417 | 11320 |
2418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 11321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2419 | 11322 |
2420 # Handling of arguments. | 11323 # Handling of arguments. |
2421 for ac_config_target in $ac_config_targets | 11324 for ac_config_target in $ac_config_targets |
2422 do | 11325 do |
2423 case $ac_config_target in | 11326 case $ac_config_target in |
11327 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
11328 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
2424 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | 11329 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
11330 "src/c/Makefile") CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;; | |
2425 "src/config.sml") CONFIG_FILES="$CONFIG_FILES src/config.sml" ;; | 11331 "src/config.sml") CONFIG_FILES="$CONFIG_FILES src/config.sml" ;; |
2426 | 11332 |
2427 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 11333 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
2428 esac | 11334 esac |
2429 done | 11335 done |
2433 # then the envvar interface is used. Set only those that are not. | 11339 # then the envvar interface is used. Set only those that are not. |
2434 # We use the long form for the default assignment because of an extremely | 11340 # We use the long form for the default assignment because of an extremely |
2435 # bizarre bug on SunOS 4.1.3. | 11341 # bizarre bug on SunOS 4.1.3. |
2436 if $ac_need_defaults; then | 11342 if $ac_need_defaults; then |
2437 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 11343 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
11344 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
2438 fi | 11345 fi |
2439 | 11346 |
2440 # Have a temporary directory for convenience. Make it in the build tree | 11347 # Have a temporary directory for convenience. Make it in the build tree |
2441 # simply because there is no reason against having it here, and in addition, | 11348 # simply because there is no reason against having it here, and in addition, |
2442 # creating and moving files from /tmp can sometimes cause problems. | 11349 # creating and moving files from /tmp can sometimes cause problems. |
2611 | 11518 |
2612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 11519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2613 fi # test -n "$CONFIG_FILES" | 11520 fi # test -n "$CONFIG_FILES" |
2614 | 11521 |
2615 | 11522 |
2616 eval set X " :F $CONFIG_FILES " | 11523 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
2617 shift | 11524 shift |
2618 for ac_tag | 11525 for ac_tag |
2619 do | 11526 do |
2620 case $ac_tag in | 11527 case $ac_tag in |
2621 :[FHLC]) ac_mode=$ac_tag; continue;; | 11528 :[FHLC]) ac_mode=$ac_tag; continue;; |
2745 :F) | 11652 :F) |
2746 # | 11653 # |
2747 # CONFIG_FILE | 11654 # CONFIG_FILE |
2748 # | 11655 # |
2749 | 11656 |
11657 case $INSTALL in | |
11658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
11659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
11660 esac | |
11661 ac_MKDIR_P=$MKDIR_P | |
11662 case $MKDIR_P in | |
11663 [\\/$]* | ?:[\\/]* ) ;; | |
11664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
11665 esac | |
2750 _ACEOF | 11666 _ACEOF |
2751 | 11667 |
2752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 11668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
2753 # If the template does not know about datarootdir, expand it. | 11669 # If the template does not know about datarootdir, expand it. |
2754 # FIXME: This hack should be removed a few years after 2.60. | 11670 # FIXME: This hack should be removed a few years after 2.60. |
2798 s&@top_srcdir@&$ac_top_srcdir&;t t | 11714 s&@top_srcdir@&$ac_top_srcdir&;t t |
2799 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 11715 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
2800 s&@builddir@&$ac_builddir&;t t | 11716 s&@builddir@&$ac_builddir&;t t |
2801 s&@abs_builddir@&$ac_abs_builddir&;t t | 11717 s&@abs_builddir@&$ac_abs_builddir&;t t |
2802 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 11718 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
11719 s&@INSTALL@&$ac_INSTALL&;t t | |
11720 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
2803 $ac_datarootdir_hack | 11721 $ac_datarootdir_hack |
2804 " | 11722 " |
2805 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | 11723 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
2806 || as_fn_error "could not create $ac_file" "$LINENO" 5 | 11724 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
2807 | 11725 |
2820 esac \ | 11738 esac \ |
2821 || as_fn_error "could not create $ac_file" "$LINENO" 5 | 11739 || as_fn_error "could not create $ac_file" "$LINENO" 5 |
2822 ;; | 11740 ;; |
2823 | 11741 |
2824 | 11742 |
2825 | 11743 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
11744 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
11745 ;; | |
2826 esac | 11746 esac |
2827 | 11747 |
2828 | 11748 |
2829 case $ac_file$ac_mode in | 11749 case $ac_file$ac_mode in |
2830 "Makefile":F) chmod a-w Makefile ;; | 11750 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
2831 "src/config.sml":F) chmod a-w src/config.sml ;; | 11751 # Autoconf 2.62 quotes --file arguments for eval, but not when files |
11752 # are listed without --file. Let's play safe and only enable the eval | |
11753 # if we detect the quoting. | |
11754 case $CONFIG_FILES in | |
11755 *\'*) eval set x "$CONFIG_FILES" ;; | |
11756 *) set x $CONFIG_FILES ;; | |
11757 esac | |
11758 shift | |
11759 for mf | |
11760 do | |
11761 # Strip MF so we end up with the name of the file. | |
11762 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
11763 # Check whether this is an Automake generated Makefile or not. | |
11764 # We used to match only the files named `Makefile.in', but | |
11765 # some people rename them; so instead we look at the file content. | |
11766 # Grep'ing the first line is not enough: some people post-process | |
11767 # each Makefile.in and add a new line on top of each file to say so. | |
11768 # Grep'ing the whole file is not good either: AIX grep has a line | |
11769 # limit of 2048, but all sed's we know have understand at least 4000. | |
11770 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
11771 dirpart=`$as_dirname -- "$mf" || | |
11772 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11773 X"$mf" : 'X\(//\)[^/]' \| \ | |
11774 X"$mf" : 'X\(//\)$' \| \ | |
11775 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
11776 $as_echo X"$mf" | | |
11777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11778 s//\1/ | |
11779 q | |
11780 } | |
11781 /^X\(\/\/\)[^/].*/{ | |
11782 s//\1/ | |
11783 q | |
11784 } | |
11785 /^X\(\/\/\)$/{ | |
11786 s//\1/ | |
11787 q | |
11788 } | |
11789 /^X\(\/\).*/{ | |
11790 s//\1/ | |
11791 q | |
11792 } | |
11793 s/.*/./; q'` | |
11794 else | |
11795 continue | |
11796 fi | |
11797 # Extract the definition of DEPDIR, am__include, and am__quote | |
11798 # from the Makefile without running `make'. | |
11799 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
11800 test -z "$DEPDIR" && continue | |
11801 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
11802 test -z "am__include" && continue | |
11803 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
11804 # When using ansi2knr, U may be empty or an underscore; expand it | |
11805 U=`sed -n 's/^U = //p' < "$mf"` | |
11806 # Find all dependency output files, they are included files with | |
11807 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
11808 # simplest approach to changing $(DEPDIR) to its actual value in the | |
11809 # expansion. | |
11810 for file in `sed -n " | |
11811 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
11812 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
11813 # Make sure the directory exists. | |
11814 test -f "$dirpart/$file" && continue | |
11815 fdir=`$as_dirname -- "$file" || | |
11816 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11817 X"$file" : 'X\(//\)[^/]' \| \ | |
11818 X"$file" : 'X\(//\)$' \| \ | |
11819 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
11820 $as_echo X"$file" | | |
11821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11822 s//\1/ | |
11823 q | |
11824 } | |
11825 /^X\(\/\/\)[^/].*/{ | |
11826 s//\1/ | |
11827 q | |
11828 } | |
11829 /^X\(\/\/\)$/{ | |
11830 s//\1/ | |
11831 q | |
11832 } | |
11833 /^X\(\/\).*/{ | |
11834 s//\1/ | |
11835 q | |
11836 } | |
11837 s/.*/./; q'` | |
11838 as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
11839 # echo "creating $dirpart/$file" | |
11840 echo '# dummy' > "$dirpart/$file" | |
11841 done | |
11842 done | |
11843 } | |
11844 ;; | |
11845 "libtool":C) | |
11846 | |
11847 # See if we are running on zsh, and set the options which allow our | |
11848 # commands through without removal of \ escapes. | |
11849 if test -n "${ZSH_VERSION+set}" ; then | |
11850 setopt NO_GLOB_SUBST | |
11851 fi | |
11852 | |
11853 cfgfile="${ofile}T" | |
11854 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
11855 $RM "$cfgfile" | |
11856 | |
11857 cat <<_LT_EOF >> "$cfgfile" | |
11858 #! $SHELL | |
11859 | |
11860 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
11861 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
11862 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
11863 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
11864 # | |
11865 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
11866 # 2006, 2007, 2008 Free Software Foundation, Inc. | |
11867 # Written by Gordon Matzigkeit, 1996 | |
11868 # | |
11869 # This file is part of GNU Libtool. | |
11870 # | |
11871 # GNU Libtool is free software; you can redistribute it and/or | |
11872 # modify it under the terms of the GNU General Public License as | |
11873 # published by the Free Software Foundation; either version 2 of | |
11874 # the License, or (at your option) any later version. | |
11875 # | |
11876 # As a special exception to the GNU General Public License, | |
11877 # if you distribute this file as part of a program or library that | |
11878 # is built using GNU Libtool, you may include this file under the | |
11879 # same distribution terms that you use for the rest of that program. | |
11880 # | |
11881 # GNU Libtool is distributed in the hope that it will be useful, | |
11882 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11883 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11884 # GNU General Public License for more details. | |
11885 # | |
11886 # You should have received a copy of the GNU General Public License | |
11887 # along with GNU Libtool; see the file COPYING. If not, a copy | |
11888 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
11889 # obtained by writing to the Free Software Foundation, Inc., | |
11890 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
11891 | |
11892 | |
11893 # The names of the tagged configurations supported by this script. | |
11894 available_tags="" | |
11895 | |
11896 # ### BEGIN LIBTOOL CONFIG | |
11897 | |
11898 # Which release of libtool.m4 was used? | |
11899 macro_version=$macro_version | |
11900 macro_revision=$macro_revision | |
11901 | |
11902 # Whether or not to build shared libraries. | |
11903 build_libtool_libs=$enable_shared | |
11904 | |
11905 # Whether or not to build static libraries. | |
11906 build_old_libs=$enable_static | |
11907 | |
11908 # What type of objects to build. | |
11909 pic_mode=$pic_mode | |
11910 | |
11911 # Whether or not to optimize for fast installation. | |
11912 fast_install=$enable_fast_install | |
11913 | |
11914 # The host system. | |
11915 host_alias=$host_alias | |
11916 host=$host | |
11917 host_os=$host_os | |
11918 | |
11919 # The build system. | |
11920 build_alias=$build_alias | |
11921 build=$build | |
11922 build_os=$build_os | |
11923 | |
11924 # A sed program that does not truncate output. | |
11925 SED=$lt_SED | |
11926 | |
11927 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
11928 Xsed="\$SED -e 1s/^X//" | |
11929 | |
11930 # A grep program that handles long lines. | |
11931 GREP=$lt_GREP | |
11932 | |
11933 # An ERE matcher. | |
11934 EGREP=$lt_EGREP | |
11935 | |
11936 # A literal string matcher. | |
11937 FGREP=$lt_FGREP | |
11938 | |
11939 # A BSD- or MS-compatible name lister. | |
11940 NM=$lt_NM | |
11941 | |
11942 # Whether we need soft or hard links. | |
11943 LN_S=$lt_LN_S | |
11944 | |
11945 # What is the maximum length of a command? | |
11946 max_cmd_len=$max_cmd_len | |
11947 | |
11948 # Object file suffix (normally "o"). | |
11949 objext=$ac_objext | |
11950 | |
11951 # Executable file suffix (normally ""). | |
11952 exeext=$exeext | |
11953 | |
11954 # whether the shell understands "unset". | |
11955 lt_unset=$lt_unset | |
11956 | |
11957 # turn spaces into newlines. | |
11958 SP2NL=$lt_lt_SP2NL | |
11959 | |
11960 # turn newlines into spaces. | |
11961 NL2SP=$lt_lt_NL2SP | |
11962 | |
11963 # How to create reloadable object files. | |
11964 reload_flag=$lt_reload_flag | |
11965 reload_cmds=$lt_reload_cmds | |
11966 | |
11967 # An object symbol dumper. | |
11968 OBJDUMP=$lt_OBJDUMP | |
11969 | |
11970 # Method to check whether dependent libraries are shared objects. | |
11971 deplibs_check_method=$lt_deplibs_check_method | |
11972 | |
11973 # Command to use when deplibs_check_method == "file_magic". | |
11974 file_magic_cmd=$lt_file_magic_cmd | |
11975 | |
11976 # The archiver. | |
11977 AR=$lt_AR | |
11978 AR_FLAGS=$lt_AR_FLAGS | |
11979 | |
11980 # A symbol stripping program. | |
11981 STRIP=$lt_STRIP | |
11982 | |
11983 # Commands used to install an old-style archive. | |
11984 RANLIB=$lt_RANLIB | |
11985 old_postinstall_cmds=$lt_old_postinstall_cmds | |
11986 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
11987 | |
11988 # A C compiler. | |
11989 LTCC=$lt_CC | |
11990 | |
11991 # LTCC compiler flags. | |
11992 LTCFLAGS=$lt_CFLAGS | |
11993 | |
11994 # Take the output of nm and produce a listing of raw symbols and C names. | |
11995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
11996 | |
11997 # Transform the output of nm in a proper C declaration. | |
11998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
11999 | |
12000 # Transform the output of nm in a C name address pair. | |
12001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
12002 | |
12003 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
12004 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
12005 | |
12006 # The name of the directory that contains temporary libtool files. | |
12007 objdir=$objdir | |
12008 | |
12009 # Shell to use when invoking shell scripts. | |
12010 SHELL=$lt_SHELL | |
12011 | |
12012 # An echo program that does not interpret backslashes. | |
12013 ECHO=$lt_ECHO | |
12014 | |
12015 # Used to examine libraries when file_magic_cmd begins with "file". | |
12016 MAGIC_CMD=$MAGIC_CMD | |
12017 | |
12018 # Must we lock files when doing compilation? | |
12019 need_locks=$lt_need_locks | |
12020 | |
12021 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
12022 DSYMUTIL=$lt_DSYMUTIL | |
12023 | |
12024 # Tool to change global to local symbols on Mac OS X. | |
12025 NMEDIT=$lt_NMEDIT | |
12026 | |
12027 # Tool to manipulate fat objects and archives on Mac OS X. | |
12028 LIPO=$lt_LIPO | |
12029 | |
12030 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
12031 OTOOL=$lt_OTOOL | |
12032 | |
12033 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
12034 OTOOL64=$lt_OTOOL64 | |
12035 | |
12036 # Old archive suffix (normally "a"). | |
12037 libext=$libext | |
12038 | |
12039 # Shared library suffix (normally ".so"). | |
12040 shrext_cmds=$lt_shrext_cmds | |
12041 | |
12042 # The commands to extract the exported symbol list from a shared archive. | |
12043 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
12044 | |
12045 # Variables whose values should be saved in libtool wrapper scripts and | |
12046 # restored at link time. | |
12047 variables_saved_for_relink=$lt_variables_saved_for_relink | |
12048 | |
12049 # Do we need the "lib" prefix for modules? | |
12050 need_lib_prefix=$need_lib_prefix | |
12051 | |
12052 # Do we need a version for libraries? | |
12053 need_version=$need_version | |
12054 | |
12055 # Library versioning type. | |
12056 version_type=$version_type | |
12057 | |
12058 # Shared library runtime path variable. | |
12059 runpath_var=$runpath_var | |
12060 | |
12061 # Shared library path variable. | |
12062 shlibpath_var=$shlibpath_var | |
12063 | |
12064 # Is shlibpath searched before the hard-coded library search path? | |
12065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
12066 | |
12067 # Format of library name prefix. | |
12068 libname_spec=$lt_libname_spec | |
12069 | |
12070 # List of archive names. First name is the real one, the rest are links. | |
12071 # The last name is the one that the linker finds with -lNAME | |
12072 library_names_spec=$lt_library_names_spec | |
12073 | |
12074 # The coded name of the library, if different from the real name. | |
12075 soname_spec=$lt_soname_spec | |
12076 | |
12077 # Command to use after installation of a shared archive. | |
12078 postinstall_cmds=$lt_postinstall_cmds | |
12079 | |
12080 # Command to use after uninstallation of a shared archive. | |
12081 postuninstall_cmds=$lt_postuninstall_cmds | |
12082 | |
12083 # Commands used to finish a libtool library installation in a directory. | |
12084 finish_cmds=$lt_finish_cmds | |
12085 | |
12086 # As "finish_cmds", except a single script fragment to be evaled but | |
12087 # not shown. | |
12088 finish_eval=$lt_finish_eval | |
12089 | |
12090 # Whether we should hardcode library paths into libraries. | |
12091 hardcode_into_libs=$hardcode_into_libs | |
12092 | |
12093 # Compile-time system search path for libraries. | |
12094 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
12095 | |
12096 # Run-time system search path for libraries. | |
12097 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
12098 | |
12099 # Whether dlopen is supported. | |
12100 dlopen_support=$enable_dlopen | |
12101 | |
12102 # Whether dlopen of programs is supported. | |
12103 dlopen_self=$enable_dlopen_self | |
12104 | |
12105 # Whether dlopen of statically linked programs is supported. | |
12106 dlopen_self_static=$enable_dlopen_self_static | |
12107 | |
12108 # Commands to strip libraries. | |
12109 old_striplib=$lt_old_striplib | |
12110 striplib=$lt_striplib | |
12111 | |
12112 | |
12113 # The linker used to build libraries. | |
12114 LD=$lt_LD | |
12115 | |
12116 # Commands used to build an old-style archive. | |
12117 old_archive_cmds=$lt_old_archive_cmds | |
12118 | |
12119 # A language specific compiler. | |
12120 CC=$lt_compiler | |
12121 | |
12122 # Is the compiler the GNU compiler? | |
12123 with_gcc=$GCC | |
12124 | |
12125 # Compiler flag to turn off builtin functions. | |
12126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
12127 | |
12128 # How to pass a linker flag through the compiler. | |
12129 wl=$lt_lt_prog_compiler_wl | |
12130 | |
12131 # Additional compiler flags for building library objects. | |
12132 pic_flag=$lt_lt_prog_compiler_pic | |
12133 | |
12134 # Compiler flag to prevent dynamic linking. | |
12135 link_static_flag=$lt_lt_prog_compiler_static | |
12136 | |
12137 # Does compiler simultaneously support -c and -o options? | |
12138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
12139 | |
12140 # Whether or not to add -lc for building shared libraries. | |
12141 build_libtool_need_lc=$archive_cmds_need_lc | |
12142 | |
12143 # Whether or not to disallow shared libs when runtime libs are static. | |
12144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
12145 | |
12146 # Compiler flag to allow reflexive dlopens. | |
12147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
12148 | |
12149 # Compiler flag to generate shared objects directly from archives. | |
12150 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
12151 | |
12152 # Whether the compiler copes with passing no objects directly. | |
12153 compiler_needs_object=$lt_compiler_needs_object | |
12154 | |
12155 # Create an old-style archive from a shared archive. | |
12156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
12157 | |
12158 # Create a temporary old-style archive to link instead of a shared archive. | |
12159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
12160 | |
12161 # Commands used to build a shared archive. | |
12162 archive_cmds=$lt_archive_cmds | |
12163 archive_expsym_cmds=$lt_archive_expsym_cmds | |
12164 | |
12165 # Commands used to build a loadable module if different from building | |
12166 # a shared archive. | |
12167 module_cmds=$lt_module_cmds | |
12168 module_expsym_cmds=$lt_module_expsym_cmds | |
12169 | |
12170 # Whether we are building with GNU ld or not. | |
12171 with_gnu_ld=$lt_with_gnu_ld | |
12172 | |
12173 # Flag that allows shared libraries with undefined symbols to be built. | |
12174 allow_undefined_flag=$lt_allow_undefined_flag | |
12175 | |
12176 # Flag that enforces no undefined symbols. | |
12177 no_undefined_flag=$lt_no_undefined_flag | |
12178 | |
12179 # Flag to hardcode \$libdir into a binary during linking. | |
12180 # This must work even if \$libdir does not exist | |
12181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
12182 | |
12183 # If ld is used when linking, flag to hardcode \$libdir into a binary | |
12184 # during linking. This must work even if \$libdir does not exist. | |
12185 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
12186 | |
12187 # Whether we need a single "-rpath" flag with a separated argument. | |
12188 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
12189 | |
12190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
12191 # DIR into the resulting binary. | |
12192 hardcode_direct=$hardcode_direct | |
12193 | |
12194 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
12195 # DIR into the resulting binary and the resulting library dependency is | |
12196 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
12197 # library is relocated. | |
12198 hardcode_direct_absolute=$hardcode_direct_absolute | |
12199 | |
12200 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
12201 # into the resulting binary. | |
12202 hardcode_minus_L=$hardcode_minus_L | |
12203 | |
12204 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
12205 # into the resulting binary. | |
12206 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
12207 | |
12208 # Set to "yes" if building a shared library automatically hardcodes DIR | |
12209 # into the library and all subsequent libraries and executables linked | |
12210 # against it. | |
12211 hardcode_automatic=$hardcode_automatic | |
12212 | |
12213 # Set to yes if linker adds runtime paths of dependent libraries | |
12214 # to runtime path list. | |
12215 inherit_rpath=$inherit_rpath | |
12216 | |
12217 # Whether libtool must link a program against all its dependency libraries. | |
12218 link_all_deplibs=$link_all_deplibs | |
12219 | |
12220 # Fix the shell variable \$srcfile for the compiler. | |
12221 fix_srcfile_path=$lt_fix_srcfile_path | |
12222 | |
12223 # Set to "yes" if exported symbols are required. | |
12224 always_export_symbols=$always_export_symbols | |
12225 | |
12226 # The commands to list exported symbols. | |
12227 export_symbols_cmds=$lt_export_symbols_cmds | |
12228 | |
12229 # Symbols that should not be listed in the preloaded symbols. | |
12230 exclude_expsyms=$lt_exclude_expsyms | |
12231 | |
12232 # Symbols that must always be exported. | |
12233 include_expsyms=$lt_include_expsyms | |
12234 | |
12235 # Commands necessary for linking programs (against libraries) with templates. | |
12236 prelink_cmds=$lt_prelink_cmds | |
12237 | |
12238 # Specify filename containing input files. | |
12239 file_list_spec=$lt_file_list_spec | |
12240 | |
12241 # How to hardcode a shared library path into an executable. | |
12242 hardcode_action=$hardcode_action | |
12243 | |
12244 # ### END LIBTOOL CONFIG | |
12245 | |
12246 _LT_EOF | |
12247 | |
12248 case $host_os in | |
12249 aix3*) | |
12250 cat <<\_LT_EOF >> "$cfgfile" | |
12251 # AIX sometimes has problems with the GCC collect2 program. For some | |
12252 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
12253 # vanish in a puff of smoke. | |
12254 if test "X${COLLECT_NAMES+set}" != Xset; then | |
12255 COLLECT_NAMES= | |
12256 export COLLECT_NAMES | |
12257 fi | |
12258 _LT_EOF | |
12259 ;; | |
12260 esac | |
12261 | |
12262 | |
12263 ltmain="$ac_aux_dir/ltmain.sh" | |
12264 | |
12265 | |
12266 # We use sed instead of cat because bash on DJGPP gets confused if | |
12267 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
12268 # text mode, it properly converts lines to CR/LF. This bash problem | |
12269 # is reportedly fixed, but why not run on old versions too? | |
12270 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
12271 || (rm -f "$cfgfile"; exit 1) | |
12272 | |
12273 case $xsi_shell in | |
12274 yes) | |
12275 cat << \_LT_EOF >> "$cfgfile" | |
12276 | |
12277 # func_dirname file append nondir_replacement | |
12278 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
12279 # otherwise set result to NONDIR_REPLACEMENT. | |
12280 func_dirname () | |
12281 { | |
12282 case ${1} in | |
12283 */*) func_dirname_result="${1%/*}${2}" ;; | |
12284 * ) func_dirname_result="${3}" ;; | |
12285 esac | |
12286 } | |
12287 | |
12288 # func_basename file | |
12289 func_basename () | |
12290 { | |
12291 func_basename_result="${1##*/}" | |
12292 } | |
12293 | |
12294 # func_dirname_and_basename file append nondir_replacement | |
12295 # perform func_basename and func_dirname in a single function | |
12296 # call: | |
12297 # dirname: Compute the dirname of FILE. If nonempty, | |
12298 # add APPEND to the result, otherwise set result | |
12299 # to NONDIR_REPLACEMENT. | |
12300 # value returned in "$func_dirname_result" | |
12301 # basename: Compute filename of FILE. | |
12302 # value retuned in "$func_basename_result" | |
12303 # Implementation must be kept synchronized with func_dirname | |
12304 # and func_basename. For efficiency, we do not delegate to | |
12305 # those functions but instead duplicate the functionality here. | |
12306 func_dirname_and_basename () | |
12307 { | |
12308 case ${1} in | |
12309 */*) func_dirname_result="${1%/*}${2}" ;; | |
12310 * ) func_dirname_result="${3}" ;; | |
12311 esac | |
12312 func_basename_result="${1##*/}" | |
12313 } | |
12314 | |
12315 # func_stripname prefix suffix name | |
12316 # strip PREFIX and SUFFIX off of NAME. | |
12317 # PREFIX and SUFFIX must not contain globbing or regex special | |
12318 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
12319 # dot (in which case that matches only a dot). | |
12320 func_stripname () | |
12321 { | |
12322 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
12323 # positional parameters, so assign one to ordinary parameter first. | |
12324 func_stripname_result=${3} | |
12325 func_stripname_result=${func_stripname_result#"${1}"} | |
12326 func_stripname_result=${func_stripname_result%"${2}"} | |
12327 } | |
12328 | |
12329 # func_opt_split | |
12330 func_opt_split () | |
12331 { | |
12332 func_opt_split_opt=${1%%=*} | |
12333 func_opt_split_arg=${1#*=} | |
12334 } | |
12335 | |
12336 # func_lo2o object | |
12337 func_lo2o () | |
12338 { | |
12339 case ${1} in | |
12340 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
12341 *) func_lo2o_result=${1} ;; | |
12342 esac | |
12343 } | |
12344 | |
12345 # func_xform libobj-or-source | |
12346 func_xform () | |
12347 { | |
12348 func_xform_result=${1%.*}.lo | |
12349 } | |
12350 | |
12351 # func_arith arithmetic-term... | |
12352 func_arith () | |
12353 { | |
12354 func_arith_result=$(( $* )) | |
12355 } | |
12356 | |
12357 # func_len string | |
12358 # STRING may not start with a hyphen. | |
12359 func_len () | |
12360 { | |
12361 func_len_result=${#1} | |
12362 } | |
12363 | |
12364 _LT_EOF | |
12365 ;; | |
12366 *) # Bourne compatible functions. | |
12367 cat << \_LT_EOF >> "$cfgfile" | |
12368 | |
12369 # func_dirname file append nondir_replacement | |
12370 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
12371 # otherwise set result to NONDIR_REPLACEMENT. | |
12372 func_dirname () | |
12373 { | |
12374 # Extract subdirectory from the argument. | |
12375 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
12376 if test "X$func_dirname_result" = "X${1}"; then | |
12377 func_dirname_result="${3}" | |
12378 else | |
12379 func_dirname_result="$func_dirname_result${2}" | |
12380 fi | |
12381 } | |
12382 | |
12383 # func_basename file | |
12384 func_basename () | |
12385 { | |
12386 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
12387 } | |
12388 | |
12389 | |
12390 # func_stripname prefix suffix name | |
12391 # strip PREFIX and SUFFIX off of NAME. | |
12392 # PREFIX and SUFFIX must not contain globbing or regex special | |
12393 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
12394 # dot (in which case that matches only a dot). | |
12395 # func_strip_suffix prefix name | |
12396 func_stripname () | |
12397 { | |
12398 case ${2} in | |
12399 .*) func_stripname_result=`$ECHO "X${3}" \ | |
12400 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
12401 *) func_stripname_result=`$ECHO "X${3}" \ | |
12402 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
12403 esac | |
12404 } | |
12405 | |
12406 # sed scripts: | |
12407 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
12408 my_sed_long_arg='1s/^-[^=]*=//' | |
12409 | |
12410 # func_opt_split | |
12411 func_opt_split () | |
12412 { | |
12413 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
12414 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
12415 } | |
12416 | |
12417 # func_lo2o object | |
12418 func_lo2o () | |
12419 { | |
12420 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
12421 } | |
12422 | |
12423 # func_xform libobj-or-source | |
12424 func_xform () | |
12425 { | |
12426 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
12427 } | |
12428 | |
12429 # func_arith arithmetic-term... | |
12430 func_arith () | |
12431 { | |
12432 func_arith_result=`expr "$@"` | |
12433 } | |
12434 | |
12435 # func_len string | |
12436 # STRING may not start with a hyphen. | |
12437 func_len () | |
12438 { | |
12439 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
12440 } | |
12441 | |
12442 _LT_EOF | |
12443 esac | |
12444 | |
12445 case $lt_shell_append in | |
12446 yes) | |
12447 cat << \_LT_EOF >> "$cfgfile" | |
12448 | |
12449 # func_append var value | |
12450 # Append VALUE to the end of shell variable VAR. | |
12451 func_append () | |
12452 { | |
12453 eval "$1+=\$2" | |
12454 } | |
12455 _LT_EOF | |
12456 ;; | |
12457 *) | |
12458 cat << \_LT_EOF >> "$cfgfile" | |
12459 | |
12460 # func_append var value | |
12461 # Append VALUE to the end of shell variable VAR. | |
12462 func_append () | |
12463 { | |
12464 eval "$1=\$$1\$2" | |
12465 } | |
12466 | |
12467 _LT_EOF | |
12468 ;; | |
12469 esac | |
12470 | |
12471 | |
12472 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
12473 || (rm -f "$cfgfile"; exit 1) | |
12474 | |
12475 mv -f "$cfgfile" "$ofile" || | |
12476 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
12477 chmod +x "$ofile" | |
12478 | |
12479 ;; | |
2832 | 12480 |
2833 esac | 12481 esac |
2834 done # for ac_tag | 12482 done # for ac_tag |
2835 | 12483 |
2836 | 12484 |
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
2867 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 12515 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
2868 fi | 12516 fi |
2869 | 12517 |
2870 | 12518 |
2871 # show the user what the variables have been set to | |
2872 cat <<EOF | 12519 cat <<EOF |
2873 | 12520 |
2874 Ur/Web configuration: | 12521 Ur/Web configuration: |
2875 bin directory: BIN $BIN | 12522 bin directory: BIN $BIN |
2876 lib directory: LIB $LIB | 12523 lib directory: LIB $LIB |