Backport from gcc-5-branch.
* configure.ac: Define HAVE_FTRUNCATE for ARM/AArch64/SH newlib
builds.
* configure: Regenerate.
From-SVN: r227304
+2015-08-28 James Greenhalgh <james.greenhalgh@arm.com>
+
+ Backport from gcc-5-branch.
+ 2015-08-28 James Greenhalgh <james.greenhalgh@arm.com>
+
+ * configure.ac: Define HAVE_FTRUNCATE for ARM/AArch64/SH newlib
+ builds.
+ * configure: Regenerate.
+
2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR libfortran/66936
$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
fi
+
+ # ARM, AArch64 and SH also provide ftruncate.
+ case "${host}" in
+ arm* | aarch64* | sh*)
+
+$as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
+
+ ;;
+ esac
else
if test x"long_double_math_on_this_cpu" = x"yes"; then
AC_DEFINE(HAVE_STRTOLD, 1, [Define if you have strtold.])
fi
+
+ # ARM, AArch64 and SH also provide ftruncate.
+ case "${host}" in
+ arm* | aarch64* | sh*)
+ AC_DEFINE(HAVE_FTRUNCATE, 1, [Define if you have ftruncate.])
+ ;;
+ esac
else
AC_CHECK_FUNCS_ONCE(getrusage times mkstemp strtof strtold snprintf \
ftruncate chsize chdir getlogin gethostname kill link symlink sleep ttyname \