From: Frank Mori Hess Date: Wed, 29 Dec 2004 02:57:50 +0000 (+0000) Subject: handle errors when trying to get kernel flags X-Git-Tag: r0_7_70~75 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1007b4dc2d76c77cf7990db2822475f06f1c89f5;p=comedi.git handle errors when trying to get kernel flags --- diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index 31bf5db4..d774476a 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -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}