summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-06-11 21:34:33 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-06-11 21:34:33 +0000
commit7eb55f2738c779fb51d01ec580cee7e4b688f759 (patch)
tree6eba3a363e22fc91134a6d7dbffc5ec7f05eb4d2 /m4
parent7b24a05308b7b7c04d3bb82dad3a61bc066331a4 (diff)
downloadclasspath-7eb55f2738c779fb51d01ec580cee7e4b688f759.tar.gz
Forwardport native-only build fix #02.
2008-06-01 Andrew John Hughes <gnu_andrew@member.fsf.org> * Makefile.am: Replace tools with $(TOOLSDIR). * m4/acinclude.m4: Include option to disable building the tools.
Diffstat (limited to 'm4')
-rw-r--r--m4/acinclude.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/acinclude.m4 b/m4/acinclude.m4
index 476a03467..1161f524c 100644
--- a/m4/acinclude.m4
+++ b/m4/acinclude.m4
@@ -115,6 +115,19 @@ dnl We disable ZIP by default if we find fastjar.
EXAMPLESDIR=""
fi
AC_SUBST(EXAMPLESDIR)
+
+ AC_ARG_ENABLE([tools],
+ [AS_HELP_STRING(--enable-tools,enable build of the tools [default=yes])],
+ [case "${enableval}" in
+ yes) TOOLSDIR="tools" ;;
+ no) TOOLSDIR="" ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-tools) ;;
+ esac],
+ [TOOLSDIR="tools"])
+ if test "x${use_zip}" = xno && test "x${install_class_files}" = xno; then
+ TOOLSDIR=""
+ fi
+ AC_SUBST(TOOLSDIR)
])
dnl -----------------------------------------------------------