TESTS = check-cflags check-libs check-define-variable \
- check-libs-private check-requires-private
+ check-libs-private check-requires-private check-includedir
EXTRA_DIST = $(TESTS) common simple.pc requires-test.pc public-dep.pc \
- private-dep.pc
+ private-dep.pc includedir.pc
--- /dev/null
+#! /bin/sh
+
+# Do the Solaris Dance:
+if [ ! -d ~root ] ; then
+ exec /usr/xpg4/bin/sh $0 "$@"
+fi
+
+set -e
+
+. ${srcdir}/common
+
+ARGS="--cflags includedir"
+RESULT="-I/usr/include/somedir"
+
+run_test
--- /dev/null
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include/somedir
+
+Name: Simple test
+Description: Dummy pkgconfig test package for testing pkgconfig
+Version: 1.0.0
+Requires:
+Libs: -lsimple
+Libs.private: -lm
+Cflags: -I${includedir}