pkg-config/check/check-cflags
Dan Nicholson 9a54c588a5 check: Test all variants of --cflags and --libs
Make sure that the --*-only-* variants of --cflags and --libs do the
right thing. This should probably be extended to cover a chain of
packages to get the ordering right, but this is good for now.
2012-10-03 05:33:31 -07:00

20 lines
287 B
Bash
Executable file

#! /bin/sh
set -e
. ${srcdir}/common
RESULT=""
run_test --cflags simple
RESULT=""
run_test --cflags fields-blank
RESULT="-DOTHER -I/other/include"
run_test --cflags other
RESULT="-I/other/include"
run_test --cflags-only-I other
RESULT="-DOTHER"
run_test --cflags-only-other other