File: check_mingw.m4

package info (click to toggle)
simulavr 1.0.0%2Bgit20160221.e53413b-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 5,748 kB
  • sloc: cpp: 35,491; python: 6,991; ansic: 3,567; makefile: 1,072; sh: 653; asm: 414; tcl: 320
file content (20 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# AC_SYS_CHECK_MINGW( )
# -----------------
# Checks, if build system is MSYS/MingW or not.
# Sets SYS_MINGW for makefile usage and HAVE_SYS_MINGW for usage in C code
# Further sets shell variable ac_sys_check_uname_o with result of "uname -o"

AC_DEFUN([AC_SYS_CHECK_MINGW], [
  AC_MSG_CHECKING(whether build system is MSYS/MingW)
  ac_sys_check_uname_o=`uname -s | cut -b-7`
  if test "$ac_sys_check_uname_o" = "MINGW32"; then
    AM_CONDITIONAL([SYS_MINGW], [true])
    AC_DEFINE([HAVE_SYS_MINGW], [1], [Define to 1 if you build simulavr on windows with MSYS/MingW])
    AC_MSG_RESULT(yes)
  else
    AC_MSG_RESULT(no)
    AM_CONDITIONAL([SYS_MINGW], [false])
  fi
])

# EOF