X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Flocalcharset;fp=modules%2Flocalcharset;h=ae42b032a7e7952f57b9c77558be6815f89544df;hb=0254e21a5ce8128cd76242f4e476d0eb52924ec7;hp=f0b7ed7193e78272af6ccb65156a77d2bfb506bb;hpb=83514f1de3c7dc1af07f1d757cd8b7fe7bc837e9;p=gnulib.git diff --git a/modules/localcharset b/modules/localcharset index f0b7ed719..ae42b032a 100644 --- a/modules/localcharset +++ b/modules/localcharset @@ -40,13 +40,25 @@ all-local: charset.alias ref-add.sed ref-del.sed 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) ; \