bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in AC_FUNC_MEMCMP when using g++


From: Sander Niemeijer
Subject: Bug in AC_FUNC_MEMCMP when using g++
Date: Wed, 29 Jan 2003 15:23:56 +0100

It seems that the testsource for AC_FUNC_MEMCMP in autoconf 2.57 does not contain a string.h include which makes the check fail when running a C++ compiler (g++ v3.1 in my case). This can be reproduced by using the following configure.ac
---
AC_INIT(memcpy_bug, 1.0)
AC_CHECK_HEADERS
AC_FUNC_MEMCMP
---
and trying both a './configure' and a './configure CC=g++'.
The first gives
---
checking for working memcmp... yes
---
while the second gives
---
checking for working memcmp... no
---

An addition of
---
#ifdef HAVE_STRING_H
#include <string.h>
#endif
---
to the testsource should fix this problem.

Regards,
Sander Niemeijer





reply via email to

[Prev in Thread] Current Thread [Next in Thread]