diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-12-22 21:53:33 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-12-22 21:53:33 +0200 |
commit | 6b7b05f011d15d8b12ee497a26d6dc69cbf445ed (patch) | |
tree | 41773b2909ef42bfe049b0b37ab5c6a95598e019 | |
parent | 0c31cf60d2777573de6b34f239a2c4c21bbb8bfc (diff) | |
download | egawk-6b7b05f011d15d8b12ee497a26d6dc69cbf445ed.tar.gz egawk-6b7b05f011d15d8b12ee497a26d6dc69cbf445ed.tar.bz2 egawk-6b7b05f011d15d8b12ee497a26d6dc69cbf445ed.zip |
Fix for building on Windows with msys2.
-rw-r--r-- | ChangeLog | 5 | ||||
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | configure.ac | 2 |
3 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2019-12-22 Jannick <thirdedition@gmx.net> + + * configure.ac: Hardcode the shared object extension to dll + on Windows platforms, i.e.whenever EXEEXT is '.exe'. + 2019-12-22 Arnold D. Robbins <arnold@skeeve.com> * gettext.h: Update from gettext 0.20.1. @@ -11057,11 +11057,17 @@ ac_config_headers="$ac_config_headers config.h:configh.in" +if test "x$EXEEXT" = x.exe; then : + GAWKLIBEXT=dll +else + case $acl_shlibext in dylib) GAWKLIBEXT=so ;; # MacOS uses .dylib for shared libraries, but libtool uses .so for modules *) GAWKLIBEXT=$acl_shlibext ;; esac +fi + ac_config_files="$ac_config_files Makefile support/Makefile awklib/Makefile doc/Makefile extras/Makefile po/Makefile.in test/Makefile" diff --git a/configure.ac b/configure.ac index f353cea3..af3432cb 100644 --- a/configure.ac +++ b/configure.ac @@ -458,10 +458,12 @@ AH_BOTTOM([#include "custom.h"]) dnl Crude but small hack to make plug-ins work on Mac OS X dnl We should really use the libtool value for shrext_cmds, but that dnl is not available here, since we do not use libtool at the top level. +AS_VAR_IF([EXEEXT],[.exe],[GAWKLIBEXT=dll],[ case $acl_shlibext in dylib) GAWKLIBEXT=so ;; # MacOS uses .dylib for shared libraries, but libtool uses .so for modules *) GAWKLIBEXT=$acl_shlibext ;; esac +]) AC_SUBST(GAWKLIBEXT) AC_CONFIG_FILES(Makefile |