dovecot-1.1: configure: Test strtoumax() and strtoimax() by link...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jan 8 19:22:15 EET 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/0041d055acac
changeset: 8077:0041d055acac
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 08 12:22:11 2009 -0500
description:
configure: Test strtoumax() and strtoimax() by linking instead of just compiling (Tru64 fix).

diffstat:

1 file changed, 3 insertions(+), 2 deletions(-)
configure.in |    5 +++--

diffs (23 lines):

diff -r fec8412dc1c5 -r 0041d055acac configure.in
--- a/configure.in	Thu Jan 08 11:51:50 2009 -0500
+++ b/configure.in	Thu Jan 08 12:22:11 2009 -0500
@@ -462,8 +462,9 @@ AC_CHECK_FUNCS(fcntl flock lockf inet_at
 	       walkcontext dirfd clearenv malloc_usable_size unsetenv)
 
 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);
@@ -475,7 +476,7 @@ AC_TRY_COMPILE([
 ])
 
 AC_MSG_CHECKING([for strtoumax])
-AC_TRY_COMPILE([
+AC_TRY_LINK([
   #include <inttypes.h>
 ], [
   strtoumax(0, 0, 0);


More information about the dovecot-cvs mailing list