view configure.ac @ 3:1ecd7fe24740

Fix installation into DESTDIR, remove unused VV_FIND_NETBEANS (the netbeans binary is not needed for the build). 2010-08-26 Matthias Klose <doko@ubuntu.com> * Makefile.am (install-exec-local): Honor DESTDIR. * acinclude.a4: Remove VV_FIND_NETBEANS check. * configure.ac: Don't call VV_FIND_NETBEANS.
author doko@ubuntu.com
date Thu, 26 Aug 2010 18:25:49 +0200
parents 7562d9776311
children eb52a28e265d
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 visualvm.desktop])

# 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_SET_ARCH_SETTINGS
VV_WITH_NETBEANS_PROFILER_ZIP
VV_WITH_VISUALVM_ZIP

AC_OUTPUT