From 42feb3c0aa0e3c40e7f384f24458ad07cff250a4 Mon Sep 17 00:00:00 2001 From: wcohen Date: Fri, 29 Jun 2007 20:23:34 +0000 Subject: PR 4529 * configure.ac: * Makefile.am: Limit where sqlite3 linked in. * configure: * Makefile.in: Regenerate. --- configure.ac | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ae1207dc..2fd7f311 100644 --- a/configure.ac +++ b/configure.ac @@ -75,6 +75,12 @@ if test "$enable_prologues" = yes; then fi]) +SAVE_LIBS="$LIBS" +AC_CHECK_LIB(sqlite3, sqlite3_open,,[ + AC_MSG_ERROR([missing sqlite development headers/libraries])]) +sqlite3_LIBS="$LIBS" +AC_SUBST(sqlite3_LIBS) +LIBS="$SAVE_LIBS" build_elfutils=no AC_ARG_WITH([elfutils], @@ -138,13 +144,6 @@ else stap_LIBS="-ldw -lebl" fi -save_LIBS="$LIBS" -LIBS="$stap_LIBS" -AC_CHECK_LIB(sqlite3, sqlite3_open,,[ - AC_MSG_ERROR([missing sqlite development headers/libraries])]) -stap_LIBS="$LIBS" -LIBS="$SAVE_LIBS" - AC_SUBST(stap_LIBS) AC_MSG_NOTICE([stap will link $stap_LIBS]) -- cgit