view configure.ac @ 0:ceec3a6ce732

Initial import of VisualVM build machinery and changes to make it work independently of IcedTea. 2010-06-22 Andrew John Hughes <ahughes@redhat.com> * .hgignore, * COPYING, * Makefile.am, * acinclude.m4, * autogen.sh, * configure.ac: Initial import of VisualVM build machinery from IcedTea6&7 and changes to make it work independently.
author Andrew John Hughes <ahughes@redhat.com>
date Tue, 22 Jun 2010 23:07:25 +0100
parents
children 331abb57831c
line wrap: on
line source

AC_INIT([visualvm], [1.2.2], [distro-pkg-dev@openjdk.java.net])
AM_INIT_AUTOMAKE([1.9 tar-pax foreign])
AC_CONFIG_FILES([Makefile])

# Older automake doesn't generate these correctly
abs_top_builddir=`pwd -P`
AC_SUBST(abs_top_builddir)
abs_top_srcdir=`dirname $0`
cd $abs_top_srcdir
abs_top_srcdir=`pwd`
cd $abs_top_builddir
AC_SUBST(abs_top_srcdir)

AC_PROG_CC

AC_MSG_CHECKING([for a NetBeans installation])
AC_ARG_WITH([netbeans-home],
           [AS_HELP_STRING([--with-netbeans-home],
                            [NetBeans home directory (default is /usr/share/netbeans)])],
            [
              if test "x${withval}" = x
              then
                SYSTEM_NETBEANS_DIR=/usr/share/netbeans
              else
                SYSTEM_NETBEANS_DIR=${withval}
              fi
            ],
            [
              SYSTEM_NETBEANS_DIR=/usr/share/netbeans
            ])
AC_MSG_RESULT([${SYSTEM_NETBEANS_DIR}])
AC_SUBST(SYSTEM_NETBEANS_DIR)

IT_CHECK_FOR_JDK
IT_FIND_TOOL([ANT], [ant])
IT_FIND_TOOL([SHA256SUM], [sha256sum])
IT_FIND_TOOL([WGET], [wget])
IT_FIND_TOOL([TAR], [tar])

VV_WITH_NETBEANS_PROFILER_ZIP
VV_WITH_VISUALVM_ZIP
VV_FIND_NETBEANS

AC_OUTPUT