Use swig2.0 if available.

* configure.ac: Search for swig2.0 and swig.
* wrap/python/Makefile.am: Use $(SWIG).
This commit is contained in:
Alexandre Duret-Lutz 2010-12-23 22:27:07 +01:00
parent 3d61b3a3c0
commit 8419cb6f8d
3 changed files with 12 additions and 2 deletions

View file

@ -73,6 +73,9 @@ AC_CHECK_PROG([PERL], [perl], [perl])
AC_CHECK_PROG([SPIN], [spin], [spin])
AX_CHECK_VALGRIND
AC_CHECK_PROG([WRING2LBTT], [wring2lbtt], [wring2lbtt])
# Debian has a binary for SWIG 2.0 named swig2.0 and they kept swig as
# an alias for swig-1.3. Let's use the former when available.
AC_CHECK_PROGS([SWIG], [swig2.0 swig], [swig])
AC_CONFIG_FILES([
Makefile