configure: do not require svn
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 01 22:46:57 2011 +0200 (2011-08-01)
changeset 2591491d62ac2017
parent 2590 b64cfb67944e
child 2592 4908eb2b6f17
configure: do not require svn

svn is needed to download eglibc from the upstream repository.
In some situations, though, it can happen that:
- the developpers' machines do not have svn
- a LAN mirror has been set-up with pre-downloaded eglibc tarballs
In this case, it makes sense not to hard-depend on svn.

So, if svn is missing, just say so, and add a comment in the
menuconfig.

Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
config/libc/eglibc.in
configure
     1.1 --- a/config/libc/eglibc.in	Tue Aug 02 18:28:10 2011 +0200
     1.2 +++ b/config/libc/eglibc.in	Mon Aug 01 22:46:57 2011 +0200
     1.3 @@ -122,6 +122,8 @@
     1.4  config LIBC_EGLIBC_HAS_PKGVERSION_BUGURL
     1.5      bool
     1.6  
     1.7 +if CONFIGURE_has_svn
     1.8 +
     1.9  config EGLIBC_REVISION
    1.10      string
    1.11      prompt "Revision to use"
    1.12 @@ -160,6 +162,16 @@
    1.13        Note that crosstool-NG will *not* update your working copy, you will
    1.14        have to do that yourself.
    1.15  
    1.16 +endif # ! CONFIGURE_has_svn
    1.17 +if ! CONFIGURE_has_svn
    1.18 +
    1.19 +comment "svn is missing. You'll have to either:"
    1.20 +comment "|  - have a pre-downloaded local tarball"
    1.21 +comment "|  - or have a LAN mirror with a pre-downloaded tarball"
    1.22 +comment "otherwise you won't be able to download eglibc"
    1.23 +
    1.24 +endif # ! CONFIGURE_has_svn
    1.25 +
    1.26  config EGLIBC_OPT_SIZE
    1.27      bool
    1.28      prompt "optimize eglibc for size (-Os)"
     2.1 --- a/configure	Tue Aug 02 18:28:10 2011 +0200
     2.2 +++ b/configure	Mon Aug 01 22:46:57 2011 +0200
     2.3 @@ -460,7 +460,7 @@
     2.4  has_or_warn  prog=cvs                                                   \
     2.5               kconfig=has_cvs                                            \
     2.6               err="it will not be possible to use newlib cvs snapshots"
     2.7 -has_or_abort prog=svn                               \
     2.8 +has_or_warn  prog=svn                               \
     2.9               kconfig=has_svn                        \
    2.10               err="subversion is required to download eglibc"
    2.11