Annotation of Gnu-Mach/Drivers.macros, revision 1.1

1.1     ! root        1: dnl
        !             2: dnl Some autoconf macros useful for device driver configuration
        !             3: dnl
        !             4: dnl Copyright 1997 Free Software Foundation, Inc.
        !             5: dnl Permission to use, copy, modify and distribute this software and its
        !             6: dnl documentation is hereby granted, provided that both the copyright
        !             7: dnl notice and this permission notice appear in all copies of the
        !             8: dnl software, derivative works or modified versions, and any portions
        !             9: dnl thereof, and that both notices appear in supporting documentation.
        !            10: dnl 
        !            11: dnl THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
        !            12: dnl "AS IS" CONDITION.  THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
        !            13: dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
        !            14: dnl USE OF THIS SOFTWARE.
        !            15: 
        !            16: AC_SUBST(device_drivers)
        !            17: 
        !            18: dnl AC_DRIVER_ALIAS(alias, canonical) makes --enable-alias have the
        !            19: dnl same effect as --enable-canonical.
        !            20: 
        !            21: AC_DEFUN(AC_DRIVER_ALIAS, [
        !            22: [#] Checking for alias [$1]
        !            23: AC_ARG_ENABLE([$1],,
        !            24: enable_[$2]="$enable_[$1]"
        !            25: )])
        !            26: 
        !            27: dnl AC_DRIVER_CLASS(name,option,files) defines a class of drivers.  If
        !            28: dnl any driver declared by AC_DRIVER to be in that class is selected
        !            29: dnl by the user, then set the specified option with AC_DEFINE and add
        !            30: dnl the specified files to the output variable `device_drivers'.  This
        !            31: dnl macro must precede the use of any corresponding AC_DRIVER macros.
        !            32: 
        !            33: AC_DEFUN(AC_DRIVER_CLASS, [
        !            34: driver_class_[$1]_option=[$2]
        !            35: driver_class_[$1]_files="[$3]"
        !            36: ])
        !            37: 
        !            38: dnl AC_DRIVER(name,option,files [,class]) detects option --enable-name.  If
        !            39: dnl it's set, then `option' is defined with AC_DEFINE, and files is
        !            40: dnl added to the output variable `device_drivers'.  The driver is of class 
        !            41: dnl `class'; see the comments on AC_DRIVER_CLASS for more information.
        !            42: 
        !            43: AC_DEFUN(AC_DRIVER, [
        !            44: [#] Checking for device driver option [$1]
        !            45: AC_ARG_ENABLE([$1],,
        !            46: AC_DEFINE([$2])
        !            47: device_drivers="$device_drivers [$3]"
        !            48: if test "driver_class_[$4]_selected+set" != set; then
        !            49:   driver_class_[$4]_selected=yes
        !            50:   AC_DEFINE_UNQUOTED($driver_class_[$4]_option)
        !            51:   device_drivers="$device_drivers $driver_class_[$4]_files"
        !            52: fi
        !            53: )])
        !            54: 
        !            55: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.