From 63fd78954dfa1a47331523a1296409cb46de6e55 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Wed, 18 Jan 2012 15:34:39 -0600 Subject: add api in configure.in to deal with PATH manipulations... prep-work for the migration of PATH handling from set_soenv... --- configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.in b/configure.in index a151780f5f7b..f6cd82577f5f 100644 --- a/configure.in +++ b/configure.in @@ -1934,6 +1934,18 @@ dnl =================================================================== dnl check for required programs (grep, awk, sed, bash) dnl =================================================================== AC_PROG_EGREP + +pathmunge () +{ + if ! echo HOST_PATH | $EGREP -q "(^|:)$1($|:)" ; then + if test "$2" = "after" ; then + HOST_PATH="$HOST_PATH:$1" + else + HOST_PATH="$1:$HOST_PATH" + fi + fi +} + AC_PROG_AWK AC_PATH_PROG( AWK, $AWK) if test -z "$AWK"; then -- cgit