# HG changeset patch # User Bruno Haible # Date 1077737947 0 # Node ID d2eab0a08b372ae19d6cb2e7498655511e41bed2 # Parent d96732d6b4790676bf6d3970e00d960bb173f663 Improved strdup, from Simon Josefsson. diff --git a/m4/ChangeLog b/m4/ChangeLog --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2004-01-18 Simon Josefsson + + * strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared. + 2004-02-18 Bruno Haible * xsize.m4 (gl_XSIZE): Require AC_C_INLINE. diff --git a/m4/strdup.m4 b/m4/strdup.m4 --- a/m4/strdup.m4 +++ b/m4/strdup.m4 @@ -1,5 +1,5 @@ -# strdup.m4 serial 2 -dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc. +# strdup.m4 serial 3 +dnl Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -14,8 +14,7 @@ fi ]) -# Prerequisites of lib/strdup.c. +# Prerequisites of lib/strdup.h and lib/strdup.c. AC_DEFUN([gl_PREREQ_STRDUP], [ - : + AC_CHECK_DECLS(strdup) ]) -