This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit 13eafa59547e0de003875dba5573752b9a9e51c7
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Thu Mar 6 19:21:58 2025 +0100
autofoo: Make building demo programs optional (default enabled)
When building programs, require zlib.
---
configure.ac | 13 +++++++++++++
src/Makefile.am | 5 ++++-
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 533bd34..18adbfb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,6 +91,17 @@ if test "$enable_text" = "yes"; then
fi
AM_CONDITIONAL(ENABLE_TEXT, test "$enable_text" = "yes")
+AC_ARG_ENABLE([progs],
+ [AS_HELP_STRING([--enable-progs], [Build demo programs @<:@default=yes@:>@])],
+ enable_progs="$enableval",
+ enable_progs="yes"
+)
+if test "$enable_progs" = "yes"; then
+ AC_DEFINE(ENABLE_PROGS, 1, [Build demo programs])
+ PKG_CHECK_MODULES(ZLIB, zlib)
+fi
+AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = "yes")
+
mmx=no
amd64=no
@@ -345,5 +356,7 @@ echo "Include text functions....: $enable_text"
echo "Use visibility hiding.....: $enable_visibility_hiding"
echo "Use struct packing........: $enable_packing"
echo
+echo "Build demo programss......: $enable_progs"
+echo
echo "Installation path.........: $prefix"
echo
diff --git a/src/Makefile.am b/src/Makefile.am
index a8ce0e4..7f71600 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1 +1,4 @@
-SUBDIRS = lib bin modules
+SUBDIRS = lib modules
+if ENABLE_PROGS
+SUBDIRS += bin
+endif
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.