roundf
sdl
sdl_video_size
+ setmode
socklen_t
soundcard_h
poll_h
sys_videoio_h
termios_h
threads
+ truncf
winsock2_h
yasm
"
case "$arch" in
i386|i486|i586|i686|i86pc|BePC)
- arch="x86_32"
+ arch="x86"
+ subarch="x86_32"
enable fast_unaligned
;;
x86_64|amd64)
- arch="x86_32"
+ arch="x86"
+ subarch="x86_32"
enable cmov
enable fast_cmov
enable fast_unaligned
- check_cc <<EOF && enable fast_64bit && arch="x86_64"
+ check_cc <<EOF && enable fast_64bit && subarch="x86_64"
int test[sizeof(char*) - 7];
EOF
;;
enable fast_64bit
;;
sun4u|sparc64)
- arch="sparc64"
+ arch="sparc"
+ subarch="sparc64"
enable fast_64bit
;;
sparc)
;;
esac
-enable $arch
-enabled_any x86_32 x86_64 && enable x86
-enabled sparc64 && enable sparc
+enable $arch $subarch
# OS specific
case $target_os in
mingw32*)
target_os=mingw32
LIBTARGET=i386
- if test $arch = x86_64; then
+ if enabled x86_64; then
disable need_memalign
LIBTARGET=x64
fi
check_asm bswap '"bswap %%eax" ::: "%eax"'
- YASMFLAGS="-f $objformat -DARCH_$(toupper $arch)"
+ YASMFLAGS="-f $objformat -DARCH_$(toupper $subarch)"
enabled x86_64 && append YASMFLAGS "-m amd64"
enabled_all x86_64 shared && append YASMFLAGS "-DPIC"
case "$objformat" in
check_func memalign
check_func mkstemp
check_func posix_memalign
+check_func_headers io.h setmode
check_func_headers windows.h GetProcessTimes
check_header conio.h
check_lib math.h sin -lm
# test for C99 functions in math.h
-for func in llrint lrint lrintf round roundf; do
+for func in llrint lrint lrintf round roundf truncf; do
check_exec <<EOF && enable $func || disable $func
#include <math.h>
int main(void) { return ($func(3.999f) > 0)?0:1; }
if enabled shared; then
# LIBOBJFLAGS may have already been set in the OS configuration
if test -z "$LIBOBJFLAGS" ; then
- case "$arch" in
+ case "${subarch-$arch}" in
x86_64|ia64|alpha|sparc*|power*|parisc*|mips*) LIBOBJFLAGS='$(PIC)' ;;
esac
fi
echo "LIB_INSTALL_EXTRA_CMD=${LIB_INSTALL_EXTRA_CMD}" >> config.mak
echo "EXTRALIBS=$extralibs" >> config.mak
+echo "ARCH=$arch" >> config.mak
+
print_config ARCH_ $TMPH config.mak $ARCH_LIST
print_config HAVE_ $TMPH config.mak $HAVE_LIST
print_config CONFIG_ $TMPH config.mak $CONFIG_LIST \