--- sgml-common-0.6.3/bin/install-catalog.in.orig	2016-11-19 19:14:57.012197600 -0500
+++ sgml-common-0.6.3/bin/install-catalog.in	2016-11-19 19:16:12.009329800 -0500
@@ -63,23 +63,23 @@
 esac
 
 # Check that the super catalog can be created and changed and deleted
-if [ ! -w /etc/sgml ]
+if [ ! -w @sysconfdir@/sgml ]
 then
-  echo "`basename $0`: unable to write in /etc/sgml." >&2
+  echo "`basename $0`: unable to write in @sysconfdir@/sgml." >&2
   exit 2
 fi
 case $SGML_ACTION in
    addition)
-	if [ -e /etc/sgml/catalog -a ! -w /etc/sgml/catalog ]
+	if [ -e @sysconfdir@/sgml/catalog -a ! -w @sysconfdir@/sgml/catalog ]
 	then
-	  echo "`basename $0`: can not modify \"/etc/sgml/catalog\"." >&2
+	  echo "`basename $0`: can not modify \"@sysconfdir@/sgml/catalog\"." >&2
 	  exit 2
 	fi
 	;;
    removal)
-	if [ ! -w /etc/sgml/catalog ]
+	if [ ! -w @sysconfdir@/sgml/catalog ]
 	then
-	  echo "`basename $0`: can not modify \"/etc/sgml/catalog\"." >&2
+	  echo "`basename $0`: can not modify \"@sysconfdir@/sgml/catalog\"." >&2
 	  exit 2
 	fi
 	;;
@@ -134,11 +134,11 @@
 	else
 	  echo "$SGML_POINTER $SGML_ORDINARY" >> $SGML_CENTRALIZED
 	fi
-	grep -q $SGML_CENTRALIZED /etc/sgml/catalog 2>/dev/null
+	grep -q $SGML_CENTRALIZED @sysconfdir@/sgml/catalog 2>/dev/null
 	if [ $? -ne 0 ]
 	then
-	  echo "`basename $0`: addition of $SGML_CENTRALIZED in /etc/sgml/catalog"
-	  echo "$SGML_POINTER $SGML_CENTRALIZED" >> /etc/sgml/catalog
+	  echo "`basename $0`: addition of $SGML_CENTRALIZED in @sysconfdir@/sgml/catalog"
+	  echo "$SGML_POINTER $SGML_CENTRALIZED" >> @sysconfdir@/sgml/catalog
 	fi
 	;;
    removal)
@@ -153,9 +153,9 @@
 	if [ ! -s $SGML_CENTRALIZED ]
 	then
 	  rm $SGML_CENTRALIZED
-	  echo "`basename $0`: removal of $SGML_CENTRALIZED from /etc/sgml/catalog"
-          sed -e "\:$SGML_POINTER $SGML_CENTRALIZED:d" < /etc/sgml/catalog > /etc/sgml/catalog.new
-          mv /etc/sgml/catalog.new /etc/sgml/catalog
+	  echo "`basename $0`: removal of $SGML_CENTRALIZED from @sysconfdir@/sgml/catalog"
+          sed -e "\:$SGML_POINTER $SGML_CENTRALIZED:d" < @sysconfdir@/sgml/catalog > @sysconfdir@/sgml/catalog.new
+          mv @sysconfdir@/sgml/catalog.new @sysconfdir@/sgml/catalog
 	fi
 	;;
 esac
