Mercurial > audlegacy
comparison configure.ac @ 4233:74c6f3d3cf1d
it buids successfully :)
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Wed, 30 Jan 2008 03:36:22 +0300 |
parents | 8d8699eb659d |
children | b423dda7085e |
comparison
equal
deleted
inserted
replaced
4232:704607c1f858 | 4233:74c6f3d3cf1d |
---|---|
280 ADD_PC_REQUIRES([libmcs >= 0.1]) | 280 ADD_PC_REQUIRES([libmcs >= 0.1]) |
281 ], | 281 ], |
282 [AC_MSG_ERROR([Cannot find libmcs])] | 282 [AC_MSG_ERROR([Cannot find libmcs])] |
283 ) | 283 ) |
284 | 284 |
285 dnl AltiVec support | |
286 | |
287 AC_ARG_ENABLE(altivec, | |
288 [ --disable-altivec disable AltiVec support. (default=enabled) ], | |
289 [enable_altivec=$enableval], | |
290 [enable_altivec=yes] | |
291 ) | |
292 if test "x$enable_altivec" = "xyes"; then | |
293 AC_CHECK_HEADERS(altivec.h, | |
294 [AC_DEFINE(HAVE_ALTIVEC, 1, [Define to 1 if your system has AltiVec.]) | |
295 AC_DEFINE(HAVE_ALTIVEC_H, 1, [Define to 1 if your system has an altivec.h file.]) | |
296 AC_DEFINE(ARCH_POWERPC, 1, [Define to 1 if your system is a PowerPC.]) | |
297 SIMD_CFLAGS=-maltivec | |
298 AC_SUBST(SIMD_CFLAGS)], | |
299 [enable_altivec="no"] | |
300 ) | |
301 fi | |
302 | |
303 dnl SSE2 support | |
304 | |
305 AC_ARG_ENABLE(sse2, | |
306 [ --disable-sse2 disable SSE2 support. (default=enabled) ], | |
307 [enable_sse2=$enableval], | |
308 [enable_sse2=yes] | |
309 ) | |
310 if test "x$enable_sse2" = "xyes"; then | |
311 AC_MSG_CHECKING(SSE2) | |
312 ac_save_CFLAGS="$CFLAGS" | |
313 CFLAGS="-msse2" | |
314 AC_TRY_RUN([ | |
315 #include <emmintrin.h> | |
316 int main() | |
317 { | |
318 _mm_setzero_pd(); | |
319 return 0; | |
320 } | |
321 ], | |
322 [AC_MSG_RESULT(SSE2 yes) | |
323 AC_DEFINE(HAVE_SSE2, 1, [Define to 1 if your system has SSE2]) | |
324 SIMD_CFLAGS=-msse2], | |
325 [AC_MSG_RESULT(SSE2 no) | |
326 enable_sse2="no"], | |
327 ) | |
328 fi | |
329 AC_SUBST(SIMD_CFLAGS) | |
330 CFLAGS="$ac_save_CFLAGS" | |
331 | |
332 | |
285 AC_CHECK_HEADERS(unistd.h) | 333 AC_CHECK_HEADERS(unistd.h) |
286 AC_CHECK_HEADERS(fcntl.h) | 334 AC_CHECK_HEADERS(fcntl.h) |
287 AC_CHECK_HEADERS(sys/ioctl.h) | 335 AC_CHECK_HEADERS(sys/ioctl.h) |
288 AC_CHECK_HEADERS(fnmatch.h) | 336 AC_CHECK_HEADERS(fnmatch.h) |
289 AC_CHECK_HEADERS(limits.h) | 337 AC_CHECK_HEADERS(limits.h) |
462 echo " Allow user plugin dir: $enable_user_plugin_dir" | 510 echo " Allow user plugin dir: $enable_user_plugin_dir" |
463 echo | 511 echo |
464 echo " Automatic character code detection: $enable_chardet" | 512 echo " Automatic character code detection: $enable_chardet" |
465 echo " Sample rate upconversion: $enable_samplerate" | 513 echo " Sample rate upconversion: $enable_samplerate" |
466 echo " D-Bus support: $enable_dbus" | 514 echo " D-Bus support: $enable_dbus" |
515 echo | |
516 echo " SSE2: $enable_sse2" | |
517 echo " AltiVec: $enable_altivec" | |
467 echo | 518 echo |
468 | 519 |
469 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then | 520 if test "$beep_cv_lib_xlibs_threadsafe" = "no"; then |
470 echo "Note: You need to have thread-safe xlibs to use Audacious." | 521 echo "Note: You need to have thread-safe xlibs to use Audacious." |
471 echo "If you are using libc5 thread aware Xlibs just skip this." | 522 echo "If you are using libc5 thread aware Xlibs just skip this." |