summaryrefslogtreecommitdiff
path: root/check/check-uninstalled
blob: dee78818e86e239b2033843254a50c3aa3fd9912 (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
36
37
38
39
40
41
42
43
44
45
46
#! /bin/sh

set -e

. ${srcdir}/common

# Check to see if we find the uninstalled version
RESULT=''
run_test --uninstalled inst

RESULT=''
run_test --exists inst \>= 2.0

RESULT='-I$(top_builddir)/include'
run_test --cflags inst

RESULT='-L$(top_builddir)/lib -linst'
run_test --libs inst

# Alter PKG_CONFIG_TOP_BUILD_DIR
export PKG_CONFIG_TOP_BUILD_DIR='$(abs_top_builddir)'

RESULT='-I$(abs_top_builddir)/include'
run_test --cflags inst

RESULT='-L$(abs_top_builddir)/lib -linst'
run_test --libs inst

unset PKG_CONFIG_TOP_BUILD_DIR

# Check to see if we get the original back
export PKG_CONFIG_DISABLE_UNINSTALLED=1

RESULT=''
EXPECT_RETURN=1 run_test --uninstalled inst

RESULT=''
EXPECT_RETURN=1 run_test --exists inst \>= 2.0

RESULT='-I/inst/include'
run_test --cflags inst

RESULT='-L/inst/lib -linst'
run_test --libs inst

unset PKG_CONFIG_DISABLE_UNINSTALLED