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 |