summaryrefslogtreecommitdiff
path: root/regress/buildlink-unwrap/tests/unwrap-config.sh
blob: 47ba634d417fdff19d14598e11fb2430a18ca998 (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
#! /bin/sh
#
# $NetBSD: unwrap-config.sh,v 1.1.1.1 2004/08/28 06:17:21 jlam Exp $
#
# This is a dummy *-config script that is used to test whether these
# files are correctly "unwrapped" at post-build time.

prefix="@PREFIX@"
exec_prefix="${prefix}"

includedir="${prefix}/include"
libdir="${exec_prefix}/lib"

output=""
for option do
	case $option in
	--cflags)
		output="$output -O2 -I${includedir}"
		;;
	--ldflags)
		output="$output -L${libdir} @COMPILER_RPATH_FLAG@${libdir}"
		;;
	--libs)
		output="$output -lreadline"
		;;
	esac
done

echo $output