xref: /netbsd-src/external/gpl3/gcc.old/dist/libphobos/m4/gdc.m4 (revision 627f7eb200a4419d89b531d55fccd2ee3ffdcde0)
1#
2# GDC feature checking and sanity check macros
3#
4
5
6# GDC_CHECK_COMPILE
7# -----------------
8# Check if compiler can compile D code
9AC_DEFUN([GDC_CHECK_COMPILE],
10[
11  AC_LANG_PUSH(D)
12    AC_MSG_CHECKING([[If $GDC can compile D sources]])
13    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[return 0;]])],
14      [AC_MSG_RESULT([[yes]])],
15      [AC_MSG_RESULT([[no]])
16       AC_MSG_ERROR([[can't compile D sources!]])])
17  AC_LANG_POP(D)
18])
19