2007-05-10 Paul Jakma <paul.jakma@sun.com>
* configure.ac: Use AC_GNU_SOURCE to define _GNU_SOURCE, rather
than having lib/zebra.h do it.
AC_FUNC_STRNLEN has side-effects with latest autoconf, use
AC_CHECK_FUNC on strnlen instead.
* lib/zebra.h: Don't try define _GNU_SOURCE, autoconf should do it.
* configure.ac: Add back check for inet_aton, which got dropped
somehow in previous jumbo patch.
+ Use AC_GNU_SOURCE to define _GNU_SOURCE, rather than having
+ lib/zebra.h do it.
+ AC_FUNC_STRNLEN has side-effects with latest autoconf, use
+ AC_CHECK_FUNC on strnlen instead.
2007-05-09 Paul Jakma <paul.jakma@sun.com>
]
)
-dnl ---------
-dnl AIX check
-dnl ---------
+dnl -----------------
+dnl System extensions
+dnl -----------------
AC_AIX
+AC_GNU_SOURCE
dnl -------
dnl libtool
AC_FUNC_STAT
AC_FUNC_SELECT_ARGTYPES
AC_FUNC_STRFTIME
-AC_FUNC_STRNLEN
+dnl Avoid AC_FUNC_STRNLEN because it pulls in AC_SYSTEM_EXTENSIONS which
+dnl can lead to strange side effects. So we just check for strnlen
+dnl directly, see below.
+dnlAC_FUNC_STRNLENdnl
AC_FUNC_VPRINTF
dnl -------------------------------
dnl other functions
dnl ---------------
AC_CHECK_FUNCS([dup2 ftruncate getcwd gethostbyname getpagesize gettimeofday \
- inet_ntoa inet_aton \
+ inet_ntoa inet_aton strnlen \
memchr memmove memset select socket \
strcasecmp strchr strcspn strdup strerror \
strncasecmp strndup strrchr strspn strstr \
+2007-05-10 Paul Jakma <paul.jakma@sun.com>
+
+ * zebra.h: Don't try define _GNU_SOURCE, autoconf should do it.
+
2007-05-03 Paul Jakma <paul.jakma@sun.com>
* memtypes.c: Add MTYPE_ATTR_EXTRA and MTYPE_BGP_ROUTE_EXTRA
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifdef GNU_LINUX
-#define _GNU_SOURCE
-#endif /* GNU_LINUX */
-
#ifdef SUNOS_5
#define _XPG4_2
#define __EXTENSIONS__