From: Frank Mori Hess Date: Sun, 25 Jan 2004 00:09:59 +0000 (+0000) Subject: add -DKBUILD_MODNAME=... to COMEDI_CFLAGS (required by linux/module.h X-Git-Tag: r0_7_69~126 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9b2bd6b5eb13b99d7af16100f54671f9f3d5c19f;p=comedi.git add -DKBUILD_MODNAME=... to COMEDI_CFLAGS (required by linux/module.h to make modprobe recognize modules under 2.6 --- diff --git a/configure.ac b/configure.ac index 9b4a8028..6df0aa4e 100644 --- a/configure.ac +++ b/configure.ac @@ -50,7 +50,7 @@ CC=$LINUX_CC #ERROR_CFLAGS="-Werror" -COMEDI_CFLAGS="$ERROR_CFLAGS -I\$(top_srcdir)/include/" +[COMEDI_CFLAGS="$ERROR_CFLAGS -I\$(top_srcdir)/include/ -DKBUILD_MODNAME=\$(shell echo \$@ | sed 's/\(.*\)\.o/\1/g' | sed 's/\(.*\)_ko.*/\1/g')"] AC_SUBST(COMEDI_CFLAGS) AC_ARG_ENABLE([pcmcia],[ --disable-pcmcia Disable support for PCMCIA devices],