From 932676d4339368279ca64255d4761deda4526480 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Wed, 27 Feb 2013 18:42:48 +0100 Subject: [PATCH] Fix sword and clucene detection This resolves Bug 1145 --- clucene.m4 | 2 +- sword.m4 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clucene.m4 b/clucene.m4 index 02a2966..db04292 100644 --- a/clucene.m4 +++ b/clucene.m4 @@ -133,7 +133,7 @@ int main(int argc, char* argv[[]]) { EOF -ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +ac_link='$LIBTOOL_SHELL --silent --mode=link --tag=LD ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' if AC_TRY_EVAL(ac_link) && test -s conftest; then if test -x conftest; then eval ac_cv_installed_clucene_version=`./conftest 2>&5` diff --git a/sword.m4 b/sword.m4 index 3c12bbd..2f19b3f 100644 --- a/sword.m4 +++ b/sword.m4 @@ -119,7 +119,7 @@ int main(int argc, char** argv) { EOF -ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +ac_link='$LIBTOOL_SHELL --silent --mode=link --tag=LD ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' if AC_TRY_EVAL(ac_link) && test -s conftest; then if test -x conftest; then eval ac_cv_installed_sword_version=`./conftest 2>&5` @@ -192,7 +192,7 @@ int main(int argc, char** argv) { } EOF -ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +ac_link='$LIBTOOL_SHELL --silent --mode=link --tag=LD ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' if AC_TRY_EVAL(ac_link) && test -s conftest; then if test -x conftest; then eval ac_cv_sword_recent_version=`./conftest $1 2>&5`