X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure.in;h=ae35f555b643e9e883fcd0423db1b6da992d2fc4;hb=cab29a63de935871135a6ee0ed9d29d5edea0f27;hp=8c5a21028fd20fccdb20362ac37718804c80593c;hpb=2585fc34200938fb3fa55a450ea37f68012aafa7;p=openocd diff --git a/configure.in b/configure.in index 8c5a2102..ae35f555 100644 --- a/configure.in +++ b/configure.in @@ -14,7 +14,6 @@ AC_CHECK_HEADERS(strings.h) AC_HEADER_TIME AC_C_BIGENDIAN -AC_C_VARARRAYS AC_CHECK_FUNCS(strndup) AC_CHECK_FUNCS(strnlen) @@ -31,6 +30,10 @@ AC_ARG_ENABLE(parport, AS_HELP_STRING([--enable-parport], [Enable building the pc parallel port driver]), [build_parport=$enableval], [build_parport=no]) +AC_ARG_ENABLE(dummy, + AS_HELP_STRING([--enable-dummy], [Enable building the dummy port driver]), + [build_dummy=$enableval], [build_dummy=no]) + case "${host_cpu}" in i?86|x86*) AC_ARG_ENABLE(parport_ppdev, @@ -145,6 +148,14 @@ else AC_DEFINE(BUILD_PARPORT, 0, [0 if you don't want parport.]) fi +if test $build_dummy = yes; then + build_bitbang=yes + AC_DEFINE(BUILD_DUMMY, 1, [1 if you want dummy driver.]) +else + AC_DEFINE(BUILD_DUMMY, 0, [0 if you don't want dummy driver.]) +fi + + if test $build_ep93xx = yes; then build_bitbang=yes AC_DEFINE(BUILD_EP93XX, 1, [1 if you want ep93xx.]) @@ -244,6 +255,7 @@ AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(openocd, 1.0) AM_CONDITIONAL(PARPORT, test $build_parport = yes) +AM_CONDITIONAL(DUMMY, test $build_dummy = yes) AM_CONDITIONAL(GIVEIO, test $parport_use_giveio = yes) AM_CONDITIONAL(EP93XX, test $build_ep93xx = yes) AM_CONDITIONAL(ECOSBOARD, test $build_ecosboard = yes)