Mercurial > hg > xemacs-beta
annotate modules/sample/internal/configure.ac @ 5932:d2c2d83dbb52 cygwin
working with new Xpm.dll
| author | Henry Thompson <ht@markup.co.uk> |
|---|---|
| date | Wed, 09 Dec 2015 15:50:11 +0000 |
| parents | dd9541c73e70 |
| children |
| rev | line source |
|---|---|
| 996 | 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) | |
| 5 AC_REVISION($Revision: 1.1 $) | |
| 6 AC_COPYRIGHT([Configuration script for the sample module. | |
| 7 Copyright (C) 2002 Jerry James. | |
| 8 | |
| 9 This file is part of XEmacs. | |
| 10 | |
|
5417
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
11 XEmacs is free software: you can redistribute it and/or modify it |
|
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
12 under the terms of the GNU General Public License as published by the |
|
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
13 Free Software Foundation, either version 3 of the License, or (at your |
| 996 | 14 option) any later version. |
| 15 | |
|
5417
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
16 XEmacs is distributed in the hope that it will be useful, but WITHOUT |
|
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
19 for more details. |
| 996 | 20 |
| 21 You should have received a copy of the GNU General Public License | |
|
5417
dd9541c73e70
Converted the modules samples to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
996
diff
changeset
|
22 along with XEmacs. If not, see <http://www.gnu.org/licenses/>.]) |
| 996 | 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 AC_SUBST(sample_libs, "$LIBS") | |
| 39 | |
| 40 # This part should appear unchanged in every module configure.ac | |
| 41 AC_SUBST(PROGNAME, "module") | |
| 42 AC_SUBST(MOD_CC, "@ELLCC@") | |
| 43 AC_SUBST(MODARCHDIR, "\$(shell @ELLCC@ --mod-archdir)") | |
| 44 AC_SUBST(MAKE_DOCFILE, "\$(MODARCHDIR)/make-docfile") | |
| 45 AC_SUBST(MODCFLAGS, "\$(CFLAGS) --mode=compile --mod-output=\$@ -I\$(MODARCHDIR)/include") | |
| 46 AC_SUBST(INSTALLPATH, "\$(shell @ELLCC@ --mod-site-location)") | |
| 47 AC_SUBST(MOD_INSTALL_PROGRAM, "@INSTALL_PROGRAM@") | |
| 48 AC_SUBST(OBJECT_TO_BUILD, "\$(MODNAME).ell") | |
| 49 | |
| 50 AC_CONFIG_FILES([Makefile.in Makefile]) | |
| 51 AC_OUTPUT |
