autoconf
[Top][All Lists]
Advanced

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

errrr.. bug in 2.13 with AC_REPLACE_FUNCS() ?


From: emf
Subject: errrr.. bug in 2.13 with AC_REPLACE_FUNCS() ?
Date: Wed, 13 Dec 2000 22:26:33 -0500
User-agent: Mutt/1.2.5i

With autoconf 2.13  (built with gnu m4 1.4)


The following:
AC_CHECK_FUNC(strtok, AC_DEFINE(HAVE_STRTOK), LIBOBJS="$LIBOBJS strtok.o")
or
AC_REPLACE_FUNCS(strtok, strtok.o)
or 
AC_REPLACE_FUNCS(strtok)

Results in:

autoconf: Undefined macros:
***BUG in Autoconf--please report*** AC_FD_CC
***BUG in Autoconf--please report*** AC_FD_CC
***BUG in Autoconf--please report*** AC_FD_MSG
***BUG in Autoconf--please report*** AC_FD_MSG
/usr/local/bin/autoheader: Symbol `HAVE_STRTOK' is not covered by 
/usr/local/share/autoconf/acconfig.h ./acconfig.h

(the last autoheader error only applies to the AC_CHECK_FUNC style)

and it produces this sort of cruft for ./configure:

#! /bin/sh

 && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&AC_FD_CC
  cat conftest.$ac_ext >&AC_FD_CC
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&AC_FD_MSG
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJ
KLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&AC_FD_MSG
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
fi
done



Am i a doofus, or is this a bug?

Thanks..

-- 
.emf.



reply via email to

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