look for swig2.0 binary #1518

Merged
1 commit merged into from Oct 1, 2012
Jump to file or symbol
Failed to load files and symbols.
+6 −0
Split
View
@@ -1585,6 +1585,12 @@ fi
echo "Checking for SWIG installation"
AC_PATH_PROG(SWIG_EXE, swig, "none")
+if test "$SWIG_EXE" = "none"; then
+ AC_CHECK_PROG(SWIG20_EXE, swig2.0, , "none")
+ if test "$SWIG20_EXE" != "none" ; then
+ SWIG_EXE=$SWIG20_EXE
+ fi
+fi
if test "$SWIG_EXE" = "none"; then
AC_MSG_ERROR($missing_program)
fi