summaryrefslogtreecommitdiff
path: root/package/motion/patches/patch-configure
blob: 64c7020eaf47ba8478a35d61fe4e05d870930bf2 (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
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
--- motion-3.2.11.orig/configure	2008-09-22 01:20:58.000000000 +0200
+++ motion-3.2.11/configure	2009-06-13 13:14:29.000000000 +0200
@@ -1749,9 +1749,6 @@ ac_config_headers="$ac_config_headers co
 THREAD_CFLAGS=""
 THREAD_CHECK="/usr/include/pthread.h"
 
-Darwin=""
-FreeBSD=""
-
 LINUXTHREADS="no"
 
 # Check whether --with-linuxthreads was given.
@@ -1771,63 +1768,6 @@ fi
 
 
 
-{ echo "$as_me:$LINENO: checking for Darwin" >&5
-echo $ECHO_N "checking for Darwin... $ECHO_C" >&6; }
-Darwin=`uname -a | grep "Darwin"`
-
-if test "${Darwin}" = ""; then
-	{ echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-	{ echo "$as_me:$LINENO: checking for *BSD" >&5
-echo $ECHO_N "checking for *BSD... $ECHO_C" >&6; }
-
-	FreeBSD=`uname -a | grep "BSD"`
-	if test "${FreeBSD}" = ""; then
-		{ echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-		VIDEO="video.o video2.o video_common.o"
-	else
-		{ echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-		if test "${LINUXTHREADS}" = "no"; then
-			{ echo "$as_me:$LINENO: checking Linuxthreads" >&5
-echo $ECHO_N "checking Linuxthreads... $ECHO_C" >&6; }
-			{ echo "$as_me:$LINENO: result: skipping" >&5
-echo "${ECHO_T}skipping" >&6; }
-		else
-			THREAD_CHECK="/usr/local/include/pthread/linuxthreads/pthread.h"
-			THREAD_LIB_CHECK="/usr/local/lib/liblthread.so"
-		fi
-
-		if test "${PWCBSD}" != "no"; then
-			VIDEO="video.o video2.o video_common.o"
-			TEMP_CFLAGS="${CFLAGS} -I/usr/local/include -DPWCBSD"
-		else
-			VIDEO="video_freebsd.o"
-			TEMP_CFLAGS="${CFLAGS} -I/usr/local/include"
-		fi
-
-		TEMP_LDFLAGS="${LDFLAGS} -L/usr/local/lib"
-		TEMP_LIBS="-L/usr/local/lib"
-		{ echo "$as_me:$LINENO: result: Build with PWCBSD support $PWCBSD" >&5
-echo "${ECHO_T}Build with PWCBSD support $PWCBSD" >&6; }
-
-	fi
-else
-	TEMP_CFLAGS="${CFLAGS} -I/sw/include"
-	TEMP_LDFLAGS="${LDFLAGS} -L/sw/lib"
-	TEMP_LIBS="-L/sw/lib"
-	VIDEO="video_freebsd.o"
-	FINK_LIB="-L/sw/lib"
-	Darwin="yes"
-	V4L="no"
-	{ echo "$as_me:$LINENO: result: $Darwin" >&5
-echo "${ECHO_T}$Darwin" >&6; }
-fi
-
-
-
-
 # Checks for programs.
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
@@ -2754,42 +2694,12 @@ TEMP_CFLAGS="${TEMP_CFLAGS} ${CFLAGS}"
 TEMP_LDFLAGS="${TEMP_LDFLAGS} ${LDFLAGS}"
 
 
-if test "${FreeBSD}" != "" && test "${PWCBSD}" = "no"; then
-
-	{ echo "$as_me:$LINENO: checking bktr headers in /usr/include/dev/bktr" >&5
-echo $ECHO_N "checking bktr headers in /usr/include/dev/bktr... $ECHO_C" >&6; }
-
-	if test -f /usr/include/dev/bktr/ioctl_meteor.h && test -f /usr/include/dev/bktr/ioctl_bt848.h; then
-		{ echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-	else
-		{ echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-		TEMP_CFLAGS="${TEMP_CFLAGS} -DOLD_BKTR"
-	fi
-#
-# Check to Exclude BKTR
-#
-BKTR="yes"
-
-# Check whether --with-bktr was given.
-if test "${with_bktr+set}" = set; then
-  withval=$with_bktr; BKTR="$withval"
-
-fi
-
-
-
-	if test "${BKTR}" = "no"; then
-        	TEMP_CFLAGS="${TEMP_CFLAGS} -DWITHOUT_V4L"
-	fi
-
-else
 
 #
 # Check to Exclude V4L
 #
 V4L="yes"
+VIDEO="video.o video2.o video_common.o"
 
 # Check whether --with-v4l was given.
 if test "${with_v4l+set}" = set; then
@@ -2798,8 +2708,6 @@ if test "${with_v4l+set}" = set; then
 fi
 
 
-fi
-
 
 if test "${V4L}" = "no"; then
 	TEMP_CFLAGS="${TEMP_CFLAGS} -DWITHOUT_V4L"