#! /bin/sh
#
+# This script was hacked from Linux-2.2.17
+#
+#
# This script is used to configure the Linux kernel.
#
# It was inspired by the challenge in the original Configure script
# 24 January 1999, Michael Elizabeth Chastain, <mec@shout.net>
# - Improve the exit message (Jeff Ronne).
+. scripts/preconfigure
+
#
# Make sure we're really running bash.
#
shift
fi
-CONFIG_IN=./config.in
+CONFIG_IN=./scripts/config.in
if [ "$1" != "" ] ; then
CONFIG_IN=$1
fi
-DEFAULTS=arch/$ARCH/defconfig
+#DEFAULTS=arch/$ARCH/defconfig
+DEFAULTS=scripts/config.dist
if [ -f .config ]; then
DEFAULTS=.config
fi
mv .config .config.old
fi
mv .tmpconfig .config
-mv .tmpconfig.h include/linux/autoconf.h
-
-echo
-echo "*** End of Linux kernel configuration."
-echo "*** Check the top-level Makefile for additional configuration."
-if [ ! -f .hdepend -o "$CONFIG_MODVERSIONS" = "y" ] ; then
- echo "*** Next, you must run 'make dep'."
-else
- echo "*** Next, you may run 'make zImage', 'make zdisk', or 'make zlilo'."
-fi
+#mv .tmpconfig.h include/linux/autoconf.h
+mv .tmpconfig.h include/modbuild/config.h
+
+echo
+echo "Makefiles for ${project} should now be configured."
+echo "Run 'make dep ; make' to compile, and then 'make install' to install."
+echo
+echo "If ${project} has never been installed on your system,"
+echo "then run 'make dev' to build the device nodes '/dev/comedi*'."
echo
exit 0