aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome-cxx-check.m4
diff options
context:
space:
mode:
authorMarcin Gorycki <mgo@src.gnome.org>1999-01-19 16:23:48 +0800
committerMarcin Gorycki <mgo@src.gnome.org>1999-01-19 16:23:48 +0800
commit6b547a4d981c062257049a2cc3d3fbfa6a772d83 (patch)
tree691da0a659e314aa9c8da75a79cb90e1dc368daa /macros/gnome-cxx-check.m4
parentb845cac9cc9787b4e670d4ca11fae4336373797e (diff)
downloadgsoc2013-evolution-6b547a4d981c062257049a2cc3d3fbfa6a772d83.tar
gsoc2013-evolution-6b547a4d981c062257049a2cc3d3fbfa6a772d83.tar.gz
gsoc2013-evolution-6b547a4d981c062257049a2cc3d3fbfa6a772d83.tar.bz2
gsoc2013-evolution-6b547a4d981c062257049a2cc3d3fbfa6a772d83.tar.lz
gsoc2013-evolution-6b547a4d981c062257049a2cc3d3fbfa6a772d83.tar.xz
gsoc2013-evolution-6b547a4d981c062257049a2cc3d3fbfa6a772d83.tar.zst
gsoc2013-evolution-6b547a4d981c062257049a2cc3d3fbfa6a772d83.zip
initial rev.
svn path=/trunk/; revision=611
Diffstat (limited to 'macros/gnome-cxx-check.m4')
-rw-r--r--macros/gnome-cxx-check.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/macros/gnome-cxx-check.m4 b/macros/gnome-cxx-check.m4
new file mode 100644
index 0000000000..8d76eb9d80
--- /dev/null
+++ b/macros/gnome-cxx-check.m4
@@ -0,0 +1,15 @@
+AC_DEFUN([GNOME_CHECK_CXX],
+[
+ AC_CHECK_PROG(cxx_found, c++, yes, no)
+ AC_CHECK_PROG(cxx_found, g++, yes, no)
+ AC_CHECK_PROG(cxx_found, CC, yes, no)
+ AC_CHECK_PROG(cxx_found, cxx, yes, no)
+ AC_CHECK_PROG(cxx_found, cc++, yes, no)
+
+ if test "x$cxx_found" = "xyes"; then
+ AC_PROG_CXX
+ else
+ AC_MSG_WARN(No C++ compiler - gnometris will not be built!)
+ fi
+ AM_CONDITIONAL(CXX_PRESENT, test "x$cxx_found" = xyes)
+])