Skip to content
Snippets Groups Projects
Commit bb836648 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Clean-up files that are generated by libtool at the configure time.

parent e9e6e70d
No related branches found
No related tags found
No related merge requests found
......@@ -488,6 +488,13 @@ dnl
COMPILER="$CC $CFLAGS"
AC_DEFINE_UNQUOTED(COMPILER, ["$COMPILER"], [Compiler])
dnl Once all the compiling/linking checks are run, we can try to delete the
dnl directory generated by libtool. Unfortunately, there is no reasonable way
dnl to add the following commands to the trap code of the configure script,
dnl which would be more reliable.
rm -f "${objdir}/conftest.${OBJEXT}"
rmdir "$objdir" 2>/dev/null
AC_CONFIG_FILES([tests/test_cksum_grib \
tests/test_cksum_grib2 \
tests/test_cksum_nc \
......
......@@ -122,6 +122,7 @@ AC_DEFUN([_ACX_CHECK_CFORTRAN_FC],
[AC_MSG_NOTICE([Skipping run test for cfortran.h in cross-compilation mode,])
AC_MSG_NOTICE([cfortran.h link test succeeded for $FC.])
acx_cv_cfortran_works=yes])
rm -f conftest_data* CONFTEST_DATA* "conftest_f.$ac_objext" "conftest_f.$OBJEXT" ".libs/conftest_f.$OBJEXT"
LIBS=$save_LIBS],
[acx_cv_cfortran_works="error compiling Fortran subroutine"])
AC_LANG_POP([Fortran])])
......@@ -192,6 +193,7 @@ AC_DEFUN([_ACX_CHECK_CFORTRAN_F77],
[AC_MSG_NOTICE([Skipping run test for cfortran.h in cross-compilation mode,])
AC_MSG_NOTICE([cfortran.h link test succeeded for $F77.])
acx_cv_cfortran_works=yes])
rm -f "conftest_f.$ac_objext" "conftest_f.$OBJEXT" ".libs/conftest_f.$OBJEXT"
LIBS=$save_LIBS],
[acx_cv_cfortran_works="error compiling Fortran subroutine"])
AC_LANG_POP([Fortran 77])])
......@@ -263,6 +265,7 @@ FCALLSCSUB0(errExit,ERR_EXIT,err_exit)
[acx_cv_cfortran_works=${acx_cv_cfortran_works-yes}])])
AC_PROVIDE_IFELSE([AC_PROG_F77],
[AS_IF([test -n "$F77" -a X"$F77" != Xno AC_PROVIDE_IFELSE([AC_PROG_FC],[-a x"$acx_cv_cfortran_works" = xyes])],[_ACX_CHECK_CFORTRAN_F77])])
rm -f "conftest_c.$ac_objext" "conftest_c.$OBJEXT" ".libs/conftest_c.$OBJEXT"
],
[acx_cv_cfortran_works="compiling with cfortran.h failed"])
AC_LANG_POP([C])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment