summaryrefslogtreecommitdiff
path: root/regress/buildlink-unwrap/tests/unwrap-config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/buildlink-unwrap/tests/unwrap-config.sh')
-rw-r--r--regress/buildlink-unwrap/tests/unwrap-config.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/regress/buildlink-unwrap/tests/unwrap-config.sh b/regress/buildlink-unwrap/tests/unwrap-config.sh
new file mode 100644
index 00000000000..47ba634d417
--- /dev/null
+++ b/regress/buildlink-unwrap/tests/unwrap-config.sh
@@ -0,0 +1,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