configure.ac (3edd2c3e) configure.ac (c4266413)
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
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
6dnl *
7dnl * Desc: This file serves as input for the GNU autoconf package
8dnl * in order to create a configure script.
9dnl * In this stage configure just checks the pre-requisites
11dnl * necessary to build OpenOffice.org
10dnl * necessary to build Apache OpenOffice
12dnl *
13dnl *
14dnl ******************************************************************/
15AC_REVISION( $Revision: 1.290 $ )
16AC_PREREQ(2.50)
17AC_INIT()
18echo "$@" >config.parms
19AC_ARG_WITH(dmake-path,

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

91AC_ARG_WITH(fonts,
92[ --without-fonts OOo includes some third-party fonts to provide a reliable
93 basis for help content, templates, samples, etc.
94 When these fonts are already known to be available on the
95 system then you should use this option.
96],,)
97AC_ARG_WITH(ppds,
98[ --without-ppds Removes Postscript Printer definition files from
11dnl *
12dnl *
13dnl ******************************************************************/
14AC_REVISION( $Revision: 1.290 $ )
15AC_PREREQ(2.50)
16AC_INIT()
17echo "$@" >config.parms
18AC_ARG_WITH(dmake-path,

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

90AC_ARG_WITH(fonts,
91[ --without-fonts OOo includes some third-party fonts to provide a reliable
92 basis for help content, templates, samples, etc.
93 When these fonts are already known to be available on the
94 system then you should use this option.
95],,)
96AC_ARG_WITH(ppds,
97[ --without-ppds Removes Postscript Printer definition files from
99 openoffice.org installation set, for people building
98 Apache Openoffice installation set, for people building
100 for specific distributions where PPDs are known to be
101 already available (every recent distro with CUPS
102 backend)
103],,)
104AC_ARG_WITH(afms,
99 for specific distributions where PPDs are known to be
100 already available (every recent distro with CUPS
101 backend)
102],,)
103AC_ARG_WITH(afms,
105[ --without-afms Removes bitmap font files from openoffice.org
104[ --without-afms Removes bitmap font files from Apache Openoffice
106 installation set, for people building for specific
107 distributions where AFM files or TrueType Fonts
108 are known to be available.
109],,)
110AC_ARG_ENABLE(epm,
111[ --disable-epm OO.o includes self-packaging code, that requires
112 epm, however epm is useless for large scale
113 package building.

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

693 the path pointing to the csc.exe.
694
695 Usage: --with-csc-path=<absolute path to csc.exe>
696],,)
697AC_ARG_WITH(nsis-path,
698[ --with-nsis-path For Windows users, please supply the path to the
699 "Nullsoft Scriptable Install System" (NSIS). If NSIS
700 is found in the path or this option is supplied a self
105 installation set, for people building for specific
106 distributions where AFM files or TrueType Fonts
107 are known to be available.
108],,)
109AC_ARG_ENABLE(epm,
110[ --disable-epm OO.o includes self-packaging code, that requires
111 epm, however epm is useless for large scale
112 package building.

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

692 the path pointing to the csc.exe.
693
694 Usage: --with-csc-path=<absolute path to csc.exe>
695],,)
696AC_ARG_WITH(nsis-path,
697[ --with-nsis-path For Windows users, please supply the path to the
698 "Nullsoft Scriptable Install System" (NSIS). If NSIS
699 is found in the path or this option is supplied a self
701 contained executable installer for OpenOffice.org will
702 be created.
700 contained executable installer for Apache OpenOffice
701 will be created.
703
704 Usage: --with-nsis-path=<absolute path to nsis.exe>
705],,)
706AC_ARG_WITH(frame-home,
707[ --with-frame-home For Microsoft C/C++ .NET compiler users, please supply
708 the path pointing to lib/mscoree.lib, usually
709 something like:
710 "/cygdrive/c/Program Files/Microsoft Visual Studio .NET/FrameworkSDK"

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

767 escape compiler flags that would otherwise prevent
768 caching of the result (currently used on Mac only)
769 NOTE: requires patched version because of a bug in
770 ccache (see issue 104567 for details and patch)
771 explicitly enable if your version of ccache does not
772 identify as version 2.4_OOo
773]],,enable_ccache_skip=auto)
774AC_ARG_WITH(lang,
702
703 Usage: --with-nsis-path=<absolute path to nsis.exe>
704],,)
705AC_ARG_WITH(frame-home,
706[ --with-frame-home For Microsoft C/C++ .NET compiler users, please supply
707 the path pointing to lib/mscoree.lib, usually
708 something like:
709 "/cygdrive/c/Program Files/Microsoft Visual Studio .NET/FrameworkSDK"

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

766 escape compiler flags that would otherwise prevent
767 caching of the result (currently used on Mac only)
768 NOTE: requires patched version because of a bug in
769 ccache (see issue 104567 for details and patch)
770 explicitly enable if your version of ccache does not
771 identify as version 2.4_OOo
772]],,enable_ccache_skip=auto)
773AC_ARG_WITH(lang,
775[ --with-lang Use this option to build OpenOffice.org with
774[ --with-lang Use this option to build Apache OpenOffice with
776 additional language support. English (US) is always
777 included by default. Separate multiple languages with
778 space. For all languages, use --with-lang=ALL.
779
780 Usage: --with-lang="es sw tu cs sk"
781],,)
782AC_ARG_WITH(poor-help-localizations,
783[ --with-poor-help-localizations
784 Use this option to specify which languages have
785 unusable help localizations. Separate multiple
786 languages with space.
787
788 Usage: --with-poor-help-localizations="af ar be-BY ca"
789],,)
790AC_ARG_WITH(dict,
775 additional language support. English (US) is always
776 included by default. Separate multiple languages with
777 space. For all languages, use --with-lang=ALL.
778
779 Usage: --with-lang="es sw tu cs sk"
780],,)
781AC_ARG_WITH(poor-help-localizations,
782[ --with-poor-help-localizations
783 Use this option to specify which languages have
784 unusable help localizations. Separate multiple
785 languages with space.
786
787 Usage: --with-poor-help-localizations="af ar be-BY ca"
788],,)
789AC_ARG_WITH(dict,
791[ --with-dict Use this option to build OpenOffice.org with
790[ --with-dict Use this option to build Apache OpenOffice with
792 dictionary support. ALL dictionaries are always
793 included by default unless overridden with
794 this option. Separate multiple dictionaries with
795 commas. For all dictionaries, use --with-dict=ALL.
796
797 Usage: --with-dict=ENGB,ENUS,ITIT
798],,)
799AC_ARG_WITH(intro-bitmaps,

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

894BUILD_TYPE="OOo"
895ADDITIONAL_REPOSITORIES="../ext_libraries"
896
897dnl ===================================================================
898dnl Message.
899dnl ===================================================================
900echo "********************************************************************"
901echo "* *"
791 dictionary support. ALL dictionaries are always
792 included by default unless overridden with
793 this option. Separate multiple dictionaries with
794 commas. For all dictionaries, use --with-dict=ALL.
795
796 Usage: --with-dict=ENGB,ENUS,ITIT
797],,)
798AC_ARG_WITH(intro-bitmaps,

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

893BUILD_TYPE="OOo"
894ADDITIONAL_REPOSITORIES="../ext_libraries"
895
896dnl ===================================================================
897dnl Message.
898dnl ===================================================================
899echo "********************************************************************"
900echo "* *"
902echo "* OpenOffice.org build configuration. *"
901echo "* Apache OpenOffice build configuration. *"
903echo "* *"
904echo "* The configure process checks your platform to see whether *"
902echo "* *"
903echo "* The configure process checks your platform to see whether *"
905echo "* you can build OpenOffice.org on it. *"
904echo "* you can build Apache OpenOffice on it. *"
906echo "* This process checks all pre-requisites and generates a file *"
907echo "* containing the necessary environment variables. *"
908echo "* Source this file after configure has ended successfully. *"
909echo "* *"
910echo "* Any warning that is generated during the configure process *"
911echo "* must be taken into account since it can be a reason for *"
905echo "* This process checks all pre-requisites and generates a file *"
906echo "* containing the necessary environment variables. *"
907echo "* Source this file after configure has ended successfully. *"
908echo "* *"
909echo "* Any warning that is generated during the configure process *"
910echo "* must be taken into account since it can be a reason for *"
912echo "* an unsuccessful build of OpenOffice.org *"
911echo "* an unsuccessful build of Apache OpenOffice. *"
913echo "* *"
914echo "********************************************************************"
915echo ""
916echo "********************************************************************"
917echo "* *"
918echo "* Checking the platform pre-requisites. *"
919echo "* *"
920echo "********************************************************************"

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

1036 AC_SUBST(GNUTAR)
1037
1038 dnl ===========================================================
1039 dnl check whether we're using solaris 6,7,8 - sparc or intel.
1040 dnl ===========================================================
1041 AC_MSG_CHECKING([the Solaris operating system release])
1042 _os_release=`echo $build_os | $SED -e s/solaris2\.//`
1043 if test "$_os_release" -lt "6"; then
912echo "* *"
913echo "********************************************************************"
914echo ""
915echo "********************************************************************"
916echo "* *"
917echo "* Checking the platform pre-requisites. *"
918echo "* *"
919echo "********************************************************************"

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

1035 AC_SUBST(GNUTAR)
1036
1037 dnl ===========================================================
1038 dnl check whether we're using solaris 6,7,8 - sparc or intel.
1039 dnl ===========================================================
1040 AC_MSG_CHECKING([the Solaris operating system release])
1041 _os_release=`echo $build_os | $SED -e s/solaris2\.//`
1042 if test "$_os_release" -lt "6"; then
1044 AC_MSG_ERROR([use solaris >= 6 to build OpenOffice.org])
1043 AC_MSG_ERROR([use solaris >= 6 to build Apache OpenOffice])
1045 else
1046 AC_MSG_RESULT([ok ($_os_release)])
1047 fi
1048
1049 dnl check whether we're using a sparc or i386 processor
1050 AC_MSG_CHECKING([the processor type])
1051 if test "$build_cpu" = "sparc" -o "$build_cpu" = "i386"; then
1052 AC_MSG_RESULT([ok ($build_cpu)])

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

1152 test_randr=no
1153 test_freetype=yes
1154 test_gstreamer=yes
1155 PTHREAD_LIBS=-pthread
1156 echo "AIX is an alpha port --- Use at own risk" >> warn
1157 _os=AIX
1158 ;;
1159 *)
1044 else
1045 AC_MSG_RESULT([ok ($_os_release)])
1046 fi
1047
1048 dnl check whether we're using a sparc or i386 processor
1049 AC_MSG_CHECKING([the processor type])
1050 if test "$build_cpu" = "sparc" -o "$build_cpu" = "i386"; then
1051 AC_MSG_RESULT([ok ($build_cpu)])

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

1151 test_randr=no
1152 test_freetype=yes
1153 test_gstreamer=yes
1154 PTHREAD_LIBS=-pthread
1155 echo "AIX is an alpha port --- Use at own risk" >> warn
1156 _os=AIX
1157 ;;
1158 *)
1160 AC_MSG_ERROR([$_os operating system is not suitable to build OpenOffice.org!])
1159 AC_MSG_ERROR([$_os operating system is not suitable to build Apache OpenOffice!])
1161 ;;
1162esac
1163
1164AC_SUBST(OSVERSION)
1165AC_SUBST(PTHREAD_CFLAGS)
1166AC_SUBST(PTHREAD_LIBS)
1167
1168

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

