diff options
author | P. J. McDermott <pjm@nac.net> | 2014-03-03 14:11:16 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2014-03-03 14:11:49 (EST) |
commit | 8a794101a874707910f8c9a6a4c5c93caf956d64 (patch) | |
tree | fa9d7022da98a71b2ccec851aea536963905c164 /configure.ac | |
parent | 0c7e9d608174b4c2d9fa0a50dd2b011e19cfa7a2 (diff) |
configure.ac: Make opkbuild-helpers required.
Also, fix a syntax error.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 8a55037..8f4c040 100644 --- a/configure.ac +++ b/configure.ac @@ -74,15 +74,19 @@ AC_ARG_WITH( [AS_HELP_STRING([--with-opkbuild-helpers=PATH], [specify directory to install opkbuild helper script])], [ + opt='opkbuild-helpers' case "${withval}" in 'yes'|'') - helperdir='$(datadir)/opkbuild/helpers' + AC_MSG_ERROR( + [--with-${opt} requires an argument]) ;; 'no') - helperdir='' + AC_MSG_ERROR([${opt} is required]) ;; *) helperdir="${withval}" + ;; + esac ], [ helperdir='$(datadir)/opkbuild/helpers' @@ -92,6 +96,5 @@ 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() |