Check for missing sqrtf() as, e.g., for Solaris 9
authorPeter Breitenlohner <peb@mppmu.mpg.de>
Mon, 8 Apr 2013 11:13:05 +0000 (13:13 +0200)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 8 Apr 2013 18:33:25 +0000 (14:33 -0400)
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
configure.ac

index 38f89b3..b4d6c0c 100644 (file)
@@ -845,6 +845,13 @@ if test x$have_gettimeofday = xyes && test x$have_sys_time_h = xyes; then
 fi
 
 dnl =====================================
+dnl Check for missing sqrtf() as, e.g., for Solaris 9
+
+AC_SEARCH_LIBS([sqrtf], [m], [],
+               [AC_DEFINE([sqrtf], [sqrt],
+                          [Define to sqrt if you do not have the `sqrtf' function.])])
+
+dnl =====================================
 dnl Thread local storage
 
 AC_MSG_CHECKING(for thread local storage (TLS) support)