Home | History | Annotate | Line # | Download | only in m4
      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
      9 AC_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