From 6896332b66200df120860558542ba11aefaceeb0 Mon Sep 17 00:00:00 2001 From: bringert Date: Tue, 10 May 2005 10:45:00 +0000 Subject: Get executable suffix in configure, unify unix and windows make targets. --- src/configure.ac | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/configure.ac') diff --git a/src/configure.ac b/src/configure.ac index da6bc7df1..db855dda4 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -4,12 +4,26 @@ AC_INIT([GF],[2.2],[aarne@cs.chalmers.se],[GF]) AC_PREREQ(2.53) -AC_REVISION($Revision: 1.11 $) +AC_REVISION($Revision: 1.12 $) AC_CONFIG_FILES([config.mk jgf]) AC_CANONICAL_HOST +dnl *********************************************** +dnl Executable suffix +dnl *********************************************** + + +AC_MSG_CHECKING([executable suffix]) +case $host_os in + cygwin) + EXEEXT='.exe';; + *) + EXEEXT='';; +esac +AC_MSG_RESULT(['$EXEEXT']) +AC_SUBST(EXEEXT) dnl *********************************************** dnl GHC -- cgit v1.2.3