fortran_dependencies.m4 745 Bytes
Newer Older
1
dnl Copyright 2015 Lorenz Hüdepohl
Lorenz Huedepohl's avatar
Lorenz Huedepohl committed
2 3 4 5
dnl
dnl This file is part of fdep and licensed under the MIT license
dnl see the file LICENSE for more information
dnl
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
6 7 8 9 10 11 12 13 14 15 16 17 18
AC_DEFUN([FDEP_F90_GNU_MAKE_DEPS],[
AC_MSG_CHECKING([for GNU make])
for a in "$MAKE" make gmake gnumake ; do
        if test -z "$a" ; then continue ; fi ;
        if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
                _fdep_gnu_make_command=$a ;
                break;
        fi
done ;
AC_MSG_RESULT([$_fdep_gnu_make_command])
if test x$_fdep_gnu_make_command = x ; then
	AC_MSG_ERROR([Need GNU Make])
fi
19 20 21 22 23
AC_SUBST([FORTRAN_MODULE_DEPS], ["
CLEANFILES +=
include ${srcdir}/fdep/fortran_dependencies.mk
"])
AM_SUBST_NOTMAKE([FORTRAN_MODULE_DEPS])
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
24
])