2002-09-04 Neal H. Walfield <neal@g10code.de>
authorNeal Walfield <neal@walfield.org>
Thu, 5 Sep 2002 00:44:29 +0000 (00:44 +0000)
committerNeal Walfield <neal@walfield.org>
Thu, 5 Sep 2002 00:44:29 +0000 (00:44 +0000)
* Makefile.am (inittests.stamp): Do not set LD_LIBRARY_PATH, but
rather prepend it.  Be more robust and prefer printf over echo -n.

tests/ChangeLog
tests/Makefile.am

index 940a37b..d9ff7eb 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-04  Neal H. Walfield  <neal@g10code.de>
+
+       * Makefile.am (inittests.stamp): Do not set LD_LIBRARY_PATH, but
+       rather prepend it.  Be more robust and prefer printf over echo -n.
+
 2002-09-04  Marcus Brinkmann  <marcus@g10code.de>
 
        * asschk.c (start_server): Close the parent's file descriptors in
@@ -5,7 +10,7 @@
        (read_assuan): Variable NREAD removed.  Cut off the received line
        currectly if more than one line was read.
 
-2002-09-03  Neal H. Walfield  <neal@cs.uml.edu>
+2002-09-03  Neal H. Walfield  <neal@g10code.de>
 
        * Makefile.am (inittests.stamp): Construct an LD_LIBRARY_PATH from
        LDFLAGS.
index 960b14b..b2fa567 100644 (file)
@@ -62,11 +62,17 @@ inittests.stamp: inittests
                                then \
                                  seen=1; \
                                else \
-                                 echo -n ":"; \
+                                 printf ":"; \
                                fi; \
-                               echo -n $${i} | sed 's/^-L//'; \
+                               printf "%s" "$${i}" | sed 's/^-L//'; \
                              fi; \
-                           done) \
+                           done; \
+                           if test $$seen != 0 \
+                              && test x$${LD_LIBRARY_PATH} != x; \
+                           then \
+                             printf ":"; \
+                           fi; \
+                           printf "%s" "$${LD_LIBRARY_PATH}") \
           srcdir=$(srcdir) $(TESTS_ENVIRONMENT) $(srcdir)/inittests
        echo timestamp >./inittests.stamp