configure.ac (828da808) | configure.ac (44a214f4) |
---|---|
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 --- 104 unchanged lines hidden (view full) --- 113 package building. 114],,enable_epm="yes") 115AC_ARG_WITH(epm, 116[ --with-epm Decides which epm to use. Default is to use 117 the one from the system if one is built. When 118 either this is not there or you say =internal 119 epm will be built. 120],,) | 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 --- 104 unchanged lines hidden (view full) --- 113 package building. 114],,enable_epm="yes") 115AC_ARG_WITH(epm, 116[ --with-epm Decides which epm to use. Default is to use 117 the one from the system if one is built. When 118 either this is not there or you say =internal 119 epm will be built. 120],,) |
121AC_ARG_WITH(epm-url, 122[ --with-epm-url=<URL> Specify the location of downloadable epm 3.7 source code. For example: 123 http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz 124 Note that epm is under GPL license.], 125[ EPM_URL="$withval" 126]) |
|
121AC_ARG_WITH(package-format, 122[ --with-package-format specify package format(s) for OOo installsets. 123 Default is "normal" one of the OS/Distribution. 124 125 Usage: --with-package-format="foo bar" 126],,) 127AC_ARG_ENABLE(odk, 128[ --disable-odk OO.o includes an ODK, office development kit --- 1134 unchanged lines hidden (view full) --- 1263 1264 enable_mozilla="no" 1265 enable_nss_module="no" 1266 enable_gstreamer="no" 1267 with_myspell_dicts="no" 1268 1269 DISABLE_SAXON="TRUE" 1270 | 127AC_ARG_WITH(package-format, 128[ --with-package-format specify package format(s) for OOo installsets. 129 Default is "normal" one of the OS/Distribution. 130 131 Usage: --with-package-format="foo bar" 132],,) 133AC_ARG_ENABLE(odk, 134[ --disable-odk OO.o includes an ODK, office development kit --- 1134 unchanged lines hidden (view full) --- 1269 1270 enable_mozilla="no" 1271 enable_nss_module="no" 1272 enable_gstreamer="no" 1273 with_myspell_dicts="no" 1274 1275 DISABLE_SAXON="TRUE" 1276 |
1271 BUILD_EPM="NO" 1272 | |
1273 AC_MSG_RESULT([yes]) 1274 1275else 1276 1277 DISABLE_SAXON= 1278 1279 AC_MSG_RESULT([no]) 1280 1281fi 1282AC_SUBST(DISABLE_SAXON) | 1277 AC_MSG_RESULT([yes]) 1278 1279else 1280 1281 DISABLE_SAXON= 1282 1283 AC_MSG_RESULT([no]) 1284 1285fi 1286AC_SUBST(DISABLE_SAXON) |
1283AC_SUBST(BUILD_EPM) | |
1284 1285 1286AC_MSG_CHECKING([whether to enable native CUPS support]) 1287if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then 1288 ENABLE_CUPS="TRUE" 1289 AC_MSG_RESULT([yes]) 1290else 1291 ENABLE_CUPS="" --- 2030 unchanged lines hidden (view full) --- 3322 dnl Check for epm - not needed for windows 3323 dnl =================================================================== 3324 if test "$_os" != "WINNT"; then 3325 if test -n "$with_epm"; then 3326 EPM=$with_epm 3327 else 3328 AC_PATH_PROG(EPM, epm, no) 3329 fi | 1287 1288 1289AC_MSG_CHECKING([whether to enable native CUPS support]) 1290if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then 1291 ENABLE_CUPS="TRUE" 1292 AC_MSG_RESULT([yes]) 1293else 1294 ENABLE_CUPS="" --- 2030 unchanged lines hidden (view full) --- 3325 dnl Check for epm - not needed for windows 3326 dnl =================================================================== 3327 if test "$_os" != "WINNT"; then 3328 if test -n "$with_epm"; then 3329 EPM=$with_epm 3330 else 3331 AC_PATH_PROG(EPM, epm, no) 3332 fi |
3330 if test "$EPM" = "no" || test "$EPM" = "internal"; then | 3333 3334 if test "$EPM" = "no" && test -n "$with_epm_url" ; then 3335 # At this moment we can not verify the URL or the content that we want to download. 3336 # Neither can we apply the test below for ruling out that it is the SunStudio dmake. 3337 EPM_URL=$with_epm_url 3338 AC_MSG_RESULT([epm will be downloaded and compiled in bootstrap]) 3339 EPM= |
3331 echo "EPM will be built." 3332 BUILD_EPM=YES 3333 BUILD_TYPE="$BUILD_TYPE EPM" 3334 else | 3340 echo "EPM will be built." 3341 BUILD_EPM=YES 3342 BUILD_TYPE="$BUILD_TYPE EPM" 3343 else |
3335 # Gentoo has some epm which is something different... 3336 AC_MSG_CHECKING([whether the found epm is the right epm]) 3337 if $EPM | grep "ESP Package Manager" >/dev/null 2>/dev/null; then 3338 AC_MSG_RESULT([yes]) 3339 else 3340 AC_MSG_ERROR([no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm]) 3341 fi 3342 AC_MSG_CHECKING([epm version]) 3343 EPM_VERSION=`$EPM | grep 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//` 3344 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -gt "3" || \ 3345 test "`echo $EPM_VERSION | cut -d'.' -f1`" -eq "3" -a "`echo $EPM_VERSION | cut -d'.' -f2`" -ge "7"; then 3346 AC_MSG_RESULT([OK, >= 3.7]) 3347 BUILD_EPM=NO 3348 if test "$_os" = "Darwin"; then 3349 AC_MSG_CHECKING([which PackageMaker EPM thinks to use]) 3350 _pm=`strings $EPM | grep PackageMaker | cut -d" " -f1` 3351 if test "$_pm" = "/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker"; then 3352 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) or use internal patched epm (--with-epm=internal)]) 3353 elif test "$_pm" = "/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"; then 3354 AC_MSG_RESULT([$_pm, ok]) 3355 else # we never should get here, but go safe 3356 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) or use internal patched epm (--with-epm=internal)]) 3357 fi 3358 fi | 3344 if test "$EPM" = "no" ; then 3345 AC_MSG_ERROR([no. Install ESP Package Manager (www.easysw.com/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)]) |
3359 else | 3346 else |
3360 AC_MSG_RESULT([too old. epm >= 3.7 is required.]) 3361 echo "EPM will be built." 3362 BUILD_EPM=YES 3363 BUILD_TYPE="$BUILD_TYPE EPM" 3364 fi | 3347 # Gentoo has some epm which is something different... 3348 AC_MSG_CHECKING([whether the found epm is the right epm]) 3349 if $EPM | grep "ESP Package Manager" >/dev/null 2>/dev/null; then 3350 AC_MSG_RESULT([yes]) 3351 else 3352 AC_MSG_ERROR([no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm]) 3353 fi 3354 AC_MSG_CHECKING([epm version]) 3355 EPM_VERSION=`$EPM | grep 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//` 3356 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -gt "3" || \ 3357 test "`echo $EPM_VERSION | cut -d'.' -f1`" -eq "3" -a "`echo $EPM_VERSION | cut -d'.' -f2`" -ge "7"; then 3358 AC_MSG_RESULT([OK, >= 3.7]) 3359 BUILD_EPM=NO 3360 if test "$_os" = "Darwin"; then 3361 AC_MSG_CHECKING([which PackageMaker EPM thinks to use]) 3362 _pm=`strings $EPM | grep PackageMaker | cut -d" " -f1` 3363 if test "$_pm" = "/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker"; then 3364 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)]) 3365 elif test "$_pm" = "/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"; then 3366 AC_MSG_RESULT([$_pm, ok]) 3367 else # we never should get here, but go safe 3368 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)]) 3369 fi 3370 fi 3371 else 3372 AC_MSG_ERROR([too old. epm >= 3.7 is required.]) 3373 fi 3374 fi |
3365 fi 3366 fi 3367 3368 # test which package format to use 3369 AC_MSG_CHECKING([which package format to use]) 3370 3371 # defaults 3372 case "$_os" in --- 130 unchanged lines hidden (view full) --- 3503 fi 3504 fi 3505 if echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then 3506 AC_PATH_PROG(PKGMK, pkgmk, no) 3507 if test "$PKGMK" = "no"; then 3508 AC_MSG_ERROR([pkgmk needed for Solaris pkg creation. Install it.]) 3509 fi 3510 fi | 3375 fi 3376 fi 3377 3378 # test which package format to use 3379 AC_MSG_CHECKING([which package format to use]) 3380 3381 # defaults 3382 case "$_os" in --- 130 unchanged lines hidden (view full) --- 3513 fi 3514 fi 3515 if echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then 3516 AC_PATH_PROG(PKGMK, pkgmk, no) 3517 if test "$PKGMK" = "no"; then 3518 AC_MSG_ERROR([pkgmk needed for Solaris pkg creation. Install it.]) 3519 fi 3520 fi |
3511 AC_SUBST(BUILD_EPM) | |
3512 AC_SUBST(RPM) 3513 AC_SUBST(DPKG) 3514 AC_SUBST(PKGMK) 3515else 3516 AC_MSG_RESULT([no]) | 3521 AC_SUBST(RPM) 3522 AC_SUBST(DPKG) 3523 AC_SUBST(PKGMK) 3524else 3525 AC_MSG_RESULT([no]) |
3526 BUILD_EPM=NO |
|
3517 EPM=NO 3518 PKGFORMAT=native 3519fi | 3527 EPM=NO 3528 PKGFORMAT=native 3529fi |
3530AC_SUBST(BUILD_EPM) 3531AC_SUBST(EPM_URL) |
|
3520AC_SUBST(EPM) 3521AC_SUBST(PKGFORMAT) 3522 3523dnl =================================================================== 3524dnl Check for gperf 3525dnl =================================================================== 3526AC_PATH_PROG(GPERF, gperf) 3527if test -z "$with_gperf"; then --- 3732 unchanged lines hidden --- | 3532AC_SUBST(EPM) 3533AC_SUBST(PKGFORMAT) 3534 3535dnl =================================================================== 3536dnl Check for gperf 3537dnl =================================================================== 3538AC_PATH_PROG(GPERF, gperf) 3539if test -z "$with_gperf"; then --- 3732 unchanged lines hidden --- |