Replaced AC_PATH_PROG with AC_PATH_TOOL when detecting the 'strip' program.
authorIan Abbott <abbotti@mev.co.uk>
Mon, 10 Jul 2006 10:06:34 +0000 (10:06 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 10 Jul 2006 10:06:34 +0000 (10:06 +0000)
This is so the correct 'strip' is used when cross-compiling.

configure.ac
m4/as-modtool.m4

index f69d02f3d8c5251133caf7fba299753233eca6c9..7fa375c59b76644ceda5a743d39731dd0982bf95 100644 (file)
@@ -32,7 +32,7 @@ AC_DEFINE_UNQUOTED(COMEDI_MINORVERSION, $COMEDI_MINORVERSION, [Comedi minor vers
 AC_DEFINE_UNQUOTED(COMEDI_MICROVERSION, $COMEDI_MICROVERSION, [Comedi micro version])
 
 AC_PROG_CC()
-AC_PATH_PROG(STRIP,strip)
+AC_PATH_TOOL([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.])
index 8de3c4aefbe6b5e45c811afc520e7e85fbf2e1b5..628a708a4f76159f89ec25240eee20411ca9634b 100644 (file)
@@ -28,7 +28,7 @@ dnl modpost step
 
 AC_DEFUN([AS_LINUX_MODTOOL],
 [
-       AC_PATH_PROG(STRIP, strip)
+       AC_PATH_TOOL([STRIP], [strip])
        AC_PATH_PROG([DEPMOD], [depmod], [no], [$PATH:/sbin:/usr/sbin:/usr/local/sbin])
 
        dnl this can be overridden in Makefile.am