Fix MacOS portability, bug1232.

This commit is contained in:
Wilson Snyder 2017-10-15 10:36:50 -04:00
parent 5fb21c2159
commit f5dfa1e9c3
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,9 @@ The contributors that suggested a given feature are shown in []. Thanks!
* Verilator 3.915 devel
**** Fix MacOS portability, bug1232. [Jeff Bush]
* Verilator 3.914 2017-10-14
** Added new examples/ directory with appropriate examples. This replaces the

View File

@ -107,7 +107,7 @@ AC_TYPE_SIZE_T
AC_C_INLINE
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([], [[int* a=new int; delete a; ]])],
[AC_LANG_PROGRAM([#include <new>], [[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],
@ -119,7 +119,7 @@ AC_DEFUN([_MY_CXX_CHECK_FLAG],
CXXFLAGS="$CXXFLAGS $1 -Werror"
AC_MSG_CHECKING([whether $CXX accepts $1])
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([], [[int* a=new int; delete a; ]])],
[AC_LANG_PROGRAM([#include <new>], [[int* a=new int; delete a; ]])],
[_my_result=yes
if test -s conftest.err; then
if grep -e "$1" conftest.err >/dev/null; then