| configure.ac (a8693330) | configure.ac (f0157b90) |
|---|---|
| 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 --- 666 unchanged lines hidden (view full) --- 675 Note that this is not the location of the Ant binary 676 but the location of the entire distribution. 677 678 Usage: --with-ant-home=<absolute path to Ant home> 679],,) 680AC_ARG_WITH(junit, 681[ --with-junit Specifies the JUnit 4 jar file to use for JUnit-based 682 tests. --without-junit disables those tests. Not | 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 --- 666 unchanged lines hidden (view full) --- 675 Note that this is not the location of the Ant binary 676 but the location of the entire distribution. 677 678 Usage: --with-ant-home=<absolute path to Ant home> 679],,) 680AC_ARG_WITH(junit, 681[ --with-junit Specifies the JUnit 4 jar file to use for JUnit-based 682 tests. --without-junit disables those tests. Not |
| 683 relevant in the --without-java case. The --with-hamcrest-core 684 option is also necessary. | 683 relevant in the --without-java case. |
| 685 686 Usage: --with-junit=<absolute path to JUnit 4 jar> 687],,with_junit=yes) | 684 685 Usage: --with-junit=<absolute path to JUnit 4 jar> 686],,with_junit=yes) |
| 688AC_ARG_WITH(hamcrest-core, 689[ --with-hamcrest-core Specifies the hamcrest-core 1.3 jar file to use for 690 JUnit-based tests. --without-junit disables those 691 tests. Not relevant in the --without-java or 692 --without-junit cases. 693],,with_hamcrest_core=yes) | |
| 694AC_ARG_WITH(perl-home, 695[ --with-perl-home If you have installed the Perl 5 Distribution, on your 696 system, please supply the path here. 697 Note that this is not the location of the Perl binary 698 but the location of the entire distribution. 699 700 Usage: --with-perl-home=<absolute path to Perl 5 home> 701],,) --- 163 unchanged lines hidden (view full) --- 865 Usage: --with-unix-wrapper=ooffice 866],,) 867AC_ARG_WITH(asm-home, 868[ --with-asm-home For Windows users, please supply the path for the 869 ml.exe assembler. 870 871 Usage: --with-asm-home=<path to ml.exe directory> 872],,) | 687AC_ARG_WITH(perl-home, 688[ --with-perl-home If you have installed the Perl 5 Distribution, on your 689 system, please supply the path here. 690 Note that this is not the location of the Perl binary 691 but the location of the entire distribution. 692 693 Usage: --with-perl-home=<absolute path to Perl 5 home> 694],,) --- 163 unchanged lines hidden (view full) --- 858 Usage: --with-unix-wrapper=ooffice 859],,) 860AC_ARG_WITH(asm-home, 861[ --with-asm-home For Windows users, please supply the path for the 862 ml.exe assembler. 863 864 Usage: --with-asm-home=<path to ml.exe directory> 865],,) |
| 873AC_ARG_WITH(nasm-home, 874[ --with-nasm-home For Windows users, please supply the path for the 875 nasm.exe assembler. 876 877 Usage: --with-nasm-home=<path to nasm.exe directory> 878],,) | |
| 879AC_ARG_WITH(os-version, 880[ --with-os-version For FreeBSD users, use this option option to override 881 the detected OSVERSION. 882 883 Usage: --with-os-version=<OSVERSION> 884],,) 885AC_ARG_WITH(unzip-home, 886[ --with-unzip-home Deprecated: use --with-zip-home instead],,) --- 4668 unchanged lines hidden (view full) --- 5555 fi 5556 AC_MSG_RESULT([$ASM_HOME]) 5557else 5558 with_asm_home="NO_ASM_HOME" 5559fi 5560ASM_HOME="$with_asm_home" 5561AC_SUBST(ASM_HOME) 5562 | 866AC_ARG_WITH(os-version, 867[ --with-os-version For FreeBSD users, use this option option to override 868 the detected OSVERSION. 869 870 Usage: --with-os-version=<OSVERSION> 871],,) 872AC_ARG_WITH(unzip-home, 873[ --with-unzip-home Deprecated: use --with-zip-home instead],,) --- 4668 unchanged lines hidden (view full) --- 5542 fi 5543 AC_MSG_RESULT([$ASM_HOME]) 5544else 5545 with_asm_home="NO_ASM_HOME" 5546fi 5547ASM_HOME="$with_asm_home" 5548AC_SUBST(ASM_HOME) 5549 |
| 5563dnl *************************************** 5564dnl testing nasm.exe assembler path 5565dnl *************************************** 5566if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes" -a "$SYSTEM_OPENSSL" = "NO"; then 5567 AC_MSG_CHECKING([nasm.exe assembler path]) 5568 if test -n "$with_nasm_home"; then 5569 with_nasm_home=`cygpath -u "$with_nasm_home"` 5570 fi 5571 if test ! -x "$with_nasm_home/nasm.exe"; then 5572 AC_PATH_PROG(NASM_EXE, nasm.exe) 5573 if test -z "$NASM_EXE"; then 5574 with_nasm_home="NO_NASM_HOME" 5575 else 5576 with_nasm_home="NASM_IN_PATH" 5577 fi 5578 fi 5579 AC_MSG_RESULT([$NASM_HOME]) 5580else 5581 with_nasm_home="NO_NASM_HOME" 5582fi 5583NASM_HOME="$with_nasm_home" 5584AC_SUBST(NASM_HOME) 5585 | |
| 5586dnl =================================================================== 5587dnl testing handle deprecated unzip switch 5588dnl =================================================================== 5589if test -z "$with_zip_home"; then 5590 with_zip_home="$with_unzip_home" 5591fi 5592dnl =================================================================== 5593dnl Zip will be found where you tell me to find it --- 1438 unchanged lines hidden (view full) --- 7032 cat conftest.xml >&5 7033 rm -rf confdir 7034 AC_MSG_ERROR([no. Did you install ant-apache-regexp?]) 7035 fi 7036fi 7037rm -f conftest* core core.* *.core 7038 7039OOO_JUNIT_JAR= | 5550dnl =================================================================== 5551dnl testing handle deprecated unzip switch 5552dnl =================================================================== 5553if test -z "$with_zip_home"; then 5554 with_zip_home="$with_unzip_home" 5555fi 5556dnl =================================================================== 5557dnl Zip will be found where you tell me to find it --- 1438 unchanged lines hidden (view full) --- 6996 cat conftest.xml >&5 6997 rm -rf confdir 6998 AC_MSG_ERROR([no. Did you install ant-apache-regexp?]) 6999 fi 7000fi 7001rm -f conftest* core core.* *.core 7002 7003OOO_JUNIT_JAR= |
| 7040HAMCREST_CORE_JAR= 7041if test "$SOLAR_JAVA" != "" && test "$with_junit" != "no" && test "$with_hamcrest_core" != "no"; then 7042 AC_MSG_CHECKING([for JUnit]) | 7004if test "$SOLAR_JAVA" != "" && test "$with_junit" != "no"; then 7005 AC_MSG_CHECKING([for JUnit 4]) |
| 7043 if test "$with_junit" = "yes"; then 7044 if test -e /usr/share/java/junit4.jar; then 7045 OOO_JUNIT_JAR=/usr/share/java/junit4.jar 7046 else 7047 if test -e /usr/share/lib/java/junit.jar; then 7048 OOO_JUNIT_JAR=/usr/share/lib/java/junit.jar 7049 else 7050 OOO_JUNIT_JAR=/usr/share/java/junit.jar 7051 fi 7052 fi 7053 else 7054 OOO_JUNIT_JAR=$with_junit 7055 fi 7056 if test "$_os" = "WINNT"; then 7057 OOO_JUNIT_JAR=`cygpath -m "$OOO_JUNIT_JAR"` 7058 fi | 7006 if test "$with_junit" = "yes"; then 7007 if test -e /usr/share/java/junit4.jar; then 7008 OOO_JUNIT_JAR=/usr/share/java/junit4.jar 7009 else 7010 if test -e /usr/share/lib/java/junit.jar; then 7011 OOO_JUNIT_JAR=/usr/share/lib/java/junit.jar 7012 else 7013 OOO_JUNIT_JAR=/usr/share/java/junit.jar 7014 fi 7015 fi 7016 else 7017 OOO_JUNIT_JAR=$with_junit 7018 fi 7019 if test "$_os" = "WINNT"; then 7020 OOO_JUNIT_JAR=`cygpath -m "$OOO_JUNIT_JAR"` 7021 fi |
| 7059 if test -f "$OOO_JUNIT_JAR"; then 7060 AC_MSG_RESULT([$OOO_JUNIT_JAR]) 7061 AC_MSG_CHECKING([JUnit version]) 7062 _junit_output=`$JAVAINTERPRETER -cp "$OOO_JUNIT_JAR" junit.runner.Version` 7063 _junit_major=`echo $_junit_output | $AWK -F. '{ print $1}'` 7064 _junit_version=`echo $_junit_output | $AWK -F. '{ print $1*10000+$2*100+$3 }'` 7065 if test $_junit_major = "4" && test $_junit_version -ge "41100"; then 7066 AC_MSG_RESULT([$_junit_output, good]) 7067 else 7068 AC_MSG_RESULT([$_junit_output, wrong]) 7069 AC_MSG_ERROR([Wrong JUnit version, need at least version 4.11 and less than 5]) 7070 fi | 7022 "$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" 2>&5 | \ 7023 $GREP org/junit/Before.class > /dev/null 2>&5 7024 if test $? -eq 0; then 7025 AC_MSG_RESULT([$OOO_JUNIT_JAR]) |
| 7071 else | 7026 else |
| 7072 AC_MSG_RESULT([no]) 7073 AC_MSG_ERROR([cannot find JUnit, please install one in the default location (/usr/share/java), specify its pathname via --with-junit=..., or disable it via --without-junit]) | 7027 AC_MSG_RESULT([no]) 7028 AC_MSG_ERROR([cannot find JUnit 4 jar; please install one in the default 7029location (/usr/share/java), specify its pathname via 7030--with-junit=..., or disable it via --without-junit]) |
| 7074 fi | 7031 fi |
| 7075 7076 AC_MSG_CHECKING([for hamcrest-core 1.3]) 7077 if test "$with_hamcrest_core" = "yes"; then 7078 if test -e /usr/share/java/hamcrest-core-1.3.jar; then 7079 HAMCREST_CORE_JAR=/usr/share/java/hamcrest-core-1.3.jar 7080 else 7081 if test -e /usr/share/lib/java/hamcrest-core.jar; then 7082 HAMCREST_CORE_JAR=/usr/share/lib/java/hamcrest-core.jar 7083 else 7084 HAMCREST_CORE_JAR=/usr/share/java/hamcrest-core.jar 7085 fi 7086 fi 7087 else 7088 HAMCREST_CORE_JAR=$with_hamcrest_core 7089 fi 7090 if test "$_os" = "WINNT"; then 7091 HAMCREST_CORE_JAR=`cygpath -m "$HAMCREST_CORE_JAR"` 7092 fi 7093 export HAMCREST_CORE_JAR 7094 if $PERL -e 'use Archive::Zip; 7095 my $file = "$ENV{'HAMCREST_CORE_JAR'}"; 7096 if (! -f $file) { 7097 exit 1; 7098 } 7099 my $zip = Archive::Zip->new( $file ); 7100 my $mf = $zip->contents ( "META-INF/MANIFEST.MF" ); 7101 push @l, split(/\n/, $mf); 7102 foreach my $line (@l) { 7103 if ($line =~ m/Implementation-Version:/ || 7104 $line =~ m/Bundle-Version:/) { 7105 ($t, $version) = split (/:/,$line); 7106 $version =~ s/^\s//; 7107 ($a, $b, $c, $d) = split (/\./,$version); 7108 if ($a == 1 && $b == 3) { 7109 exit 0; 7110 } else { 7111 exit 1; 7112 } 7113 } 7114 } 7115 exit 1; 7116 '; then 7117 AC_MSG_RESULT([$HAMCREST_CORE_JAR]) 7118 else 7119 AC_MSG_ERROR([cannot find hamcrest-core 1.3 jar; please install one in the default location (/usr/share/java), specify its pathname via --with-hamcrest-core=..., or disable it via --without-junit or --without-hamcrest-core]) 7120 fi | |
| 7121fi 7122AC_SUBST(OOO_JUNIT_JAR) | 7032fi 7033AC_SUBST(OOO_JUNIT_JAR) |
| 7123AC_SUBST(HAMCREST_CORE_JAR) | |
| 7124 7125AC_MSG_CHECKING([which languages to be built]) 7126WITH_LANG="$with_lang" 7127if test -z "$WITH_LANG"; then 7128 AC_MSG_RESULT([en-US]) 7129else 7130 AC_MSG_RESULT([$WITH_LANG]) 7131 ADDITIONAL_REPOSITORIES="$ADDITIONAL_REPOSITORIES ../extras" --- 183 unchanged lines hidden (view full) --- 7315 echo 7316 cat warn 7317 echo 7318 else 7319 echo There were no warnings 7320 fi 7321 echo 7322fi | 7034 7035AC_MSG_CHECKING([which languages to be built]) 7036WITH_LANG="$with_lang" 7037if test -z "$WITH_LANG"; then 7038 AC_MSG_RESULT([en-US]) 7039else 7040 AC_MSG_RESULT([$WITH_LANG]) 7041 ADDITIONAL_REPOSITORIES="$ADDITIONAL_REPOSITORIES ../extras" --- 183 unchanged lines hidden (view full) --- 7225 echo 7226 cat warn 7227 echo 7228 else 7229 echo There were no warnings 7230 fi 7231 echo 7232fi |
| 7233 |
|