handle errors when trying to get kernel flags
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 29 Dec 2004 02:57:50 +0000 (02:57 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 29 Dec 2004 02:57:50 +0000 (02:57 +0000)
m4/as-linux.m4

index 31bf5db4fc007c8699fa967e0ef62aa33e0e8a10..d774476a4a4548e68e8264472295a26a0c12aabf 100644 (file)
@@ -558,6 +558,10 @@ modules:
        @echo LINUX_AS=\"\$(AS)\"
 EOF
        make -C ${LINUX_DIR} SUBDIRS=${tmpdir} modules | grep ^LINUX_ >${tmpdir}/ack
+       if (($?)); then
+               echo make modules with LINUX_DIR=$(LINUX_DIR) failed.
+               exit 1
+       fi
        . ${tmpdir}/ack
        rm -rf ${tmpdir}