aboutsummaryrefslogtreecommitdiff
path: root/opcodes/configure.in
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2000-07-29 00:33:34 +0000
committerBen Elliston <bje@au.ibm.com>2000-07-29 00:33:34 +0000
commit6e31aea3cd1292515d94f42d6b62e6313fff9269 (patch)
treefa1e3e71416919e286450fccc799a4599033cd1b /opcodes/configure.in
parent915ef37f63e7e7445871088ce1461d3ada44e466 (diff)
downloadfsf-binutils-gdb-6e31aea3cd1292515d94f42d6b62e6313fff9269.zip
fsf-binutils-gdb-6e31aea3cd1292515d94f42d6b62e6313fff9269.tar.gz
fsf-binutils-gdb-6e31aea3cd1292515d94f42d6b62e6313fff9269.tar.bz2
2000-07-28 Ben Elliston <bje@redhat.com>
* Makefile.am (CGEN, CGENDEPS, CGENDIR, CGENFLAGS): New. (run-cgen, stamp-m32r, stamp-fr30): New targets. * Makefile.in: Regenerate. * configure.in: Add --enable-cgen-maint option. * configure: Regenerate.
Diffstat (limited to 'opcodes/configure.in')
-rw-r--r--opcodes/configure.in18
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