[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_CANONICAL_HOST called behind my back?
From: |
Mo DeJong |
Subject: |
AC_CANONICAL_HOST called behind my back? |
Date: |
Fri, 11 May 2001 15:48:52 -0700 (PDT) |
I just tested out the most recent CVS verison of autoconf
and it seems I have run into a small problem. The source
code I am using is the CVS verison of Tcl/Tk 8.4 from:
:pserver:address@hidden:/cvsroot/tcl
Module: tcl
Password: anonymous
When I run autoconf 2.13 in the tcl/win subdirectory,
it creates a ./configure script that seems to work
ok (but lacks the new cross compile features).
When I run the CVS verison of autoconf, the ./configure
script seems to call AC_CANONICAL_HOST behind my back.
When I run in, I get the following:
% /home/mo/project/tcl/win/configure --host=i386-mingw32msvc
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for i386-mingw32msvc-gcc... i386-mingw32msvc-gcc
checking for C compiler default output... a.exe
...
checking for windres... no
checking whether make sets ${MAKE}... yes
configure: error: cannot find install-sh or install.sh in
/home/mo/project/tcl/win /home/mo/project/tcl/win/..
/home/mo/project/tcl/win/../..
If I add a install-sh script it pukes out because there
is no config.sub or config.guess file. First off, if
it is going to puke out because of the lack of
install-sh, config.sub, and so on, can an error
message be generated when autoconf is run? I
figured that AC_PROG_CC was including the
AC_CANONICAL_HOST macro, but I could have sworn
that exact bug was fixed earlier this year.
I poked around in the source code a bit more
and found that AC_CYGWIN does a AC_REQUIRE([AC_CANONICAL_HOST])
and is getting called from my configure.in.
Sure enough, that seemed to be the problem.
I made the following modification and my
script started working again.
Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.338
diff -u -r1.338 acspecific.m4
--- acspecific.m4 2001/04/15 16:20:30 1.338
+++ acspecific.m4 2001/05/11 22:44:24
@@ -890,7 +890,7 @@
# Check for Cygwin. This is a way to set the right value for
# EXEEXT.
AU_DEFUN([AC_CYGWIN],
-[AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
+[
AC_DIAGNOSE([obsolete],
[$0 is obsolete: use AC_CANONICAL_HOST and $host_os])dnl
case $host_os in
Mo DeJong
Red Hat Inc
- AC_CANONICAL_HOST called behind my back?,
Mo DeJong <=