aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2005-12-05 22:49:20 +0000
committerMartin Schlemmer <azarah@gentoo.org>2005-12-05 22:49:20 +0000
commitcd9b3f6e7cf1622b2f191d6c7df32fb2378387c0 (patch)
tree91820bc5ddc97c50b0385efa3517801ec379d755 /configure.ac
parentIndentation fixes and other cleanups. (diff)
downloadsandbox-cd9b3f6e7cf1622b2f191d6c7df32fb2378387c0.tar.gz
sandbox-cd9b3f6e7cf1622b2f191d6c7df32fb2378387c0.tar.bz2
sandbox-cd9b3f6e7cf1622b2f191d6c7df32fb2378387c0.zip
More configure related cleanups. Define HAVE_RTLD_NEXT
via config.h. Signed-off-by: Martin Schlemmer <azarah@gentoo.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7b6653e..d6457f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,6 +53,7 @@ AC_CHECK_FUNCS([ \
memcpy memset mkdir pathconf realpath \
rmdir setenv strcasecmp strchr strdup \
strerror strndup strrchr strspn strstr \
+ strtok_r \
])
dnl Some libc's like those on bsd have dlopen() in libc, and not libdl
@@ -105,7 +106,9 @@ AC_TRY_COMPILE([
[have_rtld_next="no"]
)
AC_MSG_RESULT([$have_rtld_next])
-AM_CONDITIONAL([HAVE_RTLD_NEXT], [test x"$have_rtld_next" = xyes])
+if test x"$have_rtld_next" = xyes ; then
+ AC_DEFINE([HAVE_RTLD_NEXT], [1], [Have RTLD_NEXT enabled libc])
+fi
dnl we need to handle symbols differently based upon their version,
dnl but we have to know which symbols the libc supports first