configure.ac
changeset 1609 94010c6d8198
parent 1567 1babaa430b7b
child 1773 5371f3e5f6a1
equal deleted inserted replaced
1608:004a8b91e927 1609:94010c6d8198
   100 AC_SUBST(LINUX_KERNEL_VERSION,[$linuxversion])
   100 AC_SUBST(LINUX_KERNEL_VERSION,[$linuxversion])
   101 AC_SUBST(LINUX_MOD_PATH,[/lib/modules/$kernelrelease/ethercat])
   101 AC_SUBST(LINUX_MOD_PATH,[/lib/modules/$kernelrelease/ethercat])
   102 AC_MSG_RESULT([$LINUX_SOURCE_DIR (Kernel $LINUX_KERNEL_RELEASE)])
   102 AC_MSG_RESULT([$LINUX_SOURCE_DIR (Kernel $LINUX_KERNEL_RELEASE)])
   103 
   103 
   104 #------------------------------------------------------------------------------
   104 #------------------------------------------------------------------------------
       
   105 # Generic Ethernet driver
       
   106 #------------------------------------------------------------------------------
       
   107 
       
   108 AC_ARG_ENABLE([generic],
       
   109     AS_HELP_STRING([--enable-generic],
       
   110                    [Enable generic Ethernet driver]),
       
   111     [
       
   112         case "${enableval}" in
       
   113             yes) enablegeneric=1
       
   114                 ;;
       
   115             no) enablegeneric=0
       
   116                 ;;
       
   117             *) AC_MSG_ERROR([Invalid value for --enable-generic])
       
   118                 ;;
       
   119         esac
       
   120     ],
       
   121     [enablegeneric=0]
       
   122 )
       
   123 
       
   124 AM_CONDITIONAL(ENABLE_GENERIC, test "x$enablegeneric" = "x1")
       
   125 AC_SUBST(ENABLE_GENERIC,[$enablegeneric])
       
   126 
       
   127 #------------------------------------------------------------------------------
   105 # 8139too driver
   128 # 8139too driver
   106 #------------------------------------------------------------------------------
   129 #------------------------------------------------------------------------------
   107 
   130 
   108 AC_ARG_ENABLE([8139too],
   131 AC_ARG_ENABLE([8139too],
   109     AS_HELP_STRING([--enable-8139too],
   132     AS_HELP_STRING([--enable-8139too],
   492     ],
   515     ],
   493     [userlib=1]
   516     [userlib=1]
   494 )
   517 )
   495 
   518 
   496 AM_CONDITIONAL(ENABLE_USERLIB, test "x$userlib" = "x1")
   519 AM_CONDITIONAL(ENABLE_USERLIB, test "x$userlib" = "x1")
       
   520 
       
   521 #------------------------------------------------------------------------------
       
   522 # TTY driver
       
   523 #------------------------------------------------------------------------------
       
   524 
       
   525 AC_ARG_ENABLE([tty],
       
   526     AS_HELP_STRING([--enable-tty],
       
   527                    [Generation of the ec_tty module (default: no)]),
       
   528     [
       
   529         case "${enableval}" in
       
   530             yes) tty=1
       
   531                 ;;
       
   532             no) tty=0
       
   533                 ;;
       
   534             *) AC_MSG_ERROR([Invalid value for --enable-tty])
       
   535                 ;;
       
   536         esac
       
   537     ],
       
   538     [tty=0]
       
   539 )
       
   540 
       
   541 AM_CONDITIONAL(ENABLE_TTY, test "x$tty" = "x1")
       
   542 AC_SUBST(ENABLE_TTY,[$tty])
   497 
   543 
   498 #------------------------------------------------------------------------------
   544 #------------------------------------------------------------------------------
   499 
   545 
   500 AC_CONFIG_FILES([
   546 AC_CONFIG_FILES([
   501         Doxyfile
   547         Doxyfile
   512         examples/dc_user/Makefile
   558         examples/dc_user/Makefile
   513         examples/mini/Kbuild
   559         examples/mini/Kbuild
   514         examples/mini/Makefile
   560         examples/mini/Makefile
   515         examples/rtai/Kbuild
   561         examples/rtai/Kbuild
   516         examples/rtai/Makefile
   562         examples/rtai/Makefile
       
   563         examples/tty/Makefile
       
   564         examples/tty/Kbuild
   517         examples/user/Makefile
   565         examples/user/Makefile
   518         include/Makefile
   566         include/Makefile
   519         lib/Makefile
   567         lib/Makefile
   520         m4/Makefile
   568         m4/Makefile
   521         master/Kbuild
   569         master/Kbuild
   523         script/Makefile
   571         script/Makefile
   524         script/init.d/Makefile
   572         script/init.d/Makefile
   525         script/init.d/ethercat
   573         script/init.d/ethercat
   526         script/sysconfig/Makefile
   574         script/sysconfig/Makefile
   527         tool/Makefile
   575         tool/Makefile
       
   576         tty/Makefile
       
   577         tty/Kbuild
   528 ])
   578 ])
   529 AC_OUTPUT
   579 AC_OUTPUT
   530 
   580 
   531 #------------------------------------------------------------------------------
   581 #------------------------------------------------------------------------------