X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Ftruncl.m4;h=c594236afbd504a6810723c7cf336bcd22bcc590;hb=fb733077fcd97a36e1ffdb292387943df8e1b9b4;hp=36dd64829c8355c87f8e5231df04d6ca8e1c0281;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/m4/truncl.m4 b/m4/truncl.m4 index 36dd64829..c594236af 100644 --- a/m4/truncl.m4 +++ b/m4/truncl.m4 @@ -1,4 +1,4 @@ -# truncl.m4 serial 6 +# truncl.m4 serial 8 dnl Copyright (C) 2007-2008, 2010-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -84,10 +84,12 @@ int main() #include ]gl_LONG_DOUBLE_MINUS_ZERO_CODE[ ]gl_LONG_DOUBLE_SIGNBIT_CODE[ -int main() +static long double dummy (long double f) { return 0; } +int main (int argc, char *argv[]) { + long double (*my_truncl) (long double) = argc ? truncl : dummy; /* Test whether truncl (-0.3L) is -0.0L. */ - if (signbitl (minus_zerol) && !signbitl (truncl (-0.3L))) + if (signbitl (minus_zerol) && !signbitl (my_truncl (-0.3L))) return 1; return 0; } @@ -107,7 +109,7 @@ int main() HAVE_DECL_TRUNCL=0 fi if test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; then - AC_LIBOBJ([truncl]) + dnl No libraries are needed to link lib/truncl.c. TRUNCL_LIBM= fi AC_SUBST([TRUNCL_LIBM])