Commit fb5aad8d authored by Christophe Massiot's avatar Christophe Massiot

New --enable-release config option.

parent 72baa591
...@@ -40,6 +40,7 @@ CPROF = @CPROF@ ...@@ -40,6 +40,7 @@ CPROF = @CPROF@
GPROF = @GPROF@ GPROF = @GPROF@
OPTIMS = @OPTIMS@ OPTIMS = @OPTIMS@
TUNING = @TUNING@ TUNING = @TUNING@
RELEASE = @RELEASE@
# #
# Build environment # Build environment
...@@ -196,6 +197,10 @@ CFLAGS += -pipe ...@@ -196,6 +197,10 @@ CFLAGS += -pipe
CFLAGS += -D_REENTRANT CFLAGS += -D_REENTRANT
CFLAGS += -D_GNU_SOURCE CFLAGS += -D_GNU_SOURCE
ifeq ($(RELEASE),1)
CFLAGS += -DRELEASE
endif
# flags needed for clean beos compilation # flags needed for clean beos compilation
ifeq ($(SYS),beos) ifeq ($(SYS),beos)
CFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual CFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual
......
This diff is collapsed.
...@@ -510,6 +510,15 @@ else ...@@ -510,6 +510,15 @@ else
fi fi
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
dnl MMX acceleration dnl MMX acceleration
dnl dnl
...@@ -1100,6 +1109,7 @@ AC_SUBST(CPROF) ...@@ -1100,6 +1109,7 @@ AC_SUBST(CPROF)
AC_SUBST(GPROF) AC_SUBST(GPROF)
AC_SUBST(OPTIMS) AC_SUBST(OPTIMS)
AC_SUBST(TUNING) AC_SUBST(TUNING)
AC_SUBST(RELEASE)
AC_SUBST(NEED_GETOPT) AC_SUBST(NEED_GETOPT)
AC_SUBST(MOC) AC_SUBST(MOC)
AC_SUBST(WINDRES) AC_SUBST(WINDRES)
...@@ -1154,7 +1164,8 @@ global configuration ...@@ -1154,7 +1164,8 @@ global configuration
system : ${SYS} system : ${SYS}
architecture : ${ARCH} architecture : ${ARCH}
optimizations : ${OPTIMS} optimizations : ${OPTIMS}
tuning: : ${TUNING}" tuning: : ${TUNING}
release: : ${RELEASE}"
if test x${HAVE_VLC} = x1 if test x${HAVE_VLC} = x1
then then
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
export DH_COMPAT=3 export DH_COMPAT=3
# Compilation options # Compilation options
export CONFIG_FLAGS="--prefix=/usr --enable-gnome --enable-gtk --enable-fb --with-ggi --with-sdl --enable-esd --enable-qt" export CONFIG_FLAGS="--enable-release --prefix=/usr --enable-gnome --enable-gtk --enable-fb --with-ggi --with-sdl --enable-esd --enable-qt"
export LIBDVDCSS_FLAGS="--with-dvdcss=local-shared" export LIBDVDCSS_FLAGS="--with-dvdcss=local-shared"
export VIDDIR="usr/share/videolan" export VIDDIR="usr/share/videolan"
export PIXDIR="usr/share/pixmaps" export PIXDIR="usr/share/pixmaps"
......
...@@ -427,7 +427,11 @@ ...@@ -427,7 +427,11 @@
/* Optimization level, from 0 to 2 - 1 is generally a good compromise. Remember /* Optimization level, from 0 to 2 - 1 is generally a good compromise. Remember
* that raising this level dramatically lengthens the compilation time. */ * that raising this level dramatically lengthens the compilation time. */
#define VPAR_OPTIM_LEVEL 1 #ifdef RELEASE
# define VPAR_OPTIM_LEVEL 2
#else
# define VPAR_OPTIM_LEVEL 1
#endif
/* Maximum number of macroblocks in a picture. */ /* Maximum number of macroblocks in a picture. */
#define MAX_MB 2048 #define MAX_MB 2048
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* decoders. * decoders.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input.c,v 1.149 2001/11/02 13:30:38 massiot Exp $ * $Id: input.c,v 1.150 2001/11/06 17:12:02 massiot Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -779,16 +779,16 @@ static void NetworkOpen( input_thread_t * p_input ) ...@@ -779,16 +779,16 @@ static void NetworkOpen( input_thread_t * p_input )
/* Found a port name or a broadcast addres */ /* Found a port name or a broadcast addres */
if( *psz_port ) if( *psz_port )
{ {
/* That's a port name */ /* That's a port name */
if( *psz_port == ':' ) if( *psz_port == ':' )
{ {
*psz_port = '\0'; *psz_port = '\0';
psz_port++; psz_port++;
i_port = atoi( psz_port ); i_port = atoi( psz_port );
} }
/* Search for '/' just after the port in case /* Search for '/' just after the port in case
* we also have a broadcast address */ * we also have a broadcast address */
psz_broadcast = psz_port; psz_broadcast = psz_port;
while( *psz_broadcast && *psz_broadcast != '/' ) while( *psz_broadcast && *psz_broadcast != '/' )
{ {
......
...@@ -104,7 +104,7 @@ install vlc-ncurses ...@@ -104,7 +104,7 @@ install vlc-ncurses
%build %build
export QTDIR=%{_libdir}/qt-2.3.0/ export QTDIR=%{_libdir}/qt-2.3.0/
%configure --with-dvdcss=local-shared \ %configure --enable-release --with-dvdcss=local-shared \
--enable-gnome --enable-gtk \ --enable-gnome --enable-gtk \
--enable-x11 --enable-qt --enable-ncurses \ --enable-x11 --enable-qt --enable-ncurses \
--enable-esd --disable-alsa \ --enable-esd --disable-alsa \
......
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