From 0c7e9d608174b4c2d9fa0a50dd2b011e19cfa7a2 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 03 Mar 2014 14:09:36 -0500 Subject: configure.ac: Make opkbuild-helpers optional. --- diff --git a/configure.ac b/configure.ac index 57af8a2..8a55037 100644 --- a/configure.ac +++ b/configure.ac @@ -74,7 +74,15 @@ AC_ARG_WITH( [AS_HELP_STRING([--with-opkbuild-helpers=PATH], [specify directory to install opkbuild helper script])], [ - helperdir="${withval}" + case "${withval}" in + 'yes'|'') + helperdir='$(datadir)/opkbuild/helpers' + ;; + 'no') + helperdir='' + ;; + *) + helperdir="${withval}" ], [ helperdir='$(datadir)/opkbuild/helpers' @@ -84,5 +92,6 @@ AC_ARG_WITH( AC_SUBST([SH]) AC_SUBST([multiarch_libdir]) AC_SUBST([helperdir]) +AM_CONDITIONAL([HELPER], [test "x${helperdir}" != 'x']) AC_CONFIG_FILES([Makefile]) AC_OUTPUT() -- cgit v0.9.1