summaryrefslogtreecommitdiff
path: root/acinclude.m4
AgeCommit message (Collapse)AuthorFilesLines
2020-01-28Fix check for rl_get_keymapDaniel Llorens1-4/+6
This lets Guile build on OS X (tested on 10.14) with the system-provided libreadline. * acinclude.m4 (GUILE_READLINE): Check for rl_get_keymap_name instead of rl_get_keymap. The system provided libreadline is an alias to libedit, which has _keymap but not _keymap_name, and Guile uses both. * guile-readline/readline.c: Adjust the include guard.
2019-05-22Enable JIT on aarch64 and armv7Andy Wingo1-23/+1
* acinclude.m4 (GUILE_ENABLE_JIT): For MIPS, PPC, sparc, ia64, hppa, s390, and alpha: mark JIT as unavailable. Only architectures left are x86-64, i686, aarch64, and armv7. If JIT is available, enable it by default; previously only x86-64 and i686 were supported.
2019-04-28Enable JIT on 32-bit x86Andy Wingo1-2/+3
* acinclude.m4 (GUILE_ENABLE_JIT): Turn on JIT for 32-bit x86.
2018-10-10Fix GUILE_ENABLE_JIT after latest changeAndy Wingo1-1/+1
* acinclude.m4: Fix syntax.
2018-10-10Only enable JIT by default on x86-64v2.9.0Andy Wingo1-1/+6
* acinclude.m4: Disable JIT by default on not-x86-64. Although I got JIT mostly working on 32-bit x86, I got nondeterministic segfaults deep in lightning, on that platform; perhaps indicating a bug in the optimizer. After a day of poking and not solving the problem, I think that I don't want the complexity of Lightning's node representation, especially on platforms that get less testing. In the future we'll use the lightning backends without the node layer. * NEWS: Update.
2018-09-17Fix --disable-jit compilationlightningAndy Wingo1-6/+4
* libguile/jit.c: Wrap the whole thing in ENABLE_JIT. * libguile/threads.c (on_thread_exit): * libguile/vm.c (scm_call_n): * libguile/init.c (scm_i_init_guile): * libguile/vm-engine.c (VM_NAME): Wrap calls into jit.c with ENABLE_JIT. * configure.ac: Move up AC_CANONICAL_TARGET, as autoconf was complaining about it coming after AC_ARG_PROGRAM. * acinclude.m4 (GUILE_ENABLE_JIT): Fix to honor --enable-jit arg.
2018-07-02Wire JIT availability check into Guile configureAndy Wingo1-0/+1
* acinclude.m4 (GUILE_ENABLE_JIT): Add missing AC_CANONICAL_TARGET. * configure.ac: Add check if JIT is available.
2018-07-02Add GUILE_ENABLE_JIT macroAndy Wingo1-2/+57
* acinclude.m4 (GUILE_ENABLE_JIT): New macro. * libguile/lightning/configure.ac: Remove now-unused file.
2016-08-07Capture full path to GUILE_FOR_BUILD.Andy Wingo1-0/+2
* acinclude.m4: Capture full path to GUILE_FOR_BUILD. Fixes #22342.
2013-10-14Put the readline extension in the extensionsdirAndy Wingo1-8/+1
* GUILE-VERSION: * acinclude.m4: * guile-readline/LIBGUILEREADLINE-VERSION: * guile-readline/Makefile.am: Rename libguile-readline-v-18.so to guile-readline.so, and install it to the extensions dir instead of the libdir. * guile-readline/ice-9/readline.scm: Load guile-readline instead of libguile-readline-v-18.
2012-07-06Use `clock-time' directly from Gnulib, but with a local patch.Ludovic Courtès1-39/+0
This is equivalent to the previous situation, but more easily maintainable. * acinclude.m4 (gl_CLOCK_TIME): Remove. * configure.ac: Remove explicit use of `gl_CLOCK_TIME'. * m4/gnulib-cache.m4 (gl_MODULES): Add `clock-time'. * gnulib-local/m4/clock_time.m4.diff: New file. * Makefile.am (EXTRA_DIST): Add it.
2012-02-04fix check for when libc already has clock_gettime / clock_getcpuclockidAndy Wingo1-1/+2
* acinclude.m4 (gl_CLOCK_TIME): If both clock_gettime and clock_getcpuclockid are present without -lrt and -lposix4, don't add any libs to LIB_CLOCK_GETTIME. Thanks to taylanbarirli@gmail.com.
2011-11-23configure: Make sure $GUILE_FOR_BUILD is suitable.Ludovic Courtès1-0/+50
* acinclude.m4 (GUILE_CHECK_VERSION, GUILE_CHECK_GUILE_FOR_BUILD): New macros. * configure.ac: Remove $GUILE_FOR_BUILD tests. Use `GUILE_CHECK_GUILE_FOR_BUILD'.
2011-07-13Disable TLS on NetBSD up to 5.x included.Ludovic Courtès1-1/+2
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Disable TLS on `x86_64-unknown-netbsd5.1' too.
2011-06-19Comment on the Gnulib `clock-gettime' workaround.Ludovic Courtès1-1/+1
* acinclude.m4: Remove `clock_time.m4' serial. * configure.ac: Add URL of the discussion about `clock-gettime'.
2011-06-19configure: Factorize code checking for `iconveh_' constants; use the cache.Ludovic Courtès1-0/+30
* configure.ac: Remove code that determines the values of the `iconveh_' constants. Use `GUILE_UNISTRING_ICONVEH_VALUES'. instead. * acinclude.m4 (GUILE_UNISTRING_CONSTANT, GUILE_UNISTRING_ICONVEH_VALUES): New macros.
2011-06-17check for clock_getcpuclockid in gl_CLOCK_TIMEAndy Wingo1-3/+9
* acinclude.m4 (gl_CLOCK_TIME): It could be that clock_gettime is in libc but clock_getcpuclockid is not, so check for that explicitly.
2011-05-04build support for detecting clock_gettime, with -lrt if neededAndy Wingo1-0/+32
* acinclude.m4 (gl_CLOCK_TIME): * configure.ac: Locally include gl_CLOCK_TIME. To be fixed properly when gnulib updates their license to reflect the actual BSD state of things. * libguile/Makefile.am (libguile_@GUILE_EFFECTIVE_VERSION@_la_LDFLAGS): Add -lrt for clock_gettime, if needed. * meta/guile-2.0-uninstalled.pc.in: * meta/guile-2.0.pc.in: Likewise, in Libs.private.
2011-04-22Turn the libunistring/iconv configure check into a macro.Ludovic Courtès1-0/+29
* acinclude.m4 (GUILE_LIBUNISTRING_WITH_ICONV_SUPPORT): New macro. * configure.ac: Use it.
2011-02-02Fix `GUILE_THREAD_LOCAL_STORAGE'.Ludovic Courtès1-8/+8
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Fix M4 quotation.
2011-02-02Disable use of thread-local storage on FreeBSD.Ludovic Courtès1-3/+9
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Explicitly require `AC_CANONICAL_HOST'. Disable on FreeBSD.
2010-07-22Add copyright notice to acinclude.m4.Thien-Thi Nguyen1-0/+21
* acinclude.m4: Add copyright notice, with years derived from "git log" output.
2010-07-22[build] Move GUILE_CONFIG_SCRIPT to acinclude.m4.Thien-Thi Nguyen1-0/+4
* configure.ac (GUILE_CONFIG_SCRIPT): Move from here... * acinclude.m4 (GUILE_CONFIG_SCRIPT): ...to here.
2010-07-09readline only handles SIGWINCHAndy Wingo1-0/+3
* acinclude.m4 (GUILE_READLINE): Check for rl_catch_signals and rl_catch_sigwinch. * guile-readline/readline.c (scm_init_readline): If we can, turn off readline's signal handling, because we can do our own. (scm_readline): Use dynwinds to handle resetting readline's state on nonlocal exit, not catches. (unwind_readline): Rename from handle_error.
2010-05-28add pdcurses to the list of termlibsVolker Grabsch1-1/+1
* acinclude.m4 (GUILE_READLINE): Look for pdcurses as found on MinGW. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2009-12-15Disable thread-local storage on Solaris 8.Ludovic Courtès1-1/+5
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Special-case `*solaris2.8'.
2009-11-24Properly quote the first argument to `AC_DEFINE{,_UNQUOTED}'.Ludovic Courtès1-3/+3
* acinclude.m4, configure.ac, examples/compat/acinclude.m4: Properly quote the first argument for `AC_DEFINE' and `AC_DEFINE_UNQUOTED'. * .x-sc_m4_quote_check: New file.
2009-11-24Really disable thread-local storage on NetBSD 5.0.Ludovic Courtès1-1/+1
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Adjust to match actual NetBSD 5 triplet, `x86_64-unknown-netbsd5.0.' (note the final dot).
2009-11-14Explicitly disable TLS on NetBSD 5.0.Ludovic Courtès1-5/+16
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Explicitly disable TLS on NetBSD 5.0.
2009-10-15Improve TLS detection for systems with compiler support but no libc support.release_1-9-4Ludovic Courtès1-2/+5
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): Use `AC_LINK_IFELSE' instead of `AC_COMPILE_IFELSE'.
2009-10-09Use TLS when available for `SCM_I_CURRENT_THREAD'.Ludovic Courtès1-0/+20
* acinclude.m4 (GUILE_THREAD_LOCAL_STORAGE): New macro. * configure.ac: Use it. * libguile/__scm.h (SCM_THREAD_LOCAL): New macro. * libguile/gen-scmconfig.c (main): Define `SCM_HAVE_THREAD_STORAGE_CLASS'. * libguile/gen-scmconfig.h.in (SCM_I_GSC_HAVE_THREAD_STORAGE_CLASS): New. * libguile/threads.c (scm_i_current_thread)[SCM_HAVE_THREAD_STORAGE_CLASS]: New. (SET_CURRENT_THREAD): New macro. (guilify_self_1, on_thread_exit, init_thread_key): Use it. * libguile/threads.h (scm_i_current_thread)[SCM_HAVE_THREAD_STORAGE_CLASS]: New declaration. (SCM_I_CURRENT_THREAD)[SCM_HAVE_THREAD_STORAGE_CLASS]: New macro. (init_thread_key_once, init_thread_key): Conditionalize on `!defined SCM_HAVE_THREAD_STORAGE_CLASS'. (scm_i_init_thread_for_guile): Update accordingly.
2009-09-24Move "-z relro" out of $LDFLAGS so it's not in `guile-2.0.pc'.Ludovic Courtès1-3/+9
* acinclude.m4 (GUILE_GNU_LD_RELRO): Substitute `GNU_LD_FLAGS'. * libguile/Makefile.am (libguile_la_LDFLAGS): Add $(GNU_LD_FLAGS). * srfi/Makefile.am (AM_LDFLAGS): New.
2009-09-10Link with `-z relro' when available.Ludovic Courtès1-0/+18
* acinclude.m4 (GUILE_GNU_LD_RELRO): New macro. * configure.in: Use `GUILE_GNU_LD_RELRO'.
2009-08-26fix guile-readline linker bugAndy Wingo1-1/+1
* acinclude.m4 (GUILE_READLINE): Fix typo that caused readline not to be linked to termcap.
2009-08-21Don't use a sub-`configure' for `guile-readline'.Ludovic Courtès1-0/+69
* acinclude.m4 (GUILE_READLINE): New macro, based on the former `guile-readline/configure.ac'. * configure.ac: Remove `AC_CONFIG_SUBDIRS' invocation. Add `GUILE_READLINE' invocation. Produce files under `guile-readline'. * guile-readline/Makefile.am: Conditionalize the meat under `HAVE_READLINE'. (INCLUDES): Rename to... (AM_CPPFLAGS): this. Users updates. (AM_CFLAGS): New variable. (libguilereadline_v_@LIBGUILEREADLINE_MAJOR@_la_LIBADD): Add $(READLINE_LIBS). * guile-readline/readline.c: Include <config.h>. * guile-readline/configure.ac, guile-readline/autogen.sh: Remove.
2007-02-20Remove changes that weren't in fact needed:Neil Jerram1-2/+0
- config.rpath in EXTRA_DIST, in Makefile.am - dummy definition of AM_INTL_SUBDIR, in acinclude.m4.
2007-02-18(AM_INTL_SUBDIR): Remove unnecessary dnl.Neil Jerram1-1/+1
2007-01-28* configure.in: Do AM_GNU_GETTEXT_VERSION, so that autoreconf willNeil Jerram1-0/+2
run autopoint. * acinclude.m4 (AM_INTL_SUBDIR): Provide dummy definition, to work around current autoconf/automake/gettext bug.
2006-06-06(ACX_PTHREAD): Update to latest definition fromNeil Jerram1-33/+31
autoconf macro archive, to fix pthread linking problem on Solaris 10, reported by Charles Gagnon.
2004-09-21* acinclude.m4 (ACX_PTHREAD): New.Marius Vollmer1-0/+203
* configure.in: Use it instead of simply looking for -lpthread. Thanks to Andreas Vögele!
2004-01-25Fix autoconf underquoting warningsNeil Jerram1-2/+2
2002-04-11* acinclude.m4: add definitions to AC_DEFINE calls for newRob Browning1-2/+8
autoconf.
2002-02-21* Quote multiword string using [ ].Neil Jerram1-1/+1
2001-06-02* acinclude.m4: AC_LANG not a variable now -- use __cplusplusRob Browning1-3/+2
unconditionally .
2001-05-15Removed copy of "libtool.m4".Marius Vollmer1-432/+0
2000-04-21* acinclude.m4: Removed qthreads macros. They are provided inMikael Djurfeldt1-140/+0
qthreads.m4, so these were redundant.
2000-01-18* acinclude.m4 (AC_LIBLTDL_CONVENIENCE): Add $(top_srcdir)/libltdlMikael Djurfeldt1-1/+1
instead of $(top_builddir)/libltdl to includepath.
2000-01-10* acinclude.m4: remove GUILE_DLSYM_USCORE, add libtool.m4Marius Vollmer1-38/+431
(no need to install libtool any more)
1999-09-03* acinclude.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): Fix typo inJim Blandy1-1/+1
variable name. (Thanks to Bill Schottstaedt.)
1999-08-29* acinclude.m4: Updated. (Thanks to Karl Eichwalder.)Mikael Djurfeldt1-656/+1