AC_ARG_ENABLE(debug,
[ --enable-debug compile with debug code],
- [ CFLAGS="-g -Wall"
+ [ if test "x$GCC" = "xyes"; then
+ CFLAGS="-ggdb3 -Wall"
+ fi
AC_DEFINE(DEBUG)
debug="yes" ],
[ debug="no" ]
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_FUNC_STRFTIME
-AC_CHECK_FUNCS(mktime select strdup strstr strtol strtok strsep snprintf)
+AC_CHECK_FUNCS(mktime select strdup strstr strtol strtok strsep snprintf vsnprintf asprintf vasprintf)
CFLAGS="$CFLAGS $NLS_CFLAGS"
LIBS="$LIBS $NLS_LIBS"