From a23a5505c4f9048b2275d297913118d828cc85af Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 14 Oct 2017 13:20:58 -0400 Subject: [PATCH] configure: Check compiler works. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 350013c93..501239c1d 100644 --- a/configure.ac +++ b/configure.ac @@ -106,6 +106,10 @@ AC_TYPE_SIZE_T # Checks for compiler characteristics. AC_C_INLINE +AC_LINK_IFELSE( + [AC_LANG_PROGRAM([], [[int* a=new int; delete a; ]])], + [], [AC_MSG_ERROR([$CXX does not seem to successfully compile a simple C++ program])]) + AC_DEFUN([_MY_CXX_CHECK_FLAG], [# _MY_CXX_CHECK_FLAG(flag) -- Check if compiler supports specific options # Set $_my_result appropriately