configure.ac (b0374c35) configure.ac (05ab2edc)
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

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

113],,)
114AC_ARG_WITH(afms,
115[ --without-afms Removes bitmap font files from Apache Openoffice
116 installation set, for people building for specific
117 distributions where AFM files or TrueType Fonts
118 are known to be available.
119],,)
120AC_ARG_ENABLE(epm,
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

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

113],,)
114AC_ARG_WITH(afms,
115[ --without-afms Removes bitmap font files from Apache Openoffice
116 installation set, for people building for specific
117 distributions where AFM files or TrueType Fonts
118 are known to be available.
119],,)
120AC_ARG_ENABLE(epm,
121[ --disable-epm AOO includes self-packaging code, that requires
122 epm, however epm is useless for large scale
123 package building.
121[ --disable-epm AOO includes self-packaging code, that requires EPM.
124],,enable_epm="yes")
125AC_ARG_WITH(epm,
122],,enable_epm="yes")
123AC_ARG_WITH(epm,
126[ --with-epm Decides which epm to use. Default is to use
127 the one from the system if one is built. When
124[ --with-epm Decides which EPM to use. Default is to use
125 the one installed on the system if one is there. When
128 either this is not there or you say =internal
126 either this is not there or you say =internal
129 epm will be built.
127 EPM will be built.
130],,)
131AC_ARG_WITH(epm-url,
132[ --with-epm-url=<URL> Specify the location of downloadable epm source code. For example:
128],,)
129AC_ARG_WITH(epm-url,
130[ --with-epm-url=<URL> Specify the location of downloadable epm source code. For example:
133 https://sourceforge.net/projects/oooextras.mirror/files/epm-3.7.tar.gz
134 Version 3.7 or later is required. Note that epm is under GPL license.
131 https://github.com/jimjag/epm/archive/v5.0.0.tar.gz
132 Version 5.0.0 or later is required.
135],[ EPM_URL="$withval"
136])
137AC_ARG_WITH(package-format,
138[ --with-package-format specify package format(s) for AOO installsets.
139 Default is "normal" one of the OS/Distribution.
140
141 Usage: --with-package-format="foo bar"
142],,)

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

3414 EPM_URL=$with_epm_url
3415 AC_MSG_RESULT([epm will be downloaded and compiled in bootstrap])
3416 EPM=
3417 echo "EPM will be built."
3418 BUILD_EPM=YES
3419 BUILD_TYPE="$BUILD_TYPE EPM"
3420 else
3421 if test "$EPM" = "no" ; then
133],[ EPM_URL="$withval"
134])
135AC_ARG_WITH(package-format,
136[ --with-package-format specify package format(s) for AOO installsets.
137 Default is "normal" one of the OS/Distribution.
138
139 Usage: --with-package-format="foo bar"
140],,)

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

