]> sourceware.org Git - systemtap.git/commitdiff
runtime/staprun/configure.ac: AC_CHECK_LIB before adding -lelf.
authorTurgis, Frederic <f-turgis@ti.com>
Tue, 6 Sep 2011 17:38:08 +0000 (19:38 +0200)
committerMark Wielaard <mjw@redhat.com>
Tue, 6 Sep 2011 17:38:08 +0000 (19:38 +0200)
runtime/staprun/configure
runtime/staprun/configure.ac

index f3743f1186baa114377ba4b03b1f662f05f41d01..6d9c50706f0a0f790886e87e4f44799e1776a678 100755 (executable)
@@ -5773,9 +5773,10 @@ if test "x$ac_cv_lib_elf_elf_getshdrstrndx" = xyes; then :
 
 $as_echo "#define HAVE_ELF_GETSHDRSTRNDX 1" >>confdefs.h
 
+  staprun_LIBS="$staprun_LIBS -lelf"
+
 fi
 
-staprun_LIBS="$staprun_LIBS -lelf"
 LIBS="$save_LIBS"
 
 
index 79d68eeb6e1507c2922bb356fea442d68ce28ffe..f449411ca6e2b4c59c89818e8aed96175e491da4 100644 (file)
@@ -76,8 +76,9 @@ AC_CHECK_HEADERS([libelf.h])
 save_LIBS="$LIBS"
 dnl this will only succeed with elfutils 0.142+
 AC_CHECK_LIB(elf,elf_getshdrstrndx,[
-        AC_DEFINE([HAVE_ELF_GETSHDRSTRNDX],[1],[Define to 1 if libelf has elf_getshdrstrndx])])
-staprun_LIBS="$staprun_LIBS -lelf"
+  AC_DEFINE([HAVE_ELF_GETSHDRSTRNDX],[1],[Define to 1 if libelf has elf_getshdrstrndx])
+  staprun_LIBS="$staprun_LIBS -lelf"
+])
 LIBS="$save_LIBS"  
 
 AC_SUBST(staprun_LIBS)
This page took 0.029454 seconds and 5 git commands to generate.