configure.in
changeset 3012 7e30c2dc7783
parent 3007 b30409e106f2
child 3014 cacb282192a1
     1.1 --- a/configure.in	Fri Jan 09 20:43:30 2009 +0000
     1.2 +++ b/configure.in	Sat Jan 10 18:32:24 2009 +0000
     1.3 @@ -129,6 +129,9 @@
     1.4          have_inttypes=yes
     1.5      fi
     1.6  
     1.7 +    dnl Check for defines
     1.8 +    AC_CHECK_DEFINE(M_PI, math.h)
     1.9 +
    1.10      dnl Checks for library functions.
    1.11      case "$host" in
    1.12      *-*-cygwin* | *-*-mingw32*)
    1.13 @@ -146,10 +149,10 @@
    1.14      if test x$ac_cv_func_strtod = xyes; then
    1.15          AC_DEFINE(HAVE_STRTOD)
    1.16      fi
    1.17 -    AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep)
    1.18 +    AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf copysign cos cosf fabs floor log pow scalbn sin sinf sqrt iconv sigaction setjmp nanosleep)
    1.19  
    1.20 +    AC_CHECK_LIB(m, pow, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
    1.21      AC_CHECK_LIB(iconv, libiconv_open, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
    1.22 -    AC_CHECK_LIB(m, pow, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
    1.23  fi
    1.24  
    1.25  if test x$have_inttypes != xyes; then