aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-11-12 13:16:46 +0100
committerMartin Willi <martin@strongswan.org>2009-11-12 13:16:46 +0100
commitf6bbcec390f1589af87aef3f9df0be220cad3138 (patch)
treeac8dadcea20fe30eb25db0dece484d398410d493 /configure.in
parent0850e335186e2da7e2ee21f120f42ee606ba0026 (diff)
downloadstrongswan-f6bbcec390f1589af87aef3f9df0be220cad3138.tar.bz2
strongswan-f6bbcec390f1589af87aef3f9df0be220cad3138.tar.xz
Use register_printf_specifier instead of deprecated register_printf_function, if available
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in18
1 files changed, 12 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index 31a524602..ed16e07e9 100644
--- a/configure.in
+++ b/configure.in
@@ -373,12 +373,18 @@ AC_TRY_RUN(
[AC_MSG_RESULT([no])])
AC_CHECK_FUNC(
- [register_printf_function],
- [AC_DEFINE(HAVE_PRINTF_HOOKS)],
- [
- AC_MSG_NOTICE([printf does not support custom format specifiers!])
- vstr=true
- ]
+ [register_printf_specifier],
+ dnl new specifier functions with argument length
+ [AC_DEFINE(HAVE_PRINTF_SPECIFIER)],
+ [AC_CHECK_FUNC(
+ dnl deprecated function without argument length
+ [register_printf_function],
+ [AC_DEFINE(HAVE_PRINTF_FUNCTION)],
+ [
+ AC_MSG_NOTICE([printf does not support custom format specifiers!])
+ vstr=true
+ ]
+ )]
)
if test x$vstr = xtrue; then