Commit f1eecee2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove USE_LIBTOOL hack

parent 5cf35d44
...@@ -269,26 +269,11 @@ endif ...@@ -269,26 +269,11 @@ endif
vlc_DEPENDENCIES = src/$(LIB_libvlc) $(DATA_win32_rc) vlc_DEPENDENCIES = src/$(LIB_libvlc) $(DATA_win32_rc)
vlc_LDADD = $(DATA_win32_rc) $(LIBVLC) vlc_LDADD = $(DATA_win32_rc) $(LIBVLC) $(LTLIBINTL)
vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc` vlc_CFLAGS = `$(VLC_CONFIG) --cflags vlc`
if USE_LIBTOOL
LIB_libvlc = libvlc.la LIB_libvlc = libvlc.la
LIBVLC = src/$(LIB_libvlc) LIBVLC = src/$(LIB_libvlc)
vlc_LDFLAGS =
else
if HAVE_WIN32
vlc_LDFLAGS = -L$(top_builddir)/src -lvlc `$(VLC_CONFIG) --libs vlc`
LIB_libvlc = libvlc.dll.a
LIBVLC =
else
vlc_LDFLAGS = $(vlc_WORKAROUNDLFDLAGS) `$(VLC_CONFIG) --libs vlc builtin`
LIB_libvlc = libvlc.a
LIBVLC = src/$(LIB_libvlc)
vlc_DEPENDENCIES += stamp-builtin
endif
vlc_LDADD += $(INCLUDED_LIBINTL)
endif
# Shortcut for developpers to rebuild the core (libvlc + vlc) # Shortcut for developpers to rebuild the core (libvlc + vlc)
# Don't use it if you don't know what it is about. # Don't use it if you don't know what it is about.
...@@ -310,7 +295,7 @@ vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_DEPENDENCIES) ...@@ -310,7 +295,7 @@ vlc$(EXEEXT): $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_DEPENDENCIES)
objc) cmd="$(OBJCLINK)" ;; \ objc) cmd="$(OBJCLINK)" ;; \
c|*) cmd="$(LINK)" ;; \ c|*) cmd="$(LINK)" ;; \
esac ; \ esac ; \
cmd="$$cmd $(vlc_OBJECTS) $(vlc_LDADD) $(vlc_LDFLAGS)" ; \ cmd="$$cmd $(vlc_OBJECTS) $(vlc_LDADD)" ; \
echo $$cmd ; \ echo $$cmd ; \
eval $$cmd eval $$cmd
......
...@@ -13,24 +13,15 @@ libjvlc_la_SOURCES = \ ...@@ -13,24 +13,15 @@ libjvlc_la_SOURCES = \
libjvlc_la_CPPFLAGS = `$(VLC_CONFIG) --cflags pic` $(JINCLUDES) libjvlc_la_CPPFLAGS = `$(VLC_CONFIG) --cflags pic` $(JINCLUDES)
libjvlc_la_LIBADD = ../../../src/libvlc-control.la $(LIBJINCLUDES) libjvlc_la_LIBADD = ../../../src/libvlc-control.la $(LIBJINCLUDES)
libjvlc_a_SOURCES=$(libjvlc_la_SOURCES)
libjvlc_a_CPPFLAGS = `$(VLC_CONFIG) --cflags pic` $(JINCLUDES)
if BUILD_JAVA if BUILD_JAVA
if USE_LIBTOOL
lib_LTLIBRARIES = libjvlc.la lib_LTLIBRARIES = libjvlc.la
else
lib_LIBRARIES = libjvlc.a
endif
if HAVE_WIN32 if HAVE_WIN32
DATA_noinst_libjvlc = jvlc$(LIBEXT) libjvlc$(LIBEXT).a DATA_noinst_libjvlc = jvlc$(LIBEXT) libjvlc$(LIBEXT).a
LIBRARIES_libvlc = $(top_builddir)/src/libvlc.dll.a LIBRARIES_libvlc = $(top_builddir)/src/libvlc.dll.a
libjvlc_a_DEPENDENCIES = libjvlc.def $(LIBRARIES_libvlc)
LDFLAGS_jvlc = `$(VLC_CONFIG) --libs libvlc` LDFLAGS_jvlc = `$(VLC_CONFIG) --libs libvlc`
libjvlc_DATA = jvlc$(LIBEXT) libjvlc_DATA = jvlc$(LIBEXT)
libjvlc_a_LIBADD = ../../../src/libvlc.dll.a
libjvlcdir=$(srcdir) libjvlcdir=$(srcdir)
...@@ -49,9 +40,6 @@ jvlc$(LIBEXT): $(libjvlc_a_OBJECTS) \ ...@@ -49,9 +40,6 @@ jvlc$(LIBEXT): $(libjvlc_a_OBJECTS) \
all: libjvlc.dll.a all: libjvlc.dll.a
else
libjvlc_a_LIBADD = ../../../src/libvlc.a
endif endif
.PHONY: clean-local .PHONY: clean-local
......
...@@ -226,12 +226,7 @@ LTLIBVLC = -L\$(top_builddir)/src -lvlc ...@@ -226,12 +226,7 @@ LTLIBVLC = -L\$(top_builddir)/src -lvlc
AM_LDFLAGS = -rpath '\$(libvlcdir)' -avoid-version \\ AM_LDFLAGS = -rpath '\$(libvlcdir)' -avoid-version \\
-module -no-undefined -shrext \$(LIBEXT) \\ -module -no-undefined -shrext \$(LIBEXT) \\
-export-symbol-regex ^\$(VLC_ENTRY)\$\$ -export-symbol-regex ^\$(VLC_ENTRY)\$\$
if USE_LIBTOOL
AM_LIBADD = \$(LTLIBVLC) AM_LIBADD = \$(LTLIBVLC)
else
LIBVLC = -l\$(top_builddir) -lvlc
endif
all: all-modules all: all-modules
...@@ -240,18 +235,10 @@ nice: ...@@ -240,18 +235,10 @@ nice:
# Find out which modules were enabled and tell make to build them # Find out which modules were enabled and tell make to build them
all-modules: all-modules:
if USE_LIBTOOL
@set fnord \$\$MAKEFLAGS; amf=\$\$2; targets=\`\\ @set fnord \$\$MAKEFLAGS; amf=\$\$2; targets=\`\\
z=\$\$(\$(VLC_CONFIG) --list plugin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_plugin.la;; esac; done; \\ z=\$\$(\$(VLC_CONFIG) --list plugin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_plugin.la;; esac; done; \\
\`; case "\$\$targets" in *lib*) \$(MAKE) \$(AM_MAKEFLAGS) \$\$targets || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; ;; esac; \\ \`; case "\$\$targets" in *lib*) \$(MAKE) \$(AM_MAKEFLAGS) \$\$targets || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; ;; esac; \\
test -z "\$\$fail" test -z "\$\$fail"
else
@set fnord \$\$MAKEFLAGS; amf=\$\$2; targets=\`\\
z=\$\$(\$(VLC_CONFIG) --list plugin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}_plugin\$(LIBEXT);; esac; done; \\
z=\$\$(\$(VLC_CONFIG) --list builtin); for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo lib\$\${mod}.a;; esac; done; \\
\`; case "\$\$targets" in *lib*) \$(MAKE) \$(AM_MAKEFLAGS) \$\$targets || case "\$\$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; ;; esac; \\
test -z "\$\$fail"
endif
# Build a plugin with the adequate linker and linker's flags # Build a plugin with the adequate linker and linker's flags
_plugin.la_plugin\$(LIBEXT): _plugin.la_plugin\$(LIBEXT):
...@@ -272,53 +259,25 @@ if MAINTAINER_MODE ...@@ -272,53 +259,25 @@ if MAINTAINER_MODE
endif endif
mostlyclean-local: mostlyclean-local:
-rm -f *.la -rm -f -- *.la
if !USE_LIBTOOL
-rm -f *\$(LIBEXT)
endif
### automake creates libvlcdir after running install-*-local ### automake creates libvlcdir after running install-*-local
### so we have to create it ourselves first ### so we have to create it ourselves first
install-exec-local: all-modules install-exec-local: all-modules
if USE_LIBTOOL
@if test -z "\$(libvlc_LTLIBRARIES)"; then \ @if test -z "\$(libvlc_LTLIBRARIES)"; then \
z=\$\$(\$(VLC_CONFIG) --list plugin); \ z=\$\$(\$(VLC_CONFIG) --list plugin); \
m=\`for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \ m=\`for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \
test -z "\$\$m" || \ test -z "\$\$m" || \
\$(MAKE) \$(AM_MAKEFLAGS) libvlc_LTLIBRARIES="\$\$m" install-libvlcLTLIBRARIES || exit \$\$? ; \ \$(MAKE) \$(AM_MAKEFLAGS) libvlc_LTLIBRARIES="\$\$m" install-libvlcLTLIBRARIES || exit \$\$? ; \
fi fi
else
mkdir -p -- "\$(DESTDIR)\$(libvlcdir)"
@z=\$\$(\$(VLC_CONFIG) --list plugin); \
for mod in \$(mods); do \
case "\$\$z " \
in *\ \$\${mod}\ *) \
echo \$(INSTALL_PROGRAM) "lib\$\${mod}_plugin\$(LIBEXT)" "\$(DESTDIR)\$(libvlcdir)/" ; \
\$(INSTALL_PROGRAM) "lib\$\${mod}_plugin\$(LIBEXT)" "\$(DESTDIR)\$(libvlcdir)/" || exit \$\$?; \
;; \
esac; \
done
endif
uninstall-local: uninstall-local:
if USE_LIBTOOL
@if test -z "\$(libvlc_LTLIBRARIES)"; then \ @if test -z "\$(libvlc_LTLIBRARIES)"; then \
z=\$\$(\$(VLC_CONFIG) --list plugin); \ z=\$\$(\$(VLC_CONFIG) --list plugin); \
m=\`for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \ m=\`for mod in \$(mods); do case "\$\$z " in *\ \$\${mod}\ *) echo -n " lib\$\${mod}_plugin.la" ;; esac; done\` ; \
test -z "\$\$m" || \ test -z "\$\$m" || \
\$(MAKE) \$(AM_MAKEFLAGS) libvlc_LTLIBRARIES="\$\$m" uninstall-libvlcLTLIBRARIES || exit \$\$?; \ \$(MAKE) \$(AM_MAKEFLAGS) libvlc_LTLIBRARIES="\$\$m" uninstall-libvlcLTLIBRARIES || exit \$\$?; \
fi fi
else
@z=\$\$(\$(VLC_CONFIG) --list plugin); \
for mod in \$(mods); do \
case "\$\$z " \
in *\ \$\${mod}\ *) \
echo rm -f "\$(DESTDIR)\$(libvlcdir)/lib\$\${mod}_plugin\$(LIBEXT)" ; \
rm -f "\$(DESTDIR)\$(libvlcdir)/lib\$\${mod}_plugin\$(LIBEXT)" || true; \
;; \
esac; \
done
endif
EOF EOF
for mod in $mods for mod in $mods
......
...@@ -336,7 +336,6 @@ AC_ARG_ENABLE(libtool, ...@@ -336,7 +336,6 @@ AC_ARG_ENABLE(libtool,
AS_IF([test "x{enable_libtool}" = "xno"], [ AS_IF([test "x{enable_libtool}" = "xno"], [
AC_MSG_WARN([Disabling libtool is strongly discouraged. There are known bugs.]) AC_MSG_WARN([Disabling libtool is strongly discouraged. There are known bugs.])
]) ])
AM_CONDITIONAL(USE_LIBTOOL, [test "x${enable_libtool}" != "xno"] )
lt_cv_deplibs_check_method=pass_all lt_cv_deplibs_check_method=pass_all
......
...@@ -138,13 +138,8 @@ endif ...@@ -138,13 +138,8 @@ endif
noinst_LIBRARIES_mozilla = libnpvlc.a noinst_LIBRARIES_mozilla = libnpvlc.a
if USE_LIBTOOL
# FIXME: name is incorrect on Win32 & Darwin # FIXME: name is incorrect on Win32 & Darwin
npvlc_LTLIBRARIES = libvlcplugin.la npvlc_LTLIBRARIES = libvlcplugin.la
else
npvlc_DATA = $(npvlc)
EXTRA_LIBRARIES = libnpvlc.a
endif
endif endif
if HAVE_WIN32 if HAVE_WIN32
......
...@@ -307,10 +307,8 @@ misc/revision.c: ...@@ -307,10 +307,8 @@ misc/revision.c:
############################################################################### ###############################################################################
# Unit/regression test # Unit/regression test
############################################################################### ###############################################################################
if USE_LIBTOOL
check_PROGRAMS = test_i18n_atof test_url test_utf8 check_PROGRAMS = test_i18n_atof test_url test_utf8
TESTS = $(check_PROGRAMS) TESTS = $(check_PROGRAMS)
endif
CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc` CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
......
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