From 7d244761461701e1161df32c2f1d4cd50ae2bb26 Mon Sep 17 00:00:00 2001 From: drath Date: Tue, 1 Aug 2006 09:45:22 +0000 Subject: - allow building for MinGW using either -mno-cygwin or the MinGW gcc - added GiveIO support to the amt_jtagaccel driver - explicitly disable loopback mode for FT2232 devices - changed configuration options n[st]rst_delay to jtag_n[st]rst_delay - shutdown network services on exit git-svn-id: svn://svn.berlios.de/openocd/trunk@80 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- configure.in | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 2cf08cf4..3518b38d 100644 --- a/configure.in +++ b/configure.in @@ -48,14 +48,22 @@ AC_ARG_WITH(ftd2xx, case $host in *-*-cygwin*) - is_cygwin=yes is_win32=yes AC_ARG_ENABLE(parport_giveio, AS_HELP_STRING([--enable-parport_giveio], [Enable use of giveio for parport instead of ioperm]), [parport_use_giveio=$enableval], [parport_use_giveio=no]) - - AC_DEFINE(IS_CYGWIN, 1, [1 if building for Cygwin.]) + + AC_COMPILE_IFELSE(AC_LANG_PROGRAM([],[return __MINGW32__;]),[is_mingw=yes],[is_mingw=no]) + if test $is_mingw = yes; then + AC_DEFINE(IS_MINGW, 1, [1 if building for MinGW.]) + parport_use_giveio=yes + is_cygwin=no + else + is_cygwin=yes + AC_DEFINE(IS_CYGWIN, 1, [1 if building for Cygwin.]) + fi + AC_DEFINE(IS_WIN32, 1, [1 if building for Win32.]) ;; *-*-mingw*) -- cgit v1.2.3