Fixed building on command line Mac OS X
authorSam Lantinga <slouken@libsdl.org>
Sat, 07 Jun 2014 20:43:12 -0700
changeset 8842f587255157cf
parent 8841 b7f41b4a7929
child 8843 ef2955271c4f
Fixed building on command line Mac OS X
CMakeLists.txt
configure
configure.in
src/libm/s_tan.c
     1.1 --- a/CMakeLists.txt	Sat Jun 07 18:20:25 2014 -0700
     1.2 +++ b/CMakeLists.txt	Sat Jun 07 20:43:12 2014 -0700
     1.3 @@ -494,7 +494,7 @@
     1.4              strlen _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
     1.5              _ultoa strtol strtoul strtoll strtod atoi atof strcmp strncmp
     1.6              _stricmp _strnicmp sscanf atan atan2 acos asin ceil copysign cos
     1.7 -            cosf fabs floor log pow scalbn sin sinf sqrt)
     1.8 +            cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf)
     1.9        string(TOUPPER ${_FN} _UPPER)
    1.10        set(HAVE_${_UPPER} 1)
    1.11      endforeach()
    1.12 @@ -541,7 +541,7 @@
    1.13        set(CMAKE_REQUIRED_LIBRARIES m)
    1.14        foreach(_FN
    1.15                atan atan2 ceil copysign cos cosf fabs floor log pow scalbn sin
    1.16 -              sinf sqrt)
    1.17 +              sinf sqrt sqrtf tan tanf)
    1.18          string(TOUPPER ${_FN} _UPPER)
    1.19          set(_HAVEVAR "HAVE_${_UPPER}")
    1.20          check_function_exists("${_FN}" ${_HAVEVAR})
     2.1 --- a/configure	Sat Jun 07 18:20:25 2014 -0700
     2.2 +++ b/configure	Sat Jun 07 20:43:12 2014 -0700
     2.3 @@ -16639,7 +16639,7 @@
     2.4    LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
     2.5  fi
     2.6  
     2.7 -    for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt tan tanf
     2.8 +    for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
     2.9  do :
    2.10    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    2.11  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     3.1 --- a/configure.in	Sat Jun 07 18:20:25 2014 -0700
     3.2 +++ b/configure.in	Sat Jun 07 20:43:12 2014 -0700
     3.3 @@ -271,7 +271,7 @@
     3.4      AC_CHECK_FUNCS(malloc calloc realloc free getenv setenv 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 vsscanf vsnprintf fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname)
     3.5  
     3.6      AC_CHECK_LIB(m, pow, [LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"])
     3.7 -    AC_CHECK_FUNCS(atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt tan tanf)
     3.8 +    AC_CHECK_FUNCS(atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf)
     3.9  
    3.10      AC_CHECK_LIB(iconv, iconv_open, [LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
    3.11      AC_CHECK_FUNCS(iconv)
     4.1 --- a/src/libm/s_tan.c	Sat Jun 07 18:20:25 2014 -0700
     4.2 +++ b/src/libm/s_tan.c	Sat Jun 07 20:43:12 2014 -0700
     4.3 @@ -39,7 +39,7 @@
     4.4   *	TRIG(x) returns trig(x) nearly rounded
     4.5   */
     4.6  
     4.7 -#include "math.h"
     4.8 +#include "math_libm.h"
     4.9  #include "math_private.h"
    4.10  
    4.11  double tan(double x)