aboutsummaryrefslogblamecommitdiffstats
path: root/macros/gnome-cxx-check.m4
blob: 786138c5d9bf957366a2fcc979dd444da60fc886 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                     
 





                                                                   
  
dnl GNOME_CHECK_CXX(not_found_string)
AC_DEFUN(GNOME_CHECK_CXX,
[
  # see if a C++ compiler exists and works
  AC_REQUIRE([AC_PROG_CXX])dnl
  if test "x$ac_cv_prog_cxx_works" = xno; then
    AC_MSG_WARN(ifelse([$1], , "No C++ compiler", [$1]))
  fi
  AM_CONDITIONAL(CXX_PRESENT, test "x$ac_cv_prog_cxx_works" != xno)
])