Sync with gnulib.
[libidn.git] / gl / m4 / strdup.m4
blobf78acc503a078258fb71ba5df735ee8986e4953f
1 # strdup.m4 serial 6
2 dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 AC_DEFUN([gl_FUNC_STRDUP],
9   AC_LIBSOURCES([strdup.c, strdup.h])
11   AC_REPLACE_FUNCS(strdup)
12   AC_CHECK_DECLS_ONCE(strdup)
13   gl_PREREQ_STRDUP
16 # Prerequisites of lib/strdup.c.
17 AC_DEFUN([gl_PREREQ_STRDUP], [:])
19 AC_DEFUN([gl_AUTOPROTO_STRDUP],
21   AH_BOTTOM([/* Prototype for strdup. */
22 #if !HAVE_DECL_STRDUP
23 extern char *strdup (const char *s);
24 #endif])