blob: e3f6cbd4ccf99753b608fe73591dc95d9fa187fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#! /bin/sh
set -e
. ${srcdir}/common
# Check the normal behavior
RESULT="/usr"
run_test --variable=prefix simple
RESULT="/usr/lib"
run_test --variable=libdir simple
# Override prefix with correct environment variable
export PKG_CONFIG_SIMPLE_PREFIX="/foo"
RESULT="/foo"
run_test --variable=prefix simple
RESULT="/foo/lib"
run_test --variable=libdir simple
RESULT="-I/foo/include"
run_test --cflags simple
unset PKG_CONFIG_SIMPLE_PREFIX
# Override prefix with incorrect environment variable case. On Windows
# this will have no effect as environment variables are case
# insensitive.
if [ "$native_win32" != yes ]; then
export PKG_CONFIG_SIMPLE_prefix="/foo"
RESULT="/usr"
run_test --variable=prefix simple
RESULT="/usr/lib"
run_test --variable=libdir simple
RESULT=""
run_test --cflags simple
unset PKG_CONFIG_SIMPLE_prefix
fi
|