[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getline AC_LIBOBJs
From: |
Akim Demaille |
Subject: |
Re: getline AC_LIBOBJs |
Date: |
Thu, 23 Oct 2003 09:53:25 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
> A more general solution in Autoconf would be 2. writing a wrapper
> function that checked and set a shell variable based on the argument to
> AC_LIBOBJ or 3. writing an AC_LIBOBJ substitute that greps $LIBOBJ for
> the argument before adding it to the variable.
I'm installing the following in Autoconf, which, hopefully, we should
be able to release RSN :(
Index: ChangeLog
from Akim Demaille <address@hidden>
* lib/autoconf/general.m4 (_AC_LIBOBJ): Don't insert twice the
same object file in $LIBOBJS.
Reported by Alexandre Duret-Lutz & Derek Robert Price.
* doc/autoconf.texi (Generic Functions): Adjust.
Index: NEWS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/NEWS,v
retrieving revision 1.314
diff -u -u -r1.314 NEWS
--- NEWS 20 Oct 2003 16:18:26 -0000 1.314
+++ NEWS 23 Oct 2003 07:47:21 -0000
@@ -10,6 +10,10 @@
** New macros
AC_LANG_WERROR
+** AC_LIBOBJS
+ No longer includes twice the same file in LIBOBJS if invoked
+ multiple times.
+
* Major changes in Autoconf 2.57f
Released 2003-10-01, by Akim Demaille.
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.770
diff -u -u -r1.770 autoconf.texi
--- doc/autoconf.texi 20 Oct 2003 16:18:26 -0000 1.770
+++ doc/autoconf.texi 23 Oct 2003 07:47:22 -0000
@@ -4261,9 +4261,9 @@
to replace a missing or broken implementation of @var{function}.
Technically, it adds @address@hidden to the output
-variable @code{LIBOBJS} and calls @code{AC_LIBSOURCE} for
address@hidden@var{function}.c}. You should not directly change @code{LIBOBJS},
-since this is not traceable.
+variable @code{LIBOBJS} if it is not already in, and calls
address@hidden for @address@hidden You should not
+directly change @code{LIBOBJS}, since this is not traceable.
@end defmac
@defmac AC_LIBSOURCE (@var{file})
Index: lib/autoconf/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.820
diff -u -u -r1.820 general.m4
--- lib/autoconf/general.m4 20 Oct 2003 16:18:26 -0000 1.820
+++ lib/autoconf/general.m4 23 Oct 2003 07:47:22 -0000
@@ -2409,7 +2409,14 @@
[AC_LIBSOURCE([$1.c])],
[$2])dnl
AC_SUBST([LIB@&address@hidden)dnl
-LIB@&address@hidden"$LIB@&address@hidden $1.$ac_objext"])
+case $LIB@&address@hidden in
+ "$1.$ac_objext" | \
+ *" $1.$ac_objext" | \
+ "$1.$ac_objext "* | \
+ *" $1.$ac_objext "* ) ;;
+ *) LIB@&address@hidden"$LIB@&address@hidden $1.$ac_objext" ;;
+esac
+])
- Re: getline AC_LIBOBJs,
Akim Demaille <=