summaryrefslogtreecommitdiff
path: root/configure.ac
AgeCommit message (Collapse)AuthorFilesLines
2019-01-15added the version 5 to the check of bash versionsStephan Conrad1-1/+1
Signed-off-by: Stephan Conrad <stephan@conrad.pics>
2018-12-01Consider it success if DoForceRmdir removes only the contentAlexey Neyman1-2/+0
Fixes #929. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-28Add DTC as a companion toolAlexey Neyman1-0/+3
(needed for cross-gdb targeting the moxie-* targets) Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-10Still need to check for libtool presenceAlexey Neyman1-2/+2
... as kconfig depends on it. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-07Add an override for bisonRoman Bolshakov1-1/+1
glibc build requires GNU bison >= 2.7 but Apple ships bison 2.3. If we provide an override for GNU bison it should be possible to use a version from homebrew. Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
2018-11-05Add a "which" dependency into the configure scriptAnton Maklakov1-0/+1
2018-10-27Accept any libtool versionAlexey Neyman1-1/+1
ct-ng will build its own version if a recent enough version is not detected. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-10-22Check for `file` presence (missing in default CentOS7)Alexey Neyman1-0/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-07Use git-version-gen to generate version infoAlexey Neyman1-9/+1
Suggested-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-29Add checking for *sum and unzipAlexey Neyman1-10/+24
Also improve logging (add an ability to log commands/files/environment variables to config.log) Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-27Add compatibility with automake < 1.14Anton Maklakov1-0/+2
As we support CentOS, for example, we have a problem there automake: warnings are treated as errors kconfig/Makefile.am:26: warning: compiling 'lxdialog/checklist.c' in subdir requires 'AM_PROG_CC_C_O' in 'configure.ac' autoreconf: automake failed with exit status: 1
2018-04-15Require libtool be presentAlexey Neyman1-1/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Lintian warnings cleanupAlexey Neyman1-6/+7
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Install bash completion into new locationAlexey Neyman1-18/+10
/share/bash-completion/completions rather than /etc/bash_completion.d Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Conditionally install bash completionAlexey Neyman1-0/+10
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07User manual installationAlexey Neyman1-2/+10
... when running from a release tarball. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Cannot ignore 'make install' with automakeAlexey Neyman1-17/+1
Automake does not allow us to place the hooks before its generated actions, and does not allow us to check MAKECMDGOALS, and does not support a mechanism for disabling make install (such as noinst_SUBDIRS, requested a few times on automake mailing list). The only way I could preserve the current behavior is to have a GNUmakefile wrapper that will convert MAKECMDGOAL into a variable unknown to automake - which seems too convoluted a solution for the problem being solved. Hence the approach is to not override anything for --enable-local. It is now fully handled by selecting different values for CT_xxx_DIR in ct-ng.in; but at the build-system level, all the variables remain the same. We just don't support 'make install' in that case anymore; but the ct-ng in the working copy can be used after a regular 'make' (or 'make all'). Help message for --enable-local updated accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Restore --enable-local useAlexey Neyman1-2/+2
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Kill gperf vestigesAlexey Neyman1-0/+1
Generate paths.sh by configure, do away with paths.mk. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Install "pure data" directoriesAlexey Neyman1-1/+5
... and update .gitignore. Survives 'make distcheck'. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Enable mconf buildAlexey Neyman1-1/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Fix install --strip-program check after mergeAlexey Neyman1-26/+2
Also, fix the use of AC_CACHE_CHECK in stat format checker. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Cleanup after rebase on master:Alexey Neyman1-3/+0
gperf detection macros no longer needed, gperf is not used anymore. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07WIP: autotoolizationAlexey Neyman1-20/+23
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Remove special handling of dpkg-buildflagsAlexey Neyman1-2/+0
Instead, just honor CFLAGS/CPPFLAGS/LDFLAGS as they're passed down from configure. This brings the build process in compliance with the recommended practices. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Get rid of sub{lib,doc}dirAlexey Neyman1-7/+5
They don't make sense - using same ct-ng won't work with different versions, so they cannot coexist in the same prefix. Also localize other configure variables so that their usage is easier to track. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Simplify the macro for checking stat flavor a bitAlexey Neyman1-9/+7
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Use autoconfig-archve/automake testsAlexey Neyman1-49/+52
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Split local helper macros into separate m4'sAlexey Neyman1-232/+67
... which are then picked up via aclocal. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-01-30Ncurses fixes for 6.1Alexey Neyman1-0/+17
- Update to 20180129 - Throw in --disable-db-install if database is disabled; otherwise 'make install' tries to run tic which is not built. - Select appropriate strip utility for the host; otherwise non-x86 architectures fail to install (unless --disable-stripping is also added) Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-18Merge pull request #784 from bmwiedemann/dateAlexey Neyman1-3/+7
Allow for reproducible builds
2017-09-03Fix typoAlexey Neyman1-1/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-21Allow to override build dateBernhard M. Wiedemann1-3/+7
in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. This date call is designed to work with both GNU date and BSD date.
2017-06-08Fix debuild warnings/errorsAlexey Neyman1-1/+3
- Update .gitignore, do not place .gitignore into directories installed in bulk - Remove executable permissions and shebangs from the scripts that are supposed to be invoked only via ct-ng frontent; prepend them with $(bash). Despite what showSamples.sh said, it already has some bashisms. - Remove --with autotools-dev and override dh_update_autotools_config to avoid having config.{sub,guess} clobbered with older versions - Install bash completion where Debian (now) expects it - Update man page to use .\" as the comment delimiter, instead of undefined macro (."); also, minor text edits. - Install kconfig.mk without execute permission. - Remove shell wrappers from 170-localedef-fix-trampoline.patch, we do not use that for applying patches - Revoke execute permissions on 210-expat.sh - Get flags from dpkg-buildflags if available Signed-off-by: Alexey Neyman <stilor@att.net>
2017-04-22Generate config/configure.in directlyAlexey Neyman1-5/+4
from configure rather than substitute it from Makefile. Eventually we might want to get rid of configure.in completely, doing on-the-fly checks at the time of `ct-ng build`, but that is left for another day. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-09Check for ggrep/gegrep in configureAlexey Neyman1-0/+4
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-02Use configure to find the processor countDan McGregor1-0/+9
configure.ac now finds how to count the CPUs in a system. Currently the getconf method and sysctl methods are supported. Adding more is easy enough. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
2017-02-28Require xz to be presentAlexey Neyman1-8/+1
Some software starts to adopt xz-only distribution (strace, gcc-linaro, ...). Better that than deal with cryptic errors like "cannot find strace-.tar.bz2". Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-27Sed version may be reported differentlyAlexey Neyman1-1/+1
Either "GNU sed, version" or "gsed (GNU sed)". Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-27Require GNU sedAlexey Neyman1-19/+13
After much struggling with macos (BSD) sed and even getting everything work in crosstool-ng itself, I had to abandon that because some components rely on GNU syntax. Specifically, GNU libc uses '/.../{H;g}' (note absense of the separator after 'g'). So, revert the -r/-E detection and check for sed's being of GNU origin. MacOS people, sorry, but you'd have to install GNU sed. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-27Revert "Determine whether -E/-r option selects extended regexp"Alexey Neyman1-21/+9
This reverts commit 7bcf18bfab84374d3305c7a088f95ac1219ddf93.
2017-02-14Determine whether -E/-r option selects extended regexpAlexey Neyman1-9/+21
... and then use the right option. See the note in scripts/functions on where we should use ${foo} and where just 'foo'; this boils down to whether we can expect the build tools override to be in effect (e.g. in the actual build scripts) or not (i.e. outside of scripts/build). While running in scripts/functions, or in scripts/crosstool-NG.sh the build tools override directory (.build/tools/bin) may have not been set up (yet, or at all). Also, modify the installed scripts (populate, xldd) accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-13stat: determine whether it is BSD or GNU flavorAlexey Neyman1-1/+20
Seems like MacOS may have either in the path. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-13Detect both wget/curl and allow user to select the agentAlexey Neyman1-1/+11
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-03Check for C++ in configureAlexey Neyman1-1/+3
Recent GMP/GCC/GDB releases require c++. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-30Bump autoconf requirement to 2.65Alexey Neyman1-2/+2
Required by automake 1.15. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-28Rework configure logic wrt GNU autotoolsAlexey Neyman1-161/+157
Rather than requiring them of a certain version, detect if they are present (and have sufficient version) and select an appropriate companion tool otherwise. The reason is that, for example, most recent gettext requires automake 1.15, but the newest available CentOS has 1.13. Hence, the option to "upgrade your system" does not apply, and the warning comment above the companion tools is rather scary. With this approach, it will work out of the box - either by using the host's tools, or by building them as needed. Note that the user can still change the setting in the config. While there, propagate the new version checking macro to awk/bash/host binutils, and switch from --with-foo=xxx to officially blessed FOO=xxx: the latter does not require checking for bogus values (i.e., --with-foo, --without-foo) and AC_PROG_* macros recognize the corresponding settings without further modifications. For now, I kept --with-foo=, if only to complain and steer people to the new way. To be cleaned up after a release. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-24Check for git presenceAlexey Neyman1-0/+3
... and make the optiont that fetch from Git repositories depend on the git discovery. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-13Add a check for gperf function signature.Alexey Neyman1-3/+19
Loosely based on: https://github.com/systemd/systemd/commit/c9f7b4d356a453a01aa77a6bb74ca7ef49732c08 Signed-off-by: Alexey Neyman <stilor@att.net>
2016-11-22Give companion tools some love.Alexey Neyman1-6/+8
Allow selection of make/m4/... version. Support imports of new versions via addToolVersion.sh. Import newest versions of the companion tools. One non-trivial change is the handling of make versions. Existing code was not handling make companion tool as described (see the previous commit). However, since most modern systems have make 4.x, that previous commit made crosstool-ng always build make as a companion tool. This traces back to the commit dd15c93 from 2014. That commit's log message says that actually it was 3.81 which broke the build for certain component (it was originally breaking eglibc, but I noticed it was breaking current glibc on powerpc64), and introduced an option to force using 3.81 by "components that really need it". It looks like in 2.5 years we haven't seen any such components that really need make 3.81, and (given that make has already had a few releases since 3.81) we're unlikely to see them in the future. Hence, the configure check is changed from "exactly 3.81" to "3.81 or newer". In its current form, configure will accept make 3.80+, and will not require make as a companion tool for 3.81+. We might want to bump the latter check to even newer version given the claim from dd15c93. Killed COMP_TOOLS_make_3_81_NEEDED. Anyway, I retained 3.81 just in case; ditto for m4 1.14.3, autoconf 2.65 and automake 1.11.1. Signed-off-by: Alexey Neyman <stilor@att.net>