--- libcharset/lib/Makefile.in.orig	Wed Jun 27 18:56:56 2001
+++ libcharset/lib/Makefile.in	Sat Apr 27 15:57:01 2002
@@ -10,6 +10,7 @@
 local_prefix = /usr/local
 exec_prefix = @exec_prefix@
 libdir = @libdir@
+sysconfdir = $(exec_prefix)/libdata
 
 # Programs used by "make":
 CC = @CC@
@@ -38,7 +39,7 @@
 
 # Before making a release, change this according to the libtool documentation,
 # section "Library interface versions".
-LIBCHARSET_VERSION_INFO = 1:0:0
+LIBCHARSET_VERSION_INFO = 1
 
 # Needed by $(LIBTOOL).
 top_builddir = ..
@@ -53,7 +54,7 @@
 	$(LIBTOOL_LINK) $(CC) $(LDFLAGS) -o libcharset.la -rpath $(libdir) -version-info $(LIBCHARSET_VERSION_INFO) -no-undefined $(OBJECTS)
 
 localcharset.lo : $(srcdir)/localcharset.c
-	$(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) -DHAVE_CONFIG_H -DLIBDIR=\"$(libdir)\" -c $(srcdir)/localcharset.c
+	$(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) -DHAVE_CONFIG_H -DLIBDIR=\"$(sysconfdir)\" -c $(srcdir)/localcharset.c
 
 charset.alias: $(srcdir)/config.charset
 	$(SHELL) $(srcdir)/config.charset '@host@' > t-$@
@@ -72,11 +73,12 @@
 install-lib : all force
 	$(MKINSTALLDIRS) $(libdir)
 	$(LIBTOOL_INSTALL) $(INSTALL_DATA) libcharset.la $(libdir)/libcharset.la
-	test -f $(libdir)/charset.alias && orig=$(libdir)/charset.alias \
+	$(MKINSTALLDIRS) $(sysconfdir)
+	test -f $(sysconfdir)/charset.alias && orig=$(sysconfdir)/charset.alias \
 	                                || orig=charset.alias; \
-	sed -f ref-add.sed $$orig > $(libdir)/t-charset.alias; \
-	$(INSTALL_DATA) $(libdir)/t-charset.alias $(libdir)/charset.alias; \
-	rm -f $(libdir)/t-charset.alias
+	sed -f ref-add.sed $$orig > $(sysconfdir)/t-charset.alias; \
+	$(INSTALL_DATA) $(sysconfdir)/t-charset.alias $(sysconfdir)/charset.alias; \
+	rm -f $(sysconfdir)/t-charset.alias
 
 # The following is needed in order to install a simple file in $(libdir)
 # which is shared with other installed packages. We use a list of referencing
@@ -88,15 +90,16 @@
 install : all force
 	$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
 	$(LIBTOOL_INSTALL) $(INSTALL_DATA) libcharset.la $(DESTDIR)$(libdir)/libcharset.la
-	if test -f $(DESTDIR)$(libdir)/charset.alias; then \
-	  sed -f ref-add.sed $(DESTDIR)$(libdir)/charset.alias > $(DESTDIR)$(libdir)/t-charset.alias; \
-	  $(INSTALL_DATA) $(DESTDIR)$(libdir)/t-charset.alias $(DESTDIR)$(libdir)/charset.alias; \
-	  rm -f $(DESTDIR)$(libdir)/t-charset.alias; \
+	$(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir)
+	if test -f $(DESTDIR)$(sysconfdir)/charset.alias; then \
+	  sed -f ref-add.sed $(DESTDIR)$(sysconfdir)/charset.alias > $(DESTDIR)$(sysconfdir)/t-charset.alias; \
+	  $(INSTALL_DATA) $(DESTDIR)$(sysconfdir)/t-charset.alias $(DESTDIR)$(sysconfdir)/charset.alias; \
+	  rm -f $(DESTDIR)$(sysconfdir)/t-charset.alias; \
 	else \
 	  if test @GLIBC21@ = no; then \
-	    sed -f ref-add.sed charset.alias > $(DESTDIR)$(libdir)/t-charset.alias; \
-	    $(INSTALL_DATA) $(DESTDIR)$(libdir)/t-charset.alias $(DESTDIR)$(libdir)/charset.alias; \
-	    rm -f $(DESTDIR)$(libdir)/t-charset.alias; \
+	    sed -f ref-add.sed charset.alias > $(DESTDIR)$(sysconfdir)/t-charset.alias; \
+	    $(INSTALL_DATA) $(DESTDIR)$(sysconfdir)/t-charset.alias $(DESTDIR)$(sysconfdir)/charset.alias; \
+	    rm -f $(DESTDIR)$(sysconfdir)/t-charset.alias; \
 	  fi ; \
 	fi
 
