Skip to content
Snippets Groups Projects
Commit 2d84bdae authored by Christian Engwer's avatar Christian Engwer
Browse files

move libtool-1.5 compatibility stuff to a seperate m4 file

[[Imported from SVN: r5771]]
parent 57b10cbc
No related branches found
No related tags found
No related merge requests found
......@@ -19,20 +19,17 @@ AC_DEFUN([DUNE_CHECK_ALL],[
AS_IF([test "x$enabledist" = "xyes"],[
AM_CONDITIONAL(DUNEWEB, false)])
dnl check the compilers
# check the compilers (before using libtool !!!)
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
AC_REQUIRE([AC_PROG_CC])
AC_REQUIRE([AC_PROG_CPP])
AC_REQUIRE([AC_PROG_CXX])
AC_REQUIRE([AC_PROG_CXXCPP])
AC_REQUIRE([AC_PROG_F77])
AC_REQUIRE([LT_COMPAT])
# we need libtool
AC_REQUIRE([AC_PROG_LIBTOOL])
# don't build shared libs per default, this is way better for debugging...
m4_ifdef([LT_INIT], [],
[
AC_DEFUN([LT_OUTPUT])
AC_DEFUN([LT_INIT], [AC_DISABLE_SHARED])
])
LT_INIT([disable-shared])
dnl check dependencies of this module
......
dnl Compatibility m4 to make dune work with
dnl libtool 1.5 and libtool 2.x
AC_DEFUN([LT_COMPAT],[
# LT_COMPAT
m4_ifdef([LT_INIT],[],
[
# call AC_DISABLE_SHARED
AC_DISABLE_SHARED
# fake LT_INIT and LT_OUTPUT
AC_DEFUN([LT_INIT])
AC_DEFUN([LT_OUTPUT])
])
])
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