From bc6ff9fc19ec121a86b30098b63f25e0ee682989 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 26 May 2001 04:08:32 +0000 Subject: [PATCH] it seems autoconf 2.50 doesn't like nested AC_CHECK_FUNC calls --- configure.in | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index e2fd659..76d644b 100644 --- a/configure.in +++ b/configure.in @@ -241,12 +241,19 @@ AC_CHECK_FUNCS( ) dnl Checks for stricmp/strcasecmp -AC_CHECK_FUNC(strcasecmp,, - AC_CHECK_FUNC(stricmp, +#AC_CHECK_FUNC(strcasecmp,, +# AC_CHECK_FUNC(stricmp, +# AC_DEFINE(strcasecmp, stricmp), +# AC_MSG_ERROR([Neither stricmp nor strcasecmp found]) +# ) +#) +AC_CHECK_FUNC(strcasecmp, strcasecmp=yes, strcasecmp=no) +if test $strcasecmp = no; then + AC_CHECK_FUNC(stricmp, AC_DEFINE(strcasecmp, stricmp), AC_MSG_ERROR([Neither stricmp nor strcasecmp found]) ) -) +fi dnl Checks for working -lm AC_CHECK_LIB(m, pow,,