Changeset 12064
- Timestamp:
- 04/20/12 07:48:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/m4/issm_options.m4
r12058 r12064 76 76 dnl 1. See if matlab has been provided 77 77 AC_ARG_WITH([matlab-dir], 78 AS_HELP_STRING([--with-matlab-dir =DIR], [matlab root directory. necessary for serial build.]),78 AS_HELP_STRING([--with-matlab-dir=DIR], [matlab root directory. necessary for serial build.]), 79 79 [MATLAB_ROOT=$withval],[MATLAB_ROOT=""]) 80 80 81 AC_MSG_CHECKING([w ether Matlab is enabled])81 AC_MSG_CHECKING([whether matlab is enabled]) 82 82 if test -d "$MATLAB_ROOT"; then 83 83 HAVE_MATLAB=yes … … 93 93 dnl 2. if matlab is provided, get version number 94 94 if test x$HAVE_MATLAB = xyes; then 95 AC_MSG_CHECKING([for Matlab version])95 AC_MSG_CHECKING([for matlab version]) 96 96 MATLAB_VERSION="" 97 97 … … 156 156 157 157 dnl 3. Get Matlab libraries 158 AC_MSG_CHECKING(for Matlab headers and libraries in $MATLAB_ROOT)158 AC_MSG_CHECKING(for matlab headers and libraries in $MATLAB_ROOT) 159 159 MATLABINCL=-I"$MATLAB_ROOT/extern/include"; 160 160 … … 209 209 dnl triangle {{{ 210 210 AC_ARG_WITH([triangle-dir], 211 AS_HELP_STRING([--with-triangle-dir =DIR], [triangle root directory. necessary for serial build]),211 AS_HELP_STRING([--with-triangle-dir=DIR], [triangle root directory. necessary for serial build]), 212 212 [TRIANGLE_ROOT=$withval],[TRIANGLE_ROOT=""]) 213 AC_MSG_CHECKING(for Triangle headers and libraries)213 AC_MSG_CHECKING(for triangle headers and libraries) 214 214 215 215 if test -d "$TRIANGLE_ROOT"; then … … 250 250 dnl dakota{{{ 251 251 AC_ARG_WITH([dakota-dir], 252 AS_HELP_STRING([--with-dakota-dir =DIR], [dakota root directory. necessary for serial build]),252 AS_HELP_STRING([--with-dakota-dir=DIR], [dakota root directory. necessary for serial build]), 253 253 [DAKOTA_ROOT=$withval],[DAKOTA_ROOT=""]) 254 AC_MSG_CHECKING(for Dakota)254 AC_MSG_CHECKING(for dakota) 255 255 256 256 if test -d "$DAKOTA_ROOT"; then … … 283 283 dnl boost{{{ 284 284 AC_ARG_WITH([boost-dir], 285 AS_HELP_STRING([--with-boost-dir =DIR], [boost root directory.]),285 AS_HELP_STRING([--with-boost-dir=DIR], [boost root directory.]), 286 286 [BOOST_ROOT=$withval],[BOOST_ROOT=""]) 287 AC_MSG_CHECKING(for Boost)287 AC_MSG_CHECKING(for boost) 288 288 289 289 if test -d "$BOOST_ROOT"; then … … 304 304 dnl python{{{ 305 305 AC_ARG_WITH([python-dir], 306 AS_HELP_STRING([--with-python-dir =DIR], [python root directory.]),306 AS_HELP_STRING([--with-python-dir=DIR], [python root directory.]), 307 307 [PYTHON_ROOT=$withval],[PYTHON_ROOT=""]) 308 AC_MSG_CHECKING(for Python)308 AC_MSG_CHECKING(for python) 309 309 310 310 if test -d "$PYTHON_ROOT"; then … … 328 328 AC_MSG_RESULT($HAVE_PYTHON) 329 329 dnl }}} 330 dnl python-version{{{ 331 AC_ARG_WITH([python-version], 332 AS_HELP_STRING([--with-python-version = PYTHONVERSION],[python version.]), 333 [PYTHONVERSION=$withval],[PYTHONVERSION=""]) 334 AC_MSG_CHECKING(for python version) 335 336 HAVE_PYTHON3="no" 337 338 dnl recover major: 339 PYTHON_MAJOR=${PYTHONVERSION%.*} 340 341 if test x$PYTHON_MAJOR = x3; then 342 dnl are we running python 3? 343 HAVE_PYTHON3="yes" 344 fi 345 346 AM_CONDITIONAL([PYTHON3], [test x$HAVE_PYTHON3 = xyes]) 347 AC_MSG_RESULT($PYTHON_MAJOR) 348 dnl }}} 330 349 dnl python-numpy{{{ 331 350 AC_ARG_WITH([python-numpy-dir], 332 AS_HELP_STRING([--with-python-numpy-dir =DIR], [python-numpy root directory.]),351 AS_HELP_STRING([--with-python-numpy-dir=DIR], [python-numpy root directory.]), 333 352 [PYTHON_NUMPY_ROOT=$withval],[PYTHON_NUMPY_ROOT=""]) 334 AC_MSG_CHECKING(for Python-Numpy)353 AC_MSG_CHECKING(for python-numpy) 335 354 336 355 if test -d "$PYTHON_NUMPY_ROOT"; then … … 348 367 dnl chaco{{{ 349 368 AC_ARG_WITH([chaco-dir], 350 AS_HELP_STRING([--with-chaco-dir =DIR], [chaco root directory.]),369 AS_HELP_STRING([--with-chaco-dir=DIR], [chaco root directory.]), 351 370 [CHACO_ROOT=$withval],[CHACO_ROOT=""]) 352 AC_MSG_CHECKING(for Chaco)371 AC_MSG_CHECKING(for chaco) 353 372 354 373 if test -d "$CHACO_ROOT"; then … … 370 389 dnl scotch{{{ 371 390 AC_ARG_WITH([scotch-dir], 372 AS_HELP_STRING([--with-scotch-dir =DIR], [scotch root directory.]),391 AS_HELP_STRING([--with-scotch-dir=DIR], [scotch root directory.]), 373 392 [SCOTCH_ROOT=$withval],[SCOTCH_ROOT=""]) 374 AC_MSG_CHECKING(for Scotch)393 AC_MSG_CHECKING(for scotch) 375 394 376 395 if test -d "$SCOTCH_ROOT"; then … … 392 411 dnl adolc{{{ 393 412 AC_ARG_WITH([adolc-dir], 394 AS_HELP_STRING([--with-adolc-dir =DIR], [adolc root directory.]),413 AS_HELP_STRING([--with-adolc-dir=DIR], [adolc root directory.]), 395 414 [ADOLC_ROOT=$withval],[ADOLC_ROOT="no"]) 396 AC_MSG_CHECKING(for ADOLC)415 AC_MSG_CHECKING(for adolc) 397 416 398 417 if test "x$ADOLC_ROOT" = "xno"; then … … 420 439 dnl adic2{{{ 421 440 AC_ARG_WITH([adic2-dir], 422 AS_HELP_STRING([--with-adic2-dir =DIR], [adic2 root directory.]),441 AS_HELP_STRING([--with-adic2-dir=DIR], [adic2 root directory.]), 423 442 [ADIC2_ROOT=$withval],[ADIC2_ROOT="no"]) 424 AC_MSG_CHECKING(for ADIC2)443 AC_MSG_CHECKING(for adic2) 425 444 426 445 if test "x$ADIC2_ROOT" = "xno"; then … … 448 467 dnl gsl{{{ 449 468 AC_ARG_WITH([gsl-dir], 450 AS_HELP_STRING([--with-gsl-dir =DIR], [gsl root directory.]),469 AS_HELP_STRING([--with-gsl-dir=DIR], [gsl root directory.]), 451 470 [GSL_ROOT=$withval],[GSL_ROOT=""]) 452 AC_MSG_CHECKING(for Gsl)471 AC_MSG_CHECKING(for gsl) 453 472 454 473 if test -d "$GSL_ROOT"; then … … 471 490 dnl rose{{{ 472 491 AC_ARG_WITH([rose-dir], 473 AS_HELP_STRING([--with-rose-dir =DIR], [rose root directory.]),492 AS_HELP_STRING([--with-rose-dir=DIR], [rose root directory.]), 474 493 [ROSE_ROOT=$withval],[ROSE_ROOT=""]) 475 AC_MSG_CHECKING(for Rose)494 AC_MSG_CHECKING(for rose) 476 495 477 496 if test -d "$ROSE_ROOT"; then … … 494 513 dnl metis{{{ 495 514 AC_ARG_WITH([metis-dir], 496 AS_HELP_STRING([--with-metis-dir =DIR],[metis root directory. necessary for serial build]),515 AS_HELP_STRING([--with-metis-dir=DIR],[metis root directory. necessary for serial build]), 497 516 [METIS_ROOT=$withval],[METIS_ROOT=""]) 498 517 499 518 if test -d "$METIS_ROOT"; then 500 519 501 AC_MSG_CHECKING(for Metis headers and libraries in $METIS_ROOT)520 AC_MSG_CHECKING(for metis headers and libraries in $METIS_ROOT) 502 521 503 522 dnl first figure out version of metis: does the VERSION file exist? … … 566 585 567 586 AC_ARG_WITH([mpi-include], 568 AS_HELP_STRING([--with-mpi-include =DIR],[mpi include directory, necessary for parallel build]),587 AS_HELP_STRING([--with-mpi-include=DIR],[mpi include directory, necessary for parallel build]), 569 588 [MPI_INCLUDE=$withval],[MPI_INCLUDE=""]) 570 589 … … 575 594 HAVE_MPI=no 576 595 else 596 HAVE_MPI=yes 577 597 MPIINCL=-I"$MPI_INCLUDE/" 578 598 AC_DEFINE([_HAVE_MPI_],[1],[with Mpi in ISSM src]) … … 582 602 fi 583 603 fi 584 AC_MSG_RESULT( done)604 AC_MSG_RESULT($HAVE_MPI) 585 605 dnl }}} 586 606 dnl petsc{{{ 587 607 AC_ARG_WITH([petsc-dir], 588 AS_HELP_STRING([--with-petsc-dir =DIR],[PETSc root directory, necessary for parallel build]),608 AS_HELP_STRING([--with-petsc-dir=DIR],[PETSc root directory, necessary for parallel build]), 589 609 [PETSC_ROOT=$withval],[PETSC_ROOT=""]) 590 610 591 611 if test -d "$PETSC_ROOT"; then 592 AC_MSG_CHECKING(for PETSc version)612 AC_MSG_CHECKING(for petsc version) 593 613 PETSC_MAJOR=`cat $PETSC_ROOT/include/petscversion.h | grep "#define PETSC_VERSION_MAJOR" | sed 's/#define PETSC_VERSION_MAJOR//' | sed 's/ //g'` 594 614 PETSC_MINOR=`cat $PETSC_ROOT/include/petscversion.h | grep "#define PETSC_VERSION_MINOR" | sed 's/#define PETSC_VERSION_MINOR//' | sed 's/ //g'` … … 598 618 599 619 PETSC_VERSION_DATE_HG=`cat $PETSC_ROOT/include/petscversion.h | grep "#define PETSC_VERSION_DATE_HG" | sed 's/#define PETSC_VERSION_DATE_HG//' | sed 's/ //g' | sed -e 's/\"//g' ` 600 AC_MSG_CHECKING(w ether PETSc is the development version)620 AC_MSG_CHECKING(whether petsc is the development version) 601 621 if test x$PETSC_VERSION_DATE_HG = xunknown; then 602 622 AC_DEFINE([_HAVE_PETSCDEV_],[1],[with PETSc-dev]) … … 608 628 609 629 AC_ARG_WITH([petsc-arch], 610 AS_HELP_STRING([--with-petsc-arch =DIR],[PETSc arch , necessary for parallel build]),630 AS_HELP_STRING([--with-petsc-arch=DIR],[PETSc arch , necessary for parallel build]), 611 631 [PETSC_ARCH=$withval],[PETSC_ARCH=""]) 612 632 613 AC_MSG_CHECKING(for PETSc headers and libraries in $PETSC_ROOT for architecture $PETSC_ARCH)633 AC_MSG_CHECKING(for petsc headers and libraries in $PETSC_ROOT for architecture $PETSC_ARCH) 614 634 615 635 if test -d "$PETSC_ROOT"; then … … 655 675 dnl tao{{{ 656 676 AC_ARG_WITH([tao-dir], 657 AS_HELP_STRING([--with-tao-dir =DIR], [tao root directory.]),677 AS_HELP_STRING([--with-tao-dir=DIR], [tao root directory.]), 658 678 [TAO_ROOT=$withval],[TAO_ROOT=""]) 659 AC_MSG_CHECKING(for Tao)679 AC_MSG_CHECKING(for tao) 660 680 661 681 if test -d "$TAO_ROOT"; then … … 675 695 dnl slepc{{{ 676 696 AC_ARG_WITH([slepc-dir], 677 AS_HELP_STRING([--with-slepc-dir =DIR],[slepc root directory]),697 AS_HELP_STRING([--with-slepc-dir=DIR],[slepc root directory]), 678 698 [SLEPC_ROOT=$withval],[SLEPC_ROOT=""]) 679 699 680 AC_MSG_CHECKING(for Slepc headers and libraries in $SLEPC_ROOT)700 AC_MSG_CHECKING(for slepc headers and libraries in $SLEPC_ROOT) 681 701 if test -d "$SLEPC_ROOT"; then 682 702 HAVE_SLEPC=yes … … 694 714 dnl shapelib{{{ 695 715 AC_ARG_WITH([shapelib-dir], 696 AS_HELP_STRING([--with-shapelib-dir =DIR], [shapelib root directory]),716 AS_HELP_STRING([--with-shapelib-dir=DIR], [shapelib root directory]), 697 717 [SHAPELIB_ROOT=$withval],[SHAPELIB_ROOT=""]) 698 718 699 AC_MSG_CHECKING(for Shapelib headers and libraries in $SHAPELIB_ROOT)719 AC_MSG_CHECKING(for shapelib headers and libraries in $SHAPELIB_ROOT) 700 720 if test -d "$SHAPELIB_ROOT"; then 701 721 … … 715 735 dnl scalapack{{{ 716 736 AC_ARG_WITH([scalapack-dir], 717 AS_HELP_STRING([--with-scalapack-dir =DIR],[scalapack root directory]),737 AS_HELP_STRING([--with-scalapack-dir=DIR],[scalapack root directory]), 718 738 [SCALAPACK_ROOT=$withval],[SCALAPACK_ROOT=""]) 719 739 720 AC_MSG_CHECKING(for Scalapack headers and libraries in $SCALAPACK_ROOT)740 AC_MSG_CHECKING(for scalapack headers and libraries in $SCALAPACK_ROOT) 721 741 if test -d "$SCALAPACK_ROOT"; then 722 742 … … 734 754 dnl blas{{{ 735 755 AC_ARG_WITH([blas-lapack-dir], 736 AS_HELP_STRING([--with-blas-lapack-dir =DIR],[blas-lapack root directory]),756 AS_HELP_STRING([--with-blas-lapack-dir=DIR],[blas-lapack root directory]), 737 757 [BLASLAPACK_ROOT=$withval],[BLASLAPACK_ROOT=""]) 738 758 739 AC_MSG_CHECKING(for Blas and Lapack headers and libraries in $BLASLAPACK_ROOT)759 AC_MSG_CHECKING(for blas and lapack headers and libraries in $BLASLAPACK_ROOT) 740 760 if test -d "$BLASLAPACK_ROOT"; then 741 761 … … 767 787 dnl mkl{{{ 768 788 AC_ARG_WITH([mkl-dir], 769 AS_HELP_STRING([--with-mkl-dir =DIR],[mkl root directory]),789 AS_HELP_STRING([--with-mkl-dir=DIR],[mkl root directory]), 770 790 [MKL_ROOT=$withval],[MKL_ROOT=""]) 771 791 … … 786 806 dnl }}} 787 807 dnl plapack{{{ 808 AC_MSG_CHECKING(for plapack) 809 788 810 AC_ARG_WITH([plapack-lib], 789 811 AS_HELP_STRING([--with-plapack-lib = lib],[plapack library]), 790 812 [PLAPACK_LIB=$withval],[PLAPACK_LIB=""]) 791 AC_MSG_CHECKING(for Plapack libraries)792 813 793 814 AC_ARG_WITH([plapack-include], … … 795 816 [plapack include ]), 796 817 [PLAPACK_INCLUDE=$withval],[PLAPACK_INCLUDE=""]) 797 AC_MSG_CHECKING(for Plapack headers)798 818 799 819 if test -n "$PLAPACK_LIB"; then … … 818 838 dnl mumps{{{ 819 839 AC_ARG_WITH([mumps-dir], 820 AS_HELP_STRING([--with-mumps-dir =DIR],[mumps root directory]),840 AS_HELP_STRING([--with-mumps-dir=DIR],[mumps root directory]), 821 841 [MUMPS_ROOT=$withval],[MUMPS_ROOT=""]) 822 842 823 AC_MSG_CHECKING(for Mumps headers and libraries in $MUMPS_ROOT)843 AC_MSG_CHECKING(for mumps headers and libraries in $MUMPS_ROOT) 824 844 if test -d "$MUMPS_ROOT"; then 825 845 … … 843 863 dnl blacs{{{ 844 864 AC_ARG_WITH([blacs-dir], 845 AS_HELP_STRING([--with-blacs-dir =DIR],[blacs root directory]),865 AS_HELP_STRING([--with-blacs-dir=DIR],[blacs root directory]), 846 866 [BLACS_ROOT=$withval],[BLACS_ROOT=""]) 847 867 848 AC_MSG_CHECKING(for Blacs headers and libraries in $BLACS_ROOT)868 AC_MSG_CHECKING(for blacs headers and libraries in $BLACS_ROOT) 849 869 if test -d "$BLACS_ROOT"; then 850 870 … … 864 884 dnl hypre{{{ 865 885 AC_ARG_WITH([hypre-dir], 866 AS_HELP_STRING([--with-hypre-dir =DIR],[hypre root directory]),886 AS_HELP_STRING([--with-hypre-dir=DIR],[hypre root directory]), 867 887 [HYPRE_ROOT=$withval],[HYPRE_ROOT=""]) 868 888 869 AC_MSG_CHECKING(for Hypre headers and libraries in $HYPRE_ROOT)889 AC_MSG_CHECKING(for hypre headers and libraries in $HYPRE_ROOT) 870 890 if test -d "$HYPRE_ROOT"; then 871 891 … … 885 905 dnl ml{{{ 886 906 AC_ARG_WITH([ml-dir], 887 AS_HELP_STRING([--with-ml-dir =DIR],[ml root directory]),907 AS_HELP_STRING([--with-ml-dir=DIR],[ml root directory]), 888 908 [ML_ROOT=$withval],[ML_ROOT=""]) 889 909 890 AC_MSG_CHECKING(for Ml headers and libraries in $ML_ROOT)910 AC_MSG_CHECKING(for ml headers and libraries in $ML_ROOT) 891 911 if test -d "$ML_ROOT"; then 892 912 … … 1202 1222 fi 1203 1223 1224 dnl check that we python version if python compile is specified 1225 dnl if test "$HAVE_PYTHON" = "yes" && test "$HAVE_PYTHONVERSION" = "no" ; then 1226 dnl AC_MSG_ERROR([need python-version if python compile is required!]); 1227 dnl fi 1228 1229 1204 1230 AC_MSG_RESULT(done) 1205 1231 dnl }}} … … 1211 1237 AS_HELP_STRING([--with-cxxoptflags = CXXOPTFLAGS], [optimization using CXX flags, ex: --with-cxxoptflags=-march=opteron -O3]), 1212 1238 [CXXOPTFLAGS=$withval],[CXXOPTFLAGS="-g -O2"]) 1213 AC_MSG_CHECKING(for C++ optimization flags)1239 AC_MSG_CHECKING(for c++ optimization flags) 1214 1240 AC_SUBST([CXXOPTFLAGS]) 1215 1241 AC_MSG_RESULT(done)
Note:
See TracChangeset
for help on using the changeset viewer.