Mercurial > octave-nkf
comparison configure.in @ 5512:7c8767d0ffc0
[project @ 2005-10-27 02:20:17 by jwe]
author | jwe |
---|---|
date | Thu, 27 Oct 2005 02:20:17 +0000 |
parents | 7865515fc6c2 |
children | 843fa0a80229 |
comparison
equal
deleted
inserted
replaced
5511:e67d027ff4e3 | 5512:7c8767d0ffc0 |
---|---|
27 | 27 |
28 EXTERN_CFLAGS="$CFLAGS" | 28 EXTERN_CFLAGS="$CFLAGS" |
29 EXTERN_CXXFLAGS="$CXXFLAGS" | 29 EXTERN_CXXFLAGS="$CXXFLAGS" |
30 | 30 |
31 AC_INIT | 31 AC_INIT |
32 AC_REVISION($Revision: 1.488 $) | 32 AC_REVISION($Revision: 1.489 $) |
33 AC_PREREQ(2.57) | 33 AC_PREREQ(2.57) |
34 AC_CONFIG_SRCDIR([src/octave.cc]) | 34 AC_CONFIG_SRCDIR([src/octave.cc]) |
35 AC_CONFIG_HEADER(config.h) | 35 AC_CONFIG_HEADER(config.h) |
36 | 36 |
37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) | 37 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) |
739 [ --without-umfpack don't use UMFPACK, disable some sparse functionality], | 739 [ --without-umfpack don't use UMFPACK, disable some sparse functionality], |
740 with_umfpack=$withval, with_umfpack=yes) | 740 with_umfpack=$withval, with_umfpack=yes) |
741 | 741 |
742 if test "$with_umfpack" = "yes" && test "$with_amd" = "yes"; then | 742 if test "$with_umfpack" = "yes" && test "$with_amd" = "yes"; then |
743 with_umfpack=no | 743 with_umfpack=no |
744 ACX_CHECK_HEADER_IN_DIRS(umfpack.h, [umfpack ufsparse],[ | 744 AC_CHECK_HEADERS([ufsparse/umfpack.h umfpack/umfpack.h umfpack.h], [ |
745 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ | 745 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ |
746 UMFPACK_LIBS="-lumfpack"; with_umfpack=yes], [ | 746 UMFPACK_LIBS="-lumfpack"; with_umfpack=yes], [ |
747 ## Invalidate the cache. | |
748 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant | |
749 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ | |
750 UMFPACK_LIBS="-lumfpack"; with_umfpack=yes], [ | |
751 | |
747 ## Invalidate the cache. | 752 ## Invalidate the cache. |
748 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant | 753 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant |
749 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ | 754 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ |
750 UMFPACK_LIBS="-lumfpack"; with_umfpack=yes], [ | 755 UMFPACK_LIBS="-lumfpack -lcblas"; with_umfpack=yes], [], $AMD_LIBS -lcblas $BLAS_LIBS)], $AMD_LIBS $BLAS_LIBS $FLIBS)], $AMD_LIBS) |
751 | |
752 ## Invalidate the cache. | |
753 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant | |
754 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ | |
755 UMFPACK_LIBS="-lumfpack -lcblas"; with_umfpack=yes], [], $AMD_LIBS -lcblas $BLAS_LIBS)], $AMD_LIBS $BLAS_LIBS $FLIBS)], $AMD_LIBS) | |
756 | 756 |
757 if test "$with_umfpack" = yes; then | 757 if test "$with_umfpack" = yes; then |
758 AC_DEFINE(HAVE_UMFPACK, 1, [Define if the UMFPACK library is used.]) | 758 AC_DEFINE(HAVE_UMFPACK, 1, [Define if the UMFPACK library is used.]) |
759 if test x"$acx_include_dir" != x; then | 759 if test x"$acx_include_dir" != x; then |
760 UMFPACK_INCLUDE=$acx_include_dir/umfpack.h | 760 UMFPACK_INCLUDE=$acx_include_dir/umfpack.h |
763 LIBS="$LIBS $UMFPACK_LIBS $AMD_LIBS $BLAS_LIBS $FLIBS" | 763 LIBS="$LIBS $UMFPACK_LIBS $AMD_LIBS $BLAS_LIBS $FLIBS" |
764 OCTAVE_UMFPACK_SEPERATE_SPLIT | 764 OCTAVE_UMFPACK_SEPERATE_SPLIT |
765 LIBS=$OLD_LIBS | 765 LIBS=$OLD_LIBS |
766 else | 766 else |
767 warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices." | 767 warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices." |
768 fi],[ | 768 fi |
769 break], [ | |
769 warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices."]) | 770 warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices."]) |
770 fi | 771 fi |
771 | 772 |
772 COLAMD_LIBS= | 773 COLAMD_LIBS= |
773 AC_SUBST(COLAMD_LIBS) | 774 AC_SUBST(COLAMD_LIBS) |
778 [ --without-colamd don't use COLAMD, disable some sparse functionality], | 779 [ --without-colamd don't use COLAMD, disable some sparse functionality], |
779 with_colamd=$withval, with_colamd=yes) | 780 with_colamd=$withval, with_colamd=yes) |
780 | 781 |
781 if test "$with_colamd" = "yes"; then | 782 if test "$with_colamd" = "yes"; then |
782 with_colamd=no | 783 with_colamd=no |
783 ACX_CHECK_HEADER_IN_DIRS(colamd.h, [umfpack ufsparse],[ | 784 AC_CHECK_HEADERS([ufsparse/colamd.h umfpack/colamd.h colamd.h], [ |
784 AC_CHECK_LIB(colamd, colamd, [COLAMD_LIBS="-lcolamd"; with_colamd=yes]) | 785 AC_CHECK_LIB(colamd, colamd, [COLAMD_LIBS="-lcolamd"; with_colamd=yes]) |
785 | 786 |
786 if test "$with_colamd" = yes; then | 787 if test "$with_colamd" = yes; then |
787 if test x"$acx_include_dir" != x; then | 788 if test x"$acx_include_dir" != x; then |
788 COLAMD_INCLUDE=$acx_include_dir/colamd.h | 789 COLAMD_INCLUDE=$acx_include_dir/colamd.h |
789 fi | 790 fi |
790 AC_DEFINE(HAVE_COLAMD, 1, [Define if the COLAMD library is used.]) | 791 AC_DEFINE(HAVE_COLAMD, 1, [Define if the COLAMD library is used.]) |
791 else | 792 else |
792 warn_colamd="COLAMD not found. This will result in some lack of functionality for sparse matrices." | 793 warn_colamd="COLAMD not found. This will result in some lack of functionality for sparse matrices." |
793 fi],[ | 794 fi |
795 break], [ | |
794 warn_colamd="COLAMD not found. This will result in some lack of functionality for sparse matrices."]) | 796 warn_colamd="COLAMD not found. This will result in some lack of functionality for sparse matrices."]) |
795 fi | 797 fi |
796 | 798 |
797 CCOLAMD_LIBS= | 799 CCOLAMD_LIBS= |
798 AC_SUBST(CCOLAMD_LIBS) | 800 AC_SUBST(CCOLAMD_LIBS) |
803 [ --without-ccolamd don't use CCOLAMD, disable some sparse functionality], | 805 [ --without-ccolamd don't use CCOLAMD, disable some sparse functionality], |
804 with_ccolamd=$withval, with_ccolamd=yes) | 806 with_ccolamd=$withval, with_ccolamd=yes) |
805 | 807 |
806 if test "$with_ccolamd" = "yes"; then | 808 if test "$with_ccolamd" = "yes"; then |
807 with_ccolamd=no | 809 with_ccolamd=no |
808 ACX_CHECK_HEADER_IN_DIRS(ccolamd.h, [umfpack ufsparse],[ | 810 AC_CHECK_HEADERS([ufsparse/ccolamd.h umfpack/ccolamd.h ccolamd.h], [ |
809 AC_CHECK_LIB(ccolamd, ccolamd, [CCOLAMD_LIBS="-lccolamd"; with_ccolamd=yes]) | 811 AC_CHECK_LIB(ccolamd, ccolamd, [CCOLAMD_LIBS="-lccolamd"; with_ccolamd=yes]) |
810 | 812 |
811 if test "$with_ccolamd" = yes; then | 813 if test "$with_ccolamd" = yes; then |
812 if test x"$acx_include_dir" != x; then | 814 if test x"$acx_include_dir" != x; then |
813 CCOLAMD_INCLUDE=$acx_include_dir/ccolamd.h | 815 CCOLAMD_INCLUDE=$acx_include_dir/ccolamd.h |
814 fi | 816 fi |
815 AC_DEFINE(HAVE_CCOLAMD, 1, [Define if the CCOLAMD library is used.]) | 817 AC_DEFINE(HAVE_CCOLAMD, 1, [Define if the CCOLAMD library is used.]) |
816 else | 818 else |
817 warn_ccolamd="CCOLAMD not found. This will result in some lack of functionality for sparse matrices." | 819 warn_ccolamd="CCOLAMD not found. This will result in some lack of functionality for sparse matrices." |
818 fi],[ | 820 fi |
821 break], [ | |
819 warn_colamd="CCOLAMD not found. This will result in some lack of functionality for sparse matrices."]) | 822 warn_colamd="CCOLAMD not found. This will result in some lack of functionality for sparse matrices."]) |
820 fi | 823 fi |
821 | 824 |
822 CHOLMOD_LIBS= | 825 CHOLMOD_LIBS= |
823 AC_SUBST(CHOLMOD_LIBS) | 826 AC_SUBST(CHOLMOD_LIBS) |
831 with_cholmod=$withval, with_cholmod=yes) | 834 with_cholmod=$withval, with_cholmod=yes) |
832 | 835 |
833 if test "$with_cholmod" = "yes" && test "$with_colamd" = "yes" && | 836 if test "$with_cholmod" = "yes" && test "$with_colamd" = "yes" && |
834 test "$with_ccolamd" = "yes" && test "$with_amd" = "yes"; then | 837 test "$with_ccolamd" = "yes" && test "$with_amd" = "yes"; then |
835 with_cholmod=no | 838 with_cholmod=no |
836 ACX_CHECK_HEADER_IN_DIRS(cholmod.h, [umfpack ufsparse],[ | 839 AC_CHECK_HEADERS([ufsparse/cholmod.h umfpack/cholmod.h cholmod.h], [ |
837 if test x"$acx_include_dir" != x; then | 840 if test x"$acx_include_dir" != x; then |
838 CHOLMOD_INCLUDE=$acx_include_dir/cholmod.h | 841 CHOLMOD_INCLUDE=$acx_include_dir/cholmod.h |
839 fi | 842 fi |
840 | 843 |
841 ACX_CHECK_HEADER_IN_DIRS(metis.h, [metis umfpack ufsparse],[ | 844 AC_CHECK_HEADERS([metis/metis.h ufsparse/metis.h umfpack/metis.h metis.h], [ |
842 AC_CHECK_LIB(metis, METIS_NodeND, with_metis=yes, with_metis=no)], | 845 AC_CHECK_LIB(metis, METIS_NodeND, with_metis=yes, with_metis=no) |
846 break], | |
843 with_metis=no) | 847 with_metis=no) |
844 | 848 |
845 if test "$with_metis" = yes; then | 849 if test "$with_metis" = yes; then |
846 if test x"$acx_include_dir" != x; then | 850 if test x"$acx_include_dir" != x; then |
847 METIS_INCLUDE=$acx_include_dir/metis.h | 851 METIS_INCLUDE=$acx_include_dir/metis.h |
864 | 868 |
865 if test "$with_cholmod" = yes; then | 869 if test "$with_cholmod" = yes; then |
866 AC_DEFINE(HAVE_CHOLMOD, 1, [Define if the CHOLMOD library is used.]) | 870 AC_DEFINE(HAVE_CHOLMOD, 1, [Define if the CHOLMOD library is used.]) |
867 else | 871 else |
868 warn_cholmod="CHOLMOD not found. This will result in some lack of functionality for sparse matrices." | 872 warn_cholmod="CHOLMOD not found. This will result in some lack of functionality for sparse matrices." |
869 fi],[ | 873 fi |
874 break], [ | |
870 warn_colamd="CHOLMOD not found. This will result in some lack of functionality for sparse matrices."]) | 875 warn_colamd="CHOLMOD not found. This will result in some lack of functionality for sparse matrices."]) |
871 fi | 876 fi |
872 | 877 |
873 ### Handle shared library options. | 878 ### Handle shared library options. |
874 | 879 |
1750 | 1755 |
1751 AC_CONFIG_FILES([Makefile octMakefile Makeconf test/Makefile \ | 1756 AC_CONFIG_FILES([Makefile octMakefile Makeconf test/Makefile \ |
1752 dlfcn/Makefile doc/Makefile doc/faq/Makefile \ | 1757 dlfcn/Makefile doc/Makefile doc/faq/Makefile \ |
1753 doc/interpreter/Makefile doc/liboctave/Makefile \ | 1758 doc/interpreter/Makefile doc/liboctave/Makefile \ |
1754 doc/refcard/Makefile emacs/Makefile examples/Makefile \ | 1759 doc/refcard/Makefile emacs/Makefile examples/Makefile \ |
1755 liboctave/Makefile liboctave/oct-sparse.h liboctave/oct-types.h \ | 1760 liboctave/Makefile liboctave/oct-types.h \ |
1756 src/Makefile libcruft/Makefile libcruft/Makerules \ | 1761 src/Makefile libcruft/Makefile libcruft/Makerules \ |
1757 libcruft/amos/Makefile libcruft/blas/Makefile \ | 1762 libcruft/amos/Makefile libcruft/blas/Makefile \ |
1758 libcruft/daspk/Makefile libcruft/dasrt/Makefile | 1763 libcruft/daspk/Makefile libcruft/dasrt/Makefile |
1759 libcruft/dassl/Makefile libcruft/fftpack/Makefile \ | 1764 libcruft/dassl/Makefile libcruft/fftpack/Makefile \ |
1760 libcruft/lapack/Makefile libcruft/minpack/Makefile \ | 1765 libcruft/lapack/Makefile libcruft/minpack/Makefile \ |