From dd4fac5a557a768fd8027e01c7dbdc2ebd80c055 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 11 Sep 2006 07:15:49 +0000 Subject: r18366: check if we can link using the selected flags metze (This used to be commit d905bb499d81ac4e2f00277ae77ce0a51bdc7474) --- source4/build/m4/check_ld.m4 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/build') diff --git a/source4/build/m4/check_ld.m4 b/source4/build/m4/check_ld.m4 index 53e7d90019..af096243ed 100644 --- a/source4/build/m4/check_ld.m4 +++ b/source4/build/m4/check_ld.m4 @@ -183,6 +183,12 @@ if test $ac_cv_shlib_works = no; then fi fi +AC_MSG_CHECKING([if we can link using the selected flags]) +AC_TRY_RUN([#include "${srcdir-.}/build/tests/trivial.c"], + AC_MSG_RESULT(yes), + AC_MSG_ERROR([we cannot link with the selected cc and ld flags. Aborting configure]), + AC_MSG_WARN([cannot run when cross-compiling])) + AC_ARG_ENABLE(dso, [ --enable-dso Enable building internal libraries as DSO's (experimental)], [ if test x$enable_dso != xyes; then -- cgit