Mercurial > hg > xemacs-beta
annotate modules/canna/configure.ac @ 5568:b039c0f018b8
Error if byte-compiling a form hasn't wrapped byte-compile-inbuffer.
lisp/ChangeLog addition:
2011-09-09 Aidan Kehoe <kehoea@parhasard.net>
* bytecomp.el (byte-compile-from-buffer):
If compiling a form has changed the current buffer (that is, some
eval-when-compile form hasn't done save-excursion when
appropriate), error and exit; we can't guarantee we'll give useful
code in that context. See
http://mid.gmane.org/20110909110831.GD2875@acm.acm and related
discussion.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Fri, 09 Sep 2011 22:50:31 +0100 |
parents | 56b64a055043 |
children |
rev | line source |
---|---|
2973 | 1 # Process this file with autoconf to produce a configure script. |
2 # This is only used for independent module building. | |
3 AC_INIT([Sample module], [1.0], [xemacs-beta@xemacs.org]) | |
4 AC_PREREQ(2.53) | |
3010 | 5 AC_REVISION($Revision: 1.3 $) |
2973 | 6 AC_COPYRIGHT([Configuration script for the sample module. |
7 Copyright (C) 2002 Jerry James. | |
8 | |
9 This file is part of XEmacs. | |
10 | |
5418
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3010
diff
changeset
|
11 XEmacs is free software: you can redistribute it and/or modify it |
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3010
diff
changeset
|
12 under the terms of the GNU General Public License as published by the |
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3010
diff
changeset
|
13 Free Software Foundation, either version 3 of the License, or (at your |
2973 | 14 option) any later version. |
15 | |
5418
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3010
diff
changeset
|
16 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3010
diff
changeset
|
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3010
diff
changeset
|
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3010
diff
changeset
|
19 for more details. |
2973 | 20 |
21 You should have received a copy of the GNU General Public License | |
5418
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3010
diff
changeset
|
22 along with XEmacs. If not, see <http://www.gnu.org/licenses/>.]) |
2973 | 23 |
24 AC_CONFIG_SRCDIR([sample.c]) | |
25 AC_PROG_CC | |
26 AC_PROG_INSTALL | |
27 AC_SUBST(CFLAGS) | |
28 AC_SUBST(LDFLAGS) | |
29 | |
30 # Find ELLCC | |
31 AC_ARG_VAR([ELLCC], [The path to the ellcc module compiler]) | |
32 AC_PATH_PROG([ELLCC], [ellcc], ["FAIL"]) | |
33 AS_IF([test "$ELLCC" = "FAIL"], [AS_ERROR([Cannot find ellcc])]) | |
34 | |
35 # Insert autoconf macros here to find the headers, libraries, other | |
36 # programs, etc. needed by your module. If other libraries will be linked | |
37 # with your module, then after detecting them, use a line of this form last: | |
38 | |
39 # detect canna | |
40 canna_includes_found=no | |
41 if test "$with_canna" != "no"; then | |
42 AC_CHECK_HEADER(canna/jrkanji.h,canna_includes_found=yes) | |
43 fi | |
44 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \ | |
45 -d "/usr/local/canna/include"; then | |
46 save_c_switch_site="$c_switch_site" | |
47 c_switch_site="$c_switch_site -I/usr/local/canna/include" | |
48 AC_CHECK_HEADER(canna/jrkanji.h,canna_includes_found=yes) | |
49 if test "$canna_includes_found" != "yes"; then | |
50 c_switch_site="$save_c_switch_site" | |
51 with_canna="no" | |
52 fi | |
53 fi | |
54 | |
55 test -z "$with_canna" && { AC_CHECK_HEADER(canna/RK.h, , with_canna=no) } | |
56 test -z "$with_canna" && { AC_CHECK_LIB(RKC, RkBgnBun, [:],with_canna=no) } | |
57 test -z "$with_canna" && { AC_CHECK_LIB(canna,jrKanjiControl,[:],with_canna=no) } | |
58 test -z "$with_canna" && with_canna=yes | |
59 if test "$with_canna" = "yes"; then | |
60 AC_DEFINE(HAVE_CANNA) | |
61 LIBS="-lcanna -lRKC" | |
62 fi | |
63 | |
64 AC_SUBST(canna_libs, "$LIBS") | |
65 | |
66 # This part should appear unchanged in every module configure.ac | |
67 AC_SUBST(PROGNAME, "module") | |
68 AC_SUBST(MOD_CC, "@ELLCC@") | |
69 AC_SUBST(MODARCHDIR, "\$(shell @ELLCC@ --mod-archdir)") | |
70 AC_SUBST(MAKE_DOCFILE, "\$(MODARCHDIR)/make-docfile") | |
71 AC_SUBST(MODCFLAGS, "\$(CFLAGS) --mode=compile --mod-output=\$@ -I\$(MODARCHDIR)/include") | |
72 AC_SUBST(INSTALLPATH, "\$(shell @ELLCC@ --mod-site-location)") | |
73 AC_SUBST(MOD_INSTALL_PROGRAM, "@INSTALL_PROGRAM@") | |
74 AC_SUBST(OBJECT_TO_BUILD, "\$(MODNAME).ell") | |
75 | |
76 AC_CONFIG_FILES([Makefile.in Makefile]) | |
77 AC_OUTPUT |