Mercurial > ecos-v3_0-branch
changeset 881:d6a1854fdc1b
Make toplevel configure script work in a release tree rather than just
in a CVS tree.
| author | bartv |
|---|---|
| date | Thu, 27 Mar 2003 23:42:26 +0000 |
| parents | 2de825c0df6c |
| children | c3c06c9d0fd0 |
| files | ChangeLog configure configure.in |
| diffstat | 3 files changed, 39 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-03-27 Bart Veer <bartv@ecoscentric.com> + + * configure.in, configure: + Look for the host-side sources in tools/src as well as in host, as + per the 2.0 release tree. + Look for per-package host-side software in any/all versions of a + package, not just "current". + 2003-02-12 Bart Veer <bartv@ecoscentric.com> * README.host: update Tcl-related instructions
--- a/configure +++ b/configure @@ -834,16 +834,23 @@ echo "configure:825: checking that a sep fi -SUBDIRS="host" + +if test -f "${srcdir}/host/configure" ; then + SUBDIRS="host" +elif test -f "${srcdir}/tools/src/configure" ; then + SUBDIRS="tools/src" +else + SUBDIRS="" +fi PKGHOSTDIRS="" FOUND_CONFIGURES="" -FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/current/host/configure" -FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/current/host/configure" -FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/current/host/configure" -FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/current/host/configure" -FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/*/current/host/configure" +FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/host/configure" +FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/host/configure" +FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/host/configure" +FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/*/host/configure" +FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/*/*/host/configure" for configure in ${FOUND_CONFIGURES}; do if test -f ${configure}; then hostdir=`dirname ${configure}`
--- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ dnl dnl ==================================================================== dnl ####ECOSHOSTGPLCOPYRIGHTBEGIN#### dnl ---------------------------------------------------------------------------- -dnl Copyright (C) 2002 Bart Veer +dnl Copyright (C) 2002, 2003 Bart Veer dnl Copyright (C) 1998, 1999, 2000, 2001 Red Hat, Inc. dnl dnl This file is part of the eCos host tools. @@ -85,7 +85,7 @@ dnl 1) if the entire repository is man dnl configure script will search the packages tree for any packages dnl that have host-side software that needs to be built - dnl specifically, that have a file "configure" inside a "host" -dnl subdirectory in version "current" of a package. +dnl subdirectory in a version of a package. dnl dnl 2) if instead the repository contains additional packages dnl installed as epk's and managed by an administration tool then @@ -137,8 +137,17 @@ dnl Nothing actually gets built in this dnl need to worry about compiler flags etc. Instead, the problem is dnl figuring out what should actually get built. dnl -dnl 1) the host subdirectory should always get built. -SUBDIRS="host" +dnl 1) the host subdirectory should always get built, if it exists. +dnl With the 2.0 release system the directory gets moved to +dnl tools/src + +if test -f "${srcdir}/host/configure" ; then + SUBDIRS="host" +elif test -f "${srcdir}/tools/src/configure" ; then + SUBDIRS="tools/src" +else + SUBDIRS="" +fi dnl 2) any package which has a configure script in a dnl current/host subdirectory should also get built. @@ -157,11 +166,11 @@ dnl at the Tcl level at run-time, so PKGHOSTDIRS="" FOUND_CONFIGURES="" -FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/current/host/configure" -FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/current/host/configure" -FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/current/host/configure" -FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/current/host/configure" -FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/*/current/host/configure" +FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/host/configure" +FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/host/configure" +FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/host/configure" +FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/*/host/configure" +FOUND_CONFIGURES="${FOUND_CONFIGURES} ${srcdir}/packages/*/*/*/*/*/*/host/configure" for configure in ${FOUND_CONFIGURES}; do if test -f ${configure}; then dnl A configure script has been found in the source tree.
