aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2009-06-17 04:41:34 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2009-06-17 04:41:34 +0000
commita8fa064d5820b5ab9b4dac4bdb002fa1994bb21d (patch)
tree9c863f9659f8655fe0fb0eda034ef29097e9b144
parent6c9ed6d932a69db21b9001cee62c125f4b0f84bb (diff)
downloadPROJ-a8fa064d5820b5ab9b4dac4bdb002fa1994bb21d.tar.gz
PROJ-a8fa064d5820b5ab9b4dac4bdb002fa1994bb21d.zip
added --without-mutex handling
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1593 4e78687f-474d-0410-85f9-8d5e500ac6b2
-rw-r--r--Makefile.in1
-rwxr-xr-xconfigure71
-rw-r--r--configure.in17
-rw-r--r--jniwrap/Makefile.in1
-rw-r--r--jniwrap/org/Makefile.in1
-rw-r--r--jniwrap/org/proj4/Makefile.in1
-rw-r--r--man/Makefile.in1
-rw-r--r--man/man1/Makefile.in1
-rw-r--r--man/man3/Makefile.in1
-rw-r--r--nad/Makefile.am2
-rw-r--r--nad/Makefile.in8
-rw-r--r--src/Makefile.am3
-rw-r--r--src/Makefile.in5
13 files changed, 83 insertions, 30 deletions
diff --git a/Makefile.in b/Makefile.in
index fbfbd20e..5a144a12 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -113,6 +113,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
+MUTEX_SETTING = @MUTEX_SETTING@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
diff --git a/configure b/configure
index a96d6d0d..d7c353e3 100755
--- a/configure
+++ b/configure
@@ -874,6 +874,7 @@ FFLAGS
ac_ct_F77
LIBTOOL
JNI_INCLUDE
+MUTEX_SETTING
LIBOBJS
LTLIBOBJS'
ac_subst_files=''
@@ -1489,6 +1490,7 @@ Optional Packages:
both]
--with-tags[=TAGS] include additional configurations [automatic]
--with-jni=dir Include Java/JNI support, add optional include dir
+ --without-mutex Disable real mutex locks (lacking pthreads)
Some influential environment variables:
CC C compiler command
@@ -4459,7 +4461,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 4462 "configure"' > conftest.$ac_ext
+ echo '#line 4464 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -7201,11 +7203,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7204: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7206: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:7208: \$? = $ac_status" >&5
+ echo "$as_me:7210: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -7491,11 +7493,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7494: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7496: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:7498: \$? = $ac_status" >&5
+ echo "$as_me:7500: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -7595,11 +7597,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7598: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7600: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:7602: \$? = $ac_status" >&5
+ echo "$as_me:7604: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -9957,7 +9959,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 9960 "configure"
+#line 9962 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10057,7 +10059,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 10060 "configure"
+#line 10062 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12477,11 +12479,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:12480: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:12482: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:12484: \$? = $ac_status" >&5
+ echo "$as_me:12486: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -12581,11 +12583,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:12584: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:12586: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:12588: \$? = $ac_status" >&5
+ echo "$as_me:12590: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -14158,11 +14160,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14161: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14163: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:14165: \$? = $ac_status" >&5
+ echo "$as_me:14167: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -14262,11 +14264,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:14265: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:14267: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:14269: \$? = $ac_status" >&5
+ echo "$as_me:14271: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -16462,11 +16464,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16465: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16467: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:16469: \$? = $ac_status" >&5
+ echo "$as_me:16471: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -16752,11 +16754,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16755: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16757: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:16759: \$? = $ac_status" >&5
+ echo "$as_me:16761: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -16856,11 +16858,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:16859: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:16861: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:16863: \$? = $ac_status" >&5
+ echo "$as_me:16865: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -19992,6 +19994,26 @@ JNI_INCLUDE=$JNI_INCLUDE
+# Check whether --with-mutex was given.
+if test "${with_mutex+set}" = set; then
+ withval=$with_mutex;
+fi
+
+
+{ echo "$as_me:$LINENO: checking for mutexes" >&5
+echo $ECHO_N "checking for mutexes... $ECHO_C" >&6; }
+if test "$with_mutex" = yes -o x"$with_mutex" = x ; then
+ MUTEX_SETTING=pthread
+ { echo "$as_me:$LINENO: result: enabled, pthread" >&5
+echo "${ECHO_T}enabled, pthread" >&6; }
+else
+ MUTEX_SETTING=stub
+ { echo "$as_me:$LINENO: result: disabled by user" >&5
+echo "${ECHO_T}disabled by user" >&6; }
+fi
+
+MUTEX_SETTING=$MUTEX_SETTING
+
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile man/man1/Makefile man/man3/Makefile nad/Makefile jniwrap/Makefile jniwrap/org/Makefile jniwrap/org/proj4/Makefile"
@@ -20806,11 +20828,12 @@ FFLAGS!$FFLAGS$ac_delim
ac_ct_F77!$ac_ct_F77$ac_delim
LIBTOOL!$LIBTOOL$ac_delim
JNI_INCLUDE!$JNI_INCLUDE$ac_delim
+MUTEX_SETTING!$MUTEX_SETTING$ac_delim
LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
diff --git a/configure.in b/configure.in
index 13be0b05..4431a97b 100644
--- a/configure.in
+++ b/configure.in
@@ -74,8 +74,25 @@ fi
AC_SUBST(JNI_INCLUDE,$JNI_INCLUDE)
+dnl ---------------------------------------------------------------------------
+dnl Provide a mechanism to disable real mutex support (if lacking win32 or
+dnl posix mutexes for instance).
+dnl ---------------------------------------------------------------------------
+
+AC_ARG_WITH([mutex],
+ AS_HELP_STRING([--without-mutex],
+ [Disable real mutex locks (lacking pthreads)]),,)
+AC_MSG_CHECKING([for mutexes])
+if test "$with_mutex" = yes -o x"$with_mutex" = x ; then
+ MUTEX_SETTING=pthread
+ AC_MSG_RESULT([enabled, pthread])
+else
+ MUTEX_SETTING=stub
+ AC_MSG_RESULT([disabled by user])
+fi
+AC_SUBST(MUTEX_SETTING,$MUTEX_SETTING)
AC_OUTPUT(Makefile src/Makefile man/Makefile man/man1/Makefile \
man/man3/Makefile nad/Makefile \
diff --git a/jniwrap/Makefile.in b/jniwrap/Makefile.in
index aba4b293..528c1d8b 100644
--- a/jniwrap/Makefile.in
+++ b/jniwrap/Makefile.in
@@ -98,6 +98,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
+MUTEX_SETTING = @MUTEX_SETTING@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
diff --git a/jniwrap/org/Makefile.in b/jniwrap/org/Makefile.in
index a88bee90..41ebb70d 100644
--- a/jniwrap/org/Makefile.in
+++ b/jniwrap/org/Makefile.in
@@ -98,6 +98,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
+MUTEX_SETTING = @MUTEX_SETTING@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
diff --git a/jniwrap/org/proj4/Makefile.in b/jniwrap/org/proj4/Makefile.in
index e2f96bbf..a225041c 100644
--- a/jniwrap/org/proj4/Makefile.in
+++ b/jniwrap/org/proj4/Makefile.in
@@ -86,6 +86,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
+MUTEX_SETTING = @MUTEX_SETTING@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
diff --git a/man/Makefile.in b/man/Makefile.in
index 9a4d2975..003fed81 100644
--- a/man/Makefile.in
+++ b/man/Makefile.in
@@ -98,6 +98,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
+MUTEX_SETTING = @MUTEX_SETTING@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
diff --git a/man/man1/Makefile.in b/man/man1/Makefile.in
index de7bbe8f..c8dcdaf4 100644
--- a/man/man1/Makefile.in
+++ b/man/man1/Makefile.in
@@ -90,6 +90,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
+MUTEX_SETTING = @MUTEX_SETTING@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
diff --git a/man/man3/Makefile.in b/man/man3/Makefile.in
index c788f2e4..e1f3a688 100644
--- a/man/man3/Makefile.in
+++ b/man/man3/Makefile.in
@@ -90,6 +90,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
+MUTEX_SETTING = @MUTEX_SETTING@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
diff --git a/nad/Makefile.am b/nad/Makefile.am
index 98575381..15627c09 100644
--- a/nad/Makefile.am
+++ b/nad/Makefile.am
@@ -56,7 +56,7 @@ install-data-local: process-nad2bin
check-local: process-nad2bin
$(TEST27) $(PROJEXE)
$(TEST83) $(PROJEXE)
- $(TESTVARIOUS) $(CS2CSEXE) ; \
+ $(TESTVARIOUS) $(CS2CSEXE)
@if [ -f conus ] ; then \
export PROJ_LIB=. ; \
$(TESTDATUMFILE) $(CS2CSEXE) ; \
diff --git a/nad/Makefile.in b/nad/Makefile.in
index 66eaf560..cd6824d2 100644
--- a/nad/Makefile.in
+++ b/nad/Makefile.in
@@ -96,6 +96,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
+MUTEX_SETTING = @MUTEX_SETTING@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
@@ -171,7 +172,8 @@ CS2CSEXE = $(EXEPATH)/cs2cs
TEST27 = ./test27
TEST83 = ./test83
TESTNTV2 = ./testntv2
-TESTVARIOUS = ./testdatumfile
+TESTVARIOUS = ./testvarious
+TESTDATUMFILE = ./testdatumfile
TESTIGN = ./testIGNF
pkgdata_DATA = GL27 nad.lst nad27 nad83 proj_def.dat world epsg esri \
esri.extra other.extra \
@@ -408,10 +410,10 @@ install-data-local: process-nad2bin
check-local: process-nad2bin
$(TEST27) $(PROJEXE)
$(TEST83) $(PROJEXE)
- $(TESTVARIOUS) $(CS2CSEXE) ; \
+ $(TESTVARIOUS) $(CS2CSEXE)
@if [ -f conus ] ; then \
export PROJ_LIB=. ; \
- $(TESTVARIOUS) $(CS2CSEXE) ; \
+ $(TESTDATUMFILE) $(CS2CSEXE) ; \
fi
# $(TESTNTV2) $(CS2CSEXE)
diff --git a/src/Makefile.am b/src/Makefile.am
index 205d1ed2..a22343a6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,7 @@
bin_PROGRAMS = proj nad2nad nad2bin geod cs2cs
-INCLUDES = -DPROJ_LIB=\"$(pkgdatadir)\" @JNI_INCLUDE@
+INCLUDES = -DPROJ_LIB=\"$(pkgdatadir)\" \
+ -DMUTEX_@MUTEX_SETTING@ @JNI_INCLUDE@
include_HEADERS = projects.h nad_list.h proj_api.h org_proj4_Projections.h
diff --git a/src/Makefile.in b/src/Makefile.in
index cde094f3..c917ed21 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -174,6 +174,7 @@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
+MUTEX_SETTING = @MUTEX_SETTING@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
@@ -239,7 +240,9 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-INCLUDES = -DPROJ_LIB=\"$(pkgdatadir)\" @JNI_INCLUDE@
+INCLUDES = -DPROJ_LIB=\"$(pkgdatadir)\" \
+ -DMUTEX_@MUTEX_SETTING@ @JNI_INCLUDE@
+
include_HEADERS = projects.h nad_list.h proj_api.h org_proj4_Projections.h
EXTRA_DIST = makefile.vc proj.def
proj_SOURCES = proj.c gen_cheb.c p_series.c