Mercurial > hg > brandweg
view m4/acinclude.m4 @ 0:ee9668fe7b4a
Initial commit to build Classpath+JAXWS.
author | gnu_andrew@member.fsf.org |
---|---|
date | Tue, 08 Jan 2008 23:06:23 +0000 |
parents | |
children | 3442db5e9533 |
line wrap: on
line source
AC_DEFUN([WITH_OPENJDK_SRC_ZIP], [ AC_MSG_CHECKING(openjdk source zip) AC_ARG_WITH([openjdk-src-zip], [AS_HELP_STRING(--with-openjdk-src-zip,specify the location of the openjdk source zip)], [ OPENJDK_SRC_ZIP=${withval} AM_CONDITIONAL(USE_OPENJDK_SRC_ZIP, test x = x) ], [ OPENJDK_SRC_ZIP="not specified" AM_CONDITIONAL(USE_OPENJDK_SRC_ZIP, test x != x) ]) AC_MSG_RESULT(${OPENJDK_SRC_ZIP}) AC_SUBST(OPENJDK_SRC_ZIP) ]) AC_DEFUN([WITH_CLASSPATH_SRC_ZIP], [ AC_MSG_CHECKING(classpath source zip) AC_ARG_WITH([classpath-src-zip], [AS_HELP_STRING(--with-classpath-src-zip,specify the location of the classpath source zip)], [ CLASSPATH_SRC_ZIP=${withval} AM_CONDITIONAL(USE_CLASSPATH_SRC_ZIP, test x = x) ], [ CLASSPATH_SRC_ZIP="not specified" AM_CONDITIONAL(USE_CLASSPATH_SRC_ZIP, test x != x) ]) AC_MSG_RESULT(${CLASSPATH_SRC_ZIP}) AC_SUBST(CLASSPATH_SRC_ZIP) ]) AC_DEFUN([FIND_TOOL], [AC_PATH_TOOL([$1],[$2]) if test x"$$1" = x ; then AC_MSG_ERROR([$2 program not found in PATH]) fi AC_SUBST([$1]) ]) AC_DEFUN([GET_CLASSPATH], [if ! test -d classpath ; then AC_MSG_NOTICE([Checking out Classpath sources]) ${CVS} -q -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/classpath \ co classpath &> /dev/null cd classpath ./autogen.sh &> /dev/null cd .. fi ]) AC_DEFUN([GET_JAXWS], [if ! test -d jaxws ; then AC_MSG_NOTICE([Checking out JAXWS sources]) ${HG} clone http://hg.openjdk.java.net/jdk7/jdk7/jaxws &> /dev/null fi ]) AC_DEFUN([INSTALL_JAXWS], [if ! test -d classpath/external/jaxws ; then AC_MSG_NOTICE([Installing JAXWS in external]) mkdir classpath/external/jaxws mv jaxws/src/share/classes/com jaxws/src/share/classes/javax classpath/external/jaxws mv jaxws/src/share/classes/META-INF/* classpath/resource/META-INF mv classpath/external/jaxws/com/sun/tools/etc/META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory classpath/resource/META-INF/services fi ]) AC_DEFUN([PATCH_CLASSPATH], [ AC_MSG_NOTICE([Patching Classpath]) cd classpath for p in ../patches/brandweg-jaxws-build.patch \ ../patches/brandweg-jaxws-dist.patch ; do AC_MSG_NOTICE([Checking $p]) if ${PATCH} -l -p0 --dry-run -s -t -f -F 0 < $p ; then AC_MSG_NOTICE([Applying $p]) ${PATCH} -l -p0 < $p fi done cd .. ])