]> git.cworth.org Git - glaze/blobdiff - configure
Add a glaze_execute function to libglaze
[glaze] / configure
index d25e22a4b3820951164753053d173fb93e92860e..4df846b278b113b63d0d8cf0d4e021f565c3bd0a 100755 (executable)
--- a/configure
+++ b/configure
@@ -285,6 +285,22 @@ VERSION = ${VERSION}
 
 EOF
 
+# construct config.h
+QQ='"'
+cat > config.h <<EOF
+/* Generated by configure */
+
+/* The prefix to which ${PROJECT} should be installed */
+#define CONFIG_PREFIX "${PREFIX}"
+
+/* The directory to which libraries should be installed */
+#define CONFIG_LIBDIR "${LIBDIR:-${QQ} CONFIG_PREFIX ${QQ}/lib}"
+
+/* The directory to which executables should be installed */
+#define CONFIG_BINDIR "${BINDIR:-${QQ} CONFIG_PREFIX ${QQ}/bin}"
+
+EOF
+
 # construct the glaze.pc file
 cat > glaze.pc <<EOF
 prefix=${PREFIX}