[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] [bug #30584] failed to configure with swig 2.0.0
From: |
Ed Marshall |
Subject: |
[Simulavr-devel] [bug #30584] failed to configure with swig 2.0.0 |
Date: |
Tue, 08 Feb 2011 22:40:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.94 Safari/534.13 |
Follow-up Comment #5, bug #30584 (project simulavr):
Er, that was a horribly incomplete version of what's needed. My apologies.
Basically, all of the swig and python macros should be updated:
http://www.gnu.org/software/autoconf-archive/The-Macros.html#The-Macros
The rest are probably a bit outdated at this point as well, and could likely
use a refresh. (Although that will probably generate a significant amount of
new work.) Once that's done, this is what the patch to configure.ac and
src/Makefile.am ends up looking like:
diff --git a/configure.ac b/configure.ac
index c785e5f..dc0b53e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,9 +27,9 @@ fi
LT_INIT
LT_PREREQ([2.2])
AC_PROG_CXX
-AC_PROG_SWIG(1.3.18)
-SWIG_ENABLE_CXX
-SWIG_MULTI_MODULE_SUPPORT
+AX_PKG_SWIG(1.3.18)
+AX_SWIG_ENABLE_CXX
+AX_SWIG_MULTI_MODULE_SUPPORT
AM_CONDITIONAL([USE_SWIG],[test "x$SWIG" != 'x'])
####
@@ -41,11 +41,11 @@ AX_TCL_ENVIRONMENT
####
# python support, used for regression test and python module
####
-AZ_PYTHON_DEFAULT
-AZ_PYTHON_ENABLE
-AZ_PYTHON_VERSION_ENSURE([2.4.0])
-SWIG_PYTHON
-AM_PATH_PYTHON
+AX_PYTHON_DEFAULT
+AX_PYTHON_ENABLE
+AX_PYTHON_VERSION_ENSURE([2.4.0])
+AX_SWIG_PYTHON
+AX_PYTHON_PATH
###
# Regression test suite support programs
diff --git a/src/Makefile.am b/src/Makefile.am
index fa47240..cec8de8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -39,7 +39,7 @@ lib_pysimulavr_la_LIBADD= libsim.la
-L$(AVR_LIBBFD_LIBPATH) -lbfd -L$(AVR_LIBIBERTY_LIBPATH) -liberty
pysimulavr_wrap.cpp: $(PYTHON_MODUL_INTERFACE)
- $(SWIG) $(SWIG_PYTHON_OPT) $(PYTHON_XTRA_INC) -o $@ $?
+ $(SWIG) $(AX_SWIG_PYTHON_OPT) $(PYTHON_XTRA_INC) -o $@ $?
$(PYTHON_MODUL_LIB): lib_pysimulavr.la
if SYS_MINGW
This gets me through a "make dist". "make distcheck" is failing for an
unrelated reason, but
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?30584>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/