summaryrefslogtreecommitdiff
path: root/gnulib-m4/relocatable-lib.m4
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2026-03-08 17:28:33 +0100
committerJörg Frings-Fürst <debian@jff.email>2026-03-08 17:28:33 +0100
commit5f59a34ab747dde8ede7357f3431bf06bd6002fe (patch)
tree056a4477fd870d454d5be5868cddab829a47f4d2 /gnulib-m4/relocatable-lib.m4
parent27dae84ed92f1ef0300263091972338d12e78348 (diff)
New upstream version 1.4.2upstream/1.4.2upstream
Diffstat (limited to 'gnulib-m4/relocatable-lib.m4')
-rw-r--r--gnulib-m4/relocatable-lib.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/gnulib-m4/relocatable-lib.m4 b/gnulib-m4/relocatable-lib.m4
index 5efed521..d270ad97 100644
--- a/gnulib-m4/relocatable-lib.m4
+++ b/gnulib-m4/relocatable-lib.m4
@@ -1,6 +1,6 @@
# relocatable-lib.m4
-# serial 8
-dnl Copyright (C) 2003, 2005-2007, 2009-2025 Free Software Foundation, Inc.
+# serial 9
+dnl Copyright (C) 2003, 2005-2007, 2009-2026 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
@@ -31,6 +31,14 @@ AC_DEFUN([gl_RELOCATABLE_LIBRARY_BODY],
[Define to 1 if the package shall run at any location in the file
system.])
fi
+ dnl Determine whether dladdr() exists in libc.
+ gl_LIBDL
+ if test -z "$LIBDL"; then
+ AC_CHECK_FUNC([dladdr],
+ [AC_DEFINE([HAVE_DLADDR_IN_LIBC], [1],
+ [Define to 1 if dladdr exists and is defined in libc.])
+ ])
+ fi
])
dnl Support for relocatable packages for which it is a nop.