* m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
* modules/sqrtl (configure.ac): ... to here.
+2011-05-20  Bruno Haible  <bruno@clisp.org>
+
+       sqrtl: Respect rules for use of AC_LIBOBJ.
+       * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
+       * modules/sqrtl (configure.ac): ... to here.
+
 2011-05-20  Bruno Haible  <bruno@clisp.org>
 
        ldexpl: Respect rules for use of AC_LIBOBJ.
 
-# sqrtl.m4 serial 3
+# sqrtl.m4 serial 4
 dnl Copyright (C) 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
   else
     HAVE_DECL_SQRTL=0
     HAVE_SQRTL=0
-    AC_LIBOBJ([sqrtl])
+    dnl Find libraries needed to link lib/sqrtl.c.
     AC_REQUIRE([gl_FUNC_ISNANL])
     AC_REQUIRE([gl_FUNC_FREXPL])
     AC_REQUIRE([gl_FUNC_LDEXPL])
 
 
 configure.ac:
 gl_FUNC_SQRTL
+if test $HAVE_SQRTL = 0; then
+  AC_LIBOBJ([sqrtl])
+fi
 gl_MATH_MODULE_INDICATOR([sqrtl])
 
 Makefile.am: