tgmath.h on freebsd is horribly broken and should never be used until they fix their operating system

This commit is contained in:
Michael Jerris 2014-02-19 16:13:51 -05:00
parent b40dd8a374
commit bf9e3a1f9e
1 changed files with 9 additions and 1 deletions

View File

@ -198,7 +198,15 @@ AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADERS([string.h])
AC_CHECK_HEADERS([strings.h])
AC_CHECK_HEADERS([malloc.h])
AC_CHECK_HEADERS([tgmath.h], [INSERT_TGMATH_HEADER="#include <tgmath.h>"])
case "$host" in
*freebsd*)
;;
*)
AC_CHECK_HEADERS([tgmath.h], [INSERT_TGMATH_HEADER="#include <tgmath.h>"])
;;
esac
AC_CHECK_HEADERS([math.h], [INSERT_MATH_HEADER="#include <math.h>"])
AC_CHECK_HEADERS([float.h])
AC_CHECK_HEADERS([fcntl.h])