summaryrefslogtreecommitdiff
path: root/Drivers.macros
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-10-15 12:22:53 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:45 +0200
commit39cc5b8d65adfd01a4d12f9379866fae257a3772 (patch)
tree97341a2adfcf393abcd56cafb5a247a1a8ad4bcf /Drivers.macros
parenta4fe2f31d1b0de36bdd22c6ed61eacfb15064001 (diff)
2006-10-15 Thomas Schwinge <tschwinge@gnu.org>
[task #5956 --- ``Automake'ify GNU Mach's code base''] * linux/configfrag.ac (AC_PREREQ, AC_INIT, AC_CONFIG_SRCDIR) (AC_CONFIG_HEADER, AC_CANONICAL_HOST, hurd_SYSTYPE, AC_CONFIG_FILES) (AC_OUTPUT): Don't invoke. (../../version.m4, ../../Drivers.macros, ../../aclocal.m4): Don't include. <case "$host_cpu">: Only evaluate for i386. (--disable-default-device-drivers): Remove configuraion option. (LINUX_DEV, __KERNEL__): AC_DEFINE these. (scsi, net, pcmcia, wireless): Remove AC_DRIVER_CLASS instantiations. (device_driver_group): New shell function. (AC_OPTION, AC_OPTION_nodef): New functions. (linux_DRIVER): Rename function to AC_Linux_DRIVER and adopt. (linux_DRIVER_nodef): Likewise to AC_Linux_DRIVER_nodef. <Configuration options>: Adopt to the new functions introduced above and re-position parts. <Process device driver groups>: Adopt to the changes related to device driver groups. * linux/configure.in <AC_CONFIG_LINKS>: Move to... * linux/configfrag.ac: ... here. * linux/configure.in: Remove file. * linux/configure: Likewise. * i386/linux/Makerules.in: Likewise. * Drivers.macros: Likewise.
Diffstat (limited to 'Drivers.macros')
-rw-r--r--Drivers.macros67
1 files changed, 0 insertions, 67 deletions
diff --git a/Drivers.macros b/Drivers.macros
deleted file mode 100644
index 6d882d6..0000000
--- a/Drivers.macros
+++ /dev/null
@@ -1,67 +0,0 @@
-dnl
-dnl Some autoconf macros useful for device driver configuration
-dnl
-dnl Copyright 1997, 2006 Free Software Foundation, Inc.
-dnl Permission to use, copy, modify and distribute this software and its
-dnl documentation is hereby granted, provided that both the copyright
-dnl notice and this permission notice appear in all copies of the
-dnl software, derivative works or modified versions, and any portions
-dnl thereof, and that both notices appear in supporting documentation.
-dnl
-dnl THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
-dnl "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
-dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
-dnl USE OF THIS SOFTWARE.
-
-AC_SUBST([device_drivers])
-
-dnl AC_DRIVER_CLASS(name,option,files) defines a class of drivers. If
-dnl any driver declared by AC_DRIVER to be in that class is selected
-dnl by the user, then set the specified option with AC_DEFINE and add
-dnl the specified files to the output variable `device_drivers'. This
-dnl macro must precede the use of any corresponding AC_DRIVER macros.
-
-AC_DEFUN([AC_DRIVER_CLASS], [
-AH_TEMPLATE([$2], [Driver Class $1])
-driver_class_$1_option=$2
-driver_class_$1_files="$3"
-])
-
-dnl AC_DRIVER(name,description,option,files[,class]). Process configuration
-dnl option --enable-`name' (with description dnl `description'). If
-dnl it's set, then `option' is defined with AC_DEFINE, and files is
-dnl added to the output variable `device_drivers'. The driver is of class
-dnl `class'; see the comments on AC_DRIVER_CLASS for more information.
-dnl By default, the value from $enable_default_device_drivers is considered
-dnl when deciding whether to activate the device driver or not.
-
-AC_DEFUN([AC_DRIVER], [
-unset enableval
-AC_ARG_ENABLE([$1],
- AS_HELP_STRING([--disable-$1], [disable $2]))
-[enableval=${enableval-$enable_default_device_drivers}
-if test x"$enableval" = xyes; then]
- AC_DEFINE([$3], [1], [$1: $2])
- [device_drivers="$device_drivers $4"
- if test "${driver_class_$5_selected+set}" != set; then
- driver_class_$5_selected=yes]
- AC_DEFINE_UNQUOTED([$driver_class_$5_option], [1])
- [device_drivers="$device_drivers $driver_class_$5_files"
- fi
-fi]])
-
-dnl AC_DEFUN_nodef() is like AC_DRIVER(), but doesn't consider
-dnl $enable_default_device_drivers.
-
-AC_DEFUN([AC_DRIVER_nodef], [
-AC_ARG_ENABLE([$1],
- AS_HELP_STRING([--enable-$1], [enable $2]), [
-if test x"$enableval" = xyes; then
- AC_DEFINE([$3], [1], [$1: $2])
- device_drivers="$device_drivers $4"
- if test "${driver_class_$5_selected+set}" != set; then
- driver_class_$5_selected=yes
- AC_DEFINE_UNQUOTED([$driver_class_$5_option], [1])
- device_drivers="$device_drivers $driver_class_$5_files"
- fi
-fi])])