summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac25
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 053eed9..311213e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,6 +49,30 @@ AC_ARG_WITH(
]
)
+AC_ARG_WITH(
+ [ldd],
+ [AS_HELP_STRING([--with-ldd=PATH], [path to ldd])],
+ [
+ case "${withval}" in
+ 'yes'|'')
+ AC_MSG_ERROR([--with-ldd requires an argument])
+ ;;
+ 'no')
+ AC_MSG_ERROR([ldd is required])
+ ;;
+ *)
+ LDD="${withval}"
+ ;;
+ esac
+ ],
+ [
+ AC_PATH_PROG([LDD], [ldd])
+ if test -z "${LDD}"; then
+ AC_MSG_ERROR([ldd not found])
+ fi
+ ]
+)
+
AC_ARG_ENABLE(
[multiarch-libdir],
[AS_HELP_STRING(
@@ -95,6 +119,7 @@ AC_ARG_WITH(
)
AC_SUBST([SH])
+AC_SUBST([LDD])
AC_SUBST([multiarch_libdir])
AC_SUBST([helperdir])
AC_CONFIG_FILES([Makefile])