Changeset 91329a in git
- Timestamp:
- Apr 11, 2006, 2:58:20 PM (18 years ago)
- Branches:
- (u'spielwiese', '873fc1222e995d7cb33f79d8f1792ce418c8c72c')
- Children:
- 0df49c2e400b9863057d102ed862846695394c7a
- Parents:
- 809adb522f705e1a61117c4bfcf789f6d67b80f0
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/configure
r809adb5 r91329a 4300 4300 NEED_LIBS=$LIBS 4301 4301 4302 # gmp, smallgmp,MP, MPT, factory, libfac4302 # gmp, MP, MPT, factory, libfac 4303 4303 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 4304 4304 echo "configure:4305: checking for main in -lgmp" >&5 … … 4344 4344 fi 4345 4345 4346 if test "ac_cv_lib_gmp_main" = yes && test "$with-apint" = smallgmp; then4347 LIBS=${NEED_LIBS}4348 fi4349 echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&64350 echo "configure:4351: checking for main in -lsmallgmp" >&54351 ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'`4352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then4353 echo $ac_n "(cached) $ac_c" 1>&64354 else4355 ac_save_LIBS="$LIBS"4356 LIBS="-lsmallgmp $LIBS"4357 cat > conftest.$ac_ext <<EOF4358 #line 4359 "configure"4359 #include "confdefs.h"4360 4361 int main() {4362 main()4363 ; return 0; }4364 EOF4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4366 rm -rf conftest*4367 eval "ac_cv_lib_$ac_lib_var=yes"4368 else4369 echo "configure: failed program was:" >&54370 cat conftest.$ac_ext >&54371 rm -rf conftest*4372 eval "ac_cv_lib_$ac_lib_var=no"4373 fi4374 rm -f conftest*4375 LIBS="$ac_save_LIBS"4376 4377 fi4378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then4379 echo "$ac_t""yes" 1>&64380 ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \4381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`4382 cat >> confdefs.h <<EOF4383 #define $ac_tr_lib 14384 EOF4385 4386 LIBS="-lsmallgmp $LIBS"4387 4388 else4389 echo "$ac_t""no" 1>&64390 fi4391 4392 4346 SAVE_LIBS=$LIBS 4393 4347 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 4394 echo "configure:43 95: checking for IMP_PutGmpInt in -lMP" >&54348 echo "configure:4349: checking for IMP_PutGmpInt in -lMP" >&5 4395 4349 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` 4396 4350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4400 4354 LIBS="-lMP $MP_LIBS $LIBS" 4401 4355 cat > conftest.$ac_ext <<EOF 4402 #line 4 403"configure"4356 #line 4357 "configure" 4403 4357 #include "confdefs.h" 4404 4358 /* Override any gcc2 internal prototype to avoid an error. */ … … 4411 4365 ; return 0; } 4412 4366 EOF 4413 if { (eval echo configure:4 414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4414 4368 rm -rf conftest* 4415 4369 eval "ac_cv_lib_$ac_lib_var=yes" … … 4439 4393 4440 4394 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 4441 echo "configure:4 442: checking for MPT_GetTree in -lMPT" >&54395 echo "configure:4396: checking for MPT_GetTree in -lMPT" >&5 4442 4396 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` 4443 4397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4447 4401 LIBS="-lMPT $MP_LIBS $LIBS" 4448 4402 cat > conftest.$ac_ext <<EOF 4449 #line 44 50"configure"4403 #line 4404 "configure" 4450 4404 #include "confdefs.h" 4451 4405 /* Override any gcc2 internal prototype to avoid an error. */ … … 4458 4412 ; return 0; } 4459 4413 EOF 4460 if { (eval echo configure:44 61: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4461 4415 rm -rf conftest* 4462 4416 eval "ac_cv_lib_$ac_lib_var=yes" … … 4487 4441 LIBS=$SAVE_LIBS 4488 4442 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 4489 echo "configure:44 90: checking for atof in -lsingcf" >&54443 echo "configure:4444: checking for atof in -lsingcf" >&5 4490 4444 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` 4491 4445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4495 4449 LIBS="-lsingcf $LIBS" 4496 4450 cat > conftest.$ac_ext <<EOF 4497 #line 44 98"configure"4451 #line 4452 "configure" 4498 4452 #include "confdefs.h" 4499 4453 /* Override any gcc2 internal prototype to avoid an error. */ … … 4506 4460 ; return 0; } 4507 4461 EOF 4508 if { (eval echo configure:4 509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4462 if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4509 4463 rm -rf conftest* 4510 4464 eval "ac_cv_lib_$ac_lib_var=yes" … … 4534 4488 4535 4489 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 4536 echo "configure:4 537: checking for atof in -lsingfac" >&54490 echo "configure:4491: checking for atof in -lsingfac" >&5 4537 4491 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` 4538 4492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4542 4496 LIBS="-lsingfac $LIBS" 4543 4497 cat > conftest.$ac_ext <<EOF 4544 #line 4 545"configure"4498 #line 4499 "configure" 4545 4499 #include "confdefs.h" 4546 4500 /* Override any gcc2 internal prototype to avoid an error. */ … … 4553 4507 ; return 0; } 4554 4508 EOF 4555 if { (eval echo configure:45 56: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4556 4510 rm -rf conftest* 4557 4511 eval "ac_cv_lib_$ac_lib_var=yes" … … 4581 4535 4582 4536 echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6 4583 echo "configure:45 84: checking for omTestAddr in -lomalloc" >&54537 echo "configure:4538: checking for omTestAddr in -lomalloc" >&5 4584 4538 ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'` 4585 4539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4589 4543 LIBS="-lomalloc $LIBS" 4590 4544 cat > conftest.$ac_ext <<EOF 4591 #line 45 92"configure"4545 #line 4546 "configure" 4592 4546 #include "confdefs.h" 4593 4547 /* Override any gcc2 internal prototype to avoid an error. */ … … 4600 4554 ; return 0; } 4601 4555 EOF 4602 if { (eval echo configure:4 603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4603 4557 rm -rf conftest* 4604 4558 eval "ac_cv_lib_$ac_lib_var=yes" … … 4628 4582 4629 4583 echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6 4630 echo "configure:4 631: checking for main in -lomalloc_ndebug" >&54584 echo "configure:4585: checking for main in -lomalloc_ndebug" >&5 4631 4585 ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'` 4632 4586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4636 4590 LIBS="-lomalloc_ndebug $LIBS" 4637 4591 cat > conftest.$ac_ext <<EOF 4638 #line 4 639"configure"4592 #line 4593 "configure" 4639 4593 #include "confdefs.h" 4640 4594 … … 4643 4597 ; return 0; } 4644 4598 EOF 4645 if { (eval echo configure:46 46: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4599 if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4646 4600 rm -rf conftest* 4647 4601 eval "ac_cv_lib_$ac_lib_var=yes" … … 4671 4625 4672 4626 echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6 4673 echo "configure:46 74: checking for main in -lntl" >&54627 echo "configure:4628: checking for main in -lntl" >&5 4674 4628 ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'` 4675 4629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4679 4633 LIBS="-lntl $LIBS" 4680 4634 cat > conftest.$ac_ext <<EOF 4681 #line 46 82"configure"4635 #line 4636 "configure" 4682 4636 #include "confdefs.h" 4683 4637 … … 4686 4640 ; return 0; } 4687 4641 EOF 4688 if { (eval echo configure:46 89: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4642 if { (eval echo configure:4643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4689 4643 rm -rf conftest* 4690 4644 eval "ac_cv_lib_$ac_lib_var=yes" … … 4714 4668 4715 4669 4716 for ac_hdr in gmp.h smallgmp.hMP.h MPT.h factory.h factor.h omalloc.h \4670 for ac_hdr in gmp.h MP.h MPT.h factory.h factor.h omalloc.h \ 4717 4671 omalloc.c 4718 4672 do 4719 4673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4720 4674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4721 echo "configure:4 722: checking for $ac_hdr" >&54675 echo "configure:4676: checking for $ac_hdr" >&5 4722 4676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4723 4677 echo $ac_n "(cached) $ac_c" 1>&6 4724 4678 else 4725 4679 cat > conftest.$ac_ext <<EOF 4726 #line 4 727"configure"4680 #line 4681 "configure" 4727 4681 #include "confdefs.h" 4728 4682 #include <$ac_hdr> 4729 4683 EOF 4730 4684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4731 { (eval echo configure:4 732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }4685 { (eval echo configure:4686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4732 4686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4733 4687 if test -z "$ac_err"; then … … 4761 4715 fi 4762 4716 4763 if test "$ac_cv_lib_smallgmp_main" = yes && \4764 test "$ac_cv_header_smallgmp_h" = yes && \4765 test "$ac_cv_header_gmp_h" = yes; then4766 ac_smallgmp_ok=yes4767 fi4768 4769 4717 if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \ 4770 4718 test "$ac_cv_lib_MPT_MPT_GetTree" && \ … … 4801 4749 4802 4750 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 4803 echo "configure:4 804: checking which apint package to use" >&54804 if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then4751 echo "configure:4752: checking which apint package to use" >&5 4752 if test "${with_apint}" != gmp; then 4805 4753 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 4806 4754 echo "$ac_t""gmp" 1>&6 4807 4755 will_have_gmp=yes 4808 4756 NEED_LIBS="-lgmp ${NEED_LIBS}" 4809 elif test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then4810 echo "$ac_t""smallgmp" 1>&64811 cat >> confdefs.h <<\EOF4812 #define HAVE_SMALLGMP 14813 EOF4814 4815 NEED_LIBS="-lsmallgmp ${NEED_LIBS}"4816 4757 else 4817 4758 echo "$ac_t""none" 1>&6 4818 { echo "configure: error: can not build without gmp or smallgmp" 1>&2; exit 1; }4759 { echo "configure: error: can not build without gmp" 1>&2; exit 1; } 4819 4760 fi 4820 el if test "${with_apint}" = gmp; then4761 else 4821 4762 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 4822 4763 echo "$ac_t""gmp" 1>&6 … … 4827 4768 { echo "configure: error: can not build with gmp" 1>&2; exit 1; } 4828 4769 fi 4829 else4830 if test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then4831 echo "$ac_t""smallgmp" 1>&64832 cat >> confdefs.h <<\EOF4833 #define HAVE_SMALLGMP 14834 EOF4835 4836 NEED_LIBS="-lsmallgmp ${NEED_LIBS}"4837 else4838 echo "$ac_t""none" 1>&64839 { echo "configure: error: can not build with smallgmp" 1>&2; exit 1; }4840 fi4841 4770 fi 4842 4771 4843 4772 # 4844 4773 echo $ac_n "checking whether to have MP""... $ac_c" 1>&6 4845 echo "configure:4 846: checking whether to have MP" >&54774 echo "configure:4775: checking whether to have MP" >&5 4846 4775 if test "${with_MP}" != yes && test "${with_MP}" != no; then 4847 4776 if (test "${will_have_gmp}" = yes) && \ … … 4878 4807 4879 4808 echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6 4880 echo "configure:48 81: checking whether to have NTL" >&54809 echo "configure:4810: checking whether to have NTL" >&5 4881 4810 if test "${with_NTL}" = yes ; then 4882 4811 echo "$ac_t""yes" 1>&6 … … 4887 4816 4888 4817 echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 4889 echo "configure:48 90: checking whether to have factory" >&54818 echo "configure:4819: checking whether to have factory" >&5 4890 4819 if test "${with_factory}" != yes && test "${with_factory}" != no; then 4891 4820 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then … … 4918 4847 4919 4848 echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 4920 echo "configure:4 921: checking whether to have libfac" >&54849 echo "configure:4850: checking whether to have libfac" >&5 4921 4850 if test "${with_libfac}" != yes && test "${with_libfac}" != no; then 4922 4851 if (test "${will_have_factory}" = yes) && \ … … 4952 4881 4953 4882 echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 4954 echo "configure:4 955: checking whether to have dbm links" >&54883 echo "configure:4884: checking whether to have dbm links" >&5 4955 4884 if test "$with_dbm" != no; then 4956 4885 cat >> confdefs.h <<\EOF … … 4964 4893 4965 4894 echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6 4966 echo "configure:4 967: checking whether to have namespaces" >&54895 echo "configure:4896: checking whether to have namespaces" >&5 4967 4896 if test "$with_namespaces" != no; then 4968 4897 echo "$ac_t""yes" 1>&6 … … 4976 4905 4977 4906 echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6 4978 echo "configure:49 79: checking whether to have dynamic modules" >&54907 echo "configure:4908: checking whether to have dynamic modules" >&5 4979 4908 if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then 4980 4909 echo "$ac_t""no" 1>&6 … … 4988 4917 4989 4918 echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6 4990 echo "configure:49 91: checking whether to have dynamic kernel" >&54919 echo "configure:4920: checking whether to have dynamic kernel" >&5 4991 4920 if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then 4992 4921 DL_KERNEL=1 … … 4998 4927 4999 4928 echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6 5000 echo "configure: 5001: checking whether to have Plural" >&54929 echo "configure:4930: checking whether to have Plural" >&5 5001 4930 if test "$with_Plural" != yes && test "$enable_Plural" != yes; then 5002 4931 echo "$ac_t""no" 1>&6 -
Singular/configure.in
r809adb5 r91329a 669 669 NEED_LIBS=$LIBS 670 670 671 # gmp, smallgmp,MP, MPT, factory, libfac671 # gmp, MP, MPT, factory, libfac 672 672 AC_CHECK_LIB(gmp, main) 673 if test "ac_cv_lib_gmp_main" = yes && test "$with-apint" = smallgmp; then674 LIBS=${NEED_LIBS}675 fi676 AC_CHECK_LIB(smallgmp, main)677 673 SAVE_LIBS=$LIBS 678 674 AC_CHECK_LIB(MP, IMP_PutGmpInt,,,$MP_LIBS) … … 685 681 AC_CHECK_LIB(ntl,main) 686 682 687 AC_CHECK_HEADERS(gmp.h smallgmp.hMP.h MPT.h factory.h factor.h omalloc.h \683 AC_CHECK_HEADERS(gmp.h MP.h MPT.h factory.h factor.h omalloc.h \ 688 684 omalloc.c) 689 685 … … 691 687 test "$ac_cv_header_gmp_h" = yes; then 692 688 ac_gmp_ok=yes 693 fi694 695 if test "$ac_cv_lib_smallgmp_main" = yes && \696 test "$ac_cv_header_smallgmp_h" = yes && \697 test "$ac_cv_header_gmp_h" = yes; then698 ac_smallgmp_ok=yes699 689 fi 700 690 … … 736 726 737 727 AC_MSG_CHECKING(which apint package to use) 738 if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then728 if test "${with_apint}" != gmp; then 739 729 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 740 730 AC_MSG_RESULT(gmp) 741 731 will_have_gmp=yes 742 732 NEED_LIBS="-lgmp ${NEED_LIBS}" 743 elif test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then744 AC_MSG_RESULT(smallgmp)745 AC_DEFINE(HAVE_SMALLGMP)746 NEED_LIBS="-lsmallgmp ${NEED_LIBS}"747 733 else 748 734 AC_MSG_RESULT(none) 749 AC_MSG_ERROR(can not build without gmp or smallgmp)750 fi 751 el if test "${with_apint}" = gmp; then735 AC_MSG_ERROR(can not build without gmp) 736 fi 737 else 752 738 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 753 739 AC_MSG_RESULT(gmp) … … 757 743 AC_MSG_RESULT(none) 758 744 AC_MSG_ERROR(can not build with gmp) 759 fi760 else761 if test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then762 AC_MSG_RESULT(smallgmp)763 AC_DEFINE(HAVE_SMALLGMP)764 NEED_LIBS="-lsmallgmp ${NEED_LIBS}"765 else766 AC_MSG_RESULT(none)767 AC_MSG_ERROR(can not build with smallgmp)768 745 fi 769 746 fi
Note: See TracChangeset
for help on using the changeset viewer.