* Makefile.in: Replace @MAINT@ with $(CGEN_MAINT).
authorDoug Evans <dje@google.com>
Sat, 2 May 1998 01:28:32 +0000 (01:28 +0000)
committerDoug Evans <dje@google.com>
Sat, 2 May 1998 01:28:32 +0000 (01:28 +0000)
(CGEN_MAINT): New variable.
* configure.in: Add support for --enable-cgen-maint.
* configure: Regenerate.

sim/m32r/configure.in

index 704da3d48f13aa7dba57f334f4ac4507080f1fca..0ed1268c18713945a63f805d22e48f83327337f9 100644 (file)
@@ -15,7 +15,17 @@ SIM_AC_OPTION_SCACHE(1024)
 SIM_AC_OPTION_DEFAULT_MODEL(m32r/d)
 SIM_AC_OPTION_ENVIRONMENT
 
-if test ${USE_MAINTAINER_MODE} = yes ; then
+cgen_maint="#"
+# Having --enable-maintainer-mode take arguments is another way to go.
+AC_ARG_ENABLE(cgen-maint,
+[  --enable-cgen-maint     build cgen generated files],
+[case "${enableval}" in
+  yes) cgen_maint="" ;;
+  no)  ;;
+  *)   AC_MSG_ERROR([bad value ${enableval} for simulator cgen-maint option]) ;;
+esac])dnl
+AC_SUBST(cgen_maint)
+if test "x${cgen_maint}" = x ; then
     AC_CHECK_PROG(SCHEME, guile, guile, guile)
 fi