Commit ced4c0f6 authored by Sam Hocevar's avatar Sam Hocevar

  * ./BUGS: updated bug list.
  * ./configure.in: ./configure --help should be a lot clearer now.
parent 4c8afc76
List of known vlc bugs
$Id: BUGS,v 1.6 2002/01/28 16:51:22 sam Exp $
$Id: BUGS,v 1.7 2002/03/17 21:59:52 sam Exp $
Please try to keep this file up to date. Also, grep for FIXME in the
source files for more and more bugs to fix.
......@@ -17,6 +17,8 @@ Input:
* DVD raw device support doesn't seem to work.
* HTTP input seems to lose packets during pre-parsing.
Audio output:
......@@ -28,12 +30,6 @@ Video output:
* We don't render subtitles on RGB surfaces.
* Subtitle colors are just plain wrong.
* The DirectX video output plugin is broken because of vout4.
* The BeOS video output plugin is broken because of vout4.
* The QNX video output plugin is broken because of vout4.
* The MGA video output plugin makes the picture stutter when MGA_NUM_FRAMES
......@@ -42,10 +38,10 @@ Video output:
* The SPU decoder doesn't detect when the video output failed to launch
itself, and we segfault.
Chroma transformations:
* On-the-fly resizing doesn't work when using a chroma transformation.
* The only working YUV2RGB transformation function is the MMX version
of the 4:2:0 to RGB16 function.
Chroma transformations:
* Most chroma transformation modules completely ignore margins.
......@@ -63,8 +59,6 @@ Gtk interface:
* Playing like a madman with the `Playlist' button makes the interface
crash.
* Saving preferences does not work at all.
Misc:
......
......@@ -52,7 +52,7 @@ Configuring mad plugin
=========================
If libmad is installed in /usr (ie. you have /usr/include/mad.h and /usr/lib/libmad.a),
then you just need --with-mad=/usr.
then you just need --enable-mad --with-mad=/usr.
make distclean; ./configure --prefix=/usr --enable-fb --enable-dsp --disable-sdl \
--enable-x11 --disable-xvideo --enable-mad --with-mad=/usr
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -81,65 +81,6 @@ case x"${target_os}" in
;;
esac
dnl
dnl Endianness check, AC_C_BIGENDIAN doesn't work if we are cross-compiling
dnl
dnl We give the user the opportunity to specify
dnl --with-words=big or --with-words=little ; otherwise, try to guess
dnl
AC_ARG_WITH(words,
[ --with-words=endianness Set endianness (big or little)])
case "x$withval" in
xbig)
ac_cv_c_bigendian=yes
;;
xlittle)
ac_cv_c_bigendian=no
;;
*)
dnl Try to guess endianness by matching patterns on a compiled
dnl binary, by looking for an ASCII or EBCDIC string
AC_CACHE_CHECK([whether the byte order is big-endian],
[ac_cv_c_bigendian],
[ac_cv_c_bigendian=unknown
[cat >conftest.c <<EOF
short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
void _a(void) { char*s = (char*)am; s = (char *)ai; }
short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
void _e(void) { char*s = (char*)em; s = (char*)ei; }
int main(void) { _a(); _e(); return 0; }
EOF
]
if test -f conftest.c
then
if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
&& test -f conftest.o
then
if test "`strings conftest.o | grep BIGenDianSyS`"
then
ac_cv_c_bigendian=yes
fi
if test "`strings conftest.o | grep LiTTleEnDian`"
then
ac_cv_c_bigendian=no
fi
fi
fi
])
if test x$ac_cv_c_bigendian = xunknown
then
AC_MSG_ERROR([Could not guess endianness, please use --with-words])
fi
;;
esac
dnl Now we know what to use for endianness, just put it in the header
if test $ac_cv_c_bigendian = yes
then
AC_DEFINE(WORDS_BIGENDIAN, 1, big endian system)
fi
dnl Check for system libs needed
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty)
AC_CHECK_FUNC(connect,,[
......@@ -445,7 +386,7 @@ dnl
dnl default modules
dnl
BUILTINS="${BUILTINS} idct idctclassic motion imdct downmix chroma_i420_rgb chroma_i420_yuy2 chroma_i422_yuy2 chroma_i420_ymga mpeg_adec ac3_adec mpeg_vdec"
PLUGINS="${PLUGINS} mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
PLUGINS="${PLUGINS} dummy null rc logger mpeg_es mpeg_ps mpeg_ts file udp http ipv4 memcpy lpcm_adec ac3_spdif spudec filter_deinterlace filter_invert filter_wall filter_transform filter_distort fx_scope"
dnl
dnl Accelerated modules
......@@ -668,11 +609,14 @@ AC_CHECK_HEADERS(sys/ioctl.h,[
fi
])
AC_ARG_WITH(,[])
AC_ARG_WITH(,[Optimization options:])
dnl
dnl Special arch tuning
dnl
AC_ARG_WITH(tuning,
[ --with-tuning=[arch] Enable special tuning for an architecture
[ --with-tuning=ARCH enable special tuning for an architecture
(default i686 on IA-32 and 750 on PPC)])
if test "x$withval" != "x"; then
TUNING=$withval
......@@ -683,15 +627,6 @@ else
fi
fi
dnl
dnl Enable release-specific flags
dnl
AC_ARG_ENABLE(release,
[ --enable-release Activate extra optimizations (default disabled)],
[ if test x$enableval = xyes; then RELEASE=1; fi ],
[ VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`"; ])
dnl
dnl x86 accelerations
dnl
......@@ -701,11 +636,19 @@ then
BUILTINS="${BUILTINS} ${ACCEL_MODULES}"
fi
dnl
dnl Enable/disable optimizations
dnl
AC_ARG_ENABLE(optimizations,
[ --disable-optimizations disable compiler optimizations (default enabled)],
[ if test x$enableval = xno; then OPTIMS=0; fi ],
[ OPTIMS=1 ])
dnl
dnl AltiVec acceleration
dnl
AC_ARG_ENABLE(altivec,
[ --disable-altivec Disable altivec optimizations (default enabled on PPC)],
[ --disable-altivec disable altivec optimizations (default enabled on PPC)],
[ if test x$enableval = xyes; then ARCH="${ARCH} altivec";
BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi ],
[ if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
......@@ -716,64 +659,23 @@ dnl Debugging mode
dnl
DEBUG=0
AC_ARG_ENABLE(debug,
[ --enable-debug Enable debug mode (default disabled)],
[ --enable-debug debug mode (default disabled)],
[ if test x$enableval = xyes; then DEBUG=1; fi ])
dnl
dnl Profiling
dnl
GPROF=0
AC_ARG_ENABLE(gprof,
[ --enable-gprof Enable gprof profiling (default disabled)],
[ if test x$enableval = xyes; then GPROF=1; fi ])
CPROF=0
AC_ARG_ENABLE(cprof,
[ --enable-cprof Enable cprof profiling (default disabled)],
[ if test x$enableval = xyes;
then
LIB="${LIB} -lcprof"
CPROF=1
fi
])
dnl
dnl Enable/disable optimizations
dnl
AC_ARG_ENABLE(optimizations,
[ --disable-optimizations Disable compiler optimizations (default enabled)],
[ if test x$enableval = xno; then OPTIMS=0; fi ],
[ OPTIMS=1 ])
dnl
dnl GNU portable threads
dnl Enable release-specific flags
dnl
AC_ARG_ENABLE(pth,
[ --enable-pth Enable GNU Pth support (default disabled)],
[ if test x$enableval = xyes; then
AC_CHECK_LIB(pth,pth_init)
AC_EGREP_HEADER(pth_init,pth.h,[
AC_DEFINE(PTH_INIT_IN_PTH_H, 1,
Define if <pth.h> defines pth_init)
THREAD_LIB="-lpth"
fi])
])
AC_ARG_ENABLE(release,
[ --enable-release activate extra optimizations (default disabled)],
[ if test x$enableval = xyes; then RELEASE=1; fi ],
[ VLC_VERSION="${VLC_VERSION}_`date +%Y-%m-%d`";
LIBDVDCSS_VERSION="${LIBDVDCSS_VERSION}_`date +%Y-%m-%d`"; ])
dnl
dnl State Threads
dnl Input plugins
dnl
AC_ARG_ENABLE(st,
[ --enable-st Enable State Threads (default disabled)],
[ if test x$enableval = xyes; then
AC_CHECK_LIB(st,st_init)
AC_EGREP_HEADER(st_init,st.h,[
AC_DEFINE(ST_INIT_IN_ST_H, 1,
Define if <st.h> defines st_init)
THREAD_LIB="-lst"
fi])
])
LIB="${LIB} ${THREAD_LIB}"
AC_ARG_WITH(,[Input plugins:])
dnl
dnl DVD module: check for installed libdvdcss or local libdvdcss
......@@ -782,10 +684,9 @@ NEED_LIBDVDCSS=0
STATIC_LIBDVDCSS=0
DUMMY_LIBDVDCSS=0
AC_ARG_WITH(dvdcss,
[ --with-dvdcss[=name] way to use libdvdcss, either 'yes' or 'no',
or 'local-static', 'local-shared', or a path to
another libdvdcss such as '/usr/local'
(default 'local-static')],
[ --with-dvdcss[=name] use libdvdcss, either 'yes', 'no', 'local-static',
'local-shared', or a path to another libdvdcss such
as '/usr/local' (default 'local-static')],
[ case "x${withval}" in
xlocal-static|xyes)
# local libdvdcss, statically linked
......@@ -851,8 +752,7 @@ dnl
if test x${DUMMY_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
if test x${STATIC_LIBDVDCSS} = x1; then STATIC_LIBDVDREAD=1; fi
AC_ARG_WITH(dvdread,
[ --with-dvdread[=name] way to use libdvdread,
same options as --with-dvdcss (default no)],
[ --with-dvdread[=name] use libdvdread, same options as dvdcss (default 'no')],
[ case "x${withval}" in
xlocal-static|xyes)
if test x${STATIC_LIBDVDREAD} = x1
......@@ -927,39 +827,6 @@ then
fi
fi
dnl
dnl dummy plugin
dnl
AC_ARG_ENABLE(dummy,
[ --disable-dummy dummy module (default enabled)])
if test x$enable_dummy != xno
then
PLUGINS="${PLUGINS} dummy"
fi
dnl
dnl log plugin
dnl
AC_ARG_ENABLE(logger,
[ --disable-logger file logger module (default enabled)])
if test x$enable_logger != xno
then
PLUGINS="${PLUGINS} logger"
fi
dnl
dnl null plugin
dnl
AC_ARG_ENABLE(null,
[ --disable-null Null module (default enabled)])
if test x$enable_null != xno
then
PLUGINS="${PLUGINS} null"
fi
dnl
dnl ipv6 plugin
dnl
......@@ -967,44 +834,42 @@ AC_EGREP_HEADER(in6_addr,netinet/in.h,[
PLUGINS="${PLUGINS} ipv6"])
dnl
dnl rc plugin
dnl Codec plugins
dnl
AC_ARG_ENABLE(rc,
[ --disable-rc Remote Control module (default enabled)])
if test x$enable_rc != xno
then
PLUGINS="${PLUGINS} rc"
fi
AC_ARG_WITH(,[Codec plugins:])
dnl
dnl mad plugin
dnl
AC_ARG_WITH(mad,
[ --with-mad[=PATH] libmad module (default disabled)],
[ if test "x$with_val" != "xno"; then
if test -n $with_val; then
AC_ARG_ENABLE(mad,
[ --enable-mad libmad module (default disabled)])
if test x$enable_mad == xyes
then
PLUGINS="${PLUGINS} mad"
LIB_MAD="${LIB_MAD} -lmad"
AC_ARG_WITH(mad,
[ --with-mad=PATH path to libmad],
[ if test "x$with_val" != "xno" -a "x$with_val" != "x"
then
CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include"
LIB_MAD="${LIB_MAD} -L$with_val/lib -lmad"
else
LIB_MAD="${LIB_MAD} -lmad"
fi
save_CFLAGS=$CFLAGS
save_LDFLAGS=$LDFLAGS
CFLAGS="$CFLAGS $CFLAGS_MAD"
LDFLAGS="$LDFLAGS $LIB_MAD"
AC_CHECK_HEADERS(mad.h, ,
[ echo "Cannot find development headers for libmad..."
exit 1
])
AC_CHECK_LIB(mad, mad_bit_init, ,
[ echo "Cannot find libmad library..."
exit 1
])
CFLAGS=$save_CFLAGS
LDFLAGS=$save_LDFLAGS
PLUGINS="${PLUGINS} mad"
fi ])
LIB_MAD="${LIB_MAD} -L$with_val/lib"
fi ])
save_CFLAGS=$CFLAGS
save_LDFLAGS=$LDFLAGS
CFLAGS="$CFLAGS $CFLAGS_MAD"
LDFLAGS="$LDFLAGS $LIB_MAD"
AC_CHECK_HEADERS(mad.h, ,
[ echo "Cannot find development headers for libmad..."
exit 1
])
AC_CHECK_LIB(mad, mad_bit_init, ,
[ echo "Cannot find libmad library..."
exit 1
])
CFLAGS=$save_CFLAGS
LDFLAGS=$save_LDFLAGS
fi
dnl special case for BeOS
if test x$SYS = xbeos
......@@ -1014,86 +879,6 @@ then
dnl default case
else
dnl
dnl OSS /dev/dsp module
dnl (enabled by default except on win32)
dnl
AC_ARG_ENABLE(dsp,
[ --disable-dsp Linux /dev/dsp support (default enabled)])
if test x$enable_dsp != xno &&
(test x$SYS != xmingw32 || test x$enable_dsp = xyes)
then
AC_CHECK_HEADERS(soundcard.h sys/soundcard.h machine/soundcard.h, [
PLUGINS="${PLUGINS} dsp"
AC_CHECK_LIB(ossaudio,main,LIB_DSP="${LIB_DSP} -lossaudio")
])
fi
dnl
dnl Esound module
dnl
AC_ARG_ENABLE(esd,
[ --enable-esd Esound library support (default disabled)],
[if test x$enable_esd = xyes
then
AC_PATH_PROG(ESD_CONFIG, esd-config, no)
if test x${ESD_CONFIG} != xno
then
PLUGINS="${PLUGINS} esd"
CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
fi
fi])
dnl
dnl aRts module
dnl
AC_ARG_ENABLE(arts,
[ --enable-arts aRts sound server (default disabled)],
[if test x$enable_arts = xyes
then
AC_PATH_PROG(ARTS_CONFIG, artsc-config, no)
if test x${ARTS_CONFIG} != xno
then
PLUGINS="${PLUGINS} arts"
CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
fi
fi])
dnl
dnl MacOS X module
dnl
AC_ARG_ENABLE(macosx,
[ --enable-macosx MacOS X support (default enabled on MacOS X)],
[if test x$enable_macosx = xyes
then
BUILTINS="${BUILTINS} macosx"
LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
LIB="${LIB} -ObjC"
fi],
[AC_CHECK_HEADERS(Cocoa/Cocoa.h,
BUILTINS="${BUILTINS} macosx"
LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
LIB="${LIB} -ObjC"
)])
dnl
dnl QNX RTOS module
dnl
AC_ARG_ENABLE(qnx,
[ --disable-qnx QNX RTOS support (default enabled on QNX RTOS)])
if test x$enable_qnx != xno
then
AC_CHECK_HEADERS(Ph.h, [
PLUGINS="${PLUGINS} qnx"
LIB_QNX="${LIB_QNX} -lasound -lph"
])
fi
dnl
dnl a52 AC3 decoder plugin
dnl
......@@ -1108,42 +893,67 @@ if test "x$enableval" != "xno" -a x$SYS != xmingw32
fi
dnl
dnl Linux framebuffer module
dnl Video plugins
dnl
AC_ARG_ENABLE(fb,
[ --enable-fb Linux framebuffer support (default enabled on Linux)])
if test x$enable_fb != xno
then
AC_CHECK_HEADERS(linux/fb.h, [
PLUGINS="${PLUGINS} fb"
])
fi
dnl
dnl Linux MGA module
dnl
AC_ARG_ENABLE(mga,
[ --enable-mga Linux kernel Matrox support (default disabled)],
[ if test x$enable_mga = xyes
then
PLUGINS="${PLUGINS} mga xmga"
fi ])
AC_ARG_WITH(,[Video plugins:])
dnl
dnl GGI module
dnl X11 module
dnl (enabled by default except on win32)
dnl
AC_ARG_WITH(ggi,
[ --with-ggi[=name] GGI support (default disabled)],
[ if test "x$withval" != "xno"
then
PLUGINS="${PLUGINS} ggi"
if test "x$withval" != "xyes"
then
LIB_GGI="${LIB_GGI} -l$withval"
else
LIB_GGI="${LIB_GGI} -lggi"
fi
fi ])
AC_ARG_ENABLE(x11,
[ --disable-x11 X11 support (default enabled)])
if test x$enable_x11 != xno &&
(test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
if test x$x_includes = xNONE; then
x_includes=/usr/X11R6/include
fi
if test x$x_libraries = xNONE; then
x_libraries=/usr/X11R6/lib
fi
saved_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$x_includes"
AC_CHECK_HEADERS(X11/Xlib.h, [
PLUGINS="${PLUGINS} x11"
LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
])
CPPFLAGS=$saved_CPPFLAGS
fi
dnl
dnl XVideo module
dnl (enabled by default except on win32)
dnl
AC_ARG_ENABLE(xvideo,
[ --disable-xvideo XVideo support (default enabled)])
if test x$enable_xvideo != xno &&
(test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
if test x$x_includes = xNONE; then
x_includes=/usr/X11R6/include
fi
if test x$x_libraries = xNONE; then
x_libraries=/usr/X11R6/lib
fi
saved_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$x_includes"
AC_CHECK_HEADERS(X11/extensions/Xv.h, [
saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
AC_CHECK_LIB(Xv_pic,XvSetPortAttribute,
# We have Xv_pic, that's good, we can build an xvideo.so plugin !
PLUGINS="${PLUGINS} xvideo"
LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes",
# We don't have Xv_pic, let's make xvideo.a as builtin
BUILTINS="${BUILTINS} xvideo"
LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes")
CFLAGS=$saved_CFLAGS
]
CPPFLAGS=$saved_CPPFLAGS)
fi
dnl
dnl SDL module
......@@ -1154,7 +964,7 @@ if test "x$enable_sdl" != "xno"
then
SDL_PATH=$PATH
AC_ARG_WITH(sdl-config-path,
[ --with-sdl-config-path=path sdl-config path (default search in \$PATH)],
[ --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)],
[ if test "x$withval" != "xno"
then
SDL_PATH=$withval:$PATH
......@@ -1205,14 +1015,14 @@ dnl
dnl Windows DirectX module
dnl
AC_ARG_ENABLE(directx,
[ --disable-directx Win32 DirectX support (default enabled on Win32)])
[ --enable-directx Win32 DirectX support (default enabled on Win32)])
if test "x$enableval" != "xno"
then
if test x$SYS = xmingw32
then
AC_ARG_WITH(directx-path,
[ --with-directx-path=path Win32 DirectX headers and libraries])
if test "x$with_directx_path" = "x"
[ --with-directx=PATH Win32 DirectX headers and libraries])
if test "x$with_directx" = "x"
then
AC_CHECK_HEADERS(ddraw.h,
[ PLUGINS="${PLUGINS} directx"
......@@ -1234,116 +1044,148 @@ then
fi
dnl
dnl win32 waveOut plugin
dnl Linux framebuffer module
dnl
AC_ARG_ENABLE(waveout,
[ --disable-waveout Win32 waveOut module (default enabled on Win32)])
if test "x$enableval" != "xno" -a x$SYS = xmingw32
then
PLUGINS="${PLUGINS} waveout"
LIB_WAVEOUT="-lwinmm"
fi
AC_ARG_ENABLE(fb,
[ --enable-fb Linux framebuffer support (default enabled on Linux)])
if test x$enable_fb != xno
then
AC_CHECK_HEADERS(linux/fb.h, [
PLUGINS="${PLUGINS} fb"
])
fi
dnl
dnl Windows MFC interface module
dnl Linux MGA module
dnl
AC_ARG_ENABLE(win32,
[ --enable-win32 Win32 interface support (default disabled)],
[ if test "x$enableval" != "xno"
AC_ARG_ENABLE(mga,
[ --enable-mga Linux kernel Matrox support (default disabled)],
[ if test x$enable_mga = xyes
then
PLUGINS="${PLUGINS} win32"
PLUGINS="${PLUGINS} mga xmga"
fi ])
dnl
dnl GGI module
dnl
AC_ARG_ENABLE(ggi,
[ --enable-ggi GGI support (default disabled)])
if test x$enable_ggi == xyes
then
PLUGINS="${PLUGINS} ggi"
LIB_GGI="${LIB_GGI} -lggi"
AC_ARG_WITH(ggi,
[ --with-ggi=PATH path to libggi],
[ if test "x$with_val" != "xno" -a "x$with_val" != "x"
then
CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
LIB_GGI="${LIB_GGI} -L$with_val/lib"
fi ])
fi
dnl
dnl Glide module
dnl
AC_ARG_WITH(glide,
[ --with-glide[=name] Glide (3dfx) support (default disabled)],
[ if test "x$withval" != "xno"
then
PLUGINS="${PLUGINS} glide"
if test "x$withval" != "xyes"
AC_ARG_ENABLE(glide,
[ --enable-glide Glide (3dfx) support (default disabled)])
if test x$enable_glide == xyes
then
PLUGINS="${PLUGINS} glide"
LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
AC_ARG_WITH(glide,
[ --with-glide=PATH path to libglide],
[ if test "x$with_val" != "xno" -a "x$with_val" != "x"
then
LIB_GLIDE="${LIB_GLIDE} -l$withval -lm"
else
LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm"
fi
CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide"
fi ])
CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include"
LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib"
fi ])
fi
dnl
dnl ncurses module
dnl Audio plugins
dnl
AC_ARG_ENABLE(ncurses,
[ --enable-ncurses ncurses interface support (default disabled)],
[if test x$enable_ncurses = xyes; then
PLUGINS="${PLUGINS} ncurses"
LIB_NCURSES="${LIB_NCURSES} -lncurses"
AC_ARG_WITH(,[Audio plugins:])
dnl
dnl OSS /dev/dsp module (enabled by default except on win32)
dnl
AC_ARG_ENABLE(dsp,
[ --enable-dsp Linux /dev/dsp support (enabled on Linux)])
if test x$enable_dsp != xno &&
(test x$SYS != xmingw32 || test x$enable_dsp = xyes)
then
AC_CHECK_HEADERS(soundcard.h sys/soundcard.h machine/soundcard.h, [
PLUGINS="${PLUGINS} dsp"
AC_CHECK_LIB(ossaudio,main,LIB_DSP="${LIB_DSP} -lossaudio")
])
fi
dnl
dnl Esound module
dnl
AC_ARG_ENABLE(esd,
[ --enable-esd Esound library support (default disabled)],
[if test x$enable_esd = xyes
then
AC_PATH_PROG(ESD_CONFIG, esd-config, no)
if test x${ESD_CONFIG} != xno
then
PLUGINS="${PLUGINS} esd"
CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`"
LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`"
fi
fi])
dnl
dnl Qt module
dnl aRts module
dnl
AC_ARG_ENABLE(qt,
[ --enable-qt Qt interface support (default disabled)],
[if test x$enable_qt = xyes; then
PLUGINS="${PLUGINS} qt"
ALIASES="${ALIASES} qvlc"
LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
if test -x ${QTDIR}/bin/moc
AC_ARG_ENABLE(arts,
[ --enable-arts aRts sound server (default disabled)],
[if test x$enable_arts = xyes
then
AC_PATH_PROG(ARTS_CONFIG, artsc-config, no)
if test x${ARTS_CONFIG} != xno
then
MOC=${QTDIR}/bin/moc
else
MOC=moc
PLUGINS="${PLUGINS} arts"
CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`"
LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `"
fi
fi])
dnl
dnl KDE module
dnl
AC_ARG_ENABLE(kde,
[ --enable-kde KDE interface support (default disabled)],
[if test x$enable_kde = xyes; then
PLUGINS="${PLUGINS} kde"
ALIASES="${ALIASES} kvlc"
LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
if test -x ${QTDIR}/bin/moc
dnl ALSA module
dnl
AC_ARG_ENABLE(alsa,
[ --enable-alsa ALSA sound support for Linux (default disabled)],
[if test x$enable_alsa = xyes
then
AC_CHECK_HEADER(alsa/asoundlib.h, AC_CHECK_LIB(asound, main, have_alsa="true", have_alsa="false"),have_alsa="false")
if test x$have_alsa = xtrue
then
MOC=${QTDIR}/bin/moc
else
MOC=moc
PLUGINS="${PLUGINS} alsa"
LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
fi
fi])
dnl
dnl Gnome module
dnl win32 waveOut plugin
dnl
AC_ARG_ENABLE(gnome,
[ --enable-gnome Gnome interface support (default disabled)],
[if test x$enable_gnome = xyes; then
# look for gnome-config
AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
if test -x ${GNOME_CONFIG}
then
CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
fi
# now look for the gnome.h header
saved_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
AC_CHECK_HEADERS(gnome.h, [
PLUGINS="${PLUGINS} gnome"
ALIASES="${ALIASES} gnome-vlc"
],[
AC_MSG_ERROR([Can't find gnome headers. Please install the gnome
developement librairie or remove the --enable-gnome option])
])
CPPFLAGS=$saved_CPPFLAGS
fi])
AC_ARG_ENABLE(waveout,
[ --enable-waveout Win32 waveOut module (default enabled on Win32)])
if test "x$enableval" != "xno" -a x$SYS = xmingw32
then
PLUGINS="${PLUGINS} waveout"
LIB_WAVEOUT="-lwinmm"
fi
dnl
dnl Interface plugins
dnl
AC_ARG_WITH(,[Interface plugins:])
dnl
dnl Gtk+ module
......@@ -1354,7 +1196,7 @@ if test x$enable_gtk != xno
then
GTK_PATH=$PATH
AC_ARG_WITH(gtk-config-path,
[ --with-gtk-config-path=path gtk-config path (default search in \$PATH)],
[ --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)],
[ if test "x$withval" != "xno"
then
GTK_PATH=$withval:$PATH
......@@ -1392,61 +1234,120 @@ then
fi
dnl
dnl X11 module
dnl (enabled by default except on win32)
dnl Gnome module
dnl
AC_ARG_ENABLE(x11,
[ --disable-x11 X11 support (default enabled)])
if test x$enable_x11 != xno &&
(test x$SYS != xmingw32 || test x$enable_x11 = xyes); then
if test x$x_includes = xNONE; then
x_includes=/usr/X11R6/include
fi
if test x$x_libraries = xNONE; then
x_libraries=/usr/X11R6/lib
fi
saved_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$x_includes"
AC_CHECK_HEADERS(X11/Xlib.h, [
PLUGINS="${PLUGINS} x11"
LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext"
CFLAGS_X11="${CFLAGS_X11} -I$x_includes"
])
CPPFLAGS=$saved_CPPFLAGS
fi
AC_ARG_ENABLE(gnome,
[ --enable-gnome Gnome interface support (default disabled)],
[if test x$enable_gnome = xyes; then
# look for gnome-config
AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
if test -x ${GNOME_CONFIG}
then
CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`"
LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
fi
# now look for the gnome.h header
saved_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
AC_CHECK_HEADERS(gnome.h, [
PLUGINS="${PLUGINS} gnome"
ALIASES="${ALIASES} gnome-vlc"
],[
AC_MSG_ERROR([Can't find gnome headers. Please install the gnome
developement librairie or remove the --enable-gnome option])
])
CPPFLAGS=$saved_CPPFLAGS
fi])
dnl
dnl XVideo module
dnl (enabled by default except on win32)
dnl Qt module
dnl
AC_ARG_ENABLE(xvideo,
[ --disable-xvideo XVideo support (default enabled)])
if test x$enable_xvideo != xno &&
(test x$SYS != xmingw32 || test x$enable_xvideo = xyes); then
if test x$x_includes = xNONE; then
x_includes=/usr/X11R6/include
fi
if test x$x_libraries = xNONE; then
x_libraries=/usr/X11R6/lib
fi
saved_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$x_includes"
AC_CHECK_HEADERS(X11/extensions/Xv.h, [
saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
AC_CHECK_LIB(Xv_pic,XvSetPortAttribute,
# We have Xv_pic, that's good, we can build an xvideo.so plugin !
PLUGINS="${PLUGINS} xvideo"
LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic"
CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes",
# We don't have Xv_pic, let's make xvideo.a as builtin
BUILTINS="${BUILTINS} xvideo"
LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv"
CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes")
CFLAGS=$saved_CFLAGS
]
CPPFLAGS=$saved_CPPFLAGS)
fi
AC_ARG_ENABLE(qt,
[ --enable-qt Qt interface support (default disabled)],
[if test x$enable_qt = xyes; then
PLUGINS="${PLUGINS} qt"
ALIASES="${ALIASES} qvlc"
LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib"
CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include"
if test -x ${QTDIR}/bin/moc
then
MOC=${QTDIR}/bin/moc
else
MOC=moc
fi
fi])
dnl
dnl KDE module
dnl
AC_ARG_ENABLE(kde,
[ --enable-kde KDE interface support (default disabled)],
[if test x$enable_kde = xyes; then
PLUGINS="${PLUGINS} kde"
ALIASES="${ALIASES} kvlc"
LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile"
CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt"
CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include"
if test -x ${QTDIR}/bin/moc
then
MOC=${QTDIR}/bin/moc
else
MOC=moc
fi
fi])
dnl
dnl MacOS X module
dnl
AC_ARG_ENABLE(macosx,
[ --enable-macosx MacOS X support (default enabled on MacOS X)],
[if test x$enable_macosx = xyes
then
BUILTINS="${BUILTINS} macosx"
LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
LIB="${LIB} -ObjC"
fi],
[AC_CHECK_HEADERS(Cocoa/Cocoa.h,
BUILTINS="${BUILTINS} macosx"
LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework Cocoa -framework AGL -framework QuickTime -lobjc"
CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC"
LIB="${LIB} -ObjC"
)])
dnl
dnl QNX RTOS module
dnl
AC_ARG_ENABLE(qnx,
[ --enable-qnx QNX RTOS support (default enabled on QNX RTOS)])
if test x$enable_qnx != xno
then
AC_CHECK_HEADERS(Ph.h, [
PLUGINS="${PLUGINS} qnx"
LIB_QNX="${LIB_QNX} -lasound -lph"
])
fi
dnl
dnl Windows MFC interface module
dnl
AC_ARG_ENABLE(win32,
[ --enable-win32 Win32 interface support (default disabled)],
[ if test "x$enableval" != "xno"
then
PLUGINS="${PLUGINS} win32"
fi ])
dnl
dnl ncurses module
dnl
AC_ARG_ENABLE(ncurses,
[ --enable-ncurses ncurses interface support (default disabled)],
[if test x$enable_ncurses = xyes; then
PLUGINS="${PLUGINS} ncurses"
LIB_NCURSES="${LIB_NCURSES} -lncurses"
fi])
dnl
dnl Lirc plugin
......@@ -1463,47 +1364,140 @@ then
fi
fi
dnl
dnl ALSA module
dnl
AC_ARG_ENABLE(alsa,
[ --enable-alsa Alsa sound drivers support (Only for linux)
(default disabled)],
[if test x$enable_alsa = xyes
then
AC_CHECK_HEADER(alsa/asoundlib.h, AC_CHECK_LIB(asound, main, have_alsa="true", have_alsa="false"),have_alsa="false")
if test x$have_alsa = xtrue
then
PLUGINS="${PLUGINS} alsa"
LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl"
fi
fi])
dnl end of non-BeOS stuff
fi
AC_ARG_WITH(,[Misc options:])
dnl
dnl Plug-ins - this must be AT THE END
dnl Endianness check, AC_C_BIGENDIAN doesn't work if we are cross-compiling
dnl
AC_ARG_ENABLE(plugins,
[ --disable-plugins Make all plug-ins built-in (default plug-ins enabled)],
[if test x$enable_plugins = xno
then
BUILTINS="${BUILTINS} ${PLUGINS}"
PLUGINS=
fi])
dnl We give the user the opportunity to specify
dnl --with-words=big or --with-words=little ; otherwise, try to guess
dnl
AC_ARG_WITH(words,
[ --with-words=endianness set endianness (big or little)])
case "x$withval" in
xbig)
ac_cv_c_bigendian=yes
;;
xlittle)
ac_cv_c_bigendian=no
;;
*)
dnl Try to guess endianness by matching patterns on a compiled
dnl binary, by looking for an ASCII or EBCDIC string
AC_CACHE_CHECK([whether the byte order is big-endian],
[ac_cv_c_bigendian],
[ac_cv_c_bigendian=unknown
[cat >conftest.c <<EOF
short am[] = { 0x4249, 0x4765, 0x6e44, 0x6961, 0x6e53, 0x7953, 0 };
short ai[] = { 0x694c, 0x5454, 0x656c, 0x6e45, 0x6944, 0x6e61, 0 };
void _a(void) { char*s = (char*)am; s = (char *)ai; }
short ei[] = { 0x89D3, 0xe3e3, 0x8593, 0x95c5, 0x89c4, 0x9581, 0 };
short em[] = { 0xc2c9, 0xc785, 0x95c4, 0x8981, 0x95e2, 0xa8e2, 0 };
void _e(void) { char*s = (char*)em; s = (char*)ei; }
int main(void) { _a(); _e(); return 0; }
EOF
]
if test -f conftest.c
then
if ${CC-cc} conftest.c -o conftest.o >config.log 2>&1 \
&& test -f conftest.o
then
if test "`strings conftest.o | grep BIGenDianSyS`"
then
ac_cv_c_bigendian=yes
fi
if test "`strings conftest.o | grep LiTTleEnDian`"
then
ac_cv_c_bigendian=no
fi
fi
fi
])
if test x$ac_cv_c_bigendian = xunknown
then
AC_MSG_ERROR([Could not guess endianness, please use --with-words])
fi
;;
esac
dnl Now we know what to use for endianness, just put it in the header
if test $ac_cv_c_bigendian = yes
then
AC_DEFINE(WORDS_BIGENDIAN, 1, big endian system)
fi
dnl
dnl DLLs - used for Win32 package build
dnl
DLL_PATH=.
AC_ARG_WITH(dll-path,
[ --with-dll-path=path Path to Win32 DLLs (default search in \$PWD)],
[ --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)],
[ if test "x$withval" != "xno"
then
DLL_PATH=$withval
fi ])
dnl
dnl Profiling
dnl
GPROF=0
AC_ARG_ENABLE(gprof,
[ --enable-gprof gprof profiling (default disabled)],
[ if test x$enableval = xyes; then GPROF=1; fi ])
CPROF=0
AC_ARG_ENABLE(cprof,
[ --enable-cprof cprof profiling (default disabled)],
[ if test x$enableval = xyes;
then
LIB="${LIB} -lcprof"
CPROF=1
fi
])
dnl
dnl GNU portable threads
dnl
AC_ARG_ENABLE(pth,
[ --enable-pth GNU Pth support (default disabled)],
[ if test x$enableval = xyes; then
AC_CHECK_LIB(pth,pth_init)
AC_EGREP_HEADER(pth_init,pth.h,[
AC_DEFINE(PTH_INIT_IN_PTH_H, 1,
Define if <pth.h> defines pth_init)
THREAD_LIB="-lpth"
fi])
])
dnl
dnl State Threads
dnl
AC_ARG_ENABLE(st,
[ --enable-st State Threads (default disabled)],
[ if test x$enableval = xyes; then
AC_CHECK_LIB(st,st_init)
AC_EGREP_HEADER(st_init,st.h,[
AC_DEFINE(ST_INIT_IN_ST_H, 1,
Define if <st.h> defines st_init)
THREAD_LIB="-lst"
fi])
])
LIB="${LIB} ${THREAD_LIB}"
dnl
dnl Plug-ins - this must be AT THE END
dnl
AC_ARG_ENABLE(plugins,
[ --disable-plugins make all plug-ins built-in (default plug-ins enabled)],
[if test x$enable_plugins = xno
then
BUILTINS="${BUILTINS} ${PLUGINS}"
PLUGINS=
fi])
dnl
dnl Stuff used by the program
dnl
......
......@@ -9,7 +9,7 @@
export DH_COMPAT=3
# Compilation options
export CONFIG_FLAGS="--enable-release --prefix=/usr --enable-gnome --enable-gtk --enable-fb --with-ggi --enable-sdl --enable-esd --enable-qt --with-mad --enable-arts --enable-alsa --enable-lirc --enable-a52"
export CONFIG_FLAGS="--enable-release --prefix=/usr --enable-gnome --enable-gtk --enable-fb --enable-ggi --enable-sdl --enable-esd --enable-qt --enable-mad --enable-arts --enable-alsa --enable-lirc --enable-a52"
export LIBDVDCSS_FLAGS="--with-dvdcss=local-shared"
export VIDDIR="usr/share/videolan"
export PIXDIR="usr/share/pixmaps"
......@@ -25,7 +25,7 @@ build-stamp:
case $(DEB_BUILD_ARCH) in \
i386) \
ARCH_FLAGS="--with-glide" ;; \
ARCH_FLAGS="--enable-glide" ;; \
*) \
ARCH_FLAGS="" ;; \
esac ;\
......
......@@ -350,9 +350,6 @@
/* Define if the GNU gettext() function is already present or preinstalled. */
#undef HAVE_GETTEXT
/* big endian system */
#undef WORDS_BIGENDIAN
/* long getopt support */
#undef HAVE_GETOPT_LONG
......@@ -425,12 +422,15 @@
/* Define if FreeBSD-like dvd_struct is defined. */
#undef HAVE_BSD_DVD_STRUCT
/* Indicate whether we should use SDL/SDL.h or SDL11/SDL.h */
#undef SDL_INCLUDE_FILE
/* big endian system */
#undef WORDS_BIGENDIAN
/* Define if <pth.h> defines pth_init */
#undef PTH_INIT_IN_PTH_H
/* Define if <st.h> defines st_init */
#undef ST_INIT_IN_ST_H
/* Indicate whether we should use SDL/SDL.h or SDL11/SDL.h */
#undef SDL_INCLUDE_FILE
......@@ -205,7 +205,7 @@ perl -pi -e "s|#CFLAGS \+= -mcpu=750|CFLAGS \+= -mcpu=750 -mtune=750|" Makefile
--enable-esd --enable-alsa \
--enable-fb --enable-mga \
--enable-xvideo \
--with-ggi \
--enable-ggi \
--enable-sdl
%endif
# thier configure check if /dev/dsp exists...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment