]> sourceware.org Git - systemtap.git/commitdiff
configury: adjust -lebl check to ebl_strtabinit
authorFrank Ch. Eigler <fche@redhat.com>
Fri, 5 Jun 2020 16:16:19 +0000 (12:16 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Fri, 5 Jun 2020 16:17:37 +0000 (12:17 -0400)
While -lebl has been integrated into -ldw in recent versions of
elfutils, some older versions need a better aimed check, for
the exact symbol that bpf-translate.cxx uses.

configure
configure.ac

index d210828dc405ae02645fb4b8c37ffcc0dc02b9ee..37a2b06b9819ae80c78c90078c74512f756620ef 100755 (executable)
--- a/configure
+++ b/configure
@@ -11533,9 +11533,9 @@ if test $enable_translator = yes; then
     # merged into libdw
     # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
     save_LIBS="$LIBS"
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_get_elfmachine in -lebl" >&5
-$as_echo_n "checking for ebl_get_elfmachine in -lebl... " >&6; }
-if ${ac_cv_lib_ebl_ebl_get_elfmachine+:} false; then :
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ebl_strtabinit in -lebl" >&5
+$as_echo_n "checking for ebl_strtabinit in -lebl... " >&6; }
+if ${ac_cv_lib_ebl_ebl_strtabinit+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
@@ -11549,27 +11549,27 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 #ifdef __cplusplus
 extern "C"
 #endif
-char ebl_get_elfmachine ();
+char ebl_strtabinit ();
 int
 main ()
 {
-return ebl_get_elfmachine ();
+return ebl_strtabinit ();
   ;
   return 0;
 }
 _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :
-  ac_cv_lib_ebl_ebl_get_elfmachine=yes
+  ac_cv_lib_ebl_ebl_strtabinit=yes
 else
-  ac_cv_lib_ebl_ebl_get_elfmachine=no
+  ac_cv_lib_ebl_ebl_strtabinit=no
 fi
 rm -f core conftest.err conftest.$ac_objext \
     conftest$ac_exeext conftest.$ac_ext
 LIBS=$ac_check_lib_save_LIBS
 fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_get_elfmachine" >&5
-$as_echo "$ac_cv_lib_ebl_ebl_get_elfmachine" >&6; }
-if test "x$ac_cv_lib_ebl_ebl_get_elfmachine" = xyes; then :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ebl_ebl_strtabinit" >&5
+$as_echo "$ac_cv_lib_ebl_ebl_strtabinit" >&6; }
+if test "x$ac_cv_lib_ebl_ebl_strtabinit" = xyes; then :
   ebl_LIBS=-lebl
 else
   ebl_LIBS=
index 7e3c5b3e1748a7d866b3cc4287989bc1679f10c6..34847ada11d5e1f4547e634cea13a9e095738b8e 100644 (file)
@@ -597,7 +597,7 @@ if test $enable_translator = yes; then
     # merged into libdw
     # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457543
     save_LIBS="$LIBS"
-    AC_CHECK_LIB(ebl, ebl_get_elfmachine,[ebl_LIBS=-lebl],[ebl_LIBS=])
+    AC_CHECK_LIB(ebl, ebl_strtabinit,[ebl_LIBS=-lebl],[ebl_LIBS=])
     LIBS="$save_LIBS"
 
     save_LIBS="$LIBS"
This page took 0.045757 seconds and 5 git commands to generate.