From: Adam Dickmeiss Date: Tue, 19 Sep 2006 14:22:54 +0000 (+0000) Subject: Fix LFS check which on some systems, such as Solaris, reports LFS false - X-Git-Tag: ZEBRA.2.0.2~14 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=fe9c1bf692a3a1f8dffa5cd98a9f1e99a3abc604 Fix LFS check which on some systems, such as Solaris, reports LFS false - when LFS is present. The sprintf+long double format check is gone and replaced by a simple arithmetic expression which does the same thing. --- diff --git a/configure.ac b/configure.ac index 0dd501c..e0dd495 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Zebra, Index Data ApS, 1995-2006 -dnl $Id: configure.ac,v 1.27 2006-08-16 13:16:35 adam Exp $ +dnl $Id: configure.ac,v 1.28 2006-09-19 14:22:54 adam Exp $ dnl AC_PREREQ(2.59) AC_INIT([idzebra],[2.0.1],[adam@indexdata.dk]) @@ -250,9 +250,8 @@ int main(int argc, char **argv) if (sizeof(off_t) != 8) exit (1); o = 2000000000; - sprintf (tmp_str, "%Ld", o+o+o); - if (strcmp (tmp_str, "6000000000")) - exit (1); + if ((o+o+o) / 3 != o) + exit(1); fd = creat ("config.tmp", 0644); if (fd < 0) exit (1);