From 52e59203144ddb2864316f14695d5207d2f8de3e Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 18 Jun 2019 01:42:55 -0400 Subject: configure.ac, config.sh.in: Find gzip --- diff --git a/NEWS b/NEWS index 623d774..790944e 100644 --- a/NEWS +++ b/NEWS @@ -38,7 +38,7 @@ libopkbuild: Build system: * configure now checks for fakeroot, touch (preferably with the "-h" - option), and tar (with the "-T" and "--no-recursion" options). + option), tar (with the "-T" and "--no-recursion" options), and gzip. Documentation: diff --git a/config.sh.in b/config.sh.in index 6ef78ca..7e9ebe5 100644 --- a/config.sh.in +++ b/config.sh.in @@ -4,4 +4,5 @@ FAKEROOT='@FAKEROOT@' OPKG='@OPKG@' TOUCH='@TOUCH@' TAR='@TAR@' +GZIP='@GZIP@' HAVE_TOUCH_NODEREF='@HAVE_TOUCH_NODEREF@' diff --git a/configure.ac b/configure.ac index e6c83cd..9b55cf2 100644 --- a/configure.ac +++ b/configure.ac @@ -196,6 +196,32 @@ else fi AC_ARG_WITH( + [gzip], + [AS_HELP_STRING([--with-gzip=PATH], [path to gzip utility])], + [ + case "${withval}" in + 'yes'|'') + AC_MSG_ERROR( + [--with-gzip requires an argument]) + ;; + 'no') + AC_MSG_ERROR([gzip is required]) + ;; + *) + GZIP="${withval}" + AC_SUBST([GZIP]) + ;; + esac + ], + [ + AC_PATH_PROG([GZIP], [gzip]) + if test -z "${GZIP}"; then + AC_MSG_ERROR([gzip not found]) + fi + ] +) + +AC_ARG_WITH( [metadata], [AS_HELP_STRING([--with-metadata=SYSTEM], [use SYSTEM metadata plugin @<:@default: proteanos@:>@])], -- cgit v0.9.1