summaryrefslogtreecommitdiff
path: root/macros2/gnome-cxx-check.m4
diff options
context:
space:
mode:
authorMartin Baulig <baulig@suse.de>2000-07-24 14:27:58 +0000
committerMartin Baulig <martin@src.gnome.org>2000-07-24 14:27:58 +0000
commit425e5cc9aad003c9f64d43f2d3f15e04a97db854 (patch)
treecfa7cad1215a5dfc976e480d1a2113eb828bc2b7 /macros2/gnome-cxx-check.m4
parentc978e43ae83a5a7e7fc8fe32538afbffc5812da9 (diff)
downloadshared-mime-info-425e5cc9aad003c9f64d43f2d3f15e04a97db854.tar.gz
Synced with gnome-libs/gnome-data.
2000-07-24 Martin Baulig <baulig@suse.de> Synced with gnome-libs/gnome-data. svn path=/trunk/; revision=1310
Diffstat (limited to 'macros2/gnome-cxx-check.m4')
-rw-r--r--macros2/gnome-cxx-check.m410
1 files changed, 10 insertions, 0 deletions
diff --git a/macros2/gnome-cxx-check.m4 b/macros2/gnome-cxx-check.m4
new file mode 100644
index 00000000..786138c5
--- /dev/null
+++ b/macros2/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)
+])