From 0410da919e44a671caf5b312bd4619d58fbe8971 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 6 Feb 2005 16:02:24 +0000 Subject: [PATCH] - Fix building of vlc-config VLC can now be built in a subdirectory --- Makefile.am | 4 ++++ configure.ac | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 252bdc7314..e9609d428b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -263,6 +263,10 @@ dist-hook: ############################################################################### 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) diff --git a/configure.ac b/configure.ac index f77ad1a019..6183aaab0e 100644 --- a/configure.ac +++ b/configure.ac @@ -4282,7 +4282,10 @@ AC_CONFIG_FILES([ 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 -- 2.39.2