Commit 106497cd authored by Sam Hocevar's avatar Sam Hocevar

* ./bootstrap, ./Makefile.am: workarounds for automake 1.5.

parent 24a7d9c8
...@@ -20,9 +20,6 @@ conftest.cc ...@@ -20,9 +20,6 @@ conftest.cc
autom4te.cache autom4te.cache
Makefile Makefile
Makefile.in Makefile.in
Makefile.opts
Makefile.modules
Makefile.config
Modules.am Modules.am
build-stamp build-stamp
stamp-h* stamp-h*
......
...@@ -29,6 +29,10 @@ noinst_HEADERS = ...@@ -29,6 +29,10 @@ noinst_HEADERS =
# Tell aclocal to use -I m4. Wonder if it really works. # Tell aclocal to use -I m4. Wonder if it really works.
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4
# XXX: these flags could be set in configure.ac.in, but we set them here
# because old versions of automake don't support them in configure.ac.
AUTOMAKE_OPTIONS = foreign dist-bzip2 subdir-objects
############################################################################### ###############################################################################
# Compilation flags for debug mode, profiling, and others # Compilation flags for debug mode, profiling, and others
############################################################################### ###############################################################################
...@@ -217,6 +221,10 @@ endif ...@@ -217,6 +221,10 @@ endif
echo "" >> $@.tmp echo "" >> $@.tmp
mv -f $@.tmp $@ mv -f $@.tmp $@
# These dependencies are mandatory
$(SOURCES): include/vlc_symbols.h
$(SOURCES_libvlc): src/misc/modules_plugin.h src/misc/modules_builtin.h
############################################################################### ###############################################################################
# Optional getopt # Optional getopt
############################################################################### ###############################################################################
...@@ -288,9 +296,6 @@ EXTRA_DIST += \ ...@@ -288,9 +296,6 @@ EXTRA_DIST += \
src/misc/darwin_specific.c \ src/misc/darwin_specific.c \
src/misc/win32_specific.c src/misc/win32_specific.c
BUILT_SOURCES += \
src/misc/modules_builtin.h
SOURCES_libvlc = \ SOURCES_libvlc = \
src/libvlc.c \ src/libvlc.c \
src/libvlc.h \ src/libvlc.h \
...@@ -346,7 +351,7 @@ vlc_SOURCES = src/vlc.c $(SOURCES_libgetopt) ...@@ -346,7 +351,7 @@ vlc_SOURCES = src/vlc.c $(SOURCES_libgetopt)
# @AUTOMAKE_SUCKS@ gets expanded to $(L_builtin) $(LDFLAGS_builtin) # @AUTOMAKE_SUCKS@ gets expanded to $(L_builtin) $(LDFLAGS_builtin)
# but we don't write it directly, otherwise automake will go amok and eat all # but we don't write it directly, otherwise automake will go amok and eat all
# the memory because of its 2^N crap algorithm. So we fool him. Nuahaha. # the memory because of its 2^N crap algorithm. So we fool him. Nuahaha.
vlc_LDADD = lib/libvlc.a $(LDFLAGS_vlc) $(noinst_share_vlc_win32_rc_DATA) @AUTOMAKE_SUCKS@ vlc_LDADD = lib/libvlc.a $(LDFLAGS_vlc) $(DATA_win32_rc) @AUTOMAKE_SUCKS@
vlc_DEPENDENCIES = lib/libvlc.a $(L_builtin) vlc_DEPENDENCIES = lib/libvlc.a $(L_builtin)
vlc_CFLAGS = $(CPPFLAGS_default) $(CFLAGS_default) vlc_CFLAGS = $(CPPFLAGS_default) $(CFLAGS_default)
...@@ -381,6 +386,7 @@ vlc.app: vlc ...@@ -381,6 +386,7 @@ vlc.app: vlc
endif endif
if HAVE_WIN32 if HAVE_WIN32
DATA_win32_rc = $(noinst_share_vlc_win32_rc_DATA)
noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT) noinst_share_vlc_win32_rc_DATA = share/vlc_win32_rc.$(OBJEXT)
noinst_share_vlc_win32_rcdir = $(libdir) noinst_share_vlc_win32_rcdir = $(libdir)
share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc share/vlc_win32_rc.$(OBJEXT): share/vlc_win32_rc.rc
...@@ -420,6 +426,7 @@ mozilla_libvlcplugin_a_CXXFLAGS = $(CPPFLAGS_pic) $(CXXFLAGS_pic) \ ...@@ -420,6 +426,7 @@ mozilla_libvlcplugin_a_CXXFLAGS = $(CPPFLAGS_pic) $(CXXFLAGS_pic) \
mozilla_libvlcplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(L_builtin_pic) mozilla_libvlcplugin_a_DEPENDENCIES = lib/libvlc_pic.a $(L_builtin_pic)
BUILT_SOURCES_mozilla = mozilla/vlcintf.h BUILT_SOURCES_mozilla = mozilla/vlcintf.h
$(SOURCES_mozilla): mozilla/vlcintf.h
mozilla_libvlcplugin_DATA = mozilla/libvlcplugin$(LIBEXT) mozilla_libvlcplugin_DATA = mozilla/libvlcplugin$(LIBEXT)
mozilla_libvlcplugindir = $(libdir)/mozilla/plugins mozilla_libvlcplugindir = $(libdir)/mozilla/plugins
......
#! /bin/sh #! /bin/sh
## bootstrap file for vlc, the VideoLAN Client ## bootstrap file for vlc, the VideoLAN Client
## $Id: bootstrap,v 1.14 2002/09/30 11:05:32 sam Exp $ ## $Id: bootstrap,v 1.15 2002/10/02 12:59:59 sam Exp $
## ##
## Authors: Samuel Hocevar <sam@zoy.org> ## Authors: Samuel Hocevar <sam@zoy.org>
...@@ -248,19 +248,16 @@ perl -ne 'if(/^.{500}/) {s/(.{200}[^ ]* )/$1\\\n\t/g} print $_' < Makefile.in > ...@@ -248,19 +248,16 @@ perl -ne 'if(/^.{500}/) {s/(.{200}[^ ]* )/$1\\\n\t/g} print $_' < Makefile.in >
autoconf || exit 1 autoconf || exit 1
## ##
## Shut up ## headers which need to be regenerated
## ##
set +x rm -f src/misc/modules_builtin.h src/misc/modules_plugin.h
rm -f include/vlc_symbols.h
rm -f mozilla/vlcintf.h
## ##
## headers which need to be regenerated because of the VLC_EXPORT macro ## Shut up
## ##
files="src/misc/modules_builtin.h src/misc/modules_plugin.h include/vlc_symbols.h" set +x
for file in src/misc/modules_builtin.h src/misc/modules_plugin.h include/vlc_symbols.h mozilla/vlcintf.h
do
echo "touching $file"
echo > $file
done
## ##
## Glade sometimes sucks ## Glade sometimes sucks
......
...@@ -9,7 +9,9 @@ AC_PREREQ(2.50) ...@@ -9,7 +9,9 @@ AC_PREREQ(2.50)
AC_CONFIG_SRCDIR(src/libvlc.c) AC_CONFIG_SRCDIR(src/libvlc.c)
AC_CANONICAL_SYSTEM AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([foreign dist-bzip2 subdir-objects]) dnl XXX: we don't put any flags here, because automake 1.5 doesn't support
dnl them. And we need the comma otherwize automake will choke on it.
AM_INIT_AUTOMAKE(,)
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
dnl dnl
......
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