summaryrefslogtreecommitdiff
path: root/packages/libxine/libxine-1.0.0-beta12/libxine-autoconf.patch
blob: 3a5ad89387119831aa63cac8ce4bdaa29e82c4c3 (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
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
--- configure.ac.orig	2003-02-12 12:43:36.000000000 +0100
+++ configure.ac	2003-02-12 12:44:24.000000000 +0100
@@ -281,10 +281,26 @@ dnl ------------------------------------
 dnl zlib
 dnl ---------------------------------------------
 dnl Test for libz
+AC_ARG_WITH(zlib-path,[  --with-xlib-path=path      Where zlib is installed],
+            zlib_path="$withval", zlib_path="")
+
+save_LDFLAGS="$LDFLAGS"
+save_CPPFLAGS="$CPPFLAGS"
+if test ! -z "$zlib_path"; then
+    LDFLAGS="$LDFLAGS -L$zlib_path/lib"
+    CPPFLAGS="$CPPFLAGS -I$zlib_path/include"
+    CFLAGS="$CFLAGS -I$zlib_path/include"
+fi
 AC_CHECK_LIB(z, gzsetparams,
 	[ AC_CHECK_HEADER(zlib.h,
 	  have_zlib=yes
 	  ZLIB_LIBS="-lz",)], AC_MSG_ERROR(zlib needed))
+LDFLAGS="$save_LDFLAGS"
+CPPFLAGS="$save_CPPFLAGS"
+
+if test ! -z "$zlib_path"; then
+    ZLIB_LIBS="-L$zlib_path/lib $ZLIB_LIBS"
+fi
 
 AM_CONDITIONAL(HAVE_ZLIB, [test x"$have_zlib" = "xyes"])
 AC_SUBST(ZLIB_LIBS)
@@ -437,8 +453,8 @@ AM_CONDITIONAL(HAVE_XINERAMA, test x$ac_
 dnl ---------------------------------------------
 dnl Checks for Ascii-Art library
 dnl ---------------------------------------------
-AM_PATH_AALIB(1.4,, AC_MSG_RESULT([*** All of AALIB dependent parts will be disabled ***]))
-AM_CONDITIONAL(HAVE_AA, test x$no_aalib != "xyes")
+dnl AM_PATH_AALIB(1.4,, AC_MSG_RESULT([*** All of AALIB dependent parts will be disabled ***]))
+AM_CONDITIONAL(HAVE_AA, /bin/false)
 
 dnl ---------------------------------------------
 dnl Check solaris framebuffer device support
@@ -450,7 +466,7 @@ dnl ------------------------------------
 dnl Check linux framebuffer device support
 dnl ---------------------------------------------
 AC_CHECK_HEADER(linux/fb.h, have_fb=yes,)
-AM_CONDITIONAL(HAVE_FB, [test x"$have_fb" = "xyes"])
+AM_CONDITIONAL(HAVE_FB, /bin/false)
 
 dnl ---------------------------------------------
 dnl Find pkg-config
@@ -480,15 +496,16 @@ fi
 
 AC_SUBST(DIRECTFB_CFLAGS)
 AC_SUBST(DIRECTFB_LIBS)
-AM_CONDITIONAL(HAVE_DIRECTFB, test x$have_directfb = "xyes" )
+AM_CONDITIONAL(HAVE_DIRECTFB, /bin/false)
 
 dnl ---------------------------------------------
 dnl check for SDL
 dnl ---------------------------------------------
-AM_PATH_SDL(1.1.5, 
-	AC_DEFINE(HAVE_SDL,1,[Define this if you have SDL library installed]),
-	[])
-AM_CONDITIONAL(HAVE_SDL, [test x"$no_sdl" != x"yes"])
+dnl AM_PATH_SDL(1.1.5, 
+dnl	AC_DEFINE(HAVE_SDL,1,[Define this if you have SDL library installed]),
+dnl	[])
+AC_DEFINE(HAVE_SDL,0,[Define this if you have SDL library installed])
+AM_CONDITIONAL(HAVE_SDL, /bin/false)
 
 
 dnl ---------------------------------------------
@@ -574,15 +591,17 @@ AM_CONDITIONAL(HAVE_VORBIS, [test x"$no_
 dnl ---------------------------------------------
 dnl check for libFLAC
 dnl ---------------------------------------------
-AM_PATH_LIBFLAC([],
-	AC_MSG_RESULT([*** All FLAC dependent parts will be disabled ***]))
-AM_CONDITIONAL(HAVE_FLAC, [test x"$no_libFLAC" != "xyes"])
+dnl AM_PATH_LIBFLAC([],
+dnl	AC_MSG_RESULT([*** All FLAC dependent parts will be disabled ***]))
+dnl AM_CONDITIONAL(HAVE_FLAC, [test x"$no_libFLAC" != "xyes"])
+AM_CONDITIONAL(HAVE_FLAC, /bin/false)
 
 dnl ---------------------------------------------
 dnl XviD libs.
 dnl ---------------------------------------------
-AM_PATH_XVID([], AC_MSG_RESULT([*** All XviD dependent parts will be disabled ***]))
-AM_CONDITIONAL(HAVE_XVID, [test x"$no_xvid" != "xyes"])	
+dnl AM_PATH_XVID([], AC_MSG_RESULT([*** All XviD dependent parts will be disabled ***]))
+dnl AM_CONDITIONAL(HAVE_XVID, [test x"$no_xvid" != "xyes"])	
+AM_CONDITIONAL(HAVE_XVID, /bin/false)
 
 
 dnl ---------------------------------------------
@@ -635,18 +654,21 @@ AM_CONDITIONAL(HAVE_ALSA09, test x"$have
 dnl ---------------------------------------------
 dnl ESD support
 dnl ---------------------------------------------
-AM_PATH_ESD(0.2.8,
-        AC_DEFINE(HAVE_ESD,1,[Define this if you have ESD (libesd) installed]),
-        AC_MSG_RESULT(*** All of ESD dependent parts will be disabled ***))
-AM_CONDITIONAL(HAVE_ESD, test x"$no_esd" != "xyes")
+dnl AM_PATH_ESD(0.2.8,
+dnl        AC_DEFINE(HAVE_ESD,1,[Define this if you have ESD (libesd) installed]),
+dnl        AC_MSG_RESULT(*** All of ESD dependent parts will be disabled ***))
+AC_DEFINE(HAVE_ESD,0,[Define this if you have ESD (libesd) installed]),
+AM_CONDITIONAL(HAVE_ESD, /bin/false)
 
 dnl ---------------------------------------------
 dnl ARTS support
 dnl ---------------------------------------------
-AM_PATH_ARTS(0.9.5,
-        AC_DEFINE(HAVE_ARTS,1,[Define this if you have ARTS (libartsc) installed]),
-        AC_MSG_RESULT(*** All of ARTS dependent parts will be disabled ***))
-AM_CONDITIONAL(HAVE_ARTS, test x"$no_arts" != "xyes")
+dnl AM_PATH_ARTS(0.9.5,
+dnl        AC_DEFINE(HAVE_ARTS,1,[Define this if you have ARTS (libartsc) installed]),
+dnl        AC_MSG_RESULT(*** All of ARTS dependent parts will be disabled ***))
+dnl AM_CONDITIONAL(HAVE_ARTS, test x"$no_arts" != "xyes")
+AC_DEFINE(HAVE_ARTS,0,[blubb],[])
+AM_CONDITIONAL(HAVE_ARTS, /bin/false)
 
 dnl ---------------------------------------------
 dnl gnome-vfs support
@@ -700,26 +722,30 @@ AC_SUBST(KSTAT_LIBS)
 dnl ---------------------------------------------
 dnl cdrom ioctls
 dnl ---------------------------------------------
-AC_CHECK_HEADERS(sys/cdio.h linux/cdrom.h)
-AM_CHECK_CDROM_IOCTLS(
-	[AC_DEFINE(HAVE_CDROM_IOCTLS,1,[Define this if you have CDROM ioctls])],
-	[AC_MSG_RESULT([*** DVD and (S)VCD support will be disabled ***])])
-AM_CONDITIONAL(HAVE_CDROM_IOCTLS, [test x"$have_cdrom_ioctls" = "xyes"])
+dnl AC_CHECK_HEADERS(sys/cdio.h linux/cdrom.h)
+dnl AM_CHECK_CDROM_IOCTLS(
+dnl	[AC_DEFINE(HAVE_CDROM_IOCTLS,1,[Define this if you have CDROM ioctls])],
+dnl	[AC_MSG_RESULT([*** DVD and (S)VCD support will be disabled ***])])
+dnl AM_CONDITIONAL(HAVE_CDROM_IOCTLS, [test x"$have_cdrom_ioctls" = "xyes"])
+AC_DEFINE([HAVE_CDROM_IOCTLS],0,[][blah])
+AM_CONDITIONAL(HAVE_CDROM_IOCTLS, /bin/false)
 
 dnl ---------------------------------------------
 dnl check for a usable version of libdvdnav
 dnl ---------------------------------------------
-AC_ARG_WITH(included-dvdnav,[  --with-included-dvdnav  Use included dvdnav library [recommended]],
-            included_dvdnav="yes"; no_dvdnav="yes", included_dvdnav="no")
-
-if test x"$included_dvdnav" = "xno"; then
-  AM_PATH_DVDNAV(0.1.4,
-	  AC_DEFINE(HAVE_DVDNAV,1,[Define this if you have a suitable version of libdvdnav]),
-	  [AC_MSG_RESULT([*** no usable version of libdvdnav found, using internal copy ***])])
-else
-  AC_MSG_RESULT([Use included DVDNAV/DVDREAD support])
-fi
-AM_CONDITIONAL(HAVE_DVDNAV, [test x"$no_dvdnav" != "xyes"])
+dnl AC_ARG_WITH(included-dvdnav,[  --with-included-dvdnav  Use included dvdnav library [recommended]],
+dnl             included_dvdnav="yes"; no_dvdnav="yes", included_dvdnav="no")
+dnl 
+dnl if test x"$included_dvdnav" = "xno"; then
+dnl   AM_PATH_DVDNAV(0.1.4,
+dnl 	  AC_DEFINE(HAVE_DVDNAV,1,[Define this if you have a suitable version of libdvdnav]),
+dnl 	  [AC_MSG_RESULT([*** no usable version of libdvdnav found, using internal copy ***])])
+dnl else
+dnl   AC_MSG_RESULT([Use included DVDNAV/DVDREAD support])
+dnl fi
+dnl AM_CONDITIONAL(HAVE_DVDNAV, [test x"$no_dvdnav" != "xyes"])
+AC_DEFINE(HAVE_DVDNAV,0,[blah])
+AM_CONDITIONAL(HAVE_DVDNAV, /bin/false)
 
 dnl ---------------------------------------------
 dnl ASF build can be optional
@@ -1050,7 +1076,7 @@ case "$host_or_hostalias" in
     AC_DEFINE_UNQUOTED(FPM_DEFAULT,,[Define to select libmad fixed point arithmetic implementation])
     ;;
 
-  armv4l-*-linux*)
+  arm-*-linux*)
     CFLAGS="$CFLAGS -O2  -fsigned-char  -ffast-math -mcpu=strongarm1100 -fomit-frame-pointer -fthread-jumps  -fregmove"
     dnl    CFLAGS="$CFLAGS -O1 -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -finline-functions -fsigned-char -fomit-frame-pointer -march=armv4 -mtune=strongarm"
     DEBUG_CFLAGS="$DEBUG_CFLAGS -O2"