]> err.no Git - pkg-config/commitdiff
Add includedir test
authorTollef Fog Heen <tfheen@err.no>
Sat, 27 Aug 2005 09:05:14 +0000 (09:05 +0000)
committerTollef Fog Heen <tfheen@err.no>
Sat, 27 Aug 2005 09:05:14 +0000 (09:05 +0000)
check/Makefile.am
check/check-includedir [new file with mode: 0755]
check/includedir.pc [new file with mode: 0644]

index e2c15d9c244c55d0a124fe5171502579f571123a..df199c7d53d346ebb23da759f25736ef6f95ff85 100644 (file)
@@ -1,7 +1,7 @@
 
 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
 
diff --git a/check/check-includedir b/check/check-includedir
new file mode 100755 (executable)
index 0000000..e4c234c
--- /dev/null
@@ -0,0 +1,15 @@
+#! /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
diff --git a/check/includedir.pc b/check/includedir.pc
new file mode 100644 (file)
index 0000000..89d03c8
--- /dev/null
@@ -0,0 +1,12 @@
+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}