summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@red-bean.com>1998-10-06 22:00:25 +0000
committerJim Blandy <jimb@red-bean.com>1998-10-06 22:00:25 +0000
commit8aa5c148d170c6a4fe648529333ae5dcebc32231 (patch)
tree5d35b4006ea0fe8ce8dae1cf3e09da616889d46a
parentbc08dbdb3a5bb51514f08d9b8721646c5ec656a9 (diff)
downloadguile-8aa5c148d170c6a4fe648529333ae5dcebc32231.tar.gz
*** empty log message ***
-rw-r--r--ChangeLog8
-rw-r--r--NEWS43
-rw-r--r--guile-config/ChangeLog5
3 files changed, 52 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 51b3b4880..d0fa57e1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1998-10-07 Jim Blandy <jimb@zwingli.cygnus.com>
+
+ * guile.m4 (GUILE_FLAGS): New macro.
+
+ * guile.m4 (AM_INIT_GUILE_MODULE): Deleted; it doesn't do anything
+ terribly helpful any more, nobody's using it, and this is not
+ really the way I want to handle modules anyway.
+
1998-10-03 Jim Blandy <jimb@zwingli.cygnus.com>
* configure.in (FD_SETTER, FILE_CNT_GPTR): New cases for SCO's
diff --git a/NEWS b/NEWS
index 922e24fb0..74c8977e6 100644
--- a/NEWS
+++ b/NEWS
@@ -66,11 +66,12 @@ usually just a `-I' flag to help the compiler find the Guile headers.
*** `guile-config link' prints any linker flags necessary to link with Guile.
+
This command writes to its standard output a list of flags which you
-must pass to the linker, if you want to link your code against the
-Guile library. The flags include '-lguile' itself, any other
-libraries the Guile library depends upon, and any `-L' flags needed to
-help the linker find those libraries.
+must pass to the linker to link your code against the Guile library.
+The flags include '-lguile' itself, any other libraries the Guile
+library depends upon, and any `-L' flags needed to help the linker
+find those libraries.
For example, here is a Makefile rule that builds a program named 'foo'
from the object files ${FOO_OBJECTS}, and links them against Guile:
@@ -89,6 +90,40 @@ the analogous script for the GTK+ GUI toolkit, which is called
`gtk-config'.
+** Use the GUILE_FLAGS macro in your configure.in file to find Guile.
+
+If you are using the GNU autoconf package to configure your program,
+you can use the GUILE_FLAGS autoconf macro to call `guile-config'
+(described above) and gather the necessary values for use in your
+Makefiles.
+
+The GUILE_FLAGS macro expands to configure script code which runs the
+`guile-config' script, to find out where Guile's header files and
+libraries are installed. It sets two variables, marked for
+substitution, as by AC_SUBST.
+
+ GUILE_CFLAGS --- flags to pass to a C or C++ compiler to build
+ code that uses Guile header files. This is almost always just a
+ -I flag.
+
+ GUILE_LDFLAGS --- flags to pass to the linker to link a
+ program against Guile. This includes `-lguile' for the Guile
+ library itself, any libraries that Guile itself requires (like
+ -lqthreads), and so on. It may also include a -L flag to tell the
+ compiler where to find the libraries.
+
+GUILE_FLAGS is defined in the file guile.m4, in the top-level
+directory of the Guile distribution. You can copy it into your
+package's aclocal.m4 file, and then use it in your configure.in file.
+
+If you are using the `aclocal' program, distributed with GNU automake,
+to maintain your aclocal.m4 file, the Guile installation process
+installs guile.m4 where aclocal will find it. All you need to do is
+use GUILE_FLAGS in your configure.in file, and then run `aclocal';
+this will copy the definition of GUILE_FLAGS into your aclocal.m4
+file.
+
+
* Changes to Scheme functions and syntax
** Multi-byte strings have been removed, as have multi-byte and wide
diff --git a/guile-config/ChangeLog b/guile-config/ChangeLog
index 7b49291c4..4728e4de2 100644
--- a/guile-config/ChangeLog
+++ b/guile-config/ChangeLog
@@ -1,3 +1,8 @@
+1998-10-07 Jim Blandy <jimb@zwingli.cygnus.com>
+
+ * guile-config.in (build-link): Include a -R flag in the output
+ from link. Not sure if this is the right thing to do.
+
1998-10-05 Jim Blandy <jimb@zwingli.cygnus.com>
* guile-config.in (build-compile, help-compile, usage-compile):