From: Bruno Haible Date: Sat, 20 Nov 2010 18:45:34 +0000 (+0100) Subject: memmem: Fix autoconf test. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5685db9537a43c3fafae3650d6b29df0f21f14f5;p=pspp memmem: Fix autoconf test. * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM. --- diff --git a/ChangeLog b/ChangeLog index 2aa86b60c6..6770d43f60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-20 Bruno Haible + + memmem: Fix autoconf test. + * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM. + 2010-11-20 Bruno Haible Port to uClibc. diff --git a/m4/memmem.m4 b/m4/memmem.m4 index 898d4c7c47..a4284dc990 100644 --- a/m4/memmem.m4 +++ b/m4/memmem.m4 @@ -1,4 +1,4 @@ -# memmem.m4 serial 18 +# memmem.m4 serial 19 dnl Copyright (C) 2002, 2003, 2004, 2007, 2008, 2009, 2010 Free Software dnl Foundation, Inc. dnl This file is free software; the Free Software Foundation @@ -64,7 +64,7 @@ dnl Additionally, check that memmem is efficient and handles empty needles. AC_DEFUN([gl_FUNC_MEMMEM], [ AC_REQUIRE([gl_FUNC_MEMMEM_SIMPLE]) - if test $HAVE_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then + if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then AC_CACHE_CHECK([whether memmem works in linear time], [gl_cv_func_memmem_works_fast], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[