configure.ac (184e05d2) configure.ac (7fb4469b)
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

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

4097 my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
4098 if ( $mf =~ m/Specification-Version: 2.*/ ) {
4099 exit 0;
4100 } else {
4101 exit 1;
4102 }'; then
4103 AC_MSG_RESULT([yes])
4104 else
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

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

4097 my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
4098 if ( $mf =~ m/Specification-Version: 2.*/ ) {
4099 exit 0;
4100 } else {
4101 exit 1;
4102 }'; then
4103 AC_MSG_RESULT([yes])
4104 else
4105 AC_MSG_ERROR([no, you need lucene 2])
4105 AC_MSG_RESULT([no])
4106 AC_MSG_CHECKING([whether lucene is version 3.x])
4107
4108 if $PERL -e 'use Archive::Zip;
4109 my $file = "$ENV{'LUCENE_CORE_JAR'}";
4110 my $zip = Archive::Zip->new( $file );
4111 my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
4112 if ( $mf =~ m/Specification-Version: 3.*/ ) {
4113 exit 0;
4114 } else {
4115 exit 1;
4116 }'; then
4117 AC_MSG_RESULT([yes])
4118 else
4119 AC_MSG_ERROR([no, you need lucene 2 or 3])
4120 fi
4106 fi
4107
4108else
4109 AC_MSG_RESULT([internal])
4110 SYSTEM_LUCENE=NO
4111 BUILD_TYPE="$BUILD_TYPE LUCENE"
4112fi
4113AC_SUBST(SYSTEM_LUCENE)

--- 3311 unchanged lines hidden ---
4121 fi
4122
4123else
4124 AC_MSG_RESULT([internal])
4125 SYSTEM_LUCENE=NO
4126 BUILD_TYPE="$BUILD_TYPE LUCENE"
4127fi
4128AC_SUBST(SYSTEM_LUCENE)

--- 3311 unchanged lines hidden ---