]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Avoid uninitialized use of $U.
authorEric Blake <ebb9@byu.net>
Tue, 9 Feb 2010 13:22:59 +0000 (06:22 -0700)
committerEric Blake <ebb9@byu.net>
Wed, 10 Feb 2010 13:47:28 +0000 (06:47 -0700)
Automake sets up $U in AM_C_PROTOTYPES, but we can't assume that
automake is always in use.

* lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Ensure $U is
set if automake did not define it.
* THANKS: Update.
Reported by Heiko Schlichting, via Julien Élie.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
THANKS
lib/autoconf/general.m4

index 18aa1699faab61142b8b8e832ec28096abbe29e4..a23101e691e70cfe012e92972c6246ac9e4b77ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-02-10  Eric Blake  <ebb9@byu.net>
+
+       Avoid $U if it is not initialized.
+       * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Ensure $U is
+       set if automake did not define it.
+       * THANKS: Update.
+       Reported by Heiko Schlichting, via Julien Élie.
+
 2010-01-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Fix substitution of carriage return on Darwin.
diff --git a/THANKS b/THANKS
index ddb1db4976bcc870e045e8605057f26f53b55226..8f90e90e8488c7fb92929774c754f5b44cdf7dd1 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -155,6 +155,7 @@ Hans Aberg                  haberg@math.su.se
 Hans Olsson                 Hans.Olsson@dna.lth.se
 Hans Ulrich Niedermann      hun@n-dimensional.de
 Harlan Stenn                stenn@whimsy.udel.edu
+Heiko Schlichting           inn-workers@fu-berlin.de
 Henk Krus                   h.krus@cyclone.nl
 Howard Chu                  hyc@highlandsun.com
 Ian Lance Taylor            ian@cygnus.com
@@ -200,6 +201,7 @@ Juan Carlos Hurtado         adso.lists@gmail.com
 Jules Colding               colding@42tools.com
 Julian Onions               j.onions@nexor.co.uk
 Julien Danjou               acid@debian.org
+Julien Élie                 julien@trigofacile.com
 Julio Garvia                ?
 Justace Clutter             ?
 Jörn Rennecke               amylaar@cygnus.co.uk
index 28fd972e842f463a00e5e93892f2adf545ca6d9d..15640c82e44ca07974836aa02bc016e948c4a5ef 100644 (file)
@@ -2919,6 +2919,8 @@ AC_DEFUN([AC_LIBOBJ],
 AC_DEFUN([_AC_LIBOBJS_NORMALIZE],
 [ac_libobjs=
 ac_ltlibobjs=
+m4_ifndef([AM_C_PROTOTYPES], [U=
+])dnl
 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
   # 1. Remove the extension, and $U if already installed.
   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'