re PR ada/88191 (ada bootstrap failure on alpha-linux-gnu ("SIGSYS" not declared...
[official-gcc.git] / libphobos / m4 / gdc.m4
blob1ba8834975a721159aefe57bdc58206635d4a58c
2 # GDC feature checking and sanity check macros
6 # GDC_CHECK_COMPILE
7 # -----------------
8 # Check if compiler can compile D code
9 AC_DEFUN([GDC_CHECK_COMPILE],
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)