diff options
Diffstat (limited to 'opcodes/configure.in')
-rw-r--r-- | opcodes/configure.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/opcodes/configure.in b/opcodes/configure.in index fdd8b37..e955a8b 100644 --- a/opcodes/configure.in +++ b/opcodes/configure.in @@ -88,6 +88,24 @@ AC_PROG_INSTALL AC_CHECK_HEADERS(string.h strings.h stdlib.h) +cgen_maint=no +cgendir='$(srcdir)/../cgen' + +AC_ARG_ENABLE(cgen-maint, +[ --enable-cgen-maint[=dir] build cgen generated files], +[case "${enableval}" in + yes) cgen_maint=yes ;; + no) cgen_maint=no ;; + *) + # argument is cgen install directory (not implemented yet). + # Having a `share' directory might be more appropriate for the .scm, + # .cpu, etc. files. + cgen_maint=yes + cgendir=${cgen_maint}/lib/cgen + ;; +esac])dnl +AM_CONDITIONAL(CGEN_MAINT, test x${cgen_maint} = xyes) +AC_SUBST(cgendir) using_cgen=no |