Mercurial > hg > octave-nkf
comparison configure.in @ 5451:ed08548b9054
[project @ 2005-09-15 19:52:50 by jwe]
author | jwe |
---|---|
date | Thu, 15 Sep 2005 19:52:50 +0000 |
parents | 98173cfac509 |
children | d6163c0effd5 |
comparison
equal
deleted
inserted
replaced
5450:6b42c78c77d3 | 5451:ed08548b9054 |
---|---|
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.480 $) | 32 AC_REVISION($Revision: 1.481 $) |
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.]) |
41 AC_GNU_SOURCE | 41 AC_GNU_SOURCE |
42 | 42 |
43 AC_AIX | 43 AC_AIX |
44 AC_MINIX | 44 AC_MINIX |
45 AC_ISC_POSIX | 45 AC_ISC_POSIX |
46 | |
47 ### Path separator. | |
48 sepchar=: | |
49 AC_ARG_WITH(sepchar, | |
50 [AC_HELP_STRING([--with-sepchar=<char>], | |
51 [use <char> as the path separation character])]) | |
52 case $with_sepchar in | |
53 yes | "") | |
54 case "$canonical_host_type" in | |
55 *-*-mingw*) | |
56 sepchar=';' | |
57 ;; | |
58 esac | |
59 ;; | |
60 no) | |
61 AC_MSG_ERROR([You are required to define a path separation character]) | |
62 ;; | |
63 *) | |
64 sepchar=$with_sepchar | |
65 ;; | |
66 esac | |
67 AC_SUBST(sepchar) | |
68 AC_DEFINE_UNQUOTED(SEPCHAR, ['$sepchar'], [Define this to be the path separator for your system, as a character constant.]) | |
69 AC_DEFINE_UNQUOTED(SEPCHAR_STR, ["$sepchar"], [Define this to the path separator, as a string.]) | |
46 | 70 |
47 ### some defaults | 71 ### some defaults |
48 | 72 |
49 OCTAVE_SET_DEFAULT(man1dir, '$(mandir)/man1') | 73 OCTAVE_SET_DEFAULT(man1dir, '$(mandir)/man1') |
50 OCTAVE_SET_DEFAULT(man1ext, '.1') | 74 OCTAVE_SET_DEFAULT(man1ext, '.1') |
54 OCTAVE_SET_DEFAULT(localfcnfiledir, '$(datadir)/octave/site/m') | 78 OCTAVE_SET_DEFAULT(localfcnfiledir, '$(datadir)/octave/site/m') |
55 OCTAVE_SET_DEFAULT(localapifcnfiledir, | 79 OCTAVE_SET_DEFAULT(localapifcnfiledir, |
56 '$(datadir)/octave/site/$(apiversion)/m') | 80 '$(datadir)/octave/site/$(apiversion)/m') |
57 OCTAVE_SET_DEFAULT(localverfcnfiledir, '$(datadir)/octave/$(version)/site/m') | 81 OCTAVE_SET_DEFAULT(localverfcnfiledir, '$(datadir)/octave/$(version)/site/m') |
58 OCTAVE_SET_DEFAULT(localfcnfilepath, | 82 OCTAVE_SET_DEFAULT(localfcnfilepath, |
59 '$(localverfcnfiledir)//:$(localapifcnfiledir)//:$(localfcnfiledir)//') | 83 '$(localverfcnfiledir)//$(sepchar)$(localapifcnfiledir)//$(sepchar)$(localfcnfiledir)//') |
60 OCTAVE_SET_DEFAULT(octlibdir, '$(libdir)/octave-$(version)') | 84 OCTAVE_SET_DEFAULT(octlibdir, '$(libdir)/octave-$(version)') |
61 OCTAVE_SET_DEFAULT(archlibdir, | 85 OCTAVE_SET_DEFAULT(archlibdir, |
62 '$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)') | 86 '$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)') |
63 OCTAVE_SET_DEFAULT(localarchlibdir, | 87 OCTAVE_SET_DEFAULT(localarchlibdir, |
64 '$(libexecdir)/octave/site/exec/$(canonical_host_type)') | 88 '$(libexecdir)/octave/site/exec/$(canonical_host_type)') |
71 OCTAVE_SET_DEFAULT(localapioctfiledir, | 95 OCTAVE_SET_DEFAULT(localapioctfiledir, |
72 '$(libexecdir)/octave/site/oct/$(apiversion)/$(canonical_host_type)') | 96 '$(libexecdir)/octave/site/oct/$(apiversion)/$(canonical_host_type)') |
73 OCTAVE_SET_DEFAULT(localveroctfiledir, | 97 OCTAVE_SET_DEFAULT(localveroctfiledir, |
74 '$(libexecdir)/octave/$(version)/site/oct/$(canonical_host_type)') | 98 '$(libexecdir)/octave/$(version)/site/oct/$(canonical_host_type)') |
75 OCTAVE_SET_DEFAULT(localoctfilepath, | 99 OCTAVE_SET_DEFAULT(localoctfilepath, |
76 '$(localveroctfiledir)//:$(localapioctfiledir)//:$(localoctfiledir)//') | 100 '$(localveroctfiledir)//$(sepchar)$(localapioctfiledir)//$(sepchar)$(localoctfiledir)//') |
77 OCTAVE_SET_DEFAULT(fcnfilepath, | 101 OCTAVE_SET_DEFAULT(fcnfilepath, |
78 '.:$(localoctfilepath):$(localfcnfilepath):$(octfiledir)//:$(fcnfiledir)//') | 102 '.$(sepchar)$(localoctfilepath)$(sepchar)$(localfcnfilepath)$(sepchar)$(octfiledir)//$(sepchar)$(fcnfiledir)//') |
79 OCTAVE_SET_DEFAULT(imagedir, '$(datadir)/octave/$(version)/imagelib') | 103 OCTAVE_SET_DEFAULT(imagedir, '$(datadir)/octave/$(version)/imagelib') |
80 OCTAVE_SET_DEFAULT(imagepath, '.:$(imagedir)//') | 104 OCTAVE_SET_DEFAULT(imagepath, '.$(sepchar)$(imagedir)//') |
81 | 105 |
82 ### Make configure args available for other uses. | 106 ### Make configure args available for other uses. |
83 | 107 |
84 config_opts=$ac_configure_args | 108 config_opts=$ac_configure_args |
85 AC_SUBST(config_opts) | 109 AC_SUBST(config_opts) |
86 | |
87 ### Path separator. | |
88 | |
89 AC_DEFINE(SEPCHAR, [':'], Define this to be the path separator for your system, as a character constant.]) | |
90 AC_DEFINE(SEPCHAR_STR, [":"], [Define this to the path separator, as a string.]) | |
91 | 110 |
92 ### Allow the user to force us to use f2c. | 111 ### Allow the user to force us to use f2c. |
93 | 112 |
94 AC_ARG_WITH(f2c, | 113 AC_ARG_WITH(f2c, |
95 [ --with-f2c use f2c even if Fortran compiler is available], | 114 [ --with-f2c use f2c even if Fortran compiler is available], |
690 ### Checks for BLAS and LAPACK libraries: | 709 ### Checks for BLAS and LAPACK libraries: |
691 # (Build subdirectories of libcruft if they aren't found on the system.) | 710 # (Build subdirectories of libcruft if they aren't found on the system.) |
692 | 711 |
693 sinclude(acx_blas.m4) | 712 sinclude(acx_blas.m4) |
694 sinclude(acx_lapack.m4) | 713 sinclude(acx_lapack.m4) |
714 sinclude(acx_include_dirs.m4) | |
695 ACX_BLAS([], [BLAS_DIR="blas"]) | 715 ACX_BLAS([], [BLAS_DIR="blas"]) |
696 ACX_LAPACK([BLAS_LIBS="$LAPACK_LIBS $BLAS_LIBS"], [LAPACK_DIR="lapack"]) | 716 ACX_LAPACK([BLAS_LIBS="$LAPACK_LIBS $BLAS_LIBS"], [LAPACK_DIR="lapack"]) |
697 AC_SUBST(BLAS_DIR) | 717 AC_SUBST(BLAS_DIR) |
698 AC_SUBST(LAPACK_DIR) | 718 AC_SUBST(LAPACK_DIR) |
699 | 719 |
720 # Check for AMD library | |
721 AMD_LIBS= | |
722 AC_SUBST(AMD_LIBS) | |
723 AC_CHECK_LIB(amd, amd_postorder, [AMD_LIBS="-lamd"; with_amd=yes],[with_amd=no]) | |
724 | |
700 # Check for UMFPACK library. | 725 # Check for UMFPACK library. |
701 | 726 |
702 UMFPACK_LIBS= | 727 UMFPACK_LIBS= |
703 AC_SUBST(UMFPACK_LIBS) | 728 AC_SUBST(UMFPACK_LIBS) |
729 UMFPACK_INCLUDE=umfpack.h | |
730 AC_SUBST(UMFPACK_INCLUDE) | |
704 | 731 |
705 AC_ARG_WITH(umfpack, | 732 AC_ARG_WITH(umfpack, |
706 [ --without-umfpack don't use UMFPACK, disable some sparse functionality], | 733 [ --without-umfpack don't use UMFPACK, disable some sparse functionality], |
707 with_umfpack=$withval, with_umfpack=yes) | 734 with_umfpack=$withval, with_umfpack=yes) |
708 | 735 |
709 if test "$with_umfpack" = "yes"; then | 736 if test "$with_umfpack" = "yes" && test "$with_amd" = "yes"; then |
710 have_umfpack_header=no | |
711 with_umfpack=no | 737 with_umfpack=no |
712 AC_CHECK_HEADER(umfpack/umfpack.h, [have_umfpack_header=yes; break]) | 738 ACX_CHECK_HEADER_IN_DIRS(umfpack.h, [umfpack ufsparse],[ |
713 if test "$have_umfpack_header" = yes; then | |
714 AC_CHECK_LIB(amd, amd_postorder, [ | |
715 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ | 739 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ |
716 UMFPACK_LIBS="-lumfpack -lamd"; with_umfpack=yes], [ | 740 UMFPACK_LIBS="-lumfpack"; with_umfpack=yes], [ |
717 ## Invalidate the cache. | 741 ## Invalidate the cache. |
718 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant | 742 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant |
719 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ | 743 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ |
720 UMFPACK_LIBS="-lumfpack -lamd"; with_umfpack=yes], [ | 744 UMFPACK_LIBS="-lumfpack"; with_umfpack=yes], [ |
721 | 745 |
722 ## Invalidate the cache. | 746 ## Invalidate the cache. |
723 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant | 747 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant |
724 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ | 748 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ |
725 UMFPACK_LIBS="-lumfpack -lamd -lcblas"; with_umfpack=yes], [], -lamd -lcblas $BLAS_LIBS)], -lamd $BLAS_LIBS $FLIBS)]), -lamd]) | 749 UMFPACK_LIBS="-lumfpack -lcblas"; with_umfpack=yes], [], $AMD_LIBS -lcblas $BLAS_LIBS)], $AMD_LIBS $BLAS_LIBS $FLIBS)], $AMD_LIBS) |
750 | |
726 if test "$with_umfpack" = yes; then | 751 if test "$with_umfpack" = yes; then |
727 # For now the code needed for this is not in umfpack, will add | 752 # For now the code needed for this is not in umfpack, will add |
728 # a test later that will probably have to be based on version | 753 # a test later that will probably have to be based on version |
729 # numbers as there is no interface changes that are visible at | 754 # numbers as there is no interface changes that are visible at |
730 # compile time. | 755 # compile time. |
731 with_umfpack_split=no | 756 with_umfpack_split=no |
732 fi | 757 fi |
733 fi | 758 |
734 fi | 759 if test "$with_umfpack" = yes; then |
735 | 760 AC_DEFINE(HAVE_UMFPACK, 1, [Define if the UMFPACK library is used.]) |
736 if test "$with_umfpack" = yes; then | 761 if test x"$acx_include_dir" != x; then |
737 AC_DEFINE(HAVE_UMFPACK, 1, [Define if the UMFPACK library is used.]) | 762 UMFPACK_INCLUDE=$acx_include_dir/umfpack.h |
738 if test "$with_umfpack_split" = yes; then | 763 fi |
739 AC_DEFINE(UMFPACK_SEPARATE_SPLIT, 1, [Define if the UMFPACK Complex solver allow matrix and RHS to be split independently]) | 764 if test "$with_umfpack_split" = yes; then |
740 fi | 765 AC_DEFINE(UMFPACK_SEPARATE_SPLIT, 1, [Define if the UMFPACK Complex solver allow matrix and RHS to be split independently]) |
741 else | 766 fi |
742 warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices." | 767 else |
743 fi | 768 warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices." |
769 fi],[ | |
770 warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices."]) | |
771 fi | |
772 | |
773 COLAMD_LIBS= | |
774 AC_SUBST(COLAMD_LIBS) | |
775 COLAMD_INCLUDE=colamd.h | |
776 AC_SUBST(COLAMD_INCLUDE) | |
777 | |
778 AC_ARG_WITH(colamd, | |
779 [ --without-colamd don't use COLAMD, disable some sparse functionality], | |
780 with_colamd=$withval, with_colamd=yes) | |
781 | |
782 if test "$with_colamd" = "yes"; then | |
783 with_colamd=no | |
784 ACX_CHECK_HEADER_IN_DIRS(colamd.h, [umfpack ufsparse],[ | |
785 AC_CHECK_LIB(colamd, colamd, [COLAMD_LIBS="-lcolamd"; with_colamd=yes]) | |
786 | |
787 if test "$with_colamd" = yes; then | |
788 if test x"$acx_include_dir" != x; then | |
789 COLAMD_INCLUDE=$acx_include_dir/colamd.h | |
790 fi | |
791 AC_DEFINE(HAVE_COLAMD, 1, [Define if the COLAMD library is used.]) | |
792 else | |
793 warn_colamd="COLAMD not found. This will result in some lack of functionality for sparse matrices." | |
794 fi],[ | |
795 warn_colamd="COLAMD not found. This will result in some lack of functionality for sparse matrices."]) | |
796 fi | |
797 | |
798 CCOLAMD_LIBS= | |
799 AC_SUBST(CCOLAMD_LIBS) | |
800 CCOLAMD_INCLUDE=ccolamd.h | |
801 AC_SUBST(CCOLAMD_INCLUDE) | |
802 | |
803 AC_ARG_WITH(ccolamd, | |
804 [ --without-ccolamd don't use CCOLAMD, disable some sparse functionality], | |
805 with_ccolamd=$withval, with_ccolamd=yes) | |
806 | |
807 if test "$with_ccolamd" = "yes"; then | |
808 with_ccolamd=no | |
809 ACX_CHECK_HEADER_IN_DIRS(ccolamd.h, [umfpack ufsparse],[ | |
810 AC_CHECK_LIB(ccolamd, ccolamd, [CCOLAMD_LIBS="-lccolamd"; with_ccolamd=yes]) | |
811 | |
812 if test "$with_ccolamd" = yes; then | |
813 if test x"$acx_include_dir" != x; then | |
814 CCOLAMD_INCLUDE=$acx_include_dir/ccolamd.h | |
815 fi | |
816 AC_DEFINE(HAVE_CCOLAMD, 1, [Define if the CCOLAMD library is used.]) | |
817 else | |
818 warn_ccolamd="CCOLAMD not found. This will result in some lack of functionality for sparse matrices." | |
819 fi],[ | |
820 warn_colamd="CCOLAMD not found. This will result in some lack of functionality for sparse matrices."]) | |
821 fi | |
822 | |
823 CHOLMOD_LIBS= | |
824 AC_SUBST(CHOLMOD_LIBS) | |
825 CHOLMOD_INCLUDE=cholmod.h | |
826 AC_SUBST(CHOLMOD_INCLUDE) | |
827 | |
828 AC_ARG_WITH(cholmod, | |
829 [ --without-cholmod don't use CHOLMOD, disable some sparse functionality], | |
830 with_cholmod=$withval, with_cholmod=yes) | |
831 | |
832 if test "$with_cholmod" = "yes" && test "$with_colamd" = "yes" && | |
833 test "$with_ccolamd" = "yes" && test "$with_amd" = "yes"; then | |
834 with_cholmod=no | |
835 ACX_CHECK_HEADER_IN_DIRS(cholmod.h, [umfpack ufsparse],[ | |
836 AC_CHECK_LIB(metis, METIS_NodeND, [ | |
837 AC_CHECK_LIB(cholmod, cholmod_start, [CHOLMOD_LIBS="-lcholmod -lmetis"; | |
838 with_cholmod=yes], [ | |
839 AC_CHECK_LIB(cholmod_start, cholmod, [CHOLMOD_LIBS="-lcholmod -cblas -lmetis"; | |
840 with_cholmod=yes], [], | |
841 AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS -lmetis)], | |
842 $AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS -lmetis)]) | |
843 | |
844 if test "$with_cholmod" = yes; then | |
845 if test x"$acx_include_dir" != x; then | |
846 CHOLMOD_INCLUDE=$acx_include_dir/cholmod.h | |
847 fi | |
848 AC_DEFINE(HAVE_CHOLMOD, 1, [Define if the CHOLMOD library is used.]) | |
849 else | |
850 warn_cholmod="CHOLMOD not found. This will result in some lack of functionality for sparse matrices." | |
851 fi],[ | |
852 warn_colamd="CHOLMOD not found. This will result in some lack of functionality for sparse matrices."]) | |
853 fi | |
744 | 854 |
745 ### Handle shared library options. | 855 ### Handle shared library options. |
746 | 856 |
747 ### Enable creation of static libraries. | 857 ### Enable creation of static libraries. |
748 | 858 |
842 NO_OCT_FILE_STRIP=true | 952 NO_OCT_FILE_STRIP=true |
843 SONAME_FLAGS='-install_name $(octlibdir)/$@' | 953 SONAME_FLAGS='-install_name $(octlibdir)/$@' |
844 library_path_var=DYLD_LIBRARY_PATH | 954 library_path_var=DYLD_LIBRARY_PATH |
845 ;; | 955 ;; |
846 *-*-cygwin* | *-*-mingw*) | 956 *-*-cygwin* | *-*-mingw*) |
957 DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" | |
847 CXXPICFLAG= | 958 CXXPICFLAG= |
848 CPICFLAG= | 959 CPICFLAG= |
849 FPICFLAG= | 960 FPICFLAG= |
850 SHLEXT=dll | 961 SHLEXT=dll |
851 SHLLIB=dll.a | 962 SHLLIB=dll.a |
988 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) | 1099 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) |
989 | 1100 |
990 case "$canonical_host_type" in | 1101 case "$canonical_host_type" in |
991 *-*-cygwin* | *-*-mingw*) | 1102 *-*-cygwin* | *-*-mingw*) |
992 AC_CHECK_LIB(wsock32, gethostname) | 1103 AC_CHECK_LIB(wsock32, gethostname) |
1104 LIBS="$LIBS -lwsock32" | |
993 ;; | 1105 ;; |
994 esac | 1106 esac |
995 | 1107 |
996 ### Type stuff. | 1108 ### Type stuff. |
997 | 1109 |
1053 | 1165 |
1054 have_termios_h=no | 1166 have_termios_h=no |
1055 AC_CHECK_HEADERS($TERMIOS_H, have_termios_h=yes) | 1167 AC_CHECK_HEADERS($TERMIOS_H, have_termios_h=yes) |
1056 AC_CHECK_HEADERS(termio.h, have_termio_h=yes, have_termio_h=no) | 1168 AC_CHECK_HEADERS(termio.h, have_termio_h=yes, have_termio_h=no) |
1057 AC_CHECK_HEADERS(sgtty.h, have_sgtty_h=yes, have_sgtty_h=no) | 1169 AC_CHECK_HEADERS(sgtty.h, have_sgtty_h=yes, have_sgtty_h=no) |
1170 AC_CHECK_HEADERS(glob.h, have_glob_h=yes, have_glob_h=no) | |
1171 AC_CHECK_HEADERS(fnmatch.h, have_fnmatch_h=yes, have_fnmatch_h=no) | |
1058 AC_CHECK_HEADERS(conio.h, have_conio_h=yes, have_conio_h=no) | 1172 AC_CHECK_HEADERS(conio.h, have_conio_h=yes, have_conio_h=no) |
1059 | 1173 |
1060 ### I'm told that termios.h is broken on NeXT systems. | 1174 ### I'm told that termios.h is broken on NeXT systems. |
1061 | 1175 |
1062 case "$canonical_host_type" in | 1176 case "$canonical_host_type" in |
1072 || test "$have_termio_h" = yes \ | 1186 || test "$have_termio_h" = yes \ |
1073 || test "$have_sgtty_h" = yes; then | 1187 || test "$have_sgtty_h" = yes; then |
1074 true | 1188 true |
1075 else | 1189 else |
1076 AC_MSG_WARN([I couldn't find termios.h, termio.h, or sgtty.h!]) | 1190 AC_MSG_WARN([I couldn't find termios.h, termio.h, or sgtty.h!]) |
1191 fi | |
1192 | |
1193 LIBGLOB= | |
1194 AC_SUBST(LIBGLOB) | |
1195 if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then | |
1196 AC_CHECK_FUNCS(fnmatch, have_fnmatch=yes, [ | |
1197 AC_CHECK_LIB(glob, fnmatch, [have_fnmatch=yes; LIBGLOB=-lglob], | |
1198 have_fnmatch=no)]) | |
1199 AC_CHECK_FUNCS(glob, have_glob=yes, [ | |
1200 AC_CHECK_LIB(glob, glob, [have_glob=yes; LIBGLOB=-lglob], | |
1201 have_glob=no)]) | |
1202 | |
1203 if test "$have_fnmatch" != yes || test "$have_glob" != yes; then | |
1204 AC_MSG_ERROR([You are required to have fnmatch and glob]) | |
1205 fi | |
1206 else | |
1207 AC_MSG_ERROR([You are required to have fnmatch.h and glob.h]) | |
1077 fi | 1208 fi |
1078 | 1209 |
1079 ### Checks for functions and variables. | 1210 ### Checks for functions and variables. |
1080 | 1211 |
1081 AC_CHECK_FUNCS(atexit basename bcopy bzero canonicalize_file_name \ | 1212 AC_CHECK_FUNCS(atexit basename bcopy bzero canonicalize_file_name \ |
1145 fi | 1276 fi |
1146 fi | 1277 fi |
1147 fi | 1278 fi |
1148 fi | 1279 fi |
1149 | 1280 |
1281 ## autoconf test for LoadLibrary appears broken. Bypass for cygwin/mingw | |
1282 if !($dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api); then | |
1283 case "$canonical_host_type" in | |
1284 *-*-cygwin* | *-*-mingw*) | |
1285 loadlibrary_api=true; | |
1286 ;; | |
1287 esac | |
1288 fi | |
1289 | |
1150 if $dlopen_api; then | 1290 if $dlopen_api; then |
1151 DL_API_MSG="(dlopen)" | 1291 DL_API_MSG="(dlopen)" |
1152 AC_DEFINE(HAVE_DLOPEN_API, 1, [Define if your system has dlopen, dlsym, dlerror, and dlclose for dynamic linking]) | 1292 AC_DEFINE(HAVE_DLOPEN_API, 1, [Define if your system has dlopen, dlsym, dlerror, and dlclose for dynamic linking]) |
1153 OCTAVE_CXX_FLAG(-rdynamic, [RDYNAMIC_FLAG=-rdynamic]) | 1293 OCTAVE_CXX_FLAG(-rdynamic, [RDYNAMIC_FLAG=-rdynamic]) |
1154 elif $shl_load_api; then | 1294 elif $shl_load_api; then |
1583 #include "oct-types.h" | 1723 #include "oct-types.h" |
1584 ]) | 1724 ]) |
1585 | 1725 |
1586 ### Do the substitutions in all the Makefiles. | 1726 ### Do the substitutions in all the Makefiles. |
1587 | 1727 |
1588 AC_CONFIG_FILES([Makefile octMakefile Makeconf \ | 1728 AC_CONFIG_FILES([Makefile octMakefile Makeconf test/Makefile \ |
1589 test/Makefile dlfcn/Makefile \ | 1729 dlfcn/Makefile doc/Makefile doc/faq/Makefile \ |
1590 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile \ | 1730 doc/interpreter/Makefile doc/liboctave/Makefile \ |
1591 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile \ | 1731 doc/refcard/Makefile emacs/Makefile examples/Makefile \ |
1592 examples/Makefile liboctave/Makefile liboctave/oct-types.h \ | 1732 liboctave/Makefile liboctave/oct-sparse.h liboctave/oct-types.h \ |
1593 src/Makefile libcruft/Makefile libcruft/Makerules \ | 1733 src/Makefile libcruft/Makefile libcruft/Makerules \ |
1594 libcruft/amos/Makefile libcruft/blas/Makefile \ | 1734 libcruft/amos/Makefile libcruft/blas/Makefile \ |
1595 libcruft/daspk/Makefile libcruft/dasrt/Makefile | 1735 libcruft/daspk/Makefile libcruft/dasrt/Makefile |
1596 libcruft/dassl/Makefile libcruft/fftpack/Makefile \ | 1736 libcruft/dassl/Makefile libcruft/fftpack/Makefile \ |
1597 libcruft/lapack/Makefile libcruft/minpack/Makefile \ | 1737 libcruft/lapack/Makefile libcruft/minpack/Makefile \ |
1624 Fortran libraries: $FLIBS | 1764 Fortran libraries: $FLIBS |
1625 BLAS libraries: $BLAS_LIBS | 1765 BLAS libraries: $BLAS_LIBS |
1626 FFTW libraries: $FFTW_LIBS | 1766 FFTW libraries: $FFTW_LIBS |
1627 GLPK libraries: $GLPK_LIBS | 1767 GLPK libraries: $GLPK_LIBS |
1628 UMFPACK libraries: $UMFPACK_LIBS | 1768 UMFPACK libraries: $UMFPACK_LIBS |
1769 COLAMD libraries: $COLAMD_LIBS | |
1770 CCOLAMD libraries: $CCOLAMD_LIBS | |
1771 CHOLMOD libraries: $CHOLMOD_LIBS | |
1629 HDF5 libraries: $HDF5_LIBS | 1772 HDF5 libraries: $HDF5_LIBS |
1630 MPI libraries: $MPI_LIBS | 1773 MPI libraries: $MPI_LIBS |
1631 LIBS: $LIBS | 1774 LIBS: $LIBS |
1632 Default pager: $DEFAULT_PAGER | 1775 Default pager: $DEFAULT_PAGER |
1633 gnuplot: $GNUPLOT_BINARY | 1776 gnuplot: $GNUPLOT_BINARY |
1712 warn_msg_printed=true | 1855 warn_msg_printed=true |
1713 fi | 1856 fi |
1714 | 1857 |
1715 if test -n "$warn_umfpack"; then | 1858 if test -n "$warn_umfpack"; then |
1716 AC_MSG_WARN($warn_umfpack) | 1859 AC_MSG_WARN($warn_umfpack) |
1860 warn_msg_printed=true | |
1861 fi | |
1862 | |
1863 if test -n "$warn_colamd"; then | |
1864 AC_MSG_WARN($warn_colamd) | |
1865 warn_msg_printed=true | |
1866 fi | |
1867 | |
1868 if test -n "$warn_ccolamd"; then | |
1869 AC_MSG_WARN($warn_ccolamd) | |
1870 warn_msg_printed=true | |
1871 fi | |
1872 | |
1873 if test -n "$warn_cholmod"; then | |
1874 AC_MSG_WARN($warn_cholmod) | |
1717 warn_msg_printed=true | 1875 warn_msg_printed=true |
1718 fi | 1876 fi |
1719 | 1877 |
1720 if test -n "$warn_hdf5"; then | 1878 if test -n "$warn_hdf5"; then |
1721 AC_MSG_WARN($warn_hdf5) | 1879 AC_MSG_WARN($warn_hdf5) |