aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-05-14 20:27:00 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-05-14 20:27:00 +0000
commit8801cefb2d3e916481bc021516663bea9667dc6d (patch)
tree57e0f171f359aba2380b197eedcedc66432ae4c7
parenteacd0692f9c61ef2a647e6e772a10e26633d0558 (diff)
downloadpaludis-8801cefb2d3e916481bc021516663bea9667dc6d.tar.gz
paludis-8801cefb2d3e916481bc021516663bea9667dc6d.tar.xz
Fix ldconfig detection.
-rw-r--r--configure.ac16
1 files changed, 8 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index f70e8a8..5086611 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1005,12 +1005,11 @@ dnl }}}
dnl {{{ is ldconfig gnu ldconfig
AC_MSG_CHECKING([if ldconfig is GNU])
-paludis_is_gnu_ldconfig=
AC_ARG_ENABLE([gnu-ldconfig],
AS_HELP_STRING([--enable-gnu-ldconfig], [Use GNU ldconfig syntax (default: autodetect)]),
[
- AC_MSG_RESULT([$enable_val])
- paludis_is_gnu_ldconfig=$enable_val
+ HAVE_GNU_LDCONFIG=$enableval
+ AC_MSG_RESULT([$HAVE_GNU_LDCONFIG])
],
[
AC_MSG_RESULT([auto-detect])
@@ -1020,17 +1019,18 @@ AC_ARG_ENABLE([gnu-ldconfig],
AC_MSG_ERROR([ldconfig not found. Use --enable-gnu-ldconfig or --disable-gnu-ldconfig])
fi
if ldconfig --version &>/dev/null ; then
- paludis_is_gnu_ldconfig=yes
- AC_MSG_RESULT([yes])
+ HAVE_GNU_LDCONFIG=yes
+ AC_MSG_RESULT([$HAVE_GNU_LDCONFIG])
else
- AC_MSG_RESULT([no])
+ HAVE_GNU_LDCONFIG=no
+ AC_MSG_RESULT([$HAVE_GNU_LDCONFIG])
fi
])
-if test x$paludis_is_gnu_ldconfig = "xyes"; then
+if test "x$HAVE_GNU_LDCONFIG" = "xyes"; then
AC_DEFINE([HAVE_GNU_LDCONFIG], 1, [Define to 1 if you have GNU 'ldconfig'.])
fi
AC_SUBST([HAVE_GNU_LDCONFIG])
-AM_CONDITIONAL([HAVE_GNU_LDCONFIG], test x$paludis_is_gnu_ldconfig = "xyes")
+AM_CONDITIONAL([HAVE_GNU_LDCONFIG], test "x$HAVE_GNU_LDCONFIG" = "xyes")
dnl }}}
dnl {{{ built sources