Commit a9d8ff61 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Conditionally compile Fortran pio test.

* It depends on having a Fortran compiler in the first place.
parent bbb84931
......@@ -679,6 +679,8 @@ CXX
ac_ct_F77
FFLAGS
F77
USE_FC_FALSE
USE_FC_TRUE
FPP_INCOPT
FPP_DEFOPT
FPPFLAGS
......@@ -15924,6 +15926,14 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
fi
if test -n "$FC" && test "X$FC" != "Xno"; then
USE_FC_TRUE=
USE_FC_FALSE='#'
else
USE_FC_TRUE='#'
USE_FC_FALSE=
fi
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
......@@ -26251,7 +26261,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
 
# Check the module extension of the fortran compiler
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of module files" >&5
if test -n "$FC" && test "X$FC" != "Xno"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of module files" >&5
$as_echo_n "checking for suffix of module files... " >&6; }
 
ac_fc_mod_uppercase=no
......@@ -26329,6 +26340,7 @@ fi
 
 
 
fi
# -----------------------------------------------------------------------
# Check for SWIG - Generator for script-language bindings
# Check whether --enable-swig was given.
......@@ -26744,6 +26756,10 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_FC_TRUE}" && test -z "${USE_FC_FALSE}"; then
as_fn_error $? "conditional \"USE_FC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
......
......@@ -43,6 +43,7 @@ AS_IF([test -n "$FC" && test "X$FC" != "Xno"],
AC_LANG_PUSH([Fortran])
AC_PROG_FPP
AC_LANG_POP([Fortran])])
AM_CONDITIONAL([USE_FC],[test -n "$FC" && test "X$FC" != "Xno"])
AC_PROG_F77
AC_PROG_RANLIB
AC_PROG_CXX
......@@ -135,7 +136,8 @@ AS_IF([test "x${enable_isoc}" = "xyes"],
CDI_F90_INTERFACE_FCFLAGS="${FC_MOD_FLAG}${includedir}"])
AC_SUBST([CDI_F90_INTERFACE_FCFLAGS])
# Check the module extension of the fortran compiler
ACX_SL_FC_MOD_SUFFIX(,[FCMODEXT=mod])
AS_IF([test -n "$FC" && test "X$FC" != "Xno"],
[ACX_SL_FC_MOD_SUFFIX(,[FCMODEXT=mod])])
# -----------------------------------------------------------------------
# Check for SWIG - Generator for script-language bindings
AC_ARG_ENABLE(swig,
......
noinst_PROGRAMS=collectData collectData2003 collectDataNStreams
noinst_PROGRAMS=collectData collectDataNStreams
if USE_MPI
noinst_PROGRAMS+=compareResourcesArray
noinst_PROGRAMS+=compareResourcesArray
endif
if USE_FC
noinst_PROGRAMS+=collectData2003
endif
AM_CFLAGS=-I$(top_srcdir)/src
......
......@@ -34,9 +34,10 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
noinst_PROGRAMS = collectData$(EXEEXT) collectData2003$(EXEEXT) \
collectDataNStreams$(EXEEXT) $(am__EXEEXT_1)
@USE_MPI_TRUE@am__append_1 = compareResourcesArray
noinst_PROGRAMS = collectData$(EXEEXT) collectDataNStreams$(EXEEXT) \
$(am__EXEEXT_1) $(am__EXEEXT_2)
@USE_MPI_TRUE@am__append_1 = compareResourcesArray
@USE_FC_TRUE@am__append_2 = collectData2003
subdir = pioExamples
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
......@@ -59,6 +60,7 @@ CONFIG_HEADER = $(top_builddir)/src/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
@USE_MPI_TRUE@am__EXEEXT_1 = compareResourcesArray$(EXEEXT)
@USE_FC_TRUE@am__EXEEXT_2 = collectData2003$(EXEEXT)
PROGRAMS = $(noinst_PROGRAMS)
am_collectData_OBJECTS = collectData.$(OBJEXT)
collectData_OBJECTS = $(am_collectData_OBJECTS)
......
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