summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index b291200c114..5af41d29c21 100644
--- a/configure.in
+++ b/configure.in
@@ -370,9 +370,14 @@ then
if echo $CXX | grep gcc > /dev/null 2>&1
then
- if $CXX -v 2>&1 | grep 'version 3' > /dev/null 2>&1
+ AC_MSG_CHECKING([if CXX is gcc 3 or 4])
+ if $CXX -v 2>&1 | grep 'version [[34]]' > /dev/null 2>&1
then
+ AC_MSG_RESULT([yes])
+ AC_MSG_NOTICE([using MySQL tricks to avoid linking C++ code with C++ libraries])
CXXFLAGS="$CXXFLAGS -DUSE_MYSYS_NEW -DDEFINE_CXA_PURE_VIRTUAL"
+ else
+ AC_MSG_RESULT([no])
fi
fi
fi