
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 0.83 KB | hits: 15 | expires: Never
diff -ur cairo-fb03eba44f1ae7dd76dd3db82bfb55b06b0932ae/configure.ac cairo-1.9.10/configure.ac
--- cairo-fb03eba44f1ae7dd76dd3db82bfb55b06b0932ae/configure.ac 2010-07-08 20:06:08.000000000 +0200
+++ cairo-1.9.10/configure.ac 2010-07-09 01:34:43.000000000 +0200
@@ -15,6 +15,15 @@
AC_PROG_LIBTOOL dnl ([1.4]) Don't remove!
GTK_DOC_CHECK([1.6])
+dnl Check if we have a C++ compiler, needed to link libcairo.so
+dnl AC_PROG_CXX does not abort in case no compiler is found.
+dnl Thus checking if ac_ct_CXX is empty (checking CXX would not work,
+dnl as in case no compiler is found, it's set to be g++)
+AC_PROG_CXX
+if test -z "$ac_ct_CXX"; then
+ AC_ERROR(["No C++ compiler found! Will not be able to link libcairo"])
+fi
+
AC_SYS_LARGEFILE
dnl ===========================================================================