VLC can now be built in a subdirectory
###############################################################################
bin_SCRIPTS = vlc-config
+CLEANFILES = $(bin_SCRIPTS)
+vlc-config: $(top_builddir)/config.status $(top_builddir)/vlc-config.in
+ cd $(top_builddir) && $(SHELL) ./config.status --file=$@
+ -cd $(top_builddir) && chmod 0755 $@
lib_LIBRARIES = lib/libvlc.a $(LIBRARIES_libvlc_pic)
modules/visualization/galaktos/Makefile
])
-AC_CONFIG_FILES([vlc-config], [chmod 0755 vlc-config])
+# Cannot use AC_CONFIG_FILES([vlc-config]) as is automatically built,
+# not provided with the source
+${SHELL} ./config.status --file=vlc-config
+chmod 0755 vlc-config
dnl Generate makefiles
AC_OUTPUT