changeset 8601:da02a1d15783 HEAD

configure: Test strtoumax() and strtoimax() by linking instead of just compiling (Tru64 fix).
author Timo Sirainen <tss@iki.fi>
date Thu, 08 Jan 2009 12:22:11 -0500
parents 7c12e20f1eee
children 06c641b17175
files configure.in
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Thu Jan 08 11:52:21 2009 -0500
+++ b/configure.in	Thu Jan 08 12:22:11 2009 -0500
@@ -375,8 +375,9 @@
 	       walkcontext dirfd clearenv malloc_usable_size clock_gettime)
 
 dnl strtoimax and strtoumax are macros in HP-UX, so inttypes.h must be included
+dnl Link instead of just compiling since there's something wrong with Tru64
 AC_MSG_CHECKING([for strtoimax])
-AC_TRY_COMPILE([
+AC_TRY_LINK([
   #include <inttypes.h>
 ], [
   strtoimax(0, 0, 0);
@@ -388,7 +389,7 @@
 ])
 
 AC_MSG_CHECKING([for strtoumax])
-AC_TRY_COMPILE([
+AC_TRY_LINK([
   #include <inttypes.h>
 ], [
   strtoumax(0, 0, 0);