summaryrefslogtreecommitdiff
path: root/net/freewais-sf/patches/patch-aa
blob: 757c3536ae102975fd0fae95e73b0b12f135f03a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
$NetBSD: patch-aa,v 1.4 2006/06/04 13:25:44 joerg Exp $

--- Configure.orig	1999-04-16 09:59:11.000000000 +0000
+++ Configure
@@ -1659,6 +1659,9 @@ EOM
 			;;
 		freebsd) osname=freebsd 
 			osvers="$3" ;;
+		dragonfly)
+			osname=dragonfly
+			osvers="$3" ;;
 		genix) osname=genix ;;
 		hp*) osname=hpux 
 			case "$3" in
@@ -1730,7 +1733,7 @@ EOM
 			;;
 		$2) case "$osname" in
 			*isc*) ;;
-			*freebsd*) ;;
+			*freebsd* | dragonfly*) ;;
 			svr*)
 				: svr4.x or possibly later
 				case "svr$3" in	
@@ -2407,7 +2410,7 @@ case "$mansrc" in
 esac
 
 : determine where private executables go
-set dflt privlib lib/$package
+set dflt privlib lib
 eval $prefixit
 $cat <<EOM
 
@@ -3777,6 +3780,9 @@ esac
 : for archive libraries.  Thank you, Linux.
 case "$nm_so_opt" in
 '')	case "$myuname" in
+	*dragonfly*)
+		nm_so_opt='-D'
+		;;
 	*linux*)
 		if nm --help | $grep 'dynamic' > /dev/null 2>&1; then
 			nm_so_opt='--dynamic'
@@ -4673,7 +4679,7 @@ main()
 }
 EOCP
 if $cc $ccflags try.c -o try >/dev/null 2>&1; then
-    echo "Yes, it works"
+    echo "Yes, it works" >&4
     cont=x
     case "$d_myregexp" in
         $define) d_myregexp='n';;
@@ -4695,7 +4701,7 @@ if $cc $ccflags try.c -o try >/dev/null 
     done
 
 else
-    echo "Nope, does not work"
+    echo "Nope, does not work" >&4
     d_myregexp='n';
 fi
 
@@ -7088,7 +7094,7 @@ osvers='$osvers'
 package='$package'
 passcat='$passcat'
 patchlevel='$patchlevel'
-perl='$perl'
+perl='$PERL5'
 pg='$pg'
 phostname='$phostname'
 pidtype='$pidtype'