forked from geodynamics/autoconf_cig
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcit_proj4.m4
30 lines (23 loc) · 924 Bytes
/
cit_proj4.m4
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
# -*- Autoconf -*-
# ======================================================================
# Autoconf macros for Proj4.
# ======================================================================
# ----------------------------------------------------------------------
# CIT_PROJ4_HEADER
# ----------------------------------------------------------------------
AC_DEFUN([CIT_PROJ4_HEADER], [
AC_LANG(C)
AC_CHECK_HEADER([proj_api.h], [], [
AC_MSG_ERROR([Proj4 header not found; try CPPFLAGS="-I<Proj4 include dir>"])
])dnl
])dnl CIT_PROJ4_HEADER
# ----------------------------------------------------------------------
# CIT_PROJ4_LIB
# ----------------------------------------------------------------------
AC_DEFUN([CIT_PROJ4_LIB], [
AC_LANG(C)
AC_CHECK_LIB(proj, pj_init_plus, [],[
AC_MSG_ERROR([Proj4 library not found; try LDFLAGS="-L<Proj4 lib dir>"])
])dnl
])dnl CIT_PROJ4_LIB
dnl end of file