summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2013-03-29 12:35:21 -0700
committerDan Nicholson <dbn.lists@gmail.com>2013-04-09 05:45:40 -0700
commit7328e6fc9ec4191105cd4433320ea585d8f95d97 (patch)
treeccc155554e14ac02b93845fef8a60052c4e92047 /check
parent4a0ab4be0b5381aea2e3ac9c3ba9bedbc5e0178f (diff)
downloadpkg-config-7328e6fc9ec4191105cd4433320ea585d8f95d97.tar.gz
Run cmd through Wine when available
If we have Wine, it will provide cmd so we can build the pkg-config path for the test.
Diffstat (limited to 'check')
-rwxr-xr-xcheck/check-path2
-rw-r--r--check/config.sh.in1
2 files changed, 2 insertions, 1 deletions
diff --git a/check/check-path b/check/check-path
index 37244d9..2a6be75 100755
--- a/check/check-path
+++ b/check/check-path
@@ -22,7 +22,7 @@ if [ "$native_win32" = yes ]; then
# Assume we have cmd somewhere to get variable %cd%. Make sure
# to strip carriage returns.
pcdir=$(cd $top_builddir/.libs &&
- cmd /C echo %cd% | sed -r 's/\r//g')
+ $WINE cmd /C echo %cd% | sed -r 's/\r//g')
fi
win_path="$pcdir/lib/pkgconfig;$pcdir/share/pkgconfig"
diff --git a/check/config.sh.in b/check/config.sh.in
index 68fa097..8b7ffb5 100644
--- a/check/config.sh.in
+++ b/check/config.sh.in
@@ -15,3 +15,4 @@ system_library_path="@system_library_path@"
list_indirect_deps=@use_indirect_deps@
PACKAGE_VERSION=@PACKAGE_VERSION@
native_win32=@native_win32@
+WINE=@WINE@