summaryrefslogtreecommitdiff
blob: 80227f317992c1a000715b2f5237c58fd246b346 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- configure.in.orig	2008-05-22 15:03:04.000000000 +0000
+++ configure.in	2008-05-22 15:03:19.000000000 +0000
@@ -482,14 +482,14 @@
 
 if test "x$with_libproj4" != "xno"; then
   if test "x$with_libproj4" != "xyes"; then
-    LIBS="$LIBS -L$with_libproj4/lib -lproj4"
+    LIBS="$LIBS -L$with_libproj4/lib -lproj"
     INCLUDES="$INCLUDES -I$with_libproj4/include"
   else
     INCLUDES="$INCLUDES -I/usr/include"
-    LIBS="$LIBS -lproj4"
+    LIBS="$LIBS -lproj"
   fi
 
-  AC_CHECK_LIB(proj4, pj_init, [AC_DEFINE([USE_LIBPROJ4], [1], [Define if you want to use LIBPROJ4])], [
+  AC_CHECK_LIB(proj, pj_init, [AC_DEFINE([USE_LIBPROJ4], [1], [Define if you want to use LIBPROJ4])], [
     echo ""
     echo "Error! LIBPROJ4 is required but was not found"
     echo "       Use --with-libproj4=DIR to specify the LIBPROJ4 directory tree"
--- src/math_utl.hpp.orig	2008-05-22 15:00:39.000000000 +0000
+++ src/math_utl.hpp	2008-05-22 15:01:46.000000000 +0000
@@ -42,7 +42,7 @@
 #define COMPLEX COMPLEX2
 
 extern "C" {
-#include "lib_proj.h"
+#include <projects.h>
 }
 
   PJ *map_init();