cvs commit: hugs98/src Makefile.in config.h.in ffi.c hugs98/src/unix linking_notes acconfig.h aclocal.m4 configure configure.in hugs98/tests testScript

reid 2002/06/30 17:44:49 PDT Modified files: src Makefile.in config.h.in ffi.c src/unix acconfig.h aclocal.m4 configure configure.in tests testScript Added files: src/unix linking_notes Log: Autoconf changes to support new ffi. These have only been tested on Linux so far - help testing on other platforms would be appreciated. To test, search hugs98/src/unix/configure.in for HUGS_TRY_DYNLINK and add lines to test for the flags your platform needs. Changes: Added some GHC autoconfery for figuring out alignments, sizes, etc. (The results make it into header files but are currently ignored by all ffi code.) Added HUGS_TRY_DYNLINK to aclocal.m4 This tries to build a loadable library, tries loading it, and figures out whether to use a leading underscore. The loading test is a simplified version of the code in machdep.c. Typical uses: HUGS_TRY_DYNLINK("/LD") HUGS_TRY_DYNLINK("-shared") HUGS_TRY_DYNLINK("-shared -nostdlib") HUGS_TRY_DYNLINK("-bundle") HUGS_TRY_DYNLINK("-bundle -lc") Killed the old test for leading underscores - it is subsumed by the new autoconf code (which performs a more direct test). Merged the different pieces of compile and link code in ffi.c into a single piece of code (by moving all configuration into autoconf). Revision Changes Path 1.14 +0 -2 hugs98/src/Makefile.in 1.13 +214 -1 hugs98/src/config.h.in 1.16 +19 -23 hugs98/src/ffi.c 1.6 +182 -0 hugs98/src/unix/acconfig.h 1.7 +157 -59 hugs98/src/unix/aclocal.m4 1.24 +1040 -532 hugs98/src/unix/configure 1.27 +49 -30 hugs98/src/unix/configure.in 1.6 +5 -5 hugs98/tests/testScript
participants (1)
-
Alastair Reid