summaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
2011-08-22configure: require libtoolize, create wrapper to itTitus von Boxberg1-0/+4
libtoolize must be checked_for and there needs to be a wrapper that points to GNU libtoolize since that may be installed as glibtoolize. This fixes a problem with building Cloog/PPL that was Reported-by: "Pierrick Brossin" <pierrick@bs-network.net> Signed-off-by: "Titus von Boxberg" <titus@v9g.de> (transplanted from c7c9e98d36d8a6a49fcd5f3836d5797bb965eba7)
2011-08-22configure: fix --with-prog=[...]Titus von Boxberg1-0/+1
check_for didn't set variable 'where' when the path to a prog was passed manually "(cached)". Signed-off-by: "Titus von Boxberg" <titus@v9g.de> (transplanted from b1be254591e7b524a0b06a2247a9331ebe0faf1d)
2011-08-09configure: more autostuff compatibilityYann E. MORIN"1-0/+2
Ignore --program-prefix=... Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> (transplanted from d28b764334b8f8f3acfecafea3b52a6cc2e8a272)
2011-07-14configure: add yet a bit more of autostuff compatibilityYann E. MORIN"1-0/+1
Well, at least it helps buildroot! :-) Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-04configure: add check for svnYann E. MORIN"1-0/+3
svn is needed to downlod eglibc, so we require it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-04configure: do not require cvsYann E. MORIN"1-1/+3
cvs is used to get newlib directly from its repository. Missing cvs will only allow getting newlib from the released tarballs. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-04configure: portability fixes - take 2Yann E. MORIN"1-2/+2
It is useful to sometime run on a strictly POSIX-compliant shell... :-/ And it is sometime interesting to refresh Q-patches before finishing the series... :-( Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-27configure: do not test for static libs if static link is impossibleYann E. MORIN"1-12/+31
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-27configure: pass the allowed lib extensions to check_for()Yann E. MORIN"1-36/+39
Rather than building all possible library names in the caller, lets just do it once in check_for. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-27configure: disable static linking on DarwinYann E. MORIN"1-0/+24
Static liunking is not supported on Darwin, so hide the corresponding options when the build machine is Darwin. Reported-by: Andrea Franceschini <therealmorpheu5@gmail.com> Reported-by: Bryan Hundven <bryanhundven@gmail.com> Reported-by: "Titus von Boxberg" <titus@v9g.de> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-28configure: check host systemYann E. MORIN"1-0/+14
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-03configure: indent error/warning messageYann E. MORIN"1-4/+4
Indent the error/warning message so that it is explicit that the second line is giving details for the first general hint. Reported-by: Titus von Boxberg <titus@v9g.de> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-08configure: check for ncurses libs + headers in one goYann E. MORIN"1-4/+3
./configure now has the possibility to check for libraries and headers in one go, so we can use it! :-) Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-08debug/cross-gdb: check host dependenciesYann E. MORIN"1-0/+28
Cross-gdb depends on expat and python. If either is missing, cross-gdb will build successfully, but lacking some features. Especially, if expat is missing, cross-gdb will be unable to parse the target description, which may lead to runtime malfunctions and the following GDB warning: "Can not parse XML target description; XML support was disabled at compile time" Hence, expat should be considered mandatory. On the other hand, the features missing without python are not critical, so python should not be considered mandatory. This patch does the following: - At configure time, warn the user if either expat or python is missing. - In menuconfig, disable the static build options regarding cross-gdb if no static version of expat is available, and disable cross-gdb if expat is missing. Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com> [yann.morin.1998@anciens.enib.fr: add comment for impossible static cross-gdb] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-08configure: give check_for() the ability to test several item types at onceBenoît THÉBAUDEAU"1-56/+74
Currently, check_for() can only test one of prog, inc or lib at once. This patch removes this limitation. Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
2011-06-04configure: rationalise error messages with meaningful textsYann E. MORIN"1-5/+4
Currently, error messages just state the obvious: a required component is required. While in some cases, there is not much else to say, in some other cases we could tell much more. For example, a missing libstdc++ means no static toolchain. Also, format error and warning messages in a similar fashion, with a {error,warning} intro, followed by the message specified by the caller. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-02cc/gcc: CC_STATIC_LIBSTDCXX 'depends on' CONFIGURE_has_static_libstdcppYann E. MORIN"1-0/+8
Hide the staticaly linked libstdc++ option if the static libstdc++ is not present, detected at configure time. Add a blind option that says whether static linking is possible at all. It defaults to 'y', but depends on the needed CONFIGURE_* options. For now, it only depends on static libtdc++, but new dependencies can be easily added. Hide the global static toolchain option behind this new option. Original patch by Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-02configure: check for libstdc++.{so,dylib,a}Yann E. MORIN"1-0/+7
It's probably a good thing to check for at least one instance of libstdc++.{so,dylib,a} at configure time. At least one is needed by the companion libraries and gcc. Original patch by Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-02configure: add prefix to err messages in has_or_{abort,warn}Yann E. MORIN"1-7/+8
Make it easier to spot messages spewed out by has_or_{abort,warn}. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-02configure: maintain single quotes in error messagesYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-05-26configure: add possibility to set arbitrary variable in check_forYann E. MORIN"1-13/+44
If check_for is able to find the required prog/inc/lib, allow it to set an arbitrary variable to 'y'. This variable is then pushed down to the kconfig definition. For example: has_or_abort prog=foobar kconfig=has_foobar If foobar is available, it yields a kconfig variable defaulting to y: config CONFIGURE_has_foobar bool default y If foobar is missing, it yields a kconfig variable defaulting to n: config CONFIGURE_has_foobar bool Thus it is possible to depends on that variabel to show/hide options: config SOME_FEATURE bool prompt "Some feature" depends on CONFIGURE_has_foobar Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-05-26configure: add has_or_warnYann E. MORIN"1-0/+18
By popular request, add a function to only warn on missing stuff. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-05-26configure: move error message down to has_or_abortYann E. MORIN"1-11/+15
When has_or_warn will come, we do want to print the error message only in has_or_abort, so move it down there. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-11-16scripts: remove aria2c as downloader, retain only curl and wgetYann E. MORIN"1-1/+1
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-07-15configure: fix --mandirYann E. MORIN"1-1/+1
--mandir points to the base dir of the man pages, so we have to append our man section below given dir.
2010-05-23configure: add path to libtool to pathlistTitus von Boxberg1-0/+1
forgot var=libtool
2010-05-17ct-ng: Add ability to configure and use some GNU toolsTitus von Boxberg1-0/+4
Make the paths to libtool, objcopy, objdump, readelf, patch configurable.
2010-05-17configure: make call to readlink portable to non-GNU (BSD) systemsTitus von Boxberg1-1/+1
The argument '-e' for readlink is a GNU extension. In setting the variable 'where' the argument '-e' is not necessary, thus eliminated.
2010-05-17configure: Do not require stat to be of GNU coreutilsTitus von Boxberg1-1/+1
calls to stat have been made portable, thus it is not necessary that the GNU version is present on the user's system.
2010-01-17configure: do not require hg when configuring in an hg cloneYann E. MORIN"1-4/+3
When configuring in an hg clone, we need hg to compute the version string. It can happen that users do not have Mercurial (eg. if they got a snapshot rather that they did a full clone). In this case, we can still run, of course, so simply fill the version string with a sufficiently explicit value, that does not require hg. The date is a good candidate.
2010-01-17configure: silently ignore auto-stuff options --build --host and friendsblueness1-0/+3
2009-12-30scripts/functions: add aria2, a powerfull downloaderYann E. MORIN"1-1/+1
aria2 is a powerfull downloader that is capable of chunking and parallel retrieval. Due to li;itations in crosstool-NG retrieval facilities, it's not possible to take fully advantage of aria2. It might happen that, in the future, those limitations get lifted away, so we can take use features such as parallel downloading from more than one server at the same time. For now, it should still speed up downloads thanks to parallel downloading of chunks.
2009-12-10configure: install in a sub-dir of --libdir and --docdirYann E. MORIN"1-2/+9
In case the user specifies the LIBDIR with --libdir , or DOCDIR with --docdir, install our support files in a sub-dir, so as not to mangle existing (potentially system) files/dirs.
2009-10-10Merge.Yann E. MORIN"1-1/+5
2009-10-10configure: force using the C locale to check messagesYann E. MORIN"1-1/+4
2009-10-10configure: fix --with-foo=/path/to/fooYann E. MORIN"1-0/+1
When a required tool is specified with --with-foo, store the variable in the list.
2009-10-10docs: get rid of any reference to the now long-gone svn repositoryYann E. MORIN"1-1/+1
2009-10-03configure: split has_or_abort in two: one to check, one to abortYann E. MORIN"1-9/+21
Split the has_or_abort function in two: - one that checks if the tool if found, - one that calls the above check, and aborts if not found The rational behind this is to be able to check for a tool and if not found, fallback to using our bundled version, should the need arise (and I get time).
2009-08-19Merge the bash_array branch.Yann E. MORIN"1-2/+2
For every components where it makes sense, use bash arrays (instead of a string with space-separated values) to store the options pased to ./configure.
2009-08-19configure: check for bash-3.1 or aboveYann E. MORIN"1-2/+2
This is required to use the array variables that came with bash-3.1.
2009-08-01[configure] Fix automake version check.Oron Peled"1-1/+1
The configure script fails on automake-1.11 (in Fedora-11) since it looks for 3-digit version number. Patch fixed by "Yann E. MORIN", with the added comment: The check for the automake version is not against a 3-digit number, but really against a 3-part version number, a-la 'x.y.z'. Versions such as 1.10 and 1.11 are also valid.
2009-07-22Require GNU awk at ./configure time.Yann E. MORIN"1-1/+1
Some components (specifically {,e}glibc) will not build when awk is not GNU awk. Make ./configure check for GNU awk.
2009-07-15Make it build again for non-local use.Yann E. MORIN"1-1/+1
Using colons (:) in the version string creates Makefile problems: Makefile:195: *** multiple target patterns. Stop. make: *** [build] Error 2
2009-06-17Merge the gcc-4.4 support.Yann E. MORIN"1-0/+1
2009-06-17[configure] Use hg to compute the version stringYann E. MORIN1-13/+5
Now that we have migrated to hg from svn, it does not make sense to keep using svn tools to compute the version string, so switch to using mercurial tools (that are much more flexible, BTW).
2009-06-02/devel/gcc-4.4:Yann E. MORIN"1-0/+1
- ./configure: check for 'stat', needing to install the tools wrapper - wrapper: make it a POSIX-compliant script, restore relocatability - don't install the wrapper for symlinks -------- diffstat follows -------- /devel/gcc-4.4/configure | 1 1 0 0 + /devel/gcc-4.4/scripts/build/internals.sh | 22 16 6 0 ++++++++++++++++------ /devel/gcc-4.4/scripts/wrapper.in | 5 2 3 0 ++--- 3 files changed, 19 insertions(+), 9 deletions(-)
2009-05-20/trunk:Yann E. MORIN"1-0/+1
- ./configure: require cvs, as retrieving recent glibc/eglibc is done as cvs checkouts. -------- diffstat follows -------- /trunk/configure | 1 1 0 0 + 1 file changed, 1 insertion(+)
2009-05-11configure:Yann E. MORIN"1-24/+22
- as per: http://www.opengroup.org/onlinepubs/009695399/utilities/echo.html section "application Usage", change all occurences of: echo "..." with: printf "...\n" -------- diffstat follows -------- /trunk/configure | 46 22 24 0 ++++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 24 deletions(-)
2009-05-11configure:Yann E. MORIN"1-1/+7
- while checking for the ncurses library, remove bashisms, and make it POSIX compliant -------- diffstat follows -------- /trunk/configure | 8 7 1 0 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
2009-05-02Add check for the {n,}curses library.Yann E. MORIN"1-1/+14
Add check for readlink, needed to check for libraries. -------- diffstat follows -------- /trunk/configure | 15 14 1 0 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)