From a65b19aa028def40d5b814fa4f903296a0fed9db Mon Sep 17 00:00:00 2001 From: szaka Date: Fri, 8 Dec 2006 23:47:08 +0000 Subject: [PATCH] fix: 'make install' failed if ldconfig wasn't in the $PATH --- configure.ac | 1 + src/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 929bfdfa..a335fa23 100644 --- a/configure.ac +++ b/configure.ac @@ -67,6 +67,7 @@ AC_PROG_CC AC_PROG_GCC_TRADITIONAL AC_PROG_INSTALL AC_PATH_PROG(RM, rm, rm) +AC_PATH_PROG(LDCONFIG, ldconfig, true, [/sbin /usr/sbin $PATH]) AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_LIBTOOL diff --git a/src/Makefile.am b/src/Makefile.am index 20bcf7d2..ca0d07d3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -38,7 +38,7 @@ libs: install-exec-hook: $(INSTALL) -d $(DESTDIR)/sbin $(LN_S) -f $(bindir)/ntfs-3g $(DESTDIR)/sbin/mount.ntfs-3g - ldconfig + $(LDCONFIG) install-data-hook: $(INSTALL) -d $(DESTDIR)$(man8dir)