$NetBSD: patch-aa,v 1.25 2003/10/05 14:16:41 grant Exp $

--- Configure.orig	Sun Mar 18 22:03:33 2001
+++ Configure	Fri Oct  3 20:55:27 2003
@@ -891,6 +891,8 @@
 sitelib=''
 sitelib_stem=''
 sitelibexp=''
+installsiteman1dir=''
+installsiteman3dir=''
 siteprefix=''
 siteprefixexp=''
 sizesize=''
@@ -6598,7 +6600,7 @@
 	esac
 	for thisflag in $ldflags; do
 		case "$thisflag" in
-		-L*|-R*)
+		-L*|-R*|-Wl,-R*)
 			case " $dflt " in
 			*" $thisflag "*) ;;
 			*) dflt="$dflt $thisflag" ;;
@@ -6807,12 +6809,18 @@
 	aix)
 		# We'll set it in Makefile.SH...
 		;;
-	solaris|netbsd)
+	solaris)
 		xxx="-R $shrpdir"
 		;;
+	netbsd)
+		xxx="-Wl,-R$shrpdir"
+		;;
 	freebsd)
 		xxx="-Wl,-R$shrpdir"
 		;;
+	bsdos)
+		xxx="-Wl,-R$shrpdir"
+		;;
 	linux|irix*|dec_osf)
 		xxx="-Wl,-rpath,$shrpdir"
 		;;
@@ -6966,6 +6974,17 @@
 	;;
 esac
 
+case "$installsiteman1dir" in
+'')	dflt="$installman1dir" ;;
+*)	dflt="$installsiteman1dir" ;;
+esac
+set installsiteman1dir installsiteman1dir none
+eval $prefixit
+fn=d~+
+rp="Where do the site-specific manual pages (source) go?"
+. ./getfile
+installsiteman1dir="$ans"
+
 : see if we can have long filenames
 echo " "
 first=123456789abcdef
@@ -7090,6 +7109,17 @@
 	;;
 esac
 
+case "$installsiteman3dir" in
+'')	dflt="$installman3dir" ;;
+*)	dflt="$installsiteman3dir" ;;
+esac
+set installsiteman3dir installsiteman3dir none
+eval $prefixit
+fn=d~+
+rp="Where do the site-specific library man pages (source) go?"
+. ./getfile
+installsiteman3dir="$ans"
+
 : see if we have to deal with yellow pages, now NIS.
 if $test -d /usr/etc/yp || $test -d /etc/yp; then
 	if $test -f /usr/etc/nibindd; then
@@ -14719,7 +14749,7 @@
 eval $inhdr
 
 : see if this is a ieeefp.h system
-set ieeefp.h i_ieeefp
+set machine/ieeefp.h i_ieeefp
 eval $inhdr
 
 : see if this is a libutil.h system
@@ -16145,6 +16175,8 @@
 installsitearch='$installsitearch'
 installsitebin='$installsitebin'
 installsitelib='$installsitelib'
+installsiteman1dir='$installsiteman1dir'
+installsiteman3dir='$installsiteman3dir'
 installstyle='$installstyle'
 installusrbinperl='$installusrbinperl'
 installvendorarch='$installvendorarch'