Commit graph

30 commits

Author SHA1 Message Date
Scott Furry
e9badc5a77
Python 2 to 3 migration - m4 folder (#144)
Update cython.m4 and pythonhead.m4 files to be compatible with py2/3

pythonhead.m4 changes taken from:
  https://raw.githubusercontent.com/posborne/dbus-python/master/m4/am-check-python-headers.m4

cython.m4 changes taken from:
  https://raw.githubusercontent.com/alisw/rivet/master/m4/cython.m4
2023-05-12 21:18:39 -07:00
Peter Johnson
cd1e6f51de Update gettext. 2014-08-10 11:39:19 -07:00
Peter Johnson
85f4120b6a Improve check for Cython version.
[#249 state:resolved]
2012-08-30 23:36:39 -07:00
Peter Johnson
ac59d2353b Fix cython.m4 for beta versions of Cython.
[#204 state:resolved]
2011-06-25 15:09:03 -07:00
Peter Johnson
d190d9dfa5 Fix #206: Update gettext bits to gettext 0.17.
svn path=/trunk/yasm/; revision=2333
2010-06-16 05:13:23 +00:00
Peter Johnson
553e615b56 Unbreak make distcheck.
svn path=/trunk/yasm/; revision=2268
2010-01-07 06:55:03 +00:00
Peter Johnson
fcb228f18c Use Cython instead of Pyrex.
svn path=/trunk/yasm/; revision=2256
2010-01-01 20:55:07 +00:00
Peter Johnson
24a600a075 Update to gettext 0.16.1.
Note that due to an m4 bug, you need at least m4 1.4.5, and autoconf built
with the newer version of m4, to run autoconf on the source now (this does
not apply if you're just running ./configure from a tarball).

svn path=/trunk/yasm/; revision=1768
2007-02-13 07:31:11 +00:00
Peter Johnson
5498e865f1 Pyrex detection: strip a-z suffix to correctly detect Pyrex 0.9.5.1a.
Reported by: Danny Reeves <danny_reeves@hotmail.com>

svn path=/trunk/yasm/; revision=1764
2007-02-12 08:44:58 +00:00
Peter Johnson
e6d2aab9ea * ax_create_stdint_h.m4: Fix a couple bugs.
The m4_ifvaln() call doesn't seem to serve a purpose and generated bad shell
script code (trying to actually run a header file).
_STDINT_HEADER_INTPTR ifdef shouldn't wrap INTMAX_T check.

svn path=/trunk/yasm/; revision=1519
2006-05-04 03:59:39 +00:00
Peter Johnson
846b658f5b * ax_create_stdint_h.m4: Don't bother using head -1 to get the first line of
gcc --version; this is just extra information.  POSIX needs -n 1 instead of
-1; instead of dealing with this, just disable this function.

Noticed by: Vikas Kumar <walburn@gmail.com>

svn path=/trunk/yasm/; revision=1480
2006-04-09 06:05:37 +00:00
Peter Johnson
949965d5cb * pyrex.m4: Add a little documentation.
* setup.py, yasm.pyx, *.pxi: Add copyright/license.

svn path=/trunk/yasm/; revision=1458
2006-04-04 08:06:39 +00:00
Peter Johnson
b22db3f5ca Be much smarter at checking for and running Pyrex. Pyrex is a Python module
and the "pyrexc" command is just a wrapper, so instead of looking for
"pyrexc" look for the module instead.

* pyrex.m4: New macro to check Pyrex version.
* m4/Makefile.inc: Add to dist.
* configure.ac: Use macro to check for Pyrex >= 0.9.3.
* python-yasm/Makefile.inc: Run Python directly instead of pyrexc wrapper.

svn path=/trunk/yasm/; revision=1457
2006-04-04 07:51:42 +00:00
Peter Johnson
a5d91fba6a Hook Python module into the build (even though it's pretty incomplete),
enabled with --enable-python (defaults to auto-detect).

Thanks to some magic in python-yasm/Makefile.inc and setup.py, this actually
plays nicely with automake distcheck.

* m4/pythonhead.m4: Script to find Python.h.
* m4/Makefile.inc: Include it in distfiles.
* configure.ac: Add --enable-python option and Python and Pyrex detection.
* tools/Makefile.inc: Pull tools/python-yasm/Makefile.inc into build.
* python-yasm/Makefile.inc: Add automake build magic for extension.
* setup.py: Likewise.

svn path=/trunk/yasm/; revision=1456
2006-04-04 06:07:32 +00:00
Peter Johnson
f928be04b2 * hamt.c: Use uintptr_t to correctly cast to integer from pointer. On some
platforms (notably Win64), unsigned long is not big enough to hold a
pointer.
* Makefile.am, configure.ac: Use ax_create_stdint_h to get us uintptr_t.
* ax_create_stdint_h.m4: Implementation of ax_create_stdint_h autoconf
macro from http://ac-archive.sourceforge.net/guidod/ax_create_stdint_h.html

svn path=/trunk/yasm/; revision=1223
2005-09-05 20:53:07 +00:00
Peter Johnson
882738b234 Greatly simplify build system by removing libtool and integrating formerly
dynamically loaded modules into the now-static libyasm.  I now anticipate
that there would be very few users of the dynamic loading features, and it
yielded a lot of instability and build headaches for very little benefit.
The new build should now be much more cross-platform and faster (there was
a lot of overhead in finding and loading modules).

 * libtool.m4, ltdl.m4: Delete.
 * m4/Makefile.am: Rename to m4/Makefile.inc and remove references to above.
   Change to use subdirectory (flat) build rather than recursive build.
 * Makefile.am: Include m4/Makefile.inc rather than having it in SUBDIRS.
 * libltdl: Delete.

 * frontends/yasm/yasm-module.c: Delete.
 * basename.c, dirname.c: Delete (no longer needed by yasm-module.c).
 * genmodule.c, module.in: Generator and template for new module.c included
   in libyasm that replaces the old yasm-module.c (module.in is a modified
   rename of yasm-module.c).
 * module.h: Modified rename of old yasm-module.h.
 * libyasm.h: Include libyasm/module.h.
 * libyasm/Makefile.inc: Build generator and include module.c in libyasm.
 * yasm.c: Use new libyasm module interface.

 * (many) Makefile.inc: Remove libtool libraries, build all modules into
   libyasm library.

 * configure.ac: Remove libtool/libltdl references.

 * Mkfiles/vc/yasm-module.c: Remove.  Still need to fix some of the other
   Mkfiles/ build files for these changes.


svn path=/trunk/yasm/; revision=1183
2004-12-01 07:49:18 +00:00
Peter Johnson
7ad7637861 Add work around for static-build libtool binaries to find preloaded modules
without the presence of the associated ".la" file.  This caused the Win32
nightly snapshots to be unusable (as they're static-built libtool).

At present, a search for a preloaded module occurs first, before the ".la"
is even looked for.

Noticed by: Oliver <mybox@ollysoft.de>

* libtool.m4: Define new config.h variable LIBTOOL_LIBEXT that is the
extension used for static libraries (e.g. ".a").  This is the extension used
for preloaded symbols.

* ltdl.c (lt_dlopenext): Add first search function to find filename.a prior
to other searches (.la and .so), so preloaded symbols are hit first.

svn path=/trunk/yasm/; revision=1157
2004-10-11 00:23:10 +00:00
Peter Johnson
f094f47abb Update auto*, libtool, libltdl, and gettext scripts.
Make cross-building work by changing how re2c and other build tools are
compiled.

svn path=/trunk/yasm/; revision=1127
2004-08-14 23:07:58 +00:00
Peter Johnson
e9084ab7c4 Previous commit broke build on non-CygWin. Fixed so it now works on both
CygWin and non-CygWin machines.

svn path=/trunk/yasm/; revision=1112
2004-04-03 19:35:48 +00:00
Peter Johnson
155a517051 Disable checking for system-wide ARGZ functions; they're broken on CygWin
at the minimum.

svn path=/trunk/yasm/; revision=1111
2004-04-03 04:26:17 +00:00
Peter Johnson
e0d47c5366 Take out the CXX and GCJ tests; we don't need them, and they break builds on
some OS'es.

svn path=/trunk/yasm/; revision=876
2003-03-18 04:42:49 +00:00
Peter Johnson
ad6ab091e8 Update to GNU Libtool 20030216 (from Cygwin) to get dynamic linking working
under Cygwin.

svn path=/trunk/yasm/; revision=860
2003-03-15 23:19:33 +00:00
Peter Johnson
9431bc6437 Add __int64 check.
svn path=/trunk/yasm/; revision=833
2003-02-13 07:11:56 +00:00
Peter Johnson
f4920c410a Add long long detection to unsigned long long detection.
svn path=/trunk/yasm/; revision=832
2003-02-13 06:56:34 +00:00
Peter Johnson
a5a1a1f938 Update to gettext-0.11.5.
svn path=/trunk/yasm/; revision=719
2002-10-02 07:19:44 +00:00
Peter Johnson
0c49ed0c7b Bring in AC_PROVIDE_IFELSE changes necessary for AC_LIBTOOL_DLOPEN and like
under autoconf 2.53+.

svn path=/trunk/yasm/; revision=656
2002-07-13 18:51:26 +00:00
Peter Johnson
91b09aa668 Integrate gettext, libtool, and libltdl into CVS and more tightly into
configuration process.

svn path=/trunk/yasm/; revision=640
2002-05-29 05:25:32 +00:00
Peter Johnson
9453c2b02c Include all the m4 files in EXTRA_DIST.
svn path=/trunk/yasm/; revision=639
2002-05-29 05:05:53 +00:00
Peter Johnson
873a785904 Initial revision
svn path=/trunk/yasm/; revision=635
2002-05-29 05:00:31 +00:00
Peter Johnson
57dfb00241 Initial revision
svn path=/trunk/yasm/; revision=632
2002-05-29 04:46:54 +00:00