summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-03 09:52:21 +0100
committerStef Walter <stefw@gnome.org>2013-03-03 10:07:14 +0100
commit66ee55e5947682d10eed7a36b9da72a8cf6a40f2 (patch)
treec31d63c6149d67470f928151344643bbe4f3d194 /configure.ac
parentae76545a0094114ef29dba52df97e69ab28b3dbc (diff)
Add compat strndup() function
Not available on Win32 and ancient unixes
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 ef6f06f..11ac492 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,6 +76,7 @@ if test "$os_unix" = "yes"; then
# These are thngs we can work around
AC_CHECK_MEMBERS([struct dirent.d_type],,,[#include <dirent.h>])
AC_CHECK_FUNCS([getprogname getexecname basename mkstemp mkdtemp])
+ AC_CHECK_FUNCS([strnstr memdup strndup])
# Check if these are declared and/or available to link against
AC_CHECK_DECLS([program_invocation_short_name])