external: libphidgets/m4/md_check_gcc3.m4
File:
[external] /
libphidgets /
m4 / md_check_gcc3.m4
(
download)
Revision:
1.8,
Wed Feb 23 13:48:57 2005 UTC (5 years, 6 months ago) by
krafft
Branch:
MAIN
CVS Tags:
libphidgets_0_3_6-1, HEAD
Changes since
1.7: +11 -4 lines
minorly improved build system
AC_DEFUN([MD_CHECK_GCC3],
[
if [[ "$GCC" = "yes" ]]; then
ver=$(gcc -dD -E - < /dev/null | sed -ne 's,.*__GNUC__ ,,p')
case $ver in
*[[^[:digit:]]]*)
AC_MSG_WARN([Could not determine compiler version. Trying our luck...])
;;
*)
if [[ $ver -lt 3 ]]; then
AC_MSG_ERROR([Please upgrade your compiler to gcc 3.x.])
fi
;;
esac
fi
])