summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 17 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e86bef6..23ebf8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,8 +2,8 @@ dnl Our package name, version, ...
AC_INIT([rc], [1.7.4])
dnl ... and release date
-RELDATE=`date +%Y-%m-%d`
-AC_DEFINE_UNQUOTED(RELDATE, "$RELDATE", [Release date])
+DESCRIPTION=$(git describe || echo '(git description unavailable)')
+AC_DEFINE_UNQUOTED(DESCRIPTION, "$DESCRIPTION", [Release date])
dnl Get things going...
AC_CONFIG_SRCDIR([rc.h])
@@ -25,6 +25,7 @@ esac
AC_SYS_LARGEFILE
AC_PROG_CPP
+AC_PROG_YACC
AC_CHECK_PROGS(LN, ln cp)
AC_CHECK_HEADERS(sys/resource.h sys/time.h sys/types.h unistd.h)
@@ -144,6 +145,19 @@ yes) AC_CACHE_CHECK(extant directories for default path, rc_cv_def_path,[
;;
esac
+
+AC_ARG_ENABLE(develop,
+ [ --enable-develop Include extra code for developers],[
+ case "$enableval" in
+ yes)
+ rc_develop=true
+ AC_DEFINE([RC_DEVELOP], 1, [Enable developer options]) ;;
+ no) ;;
+ *) AC_MSG_ERROR([bad value $enableval for --enable-develop]) ;;
+ esac])
+AM_CONDITIONAL(AMC_DEVELOP, test "$rc_develop" = true)
+
+
AC_ARG_WITH(history,
[ --with-history Build history subprograms],[
case "$withval" in
@@ -244,4 +258,5 @@ dnl AM_CONDITIONAL(AMC_READLINE, test "${with_readline+set}" = set)
dnl For some reason CPPFLAGS doesn't get propagated.
dnl AC_SUBST(CPPFLAGS)
+
AC_OUTPUT(Makefile)