configure.ac (d095d957) configure.ac (fb6b49d1)
1dnl /******************************************************************
2dnl * vi:set sw=3 ts=3 et:
3dnl *
4dnl * Name: configure.in
5dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland
6dnl * Date: $Date: 2008-09-08 07:38:40 $
7dnl *
8dnl * Desc: This file serves as input for the GNU autoconf package
9dnl * in order to create a configure script.
10dnl * In this stage configure just checks the pre-requisites
11dnl * necessary to build OpenOffice.org
12dnl *
13dnl *
14dnl ******************************************************************/
15AC_REVISION( $Revision: 1.290 $ )
16AC_PREREQ(2.50)
17AC_INIT()
18echo "$@" >config.parms
1dnl /******************************************************************
2dnl * vi:set sw=3 ts=3 et:
3dnl *
4dnl * Name: configure.in
5dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland
6dnl * Date: $Date: 2008-09-08 07:38:40 $
7dnl *
8dnl * Desc: This file serves as input for the GNU autoconf package
9dnl * in order to create a configure script.
10dnl * In this stage configure just checks the pre-requisites
11dnl * necessary to build OpenOffice.org
12dnl *
13dnl *
14dnl ******************************************************************/
15AC_REVISION( $Revision: 1.290 $ )
16AC_PREREQ(2.50)
17AC_INIT()
18echo "$@" >config.parms
19AC_ARG_WITH(dmake-path,
20[ --with-dmake-path=<PATH TO EXECUTABLE> Specify the location of dmake ],
21[ DMAKE_PATH="$withval"
22])
23AC_ARG_WITH(dmake-url,
24[ --with-dmake-url=<URL> Specify the location of downloadable dmake source code. For example:
25 http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2
26 Note that dmake is under GPL license.],
27[ DMAKE_URL="$withval"
28])
19AC_ARG_WITH(gnu-patch,
20[ --with-gnu-patch Specify location of GNU patch on Solaris or FreeBSD
21],,)
22AC_ARG_ENABLE(agg,
23[ --enable-agg Use internal agg
24],,)
25AC_ARG_WITH(gnu-cp,
26[ --with-gnu-cp Specify location of GNU cp on Solaris or FreeBSD

--- 1586 unchanged lines hidden (view full) ---

1613if test "$_make_longver" -ge "038100" ; then
1614 AC_MSG_RESULT([$GNUMAKE $_make_version])
1615else
1616 AC_MSG_ERROR([failed ($GNUMAKE version >= 3.81 needed])
1617fi
1618AC_SUBST(GNUMAKE)
1619
1620dnl ===================================================================
29AC_ARG_WITH(gnu-patch,
30[ --with-gnu-patch Specify location of GNU patch on Solaris or FreeBSD
31],,)
32AC_ARG_ENABLE(agg,
33[ --enable-agg Use internal agg
34],,)
35AC_ARG_WITH(gnu-cp,
36[ --with-gnu-cp Specify location of GNU cp on Solaris or FreeBSD

--- 1586 unchanged lines hidden (view full) ---

1623if test "$_make_longver" -ge "038100" ; then
1624 AC_MSG_RESULT([$GNUMAKE $_make_version])
1625else
1626 AC_MSG_ERROR([failed ($GNUMAKE version >= 3.81 needed])
1627fi
1628AC_SUBST(GNUMAKE)
1629
1630dnl ===================================================================
1631dnl Search for a pre-installed dmake
1632dnl ===================================================================
1633AC_MSG_CHECKING([for dmake])
1634AC_PATH_PROG(DMAKE, dmake, no)
1635if test "$DMAKE" != "no"; then
1636 AC_MSG_RESULT([using system dmake])
1637else
1638 # Did not find pre-installed dmake.
1639 # Is it at a nonstandard location provided by --with-dmake-path ?
1640 if test -n "$with_dmake_path" ; then
1641 AC_PATH_PROG(DMAKE, dmake, no, "$with_dmake_path")
1642 if test "$DMAKE" != "no"; then
1643 AC_MSG_RESULT([using user provided dmake])
1644 fi
1645 fi
1646fi
1647
1648DMAKE_URL=
1649if test "$DMAKE" = "no"; then
1650 AC_MSG_NOTICE([no system or user-provided dmake found])
1651 # Check if a URL was supplied from which we can download the source and compile it.
1652 if test -n "$with_dmake_url" ; then
1653 # At this moment we can not verify the URL or the content that we want to download.
1654 # Neither can we apply the test below for ruling out that it is the SunStudio dmake.
1655 DMAKE_URL=$with_dmake_url
1656 AC_MSG_RESULT([dmake will be downloaded and compiled in bootstrap])
1657 DMAKE=
1658 else
1659 AC_MSG_WARN([no URL for dmake source code specified, either.])
1660 BUILD_DMAKE=YES
1661 AC_MSG_WARN([dmake will be built from internal sources but these will be removed in the future"])
1662 fi
1663else
1664 AC_MSG_CHECKING([whether the found dmake is the right dmake])
1665 # we need to find out whether that dmake we found is "our" dmake
1666 # or the dmake from Sun's SunStudio Compiler which is something
1667 # different
1668 # This test _should_ work because the one accepts -V (ours) and one
1669 # (the other) not...
1670 $DMAKE -V 2>/dev/null | grep 'dmake .* Version .*' >/dev/null
1671 if test $? -eq 0; then
1672 BUILD_DMAKE=NO
1673 AC_MSG_RESULT([yes])
1674 AC_MSG_CHECKING([the dmake version])
1675 DMAKE_VERSION=`$DMAKE -V | $AWK '$3 == "Version" {print $4}'`
1676 if test "`echo $DMAKE_VERSION | cut -d'.' -f1`" -gt "4"; then
1677 AC_MSG_RESULT([OK, >= 4.11])
1678 elif test "`echo $DMAKE_VERSION | cut -d'.' -f1`" = "4" && \
1679 test "`echo $DMAKE_VERSION | cut -d'.' -f2`" -ge "11"; then
1680 AC_MSG_RESULT([OK, >= 4.11])
1681 else
1682 AC_MSG_ERROR([too old. >= 4.11 is needed])
1683 DMAKE=no
1684 fi
1685 else
1686 AC_MSG_WARN([no])
1687 DMAKE=no
1688 fi
1689fi
1690if test "$DMAKE" = "no"; then
1691 AC_MSG_ERROR([please use --with-dmake-path or --with-dmake-url to specify dmake executable or source])
1692fi
1693AC_SUBST(DMAKE_URL)
1694AC_SUBST(DMAKE)
1695
1696
1697dnl ===================================================================
1621dnl Search all the common names for GNU or BSD tar
1622dnl ===================================================================
1623AC_MSG_CHECKING([for GNU or BSD compatible tar])
1624for a in $GNUTAR gtar gnutar bsdtar tar; do
1625 $a --version 2> /dev/null | egrep "GNU|libarchive" 2>&1 > /dev/null
1626 if test $? -eq 0; then
1627 GNUTAR=$a
1628 break

--- 1590 unchanged lines hidden (view full) ---

3219dnl ===================================================================
3220dnl Checks for specific files.
3221dnl ===================================================================
3222
3223dnl ===================================================================
3224dnl Checks for programs.
3225dnl ===================================================================
3226
1698dnl Search all the common names for GNU or BSD tar
1699dnl ===================================================================
1700AC_MSG_CHECKING([for GNU or BSD compatible tar])
1701for a in $GNUTAR gtar gnutar bsdtar tar; do
1702 $a --version 2> /dev/null | egrep "GNU|libarchive" 2>&1 > /dev/null
1703 if test $? -eq 0; then
1704 GNUTAR=$a
1705 break

--- 1590 unchanged lines hidden (view full) ---

3296dnl ===================================================================
3297dnl Checks for specific files.
3298dnl ===================================================================
3299
3300dnl ===================================================================
3301dnl Checks for programs.
3302dnl ===================================================================
3303
3227dnl ===================================================================
3228dnl Check whether we already have dmake
3229dnl ===================================================================
3230AC_PATH_PROG(DMAKE, dmake, no)
3231if test "$DMAKE" = "no"; then
3232 BUILD_DMAKE=YES
3233 echo "dmake will be built on ./bootstrap"
3234else
3235 AC_MSG_CHECKING([whether the found dmake is the right dmake])
3236 # we need to find out whether that dmake we found is "our" dmake
3237 # or the dmake from Sun's SunStudio Compiler which is something
3238 # different
3239 # This test _should_ work because the one accepts -V (ours) and one
3240 # (the other) not...
3241 $DMAKE -V 2>/dev/null | grep 'dmake .* Version .*' >/dev/null
3242 if test $? -eq 0; then
3243 BUILD_DMAKE=NO
3244 AC_MSG_RESULT([yes])
3245 AC_MSG_CHECKING([the dmake version])
3246 DMAKE_VERSION=`$DMAKE -V | $AWK '$3 == "Version" {print $4}'`
3247 if test "`echo $DMAKE_VERSION | cut -d'.' -f1`" -gt "4"; then
3248 AC_MSG_RESULT([OK, >= 4.11])
3249 elif test "`echo $DMAKE_VERSION | cut -d'.' -f1`" = "4" && \
3250 test "`echo $DMAKE_VERSION | cut -d'.' -f2`" -ge "11"; then
3251 AC_MSG_RESULT([OK, >= 4.11])
3252 else
3253 AC_MSG_RESULT([too old. >= 4.11 is needed])
3254 echo "A newer dmake will be built on ./bootstrap"
3255 BUILD_DMAKE=YES
3256 fi
3257 else
3258 AC_MSG_RESULT([no])
3259 echo "dmake will be built on ./bootstrap"
3260 BUILD_DMAKE=YES
3261 fi
3262fi
3263AC_SUBST(BUILD_DMAKE)
3264
3265AC_MSG_CHECKING([whether to enable EPM for packing])
3266if test "$enable_epm" = "yes"; then
3267 AC_MSG_RESULT([yes])
3268 dnl ===================================================================
3269 dnl Check for epm - not needed for windows
3270 dnl ===================================================================
3271 if test "$_os" != "WINNT"; then
3272 if test -n "$with_epm"; then

--- 3909 unchanged lines hidden ---
3304AC_MSG_CHECKING([whether to enable EPM for packing])
3305if test "$enable_epm" = "yes"; then
3306 AC_MSG_RESULT([yes])
3307 dnl ===================================================================
3308 dnl Check for epm - not needed for windows
3309 dnl ===================================================================
3310 if test "$_os" != "WINNT"; then
3311 if test -n "$with_epm"; then

--- 3909 unchanged lines hidden ---