The logs show: checking whether truncl works... no
configure:54938: checking whether truncl works configure:54962: xlc -o conftest -g -D_THREAD_SAFE conftest.c >&5 ld: 0711-317 ERROR: Undefined symbol: .trunc So here it's the configure test which is broken: it does not use -lm. This should fix it: 2010-07-30 Bruno Haible <br...@clisp.org> truncl: Fix autoconf test. * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing whether truncl works. Reported by Rainer Tammer. --- m4/truncl.m4.orig Fri Jul 30 21:06:35 2010 +++ m4/truncl.m4 Fri Jul 30 11:19:29 2010 @@ -1,4 +1,4 @@ -# truncl.m4 serial 4 +# truncl.m4 serial 5 dnl Copyright (C) 2007-2008, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -40,6 +40,8 @@ TRUNCL_LIBM= fi dnl Test whether truncl() works. It crashes on OSF/1 4.0d. + save_LIBS="$LIBS" + LIBS="$LIBS $TRUNCL_LIBM" AC_CACHE_CHECK([whether truncl works], [gl_cv_func_truncl_works], [ AC_TRY_RUN([ @@ -56,6 +58,7 @@ esac ]) ]) + LIBS="$save_LIBS" case "$gl_cv_func_truncl_works" in *yes) ;; *) REPLACE_TRUNCL=1 ;;