bug-gnulib
[Top][All Lists]
Advanced

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

[Bug-gnulib] strncasecmp and AIX


From: Karl Berry
Subject: [Bug-gnulib] strncasecmp and AIX
Date: Thu, 25 Mar 2004 20:41:51 -0500

I received a bug report from Nelson Beebe regarding strncasecmp on IBM
AIX 4.2.  It seems that it is only declared in <strings.h>, not
<string.h>, even though it is available in libc.  

The gl_STRCASE gnulib m4 macro checks for AC_REPLACE_FUNCS(strncasecmp),
but this does not seem to be enough.  Don't we also need
AC_CHECK_DECL(strncasecmp)?  Otherwise, under what condition should
strcase.h be included?  I would think:

#if !HAVE_DECL_STRNCASECMP
# include "strcase.h"
#endif

Bruno, what do you advise?

Thanks,
karl


P.S. Unfortunately, AC_CHECK_DECL will return true on AIX, because
autoconf always includes <strings.h> if it's available (in
ac_includes_default).  It is amazing to me that including both
<string.h> and <strings.h> doesn't have conflicts, but I guess it's ok ...




reply via email to

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