From dcc8bd4beb6ac206ace016e57732a51392bb3933 Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Tue, 19 Mar 2019 07:58:06 -0600 Subject: [PATCH] starting to add fortran build to autotools --- configure.ac | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 0779dfde6a2..c94e457402c 100644 --- a/configure.ac +++ b/configure.ac @@ -38,12 +38,18 @@ if test "x$enable_logging" = xyes; then AC_DEFINE([PIO_ENABLE_LOGGING], 1, [If true, turn on logging.]) fi +# Does the user want to enable Fortran library? +AC_MSG_CHECKING([whether Fortran library should be build]) +AC_ARG_ENABLE([fortran], + [AS_HELP_STRING([--enable-fortran], + [build the PIO Fortran library.])]) +test "x$enable_fortran" = xyes || enable_fortran=no +AC_MSG_RESULT([$enable_fortran]) +AM_CONDITIONAL(BUILD_FORTRAN, [test "x$enable_fortran" = xyes]) + # NetCDF (at least classic) is required for PIO to build. AC_DEFINE([_NETCDF], [1], [netCDF classic library available]) -# Is parallel-netcdf library available? -#AC_DEFINE([_PNETCDF], [1], [parallel-netcdf library available]) - # The PIO version, again. AC_DEFINE([PIO_VERSION_MAJOR], [2], [PIO major version]) AC_DEFINE([PIO_VERSION_MINOR], [4], [PIO minor version])