From 871d68fc6e8a51039e7438e37cb81c8a047c620a Mon Sep 17 00:00:00 2001 From: Christian Engwer <christi@dune-project.org> Date: Tue, 17 Oct 2006 14:36:34 +0000 Subject: [PATCH] added configure check to determin the dependiecies of this module [[Imported from SVN: r4736]] --- m4/dune.m4 | 12 ++++++++++++ m4/dune_all.m4 | 1 + 2 files changed, 13 insertions(+) diff --git a/m4/dune.m4 b/m4/dune.m4 index 69da4cfd5..56371c3f1 100644 --- a/m4/dune.m4 +++ b/m4/dune.m4 @@ -17,6 +17,18 @@ AC_DEFUN([DUNE_DISABLE_LIBCHECK],[ AC_ARG_ENABLE(dunelibcheck,[],,enable_dunelibcheck=yes) ]) +AC_DEFUN([DUNE_PKG_CONFIG_REQUIRES],[ + AC_MSG_CHECKING([$PACKAGE_NAME requirements]) + REQUIRES="`grep ^Depends: $srcdir/dune.module | cut -d ':' -f 2`" \ + || failure=yes + if test x$failure = xyes; then + AC_MSG_RESULT([Failure]) + AC_MSG_ERROR([Could not determin requirements for $PACKAGE_NAME]) + fi + AC_MSG_RESULT([$REQUIRES]) + AC_SUBST(REQUIRES, [$REQUIRES]) +]) + AC_DEFUN([DUNE_CHECK_MODULES],[ AC_REQUIRE([AC_PROG_CXX]) AC_REQUIRE([AC_PROG_CXXCPP]) diff --git a/m4/dune_all.m4 b/m4/dune_all.m4 index 3bb22eb35..33199227a 100644 --- a/m4/dune_all.m4 +++ b/m4/dune_all.m4 @@ -197,6 +197,7 @@ AC_DEFUN([DUNE_CHECK_ALL_M],[ DUNE_MODULE_DEPENDENCIES($@) AC_REQUIRE([DUNE_CHECK_ALL]) AC_REQUIRE([DUNE_DEV_MODE]) + AC_REQUIRE([DUNE_PKG_CONFIG_REQUIRES]) AC_LANG_POP([C++]) ]) -- GitLab