dnl Autoconf settings for vlc
-dnl $Id: configure.ac,v 1.23 2003/07/03 19:25:51 garf Exp $
+dnl $Id: configure.ac,v 1.36 2003/07/19 14:14:22 sigmunau Exp $
AC_INIT(vlc,0.6.0)
dnl Check for system libs needed
need_libc=false
-AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 if_nametoindex atoll getenv putenv setenv gmtime_r)
+AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r)
dnl Check for usual libc functions
AC_CHECK_FUNCS(strdup strndup atof lseek)
])
])
-dnl Check for getopt
+dnl Check for getopt (always use builtin one on win32)
+if test "${SYS}" = "mingw32"; then
+need_getopt=:
+else
need_getopt=false
AC_CHECK_FUNCS(getopt_long,[AC_DEFINE(HAVE_GETOPT_LONG,1,long getopt support)],
[ # FreeBSD has a gnugetopt library for this:
[AC_DEFINE(HAVE_GETOPT_LONG,1,getopt support)
AX_ADD_LDFLAGS([vlc],[-lgnugetopt])],
[need_getopt=:])])
+fi
AM_CONDITIONAL(BUILD_GETOPT, ${need_getopt})
if test "${SYS}" != "mingw32"; then
#AX_ADD_BUILTINS([mpeg_video_old idct idctclassic motion])
AX_ADD_PLUGINS([dummy rc logger gestures memcpy])
AX_ADD_PLUGINS([es audio m4v mpeg_system ps ts avi asf aac mp4 rawdv])
-AX_ADD_PLUGINS([spudec mpeg_audio lpcm a52 dts cinepak])
+AX_ADD_PLUGINS([mpeg_audio lpcm a52 dts cinepak])
AX_ADD_PLUGINS([deinterlace invert adjust wall transform distort clone crop motionblur])
AX_ADD_PLUGINS([float32tos16 float32tos8 float32tou16 float32tou8 a52tospdif dtstospdif fixed32tofloat32 fixed32tos16 s16tofixed32 s16tofloat32 s16tofloat32swab s8tofloat32 u8tofixed32 u8tofloat32])
AX_ADD_PLUGINS([trivial_resampler ugly_resampler linear_resampler bandlimited_resampler])
if test "${enable_sout}" != "no"
then
AX_ADD_PLUGINS([access_output_dummy access_output_udp access_output_file access_output_http])
- AX_ADD_PLUGINS([mux_ts mux_ps mux_avi mux_dummy])
+ AX_ADD_PLUGINS([mux_ts mux_ps mux_avi mux_mp4 mux_dummy])
AX_ADD_PLUGINS([packetizer_mpegaudio packetizer_mpegvideo packetizer_a52])
AX_ADD_PLUGINS([packetizer_mpeg4video packetizer_mpeg4audio])
AX_ADD_PLUGINS([packetizer_copy])
[ --enable-ffmpeg ffmpeg codec (default enabled)])
if test "${enable_ffmpeg}" != "no"
then
+ AC_ARG_WITH(ffmpeg-mp3lame,
+ [ --with-ffmpeg-mp3lame if ffmpeg has been compiled with mp3lame support],
+ [ AX_ADD_LDFLAGS([stream_out_transcode],[-lmp3lame])
+ AX_ADD_LDFLAGS([ffmpeg],[-lmp3lame]) ])
+
AC_ARG_WITH(ffmpeg-tree,
[ --with-ffmpeg-tree=PATH ffmpeg tree for static linking])
dnl XXX: we don't link with -lavcodec blah blah blah
dnl AX_ADD_LDFLAGS([encoder_ffmpeg],[${LDFLAGS_ffmpeg}])
- AC_CHECK_HEADERS(vorbis/vorbisenc.h vorbis/codec.h,
- AX_ADD_LDFLAGS([stream_out_transcode],[-lvorbisenc -lvorbis -logg]) )
+ ac_have_vorbis_headers=yes
+ AC_CHECK_HEADERS(vorbis/vorbisenc.h vorbis/codec.h,,
+ ac_have_vorbis_headers=no)
+ if test "$ac_have_vorbis_headers" = "yes"; then
+ AX_ADD_LDFLAGS([stream_out_transcode],[-lvorbisenc -lvorbis -logg])
+ fi
fi
dnl
dnl MP4 module
dnl
AC_CHECK_HEADERS(zlib.h, [
- AX_ADD_LDFLAGS([mp4 skins basic_skins],[-lz])
+ AX_ADD_LDFLAGS([mp4 skins],[-lz])
] )
dnl skins module
dnl
AC_CHECK_HEADERS(libtar.h, [
- AX_ADD_LDFLAGS([skins basic_skins],[-ltar])
+ AX_ADD_LDFLAGS([skins],[-ltar])
] )
AC_CHECK_HEADERS(theora/theora.h, [
AC_CHECK_LIB(theora, theora_granule_time, [
AX_ADD_BUILTINS([theora])
- AX_ADD_LDFLAGS([theora],[-ltheora -logg]) ],[
+ if test "${SYS}" = "darwin"; then
+ theora_libs="-ltheora"
+ else
+ theora_libs="-ltheora -logg"
+ fi
+ AX_ADD_LDFLAGS([theora],[${theora_libs}]) ],[
AC_MSG_ERROR([libtheora doesn't appear to be installed on you system.
You also need to check that you have a libogg posterior to the 1.0 release.])],
[-logg])
])
fi
+dnl
+dnl spudec support
+dnl
+AX_ADD_LDFLAGS([spudec],[${LIBICONV}])
+AX_ADD_CPPFLAGS([spudec],[${INCICONV}])
+AX_ADD_PLUGINS([spudec])
+
+
dnl
dnl Video Filters
dnl
if test "${FREETYPE_CONFIG}" != "no"
then
- AX_ADD_PLUGINS([osdtext])
- AX_ADD_CFLAGS([osdtext],[`${FREETYPE_CONFIG} --cflags`])
- AX_ADD_LDFLAGS([osdtext],[`${FREETYPE_CONFIG} --libs`])
+ AX_ADD_PLUGINS([freetype])
+ AX_ADD_CFLAGS([freetype],[`${FREETYPE_CONFIG} --cflags`])
+ AX_ADD_LDFLAGS([freetype],[`${FREETYPE_CONFIG} --libs`])
+ AC_CHECK_HEADERS(Carbon/Carbon.h,
+ [AX_ADD_LDFLAGS([freetype],[-framework Carbon])])
CPPFLAGS="${CPPFLAGS_save} ${CFLAGS_freetype}"
elif test "${enable_freetype}" = "yes"
then
AC_ARG_ENABLE(skins,
[ --enable-skins Skins interface module (default enabled on Win32)])
if test "${enable_skins}" != "no"; then
- WXWINDOWS_PATH="${PATH}"
- AC_ARG_WITH(skins-wx-config-path,
- [ --with-skins-wx-config-path=PATH wx-config path for the skins plugin (default search in \$PATH)],
- [ if test "${with_skins_wx_config_path}" != "no"
- then
- WXWINDOWS_PATH="${with_skins_wx_config_path}:${PATH}"
- fi ])
- # look for wx-config
- AC_PATH_PROG(WX_CONFIG_SKINS, wx-config, no, ${WXWINDOWS_PATH})
- if test "${WX_CONFIG_SKINS}" != "no"
- then
- if expr 2.3.0 \> `${WX_CONFIG_SKINS} --version` >/dev/null
- then
- AC_MSG_ERROR([Your development package for wxWindows is too old, you need at least version 2.3.0. Please upgrade and try again. Alternatively you can also configure with --disable-skins.])
- fi
- AX_ADD_CPPFLAGS([skins],[`${WX_CONFIG_SKINS} --cxxflags` -DWX_SKINS])
- AX_ADD_LDFLAGS([skins],[`${WX_CONFIG_SKINS} --libs`])
- fi
-
if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"; then
+
AX_ADD_PLUGINS([skins])
AX_ADD_CPPFLAGS([skins],[-U_OFF_T_ -U_off_t -Imodules/gui/skins])
AX_ADD_CXXFLAGS([skins],[-O2 -fno-rtti])
AX_ADD_LDFLAGS([skins],[-loleaut32 -lwinspool -lwinmm -lshell32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -lcomdlg32 -lole32 -luuid -lcomctl32])
- else
- if test "${enable_skins}" = "yes"; then
- IMLIB2_PATH="${PATH}"
- AC_PATH_PROG(IMLIB2_CONFIG_SKINS, imlib2-config, no, ${IMLIB2_PATH})
- if test "${IMLIB2_CONFIG_SKINS}" = "no"; then
- AC_MSG_ERROR([Couldn't find the imlib2 package. You can download imlib2 from http://enlightenment.org/, or configure with --disable-skins.])
- fi
-
- AX_ADD_PLUGINS([skins])
- AX_ADD_CPPFLAGS([skins],[-Imodules/gui/skins -I${x_includes} `${IMLIB2_CONFIG_SKINS} --cflags` -DX11_SKINS])
- AX_ADD_CXXFLAGS([skins],[-O2 -fno-rtti])
- AX_ADD_LDFLAGS([skins],[-L${x_libraries} -lXext -lX11 `${IMLIB2_CONFIG_SKINS} --libs`])
- AX_ADD_PLUGINS([skins])
- fi
- fi
-fi
-dnl
-dnl Basic skins module (i.e. without wxWindows dialogs)
-dnl
-AC_ARG_ENABLE(basic-skins,
- [ --enable-basic-skins Skins interface module without wxWindows dialogs (default disabled)])
-if test "${enable_basic_skins}" = "yes"; then
- if test "${SYS}" = "mingw32" -o "${SYS}" = "cygwin"; then
-
- AX_ADD_CPPFLAGS([basic_skins],[-U_OFF_T_ -U_off_t -Imodules/gui/skins])
- AX_ADD_CXXFLAGS([basic_skins],[-O2 -fno-rtti])
- AX_ADD_LDFLAGS([basic_skins],[-loleaut32 -lwinspool -lwinmm -lshell32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -lcomdlg32 -lole32 -luuid -lcomctl32])
-
- else
+ else if test "${enable_skins}" = "yes"; then
IMLIB2_PATH="${PATH}"
AC_PATH_PROG(IMLIB2_CONFIG_SKINS, imlib2-config, no, ${IMLIB2_PATH})
if test "${IMLIB2_CONFIG_SKINS}" = "no"; then
- AC_MSG_ERROR([Couldn't find the imlib2 package. You can download imlib2 from http://enlightenment.org/, or configure with --disable-basic-skins.])
+ AC_MSG_ERROR([Couldn't find the imlib2 package. You can download imlib2 from http://enlightenment.org/, or configure with --disable-skins.])
fi
- AX_ADD_CPPFLAGS([basic_skins],[-Imodules/gui/skins -I${x_includes} `${IMLIB2_CONFIG_SKINS} --cflags` -DX11_SKINS])
- AX_ADD_CXXFLAGS([basic_skins],[-O2 -fno-rtti])
- AX_ADD_LDFLAGS([basic_skins],[-L${x_libraries} -lXext -lX11 `${IMLIB2_CONFIG_SKINS} --libs`])
- fi
-
- AX_ADD_PLUGINS([basic_skins])
+ AX_ADD_PLUGINS([skins])
+ AX_ADD_CPPFLAGS([skins],[-Imodules/gui/skins -I${x_includes} `${IMLIB2_CONFIG_SKINS} --cflags` -DX11_SKINS])
+ AX_ADD_CXXFLAGS([skins],[-O2 -fno-rtti])
+ AX_ADD_LDFLAGS([skins],[-L${x_libraries} -lXext -lX11 `${IMLIB2_CONFIG_SKINS} --libs`])
+ fi fi
fi
dnl
fi
dnl
-dnl Gtk+2 module
+dnl Gtk+2 module ! Disabled for know as it is unuseable and confuses users
dnl
-AC_ARG_ENABLE(gtk2,
- [ --enable-gtk2 Gtk2 support (default disabled)])
-if test "${enable_gtk2}" = "yes"
-then
- PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.0.0, gthread-2.0])
- AX_ADD_CFLAGS([gtk2],[${GTK2_CFLAGS}])
- AX_ADD_LDFLAGS([gtk2],[${GTK2_LIBS}])
- AX_ADD_PLUGINS([gtk2])
- if test "${SYS}" != "mingw32"; then
- NEED_GTK2_MAIN=yes
- fi
-fi
+dnl AC_ARG_ENABLE(gtk2,
+dnl [ --enable-gtk2 Gtk2 support (default disabled)])
+dnl if test "${enable_gtk2}" = "yes"
+dnl then
+dnl PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.0.0, gthread-2.0])
+dnl AX_ADD_CFLAGS([gtk2],[${GTK2_CFLAGS}])
+dnl AX_ADD_LDFLAGS([gtk2],[${GTK2_LIBS}])
+dnl AX_ADD_PLUGINS([gtk2])
+dnl if test "${SYS}" != "mingw32"; then
+dnl NEED_GTK2_MAIN=yes
+dnl fi
+dnl fi
dnl
dnl Familiar module uses Gtk+ library
fi])
dnl
-dnl Gnome2 module
+dnl Gnome2 module ! Disabled for know as it is unuseable and confuses users
dnl
-AC_ARG_ENABLE(gnome2,
- [ --enable-gnome2 Gnome2 support (default disabled)])
-if test "${enable_gnome2}" = "yes"
-then
- PKG_CHECK_MODULES(GNOME2, [libgnomeui-2.0])
- AX_ADD_CFLAGS([gnome2],[${GNOME2_CFLAGS}])
- AX_ADD_LDFLAGS([gnome2],[${GNOME2_LIBS}])
- AX_ADD_PLUGINS([gnome2])
- if test "${SYS}" != "mingw32"; then
- NEED_GNOME2_MAIN=yes
- fi
-fi
+dnl AC_ARG_ENABLE(gnome2,
+dnl [ --enable-gnome2 Gnome2 support (default disabled)])
+dnl if test "${enable_gnome2}" = "yes"
+dnl then
+dnl PKG_CHECK_MODULES(GNOME2, [libgnomeui-2.0])
+dnl AX_ADD_CFLAGS([gnome2],[${GNOME2_CFLAGS}])
+dnl AX_ADD_LDFLAGS([gnome2],[${GNOME2_LIBS}])
+dnl AX_ADD_PLUGINS([gnome2])
+dnl if test "${SYS}" != "mingw32"; then
+dnl NEED_GNOME2_MAIN=yes
+dnl fi
+dnl fi
dnl
dnl wxWindows module
fi
fi
+dnl
+dnl corba (ORBit) plugin
+dnl
+AC_ARG_ENABLE(corba,
+ [ --enable-corba corba interface support (default disabled)])
+if test "${enable_corba}" = "yes"; then
+ ORBIT_PATH="${PATH}"
+ AC_ARG_WITH(orbit-config-path,
+ [ --with-orbit-config-path=PATH orbit-config path (default search in \$PATH)])
+ if test "${with_orbit_config_path}" != "no"; then
+ ORBIT_PATH="${with_orbit_config_path}:${PATH}"
+ fi
+ # look for orbit2-config
+ AC_PATH_PROG(ORBIT_CONFIG, orbit2-config, no, ${ORBIT_PATH})
+ if test "${ORBIT_CONFIG}" != "no"; then
+ AX_ADD_CFLAGS(corba,[`${ORBIT_CONFIG} --cflags server`])
+ AX_ADD_LDFLAGS(corba,[`${ORBIT_CONFIG} --libs server | sed 's,-rdynamic,,'`])
+ # now look for the orbit.h header
+ CPPFLAGS="${CPPFLAGS_save} ${CFLAGS_corba}"
+ ac_cv_corba_headers=yes
+ AC_CHECK_HEADERS(orbit/orbit.h, , [
+ ac_cv_corba_headers=no
+ AC_MSG_ERROR([Could not find corba development headers])
+ ])
+ if test "${ac_cv_corba_headers}" = "yes"; then
+ AX_ADD_PLUGINS(corba)
+ fi
+ CPPFLAGS="${CPPFLAGS_save}"
+ fi
+fi
+
AC_ARG_WITH(,[Misc options:])
dnl
if test "${enable_mozilla}" = "yes"
then
AC_PATH_PROG(MOZILLA_CONFIG, mozilla-config, no)
- if test "${MOZILLA_CONFIG}" != "no"
+ if test "${MOZILLA_CONFIG}" = "no"
then
+ AC_MSG_ERROR([Please install the Mozilla development tools, mozilla-config was not found.])
+ else
if test "${SYS}" != "mingw32"; then
LDFLAGS="${LDFLAGS_save} -L${x_libraries}"
AC_CHECK_LIB(Xt,XtStrings,[
dnl
dnl Handle substvars that use $(top_srcdir)
dnl
-VLC_CONFIG="\$(top_builddir)/vlc-config"
+VLC_CONFIG="top_builddir=\"\$(top_builddir)\" \$(top_builddir)/vlc-config"
AC_SUBST(VLC_CONFIG)
CPPFLAGS_save="${CPPFLAGS_save} -I\$(top_srcdir)/include"
ipkg/Makefile
lib/Makefile
modules/Makefile
+ mozilla/Makefile
m4/Makefile
po/Makefile.in
share/Makefile
modules/codec/mpeg_video/motion/Makefile
modules/codec/spudec/Makefile
modules/control/Makefile
+ modules/control/corba/Makefile
modules/control/lirc/Makefile
modules/control/rc/Makefile
modules/demux/Makefile