1*81418a27Smrg# 2*81418a27Smrg# GDC feature checking and sanity check macros 3*81418a27Smrg# 4*81418a27Smrg 5*81418a27Smrg 6*81418a27Smrg# GDC_CHECK_COMPILE 7*81418a27Smrg# ----------------- 8*81418a27Smrg# Check if compiler can compile D code 9*81418a27SmrgAC_DEFUN([GDC_CHECK_COMPILE], 10*81418a27Smrg[ 11*81418a27Smrg AC_LANG_PUSH(D) 12*81418a27Smrg AC_MSG_CHECKING([[If $GDC can compile D sources]]) 13*81418a27Smrg AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[return 0;]])], 14*81418a27Smrg [AC_MSG_RESULT([[yes]])], 15*81418a27Smrg [AC_MSG_RESULT([[no]]) 16*81418a27Smrg AC_MSG_ERROR([[can't compile D sources!]])]) 17*81418a27Smrg AC_LANG_POP(D) 18*81418a27Smrg]) 19