File: emscripten.m4

package info (click to toggle)
dpf-plugins 1.7%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 145,392 kB
  • sloc: cpp: 299,894; ansic: 61,512; makefile: 2,222; objc: 1,943; xml: 618; sh: 466; java: 211; python: 184
file content (17 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
AC_DEFUN([AM_EMSCRIPTEN],
[
  AC_MSG_CHECKING(for emscripten compiler)
  emscripten_compiler=no
  AC_TRY_COMPILE([
      #ifndef EMSCRIPTEN
      #error "not an emscripten compiler"
      #endif
      ],[
      ],[
       host=javascript-web-emscripten
       emscripten_compiler=yes
       cross_compiling=yes
      ])
  AC_MSG_RESULT($emscripten_compiler)
  AM_CONDITIONAL(EMSCRIPTEN, [test "x$emscripten_compiler" = "xyes"])
])