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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
$NetBSD: patch-aa,v 1.3 2003/01/02 09:12:21 skrll Exp $
--- configure.orig Sat Dec 21 07:07:59 2002
+++ configure
@@ -21913,6 +21913,40 @@ if { (eval echo "$as_me:21904: \"$ac_lin
echo "$as_me:21913: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "ac_cv_lib_vm='-lXxf86dga -lXxf86vm'"
+
+ lib=Xxf86dga
+ shared_lib_found=no
+ for i in ${LDFLAGS}; do
+ case "$i" in
+ -L*)
+ dir=`echo $i | sed "s,^-L,,"`
+ if [ -e $dir/lib${lib}.so ] ||
+ [ "`echo $dir/lib${lib}.so.*`" != "$dir/lib${lib}.so.*" ]; then
+ shared_lib_found=yes
+ break;
+ fi
+ esac
+ done
+ if [ "$shared_lib_found" = "no" ]; then
+ eval "ac_cv_lib_vm=no"
+ fi
+
+ lib=Xxf86vm
+ shared_lib_found=no
+ for i in ${LDFLAGS}; do
+ case "$i" in
+ -L*)
+ dir=`echo $i | sed "s,^-L,,"`
+ if [ -e $dir/lib${lib}.so ] ||
+ [ "`echo $dir/lib${lib}.so.*`" != "$dir/lib${lib}.so.*" ]; then
+ shared_lib_found=yes
+ break;
+ fi
+ esac
+ done
+ if [ "$shared_lib_found" = "no" ]; then
+ eval "ac_cv_lib_vm=no"
+ fi
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
@@ -22664,7 +22698,7 @@ if test "x$au_enable_default" = xyes; th
au_enable_sun=yes
;;
*-*-netbsd*)
- au_enable_sun=yes
+ au_enable_oss=yes
;;
*-*-openbsd*)
au_enable_sun=yes
@@ -22685,7 +22719,7 @@ if test "x$au_enable_oss" = xyes; then
echo "${ECHO_T}yes - <sys/soundcard.h>" >&6
else
case "$target" in
- *linux*|*freebsd*|*bsdi*)
+ *linux*|*freebsd*|*bsdi*|*netbsd*)
echo "$as_me:22689: result: yes" >&5
echo "${ECHO_T}yes" >&6
;;
@@ -26223,7 +26257,7 @@ fi
echo "$as_me:26223: result: $ac_cv_lib_ossaudio_main" >&5
echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6
if test $ac_cv_lib_ossaudio_main = yes; then
- LIBOSSAUDIO="-lossaudio"
+ LIBOSSAUDIO="${LIBOSSAUDIO}"
fi
echo "$as_me:26229: checking for main in -lasound" >&5
@@ -26570,6 +26604,7 @@ case "$host" in
*-*-*bsdi*) kscd_compile=yes;;
*-*-*freebsd*) kscd_compile=yes;;
*-*-*openbsd*) kscd_compile=yes;;
+ *-*-*netbsd*) kscd_compile=yes;;
*-*-*bsd*) kscd_compile=no;;
*) kscd_compile=yes;;
esac
@@ -26633,7 +26668,7 @@ EOF
fi
done
-for ac_header in sys/soundcard.h machine/soundcard.h linux/soundcard.h
+for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h linux/soundcard.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:26639: checking for $ac_header" >&5
@@ -26952,8 +26987,23 @@ if { (eval echo "$as_me:26943: \"$ac_com
echo "$as_me:26952: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- x11_dga2=yes
-
+ lib=Xxf86dga
+ shared_lib_found=no
+ for i in ${LDFLAGS}; do
+ case "$i" in
+ -L*)
+ dir=`echo $i | sed "s,^-L,,"`
+ if [ -e $dir/lib${lib}.so ] ||
+ [ "`echo $dir/lib${lib}.so.*`" != "$dir/lib${lib}.so.*" ]; then
+ shared_lib_found=yes
+ break;
+ fi
+ esac
+ done
+ if [ "$shared_lib_found" = "yes" ]; then
+ x11_dga2=yes
+ fi
+
else
echo "$as_me: failed program was:" >&5
cat conftest.$ac_ext >&5
@@ -27001,7 +27051,22 @@ if { (eval echo "$as_me:26992: \"$ac_com
echo "$as_me:27001: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
+ lib=Xv
+ shared_lib_found=no
+ for i in ${LDFLAGS}; do
+ case "$i" in
+ -L*)
+ dir=`echo $i | sed "s,^-L,,"`
+ if [ -e $dir/lib${lib}.so ] ||
+ [ "`echo $dir/lib${lib}.so.*`" != "$dir/lib${lib}.so.*" ]; then
+ shared_lib_found=yes
+ break;
+ fi
+ esac
+ done
+ if [ "$shared_lib_found" = "yes" ]; then
x11_xv=yes
+ fi
else
echo "$as_me: failed program was:" >&5
@@ -27050,7 +27115,22 @@ if { (eval echo "$as_me:27041: \"$ac_com
echo "$as_me:27050: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
+ lib=Xxf86vm
+ shared_lib_found=no
+ for i in ${LDFLAGS}; do
+ case "$i" in
+ -L*)
+ dir=`echo $i | sed "s,^-L,,"`
+ if [ -e $dir/lib${lib}.so ] ||
+ [ "`echo $dir/lib${lib}.so.*`" != "$dir/lib${lib}.so.*" ]; then
+ shared_lib_found=yes
+ break;
+ fi
+ esac
+ done
+ if [ "$shared_lib_found" = "yes" ]; then
x11_xvidmode=yes
+ fi
else
echo "$as_me: failed program was:" >&5
@@ -27326,6 +27406,9 @@ esac
kde_mpeglib_compiles=no
case "$OS_TYPE" in
+ NetBSD)
+ kde_mpeglib_compiles=yes
+ ;;
FreeBSD)
kde_mpeglib_compiles=yes
;;
@@ -27592,10 +27675,10 @@ EOF
;;
NetBSD)
- echo "$as_me:27595: result: NetBSD :Unknown hardware. You will have problems!!" >&5
-echo "${ECHO_T}NetBSD :Unknown hardware. You will have problems!!" >&6
- OS_TYPE="BSD"
-
+ echo "$as_me:27650: result: using -lpthread" >&5
+ echo $ECHO_N "using -lpthread... $ECHO_C" >&6
+ OS_TYPE="BSD"
+ LIBPTHREAD="-lpthread"
cat >>confdefs.h <<\EOF
#define OS_BSD 1
EOF
|