]> Savannah Git Hosting - gnulib.git/commitdiff
quotearg: Overcome wchar_t limitations.
authorBruno Haible <bruno@clisp.org>
Fri, 30 Jun 2023 20:54:12 +0000 (22:54 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 1 Jul 2023 08:05:37 +0000 (10:05 +0200)
* lib/quotearg.c: Include <uchar.h> instead of <wchar.h>, <wctype.h>.
(quotearg_buffer_restyled): Use mbrtoc32, c32isprint instead of mbrtowc,
iswprint.
* modules/quotearg (Files): Remove m4/mbstate_t.m4, m4/mbrtowc.m4
(redundant).
(Depends-on): Add uchar, mbrtoc32, c32isprint. Remove wchar, wctype-h,
mbrtowc.
(Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/quotearg-tests (Makefile.am): Link test-quotearg with
$(LIBUNISTRING) $(LIBC32CONV).
* modules/quotearg-simple (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/quotearg-simple-tests (Makefile.am): Link test-quotearg-simple
with $(LIBUNISTRING) $(LIBC32CONV).
--
* modules/quote (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
--
* modules/acl (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/acl-tests (Makefile.am): Link test-set-mode-acl and
test-copy-acl with $(LIBUNISTRING) $(LIBC32CONV).
* modules/copy-file (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/copy-file-tests (Makefile.am): Link test-copy-file with
$(LIBUNISTRING) $(LIBC32CONV).
--
* modules/argmatch (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/argmatch-tests (Makefile.am): Link test-argmatch with
$(LIBUNISTRING) $(LIBC32CONV).
* modules/backup-rename (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/backupfile (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/human (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
--
* modules/sh-quote (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/sh-quote-tests (Makefile.am): Link test-sh-quote with
$(LIBUNISTRING) $(LIBC32CONV).
* modules/system-quote (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/system-quote-tests (Makefile.am): Link test-system-quote-main
with $(LIBUNISTRING) $(LIBC32CONV).
* modules/csharpcomp (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/csharpexec (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/javacomp (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/javaexec (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
--
* modules/string-desc-quotearg (Link): New section.
* modules/string-desc-quotearg-tests (Makefile.am): Link
test-string-desc-quotearg with $(LIBUNISTRING) $(LIBC32CONV).
--
* modules/xmemcoll (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
--
* modules/closeout (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/readtokens-tests (Makefile.am): Link test-readtokens with
$(LIBUNISTRING) $(LIBC32CONV).
--
* modules/closein (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
* modules/closein-tests (Makefile.am): Link test-closein with
$(LIBUNISTRING) $(LIBC32CONV).
* modules/yesno-tests (Makefile.am): Link test-yesno with
$(LIBUNISTRING) $(LIBC32CONV).

32 files changed:
ChangeLog
lib/quotearg.c
modules/acl
modules/acl-tests
modules/argmatch
modules/argmatch-tests
modules/backup-rename
modules/backupfile
modules/closein
modules/closein-tests
modules/closeout
modules/copy-file
modules/copy-file-tests
modules/csharpcomp
modules/csharpexec
modules/human
modules/javacomp
modules/javaexec
modules/quote
modules/quotearg
modules/quotearg-simple
modules/quotearg-simple-tests
modules/quotearg-tests
modules/readtokens-tests
modules/sh-quote
modules/sh-quote-tests
modules/string-desc-quotearg
modules/string-desc-quotearg-tests
modules/system-quote
modules/system-quote-tests
modules/xmemcoll
modules/yesno-tests

index ead993b18dbae55fc7adb068742de43fe093f23a..382c6d031771ee1a9cb88be9556bf2ce83844509 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,63 @@
+2023-07-01  Bruno Haible  <bruno@clisp.org>
+
+       quotearg: Overcome wchar_t limitations.
+       * lib/quotearg.c: Include <uchar.h> instead of <wchar.h>, <wctype.h>.
+       (quotearg_buffer_restyled): Use mbrtoc32, c32isprint instead of mbrtowc,
+       iswprint.
+       * modules/quotearg (Files): Remove m4/mbstate_t.m4, m4/mbrtowc.m4
+       (redundant).
+       (Depends-on): Add uchar, mbrtoc32, c32isprint. Remove wchar, wctype-h,
+       mbrtowc.
+       (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/quotearg-tests (Makefile.am): Link test-quotearg with
+       $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/quotearg-simple (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/quotearg-simple-tests (Makefile.am): Link test-quotearg-simple
+       with $(LIBUNISTRING) $(LIBC32CONV).
+       --
+       * modules/quote (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       --
+       * modules/acl (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/acl-tests (Makefile.am): Link test-set-mode-acl and
+       test-copy-acl with $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/copy-file (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/copy-file-tests (Makefile.am): Link test-copy-file with
+       $(LIBUNISTRING) $(LIBC32CONV).
+       --
+       * modules/argmatch (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/argmatch-tests (Makefile.am): Link test-argmatch with
+       $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/backup-rename (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/backupfile (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/human (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       --
+       * modules/sh-quote (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/sh-quote-tests (Makefile.am): Link test-sh-quote with
+       $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/system-quote (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/system-quote-tests (Makefile.am): Link test-system-quote-main
+       with $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/csharpcomp (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/csharpexec (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/javacomp (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/javaexec (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       --
+       * modules/string-desc-quotearg (Link): New section.
+       * modules/string-desc-quotearg-tests (Makefile.am): Link
+       test-string-desc-quotearg with $(LIBUNISTRING) $(LIBC32CONV).
+       --
+       * modules/xmemcoll (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       --
+       * modules/closeout (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/readtokens-tests (Makefile.am): Link test-readtokens with
+       $(LIBUNISTRING) $(LIBC32CONV).
+       --
+       * modules/closein (Link): Add $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/closein-tests (Makefile.am): Link test-closein with
+       $(LIBUNISTRING) $(LIBC32CONV).
+       * modules/yesno-tests (Makefile.am): Link test-yesno with
+       $(LIBUNISTRING) $(LIBC32CONV).
+
 2023-06-30  Bruno Haible  <bruno@clisp.org>
 
        Accommodate a difference between mbrtowc and mbrtoc32.
index 975bd61dd0cf7a4bdaa0de7d3c8e15cb6fa9a7e9..c4133f10d6dc898790db31eb6e94bc5905cf7724 100644 (file)
@@ -41,8 +41,7 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
-#include <wchar.h>
-#include <wctype.h>
+#include <uchar.h>
 
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
@@ -535,7 +534,7 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize,
         case '`': case '|':
           /* A shell special character.  In theory, '$' and '`' could
              be the first bytes of multibyte characters, which means
-             we should check them with mbrtowc, but in practice this
+             we should check them with mbrtoc32, but in practice this
              doesn't happen so it's not worth worrying about.  */
           if (quoting_style == shell_always_quoting_style
               && elide_outer_quotes)
@@ -620,9 +619,9 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize,
 
                 do
                   {
-                    wchar_t w;
-                    size_t bytes = mbrtowc (&w, &arg[i + m],
-                                            argsize - (i + m), &mbstate);
+                    char32_t w;
+                    size_t bytes = mbrtoc32 (&w, &arg[i + m],
+                                             argsize - (i + m), &mbstate);
                     if (bytes == 0)
                       break;
                     else if (bytes == (size_t) -1)
@@ -639,6 +638,8 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize,
                       }
                     else
                       {
+                        if (bytes == (size_t) -3)
+                          bytes = 0;
                         /* Work around a bug with older shells that "see" a '\'
                            that is really the 2nd byte of a multibyte character.
                            In practice the problem is limited to ASCII
@@ -659,7 +660,7 @@ quotearg_buffer_restyled (char *buffer, size_t buffersize,
                                 }
                           }
 
-                        if (! iswprint (w))
+                        if (! c32isprint (w))
                           printable = false;
                         m += bytes;
                       }
index bcc1f4906ccaaa40f3d2a570ddc99c6d1c1a9da1..2e410fbe6ac198736636fab195b11876027ec6e6 100644 (file)
@@ -21,7 +21,9 @@ Include:
 "acl.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 $(LIB_ACL)
 $(QCOPY_ACL_LIB)
 
index 2ee34c652394509b0528296a5e611e37a9330580..7cb39e975897d2bfe0ece070359a9e34eeb661d3 100644 (file)
@@ -25,6 +25,6 @@ TESTS += \
   test-copy-acl.sh test-copy-acl-1.sh test-copy-acl-2.sh
 TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL)
 check_PROGRAMS += test-set-mode-acl test-copy-acl test-sameacls
-test_set_mode_acl_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ $(MBRTOWC_LIB)
-test_copy_acl_LDADD = $(LDADD) $(LIB_ACL) $(QCOPY_ACL_LIB) @LIBINTL@ $(MBRTOWC_LIB)
+test_set_mode_acl_LDADD = $(LDADD) $(LIB_ACL) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
+test_copy_acl_LDADD = $(LDADD) $(LIB_ACL) $(QCOPY_ACL_LIB) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
 test_sameacls_LDADD = $(LDADD) $(LIB_ACL) @LIBINTL@ $(MBRTOWC_LIB)
index f07012644b35348e61acf629356fd3473c6e94e2..8b02b10b9d6bf4eaaa4792321e30ec3e54a1a57e 100644 (file)
@@ -27,7 +27,9 @@ Include:
 "argmatch.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index 2f70d491d2c7120b3957fdd587f548efa3733102..11bce8010255391d23fe52bce0076549f42ee344 100644 (file)
@@ -9,5 +9,5 @@ configure.ac:
 Makefile.am:
 TESTS += test-argmatch
 check_PROGRAMS += test-argmatch
-test_argmatch_LDADD = $(LDADD) @LIBINTL@ $(MBRTOWC_LIB)
+test_argmatch_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
 
index 6f6ab87a4be32ffc75aec3dc4ace04c3bdd36ce7..b352d9aea7210be94bc173b0467acf5f795aea02 100644 (file)
@@ -36,7 +36,9 @@ Include:
 "backupfile.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index 08bf1d2526cbbaf1a4460a19752015774448a260..b02cdc1cb1e19f37a39afc2e3870bd0e5d0eeab9 100644 (file)
@@ -37,7 +37,9 @@ Include:
 "backupfile.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index b5f3ce332fa0ed825cb8924cad43d52b8538d563..42ff50d0fe8de670620363dd0a6d84d1cf9ab73f 100644 (file)
@@ -21,7 +21,9 @@ Include:
 "closein.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index d40156cb6d91f3a6f426e8fef700b0b12db66a51..189d09feedbf40e487cfd2745931cd88f1743477 100644 (file)
@@ -12,4 +12,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-closein.sh
 check_PROGRAMS += test-closein
-test_closein_LDADD = $(LDADD) @LIBINTL@ $(MBRTOWC_LIB)
+test_closein_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
index 05f17957d9987eb52dcc9e49bdf756cf12f9470e..b4ccefe443f267260984e38fbbc2dc2519812297 100644 (file)
@@ -23,7 +23,9 @@ Include:
 "closeout.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index a73e2a474cf32901e27b5dd79aaf00a9fef98b5a..231f31c8ed2603032c89dd982f3a3651581ed589 100644 (file)
@@ -38,7 +38,9 @@ Include:
 Link:
 $(LIB_ACL)
 $(QCOPY_ACL_LIB)
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index 087797c7277323fb5379b0505574be522d1bf92d..563cf95e332f2227ba0d4a97c2bcd6a17eaf752b 100644 (file)
@@ -18,4 +18,4 @@ Makefile.am:
 TESTS += test-copy-file.sh test-copy-file-1.sh test-copy-file-2.sh
 TESTS_ENVIRONMENT += USE_ACL=$(USE_ACL)
 check_PROGRAMS += test-copy-file
-test_copy_file_LDADD = $(LDADD) $(LIB_ACL) $(QCOPY_ACL_LIB) $(CLOCK_TIME_LIB) @LIBINTL@ $(MBRTOWC_LIB)
+test_copy_file_LDADD = $(LDADD) $(LIB_ACL) $(QCOPY_ACL_LIB) $(CLOCK_TIME_LIB) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
index 244a802965130fdbdc736cde1dca910f231f9b5b..97783d67c2bf17ec6c6c79c9bd2ccd281bb4120c 100644 (file)
@@ -28,7 +28,9 @@ Include:
 "csharpcomp.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 $(LIBTHREAD)
 
 License:
index ee82df8dd90c5d1869602b18628e61926bcfdf72..cb30c938fb4e0152d6ffa2bfc6c3eeca1cf1a771 100644 (file)
@@ -28,7 +28,9 @@ Include:
 "csharpexec.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 $(LIBTHREAD)
 
 License:
index a281fa4bf0f87fb2a4e2b0d9f8209e5de3aab629..0c09f8206c9b87d377c30e017afd621d060a17c2 100644 (file)
@@ -27,7 +27,9 @@ Include:
 "human.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index f3ce944100d516b8fe3d8a916da4da3589245d16..d93cde52e313d579ab8da54eed5280a2051c5201 100644 (file)
@@ -43,7 +43,9 @@ Include:
 "javacomp.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 $(GETRANDOM_LIB)
 $(LIBTHREAD)
 
index 4859e762547d4cdfedf18b39042b882cdfd83df9..e54dcffd228554fa650f99e34b354fc6d8ca5345 100644 (file)
@@ -29,7 +29,9 @@ Include:
 "javaexec.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 $(LIBTHREAD)
 
 License:
index d9533a2de7f15af3176cfcfbcf951348400efc8b..2b74111596be2e57bceea47ed60705f118be45b9 100644 (file)
@@ -17,7 +17,9 @@ Include:
 "quote.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index db0903fa9789815474427a20647ec7a227dec580..6e823fa9c60814dcec336afde54b64dbd482f647 100644 (file)
@@ -5,16 +5,15 @@ Files:
 lib/quotearg.h
 lib/quotearg.c
 lib/quote.h
-m4/mbstate_t.m4
-m4/mbrtowc.m4
 m4/quotearg.m4
 
 Depends-on:
 attribute
 c-strcaseeq
+c32isprint
 extensions
 gettext-h
-mbrtowc
+mbrtoc32
 mbsinit
 memcmp
 minmax
@@ -22,8 +21,7 @@ quotearg-simple
 localcharset
 stdbool
 stdint
-wchar
-wctype-h
+uchar
 xalloc
 
 configure.ac:
@@ -36,7 +34,9 @@ Include:
 "quotearg.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index 240192329abc3dc6fbb5e087c44f61a403d9f11a..e3d532defa19a61d9c68ac00250b9807df727766 100644 (file)
@@ -13,7 +13,9 @@ Makefile.am:
 Include:
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index 7f2f03f3456a87696bf96ea0f320aec54caea3a2..ba15ef2d4b4b9ee0ac484a587537db47d0dde22c 100644 (file)
@@ -19,4 +19,4 @@ AC_CHECK_FUNCS_ONCE([mprotect])
 Makefile.am:
 TESTS += test-quotearg-simple
 check_PROGRAMS += test-quotearg-simple
-test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@ $(MBRTOWC_LIB)
+test_quotearg_simple_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
index 0ff8b4d4023957660450009e4f565ad7c0829607..d297f0b0aac3b8054501d609ca59bc05c3068c26 100644 (file)
@@ -29,4 +29,4 @@ TESTS_ENVIRONMENT += \
   LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
   host_os='@host_os@'
 check_PROGRAMS += test-quotearg
-test_quotearg_LDADD = $(LDADD) $(SETLOCALE_LIB) @LIBINTL@ $(MBRTOWC_LIB)
+test_quotearg_LDADD = $(LDADD) $(SETLOCALE_LIB) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
index 1637125569089e8cee3a501b859f1a6d7fb20e15..189cde252c75179434997a14ffd9030d3a9e2b25 100644 (file)
@@ -11,4 +11,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-readtokens.sh
 check_PROGRAMS += test-readtokens
-test_readtokens_LDADD = $(LDADD) @LIBINTL@ $(MBRTOWC_LIB)
+test_readtokens_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
index c3e23dc8784025a0b7df06d639df09c2bb98f46f..834601ba86ee83bcb98eef20de9c2cbf17265cce 100644 (file)
@@ -19,7 +19,9 @@ Include:
 "sh-quote.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index 1bded043f25f8b7867e3981cabe17c1305cb9a64..b2eccc58c74c134e2908443abbfa3dfd94b8ae16 100644 (file)
@@ -8,4 +8,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-sh-quote
 check_PROGRAMS += test-sh-quote
-test_sh_quote_LDADD = $(LDADD) @LIBINTL@ $(MBRTOWC_LIB)
+test_sh_quote_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
index 17e0fa5abfc59e341df020298c175f7481dcbfa8..915859cf3d9292e7796825f6efaf81b4978e90eb 100644 (file)
@@ -18,6 +18,11 @@ lib_SOURCES += string-desc-quotearg.c
 Include:
 "string-desc-quotearg.h"
 
+Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
+$(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
+
 License:
 GPL
 
index 2fa97ee4cb382dc5e7efe8b4a6731d71b048b9ae..04115df8ecd22cf6461d05dbee4df67b416c6bd0 100644 (file)
@@ -9,4 +9,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-string-desc-quotearg
 check_PROGRAMS += test-string-desc-quotearg
-test_string_desc_quotearg_LDADD = $(LDADD) @LIBINTL@ $(MBRTOWC_LIB)
+test_string_desc_quotearg_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
index b1c860261bfd255727ace8a21b40ad98a46e71e5..cd933986a1c34e427ea73da6aea71bc304f7ce7e 100644 (file)
@@ -20,7 +20,9 @@ Include:
 "system-quote.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index e5850614f5c48f99d0baa682aa34fda290fed17d..8ac3a673579f987db1a8100c8c7fa74d292c160a 100644 (file)
@@ -18,7 +18,7 @@ configure.ac:
 Makefile.am:
 TESTS += test-system-quote.sh
 check_PROGRAMS += test-system-quote-main test-system-quote-child
-test_system_quote_main_LDADD = $(LDADD) @LIBINTL@ $(MBRTOWC_LIB)
+test_system_quote_main_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)
 # The test-system-quote-child program must be a real executable, not a libtool
 # wrapper script, and should link against as few libraries as possible.
 # Therefore don't link it against any libraries other than -lc.
index 2ce12cc208ed35119c3644f20a3a78f17fb996ff..a8ff50bee6465e443043189b1f2edebc015ba371 100644 (file)
@@ -22,7 +22,9 @@ Include:
 "xmemcoll.h"
 
 Link:
+$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
 $(MBRTOWC_LIB)
+$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
 
 License:
 GPL
index f66e068e0007be867f278a62365cc130adad7d82..9431c634f79f89a63cdbc3bcd7853c154a44b995 100644 (file)
@@ -12,4 +12,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-yesno.sh
 check_PROGRAMS += test-yesno
-test_yesno_LDADD = $(LDADD) @LIBINTL@ $(MBRTOWC_LIB)
+test_yesno_LDADD = $(LDADD) $(LIBUNISTRING) @LIBINTL@ $(MBRTOWC_LIB) $(LIBC32CONV)