aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Mayo <aklhfex@gmail.com>2019-03-21 19:53:37 +0000
committerChris Mayo <aklhfex@gmail.com>2019-03-21 19:53:37 +0000
commitddd333e6bd6f5e033a2b829067910165e64eb0b9 (patch)
treeb64d09c9858e28c685abf7a233d029e29a9cae45 /configure.ac
parent9ead1bfe5afd7e519fe5f83b6603e5147fa91411 (diff)
downloadPROJ-ddd333e6bd6f5e033a2b829067910165e64eb0b9.tar.gz
PROJ-ddd333e6bd6f5e033a2b829067910165e64eb0b9.zip
Build: automatically enable system error messages
Define HAVE_STRERROR during configuration. Before: $ cs2cs +proj=latlong +to +proj=latlong dummy <cs2cs>: Sys errno: 2: <system mess. texts unavail.> dummy After: $ cs2cs +proj=latlong +to +proj=latlong dummy <cs2cs>: Sys errno: 2: No such file or directory dummy
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d155432b..a76710d0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -219,6 +219,7 @@ CFLAGS="$save_CFLAGS $C99_MATH"
AC_SEARCH_LIBS([sqrt], [m])
AC_CHECK_FUNC(localeconv, [AC_DEFINE(HAVE_LOCALECONV,1,[Define to 1 if you have localeconv])])
+AC_CHECK_FUNCS([strerror])
dnl ---------------------------------------------------------------------------
dnl Check for JNI support.