This is the mail archive of the gsl-discuss@sourceware.cygnus.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Missing doc


Mark Galassi asked me this patch.


Christopher 

--

Index: usage.texi
===================================================================
RCS file: /cvs/gsl/gsl/doc/usage.texi,v
retrieving revision 1.16
diff -u -r1.16 usage.texi
--- usage.texi  2000/03/31 23:34:49     1.16
+++ usage.texi  2000/04/11 15:21:46
@@ -96,6 +96,36 @@
 @noindent
 Further information is available using the command @code{gsl-config
--help}.
 
+The GSL library also provides some useful automake macros to use in
your 
+applications. The gsl.m4 file contains all needed to stuff in order
to
+have a clean Makefile generation.
+
+Simply add to your configure.in files the lines:
+
+@example
+AM_PATH_GSL(GSL_VERSION,
+           AC_MSG_ERROR(Error message!))
+@end example
+@noindent
+
+where GSL_VERSION is the GSL Library version you need to compile and
run your 
+application, and where "Error message" is the warning you want to
show if the 
+required library is not found.
+
+Then, you can add to your Makefile.am files the @code{$(GSL_LIBS)}
and 
+@code{$(GSL_CFLAGS)} variables to have the correct compiler flags. 
+@code{$(GSL_LIBS)} is equal to the output of the @code{gsl-config
--libs} 
+command as @code{$(GSL_CFLAGS)} is equal to @code{gsl-config
--cflags} 
+command.
+
+Tiny example:
+@example
+libgsdv_la_LDFLAGS =    \
+        $(GTK_LIBDIR) \
+        $(GTK_LIBS) -lgsdvgsl $(GSL_LIBS) -lgslblasnative
+@end example
+@noindent
+
 @node Shared Libraries
 @section Shared Libraries




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]