Changeset 792


Ignore:
Timestamp:
Jun 3, 2006 2:26:00 AM (13 years ago)
Author:
andreasw
Message:

improved check for correct version of autotools

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/configure

    r786 r792  
    1938519385  rm -f confauto.out
    1938619386
     19387  # Check if the executable autoconf is picked up from the correct location
     19388  echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
     19389echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
     19390  autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
     19391  autoconf_dir=`cd $autoconf_dir; pwd`
     19392  if test x$AUTOTOOLS_DIR = x; then
     19393    want_dir=$HOME/bin
     19394  else
     19395    want_dir=$AUTOTOOLS_DIR/bin
     19396  fi
     19397  if test $autoconf_dir = `cd $want_dir; pwd`; then
     19398    echo "$as_me:$LINENO: result: yes" >&5
     19399echo "${ECHO_T}yes" >&6
     19400  else
     19401    rm -f confauto.out
     19402    echo "$as_me:$LINENO: result: no" >&5
     19403echo "${ECHO_T}no" >&6
     19404    { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&5
     19405echo "$as_me: error: The autoconf executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&2;}
     19406   { (exit 1); exit 1; }; }
     19407  fi
     19408
    1938719409  # Check if we have automake
    1938819410  # Extract the first word of "automake", so it can be a program name with args.
     
    1944719469  rm -f confauto.out
    1944819470
     19471  # Check if the executable automake is picked up from the correct location
     19472  echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
     19473echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
     19474  automake_dir=`which automake | sed -e 's=/automake=='`
     19475  automake_dir=`cd $automake_dir; pwd`
     19476  if test x$AUTOTOOLS_DIR = x; then
     19477    want_dir=$HOME/bin
     19478  else
     19479    want_dir=$AUTOTOOLS_DIR/bin
     19480  fi
     19481  if test $automake_dir = `cd $want_dir; pwd`; then
     19482    echo "$as_me:$LINENO: result: yes" >&5
     19483echo "${ECHO_T}yes" >&6
     19484  else
     19485    rm -f confauto.out
     19486    echo "$as_me:$LINENO: result: no" >&5
     19487echo "${ECHO_T}no" >&6
     19488    { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&5
     19489echo "$as_me: error: The automake executable should be picked up from \$HOME/bin or \$AUTOTOOLS_DIR/bin." >&2;}
     19490   { (exit 1); exit 1; }; }
     19491  fi
     19492
    1944919493  # Check if we can find the libtool file
    19450   if test "${LIBTOOLPREFIX:+set}" != set; then
    19451     for p in $HOME ; do
    19452       as_ac_File=`echo "ac_cv_file_$p/share/aclocal/libtool.m4" | $as_tr_sh`
    19453 echo "$as_me:$LINENO: checking for $p/share/aclocal/libtool.m4" >&5
    19454 echo $ECHO_N "checking for $p/share/aclocal/libtool.m4... $ECHO_C" >&6
     19494  if test x$AUTOTOOLS_DIR = x; then
     19495    want_dir=$HOME/share
     19496  else
     19497    want_dir=$AUTOTOOLS_DIR/share
     19498  fi
     19499  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
     19500echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
     19501echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
    1945519502if eval "test \"\${$as_ac_File+set}\" = set"; then
    1945619503  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    1946019507echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    1946119508   { (exit 1); exit 1; }; }
    19462 if test -r "$p/share/aclocal/libtool.m4"; then
     19509if test -r "$want_dir/aclocal/libtool.m4"; then
    1946319510  eval "$as_ac_File=yes"
    1946419511else
     
    1946919516echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    1947019517if test `eval echo '${'$as_ac_File'}'` = yes; then
    19471   LIBTOOLM4="$p/share/aclocal/libtool.m4"
    19472                      LIBTOOLPREFIX="$p"
    19473 fi
    19474 
    19475       if test x"$LIBTOOLM4" != x; then
    19476         break;
    19477       fi
    19478     done
    19479     if test x"$LIBTOOLM4" = x; then
    19480       { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find the file libtool.m4 on your system.  Please set the prefix of the location of the correct file with the LIBTOOLPREFIX variable, so that it is in $LIBTOOLPREFIX/share/aclocal.  We assume here that it is the plain version obtained from the GNU tarball." >&5
    19481 echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find the file libtool.m4 on your system.  Please set the prefix of the location of the correct file with the LIBTOOLPREFIX variable, so that it is in $LIBTOOLPREFIX/share/aclocal.  We assume here that it is the plain version obtained from the GNU tarball." >&2;}
     19518  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
     19519else
     19520  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
     19521echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
    1948219522   { (exit 1); exit 1; }; }
    19483     fi
    19484   else
    19485     as_ac_File=`echo "ac_cv_file_$LIBTOOLPREFIX/share/aclocal/libtool.m4" | $as_tr_sh`
    19486 echo "$as_me:$LINENO: checking for $LIBTOOLPREFIX/share/aclocal/libtool.m4" >&5
    19487 echo $ECHO_N "checking for $LIBTOOLPREFIX/share/aclocal/libtool.m4... $ECHO_C" >&6
     19523fi
     19524
     19525
     19526  # Check if this is the correct version of libtool (with escaped dots)
     19527  correct_version='1.5.22'
     19528  grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
     19529  as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
     19530echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
     19531echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
    1948819532if eval "test \"\${$as_ac_File+set}\" = set"; then
    1948919533  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    1949319537echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    1949419538   { (exit 1); exit 1; }; }
    19495 if test -r "$LIBTOOLPREFIX/share/aclocal/libtool.m4"; then
    19496   eval "$as_ac_File=yes"
    19497 else
    19498   eval "$as_ac_File=no"
    19499 fi
    19500 fi
    19501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
    19502 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
    19503 if test `eval echo '${'$as_ac_File'}'` = yes; then
    19504   LIBTOOLM4="$LIBTOOLPREFIX/share/aclocal/libtool.m4"
    19505 else
    19506   { { echo "$as_me:$LINENO: error: You specified LIBTOOLPREFIX, but I cannot find the file libtool.m4 in $LIBTOOLPREFIX/share/aclocal." >&5
    19507 echo "$as_me: error: You specified LIBTOOLPREFIX, but I cannot find the file libtool.m4 in $LIBTOOLPREFIX/share/aclocal." >&2;}
    19508    { (exit 1); exit 1; }; }
    19509 fi
    19510 
    19511   fi
    19512 
    19513   # Check if this is the correct version of libtool (with escaped dots)
    19514   correct_version='1.5.22'
    19515   grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
    19516   as_ac_File=`echo "ac_cv_file_$LIBTOOLPREFIX/share/libtool/ltmain.sh" | $as_tr_sh`
    19517 echo "$as_me:$LINENO: checking for $LIBTOOLPREFIX/share/libtool/ltmain.sh" >&5
    19518 echo $ECHO_N "checking for $LIBTOOLPREFIX/share/libtool/ltmain.sh... $ECHO_C" >&6
    19519 if eval "test \"\${$as_ac_File+set}\" = set"; then
    19520   echo $ECHO_N "(cached) $ECHO_C" >&6
    19521 else
    19522   test "$cross_compiling" = yes &&
    19523   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
    19524 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
    19525    { (exit 1); exit 1; }; }
    19526 if test -r "$LIBTOOLPREFIX/share/libtool/ltmain.sh"; then
     19539if test -r "$want_dir/libtool/ltmain.sh"; then
    1952719540  eval "$as_ac_File=yes"
    1952819541else
     
    1954119554echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
    1954219555  if test $have_ltmain = yes; then
    19543     if $EGREP $grep_version $LIBTOOLPREFIX/share/libtool/ltmain.sh >/dev/null 2>&1; then
     19556    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
    1954419557      echo "$as_me:$LINENO: result: yes" >&5
    1954519558echo "${ECHO_T}yes" >&6
     
    1954719560      echo "$as_me:$LINENO: result: no" >&5
    1954819561echo "${ECHO_T}no" >&6
    19549       { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool.  Please set LIBTOOLPREFIX to the correct installation prefix, so that the correct version of ltmain.sh is in $LIBTOOLPREFIX/share/libtool." >&5
    19550 echo "$as_me: error: You don't have the correct version of libtool.  Please set LIBTOOLPREFIX to the correct installation prefix, so that the correct version of ltmain.sh is in $LIBTOOLPREFIX/share/libtool." >&2;}
     19562      { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
     19563echo "$as_me: error: You don't have the correct version of libtool." >&2;}
    1955119564   { (exit 1); exit 1; }; }
    1955219565    fi
    1955319566  else
    19554     { { echo "$as_me:$LINENO: error: I cannot find the file ltmain.sh in $LIBTOOLPREFIX/share/libtool" >&5
    19555 echo "$as_me: error: I cannot find the file ltmain.sh in $LIBTOOLPREFIX/share/libtool" >&2;}
     19567    echo "$as_me:$LINENO: result: no" >&5
     19568echo "${ECHO_T}no" >&6
     19569    { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
     19570echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
    1955619571   { (exit 1); exit 1; }; }
    1955719572  fi
Note: See TracChangeset for help on using the changeset viewer.