bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

charset.alias not needed on Cygwin and mingw


From: Bruno Haible
Subject: charset.alias not needed on Cygwin and mingw
Date: Sun, 25 Jan 2009 18:17:36 +0100
User-agent: KMail/1.9.9

Since the result of config.charset is hardcoded in localcharset.c for Cygwin
and mingw, there is no need to install charset.alias on these platforms.

2009-01-25  Bruno Haible  <address@hidden>

        Don't install charset.alias on mingw and Cygwin.
        * modules/localcharset (install-exec-local): Don't install
        charset.alias on mingw and Cygwin, if the file does not yet exist.
        The result for these platforms is hardcoded in localcharset.c.

--- modules/localcharset.orig   2009-01-25 18:13:05.000000000 +0100
+++ modules/localcharset        2009-01-25 18:08:42.000000000 +0100
@@ -40,13 +40,25 @@
 charset_alias = $(DESTDIR)$(libdir)/charset.alias
 charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
 install-exec-local: all-local
-       test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir)
+       if test $(GLIBC21) = no; then \
+         case '$(host_os)' in \
+           cygwin* | mingw* | pw32* | cegcc*) \
+             need_charset_alias=false ;; \
+           *) \
+             need_charset_alias=true ;; \
+         esac ; \
+       else \
+         need_charset_alias=false ; \
+       fi ; \
+       if $$need_charset_alias; then \
+         $(mkinstalldirs) $(DESTDIR)$(libdir) ; \
+       fi ; \
        if test -f $(charset_alias); then \
          sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
          $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
          rm -f $(charset_tmp) ; \
        else \
-         if test $(GLIBC21) = no; then \
+         if $$need_charset_alias; then \
            sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
            $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
            rm -f $(charset_tmp) ; \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]