2328int
2329main (void)
2330{
2331 test (E4);
2332 test (E5);
2333 test (E0);
2334 return 0;
2335}
1160 ;;
1161esac
1162
1163AC_SUBST(OSVERSION)
1164AC_SUBST(PTHREAD_CFLAGS)
1165AC_SUBST(PTHREAD_LIBS)
1166
1167

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

2327int
2328main (void)
2329{
2330 test (E4);
2331 test (E5);
2332 test (E0);
2333 return 0;
2334}
2336],[AC_MSG_ERROR([your version of the GNU C++ compile has a bug which prevents OpenOffice.org from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details.])], [AC_MSG_RESULT([no])])
2335],[AC_MSG_ERROR([your version of the GNU C++ compile has a bug which prevents Apache OpenOffice from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details.])], [AC_MSG_RESULT([no])])
2337 fi
2338fi
2339
2340dnl ===================================================================
2341dnl Set the gcc/gxx include directories
2342dnl ===================================================================
2343# Removed the special FreeBSD treatment. The problem was that with_gxx_include_path
2344# often contains an i386 which is expanded as a macro. Solved in stlport.

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

3060#
3061# if test "$_jdk_ver" -lt 10500; then
3062# AC_MSG_ERROR([JDK is too old, you need at least BEA JDK 1.5.0])
3063# fi
3064#
3065# AC_MSG_RESULT([checked (BEA JDK $_jdk)])
3066#
3067# if test "$with_jdk_home" = ""; then
2336 fi
2337fi
2338
2339dnl ===================================================================
2340dnl Set the gcc/gxx include directories
2341dnl ===================================================================
2342# Removed the special FreeBSD treatment. The problem was that with_gxx_include_path
2343# often contains an i386 which is expanded as a macro. Solved in stlport.

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

