aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-08-12 20:01:30 +0000
committerGuy Harris <guy@alum.mit.edu>2013-08-12 20:01:30 +0000
commitbebe1200ded4978ab25e42be368ab89552e79294 (patch)
treef8320615f7a14663e1e47dc2958cb2f8e6716511 /acinclude.m4
parent4b641014a28ad66bc10596b75e8862799ced6a49 (diff)
Just check whether dladdr() is available; we check in the code whether
it succeeds, so there's no point in checking whether it succeeds in a sample program. svn path=/trunk/; revision=51322
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m436
1 files changed, 0 insertions, 36 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index e825dc1e93..687b25d3aa 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -638,42 +638,6 @@ AC_DEFUN([AC_WIRESHARK_PCAP_REMOTE_CHECK],
])
#
-# AC_WIRESHARK_CHECK_DLADDR
-#
-AC_DEFUN([AC_WIRESHARK_CHECK_DLADDR],
-[
- ac_save_CFLAGS="$CFLAGS"
- ac_save_LIBS="$LIBS"
- CFLAGS="$CFLAGS $GLIB_CFLAGS"
- LIBS="$GLIB_LIBS $LIBS $1"
- AC_TRY_RUN(
-[
-#define _GNU_SOURCE /* required on Linux, sigh */
-#include <dlfcn.h>
-
-int
-main(void)
-{
- Dl_info info;
-
- if (!dladdr((void *)main, &info))
- return 1; /* failure */
- return 0; /* assume success */
-}
-],
- ac_cv_dladdr_finds_executable_path=yes,
- ac_cv_dladdr_finds_executable_path=no,
- [echo $ac_n "cross compiling; assumed OK... $ac_c"
- ac_cv_dladdr_finds_executable_path=yes])
- CFLAGS="$ac_save_CFLAGS"
- LIBS="$ac_save_LIBS"
- if test x$ac_cv_dladdr_finds_executable_path = xyes
- then
- AC_DEFINE(DLADDR_FINDS_EXECUTABLE_PATH, 1, [Define if dladdr can be used to find the path of the executable])
- fi
-])
-
-#
# AC_WIRESHARK_ZLIB_CHECK
#
AC_DEFUN([AC_WIRESHARK_ZLIB_CHECK],