AC_FUNC_MMAP
AC_TYPE_SIGNAL
AC_CHECK_LIB(dl,dlopen,LIB="${LIB} -ldl")
-AC_CHECK_LIB(m,cos,LIB_IMDCT="${LIB_IMDCT} -lm")
-AC_CHECK_LIB(m,pow,LIB_YUV="${LIB_YUV} -lm")
+AC_CHECK_LIB(m,cos,
+ LIB_IMDCT="${LIB_IMDCT} -lm"
+ LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm")
+AC_CHECK_LIB(m,pow,
+ LIB_IMDCT="${LIB_IMDCT} -lm"
+ LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm"
+ LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm"
+)
dnl Check for pthreads - borrowed from XMMS
THREAD_LIB=error
dnl
dnl default modules
dnl
-#BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy yuv2rgb8 idct idctclassic motion imdct downmix mpeg_adec lpcm_adec ac3_adec mpeg_vdec"
BUILTINS="${BUILTINS} mpeg_es mpeg_ps mpeg_ts memcpy idct idctclassic motion imdct downmix mpeg_adec lpcm_adec ac3_adec mpeg_vdec"
-PLUGINS="${PLUGINS} ac3_spdif spudec"
+PLUGINS="${PLUGINS} ac3_spdif spudec chroma_yv12_rgb8 filter_bob filter_invert filter_wall filter_transform filter_distort"
dnl
dnl Accelerated modules
AC_DEFINE(CAN_COMPILE_ALTIVEC, 1, Define if \$CC groks ALTIVEC inline assembly.)
if test x"$ac_cv_altivec_inline" != x"yes"; then
CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_altivec_inline"
+ CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline"
fi
ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
fi
if test x"$ac_cv_c_altivec" != x"no"; then
AC_DEFINE(CAN_COMPILE_C_ALTIVEC, 1, Define if your compiler groks C altivec extensions.)
CFLAGS_ALTIVEC="$CFLAGS_ALTIVEC $ac_cv_c_altivec"
+ CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec"
ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
fi
case ${target_os} in
linux*)
SYS=linux
- ;;
+ ;;
bsdi*)
SYS=bsdi
;;
])
])
dnl
+ dnl HP-UX: sys/scsi.h
+ dnl
+ AC_CHECK_HEADER(sys/scsi.h,[
+ AC_EGREP_HEADER(sctl_io,sys/scsi.h,[
+ AC_DEFINE(HPUX_SCTL_IO, 1, Define if <sys/scsi.h> defines sctl_io.)
+ ])
+ ])
+ dnl
dnl Final tests to check what was detected
dnl
if test x$LINUX_DVD_STRUCT = x1; then
])
-dnl
-dnl Check the operating system
-dnl
-case ${target_os} in
- bsdi*)
- SYS=bsdi
- ;;
- darwin*)
- SYS=darwin
- ;;
- *)
- SYS=${target_os}
- ;;
-esac
-
dnl
dnl Special arch tuning
dnl
dnl special case for BeOS
if test x$SYS = xbeos
then
+ LIB="${LIB} -lbe"
BUILTINS="${BUILTINS} beos"
- LIB_BEOS="-lbe -lgame -lroot -ltracker"
+ LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker"
PLCFLAGS="${PLCFLAGS} -nostart"
dnl default case
AC_CHECK_HEADERS(X11/extensions/Xv.h, [
BUILTINS="${BUILTINS} xvideo"
LIB_XVIDEO="-L$x_libraries -lX11 -lXext -lXv"
- CFLAGS_X11="-I$x_includes"
+ CFLAGS_XVIDEO="-I$x_includes"
]
CPPFLAGS=$saved_CPPFLAGS)
fi
PLUGINS=
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)],
+ [ if test "x$withval" != "xno"
+ then
+ DLL_PATH=$withval
+ fi ])
dnl
dnl Configuration is finished
AC_SUBST(OPTIMS)
AC_SUBST(TUNING)
AC_SUBST(RELEASE)
-AC_SUBST(NEED_GETOPT)
AC_SUBST(MOC)
AC_SUBST(WINDRES)
+AC_SUBST(DLL_PATH)
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(LIB_DVDREAD)
AC_SUBST(LIB_DVDREAD_PLUGIN)
AC_SUBST(LIB_ESD)
+AC_SUBST(LIB_FILTER_DISTORT)
AC_SUBST(LIB_GGI)
AC_SUBST(LIB_GLIDE)
AC_SUBST(LIB_GNOME)
AC_SUBST(LIB_GTK)
+AC_SUBST(LIB_IMDCT)
+AC_SUBST(LIB_IMDCT3DN)
+AC_SUBST(LIB_IMDCTSSE)
AC_SUBST(LIB_KDE)
AC_SUBST(LIB_LIBDVDCSS)
AC_SUBST(LIB_MACOSX)
AC_SUBST(LIB_SDL)
AC_SUBST(LIB_X11)
AC_SUBST(LIB_XVIDEO)
-AC_SUBST(LIB_YUV)
AC_SUBST(CFLAGS_VLC)
AC_SUBST(CFLAGS_ALTIVEC)
AC_SUBST(CFLAGS_MAD)
AC_SUBST(CFLAGS_SDL)
AC_SUBST(CFLAGS_X11)
+AC_SUBST(CFLAGS_XVIDEO)
AC_SUBST(OBJ_DVD)
AC_SUBST(OBJ_LIBDVDCSS)
+AC_SUBST(NEED_GETOPT)
AC_SUBST(NEED_LIBDVDCSS)
AC_OUTPUT([Makefile.opts include/config.h po/Makefile.in])
-#AC_OUTPUT([Makefile.opts include/config.h intl/Makefile po/Makefile.in])
echo "
global configuration
"
if test x${HAVE_VLC} = x1
then
- echo "To build vlc and its plugins, type \`make vlc'."
+ echo "To build vlc and its plugins, type \`make vlc plugins'."
fi
if test x${HAVE_LIBDVDCSS} = x1
then