From a25c185ba02aff56f9c9d1a4ea9005b9fa07396d Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sun, 29 Feb 2004 22:14:25 +0000 Subject: [PATCH] add check for depmod to configure --- Makefile.am | 2 +- configure.ac | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index b9d28e04..459d9939 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,6 +21,6 @@ moo: install-data-hook: if [ -z "$(DESTDIR)" ] ; then \ - depmod -ae $(LINUX_KERNELRELEASE); \ + $(DEPMOD) -ae $(LINUX_KERNELRELEASE); \ fi diff --git a/configure.ac b/configure.ac index fe13f0fe..90cfc68a 100644 --- a/configure.ac +++ b/configure.ac @@ -33,6 +33,10 @@ AC_DEFINE_UNQUOTED(COMEDI_MICROVERSION, $COMEDI_MICROVERSION, [Comedi micro vers AC_PROG_CC() AC_PATH_PROG(STRIP,strip) +AC_PATH_PROG([DEPMOD], [depmod], [no], [PATH:/sbin:/usr/sbin:/usr/local/sbin]) +if test "$DEPMOD" == "no" ; then + AC_MSG_ERROR([unable to find the 'depmod' program.]) +fi AS_LINUX() AS_LINUX_MODTOOL() -- 2.26.2