Commit Graph

241 Commits

Author SHA1 Message Date
Steve Lhomme 8457d2248f bootstrap: remove forced m4 directory
It's defined in configure.ac since e8df55c488
which is more recent than 77e5b00d85 and
2799d36bc8.
2023-08-07 15:52:42 +02:00
Alexandre Janniaux 5c910f00b0 bootstrap: provide aclocal m4 from extras tools
The libtool.m4 file defining the LT_INIT macro is located in the share
directory of the built libtool prefix. This file can be present on the
host system but when it isn't, the bootstrap can fail during bootstrap
with the following error:

    autoreconf: running: automake --add-missing --copy --force-missing
    bin/Makefile.am:41: error: Libtool library used but 'LIBTOOL' is undefined
    bin/Makefile.am:41:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
    bin/Makefile.am:41:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
    bin/Makefile.am:41:   If 'LT_INIT' is in 'configure.ac', make sure
    bin/Makefile.am:41:   its definition is in aclocal's search path.

Indeed, when libtool.m4 is not installed with the same prefix as
autoconf/autom4te, and specificallly the share/ folder is not shared,
then autom4te will fail to detect LT_INIT, leading autoreconf to
disable the libtool support and discard the call to libtoolize.

Then, automake cannot find the aclocal m4 file since libtoolize didn't
install it, and the previous error is displayed before bootstrap exits.

This behaviour can be checked by uninstalling every libtool and trying
to run the following commands:

    # Works
    autom4te --verbose --language=Autoconf --output=- --trace=LT_INIT extras/tools/build/share/aclocal/libtool.m4 configure.ac

    # Fails to find LT_INIT
    autom4te --verbose --language=Autoconf --output=- --trace=LT_INIT configure.ac extras/tools/build/share/aclocal/libtool.m4

    # Fails to find LT_INIT
    autom4te --verbose --language=Autoconf --output=- --trace=LT_INIT configure.ac

This commit ensures that the libtool.m4 will be found at the aclocal
setup, to allow libtoolize to copy the libtool.m4 as aclocal.m4 for
automake.
2023-08-07 15:51:58 +02:00
Rémi Denis-Courmont cc129a71d7 Remove old mail address from sources 2019-09-04 22:11:04 +03:00
Steve Lhomme 85d465704d vlc: allow forcing the tools to use when running bootstrap
On Windows it's possible to build VLC in either msys2 or WSL. But the tools are
shared and incompatible. Only one at a time is currently possible. This will
allow switching back and forth without rebuilding tools all the time
(especially since they are detected as built).
2019-05-29 14:25:16 +02:00
Steve Lhomme 8f99d6b084 bootstrap: return errors to stderr 2019-05-16 10:00:49 +02:00
Rémi Denis-Courmont 31acc2f0e7 bootstrap: fail hard if flex or bison are missing and needed 2017-12-03 14:57:21 +02:00
Rémi Denis-Courmont 105b13c813 bootstrap: warn if flex or bison are missing 2017-11-28 20:14:49 +02:00
Rémi Denis-Courmont 0eb5920c0b bootstrap: update autopoint diagnostic 2017-06-03 15:15:28 +03:00
Rémi Denis-Courmont d8a1f9378a Remove unused private.m4 2017-01-22 16:48:09 +02:00
Rémi Denis-Courmont 30d347b85c Remove Modules.am support 2017-01-22 16:48:09 +02:00
Rémi Denis-Courmont 2ce951f06f skins2: Remove Modules.am 2017-01-22 16:48:09 +02:00
Rémi Denis-Courmont d8e730f2ae stream_out: remove Makefile recursion 2015-02-12 08:17:41 +02:00
Pierre Ynard 674d7b33cf bootstrap: catch Modules.am in all subdirectories 2012-09-27 01:51:27 +02:00
Rémi Denis-Courmont 64e0dbf7d2 bootstrap: use shell rather than find and sed 2012-09-26 22:25:40 +03:00
Diego Elio Pettenò 1ce6c073f4 build: set automake flavour to foreign to avoid dirty tricks.
Using the foreign flavour you can forego the ABOUT-NLS file as well as
keep the custom INSTALL file.

