/[hurd]/gnumach/Drivers.macros
ViewVC logotype

Diff of /gnumach/Drivers.macros

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by roland, Fri Jul 23 06:48:59 1999 UTC revision 1.5.4.1 by marcus, Tue Jul 12 23:01:06 2005 UTC
# Line 13  dnl "AS IS" CONDITION.  THE FREE SOFTWAR Line 13  dnl "AS IS" CONDITION.  THE FREE SOFTWAR
13  dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE  dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
14  dnl USE OF THIS SOFTWARE.  dnl USE OF THIS SOFTWARE.
15    
16  AC_SUBST(device_drivers)  AC_SUBST([device_drivers])
17    
18  dnl AC_DRIVER_ALIAS(alias, canonical) makes --enable-alias have the  dnl AC_DRIVER_ALIAS(alias, canonical) makes --enable-alias have the
19  dnl same effect as --enable-canonical.  dnl same effect as --enable-canonical.
20    
21  AC_DEFUN(AC_DRIVER_ALIAS, [  AC_DEFUN([AC_DRIVER_ALIAS], [
22  [#] Checking for alias [$1]  [#] Checking for alias [$1]
23  AC_ARG_ENABLE([$1],,  AC_ARG_ENABLE([$1],
24  enable_[$2]="$enable_[$1]"    AS_HELP_STRING([--enable-$1], [enable driver alias $1 for $2]),
25      [enable_$2="$enable_$1"]
26  )])  )])
27    
28  dnl AC_DRIVER_CLASS(name,option,files) defines a class of drivers.  If  dnl AC_DRIVER_CLASS(name,option,files) defines a class of drivers.  If
# Line 30  dnl by the user, then set the specified Line 31  dnl by the user, then set the specified
31  dnl the specified files to the output variable `device_drivers'.  This  dnl the specified files to the output variable `device_drivers'.  This
32  dnl macro must precede the use of any corresponding AC_DRIVER macros.  dnl macro must precede the use of any corresponding AC_DRIVER macros.
33    
34  AC_DEFUN(AC_DRIVER_CLASS, [  AC_DEFUN([AC_DRIVER_CLASS], [
35  driver_class_[$1]_option=[$2]  AH_TEMPLATE([$2], [Driver Class $1])
36  driver_class_[$1]_files="[$3]"  driver_class_$1_option=$2
37    driver_class_$1_files="$3"
38  ])  ])
39    
40  dnl AC_DRIVER(name,option,files [,class]) detects option --enable-name.  If  dnl AC_DRIVER(name,option,files [,class]) detects option --enable-name.  If
# Line 40  dnl it's set, then `option' is defined w Line 42  dnl it's set, then `option' is defined w
42  dnl added to the output variable `device_drivers'.  The driver is of class  dnl added to the output variable `device_drivers'.  The driver is of class
43  dnl `class'; see the comments on AC_DRIVER_CLASS for more information.  dnl `class'; see the comments on AC_DRIVER_CLASS for more information.
44    
45  AC_DEFUN(AC_DRIVER, [  AC_DEFUN([AC_DRIVER], [
46  [#] Checking for device driver option [$1]  [#] Checking for device driver option [$1]
47  AC_ARG_ENABLE([$1],,  AC_ARG_ENABLE([$1],
48    AS_HELP_STRING([--enable-$1], [enable driver $1]), [
49  if test "x$enableval" != xno; then  if test "x$enableval" != xno; then
50  AC_DEFINE([$2])  AC_DEFINE([$2], [1], [$1])
51  device_drivers="$device_drivers [$3]"  device_drivers="$device_drivers [$3]"
52  if test "${driver_class_[$4]_selected+set}" != set; then  if test "${driver_class_[$4]_selected+set}" != set; then
53    driver_class_[$4]_selected=yes    driver_class_[$4]_selected=yes
54    AC_DEFINE_UNQUOTED($driver_class_[$4]_option)    AC_DEFINE_UNQUOTED([$driver_class_$4_option], [1])
55    device_drivers="$device_drivers $driver_class_[$4]_files"    device_drivers="$device_drivers $driver_class_[$4]_files"
56  fi  fi
57  fi  fi
58  )])  ])])

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.5.4.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26