add check for depmod to configure
authorFrank Mori Hess <fmhess@speakeasy.net>
Sun, 29 Feb 2004 22:14:25 +0000 (22:14 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sun, 29 Feb 2004 22:14:25 +0000 (22:14 +0000)
Makefile.am
configure.ac

index b9d28e04b3d0baa6e6ab19e7fb81c2f83b076125..459d9939aaeffec8ef1bbd98de16fad2b0b8b729 100644 (file)
@@ -21,6 +21,6 @@ moo:
        
 install-data-hook:
        if [ -z "$(DESTDIR)" ] ; then \
-               depmod -ae $(LINUX_KERNELRELEASE); \
+               $(DEPMOD) -ae $(LINUX_KERNELRELEASE); \
        fi
 
index fe13f0fefcb6129e5483b5ce0531db8188e32fca..90cfc68aaaf78423d10cb6d6afdd838b433f964e 100644 (file)
@@ -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()