diff options
Diffstat (limited to 'drivers.m4')
-rw-r--r-- | drivers.m4 | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -420,10 +420,14 @@ if test "$PPM" = "yes"; then fi if test "$ROUTERBOARD" = "yes"; then - TEXT="yes" - GPIO="yes" - DRIVERS="$DRIVERS drv_RouterBoard.o" - AC_DEFINE(WITH_ROUTERBOARD,1,[RouterBoard driver]) + if test "$has_io_h" = "true"; then + TEXT="yes" + GPIO="yes" + DRIVERS="$DRIVERS drv_RouterBoard.o" + AC_DEFINE(WITH_ROUTERBOARD,1,[RouterBoard driver]) + else + AC_MSG_WARN(sys/io.h not found: RouterBoard driver disabled) + fi fi if test "$SAMPLE" = "yes"; then |