+2004-12-17 Stepan Kasal <kasal@ucw.cz>
+
+ * lib/autoconf/general.m4 (_AC_LIBOBJ): We can use AC_SUBST/2,
+ remove the comment which said we cannot.
+
2004-12-17 Stepan Kasal <kasal@ucw.cz>
Add a specialized check for resolv.h. Thanks to Gerrit P. Haase,
# _AC_LIBOBJ(FILE-NAME-NOEXT, ACTION-IF-INDIR)
# --------------------------------------------
# We need `FILE-NAME-NOEXT.o', save this into `LIBOBJS'.
-# We don't use AC_SUBST/2 because it forces an unnecessary eol.
m4_define([_AC_LIBOBJ],
[AS_LITERAL_IF([$1],
[AC_LIBSOURCE([$1.c])],
[$2])dnl
-AC_SUBST([LIB@&t@OBJS])dnl
case $LIB@&t@OBJS in
"$1.$ac_objext" | \
*" $1.$ac_objext" | \
"$1.$ac_objext "* | \
*" $1.$ac_objext "* ) ;;
- *) LIB@&t@OBJS="$LIB@&t@OBJS $1.$ac_objext" ;;
+ *) AC_SUBST([LIB@&t@OBJS], ["$LIB@&t@OBJS $1.$ac_objext"]) ;;
esac
])
-
# AC_LIBOBJ(FILE-NAME-NOEXT)
# -------------------------
# We need `FILE-NAME-NOEXT.o', save this into `LIBOBJS'.
-# We don't use AC_SUBST/2 because it forces an unnecessary eol.
m4_define([AC_LIBOBJ],
[_AC_LIBOBJ([$1],
[AC_DIAGNOSE(syntax,