[Top][All Lists]

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

Re: mingw win64 comatibility

From: Ralf Wildenhues
Subject: Re: mingw win64 comatibility
Date: Sun, 16 Nov 2008 23:33:46 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Alon,

* Alon Bar-Lev wrote on Thu, Nov 13, 2008 at 10:45:23AM CET:
> On Wednesday 12 November 2008, Ralf Wildenhues wrote:
> > verify that this command fails:
> >   make check-local TESTSUITEFLAGS='-v -d -x -k AC_WITH_LTDL'
> > 
> > and post the output, then find out where exactly the failure happens
> > during configure:
> >   cd tests/testsuite.dir/42
> >   ./configure --prefix=/nowhere
> > 
> > You may have to look at the output, and/or config.log.
> > Do you have the ECHO, RM, environment variables set?
> I tried with clean checkout, BTW: make maintainer-clean does not work.

Ah, yes; maintainer-clean only works if you have run 'make check' before
(and no 'make clean' in between), so that all the old test subdirs have
a Makefile.  Same thing with distclean.

> Following is the patch I use... I don't know if the is
> correct. But it solved at least one issue.

Thanks.  The .gitignore issue is obvious, I've pushed that; the
old-m4-iface.m4 change should be obsolete with the pending patch.
I'll deal with the ltmain.m4sh change when we're through with this.

> I also don't know which test should be skipped. Now only the following tests 
> fails:
>  32: sys_lib_search_path                            testsuite: WARNING: A 
> failure happened in a test group before any test could be
> testsuite: WARNING: run. This means that test suite is improperly designed.  
> Please
> testsuite: WARNING: report this failure to <address@hidden>.
>  ok

Thanks; fixed like this, and put you in THANKS.


        Skip sys_lib_search_path on systems without libz.
        * tests/ (sys_lib_search_path): Autotest needs at
        least one AT_CHECK executed in a test group.  So if we haven't
        found -lz anywhere, as may happen with cross-compilers, skip the
        * THANKS: Update.
        Report by Alon Bar-Lev.

diff --git a/tests/ b/tests/
index 2bc56c0..929d2dd 100644
--- a/tests/
+++ b/tests/
@@ -1,6 +1,6 @@
 # -- test sys_lib_search_path_spec             -*- Autotest -*-
-#   Copyright (C) 2006 Free Software Foundation, Inc.
+#   Copyright (C) 2006, 2008 Free Software Foundation, Inc.
 #   Written by Ralf Wildenhues, 2006
 #   This file is part of GNU Libtool.
@@ -41,13 +41,20 @@ int main()
 $CC $CPPFLAGS $CFLAGS -c main.c
 eval `$LIBTOOL --config | $EGREP '^(sys_lib_search_path_spec)='`
 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
 for path in $sys_lib_search_path; do
   if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT -L$path -lz
     AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT 
              [], [ignore], [ignore])
+    no_libz=false
+# If -lz doesn't exist (hello, cross compiler!), we need a dummy test.
+if $no_libz; then
+  AT_CHECK([exit 77])

reply via email to

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