3059#
3060# if test "$_jdk_ver" -lt 10500; then
3061# AC_MSG_ERROR([JDK is too old, you need at least BEA JDK 1.5.0])
3062# fi
3063#
3064# AC_MSG_RESULT([checked (BEA JDK $_jdk)])
3065#
3066# if test "$with_jdk_home" = ""; then
3068# AC_MSG_ERROR([In order to successfully build OpenOffice.org using the BEA JDK,
3067# AC_MSG_ERROR([In order to successfully build Apache OpenOffice using the BEA JDK,
3069#you must use the "--with-jdk-home" configure option explicitly])
3070# fi
3071#
3072# AC_MSG_WARN([A bug in certain BEA JREs can prevent you from successfully compiling some modules])
3073# echo "A bug in certain BEA JREs can prevent you from successfully compiling some modules" >>warn
3074#
3075# JAVA_HOME=$with_jdk_home
3076#

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

3083
3084 if test "$_jdk_ver" -lt 10500; then
3085 AC_MSG_ERROR([IBM JDK is too old, you need at least 1.5])
3086 fi
3087
3088 AC_MSG_RESULT([checked (IBM JDK $_jdk)])
3089
3090 if test "$with_jdk_home" = ""; then
3068#you must use the "--with-jdk-home" configure option explicitly])
3069# fi
3070#
3071# AC_MSG_WARN([A bug in certain BEA JREs can prevent you from successfully compiling some modules])
3072# echo "A bug in certain BEA JREs can prevent you from successfully compiling some modules" >>warn
3073#
3074# JAVA_HOME=$with_jdk_home
3075#

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

