From: ludo@gnu.org (Ludovic Courtès)
To: bug-guile@gnu.org
Subject: Re: i18n broken on mingw cross compile
Date: Sat, 13 Sep 2008 20:16:09 +0200 [thread overview]
Message-ID: <87hc8j3o9i.fsf@gnu.org> (raw)
In-Reply-To: gagldm$m0i$1@ger.gmane.org
[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]
Hi,
Han-Wen Nienhuys <hanwen@xs4all.nl> writes:
> As a review comment: is there a specific reason to do HAVE_CONFIG_H ? In
> what case do we not HAVE_CONFIG_H ?
Yes, when `AC_CONFIG_HEADERS' isn't used. It's correct Autoconf
practice to check for `HAVE_CONFIG_H'.
> Ludovic Courtès escreveu:
>> Can you please restart from there and report back?
>
> from ../../libguile/scmconfig.h:25,
> from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile/__scm.h:52,
> from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/libguile.h:30,
> from /home/lilydev/vc/gub/target/mingw/src/guile-1.9.git/test-suite/standalone/test-asmobs-lib.c:18:
> ../../lib/time.h:76: error: expected ';', ',' or ')' before '__timer'
> ../../lib/time.h:78: error: expected ';', ',' or ')' before '__timer'
> make[4]: ** [libtest_asmobs_la-test-asmobs-lib.lo] Erro 1
> make[4]: Saindo do diretório `/home/lilydev/vc/gub/target/mingw/build/gui
Of course, I had forgotten the tests.
I'm sure we're almost done now. :-)
Thanks,
Ludo'.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: The patch --]
[-- Type: text/x-patch, Size: 3692 bytes --]
From 3394818c0a465c8b337252250174ecb0d13d726d Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Sat, 13 Sep 2008 20:09:08 +0200
Subject: [PATCH] Include <config.h> in standalone tests.
* test-suite/standalone/Makefile.am (test_cflags): Add `-I$(top_builddir)' so
that <config.h> can be found.
(snarfcppopts): Likewise.
* test-suite/standalone/*.c: Include <config.h>.
---
test-suite/standalone/Makefile.am | 4 ++--
test-suite/standalone/test-asmobs-lib.c | 4 ++++
test-suite/standalone/test-gh.c | 4 ++++
test-suite/standalone/test-list.c | 4 ++++
test-suite/standalone/test-num2integral.c | 4 ++++
test-suite/standalone/test-with-guile-module.c | 4 ++++
6 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/test-suite/standalone/Makefile.am b/test-suite/standalone/Makefile.am
index adbe0c8..212fbca 100644
--- a/test-suite/standalone/Makefile.am
+++ b/test-suite/standalone/Makefile.am
@@ -32,7 +32,7 @@ TESTS_ENVIRONMENT = "${top_builddir}/pre-inst-guile-env"
test_cflags = \
-I$(top_srcdir)/test-suite/standalone \
- -I$(top_srcdir) \
+ -I$(top_srcdir) -I$(top_builddir) \
-I$(top_srcdir)/lib -I$(top_builddir)/lib \
$(EXTRA_DEFS) $(GUILE_CFLAGS) $(GCC_CFLAGS)
@@ -40,7 +40,7 @@ AM_LDFLAGS = $(GUILE_CFLAGS)
snarfcppopts = \
$(DEFS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $(CFLAGS) -I$(top_srcdir) \
- -I$(top_srcdir)/lib -I$(top_builddir)/lib
+ -I$(top_srcdir)/lib -I$(top_builddir)/lib -I$(top_builddir)
SUFFIXES = .x
.c.x:
diff --git a/test-suite/standalone/test-asmobs-lib.c b/test-suite/standalone/test-asmobs-lib.c
index 88cf847..b85f923 100644
--- a/test-suite/standalone/test-asmobs-lib.c
+++ b/test-suite/standalone/test-asmobs-lib.c
@@ -15,6 +15,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <libguile.h>
long asmob000;
diff --git a/test-suite/standalone/test-gh.c b/test-suite/standalone/test-gh.c
index b273b44..9f1601a 100644
--- a/test-suite/standalone/test-gh.c
+++ b/test-suite/standalone/test-gh.c
@@ -17,6 +17,10 @@
/* some bits originally by Jim Blandy <jimb@red-bean.com> */
+#ifndef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <libguile.h>
#include <libguile/gh.h>
diff --git a/test-suite/standalone/test-list.c b/test-suite/standalone/test-list.c
index 3396dff..02634f6 100644
--- a/test-suite/standalone/test-list.c
+++ b/test-suite/standalone/test-list.c
@@ -17,6 +17,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <libguile.h>
#include <stdio.h>
diff --git a/test-suite/standalone/test-num2integral.c b/test-suite/standalone/test-num2integral.c
index d2de418..1e8a016 100644
--- a/test-suite/standalone/test-num2integral.c
+++ b/test-suite/standalone/test-num2integral.c
@@ -15,6 +15,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <libguile.h>
#include <stdio.h>
diff --git a/test-suite/standalone/test-with-guile-module.c b/test-suite/standalone/test-with-guile-module.c
index 14d3afd..babc22b 100644
--- a/test-suite/standalone/test-with-guile-module.c
+++ b/test-suite/standalone/test-with-guile-module.c
@@ -15,6 +15,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <pthread.h>
#include <libguile.h>
--
1.6.0
next prev parent reply other threads:[~2008-09-13 18:16 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-08 14:07 i18n broken on mingw cross compile Han-Wen Nienhuys
2008-09-09 9:30 ` Ludovic Courtès
2008-09-09 14:02 ` Han-Wen Nienhuys
2008-09-09 14:42 ` Ludovic Courtès
2008-09-10 2:38 ` Han-Wen Nienhuys
2008-09-11 19:41 ` Ludovic Courtès
2008-09-12 7:45 ` Ludovic Courtès
2008-09-13 3:27 ` Han-Wen Nienhuys
2008-09-13 3:54 ` Han-Wen Nienhuys
2008-09-13 13:55 ` Ludovic Courtès
2008-09-13 15:13 ` Han-Wen Nienhuys
2008-09-13 18:16 ` Ludovic Courtès [this message]
2008-09-13 18:50 ` Han-Wen Nienhuys
2008-09-13 20:06 ` Ludovic Courtès
2008-09-13 15:47 ` Han-Wen Nienhuys
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hc8j3o9i.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=bug-guile@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).