Ignore:
Timestamp:
May 6, 2020 1:16:57 PM (11 months ago)
Author:
stefan
Message:

always prefix PATH with AUTOTOOLS_DIR, if set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/0.8/run_autotools

    r4194 r4195  
    9595# Find out the location for autotools executables, macros, etc.
    9696# This can be overidden if the user sets AUTOTOOLS_DIR in the environment.
    97 # If this directory is not already in the PATH, add it.
     97# If AUTOTOOLS_DIR is set, make sure that is at the beginning of PATH.
    9898
    9999if test -z "$AUTOTOOLS_DIR" ; then
    100100  # assume that autotools directory is given by location of autoconf
    101101  AUTOTOOLS_DIR=`dirname $(which autoconf)`/..
    102 elif ! expr ":${PATH}:" : '.*:'"${AUTOTOOLS_DIR}"'/bin:.*' &>/dev/null ; then
     102else
    103103  # prefix PATH with AUTOTOOLS_DIR/bin
    104104  PATH="${AUTOTOOLS_DIR}/bin:$PATH"
Note: See TracChangeset for help on using the changeset viewer.