mirror of
https://github.com/verilator/verilator.git
synced 2025-01-05 22:27:35 +00:00
configure: Check compiler works.
This commit is contained in:
parent
21030f0a4f
commit
a23a5505c4
@ -106,6 +106,10 @@ AC_TYPE_SIZE_T
|
|||||||
# Checks for compiler characteristics.
|
# Checks for compiler characteristics.
|
||||||
AC_C_INLINE
|
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],
|
AC_DEFUN([_MY_CXX_CHECK_FLAG],
|
||||||
[# _MY_CXX_CHECK_FLAG(flag) -- Check if compiler supports specific options
|
[# _MY_CXX_CHECK_FLAG(flag) -- Check if compiler supports specific options
|
||||||
# Set $_my_result appropriately
|
# Set $_my_result appropriately
|
||||||
|
Loading…
Reference in New Issue
Block a user