Browse Source

Merge 07cb730bf3 into f42aa68fc7

pull/76/merge
Levi Zim GitHub 1 year ago
parent
commit
c5296a401e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      configure.ac

+ 5
- 0
configure.ac View File

@@ -145,6 +145,9 @@ AC_COMPILE_IFELSE(
AC_DEFINE(HAVE_SLEEP, 1, [Define to 1 if you have the ‘Sleep’ function.])],
[AC_MSG_RESULT(no)])

# Disable LTO when checking for the instructions
CFLAGS="${CFLAGS} -fno-lto"

AC_MSG_CHECKING(for fsin/fcos)
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
@@ -163,6 +166,8 @@ AC_COMPILE_IFELSE(
AC_DEFINE(HAVE_FLDLN2, 1, [Define to 1 if you have the ‘fldln2’ and other floating point instructions.])],
[AC_MSG_RESULT(no)])

CFLAGS="${CFLAGS%$' -fno-lto'}"

AC_CHECK_HEADERS(zlib.h)
AC_CHECK_LIB(z, gzopen, [ZLIB_LIBS="${ZLIB_LIBS} -lz"])



Loading…
Cancel
Save