Powf patch

This commit is contained in:
Adrián Arroyo Calle
2013-12-14 12:47:16 +00:00
parent fead4adde6
commit b353d269c8

View File

@@ -1,12 +1,11 @@
diff --git a/configure.in b/configure.in
index 016ea95..b114016 100644
index 016ea95..f222548 100644
--- a/configure.in
+++ b/configure.in
@@ -120,16 +120,6 @@ d_test.d_type = 0;
}],[AC_MSG_RESULT(yes);AC_DEFINE(DIRENT_HAS_D_TYPE,1,[struct dirent has d_type])],AC_MSG_RESULT(no))
@@ -121,13 +121,7 @@ d_test.d_type = 0;
-dnl Check for powf
dnl Check for powf
-AC_MSG_CHECKING(for powf in libm);
-LIBS_BACKUP=$LIBS;
-LIBS="$LIBS -lm";
@@ -14,8 +13,7 @@ index 016ea95..b114016 100644
- powf(1.0f, 1.0f);
-]])], [AC_MSG_RESULT(yes)], [AC_DEFINE([DB_HAVE_NO_POWF],[1],[libm doesn't include powf])])
-LIBS=$LIBS_BACKUP
-
-
dnl Checks for libraries.
+AC_SEARCH_LIBS([powf],[m], [AC_MSG_RESULT(yes)], [AC_DEFINE([DB_HAVE_NO_POWF],[1],[no powf function avalible])])
#Check if the compiler support attributes
dnl Checks for libraries.