Signed-off-by: Rafaël Carré <funman@videolan.org>
2012-09-10 10:49:52 +02:00
Francois Cartegnie 6fa1935b5a bootstrap: allow calling genmf with non default shell 2012-02-28 16:47:25 +01:00
Rafaël Carré ede3bd6058 bootstrap: prepend extras/tools/build/bin to PATH if it exists 2011-12-09 19:40:37 -05:00
Rafaël Carré 668bd49f54 We don't use extras/contrib anymore, no need to look there 2011-12-09 19:34:49 -05:00
Rémi Denis-Courmont 3b851f4e9c bootstrap: fail if pkg-config is absent
It is still possible to compile from tarball without pkg-config, though
the result will probably be quite useless.
2011-09-19 17:46:12 +03:00
Sebastien Zwickert 01946f2369 macosx: fixes pkg-config compilation issue
Signed-off-by: Rafaël Carré <funman@videolan.org>
2011-09-19 08:52:08 -04:00
Rémi Denis-Courmont 2ead0773f8 bootstrap reorder stuff to simplify 2011-08-30 21:35:49 +03:00
Rémi Denis-Courmont 27ba1dbc3c Generate Makefile.am in directories with Modules.am
...rather than in all modules/* directories
2011-08-30 21:35:49 +03:00
Rémi Denis-Courmont f5bf7ad840 Do not override ABOUT-NLS twice 2011-08-30 21:35:49 +03:00
Rémi Denis-Courmont ccf9342370 Remove vlc-config 2011-08-18 22:02:21 +03:00
Rémi Denis-Courmont c3a51903f2 Remove some leftovers from pre-libtool era
(Note __BUILTIN__ was not used anymore as we have !__PLUGIN__)
2011-05-02 11:01:12 +03:00
Rémi Denis-Courmont 7eaf977582 Remove some legacy stuff in the build system 2011-02-15 20:30:45 +02:00
Rémi Denis-Courmont 41e5bcdaf1 Remove unmaintained BeOS support 2010-10-31 13:42:58 +02:00
Rémi Denis-Courmont fa0113980e Force POSIX shell to run genmf 2010-01-18 20:15:24 +02:00
Pierre d'Herbemont 43dc8a8d99 contrib: Allow multiple contribs install for multiple hosts.
And make sure we really use the host to check what contrib to use in the configure.

You don't have to re-run bootstrap from contrib after make from contrib when building for x86_64-darwin.
2009-12-18 02:22:45 +01:00
Rémi Denis-Courmont b451524fb9 Allow bootstrapping from a subdirectory
(or any directory in fact)
2008-11-24 18:28:50 +02:00
Rémi Denis-Courmont ba0e176fb6 Don't patch Makefile.in.in, this does not work 2008-09-18 22:32:57 +03:00
Christophe Mutricy cdd2ad93fe Make patching more resilient
In case autopoint hasn't replaced our Makefile.in.in
2008-08-03 00:39:11 +01:00
Christophe Mutricy 02f296b398 As autopoint copies po/Makefile.in.in we have to patch it so that it has our modifications 2008-07-30 01:03:21 +01:00
Rémi Denis-Courmont 02d6e6abd6 Typo 2008-04-22 19:20:34 +03:00
Rafaël Carré 9453284260 Absence of cvs could result in not explicit warning 2008-04-22 17:44:23 +02:00
Rémi Denis-Courmont e4a0fb28f3 Remove un-needed VLC_CONFIG_HELPER macro 2008-04-21 23:06:07 +03:00
Rémi Denis-Courmont f895fb1d94 Do run autopoint if it works 2008-03-25 18:55:30 +02:00
Rafaël Carré 688ba6acb3 Create ABOUT-NLS before running autoreconf 2008-03-24 02:02:56 +00:00
Rémi Denis-Courmont 6abf349d0a Don't run autopoint.
Now that we actually have _ALL_ the gettext m4 macros in m4/, autopoint
is useless. That was not the case last time this hack was attempted.
2008-03-23 21:58:35 +02:00
Rémi Denis-Courmont fa9abba62f Check-in modules/Makefile.am
It was a bit clumsy to have to modify it through bootstrap.
2008-03-23 21:53:10 +02:00
Rémi Denis-Courmont 8adb3a39b8 Fix the INSTALL / autoreconf hack 2008-03-23 21:43:35 +02:00
Rémi Denis-Courmont a24c9548fb Fix copyright 2008-03-23 21:43:06 +02:00
Rémi Denis-Courmont 9be56f9b9e Fix the pkg-config warning 2008-03-23 21:39:04 +02:00
Rémi Denis-Courmont aac5ae4819 Set then export (more portable)
I assume PATH is already exported for obvious reasons.
2008-03-23 21:32:25 +02:00
Rémi Denis-Courmont 6583881be6 Fix help message of bootstrap 2008-03-23 21:30:28 +02:00
Rémi Denis-Courmont 974a399a24 Remove the autoconf hack, fix gettext broken in b6c4b865
and fix the M4 ignore rules
2008-03-23 10:49:16 +02:00
Rémi Denis-Courmont 63a70e8789 Revert "We don't want to use autopoint, since we use external gettext anyway"
Autopoint is required regardless of libintl inclusion.
Fix bootstrap failure on clean tree.

This reverts commit aae26a9890.
2008-03-07 15:23:29 +02:00
Rafaël Carré aae26a9890 We don't want to use autopoint, since we use external gettext anyway 2008-03-07 14:02:04 +01:00
Rémi Denis-Courmont 5319a4b4be Make autoreconf verbose 2008-02-11 17:20:00 +00:00
Jean-Baptiste Kempf af2a439ead Remove mkdir -p intl/ from bootstrap following [24803]. 2008-02-07 07:00:31 +00:00