[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
truncl on AIX 7.1BETA
From: |
Bruno Haible |
Subject: |
truncl on AIX 7.1BETA |
Date: |
Fri, 30 Jul 2010 21:18:24 +0200 |
User-agent: |
KMail/1.9.9 |
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 <address@hidden>
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 ;;
- chown on AIX 7.1BETA, (continued)
- chown on AIX 7.1BETA, Bruno Haible, 2010/07/30
- fopen, open on AIX 7.1BETA, Bruno Haible, 2010/07/30
- frexpl on AIX 7.1BETA, Bruno Haible, 2010/07/30
- ldexpl on AIX 7.1BETA, Bruno Haible, 2010/07/30
- getopt on AIX 7.1BETA, Bruno Haible, 2010/07/30
- iconv on AIX 7.1BETA, Bruno Haible, 2010/07/30
- Re: iconv on AIX 7.1BETA, Rainer Tammer, 2010/07/30
- printf on AIX 7.1BETA, Bruno Haible, 2010/07/30
- rename on AIX 7.1BETA, Bruno Haible, 2010/07/30
- round on AIX 7.1BETA, Bruno Haible, 2010/07/30
- truncl on AIX 7.1BETA,
Bruno Haible <=
- stat on AIX 7.1BETA, Bruno Haible, 2010/07/30
- strndup on AIX 7.1BETA, Bruno Haible, 2010/07/30
- symlink on AIX 7.1BETA, Bruno Haible, 2010/07/30
- unlink on AIX 7.1BETA, Bruno Haible, 2010/07/30
- strtok_r on AIX 7.1BETA, Bruno Haible, 2010/07/30
- wcwidth on AIX 7.1BETA, Bruno Haible, 2010/07/30
- futimens on AIX 7.1BETA, Bruno Haible, 2010/07/30
- Re: futimens on AIX 7.1BETA, Eric Blake, 2010/07/30
- getline on AIX 7.1BETA, Bruno Haible, 2010/07/30
- Re: M4 1.4.14 on AIX 7.1BETA, Bruno Haible, 2010/07/30