summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-06-27 21:14:00 +0000
committerSascha Schumann <sas@php.net>1999-06-27 21:14:00 +0000
commitaa4e00b33cd15427429f580cff9ae3df89cb9047 (patch)
treec17e9185b008a66e530215dbbb18681ce0a1abd6 /acinclude.m4
parentd1169e735e72694090e8158ef0c1d9732015f9af (diff)
downloadphp-git-aa4e00b33cd15427429f580cff9ae3df89cb9047.tar.gz
port over autoconf fixes from php3
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index c3a2fc6e4c..22a26353e1 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -22,10 +22,10 @@ dnl
dnl expands path to an absolute path and assigns it to variable
dnl
AC_DEFUN(AC_EXPAND_PATH,[
- if echo "$1" | grep -v '^/' >/dev/null ; then
- $2="`pwd`/$1"
- else
+ if test -z "$1" || echo "$1" | grep '^/' >/dev/null ; then
$2="$1"
+ else
+ $2="`pwd`/$1"
fi
])