summaryrefslogtreecommitdiff
path: root/m4
AgeCommit message (Collapse)Author
2022-12-08build: fix sed regex in Lua macroDavid Lamparter
Using `\s` to match whitespace is not portable, use `[[:space:]]` instead. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-11-09m4/ax_python.m4: check for python-x.y-emded.pc, not python-x.y.pcAlexander Kanavin
Only the embed version includes necessary linker flags to link with libpython. Signed-off-by: Alexander Kanavin <alex@linutronix.de>
2022-03-26autoconf: do not .gitignore m4/ax_lua.m4Eugene Crosser
The file m4/ax_lua.m4 needs to be a part of distribution, but it is not inluded in the git repository by default becuase .gitignore file has a wildcard for all *.m4 files, while individual files that must _not_ be ignored are listed one by one as exceptions. ax_lua.m4 needs to be added to this list of exceptions too. One failure scenario is when you put a snapshot of the source tree in a new git repository (e.g. the one used for a local CI/CD), this file is not included in the repository, and subsequently build fails. This commit adds the exception into m4/.gitignore file Signed-off-by: Eugene Crosser <crosser@average.org>
2021-05-22grpc: improve checks for GRPC C++ requirementsChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-04-21build: improve AX_LUA_HEADERS for crosscompileDavid Lamparter
The preprocessor is something configure can invoke. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-04-21build: use AC_CONFIG_AUX_DIRDavid Lamparter
aka the "put shit into a subdirectory" option Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2021-03-22build: test program needs to be warning-freeMark Stapp
One of the configure-time test programs produces a warning with gcc 9 (at least), so it fails if -Werror is enabled. Fix that. Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-07-09build: find all future minor versions of python3Michal Ruprich
This way we can find every python from 3.8 further Signed-off-by: Michal Ruprich <michalruprich@gmail.com>
2020-04-27build: move python 2.x to the very last preferenceDavid Lamparter
Also try explicit 3.9 & 3.10. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2020-03-11build: Add Python 3.8Ruben Kerkhof
Fixes detection of python on OpenBSD Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
2020-01-17build: fix shell == mis-useDavid Lamparter
The "test" program uses =, not ==. A lot of shells accept == as an extension, but not all do and it's technically out of spec. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-08-14build: add check for python-3.8Michal Ruprich
In python-3.8, the --embed needs to be added to pythonX.Y-config Signed-off-by: Michal Ruprich <michalruprich@gmail.com>
2019-06-04build: refactor & revamp python autoconf logicDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2019-05-10build: fix Lua buildQuentin Young
Each of Lua's major versions are incompatible with each other. Ubuntu, at least, does not provide a single liblua.so or /usr/include/lua; all SOs and headers are versioned, e.g. liblua5.3.so and /usr/include/lua5.3. There's already an m4 macro in the GNU collection to handle this situation, so let's use that. This allows building with Lua enabled to work on platforms other than Fedora. * Move lib/lua.[ch] -> lib/frrlua.[ch] to prevent path conflicts * Fix configure.ac search for proper CPP and linker flags * Add Lua include path to AM_CPPFLAGS * Update vtysh/extract.pl.in Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-10-25*: spelchekDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2018-10-01build: add --enable-static-bin optionDavid Lamparter
This option can be used to get statically linked binaries. Note: libfrr.la is removed from modules' library dependency list. This is intentional and explained in a comment in lib/subdir.am. Signed-off-by: David Lamparter <equinox@diac24.net>
2018-09-08build: make pkgconfig configure output usefulDavid Lamparter
The variable name is not exactly the most helpful thing there. Signed-off-by: David Lamparter <equinox@diac24.net>
2018-09-08*: cleanup .gitignore filesDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2017-07-31build: non-recursive auxiliary directoriesDavid Lamparter
Flatten {m4,pkgsrc,python,redhat,snapcraft}/Makefile.am into the main one. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-03-31build: find & use threading libraryDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-01-18build: include copy of pkg.m4, fix invocationDavid Lamparter
pkg.m4 will be missing on systems that don't have pkg-config installed; this renders the point of the configure check moot which is to find pkg-config... Also, PKG_PROG_PKG_CONFIG should be invoked unconditionally as described in https://autotools.io/pkgconfig/pkg_check_modules.html Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-01-09build: check if the LibXML perl module is availableRenato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2016-12-16build: check flex >= 2.5.20 is availableDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2013-02-09build: fix "pragma weak" mixupsDavid Lamparter
Not only was there a minor typo in the "pragma weak" preprocessor checks, but also were the tests not behaving as needed - they only indicated support for the /first/ method of implementing weak aliases, which on Linux is __attribute__ and not #pragma. * m4/ax_sys_weak_alias.m4: set defines for _all_ weak alias methods * zebra/kernel_null.c: fix typo Cc: Doug VanLeuven <roamdad@sonic.net> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2013-01-11testzebra: pragma weak: detect systems with weak alias and provide alternativeDoug VanLeuven
LLVM clang does not support #pragma weak (bug 3679) on OS X. There are other systems where the #pragma weak has varying syntax. Added m4 file from the autoconf archives: http://www.gnu.org/software/autoconf-archive/ax_sys_weak_alias.html Fix up zebra/*_null.c files to use #pragma weak alias or stub functions if not available. It's incomplete in that the different format #pragma enable easier fixes on need. Tested on 64bit OS X 10.7, FreeBSD 9.0 amd64 & i386 (32bit) using gcc & clang. Tested on linux 64bit. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2011-12-13build: delete .cvsignore filesDenis Ovsienko
2008-08-23[trivia] Make 'make dist' happy about ChangeLog expungePaul Jakma
* ChangeLog: Add back a dummy, top-level ChangeLog * m4/Makefile.am: remove ChangeLog from EXTRA_DIST, why it was listed there, who knows.
2008-08-22[administrivia] Git should ignore backup files and .loT filesPaul Jakma
2008-08-22[trivia] Remove ChangeLog files, as this data is now maintained in SCMPaul Jakma
2008-08-22[administrivia] Add .gitignore files, based on .cvsignores.Paul Jakma
2007-02-03remove crufty m4 files from 2004. With the files, autoheader (2.61)Greg Troxel
bombs on NetBSD. (Without, all is ok. We may need workarounds, but first we should identify minimum tool versions and figure out what's still wrong.) ok'd by paul.
2004-11-02- Add .arch-ids and .arch-inventory to cvsignore, to allow one to use archpaul
with CVS trees.
2004-09-01Ignore generated files.hasso
2004-08-312004-08-31 Greg Troxel <gdt@poblano.ir.bbn.com>gdt
* Makefile.am (EXTRA_DIST): New - just has EXTRA_DIST. (Using a directory in EXTRA_DIST in the parent was causing 'make dist' to fail.) (Now m4/Makefile* is first-class and included from top level.)
2004-08-192004-08-19 Paul Jakma <paul@dishone.st>paul
* *.m4: import of libtool CVS m4 autoconf files. These only configure libtool support for languages where configure has already called AC_PROG_<lang>, less fragile. * README.txt: doc file for contents of this directory.