diff options
author | Martin Baulig <baulig@suse.de> | 2000-07-24 14:27:58 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 2000-07-24 14:27:58 +0000 |
commit | 425e5cc9aad003c9f64d43f2d3f15e04a97db854 (patch) | |
tree | cfa7cad1215a5dfc976e480d1a2113eb828bc2b7 /macros2/gnome-cxx-check.m4 | |
parent | c978e43ae83a5a7e7fc8fe32538afbffc5812da9 (diff) | |
download | shared-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.m4 | 10 |
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) +]) |