Skip to content

Commit 9137873

Browse files
authored
Merge pull request #2707 from WardF/remove_fortran_bootstrap.wif
Remove fortran bootstrap option
2 parents 6b430c9 + 48d5882 commit 9137873

File tree

5 files changed

+0
-204
lines changed

5 files changed

+0
-204
lines changed

CMakeLists.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -442,30 +442,6 @@ OPTION(ENABLE_MMAP "Use MMAP." ON)
442442
# Option to use examples.
443443
OPTION(ENABLE_EXAMPLES "Build Examples" ON)
444444

445-
# Option to automatically build netcdf-fortran.
446-
IF(NOT MSVC)
447-
OPTION(ENABLE_REMOTE_FORTRAN_BOOTSTRAP "Download and build netcdf-fortran automatically (EXPERIMENTAL)." OFF)
448-
IF(ENABLE_REMOTE_FORTRAN_BOOTSTRAP)
449-
SET(BUILD_FORTRAN ON)
450-
ENDIF()
451-
IF(BUILD_FORTRAN)
452-
CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/postinstall.sh.in"
453-
"${CMAKE_BINARY_DIR}/postinstall.sh"
454-
@ONLY)
455-
456-
ADD_CUSTOM_TARGET(build-netcdf-fortran
457-
COMMAND sh -c "${CMAKE_BINARY_DIR}/postinstall.sh -t cmake -a build"
458-
DEPENDS netcdf
459-
)
460-
461-
ADD_CUSTOM_TARGET(install-netcdf-fortran
462-
COMMAND sh -c "${CMAKE_BINARY_DIR}/postinstall.sh -t cmake -a install"
463-
DEPENDS build-netcdf-fortran
464-
)
465-
466-
ENDIF(BUILD_FORTRAN)
467-
ENDIF()
468-
469445
###
470446
# Allow the user to specify libraries
471447
# to link against, similar to automakes 'LIBS' variable.

Makefile.am

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -168,32 +168,6 @@ mm4::
168168
b=`basename $$m` ; d=`dirname $$m`;\
169169
pushd $$d; m4 -s $${b}.m4 > $${b}.c ; popd; done
170170

171-
#####
172-
# If ENABLE_FORTRAN was turned on,
173-
# we have new make targets, build-netcdf-fortran and
174-
# install-netcdf-fortran.
175-
#####
176-
177-
###
178-
# build-netcdf-fortran
179-
###
180-
if BUILD_FORTRAN
181-
182-
build-netcdf-fortran:
183-
echo "Downloading and Building NetCDF-Fortran"
184-
chmod u+x $(abs_top_builddir)/postinstall.sh
185-
sh -c "$(abs_top_builddir)/postinstall.sh -t autotools -a build"
186-
187-
###
188-
# install-netcdf-fortran
189-
###
190-
install-netcdf-fortran:
191-
echo "Installing NetCDF-Fortran"
192-
chmod u+x $(abs_top_builddir)/postinstall.sh
193-
sh -c "$(abs_top_builddir)/postinstall.sh -t autotools -a install"
194-
195-
endif
196-
197171
check_nc_config:
198172
$(CC) `./nc-config --cflags` test_prog.c -o test_prog `./nc-config --libs`
199173
./test_prog

config.h.cmake.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ are set when opening a binary file on Windows. */
7474
/* Define if building universal (internal helper macro) */
7575
#cmakedefine AC_APPLE_UNIVERSAL_BUILD 1
7676

77-
/* If true, will attempt to download and build netcdf-fortran. */
78-
#cmakedefine BUILD_FORTRAN 1
79-
8077
/* default file chunk cache nelems. */
8178
#cmakedefine CHUNK_CACHE_NELEMS ${CHUNK_CACHE_NELEMS}
8279

configure.ac

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,6 @@ if test "x$enable_hdf4_file_tests" = xyes; then
363363
fi
364364
AC_MSG_RESULT($enable_hdf4_file_tests)
365365

366-
# Does the user want to try to install netcdf-fortran
367-
# automatically?
368-
AC_MSG_CHECKING([whether we should attempt to install netcdf-fortran (EXPERIMENTAL)])
369-
AC_ARG_ENABLE([remote-fortran-bootstrap], [AS_HELP_STRING([--enable-remote-fortran-bootstrap],
370-
[Download and install netcdf-fortran (EXPERIMENTAL)])])
371-
test "x$enable_remote_fortran_bootstrap" = xyes || enable_remote_fortran_bootstrap=no
372-
AC_MSG_RESULT([$enable_remote_fortran_bootstrap])
373-
374366
# Does the user want to run extra parallel tests when parallel netCDF-4 is built?
375367
AC_MSG_CHECKING([whether parallel IO tests should be run])
376368
AC_ARG_ENABLE([parallel-tests],
@@ -1764,11 +1756,6 @@ if test "x$enable_erange_fill" = xyes ; then
17641756
fi
17651757
AC_SUBST(M4FLAGS)
17661758

1767-
# Check for downloading/building fortran via postinstall script.
1768-
if test "x$enable_remote_fortran_bootstrap" = xyes; then
1769-
AC_DEFINE([BUILD_FORTRAN], 1, [If true, will attempt to download and build netcdf-fortran.])
1770-
fi
1771-
17721759
# No logging for netcdf-3.
17731760
if test "x$enable_netcdf_4" = xno; then
17741761
enable_logging=no
@@ -1849,7 +1836,6 @@ AM_CONDITIONAL(USE_HDF5, [test x$enable_hdf5 = xyes])
18491836
AM_CONDITIONAL(USE_HDF4, [test x$enable_hdf4 = xyes])
18501837
AM_CONDITIONAL(USE_HDF4_FILE_TESTS, [test x$enable_hdf4_file_tests = xyes])
18511838
AM_CONDITIONAL(USE_RENAMEV3, [test x$enable_netcdf_4 = xyes -o x$enable_dap = xyes])
1852-
AM_CONDITIONAL(BUILD_FORTRAN, [test x$enable_remote_fortran_bootstrap = xyes])
18531839
AM_CONDITIONAL(USE_PNETCDF, [test x$enable_pnetcdf = xyes])
18541840
AM_CONDITIONAL(USE_DISPATCH, [test x$enable_dispatch = xyes])
18551841
AM_CONDITIONAL(BUILD_MMAP, [test x$enable_mmap = xyes])
@@ -2174,7 +2160,6 @@ AC_CONFIG_FILES([nc-config], [chmod 755 nc-config])
21742160
AC_CONFIG_FILES([Makefile
21752161
netcdf.pc
21762162
libnetcdf.settings
2177-
postinstall.sh
21782163
include/netcdf_meta.h
21792164
include/netcdf_dispatch.h
21802165
include/Makefile

postinstall.sh.in

Lines changed: 0 additions & 136 deletions
This file was deleted.

0 commit comments

Comments
 (0)