From d59b9c01bea0fce39d2e9a43be9686b24a6e9c1b Mon Sep 17 00:00:00 2001
From: Marcel Loose <loose@astron.nl>
Date: Fri, 22 Dec 2006 15:58:01 +0000
Subject: [PATCH] BugID: 686

Added a --with-libs option. This was needed, because the new lofar_external.m4
macro will reorder the LDFLAGS. This reordering caused problems when libraries
were specified as --with-ldflags in one of the variant files.
---
 autoconf_share/lofar_general.m4 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/autoconf_share/lofar_general.m4 b/autoconf_share/lofar_general.m4
index c6aeacd3e12..8e60e4f87dc 100644
--- a/autoconf_share/lofar_general.m4
+++ b/autoconf_share/lofar_general.m4
@@ -101,6 +101,9 @@ AC_ARG_WITH(cxxflags,
 AC_ARG_WITH(ldflags,
 	[  --with-ldflags=LDFLAGS    enable extra LDFLAGS],
 	[with_ldflags="$withval"])dnl
+AC_ARG_WITH(libs,
+	[  --with-libs=LIBS          enable extra LIBS],
+	[with_libs="$withval"])dnl
 AC_ARG_ENABLE(tracer,
 	[  --disable-tracer        en/disable TRACER macros (default is debug/opt)],
 	[enable_tracer="$enableval"],
@@ -218,11 +221,13 @@ AC_DEFINE(LOFAR_DEBUG,dnl
   CFLAGS="$lfr_cflags $with_cflags"
   CXXFLAGS="$lfr_cxxflags $with_cxxflags"
   LDFLAGS="$LDFLAGS $lfr_ldflags $with_ldflags"
+  LIBS="$LIBS $with_libs"
 ]
 AC_SUBST(CFLAGS)dnl
 AC_SUBST(CXXFLAGS)dnl
 AC_SUBST(CPPFLAGS)dnl
 AC_SUBST(LDFLAGS)dnl
+AC_SUBST(LIBS)dnl
 [
   if test "$enable_tracer" != "no"; then]
     AC_DEFINE(ENABLE_TRACER,dnl
-- 
GitLab