X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ce4aa20a2a11cbdeecd08de0df7b132dd3ea429f..ff791bec549f85a7c22f2177fb5c4e2c8d1f0fde:/bootstrap diff --git a/bootstrap b/bootstrap index f3089053cf..8f48373c20 100755 --- a/bootstrap +++ b/bootstrap @@ -3,50 +3,62 @@ amver=1.9 + +lt=`which libtoolize` +if [ "x$lt" = "x" ] ; then + echo "Libtool not found. Please install the libtool package to proceed with a CVS checkout" + exit 1 +fi + +if [ "x$lt" = "x./libtool" ] ; then + echo "The found libtool is the one in the current directory." + echo "Either your path is broken ('.' is before '/usr/bin') or the libtool package is not installed." + echo "Please fix the situation to proceed with a CVS checkout" + exit 1 +fi + +am=`which automake-$amver` +if [ "x$am" = "x" ] ; then + echo "automake version $amver not found. Please install the relevant package to proceed with a CVS checkout" + exit 1 +fi + +ac=`which autoconf` +if [ "x$ac" = "x" ] ; then + echo "autoconf not found. Please install the relevant package to proceed with a CVS checkout" + exit 1 +fi + + # AUTOCONF= # AUTOHEADER= # AUTOPOINT= # LIBTOOLIZE= -# Add the following to ACLOCAL to use the installed m4 macro about gtk-doc-tools instead of ours -# -I /usr/share/aclocal/gnome2-macros - ACLOCAL="aclocal-$amver -I acmacro" \ AUTOMAKE="automake-$amver" \ autoreconf -v -i -s || exit 1 -if test -z "$*"; then - if test -e aci.conf ; then - source aci.conf - echo "**Warning**: I am going to run \`configure' with arguments resulting from aci_configurator execution." - echo "ie, $configure_args." - echo "If you wish to pass other ones, please specify them on the" - echo \`$0\'" command line, or rerun aci_configurator and save the new ones." - echo - else - configure_args="--enable-maintainer-mode --enable-gtk-doc --enable-compile-warnings" - echo "**Warning**: I am going to run \`configure' with the default arguments." - echo "ie, $configure_args." - echo "If you wish to pass any to it, please specify them on the" - echo \`$0\'" command line." - echo - fi -else - configure_args="$@" - echo "I am going to run \`configure' with the provided arguments." - echo "ie, $configure_args." -fi - -echo "************" -echo "* And now:" -echo "************" - -echo " To configure it as a maintainer, run:" -echo " ./configure $configure_args" +echo +echo "And now, please launch ./configure" +echo "----------------------------------" -#echo "************" -#echo ./configure $configure_args +# What to do the day we declare optional modules using ACI: +# if test -e aci.conf ; then +# source aci.conf +# pass the content of $configure_args to configure -#echo Now type \`make\' to compile the package +echo +echo "Most common flags:" +echo " --enable-maintainer-mode mandatory if you use the CVS version" +echo " --disable-compile-optimizations useful if your gdb gets fooled" +echo +echo +echo "If you want to compile for several archs from the same (nfs-mounted?) tree, do:" +echo " mkdir your_arch; cd your_arch && ../configure --srcdir=.." +echo +echo "(after configure, you'll naturally have to run \`make')" +echo +echo