From d388d9258c508caa08974033b9dc6f9766a99153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Tue, 2 Mar 2004 17:20:42 +0100 Subject: [PATCH] Added workaround to get the correct $(EXEEXT)='' when compiling with rntcl. Rev: src/nettle/ChangeLog:1.261 Rev: src/nettle/configure.ac:1.36 --- ChangeLog | 5 +++++ configure.ac | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index 37e884f9..b062a2de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-03-02 Niels Möller <niels@s3.kth.se> + + * configure.ac: Added workaround to get the correct $(EXEEXT)='' + when compiling with rntcl. + 2004-03-02 Niels Möller <nisse@lysator.liu.se> * testsuite/Makefile.am (noinst_PROGRAMS): Put test program list diff --git a/configure.ac b/configure.ac index e3e56b9a..5c22814a 100644 --- a/configure.ac +++ b/configure.ac @@ -49,6 +49,20 @@ LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \ # Checks for programs. AC_PROG_CC + +# When $CC foo.c -o foo creates both foo and foo.exe, autoconf picks +# up the foo.exe and sets exeext to .exe. That is correct for cygwin, +# which has some kind of magic link from foo to foo.exe, but not for +# rntcl. A better check for the cygwin case would check if the +# contents of foo and foo.exe are equal; in the rntcl case, foo is a +# sh script, and foo.exe is a windows executable. + +if "x$CC" = xrntcl ; then + AC_MSG_NOTICE([Compiling with rntcl; clearing exeext]) + ac_exeext='' + ac_cv_exeext='' +fi + AC_PROG_MAKE_SET AC_PROG_RANLIB AM_PROG_CC_STDC -- GitLab