forked from Imagelibrary/rtems
We always build a C++ compiler and building with C++ does not effect RTEMS or the runtime. This patch always enabled the support. There is no need to manually enable it any more. You can disable C++ with '--disable-cxx'. If an architecture does not have a C++ compiler support is automatically disabled.
12 lines
304 B
Plaintext
12 lines
304 B
Plaintext
AC_DEFUN([RTEMS_ENABLE_CXX],
|
|
[
|
|
AC_ARG_ENABLE(cxx,
|
|
[AS_HELP_STRING([--enable-cxx],
|
|
[enable C++ support])],
|
|
[case "${enable_cxx}" in
|
|
yes) RTEMS_HAS_CPLUSPLUS=yes ;;
|
|
no) RTEMS_HAS_CPLUSPLUS=no ;;
|
|
*) AC_MSG_ERROR(bad value ${enableval} for enable-cxx option) ;;
|
|
esac], [RTEMS_HAS_CPLUSPLUS=yes])
|
|
])
|