Browse Source

Bugfix: configure: Use dummy pointer to correctly detect roundl when conftest main is missing argc parameter

Luke Dashjr 12 years ago
parent
commit
add76ade60
1 changed files with 1 additions and 1 deletions
  1. 1 1
      configure.ac

+ 1 - 1
configure.ac

@@ -563,7 +563,7 @@ LIBS="$LIBS -lm"
 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 	#include <math.h>
 ]], [[
-	return (roundl((long double)argc) == 1.0);
+	return (roundl(*(long double *)0xdeadbeef) == 1.0);
 ]])], [
 	AC_MSG_RESULT([yes])
 ], [