[glib/glib-2-32] configure: Reset LIBS after ELF check



commit 7fe1f97a128be5f48dcd1232250e96bd581a35c1
Author: Michael Biebl <biebl debian org>
Date:   Tue May 1 18:42:12 2012 +0200

    configure: Reset LIBS after ELF check
    
    If action-if-found is not specified, AC_CHECK_LIB will append the library
    to LIBS. As we don't want to link everything against libelf, reset LIBS
    after doing the checks.

 configure.ac |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9869daa..b1e447b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1819,10 +1819,12 @@ dnl ************************
 PKG_CHECK_MODULES([LIBELF], [libelf], [have_libelf=yes], [have_libelf=maybe])
 
 if test $have_libelf = maybe; then
+  glib_save_LIBS=$LIBS
   AC_CHECK_LIB([elf], [elf_begin], , [have_libelf=no])
   AC_CHECK_LIB([elf], [elf_getshdrstrndx], , [have_libelf=no])
   AC_CHECK_LIB([elf], [elf_getshdrnum], , [have_libelf=no])
   AC_CHECK_HEADER([libelf.h], , [have_libelf=no])
+  LIBS=$glib_save_LIBS
 
   if test $have_libelf != no; then
     LIBELF_LIBS=-lelf



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]