Mercurial > hg > xemacs-beta
annotate modules/sample/external/configure.ac @ 4716:dca5bb2adff1
Don't cons with #'mapcar calls where the result is discarded,
decide on mapc-internal at compile time if the Common Lisp functionality is
not being used.
2009-10-12 Aidan Kehoe <kehoea@parhasard.net>
* cl-macs.el (mapc):
New compiler macro, use mapc-internal at
compile time if we're not using the Common Lisp functionality.
* bytecomp.el (byte-compile-mapcar, byte-compile-maplist): New.
If the return value of mapcar is being discarded, compile it to a
mapc-internal call instead, and warn, because the programmer
probably can't rely on always being compiled by an XEmacs that
does this. Similarly for maplist and mapl; and use
byte-compile-funarg for map, mapl, mapcan, mapcon.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Mon, 12 Oct 2009 17:19:52 +0100 |
| parents | 25e260cb7994 |
| children | dce479915b74 |
| rev | line source |
|---|---|
| 996 | 1 # Process this file with autoconf to produce a configure script. |
| 2 AC_INIT([Sample module], [1.0], [xemacs-beta@xemacs.org]) | |
| 3 AC_PREREQ(2.53) | |
| 4 AC_REVISION($Revision: 1.1 $) | |
| 5 AC_COPYRIGHT([Configuration script for the sample module. | |
| 6 Copyright (C) 2002 Jerry James. | |
| 7 | |
| 8 This file is not part of XEmacs.]) | |
| 9 | |
| 10 AC_CONFIG_SRCDIR([sample.c]) | |
| 11 AC_PROG_CC | |
| 12 AC_PROG_INSTALL | |
| 13 AC_SUBST(CFLAGS) | |
| 14 AC_SUBST(LDFLAGS) | |
| 15 | |
| 16 # Find ELLCC | |
| 17 AC_ARG_VAR([ELLCC], [The path to the ellcc module compiler]) | |
| 18 AC_PATH_PROG([ELLCC], [ellcc], ["FAIL"]) | |
| 19 AS_IF([test "$ELLCC" = "FAIL"], [AS_ERROR([Cannot find ellcc])]) | |
| 20 AC_SUBST(ELLCC) | |
| 21 | |
| 22 # Insert autoconf macros here to find the headers, libraries, other | |
| 23 # programs, etc. needed by your module. | |
| 24 | |
| 25 AC_CONFIG_FILES([Makefile.in Makefile]) | |
| 26 AC_OUTPUT |
