diff -ruHp jabber-transport-0.8.1-orig/src/install-config.sh.in jabber-transport-0.8.1/src/install-config.sh.in
--- jabber-transport-0.8.1-orig/src/install-config.sh.in	Sat Dec 18 23:02:45 1999
+++ jabber-transport-0.8.1/src/install-config.sh.in	Sat Dec 18 23:31:00 1999
@@ -6,12 +6,19 @@
 # Copyright (C) 1999 The Jabber Team
 #
 
+if [ -z "$prefix" ]; then
+    instprefix="@prefix@"
+else
+    instprefix="$prefix"
+fi
 prefix="@prefix@"
 
 INSTALL="@INSTALL@"
 
 localfile=$1
-if test -f $prefix/etc/etherx.xml; then
+if test -f $instprefix/etc/etherx.xml; then
+  etherxxml="$instprefix/etc/etherx.xml";
+elif test -f $prefix/etc/etherx.xml; then
   etherxxml="$prefix/etc/etherx.xml";
 else
   echo "Could not locate etherx.xml.  Please enter the complete location to \
@@ -22,12 +29,14 @@ if test -f $etherxxml; then
   if grep "jserv" $etherxxml > /dev/null 2>&1; then
     echo "Registry file already contains a link to this transport.  "
 	echo "Would you like to overwrite with new information? [y/N] ";
-  	read overwrite
-    if (test x$overwrite = x) || (test x$overwrite = xN) || (test x$overwrite = xn); then
-    	exit 0;
+	if [ -z "$automated_build" ]; then
+	    read overwrite
 	fi
   else
-    sed "s/<\/etherx>//" $etherxxml > tmpconfig.xml
+    $overwrite="y"
+  fi
+  if (test x$overwrite != x) && (test x$overwrite != xN) && (test x$overwrite != xn); then
+    grep -v jserv $etherxxml | sed "s/<\/etherx>//" > tmpconfig.xml
     echo "<dso init='js_init'>$prefix/lib/jabber/jserver.so</dso>" >> tmpconfig.xml
     echo "</etherx>" >> tmpconfig.xml
     $INSTALL -m 600 tmpconfig.xml $etherxxml
@@ -39,11 +48,13 @@ else
 fi
 
 echo "What would you like your hostname set to [`hostname`]: "
-read newhostname
+if [ -z "$automated_build" ]; then
+    read newhostname
+fi
 if test x$newhostname = x; then
   newhostname=`hostname`
 fi 
 sed "s/<name>foo.bar<\/name>/<name>$newhostname<\/name>/" $localfile >> tmpconfig.xml
-$INSTALL -m 600 tmpconfig.xml $prefix/etc/jabber/jserver.xml
+$INSTALL -m 600 tmpconfig.xml $instprefix/etc/jabber/jserver.xml
 rm tmpconfig.xml
 echo "The jserver configuration was installed to $prefix/etc/jabber/jserver.xml"
Only in jabber-transport-0.8.1/src: install-config.sh.in~
