From: Jan Engelhardt Date: Sat, 24 Dec 2011 03:45:42 +0000 (+0100) Subject: build: use AC_ARG_WITH for zlib X-Git-Tag: v3~82^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a51a357a8fad00582631592969f6d410228b8a7;p=platform%2Fupstream%2Fkmod.git build: use AC_ARG_WITH for zlib Since it selects an external dependency for inclusion, AC_ARG_WITH is preferred (autoconf.info 15.2 "Working with external software"). --- diff --git a/configure.ac b/configure.ac index 21a63b7..46b535d 100644 --- a/configure.ac +++ b/configure.ac @@ -51,10 +51,10 @@ AS_IF([test "x$enable_logging" = "xyes"], [ AC_DEFINE(ENABLE_LOGGING, [1], [System logging.]) ]) -AC_ARG_ENABLE([zlib], - AS_HELP_STRING([--enable-zlib], [handle gzipped modules @<:@default=disabled@:>@]), - [], enable_zlib=no) -AS_IF([test "x$enable_zlib" != "xno"], [ +AC_ARG_WITH([zlib], + AS_HELP_STRING([--with-zlib], [handle gzipped modules @<:@default=disabled@:>@]), + [], [with_zlib=no]) +AS_IF([test "x$with_zlib" != "xno"], [ PKG_CHECK_MODULES([zlib], [zlib]) AC_DEFINE([ENABLE_ZLIB], [1], [Enable zlib for modules.]) ], [ @@ -139,6 +139,6 @@ AC_MSG_RESULT([ tools: ${enable_tools} logging: ${enable_logging} - zlib: ${enable_zlib} + zlib: ${with_zlib} debug: ${enable_debug} ])