From: Paul Ramsey Date: Thu, 26 Jan 2012 20:19:42 +0000 (+0000) Subject: Detect asprintf, vasprintf, fseeko X-Git-Tag: 2.0.0alpha3~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8df9db5c4b77071ec55f875ef6d53aeabc0772d7;p=postgis Detect asprintf, vasprintf, fseeko git-svn-id: http://svn.osgeo.org/postgis/trunk@8938 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index 7adb3a380..2b1644896 100644 --- a/configure.ac +++ b/configure.ac @@ -84,12 +84,13 @@ AC_CHECK_HEADER([ieeefp.h], [HAVE_IEEEFP_H=1], [HAVE_IEEEFP_H=0]) AC_DEFINE_UNQUOTED([HAVE_IEEEFP_H], [$HAVE_IEEEFP_H], [ieeefp.h header]) dnl -dnl Check for platform-specific printing functions +dnl Check for platform-specific functions dnl AC_CHECK_FUNC(vasprintf, [HAVE_VASPRINTF=1], [HAVE_VASPRINTF=0]) +AC_DEFINE([HAVE_VASPRINTF]) AC_CHECK_FUNC(asprintf, [HAVE_ASPRINTF=1], [HAVE_ASPRINTF=0]) -AC_SUBST([HAVE_VASPRINTF]) -AC_SUBST([HAVE_ASPRINTF]) +AC_DEFINE([HAVE_ASPRINTF]) +AC_FUNC_FSEEKO() dnl dnl MingW requires use of pwd -W to give proper Windows (not MingW) paths diff --git a/postgis_config.h.in b/postgis_config.h.in index f7762214d..0012b735e 100644 --- a/postgis_config.h.in +++ b/postgis_config.h.in @@ -19,6 +19,11 @@ */ #undef HAVE_DCGETTEXT +/* Define for some functions we are interested in */ +#undef HAVE_VASPRINTF +#undef HAVE_ASPRINTF +#undef HAVE_FSEEKO + /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H