3412 EPM_URL=$with_epm_url
3413 AC_MSG_RESULT([epm will be downloaded and compiled in bootstrap])
3414 EPM=
3415 echo "EPM will be built."
3416 BUILD_EPM=YES
3417 BUILD_TYPE="$BUILD_TYPE EPM"
3418 else
3419 if test "$EPM" = "no" ; then
3422 AC_MSG_ERROR([no. Install ESP Package Manager (https://www.msweet.org/epm/) and/or specify the path to the right epm (--with-epm). Or specify an URL to an epm-3.7 source package (--with-epm-url); run configure with the --help option for a list of possible URLs.])
3423 else
3424 # Gentoo has some epm which is something different...
3425 AC_MSG_CHECKING([whether the found epm is the right epm])
3426 if $EPM | $GREP "ESP Package Manager" >/dev/null 2>/dev/null; then
3420 AC_MSG_ERROR([no. Install ESP Package Manager (EPM) (https://jimjag.github.io/epm/) and/or specify the path to the right epm (--with-epm). Or specify an URL to an epm-5.0.0 (or later) source package (--with-epm-url); run configure with the --help option for a list of possible URLs.])
3421 else
3422 # Gentoo has some epm which is something different...
3423 AC_MSG_CHECKING([whether the found EPM is the right EPM])
3424 if $EPM --version | $GREP "ESP Package Manager" >/dev/null 2>/dev/null; then
3427 AC_MSG_RESULT([yes])
3428 else
3425 AC_MSG_RESULT([yes])
3426 else
3429 AC_MSG_ERROR([no. Install ESP Package Manager (https://www.msweet.org/epm/) and/or specify the path to the right epm (--with-epm). Or specify an URL to an epm-3.7 source package (--with-epm-url); run configure with the --help option for a list of possible URLs.])
3427 AC_MSG_ERROR([no. Install ESP Package Manager (https://jimjag.github.io/epm/) and/or specify the path to the right epm (--with-epm). Or specify an URL to an epm-5.0.0 (or later) source package (--with-epm-url); run configure with the --help option for a list of possible URLs.])
3430 fi
3428 fi
3431 AC_MSG_CHECKING([epm version])
3432 EPM_VERSION=`$EPM | $GREP 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//`
3433 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -gt "3" || \
3434 test "`echo $EPM_VERSION | cut -d'.' -f1`" -eq "3" -a "`echo $EPM_VERSION | cut -d'.' -f2`" -ge "7"; then
3435 AC_MSG_RESULT([OK, >= 3.7])
3429 AC_MSG_CHECKING([EPM version])
3430 EPM_VERSION=`$EPM --version | $GREP 'ESP Package Manager' | cut -d' ' -f5 | $SED -e s/v//`
3431 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -ge "5"; then
3432 AC_MSG_RESULT([OK, >= 5.0])
3436 BUILD_EPM=NO
3433 BUILD_EPM=NO
3437 if test "$_os" = "Darwin"; then
3438 _osxpkgbuild='no'
3439 AC_MSG_CHECKING([checking if OS X pkgbuild is supported])
3440 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -gt "4" || \
3441 test "`echo $EPM_VERSION | cut -d'.' -f1`" -eq "4" -a "`echo $EPM_VERSION | cut -d'.' -f2`" -ge "3"; then
3442 AC_MSG_RESULT([OK, >= 4.3])
3443 _osxpkgbuild='yes'
3444 else
3445 AC_MSG_CHECKING([which PackageMaker EPM thinks to use])
3446 _pm=`strings $EPM | $GREP PackageMaker | cut -d" " -f1`
3447 if test "$_pm" = "/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker"; then
3448 AC_MSG_ERROR([$_pm; PackageMaker expected in wrong path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker)])
3449 elif test "$_pm" = "/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"; then
3450 AC_MSG_RESULT([$_pm, ok])
3451 else # we never should get here, but go safe
3452 AC_MSG_ERROR([$_pm; PackageMaker expected in unknown path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker)])
3453 fi
3454 fi
3455 fi
3456 else
3457 AC_MSG_ERROR([too old. epm >= 3.7 is required.])
3458 fi
3459 fi
3434 else
3435 AC_MSG_ERROR([too old. EPM >= 5.0.0 is required.])
3436 fi
3437 fi
3460 fi
3461 fi
3462
3463 # test which package format to use
3464 AC_MSG_CHECKING([which package format to use])
3465
3466 # defaults
3467 case "$_os" in

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

3572 else
3573 AC_MSG_RESULT([ok])
3574 fi
3575 fi
3576 else
3577 AC_MSG_ERROR([PackageMaker needed to build OSX packages and you are not on OSX...])
3578 fi
3579 fi
3438 fi
3439 fi
3440
3441 # test which package format to use
3442 AC_MSG_CHECKING([which package format to use])
3443
3444 # defaults
3445 case "$_os" in

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

3550 else
3551 AC_MSG_RESULT([ok])
3552 fi
3553 fi
3554 else
3555 AC_MSG_ERROR([PackageMaker needed to build OSX packages and you are not on OSX...])
3556 fi
3557 fi
3580 if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
3581 echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
3582 if test "$EPM" != "no" && test "$EPM" != "internal"; then
3583 AC_MSG_CHECKING([whether epm is patched for AOOs needs])
3584 if $GREP "Patched for .*OpenOffice" $EPM >/dev/null 2>/dev/null; then
3585 AC_MSG_RESULT([yes])
3586 else
3587 AC_MSG_RESULT([no])
3588 if echo "$PKGFORMAT" | $GREP -q rpm; then
3589 _pt="rpm"
3590 AC_MSG_WARN([the rpms will need to be installed with --nodeps])
3591 echo "the rpms will need to be installed with --nodeps" >> warn
3592 else
3593 _pt="pkg"
3594 fi
3595 AC_MSG_WARN([the ${_pt}s will not be relocateable])
3596 echo "the ${_pt}s will not be relocatable" >> warn
3597 AC_MSG_WARN([if you want to make sure installation without --nodeps and
3598 relocation will work, you need to patch your epm with the
3599 patch in epm/epm-3.7.patch or build with
3600 --with-epm=internal which will build a suitable epm])
3601 fi
3602 fi
3603 fi
3604 if echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
3605 AC_PATH_PROG(PKGMK, pkgmk, no)
3606 if test "$PKGMK" = "no"; then
3607 AC_MSG_ERROR([pkgmk needed for Solaris pkg creation. Install it.])
3608 fi
3609 fi
3610 AC_SUBST(RPM)
3611 AC_SUBST(DPKG)

--- 3914 unchanged lines hidden ---
3558 if echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
3559 AC_PATH_PROG(PKGMK, pkgmk, no)
3560 if test "$PKGMK" = "no"; then
3561 AC_MSG_ERROR([pkgmk needed for Solaris pkg creation. Install it.])
3562 fi
3563 fi
3564 AC_SUBST(RPM)
3565 AC_SUBST(DPKG)

--- 3914 unchanged lines hidden ---