Commit ff5b6ce8 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added configure option --enable-hirlam-extensions.

parent efd7ec7b
......@@ -674,6 +674,8 @@ MPI_C_INCLUDE
MPIROOT
ENABLE_NETCDF_FALSE
ENABLE_NETCDF_TRUE
ENABLE_HIRLAM_EXTENSIONS_FALSE
ENABLE_HIRLAM_EXTENSIONS_TRUE
ENABLE_ALL_STATIC_FALSE
ENABLE_ALL_STATIC_TRUE
ENABLE_CDI_LIB
......@@ -865,6 +867,7 @@ enable_service
enable_extra
enable_ieg
enable_all_static
enable_hirlam_extensions
enable_mpi
with_mpi_root
with_mpi_include
......@@ -1560,6 +1563,8 @@ Optional Features:
--enable-ieg Use the ieg library [default=yes]
--enable-all-static build a completely statically linked CDO binary
[default=no]
--enable-hirlam-extensions
HIRLAM extensions [default=no]
--enable-mpi Compile with MPI compiler [default=no]
--enable-iso-c-interface
Create Fortran Interface via iso_c_bindings facility
......@@ -27925,6 +27930,35 @@ else
ENABLE_ALL_STATIC_FALSE=
fi
 
# ----------------------------------------------------------------------
# Build CDO with HIRLAM extensions
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HIRLAM extensions" >&5
$as_echo_n "checking for HIRLAM extensions... " >&6; }
# Check whether --enable-hirlam-extensions was given.
if test "${enable_hirlam_extensions+set}" = set; then :
enableval=$enable_hirlam_extensions; if test "x$enable_hirlam_extensions" != "xno"; then :
$as_echo "#define HIRLAM_EXTENSIONS 1" >>confdefs.h
enable_hirlam_extensions=yes
else
enable_hirlam_extensions=no
fi
else
enable_hirlam_extensions=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hirlam_extensions" >&5
$as_echo "$enable_hirlam_extensions" >&6; }
if test x$enable_hirlam_extensions = 'xyes'; then
ENABLE_HIRLAM_EXTENSIONS_TRUE=
ENABLE_HIRLAM_EXTENSIONS_FALSE='#'
else
ENABLE_HIRLAM_EXTENSIONS_TRUE='#'
ENABLE_HIRLAM_EXTENSIONS_FALSE=
fi
#
 
if test x$ENABLE_NETCDF = xyes; then
ENABLE_NETCDF_TRUE=
......@@ -30121,6 +30155,10 @@ if test -z "${ENABLE_ALL_STATIC_TRUE}" && test -z "${ENABLE_ALL_STATIC_FALSE}";
as_fn_error $? "conditional \"ENABLE_ALL_STATIC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_HIRLAM_EXTENSIONS_TRUE}" && test -z "${ENABLE_HIRLAM_EXTENSIONS_FALSE}"; then
as_fn_error $? "conditional \"ENABLE_HIRLAM_EXTENSIONS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_NETCDF_TRUE}" && test -z "${ENABLE_NETCDF_FALSE}"; then
as_fn_error $? "conditional \"ENABLE_NETCDF\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
......@@ -266,6 +266,19 @@ AC_ARG_ENABLE([all-static],
[enable_all_static=no])
AC_MSG_RESULT([$enable_all_static])
AM_CONDITIONAL([ENABLE_ALL_STATIC],[test x$enable_all_static = 'xyes'])
# ----------------------------------------------------------------------
# Build CDO with HIRLAM extensions
AC_MSG_CHECKING([for HIRLAM extensions])
AC_ARG_ENABLE([hirlam-extensions],
[AS_HELP_STRING([--enable-hirlam-extensions],[HIRLAM extensions [default=no]])],
[AS_IF([test "x$enable_hirlam_extensions" != "xno"],
[AC_DEFINE(HIRLAM_EXTENSIONS,[1],[Define to 1 for HIRLAM extensions])
enable_hirlam_extensions=yes],
[enable_hirlam_extensions=no])],
[enable_hirlam_extensions=no])
AC_MSG_RESULT([$enable_hirlam_extensions])
AM_CONDITIONAL([ENABLE_HIRLAM_EXTENSIONS],[test x$enable_hirlam_extensions = 'xyes'])
#
])
dnl
dnl Local Variables:
......
......@@ -205,6 +205,9 @@
/* yaxt library is available */
#undef HAVE_YAXT
/* Define to 1 for HIRLAM extensions */
#undef HIRLAM_EXTENSIONS
/* Host name */
#undef HOST_NAME
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment