Skip to content

Commit

Permalink
Merge pull request #247 from tschoonj/configure-fixes
Browse files Browse the repository at this point in the history
configure.ac: fix C++ bindings build on macOS
  • Loading branch information
tschoonj authored Aug 20, 2024
2 parents 28b13ef + cc8f28c commit f5245cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -727,20 +727,20 @@ AM_CONDITIONAL([ENABLE_JAVA],[test x$VALID_JAVA = xyes])

#C++ example
AC_PROG_CXX
if test `AS_BASENAME([$CXX])` = $CXX ; then
if test `AS_BASENAME([$CXX])` = "$CXX" ; then
AC_CHECK_PROG(CXX_FULL, [$CXX], $CXX, [none])
fi
if test x$CXX_FULL != "xnone" ; then
AC_PROG_CXXCPP
AC_LANG_PUSH([C++])
AC_CHECK_HEADERS([cstdio cstdlib], ,[CXX=""])
AC_LANG_POP([C++])
if test x$CXX != x ; then
if test "x$CXX" != x ; then
AC_MSG_NOTICE([C++ example and tests enabled])
AC_SUBST(CXX)
fi
fi
AM_CONDITIONAL([ENABLE_CXX],[test $CXX])
AM_CONDITIONAL([ENABLE_CXX],[test "x$CXX" != x])


#
Expand Down

0 comments on commit f5245cc

Please sign in to comment.