[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] [bug #42595] Faulty swig version number comparison
From: |
David Forrest |
Subject: |
[Simulavr-devel] [bug #42595] Faulty swig version number comparison |
Date: |
Thu, 26 Jun 2014 03:46:20 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Firefox/29.0 |
Follow-up Comment #2, bug #42595 (project simulavr):
Here's a patch with a better workaround:
git diff |sed 's/^/ /'
diff --git a/configure.ac b/configure.ac
index 0401762..0089e8b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,11 +58,17 @@ if test ${CXX_PROG} = no ; then
# AC_PROG_CXX sets g++, if nothing is found, but if not found make will
fail
AC_MSG_ERROR([C++ compiler ${CXX} not found],1)
fi
-AC_PROG_SWIG(2.0.0)
+
+AC_PROG_SWIG(3.0.0)
if test "x$SWIG_LIB" = "x"; then
- # fall back to SWIG version 1.3.x in case of SWIG 2.0.x not found!
- AC_MSG_NOTICE([Don't worry, we can try to find SWIG 1.3.x!])
- AC_PROG_SWIG(1.3.18)
+ # fall back to SWIG version 2.0.x in case of SWIG 3.0.x not found!
+ AC_MSG_NOTICE([Don't worry, we can try to find SWIG 2.0.x!])
+ AC_PROG_SWIG(2.0.0)
+ if test "x$SWIG_LIB" = "x"; then
+ # fall back to SWIG version 1.3.x in case of SWIG 2.0.x not found!
+ AC_MSG_NOTICE([Don't worry, we can try to find SWIG 1.3.x!])
+ AC_PROG_SWIG(1.3.18)
+ fi
fi
SWIG_ENABLE_CXX
SWIG_MULTI_MODULE_SUPPORT
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?42595>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/