3082
3083 if test "$_jdk_ver" -lt 10500; then
3084 AC_MSG_ERROR([IBM JDK is too old, you need at least 1.5])
3085 fi
3086
3087 AC_MSG_RESULT([checked (IBM JDK $_jdk)])
3088
3089 if test "$with_jdk_home" = ""; then
3091 AC_MSG_ERROR([In order to successfully build OpenOffice.org using the IBM JDK,
3090 AC_MSG_ERROR([In order to successfully build Apache OpenOffice using the IBM JDK,
3092you must use the "--with-jdk-home" configure option explicitly])
3093 fi
3094
3095 JAVA_HOME=$with_jdk_home
3096
3097 else
3098 JDK=sun
3099

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

3579 AC_MSG_ERROR([PackageMaker needed to build OSX packages and you are not on OSX...])
3580 fi
3581 fi
3582 if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
3583 echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
3584 if test "$EPM" != "no" && test "$EPM" != "internal"; then
3585 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
3586 AC_MSG_CHECKING([whether epm is patched for OOos needs])
3091you must use the "--with-jdk-home" configure option explicitly])
3092 fi
3093
3094 JAVA_HOME=$with_jdk_home
3095
3096 else
3097 JDK=sun
3098

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

3578 AC_MSG_ERROR([PackageMaker needed to build OSX packages and you are not on OSX...])
3579 fi
3580 fi
3581 if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
3582 echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
3583 if test "$EPM" != "no" && test "$EPM" != "internal"; then
3584 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
3585 AC_MSG_CHECKING([whether epm is patched for OOos needs])
3587 if grep "Patched for OpenOffice.org" $EPM >/dev/null 2>/dev/null; then
3586 if grep "Patched for Apache OpenOffice" $EPM >/dev/null 2>/dev/null; then
3588 AC_MSG_RESULT([yes])
3589 else
3590 AC_MSG_RESULT([no])
3591 if echo "$PKGFORMAT" | grep -q rpm; then
3592 _pt="rpm"
3593 AC_MSG_WARN([the rpms will need to be installed with --nodeps])
3594 echo "the rpms will need to be installed with --nodeps" >> warn
3595 else

--- 3752 unchanged lines hidden ---
3587 AC_MSG_RESULT([yes])
3588 else
3589 AC_MSG_RESULT([no])
3590 if echo "$PKGFORMAT" | grep -q rpm; then
3591 _pt="rpm"
3592 AC_MSG_WARN([the rpms will need to be installed with --nodeps])
3593 echo "the rpms will need to be installed with --nodeps" >> warn
3594 else

--- 3752 unchanged lines hidden ---