I just ran into a strange error when I tried to use the most
recent version of autoconf to configure SDL. Here is the
error:

% autoconf 
autoconf: undefined macros:
***BUG in Autoconf--please report*** AC_CHECK_TOOL_PREFIX

It seems that AC_CHECK_TOOL_PREFIX is getting called somewhere.

mo(~/project/SDL)% grep AC_CHECK_TOOL_PREFIX *
acinclude.m4:[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl

This acinclude.m4 file seems to have been generated
by libtool. I found the following macro inside it.


# AC_PATH_TOOL_GREP_OUTPUT - Try AC_PATH_PROG_GREP_OUTPUT with target 
#                             prefix when cross-compiling
dnl AC_PATH_TOOL_GREP_OUTPUT(VARIABLE, PROG-TO-CHECK-FOR, 
GREP-EXPRESSION[, VALUE-IF-NOT-FOUND [, PATH]])
AC_DEFUN(AC_PATH_TOOL_GREP_OUTPUT,
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
AC_PATH_PROG_GREP_OUTPUT($1, ${ac_tool_prefix}$2, $3, 
                          ifelse([$4], , [$2], ), $5)

Note how it calls AC_REQUIRE on the AC_CHECK_TOOL_PREFIX macro
which is now in bit heaven. I am at a bit of a loss when
it comes to the "right" way to fix this problem. Is this
something that needs to be fixed in libtool, or should
autoconf leave and empty macro def for AC_CHECK_TOOL_PREFIX
in case older versions of tools use it?

thanks
Mo Dejong
Red Hat Inc.

Reply via email to