Branch: refs/heads/master Author: Enrico Tröger enrico.troeger@uvena.de Committer: Enrico Tröger enrico.troeger@uvena.de Date: Sat, 27 Feb 2016 12:21:59 UTC Commit: 5f4e4ef987678d32d3453aa3f66dab75c98e7efb https://github.com/geany/geany-plugins/commit/5f4e4ef987678d32d3453aa3f66dab...
Log Message: ----------- Windows/Mingw support: add check for MINGW environment
Modified Paths: -------------- build/common.m4 configure.ac
Modified: build/common.m4 17 lines changed, 17 insertions(+), 0 deletions(-) =================================================================== @@ -64,3 +64,20 @@ AC_DEFUN([GP_COMMIT_PLUGIN_STATUS], test "$m4_tolower(AS_TR_SH(enable_$1))" = yes) GP_STATUS_PLUGIN_ADD([$1], [$m4_tolower(AS_TR_SH(enable_$1))]) ]) + +dnl GEANY_CHECK_MINGW +dnl Checks whether we're building for MinGW, and defines appropriate stuff +dnl if it is the case. +dnl Most importantly, AM_CODITIONALs MINGW +AC_DEFUN([GP_CHECK_MINGW], +[ + case "${host}" in + *mingw*) + AC_DEFINE([WIN32], [1], [we are cross compiling for WIN32]) + AM_CONDITIONAL([MINGW], true) + ;; + *) + AM_CONDITIONAL([MINGW], false) + ;; + esac +])
Modified: configure.ac 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -26,6 +26,7 @@ GP_CHECK_GTK_VERSION GP_CHECK_CPPCHECK GP_CHECK_CFLAGS GP_CHECK_LDFLAGS +GP_CHECK_MINGW
dnl plugin checks GP_CHECK_ADDONS
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org