[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
prepend to LIBS, not append
From: |
Stepan Kasal |
Subject: |
prepend to LIBS, not append |
Date: |
Mon, 22 Aug 2005 14:57:55 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
Noah has just committed the following patch, written by Ralf.
Noah, the discussion was on the Autoconf list, so it should be
forwarded to autoconf-patches. So I'm doing it.
Thanks to both of you,
Stepan
2005-08-21 Ralf Wildenhues <address@hidden>
* doc/autoconf.texi (Defining Symbols, Changed Results):
Prepend to LIBS, not append, in examples.
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.925
retrieving revision 1.926
diff -u -r1.925 -r1.926
--- doc/autoconf.texi 6 Jul 2005 21:39:31 -0000 1.925
+++ doc/autoconf.texi 21 Aug 2005 18:40:46 -0000 1.926
@@ -7330,7 +7330,7 @@
@example
AC_CHECK_HEADER([elf.h],
- [AC_DEFINE([SVR4], [1], [System V Release 4]) LIBS="$LIBS -lelf"])
+ [AC_DEFINE([SVR4], [1], [System V Release 4]) LIBS="-lelf $LIBS"])
@end example
@noindent
@@ -7339,7 +7339,7 @@
@example
AC_CHECK_HEADER([elf.h],
[AC_DEFINE([SVR4], [1], [System V Release 4])
- LIBS="$LIBS -lelf"])
+ LIBS="-lelf $LIBS"])
@end example
@noindent
@@ -7347,7 +7347,7 @@
@example
AC_CHECK_HEADER([elf.h],
- [AC_DEFINE([SVR4], [1], [System V Release 4]); LIBS="$LIBS -lelf"])
+ [AC_DEFINE([SVR4], [1], [System V Release 4]); LIBS="-lelf $LIBS"])
@end example
@node Setting Output Variables
@@ -15340,7 +15340,7 @@
saved_LIBS="$LIBS"
for lib in bsd socket inet; do
AC_CHECKING(for syslog in -l$lib)
- LIBS="$saved_LIBS -l$lib"
+ LIBS="-l$lib $saved_LIBS"
AC_HAVE_FUNCS(syslog)
case "$DEFS" in
*-DHAVE_SYSLOG*) break ;;
@@ -15359,7 +15359,7 @@
# syslog is not in the default libraries. See if it's in some other.
for lib in bsd socket inet; do
AC_CHECK_LIB([$lib], [syslog], [AC_DEFINE([HAVE_SYSLOG])
- LIBS="$LIBS -l$lib"; break])
+ LIBS="-l$lib $LIBS"; break])
done
fi
@end example
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- prepend to LIBS, not append,
Stepan Kasal <=