56 |
|
AC_TYPE_SIZE_T |
57 |
|
|
58 |
|
dnl Checks for library functions. |
59 |
< |
AC_CHECK_FUNCS(exp2f log2f exp2 log2 trunc) |
59 |
> |
AC_CHECK_FUNCS(strdup strerror) |
60 |
> |
AC_CHECK_FUNCS(exp2f log2f exp2 log2) |
61 |
> |
AC_CHECK_FUNCS(floorf roundf ceilf truncf) |
62 |
> |
AC_CHECK_FUNCS(floor round ceil trunc) |
63 |
|
|
64 |
|
dnl Define a macro that translates a yesno-variable into a C macro definition |
65 |
|
dnl to be put into the config.h file |
174 |
|
#endif |
175 |
|
], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no)) |
176 |
|
|
177 |
+ |
dnl Add -fno-strict-aliasing for slirp sources |
178 |
+ |
if [[ "x$HAVE_GCC30" = "xyes" ]]; then |
179 |
+ |
SAVED_CFLAGS="$CFLAGS" |
180 |
+ |
CFLAGS="$CFLAGS -fno-strict-aliasing" |
181 |
+ |
AC_CACHE_CHECK([whether the compiler supports -fno-strict-aliasing], |
182 |
+ |
ac_cv_gcc_no_strict_aliasing, [ |
183 |
+ |
AC_TRY_COMPILE([],[], |
184 |
+ |
[ac_cv_gcc_no_strict_aliasing=yes; AC_SUBST(SLIRP_CFLAGS, "-fno-strict-aliasing")], |
185 |
+ |
[ac_cv_gcc_no_strict_aliasing=no]) |
186 |
+ |
]) |
187 |
+ |
CFLAGS="$SAVED_CFLAGS" |
188 |
+ |
fi |
189 |
+ |
|
190 |
|
dnl CPU emulator sources |
191 |
|
CPUSRCS="\ |
192 |
|
../kpx_cpu/src/mathlib/ieeefp.cpp \ |