3
dnl Checks for header files.
6
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h linux/awe_voice.h awe_voice.h /usr/src/sys/i386/isa/sound/awe_voice.h /usr/src/sys/gnu/i386/isa/sound/awe_voice.h linux/ucdrom.h sys/stdtypes.h sys/filio.h sys/audioio.h Alib.h sys/sem.h string.h getopt.h machine/endian.h sys/awe_voice.h)
7
AC_CHECK_FUNCS(usleep snprintf)
9
AC_ARG_WITH(alsa, [ --with-alsa use an alternative driver for GUS],
11
if test $withval = "yes"; then
18
if test "$ac_header_sys_soundlib_h" = "no"; then
22
if test "$kde_with_alsa" = "yes"; then
23
AC_DEFINE(ALSA, 1, [Define if you have Alsa support])
26
AC_MSG_CHECKING(machine architecture)
29
if test `uname -s` = "FreeBSD"
31
HW_MODEL=`sysctl -n hw.model`
34
"Pentium II/Pentium II Xeon/Celeron")
39
AC_MSG_RESULT($ARCH_TYPE)
41
AC_MSG_CHECKING(for a binutils new enough to support MMX)
42
as_ver=`echo|as -v 2>&1|grep ".*version.*"`
47
as_ver=`echo $as_ver |sed -e "s/.*version //;s/ .*//"`
48
as_major=`echo $as_ver |cut -d. -f1`
49
if test $as_major -gt 2
53
if test $as_major -lt 2
57
as_minor=`echo $as_ver |cut -d. -f2`
58
if test $as_minor -ge 10
67
AC_MSG_RESULT($MMX_SUPPORT)
70
dnl Checks for typedefs, structures, and compiler characteristics.
72
CXXFLAGS="$CXXFLAGS -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST"
74
dnl check if the assembler supports SSE instructions
75
AC_MSG_CHECKING([for x86 SSE instructions])
76
AC_CACHE_VAL(ac_cv_x86_sse,
80
#if defined(__GNUC__) && defined(__i386__)
81
__asm__("movups %xmm0, (%esp)");
89
AC_MSG_RESULT($ac_cv_x86_sse)
90
if eval "test \"`echo `$ac_cv_x86_sse\" = yes"; then
91
AC_DEFINE(HAVE_X86_SSE,1,
92
[Define if your assembler supports x86 SSE instructions])