comparison configure.in @ 3820:f0ab8a324da7

[project @ 2001-04-24 16:06:59 by jwe]
author jwe
date Tue, 24 Apr 2001 16:07:56 +0000
parents 44386b0e53da
children 1a809dae77db
comparison
equal deleted inserted replaced
3819:d1c740979382 3820:f0ab8a324da7
19 ### You should have received a copy of the GNU General Public License 19 ### You should have received a copy of the GNU General Public License
20 ### along with Octave; see the file COPYING. If not, write to the Free 20 ### along with Octave; see the file COPYING. If not, write to the Free
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA 21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 ### 02111-1307, USA. 22 ### 02111-1307, USA.
23 23
24 AC_REVISION($Revision: 1.342 $) 24 AC_REVISION($Revision: 1.343 $)
25 AC_PREREQ(2.9) 25 AC_PREREQ(2.9)
26 AC_INIT(src/octave.cc) 26 AC_INIT(src/octave.cc)
27 AC_CONFIG_HEADER(config.h) 27 AC_CONFIG_HEADER(config.h)
28 28
29 AC_DEFINE(OCTAVE_SOURCE, 1) 29 AC_DEFINE(OCTAVE_SOURCE, 1)
249 # Assume GCC. 249 # Assume GCC.
250 DEPEND_FLAGS="-M" 250 DEPEND_FLAGS="-M"
251 DEPEND_EXTRA_SED_PATTERN="" 251 DEPEND_EXTRA_SED_PATTERN=""
252 case "$canonical_host_type" in 252 case "$canonical_host_type" in
253 sparc-sun-solaris2* | i386-pc-solaris2*) 253 sparc-sun-solaris2* | i386-pc-solaris2*)
254 if test "$GCC" = "yes"; then 254 if test "$GCC" = yes; then
255 true 255 true
256 else 256 else
257 DEPEND_FLAGS="-xM1" 257 DEPEND_FLAGS="-xM1"
258 DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'" 258 DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'"
259 fi 259 fi
302 ;; 302 ;;
303 esac 303 esac
304 304
305 ### We do our own template instantiation for specific compilers. 305 ### We do our own template instantiation for specific compilers.
306 306
307 if test "$cxx_auto_instantiate_templates" = "no"; then 307 if test "$cxx_auto_instantiate_templates" = no; then
308 OCTAVE_CXX_FLAG(-fno-implicit-templates, [ 308 OCTAVE_CXX_FLAG(-fno-implicit-templates, [
309 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -fno-implicit-templates" 309 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -fno-implicit-templates"
310 AC_MSG_RESULT([adding -fno-implicit-templates to XTRA_CXXFLAGS])]) 310 AC_MSG_RESULT([adding -fno-implicit-templates to XTRA_CXXFLAGS])])
311 fi 311 fi
312 312
340 *) 340 *)
341 AC_CHECK_LIB(m, sin) 341 AC_CHECK_LIB(m, sin)
342 ;; 342 ;;
343 esac 343 esac
344 344
345 # ---------------------------------------------------------------------- 345 ### Check for HDF5 library.
346 # Check for HDF5 library 346
347 AC_ARG_WITH(hdf5, [ --without-hdf5 don't use HDF5 output], ok=$withval, ok=yes) 347 ### XXX FIXME XXX -- how can user specify a set of libraries here?
348 if test "$ok" = "yes"; then 348
349 AC_CHECK_LIB(z, deflate) 349 WITH_HDF5=true
350 AC_CHECK_LIB(hdf5, H5Pcreate, [ 350 AC_ARG_WITH(hdf5,
351 AC_CHECK_HEADERS(hdf5.h, [LIBS="-lhdf5 $LIBS" 351 [ --without-hdf5 don't use HDF5],
352 AC_DEFINE(HAVE_HDF5)])]) 352 with_hdf5=$withval, with_hdf5=yes)
353 fi 353
354 354 hdf5_lib=
355 # ---------------------------------------------------------------------- 355 if test "$with_hdf5" = yes; then
356 hdf5_lib="hdf5"
357 elif test "$with_hdf5" != no; then
358 hdf5_lib="$with_hdf5"
359 fi
360
361 HDF5_LIBS=
362 WITH_HDF5=false
363 if test -n "$hdf5_lib"; then
364 AC_CHECK_LIB($hdf5_lib, H5Pcreate, [
365 AC_CHECK_LIB(z, deflate, [
366 AC_CHECK_HEADERS(hdf5.h, [
367 WITH_HDF5=true
368 HDF5_LIBS="-l$hdf5_lib -lz"
369 LIBS="$HDF5_LIBS $LIBS"
370 AC_DEFINE(HAVE_HDF5)])])])
371 fi
356 372
357 ### We need these before trying to find libf2c. 373 ### We need these before trying to find libf2c.
358 374
359 OCTAVE_PROG_AR 375 OCTAVE_PROG_AR
360 376
529 AC_SUBST(FLIBS) 545 AC_SUBST(FLIBS)
530 AC_SUBST(F2C) 546 AC_SUBST(F2C)
531 AC_SUBST(F2CFLAGS) 547 AC_SUBST(F2CFLAGS)
532 AC_SUBST_FILE(f77_rules_frag) 548 AC_SUBST_FILE(f77_rules_frag)
533 549
534 # Checks for BLAS and LAPACK libraries: 550 ### Checks for BLAS and LAPACK libraries:
535 551
536 # subdirectories of libcruft to build if they aren't found on the system: 552 ### XXX FIXME XXX -- how can user specify a set of libraries here?
553
554 ### Subdirectories of libcruft to build if they aren't found on the system:
555
537 BLAS_DIR="blas" 556 BLAS_DIR="blas"
538 LAPACK_DIR="lapack" 557 LAPACK_DIR="lapack"
539 AC_SUBST(BLAS_DIR) 558 AC_SUBST(BLAS_DIR)
540 AC_SUBST(LAPACK_DIR) 559 AC_SUBST(LAPACK_DIR)
541 560
542 # names of Fortran dgemm & cheev functions to check for (depends upon 561 ### names of Fortran dgemm & cheev functions to check for (depends upon
543 # F77 compiler name-mangling scheme): 562 ### F77 compiler name-mangling scheme):
544 if test "$octave_cv_f77_uppercase_names" = "yes"; then 563
545 if test "$octave_cv_f77_append_underscore" = "yes"; then 564 if test "$octave_cv_f77_uppercase_names" = yes; then
565 if test "$octave_cv_f77_append_underscore" = yes; then
546 dgemm_func=DGEMM_ 566 dgemm_func=DGEMM_
547 cheev_func=CHEEV_ 567 cheev_func=CHEEV_
548 else 568 else
549 dgemm_func=DGEMM 569 dgemm_func=DGEMM
550 cheev_func=CHEEV 570 cheev_func=CHEEV
551 fi 571 fi
552 else 572 else
553 if test "$octave_cv_f77_append_underscore" = "yes" || test -n "${F2C}"; then 573 if test "$octave_cv_f77_append_underscore" = yes || test -n "${F2C}"; then
554 dgemm_func=dgemm_ 574 dgemm_func=dgemm_
555 cheev_func=cheev_ 575 cheev_func=cheev_
556 else 576 else
557 dgemm_func=dgemm 577 dgemm_func=dgemm
558 cheev_func=cheev 578 cheev_func=cheev
559 fi 579 fi
560 fi 580 fi
561 581
562 AC_ARG_WITH(fastblas, [ --without-fastblas use included (generic) BLAS and LAPACK], with_fastblas=$withval, with_fastblas=yes) 582 AC_ARG_WITH(fastblas,
563 if test "$with_fastblas" = "no"; then 583 [ --without-fastblas use included (generic) BLAS and LAPACK],
584 with_fastblas=$withval, with_fastblas=yes)
585
586 if test "$with_fastblas" = no; then
564 BLAS_LIBS=" " 587 BLAS_LIBS=" "
565 elif test "$with_fastblas" != "yes"; then 588 elif test "$with_fastblas" != yes; then
566 # user specified a BLAS library to try on the command line 589 # user specified a BLAS library to try on the command line
567 AC_CHECK_LIB($with_fastblas, $dgemm_func, 590 AC_CHECK_LIB($with_fastblas, $dgemm_func,
568 BLAS_LIBS="-l$with_fastblas", , $FLIBS) 591 BLAS_LIBS="-l$with_fastblas", , $FLIBS)
569 fi 592 fi
570 593
618 if test "x$BLAS_LIBS" = x; then 641 if test "x$BLAS_LIBS" = x; then
619 # Finally, check for the generic BLAS library: 642 # Finally, check for the generic BLAS library:
620 AC_CHECK_LIB(blas, $dgemm_func, BLAS_LIBS="-lblas", , $FLIBS) 643 AC_CHECK_LIB(blas, $dgemm_func, BLAS_LIBS="-lblas", , $FLIBS)
621 fi 644 fi
622 645
623 if test "$with_fastblas" = "no"; then 646 if test "$with_fastblas" = no; then
624 # Unset BLAS_LIBS so that we know below that nothing was found. 647 # Unset BLAS_LIBS so that we know below that nothing was found.
625 BLAS_LIBS="" 648 BLAS_LIBS=""
626 fi 649 fi
627 650
628 if test "x$BLAS_LIBS" != x; then 651 if test "x$BLAS_LIBS" != x; then
629 BLAS_DIR="" # don't build our own BLAS 652 BLAS_DIR="" # don't build our own BLAS
630 653
631 # Check for LAPACK library. Note that ATLAS has its own liblapack.a, 654 ### Check for LAPACK library. Note that ATLAS has its own liblapack.a,
632 # which is designed to be combined with the real LAPACK. cheev is a 655 ### which is designed to be combined with the real LAPACK. cheev is a
633 # function in the real LAPACK but not in ATLAS's version, so this 656 ### function in the real LAPACK but not in ATLAS's version, so this
634 # (hopefully) insures that we are getting the real LAPACK. Note also 657 ### (hopefully) insures that we are getting the real LAPACK. Note also
635 # that on some systems, LAPACK is included in the math library 658 ### that on some systems, LAPACK is included in the math library
636 # (e.g. DXML) that we already linked to above...we detect this by 659 ### (e.g. DXML) that we already linked to above...we detect this by
637 # doing AC_CHECK_FUNC if -llapack isn't found: 660 ### doing AC_CHECK_FUNC if -llapack isn't found:
638 661
639 AC_CHECK_LIB(lapack, $cheev_func, 662 AC_CHECK_LIB(lapack, $cheev_func,
640 [BLAS_LIBS="-llapack $BLAS_LIBS"; LAPACK_DIR=""], 663 [BLAS_LIBS="-llapack $BLAS_LIBS"; LAPACK_DIR=""],
641 AC_CHECK_FUNC($cheev_func, LAPACK_DIR=""), $BLAS_LIBS $FLIBS) 664 AC_CHECK_FUNC($cheev_func, LAPACK_DIR=""), $BLAS_LIBS $FLIBS)
642 fi 665 fi
792 CXXPICFLAG=-KPIC 815 CXXPICFLAG=-KPIC
793 SH_LDFLAGS=-G 816 SH_LDFLAGS=-G
794 fi 817 fi
795 RLD_FLAG='-R $(octlibdir)' 818 RLD_FLAG='-R $(octlibdir)'
796 # Template closures in archive libraries need a different mechanism. 819 # Template closures in archive libraries need a different mechanism.
797 if test "$GXX" = "yes"; then 820 if test "$GXX" = yes; then
798 true 821 true
799 else 822 else
800 TEMPLATE_AR="$CXX" 823 TEMPLATE_AR="$CXX"
801 TEMPLATE_ARFLAGS="-xar -o" 824 TEMPLATE_ARFLAGS="-xar -o"
802 fi 825 fi
1351 Installation prefix: $prefix 1374 Installation prefix: $prefix
1352 C compiler: $CC $XTRA_CFLAGS $CFLAGS 1375 C compiler: $CC $XTRA_CFLAGS $CFLAGS
1353 C++ compiler: $CXX $XTRA_CXXFLAGS $CXXFLAGS 1376 C++ compiler: $CXX $XTRA_CXXFLAGS $CXXFLAGS
1354 Fortran compiler: $FORT 1377 Fortran compiler: $FORT
1355 Fortran libraries: $FLIBS 1378 Fortran libraries: $FLIBS
1379 BLAS libraries: $BLAS_LIBS
1380 HDF5 libraries: $HDF5_LIBS
1356 Use GNU readline: $USE_READLINE 1381 Use GNU readline: $USE_READLINE
1357 Default pager: $DEFAULT_PAGER 1382 Default pager: $DEFAULT_PAGER
1358 gnuplot: $GNUPLOT_BINARY 1383 gnuplot: $GNUPLOT_BINARY
1359 1384
1360 Do internal array bounds checking: $BOUNDS_CHECKING 1385 Do internal array bounds checking: $BOUNDS_CHECKING