1
1
dnl Process this file with autoconf to produce a configure script.
4
AC_INIT([PROJ.4 Projections], 4.4.9, [warmerdam@pobox.com], proj)
4
AC_INIT([PROJ.4 Projections], 4.6.0, [warmerdam@pobox.com], proj)
26
26
dnl Check for JNI support.
27
27
dnl ---------------------------------------------------------------------------
29
AC_CHECKING(whether to enable Java/JNI support)
32
[ --with-jni Include Java/JNI support],,)
33
[ --with-jni=dir Include Java/JNI support, add optional include dir],,)
34
35
if test "$with_jni" = "yes" ; then
38
AC_DEFINE(JNI_ENABLED,1,[Enabled for Java/JNI Support])
40
AC_MSG_RESULT([enabled])
37
AC_DEFINE(JNI_ENABLED,1,[Enabled for Java/JNI Support])
39
AC_MSG_CHECKING(whether to enable Java/JNI support)
41
AC_MSG_RESULT([enabled])
43
elif test "$with_jni" != "no" -a "$with_jni" != "" ; then
45
AC_MSG_CHECKING(whether to enable Java/JNI support)
47
if test \! -r "$with_jni/jni.h" ; then
48
AC_MSG_ERROR(Did not find $with_jni/jni.h)
51
AC_DEFINE(JNI_ENABLED,1,[Enabled for Java/JNI Support])
53
AC_MSG_RESULT([enabled])
55
JNI_INCLUDE="-I$with_jni"
57
elif test "$with_jni" = "" ; then
58
AC_CHECK_HEADERS(jni.h)
60
AC_MSG_CHECKING(whether to enable Java/JNI support)
62
if test "$ac_cv_header_jni_h" = "no" ; then
63
AC_MSG_RESULT([disabled])
65
AC_MSG_RESULT([enabled])
66
AC_DEFINE(JNI_ENABLED,1,[Enabled for Java/JNI Support])
70
AC_MSG_CHECKING(whether to enable Java/JNI support)
43
72
AC_MSG_RESULT([disabled])
75
AC_SUBST(JNI_INCLUDE,$JNI_INCLUDE)
47
80
AC_OUTPUT(Makefile src/Makefile man/Makefile man/man1/Makefile \
48
81
man/man3/Makefile nad/Makefile \