Hi I want to build OpenOffice on Mac, But I encountered this error
checking if /usr/local/Cellar/ant/1.9.4/libexec/bin/ant works... configure: WARNING: Ant does not work - Some Java projects will not build! checking whether ant is >= 1.7.0... ./configure: line 22551: test: not /System/Library/Frameworks/JavaVM: integer expression expected configure: error: no, you need at least ant >= 1.7.0 My system is Mac 10.10.3. and I've installed ANT 1.9.4. and JDK. The complete output is shown in below. Best regards. aron-mac-almas:main aron$ ./configure --with-dmake-url= http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2 --with-epm-url=http://www.msweet.org/files/project2/epm-3.7-source.tar.gz --disable-build-mozilla --without-stlport --enable-verbose --enable-category-b --enable-wiki-publisher --with-ant-home=/usr/local/Cellar/ant/1.9.4 configure: WARNING: unrecognized options: --disable-build-mozilla checking whether configure is up-to-date... yes ******************************************************************** * * * Apache OpenOffice build configuration. * * * * The configure process checks your platform to see whether * * you can build Apache OpenOffice on it. * * This process checks all pre-requisites and generates a file * * containing the necessary environment variables. * * Source this file after configure has ended successfully. * * * * Warnings that are generated during the configure process * * must be taken into account since it can be a reason for * * an unsuccessful build of Apache OpenOffice. * * * ******************************************************************** ******************************************************************** * * * Checking the platform pre-requisites. * * * ******************************************************************** checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking for awk... /usr/bin/awk checking for sed... /usr/bin/sed checking for solenv environment... default checking for custom pack.lst... no checking build system type... x86_64-apple-darwin14.3.0 checking host system type... x86_64-apple-darwin14.3.0 checking target system type... x86_64-apple-darwin14.3.0 head: /etc/*-release: No such file or directory Darwin aron-mac-almas.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64 configure: WARNING: Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray checking for pkg-config... no checking whether to enable crashdump feature... no checking whether to turn warnings to errors... no checking whether to do a debug build... no checking whether to build with additional debug utilities... no, full product build checking whether to include symbols into final build... no checking whether to strip the solver or not.... yes checking whether to enable category B components... yes: allow modules nss, hunspell, hyphen, saxon, rhino, beanshell, graphite, coinmp to be built checking whether to enable the Online Update support... yes checking whether to enable unit tests... yes checking whether to enable native CUPS support... yes checking whether to enable fontconfig support... no checking whether to use RPATH in shared libraries... yes checking whether to use dicts from external paths... no checking for bash... /bin/bash checking gcc home... /usr checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 accepts -g... yes checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 option to accept ISO C89... none needed checking the GNU gcc compiler version... implicitly using CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 checking for -Bsymbolic-functions linker support ... not found checking whether to enable pch feature... no checking for GNU make... make checking the GNU make version... make 3.81 checking for dmake... configure: no system or user-provided dmake found dmake will be downloaded and compiled in bootstrap checking for GNU or compatible BSD tar... bsdtar checking for --hash-style=both linker support ... not found checking for perl... /usr/bin/perl checking the Perl version... checked (perl 5) checking for required Perl modules... all modules found checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -E checking for ANSI C header files... yes checking whether we are using the GNU C++ compiler... yes checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -std=c++11 accepts -g... yes checking how to run the C++ preprocessor... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -std=c++11 -E checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -E checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking size of long... 8 checking whether byte ordering is bigendian... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking cups/cups.h usability... yes checking cups/cups.h presence... yes checking for cups/cups.h... yes checking whether we are using the GNU C++ compiler... (cached) yes checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -std=c++11 accepts -g... (cached) yes checking the GNU C++ compiler version... checked (g++ 4.2.1) checking for g++ include path... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1 checking exception type... checking what the default STL should be... checking whether /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 supports -fvisibility=hidden... yes checking whether we are allowed and able to use --ccache-skip... probing... checking for ccache... not_found configure: not enabling --ccache-skip (ccache not found) checking which memory allocator to use... internal checking whether to add custom build version... no checking whether to build with Java support... yes checking for java... /usr/bin/java checking the installed JDK... checked (JDK 1.7.0_79) checking for javac... /usr/bin/javac checking for javadoc... /usr/bin/javadoc configure: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script configure: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed configure: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly checking for jawt lib name... -ljawt checking whether to enable gcj aot compilation... no checking whether to enable EPM for packing... yes checking for epm... no epm will be downloaded and compiled in bootstrap EPM will be built. checking which package format to use... dmg checking for gperf... /usr/bin/gperf checking for gperf... (cached) /usr/bin/gperf checking gperf version... OK checking whether to build the stax... yes checking whether to build the ODK... yes checking for external/unowinreg/unowinreg.dll... found checking whether to provide libstdc++/libgcc_s in the installset... yes checking which zlib to use... external checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for deflate in -lz... yes checking which jpeg to use... internal checking which expat to use... internal checking which libwpd to use... no checking which cppunit to use... configure: WARNING: not using cppunit checking which libxslt to use... external checking for xsltproc... /usr/bin/xsltproc checking which libxml to use... external checking checking SDK compatibility with OSX 10.7... yes, by using SDK macosx10.10 checking for /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk... yes checking which python to use... compiling against system python (/usr/bin/python) compiling against system python (version 2.7) checking Python.h usability... yes checking Python.h presence... yes checking for Python.h... yes checking which lucene to use... internal checking whether to build the MySQL Connector extension... no checking which hsqldb to use... internal checking which beanshell to use... none (disabled) checking which saxon to use... internal checking whether to enable support for JavaScript... yes checking which libapr to use... internal checking which libapr-util to use... internal checking which libserf to use... internal checking whether to enable support for CoinMP... yes checking which coinmp to use... internal checking which curl to use... external checking for curl-config... /usr/bin/curl-config checking whether curl is >= 7.13.1... yes checking which mdds to use... internal checking which boost to use... internal checking which vigra to use... internal checking which odbc headers to use... internal checking whether to build XML Security support... yes checking whether to build LDAP configuration backend... checking whether to build the internal NSS module... yes checking which sane header to use... internal checking which icu to use... internal checking whether to enable graphite support... no checking for /System/Library/Frameworks/AppKit.framework... yes Do Nothing for _os = Darwin checking whether to link to Xrender... no, dynamically open it checking which Xrender headers to use... internal checking whether to enable RandR support... no checking which libnss to use... internal checking which libssl to use... external checking which redland library to use... internal checking whether to build the Spell Checking component... checking which libhunspell to use... internal checking whether to build the Hyphenator component... checking which libhyphen to use... internal checking which mythes to use... internal checking which libtextcat to use... internal checking which libtextcat data directory to use... internal checking for getopt... yes checking for readdir_r... yes checking for bison... /usr/bin/bison checking the bison version... checked (/usr/bin/bison 2.3) checking for flex... /usr/bin/flex checking for patch... /usr/bin/patch checking whether /usr/bin/patch is GNU patch... yes checking for gnucp... no checking for cp... /bin/cp checking whether /bin/cp is GNU cp from coreutils with preserve= support... no no GNU cp from coreutils found - using the system's cp command checking for zip... /usr/bin/zip checking for unzip... /usr/bin/unzip checking which VCLplugs shall be built... none checking whether to enable GConf support... no checking whether to enable GNOME VFS support... no checking whether to use cairo... no checking whether to build the OpenGL Transitions component... no checking whether to build the PDF Import extension... no checking whether to build the Wiki Publisher extension... yes checking for swext module... OK checking which Servlet API Jar to use... internal checking whether to build the Report Builder extension... no checking which Apache commons-* libs to use... internal checking whether to enable the lockdown pieces... no checking whether to enable evolution 2 support... no checking whether to enable KDE address book support... no checking whether to include MathMLDTD... yes checking whether to include category B fonts... yes checking whether to include category A fonts... yes checking whether any fonts are included... yes checking whether to include PPDs... yes checking whether to include AFMs... yes checking whether and how to use Xinerama... yes checking whether to build own version of libpng... yes checking whether to build own version of libjpeg... yes checking whether to trigger rat scan... no checking for jakarta-ant... no checking for ant... /usr/local/Cellar/ant/1.9.4/bin/ant checking if /usr/local/Cellar/ant/1.9.4/libexec/bin/ant works... configure: WARNING: Ant does not work - Some Java projects will not build! checking whether ant is >= 1.7.0... ./configure: line 22551: test: not /System/Library/Frameworks/JavaVM: integer expression expected configure: error: no, you need at least ant >= 1.7.0 -- Aron