projects
/
platform
/
upstream
/
automake.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: fix bug in pkg-config-macros.sh, could cause spurious SKIPs
[platform/upstream/automake.git]
/
t
/
pkg-config-macros.sh
diff --git
a/t/pkg-config-macros.sh
b/t/pkg-config-macros.sh
index
ec8b381
..
5069c08
100755
(executable)
--- a/
t/pkg-config-macros.sh
+++ b/
t/pkg-config-macros.sh
@@
-48,9
+48,10
@@
XT_ACLOCAL_PATH=/usr/local/share/aclocal:/usr/share/aclocal
# Find the location of the pkg-config executable.
oIFS=$IFS dir=
# Find the location of the pkg-config executable.
oIFS=$IFS dir=
+IFS=:
for d in $PATH; do
IFS=$oIFS
for d in $PATH; do
IFS=$oIFS
- if test -f $d
ir/pkg-config || test -f $dir
/pkg-config.exe; then
+ if test -f $d
/pkg-config || test -f $d
/pkg-config.exe; then
dir=$d
break
fi
dir=$d
break
fi
@@
-61,7
+62,7
@@
IFS=$oIFS
# where the corresponding pkg.m4 might be installed.
if test -n "$dir"; then
# Only support standard installation layouts.
# where the corresponding pkg.m4 might be installed.
if test -n "$dir"; then
# Only support standard installation layouts.
- XT_ACLOCAL_PATH=${dir%/bin}/share/alocal:$XT_ACLOCAL_PATH
+ XT_ACLOCAL_PATH=${dir%/bin}/share/a
c
local:$XT_ACLOCAL_PATH
fi
XT_ACLOCAL_PATH=$XT_ACLOCAL_PATH${ACLOCAL_PATH+":$ACLOCAL_PATH"}
fi
XT_ACLOCAL_PATH=$XT_ACLOCAL_PATH${ACLOCAL_PATH+":$ACLOCAL_PATH"}