| 1 |
# --------------------------------------------------------------------------- |
| 2 |
# Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 |
# contributor license agreements. See the NOTICE file distributed with |
| 4 |
# this work for additional information regarding copyright ownership. |
| 5 |
# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 |
# (the "License"); you may not use this file except in compliance with |
| 7 |
# the License. You may obtain a copy of the License at |
| 8 |
# |
| 9 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
# |
| 11 |
# Unless required by applicable law or agreed to in writing, software |
| 12 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
# See the License for the specific language governing permissions and |
| 15 |
# limitations under the License. |
| 16 |
# --------------------------------------------------------------------------- |
| 17 |
|
| 18 |
## -------------------------------- |
| 19 |
## Initialization macros. |
| 20 |
## -------------------------------- |
| 21 |
AC_PREREQ([2.61]) |
| 22 |
AC_INIT([@PROJECT_NAME@], [@VERSION@]) |
| 23 |
AC_CONFIG_AUX_DIR([autotools]) |
| 24 |
AC_CONFIG_MACRO_DIR([m4]) |
| 25 |
AC_CONFIG_SRCDIR([@FIRST_SOURCE_FILE@]) |
| 26 |
AC_CONFIG_HEADERS([src/config.h]) |
| 27 |
AC_CANONICAL_HOST |
| 28 |
AC_CANONICAL_SYSTEM |
| 29 |
|
| 30 |
## ----------------------------------------------- |
| 31 |
## Application Checks |
| 32 |
## ----------------------------------------------- |
| 33 |
@AC_PROG_CHECKS@ |
| 34 |
AC_PROG_INSTALL |
| 35 |
# Make AM_PROG_AR work before automake 1.12 |
| 36 |
m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
| 37 |
AC_PROG_LIBTOOL([disable-static]) |
| 38 |
|
| 39 |
## ----------------------------------------------- |
| 40 |
## API Checks |
| 41 |
## ----------------------------------------------- |
| 42 |
WITH_JNI_JDK |
| 43 |
|
| 44 |
CUSTOM_M4_SETUP |
| 45 |
|
| 46 |
WITH_OSX_UNIVERSAL |
| 47 |
|
| 48 |
CFLAGS="$CFLAGS $JNI_EXTRA_CFLAGS" |
| 49 |
AC_SUBST(CFLAGS) |
| 50 |
CXXFLAGS="$CXXFLAGS $JNI_EXTRA_CFLAGS" |
| 51 |
AC_SUBST(CXXFLAGS) |
| 52 |
LDFLAGS="$LDFLAGS $JNI_EXTRA_LDFLAGS -release @VERSION@" |
| 53 |
AC_SUBST(LDFLAGS) |
| 54 |
|
| 55 |
## ----------------------------------------------------- |
| 56 |
## Generate the files |
| 57 |
## ----------------------------------------------------- |
| 58 |
AM_INIT_AUTOMAKE([subdir-objects no-dependencies -Wall -Werror foreign]) |
| 59 |
AC_CONFIG_FILES([Makefile]) |
| 60 |
AC_OUTPUT |
| 61 |
|
| 62 |
echo " |
| 63 |
($PACKAGE_NAME) version $PACKAGE_VERSION |
| 64 |
Prefix.........: $prefix |
| 65 |
C Compiler.....: $CC $CFLAGS |
| 66 |
Linker.........: $LD $LDFLAGS $LIBS |
| 67 |
" |