X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=configure.ac;h=d0386bcfe1ad89fea298d1362af51f0c0a32ed99;hp=3c0056ccc49acb62468d1ca13946097cb1dfc2be;hb=2c6d312ec9e1aec514e80b7c317ed93d72197ba2;hpb=b72af9dbfcad8995704a943fecbd59eb3e5d9015 diff --git a/configure.ac b/configure.ac index 3c0056ccc4..d0386bcfe1 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ(2.60) AC_INIT([openocd], [0.6.0-dev], - [OpenOCD Mailing List ]) + [OpenOCD Mailing List ]) AC_CONFIG_SRCDIR([src/openocd.c]) m4_include(config_subdir.m4)dnl @@ -145,7 +145,7 @@ is_darwin=no # guess-rev.sh only exists in the repository, not in the released archives AC_MSG_CHECKING([whether to build a release]) -if test -f $srcdir/guess-rev.sh ; then +if test -x $srcdir/guess-rev.sh ; then build_release=no else build_release=yes @@ -498,6 +498,10 @@ if test $build_zy1000 = yes; then fi AC_MSG_RESULT($build_zy1000) +AC_ARG_ENABLE(remote-bitbang, + AS_HELP_STRING([--enable-remote-bitbang], [Enable building support for the Remote Bitbang jtag driver]), + [build_remote_bitbang=$enableval], [build_remote_bitbang=no]) + AC_MSG_CHECKING([whether to enable dummy minidriver]) if test $build_minidriver_dummy = yes; then @@ -567,6 +571,10 @@ case $host in fi parport_use_giveio=yes + if test x$build_buspirate = xyes; then + AC_MSG_ERROR([buspirate currently not supported by MinGW32 hosts]) + fi + CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO" AC_DEFINE(IS_MINGW, 1, [1 if building for MinGW.]) @@ -768,12 +776,19 @@ fi if test "$use_internal_jimtcl" = yes; then if test -f "$srcdir/jimtcl/configure.ac"; then - AX_CONFIG_SUBDIR_OPTION([jimtcl], [--with-jim-ext=nvp --disable-lineedit --disable-install-jim]) + AX_CONFIG_SUBDIR_OPTION([jimtcl], [--disable-install-jim]) else AC_MSG_ERROR([jimtcl not found, run git submodule init and git submodule update.]) fi fi +if test $build_remote_bitbang = yes; then + build_bitbang=yes + AC_DEFINE(BUILD_REMOTE_BITBANG, 1, [1 if you want the Remote Bitbang JTAG driver.]) +else + AC_DEFINE(BUILD_REMOTE_BITBNAG, 0, [0 if you don't want the Remote Bitbang JTAG driver.]) +fi + #-- Deal with MingW/Cygwin FTD2XX issues if test $is_win32 = yes; then @@ -1071,6 +1086,7 @@ AM_CONDITIONAL(VSLLINK, test $build_vsllink = yes) AM_CONDITIONAL(RLINK, test $build_rlink = yes) AM_CONDITIONAL(ULINK, test $build_ulink = yes) AM_CONDITIONAL(ARMJTAGEW, test $build_armjtagew = yes) +AM_CONDITIONAL(REMOTE_BITBANG, test $build_remote_bitbang = yes) AM_CONDITIONAL(BUSPIRATE, test $build_buspirate = yes) AM_CONDITIONAL(USB, test $build_usb = yes) AM_CONDITIONAL(IS_CYGWIN, test $is_cygwin = yes)