On 6 Jun 2000, Akim Demaille wrote:

> >>>>> "Mo" == Mo DeJong <[EMAIL PROTECTED]> writes:
> 
> Mo> I am stumped. Is something wrong with the
> Mo> AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) such that is no longer
> Mo> includes the text from AC_CONFIG_AUX_DIR_DEFAULT?
> 
> Could you set up a small configure.in which demonstrates the problem?

I am now convinced that this problem is caused by something that
libtool is doing. I have found that the most simple way to get
this error is to grab the CVS version of libtool and try to
build it using the CVS version of autoconf.

I really have no idea what libtool could be doing that
would cause it to generate these macros in the wrong
order. It seems to something unholy indeed.

The only other info I have is the ugly hack I used
to get around the problem. This is NOT a patch,
it is more of an example of how not to solve the problem :)

Mo DeJong
Red Hat Inc

Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.482
diff -u -r1.482 acgeneral.m4
--- acgeneral.m4        2000/06/05 16:05:49     1.482
+++ acgeneral.m4        2000/06/06 07:58:06
@@ -1811,7 +1816,19 @@
 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus 
configure.
-AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
+# Make sure we can run config.sub.
+$ac_config_sub sun4 >/dev/null 2>&1 ||
+  AC_MSG_ERROR([cannot run config.sub = $ac_config_sub])
+
+AC_CACHE_CHECK([build system type], [ac_cv_build],
+[ac_cv_build_alias=$build_alias
+test -z "$ac_cv_build_alias" &&
+  ac_cv_build_alias=`$ac_config_guess`
+test -z "$ac_cv_build_alias" &&
+  AC_MSG_ERROR([cannot guess build type; you must specify one])
+ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || exit 1
+])
+dnl AC_PROVIDE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
 ])# AC_CONFIG_AUX_DIRS
 
 
@@ -1853,18 +1870,6 @@
 [[
 Hosts type:
   --build=BUILD     configure for building on BUILD [guessed]]])dnl
-# Make sure we can run config.sub.
-$ac_config_sub sun4 >/dev/null 2>&1 ||
-  AC_MSG_ERROR([cannot run $ac_config_sub])
-
-AC_CACHE_CHECK([build system type], [ac_cv_build],
-[ac_cv_build_alias=$build_alias
-test -z "$ac_cv_build_alias" &&
-  ac_cv_build_alias=`$ac_config_guess`
-test -z "$ac_cv_build_alias" &&
-  AC_MSG_ERROR([cannot guess build type; you must specify one])
-ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || exit 1
-])
 _AC_CANONICAL_SPLIT(build)
 ])# AC_CANONICAL_BUILD

Reply via email to