summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2013-05-01 18:13:55 -0700
committerJames Zern <jzern@google.com>2013-06-11 15:00:44 -0700
commit20aa7a8dd571519e01ea79fec81df2cf8cffbd0c (patch)
treed6dba6161568e415bfff78d2858bd74b01830a55
parentb8307cc08ba7f5cba24a268c9b155b717bfcb82d (diff)
downloadlibwebp-20aa7a8dd571519e01ea79fec81df2cf8cffbd0c.tar.gz
configure: add --enable-everything
Change-Id: Ie1b3abd42459de7f789fe985759c465c2a196727 (cherry picked from commit 3cafcc9a8de7419d98a3deb456b3c807748eeda7)
-rw-r--r--configure.ac12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 739be272..b60a683c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,18 @@ AM_PROG_CC_C_O
dnl === Enable less verbose output when building.
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+dnl === SET_IF_UNSET(shell_var, value)
+dnl === Set the shell variable 'shell_var' to 'value' if it is unset.
+AC_DEFUN([SET_IF_UNSET], [test "${$1+set}" = "set" || $1=$2])
+
+AC_ARG_ENABLE([everything],
+ AS_HELP_STRING([--enable-everything],
+ [Enable all optional targets. These can still be
+ disabled with --disable-target]),
+ [SET_IF_UNSET([enable_libwebpdecoder], [$enableval])
+ SET_IF_UNSET([enable_libwebpdemux], [$enableval])
+ SET_IF_UNSET([enable_libwebpmux], [$enableval])])
+
AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=DIR],
[Path to the pkgconfig directory @<:@LIBDIR/pkgconfig@:>@]),
[pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig'])