summaryrefslogtreecommitdiff
path: root/macros/gnome-cxx-check.m4
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-03-05 16:57:29 +0000
committerDan Winship <danw@src.gnome.org>2002-03-05 16:57:29 +0000
commitbef442d6ae99db3e3a4e1c2f026c97cd813b41d6 (patch)
tree3714dcade0783d6bb1e8ce9e707c2e783b9bb4b4 /macros/gnome-cxx-check.m4
parentfa9f9f29a7a287c1e8a4a8f00cbba0389264577e (diff)
downloadshared-mime-info-bef442d6ae99db3e3a4e1c2f026c97cd813b41d6.tar.gz
I'm not dead yet!
svn path=/trunk/; revision=2345
Diffstat (limited to 'macros/gnome-cxx-check.m4')
-rw-r--r--macros/gnome-cxx-check.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/macros/gnome-cxx-check.m4 b/macros/gnome-cxx-check.m4
new file mode 100644
index 00000000..3c54d62b
--- /dev/null
+++ b/macros/gnome-cxx-check.m4
@@ -0,0 +1,10 @@
+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)
+])