Changeset 440 for trunk/aclocal.m4
- Timestamp:
- Aug 30, 2013, 9:36:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aclocal.m4
r415 r440 2116 2116 ])]) 2117 2117 2118 2118 AC_DEFUN([SH_GCC_VERSION], [ 2119 GCC_VERSION="" 2120 gcc_VERSION_MAJOR=0 2121 gcc_VERSION_MINOR=0 2122 AC_MSG_CHECKING([for gcc version]) 2123 if test "x$GCC" = "xyes" 2124 then 2125 $CC -dumpversion >/dev/null 2>&1 2126 if test $? -eq 0 2127 then 2128 GCC_VERSION=`$CC -dumpversion` 2129 gcc_VERSION_MAJOR=`echo $GCC_VERSION | cut -d'.' -f1` 2130 gcc_VERSION_MINOR=`echo $GCC_VERSION | cut -d'.' -f2` 2131 AC_DEFINE_UNQUOTED(GCC_VERSION_MAJOR, [${gcc_VERSION_MAJOR}], [gcc version major]) 2132 AC_DEFINE_UNQUOTED(GCC_VERSION_MINOR, [${gcc_VERSION_MINOR}], [gcc version minor]) 2133 AC_MSG_RESULT([$GCC_VERSION]) 2134 else 2135 AC_MSG_RESULT([$CC -dumpversion working]) 2136 fi 2137 else 2138 AC_MSG_RESULT([compiler is not gcc]) 2139 fi 2140 ]) 2119 2141 2120 2142
Note:
See TracChangeset
for help on using the changeset viewer.