2003-12-24 04:49:07 +03:00
|
|
|
#! /bin/bash
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
2004-01-07 17:43:42 +03:00
|
|
|
# $HEADER$
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
|
|
|
# This script is run on developer copies of LAM/MPI -- *not*
|
|
|
|
# distribution tarballs.
|
2004-01-04 03:14:51 +03:00
|
|
|
|
|
|
|
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2004-01-04 03:14:51 +03:00
|
|
|
#
|
|
|
|
# User-definable parameters (search path and minimum supported versions)
|
|
|
|
#
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2004-01-04 03:14:51 +03:00
|
|
|
|
|
|
|
lam_aclocal_search="aclocal"
|
|
|
|
lam_autoheader_search="autoheader"
|
|
|
|
lam_autoconf_search="autoconf"
|
|
|
|
lam_libtoolize_search="libtoolize glibtoolize"
|
|
|
|
lam_automake_search="automake"
|
|
|
|
|
|
|
|
lam_automake_version="1.6"
|
2004-01-08 21:52:21 +03:00
|
|
|
lam_autoconf_version="2.58"
|
2004-01-04 03:14:51 +03:00
|
|
|
lam_libtool_version="1.5"
|
|
|
|
|
|
|
|
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
2004-01-04 03:14:51 +03:00
|
|
|
# Global variables - should not need to modify defaults
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-01-04 03:14:51 +03:00
|
|
|
lam_aclocal_version="$lam_automake_version"
|
|
|
|
lam_autoheader_version="$lam_autoconf_version"
|
|
|
|
lam_libtoolize_version="$lam_libtool_version"
|
|
|
|
|
|
|
|
# program names to execute
|
|
|
|
lam_aclocal=""
|
|
|
|
lam_autoheader=""
|
|
|
|
lam_autoconf=""
|
|
|
|
lam_libtoolize=""
|
|
|
|
lam_automake=""
|
|
|
|
|
|
|
|
|
2004-01-07 17:43:42 +03:00
|
|
|
############################################################################
|
2004-01-04 03:14:51 +03:00
|
|
|
#
|
2004-01-07 17:43:42 +03:00
|
|
|
# Version check - does major,minor,release check (hopefully ignoring
|
|
|
|
# beta et al)
|
2004-01-04 03:14:51 +03:00
|
|
|
#
|
|
|
|
# INPUT:
|
|
|
|
# - minimum version allowable
|
|
|
|
# - version we found
|
|
|
|
#
|
|
|
|
# OUTPUT:
|
|
|
|
# - 0 version is ok
|
|
|
|
# - 1 version is not ok
|
|
|
|
#
|
|
|
|
# SIDE EFFECTS:
|
|
|
|
# none
|
|
|
|
#
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2004-01-04 03:14:51 +03:00
|
|
|
check_version() {
|
|
|
|
local min_version="$1"
|
|
|
|
local version="$2"
|
|
|
|
|
|
|
|
local min_major_version="`echo $min_version | cut -f1 -d.`"
|
|
|
|
local min_minor_version="`echo $min_version | cut -f2 -d.`"
|
|
|
|
local min_release_version="`echo $min_version | cut -f3 -d.`"
|
|
|
|
if test "$min_release_version" = "" ; then
|
|
|
|
min_release_version=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
local major_version="`echo $version | cut -f1 -d.`"
|
|
|
|
local minor_version="`echo $version | cut -f2 -d.`"
|
|
|
|
local release_version="`echo $version | cut -f3 -d.`"
|
|
|
|
if test "$release_version" = "" ; then
|
|
|
|
release_version=0
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $min_major_version -lt $major_version ; then
|
|
|
|
return 0
|
|
|
|
elif test $min_major_version -gt $major_version ; then
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $min_minor_version -lt $minor_version ; then
|
|
|
|
return 0
|
|
|
|
elif test $min_minor_version -gt $minor_version ; then
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $min_release_version -gt $release_version ; then
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2004-01-04 03:14:51 +03:00
|
|
|
#
|
2004-01-07 17:43:42 +03:00
|
|
|
# find app - find a version of the given application that is new
|
|
|
|
# enough for use
|
2004-01-04 03:14:51 +03:00
|
|
|
#
|
|
|
|
# INPUT:
|
|
|
|
# - name of application (eg aclocal)
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
2004-01-04 03:14:51 +03:00
|
|
|
# OUTPUT:
|
|
|
|
# none
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
2004-01-04 03:14:51 +03:00
|
|
|
# SIDE EFFECTS:
|
|
|
|
# - sets application_name variable to working executable name
|
|
|
|
# - aborts on error finding application
|
2003-12-24 04:49:07 +03:00
|
|
|
#
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2004-01-04 03:14:51 +03:00
|
|
|
find_app() {
|
|
|
|
local app_name="$1"
|
2003-12-24 04:49:07 +03:00
|
|
|
|
2004-01-04 03:14:51 +03:00
|
|
|
local version="0.0.0"
|
|
|
|
local min_version="99.99.99"
|
|
|
|
local found=0
|
|
|
|
|
|
|
|
eval "min_version=\"\$lam_${app_name}_version\""
|
|
|
|
|
|
|
|
eval "search_path=\"\$lam_${app_name}_search\""
|
|
|
|
for i in $search_path ; do
|
|
|
|
version="`${i} --version 2>&1`"
|
|
|
|
if test "$?" != 0 ; then
|
2003-12-24 04:49:07 +03:00
|
|
|
continue
|
|
|
|
fi
|
|
|
|
|
2004-01-04 03:14:51 +03:00
|
|
|
version="`echo $version | cut -f2 -d')'`"
|
|
|
|
version="`echo $version | cut -f1 -d' '`"
|
|
|
|
|
|
|
|
if check_version $min_version $version ; then
|
|
|
|
eval "lam_${app_name}=\"${i}\""
|
|
|
|
found=1
|
2004-01-10 03:02:53 +03:00
|
|
|
break
|
2003-12-24 04:49:07 +03:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2004-01-04 03:14:51 +03:00
|
|
|
if test "$found" = "0" ; then
|
2003-11-22 19:36:58 +03:00
|
|
|
cat <<EOF
|
2004-01-04 03:14:51 +03:00
|
|
|
I could not find a recent enough copy of ${app_name}.
|
|
|
|
I am gonna abort. :-(
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-01-04 03:14:51 +03:00
|
|
|
Please make sure you are using at least the following versions of the
|
|
|
|
GNU tools:
|
|
|
|
|
|
|
|
GNU Autoconf $lam_autoconf_version
|
|
|
|
GNU Automake $lam_automake_version
|
|
|
|
GNU Libtool $lam_libtool_version
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
EOF
|
2004-01-04 03:14:51 +03:00
|
|
|
exit 1
|
2003-11-22 19:36:58 +03:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2004-01-04 03:14:51 +03:00
|
|
|
#
|
|
|
|
# run_and_check - run the right GNU tool, printing warning on failure
|
|
|
|
#
|
|
|
|
# INPUT:
|
|
|
|
# - name of application (eg aclocal)
|
|
|
|
# - program arguments
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
2004-01-04 03:14:51 +03:00
|
|
|
# OUTPUT:
|
|
|
|
# none
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
2004-01-04 03:14:51 +03:00
|
|
|
# SIDE EFFECTS:
|
|
|
|
# - aborts on error running application
|
|
|
|
#
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2003-11-22 19:36:58 +03:00
|
|
|
run_and_check() {
|
2004-01-04 03:14:51 +03:00
|
|
|
local rac_progs="$*"
|
2004-01-08 18:17:57 +03:00
|
|
|
echo "[Running] $rac_progs"
|
2003-11-22 19:36:58 +03:00
|
|
|
eval $rac_progs
|
|
|
|
if test "$?" != 0; then
|
|
|
|
cat <<EOF
|
|
|
|
|
2003-12-24 04:49:07 +03:00
|
|
|
It seems that the execution of "$rac_progs" has failed.
|
2003-11-22 19:36:58 +03:00
|
|
|
I am gonna abort. :-(
|
|
|
|
|
|
|
|
This may be caused by an older version of one of the required
|
|
|
|
packages. Please make sure you are using at least the following
|
|
|
|
versions:
|
|
|
|
|
2004-01-08 21:52:21 +03:00
|
|
|
GNU Autoconf $lam_autoconf_version
|
|
|
|
GNU Automake $lam_automake_version
|
|
|
|
GNU Libtool $lam_libtool_version
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
EOF
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2004-01-04 03:14:51 +03:00
|
|
|
#
|
|
|
|
# find_and_delete - look for standard files in a number of common places
|
|
|
|
# (e.g., ./config.guess, config/config.guess, dist/config.guess), and
|
|
|
|
# delete it. If it's not found there, look for AC_CONFIG_AUX_DIR in
|
|
|
|
# the configure.in script and try there. If it's not there, oh well.
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
2004-01-04 03:14:51 +03:00
|
|
|
# INPUT:
|
|
|
|
# - file to delete
|
2003-11-22 19:36:58 +03:00
|
|
|
#
|
2004-01-04 03:14:51 +03:00
|
|
|
# OUTPUT:
|
|
|
|
# none
|
|
|
|
#
|
|
|
|
# SIDE EFFECTS:
|
|
|
|
# - files may disappear
|
|
|
|
#
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2003-11-22 19:36:58 +03:00
|
|
|
find_and_delete() {
|
2004-01-04 03:14:51 +03:00
|
|
|
local fad_file="$1"
|
|
|
|
|
|
|
|
local fad_cfile
|
|
|
|
local auxdir
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
# Look for the file in "standard" places
|
|
|
|
|
|
|
|
if test -f $fad_file; then
|
|
|
|
rm -f $fad_file
|
|
|
|
elif test -d config/$fad_file; then
|
|
|
|
rm -f config/$fad_file
|
|
|
|
elif test -d dist/$fad_file; then
|
|
|
|
rm -f dist/$fad_file
|
|
|
|
else
|
|
|
|
|
|
|
|
# Didn't find it -- look for an AC_CONFIG_AUX_DIR line in
|
|
|
|
# configure.[in|ac]
|
|
|
|
|
|
|
|
if test -f configure.in; then
|
|
|
|
fad_cfile=configure.in
|
|
|
|
elif test -f configure.ac; then
|
|
|
|
fad_cfile=configure.ac
|
|
|
|
else
|
|
|
|
echo "--> Errr... there's no configure.in or configure.ac file!"
|
|
|
|
fi
|
|
|
|
if test -n "$fad_cfile"; then
|
|
|
|
auxdir="`grep AC_CONFIG_AUX_DIR $fad_cfile | cut -d\( -f 2 | cut -d\) -f 1`"
|
|
|
|
fi
|
|
|
|
if test -f "$auxdir/$fad_file"; then
|
|
|
|
rm -f "$auxdir/$fad_file"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-01-12 00:35:37 +03:00
|
|
|
##############################################################################
|
|
|
|
#
|
|
|
|
# run_gnu_tools - run the GNU tools on a given directory
|
|
|
|
#
|
|
|
|
# INPUT:
|
|
|
|
# - directory to run in
|
|
|
|
# - LAM top directory
|
|
|
|
#
|
|
|
|
# OUTPUT:
|
|
|
|
# none
|
|
|
|
#
|
|
|
|
# SIDE EFFECTS:
|
|
|
|
# - skips directories with .lam_no_gnu .lam_ignore
|
|
|
|
# - uses provided autogen.sh if available
|
|
|
|
#
|
|
|
|
##############################################################################
|
|
|
|
run_gnu_tools() {
|
|
|
|
rgt_dir="$1"
|
|
|
|
rgt_lam_topdir="$2"
|
|
|
|
rgt_cur_dir="`pwd`"
|
|
|
|
if test -d "$rgt_dir"; then
|
|
|
|
cd "$rgt_dir"
|
|
|
|
|
|
|
|
# See if the package doesn't want us to set it up
|
|
|
|
|
|
|
|
if test -f .lam_no_gnu; then
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
*** Found .lam_no_gnu file -- skipping GNU setup in:
|
|
|
|
*** `pwd`
|
|
|
|
|
|
|
|
EOF
|
|
|
|
elif test -f .lam_ignore; then
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
*** Found .lam_ignore file -- skipping entire tree:
|
|
|
|
*** `pwd`
|
|
|
|
|
|
|
|
EOF
|
|
|
|
elif test "$rgt_dir" != "." -a -x autogen.sh; then
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
*** Found custom autogen.sh file in:
|
|
|
|
*** `pwd`
|
|
|
|
|
|
|
|
EOF
|
|
|
|
./autogen.sh
|
|
|
|
else
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
*** Running GNU tools in directory:
|
|
|
|
*** `pwd`
|
|
|
|
|
|
|
|
EOF
|
|
|
|
# Sanity check to ensure that there's a configure.in or
|
|
|
|
# configure.ac file here, or if there's a configure.params
|
|
|
|
# file and we need to run make_configure.pl.
|
|
|
|
|
|
|
|
if test -f configure.params -a \
|
|
|
|
-x "$rgt_lam_topdir/config/mca_make_configure.pl"; then
|
|
|
|
echo "--> Found configure.params. Running mca_make_configure.pl"
|
|
|
|
"$rgt_lam_topdir/config/mca_make_configure.pl" \
|
|
|
|
--lamdir "$rgt_lam_topdir" \
|
|
|
|
--moduledir "`pwd`"
|
|
|
|
happy=1
|
|
|
|
file=configure.ac
|
|
|
|
elif test -f configure.in; then
|
|
|
|
happy=1
|
|
|
|
file=configure.in
|
|
|
|
elif test -f configure.ac; then
|
|
|
|
happy=1
|
|
|
|
file=configure.ac
|
|
|
|
else
|
|
|
|
echo "---> Err... there's no configure.in or configure.ac file in this directory"
|
|
|
|
echo "---> I'm confused, so I'm going to abort"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
unset happy
|
|
|
|
|
|
|
|
# Find and delete the GNU helper script files
|
|
|
|
|
|
|
|
find_and_delete config.guess
|
|
|
|
find_and_delete config.sub
|
|
|
|
find_and_delete depcomp
|
|
|
|
find_and_delete install-sh
|
|
|
|
find_and_delete ltconfig
|
|
|
|
find_and_delete ltmain.sh
|
|
|
|
find_and_delete missing
|
|
|
|
find_and_delete mkinstalldirs
|
|
|
|
find_and_delete libtool
|
|
|
|
|
|
|
|
# Run the GNU tools
|
|
|
|
|
|
|
|
run_and_check $lam_aclocal
|
|
|
|
if test "`grep AC_CONFIG_HEADER $file`" != "" -o \
|
|
|
|
"`grep AM_CONFIG_HEADER $file`" != ""; then
|
|
|
|
run_and_check $lam_autoheader
|
|
|
|
fi
|
|
|
|
run_and_check $lam_autoconf
|
|
|
|
|
|
|
|
# We only need the libltdl stuff for the top-level
|
|
|
|
# configure, not any of the SSI modules.
|
|
|
|
|
|
|
|
if test -d src/include/mpi.h; then
|
|
|
|
rm -rf libltdl src/mca/libltdl src/mca/ltdl.h
|
|
|
|
run_and_check $lam_libtoolize --automake --copy --ltdl
|
|
|
|
mv libltdl src/mca
|
|
|
|
|
|
|
|
echo "Adjusting libltdl for LAM :-("
|
|
|
|
|
|
|
|
echo " -- adding sym link for src/mca/ltdl.h"
|
|
|
|
cd src/mca
|
|
|
|
ln -s libltdl/ltdl.h ltdl.h
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
echo " -- patching for argz bugfix in libtool 1.5"
|
|
|
|
cd src/mca/libltdl
|
|
|
|
patch -p0 <<EOF
|
|
|
|
--- ltdl.c.old 2003-11-26 16:42:17.000000000 -0500
|
|
|
|
+++ ltdl.c 2003-12-03 17:06:27.000000000 -0500
|
|
|
|
@@ -682,7 +682,7 @@
|
|
|
|
/* This probably indicates a programmer error, but to preserve
|
|
|
|
semantics, scan back to the start of an entry if BEFORE points
|
|
|
|
into the middle of it. */
|
|
|
|
- while ((before >= *pargz) && (before[-1] != LT_EOS_CHAR))
|
|
|
|
+ while ((before > *pargz) && (before[-1] != LT_EOS_CHAR))
|
|
|
|
--before;
|
|
|
|
|
|
|
|
{
|
|
|
|
EOF
|
|
|
|
cd ../../..
|
|
|
|
echo " -- patching configure for broken -c/-o compiler test"
|
|
|
|
sed -e 's/chmod -w \./#LAM\/MPI FIX: chmod -w ./' \
|
|
|
|
configure > configure.new
|
|
|
|
mv configure.new configure
|
|
|
|
chmod a+x configure
|
|
|
|
else
|
|
|
|
run_and_check $lam_libtoolize --automake --copy
|
|
|
|
fi
|
|
|
|
run_and_check $lam_automake --foreign -a --copy --include-deps
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Go back to the original directory
|
|
|
|
|
|
|
|
cd "$rgt_cur_dir"
|
|
|
|
fi
|
|
|
|
unset rgt_dir rgt_cur_dir
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
#
|
|
|
|
# run_global - run the config in the top LAM dir and all MCA modules
|
|
|
|
#
|
|
|
|
# INPUT:
|
|
|
|
# none
|
|
|
|
#
|
|
|
|
# OUTPUT:
|
|
|
|
# none
|
|
|
|
#
|
|
|
|
# SIDE EFFECTS:
|
|
|
|
#
|
|
|
|
##############################################################################
|
|
|
|
run_global() {
|
|
|
|
# Run the config in the top-level directory
|
|
|
|
|
|
|
|
run_gnu_tools . .
|
|
|
|
|
|
|
|
# Now run the config in every directory in src/mca/[lam|mpi]/*/*
|
|
|
|
# that has a configure.in or configure.ac script
|
|
|
|
|
|
|
|
rg_cwd="`pwd`"
|
|
|
|
echo $rg_cwd
|
|
|
|
for type in src/mca/lam/* src/mca/mpi/*; do
|
|
|
|
if test -d "$type"; then
|
|
|
|
for module in "$type"/*; do
|
|
|
|
if test -d "$module"; then
|
|
|
|
if test -f "$module/configure.in" -o \
|
|
|
|
-f "$module/configure.params" -o \
|
|
|
|
-f "$module/configure.ac"; then
|
|
|
|
run_gnu_tools "$module" "$rg_cwd"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
unset type module
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2004-01-04 03:14:51 +03:00
|
|
|
#
|
|
|
|
# main - do the real work...
|
|
|
|
#
|
2004-01-07 17:43:42 +03:00
|
|
|
##############################################################################
|
2004-01-04 03:14:51 +03:00
|
|
|
|
2004-01-12 00:35:37 +03:00
|
|
|
# announce
|
|
|
|
echo "[Checking] command line parameters"
|
|
|
|
|
|
|
|
# Check the command line to see if we should run the whole shebang, or
|
|
|
|
# just in this current directory.
|
|
|
|
|
|
|
|
want_local=no
|
|
|
|
lamdir=
|
|
|
|
for arg in $*; do
|
|
|
|
case $arg in
|
|
|
|
-l) want_local=yes ;;
|
|
|
|
-lamdir|--lamdir|-lam|--lam) lamdir="$1" ;;
|
|
|
|
*) ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2004-01-08 18:17:57 +03:00
|
|
|
# announce
|
|
|
|
echo "[Checking] prerequisites"
|
|
|
|
|
2004-01-04 03:14:51 +03:00
|
|
|
# sanity check to make sure user isn't being stupid
|
|
|
|
if test ! -d CVS ; then
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
This doesn't look like a developer copy of LAM/MPI. You probably do not
|
|
|
|
want to run autogen.sh - it is normally not needed for a release source
|
2004-01-12 00:35:37 +03:00
|
|
|
tree. Giving you 5 seconds to reconsider and kill me.
|
2004-01-04 03:14:51 +03:00
|
|
|
|
|
|
|
EOF
|
2004-01-12 00:35:37 +03:00
|
|
|
sleep 5
|
2004-01-04 03:14:51 +03:00
|
|
|
fi
|
|
|
|
|
2004-01-12 00:35:37 +03:00
|
|
|
# figure out if we're at the top level of the LAM tree, a module's
|
|
|
|
# top-level directory, or somewhere else.
|
|
|
|
if test -f VERSION -a -f configure.ac -a -f src/include/mpi.h ; then
|
|
|
|
# Top level of LAM tree
|
|
|
|
lamdir="`pwd`"
|
|
|
|
elif test -f configure.in -o -f configure.ac -o -f configure.params ; then
|
|
|
|
# Top level of a module directory
|
|
|
|
want_local=yes
|
|
|
|
if test -z "$lamdir"; then
|
|
|
|
lamdir="../../../../.."
|
|
|
|
fi
|
2003-11-22 19:36:58 +03:00
|
|
|
else
|
|
|
|
cat <<EOF
|
|
|
|
|
2004-01-12 00:35:37 +03:00
|
|
|
You must run this script from either the top level of the LAM
|
|
|
|
directory tree or the top-level of an MCA module directory tree.
|
2003-11-22 19:36:58 +03:00
|
|
|
|
|
|
|
EOF
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2004-01-04 03:14:51 +03:00
|
|
|
# find all the apps we are going to run
|
|
|
|
find_app "aclocal"
|
|
|
|
find_app "autoheader"
|
|
|
|
find_app "autoconf"
|
|
|
|
find_app "libtoolize"
|
|
|
|
find_app "automake"
|
2003-11-22 19:36:58 +03:00
|
|
|
|
2004-01-12 00:35:37 +03:00
|
|
|
# do the work
|
|
|
|
if test "$want_local" = "yes"; then
|
|
|
|
run_gnu_tools . $lamdir
|
|
|
|
else
|
|
|
|
run_global
|
2003-11-22 19:36:58 +03:00
|
|
|
fi
|
2004-01-12 00:35:37 +03:00
|
|
|
|
2003-11-22 19:36:58 +03:00
|
|
|
# All done
|
|
|
|
exit 0
|