Made the configure generate automatically the libraries and tools to
be compiled (in the requested order)
This commit is contained in:
parent
f891c4a8e6
commit
d99ee64a31
|
@ -25,7 +25,7 @@ dnl Almost ten years since I wrote this stuff, I just can't
|
|||
dnl believe it
|
||||
dnl Date : 01/02/2002
|
||||
dnl Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
||||
dnl $Id: configure.in,v 1.1 2002/03/14 08:24:20 fred Exp $
|
||||
dnl $Id: configure.in,v 1.2 2002/03/15 16:17:13 fred Exp $
|
||||
dnl
|
||||
dnl
|
||||
AC_INIT(./mbk)
|
||||
|
@ -34,14 +34,34 @@ AC_PROG_CC
|
|||
AC_PROG_RANLIB
|
||||
|
||||
changequote(,)dnl
|
||||
dirs=`\ls -1pd $srcdir/* | grep / | grep -v CVS`
|
||||
for i in $dirs ; do
|
||||
if test -f $i/configure.in ; then
|
||||
# Build a compilation order that ensures that the libraries are
|
||||
# compiled and installed prior to the tools
|
||||
# Add in the following variable the library name (or part of it, as a
|
||||
# match is performed) that you what to compile prior to anything
|
||||
libraries="\<mbk aut \<rds"
|
||||
dirs=`\ls -l $srcdir | grep '^d' | awk '{print $NF}'`
|
||||
for l in $libraries ; do
|
||||
for i in $dirs ; do
|
||||
if test -d $srcdir/$i ; then
|
||||
if test `expr match $i $l` -ne 0 ; then
|
||||
ldirs="$ldirs `basename $i`"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
tdirs=$dirs
|
||||
for i in $ldirs ; do
|
||||
tdirs=`echo $tdirs | sed -e "s/\<$i\>//"`
|
||||
done
|
||||
for i in $ldirs $tdirs ; do
|
||||
if test -f $srcdir/$i/configure.in ; then
|
||||
sdirs="$sdirs `basename $i`"
|
||||
fi
|
||||
done
|
||||
SUBDIRS=$sdirs
|
||||
echo $sdirs
|
||||
SUBDIRS="$sdirs"
|
||||
changequote([,])dnl
|
||||
|
||||
AC_CONFIG_SUBDIRS($sdirs)
|
||||
AC_SUBST(SUBDIRS)
|
||||
|
||||
|
|
Loading…
Reference in New Issue