Commit f2e9e405 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

m4/acx_options.m4: search for proj_create().

parent ad5f0601
......@@ -410,7 +410,7 @@ AC_ARG_WITH([fftw3],
[AC_MSG_RESULT([Could not link to fftw3 library])])])
# ----------------------------------------------------------------------
# Checks for PROJ.4 library
# Checks for PROJ library
AC_ARG_WITH([proj],
[AS_HELP_STRING([--with-proj=<directory>],
[Specify location of PROJ library for cartographic projections.])],
......@@ -418,7 +418,7 @@ AC_ARG_WITH([proj],
[no],[AC_MSG_CHECKING([for proj library])
AC_MSG_RESULT([suppressed])],
[yes],[AC_CHECK_HEADERS([proj.h])
AC_SEARCH_LIBS([pj_init],
AC_SEARCH_LIBS([proj_create],
[proj],
[AC_DEFINE([HAVE_LIBPROJ],[1],[Define to 1 for PROJ support])],
[AC_MSG_ERROR([Could not link to PROJ library!])])
......@@ -429,7 +429,7 @@ AC_ARG_WITH([proj],
[LDFLAGS="-L$PROJ_ROOT/lib $LDFLAGS"
CPPFLAGS="-I$PROJ_ROOT/include $CPPFLAGS"
AC_CHECK_HEADERS([proj.h])
AC_SEARCH_LIBS([pj_init],
AC_SEARCH_LIBS([proj_create],
[proj],
[AC_DEFINE([HAVE_LIBPROJ],[1],[Define to 1 for PROJ support])],
[AC_MSG_ERROR([Could not link to PROJ library!])])
......
......@@ -36,7 +36,7 @@
#include <curl/curl.h>
#endif
#ifdef HAVE_LIBPROJ
#ifdef HAVE_PROJ_H
#include <proj.h>
#endif
......
......@@ -18,7 +18,7 @@
#include "config.h"
#endif
#ifdef HAVE_LIBPROJ
#ifdef HAVE_PROJ_H
#include "proj.h"
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment