From 2373f7324381c3a9fca2a6ca903d6fc03dcfe8a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Wed, 2 Aug 2000 01:02:18 +0200 Subject: [PATCH] Bugfixes for crosscompilation. Rev: src/modules/Gmp/Makefile.in:1.13 Rev: src/modules/Gmp/configure.in:1.15 --- src/modules/Gmp/Makefile.in | 19 ++++++++++++------- src/modules/Gmp/configure.in | 7 ++----- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/modules/Gmp/Makefile.in b/src/modules/Gmp/Makefile.in index 761fee43d8..04dad43a02 100644 --- a/src/modules/Gmp/Makefile.in +++ b/src/modules/Gmp/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.12 2000/08/01 21:53:22 grubba Exp $ +# $Id: Makefile.in,v 1.13 2000/08/01 23:02:18 grubba Exp $ @make_variables@ VPATH=@srcdir@:@srcdir@/../..:../.. MODULE_LDFLAGS=@LDFLAGS@ @LIBS@ @@ -12,14 +12,19 @@ CONFIG_HEADERS=@CONFIG_HEADERS@ next_prime.o: prime_table.out -prime_table.out: prime_table@CROSS@ - ./prime_table@CROSS@ $(PRIME_LIMIT) >prime_table.out +prime_table.out: prime_table + ./prime_table $(PRIME_LIMIT) >prime_table.out -prime_table: $(SRCDIR)/prime_table.c - $(CC) $(CFLAGS) $(SRCDIR)/prime_table.c -o prime_table +prime_table: prime_table.@CROSS@ + test -f ./prime_table || ln -s prime_table.@CROSS@ ./prime_table -prime_table.pike: $(SRCDIR)/prime_table.pike - test -f prime_table.pike || ln -s $(SRCDIR)/prime_table.pike +# Not cross-compiling +prime_table.no: $(SRCDIR)/prime_table.c + $(CC) $(CFLAGS) $(SRCDIR)/prime_table.c -o prime_table.no + +# Cross-compiling +prime_table.yes: $(SRCDIR)/prime_table.pike + test -f ./prime_table.yes || ln -s $(SRCDIR)/prime_table.pike ./prime_table.yes depend: prime_table.out diff --git a/src/modules/Gmp/configure.in b/src/modules/Gmp/configure.in index 328e90527d..eadc4c542f 100644 --- a/src/modules/Gmp/configure.in +++ b/src/modules/Gmp/configure.in @@ -1,4 +1,4 @@ -# $Id: configure.in,v 1.14 2000/08/01 21:37:47 grubba Exp $ +# $Id: configure.in,v 1.15 2000/08/01 23:02:18 grubba Exp $ AC_INIT(mpz_glue.c) AC_CONFIG_HEADER(gmp_machine.h) AC_ARG_WITH(gmp, [ --with(out)-gmp Support bignums],[],[with_gmp=yes]) @@ -8,10 +8,7 @@ AC_MODULE_INIT() # Check if we're cross-compiling. -CROSS="" -if test "$ac_cv_prog_cc_cross" = "yes"; then - CROSS=".pike" -else :; fi +CROSS="$ac_cv_prog_cc_cross" AC_SUBST(CROSS) ############################################################################# -- GitLab