Mercurial > sdl-ios-xcode
comparison configure.in @ 3392:efc22582afc5
Only show the dynamic audio libraries if we'll be dynamically loading them
Fixed DirectFB dynamic loading to use find_lib
Converted tabs to spaces
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 13 Oct 2009 06:49:29 +0000 |
parents | 188fc5ecc58c |
children | 2b0a3b2f2fc6 |
comparison
equal
deleted
inserted
replaced
3391:188fc5ecc58c | 3392:efc22582afc5 |
---|---|
363 ;; | 363 ;; |
364 *64-*-*) | 364 *64-*-*) |
365 # x86 64-bit architectures all have SSE instructions | 365 # x86 64-bit architectures all have SSE instructions |
366 default_ssemath=yes | 366 default_ssemath=yes |
367 ;; | 367 ;; |
368 *) | 368 *) |
369 default_ssemath=no | 369 default_ssemath=no |
370 ;; | 370 ;; |
371 esac | 371 esac |
372 AC_ARG_ENABLE(ssemath, | 372 AC_ARG_ENABLE(ssemath, |
373 AC_HELP_STRING([--enable-ssemath], [Allow GCC to use SSE floating point math [[default=no]]]), | 373 AC_HELP_STRING([--enable-ssemath], [Allow GCC to use SSE floating point math [[default=no]]]), |
536 ],[ | 536 ],[ |
537 have_gcc_altivec=yes | 537 have_gcc_altivec=yes |
538 have_altivec_h_hdr=yes | 538 have_altivec_h_hdr=yes |
539 ]) | 539 ]) |
540 AC_MSG_RESULT($have_gcc_altivec) | 540 AC_MSG_RESULT($have_gcc_altivec) |
541 fi | 541 fi |
542 | 542 |
543 if test x$have_gcc_altivec = xno; then | 543 if test x$have_gcc_altivec = xno; then |
544 AC_MSG_CHECKING(for Altivec with GCC -faltivec option) | 544 AC_MSG_CHECKING(for Altivec with GCC -faltivec option) |
545 AC_TRY_COMPILE([ | 545 AC_TRY_COMPILE([ |
546 vector unsigned int vzero() { | 546 vector unsigned int vzero() { |
623 if test x$have_alsa = xyes; then | 623 if test x$have_alsa = xyes; then |
624 AC_ARG_ENABLE(alsa-shared, | 624 AC_ARG_ENABLE(alsa-shared, |
625 AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]), | 625 AC_HELP_STRING([--enable-alsa-shared], [dynamically load ALSA audio support [[default=yes]]]), |
626 , enable_alsa_shared=yes) | 626 , enable_alsa_shared=yes) |
627 alsa_lib=[`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] | 627 alsa_lib=[`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
628 echo "-- dynamic libasound -> $alsa_lib" | |
629 | 628 |
630 AC_DEFINE(SDL_AUDIO_DRIVER_ALSA) | 629 AC_DEFINE(SDL_AUDIO_DRIVER_ALSA) |
631 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c" | 630 SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c" |
632 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS" | 631 EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS" |
633 if test x$have_loadso != xyes && \ | 632 if test x$have_loadso != xyes && \ |
634 test x$enable_alsa_shared = xyes; then | 633 test x$enable_alsa_shared = xyes; then |
635 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ALSA loading]) | 634 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ALSA loading]) |
636 fi | 635 fi |
637 if test x$have_loadso = xyes && \ | 636 if test x$have_loadso = xyes && \ |
638 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then | 637 test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then |
638 echo "-- dynamic libasound -> $alsa_lib" | |
639 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ALSA_DYNAMIC, "$alsa_lib") | 639 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ALSA_DYNAMIC, "$alsa_lib") |
640 else | 640 else |
641 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS" | 641 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS" |
642 fi | 642 fi |
643 have_audio=yes | 643 have_audio=yes |
718 if test x$have_esd = xyes; then | 718 if test x$have_esd = xyes; then |
719 AC_ARG_ENABLE(esd-shared, | 719 AC_ARG_ENABLE(esd-shared, |
720 AC_HELP_STRING([--enable-esd-shared], [dynamically load ESD audio support [[default=yes]]]), | 720 AC_HELP_STRING([--enable-esd-shared], [dynamically load ESD audio support [[default=yes]]]), |
721 , enable_esd_shared=yes) | 721 , enable_esd_shared=yes) |
722 esd_lib=[`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] | 722 esd_lib=[`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
723 echo "-- dynamic libesd -> $esd_lib" | |
724 | 723 |
725 AC_DEFINE(SDL_AUDIO_DRIVER_ESD) | 724 AC_DEFINE(SDL_AUDIO_DRIVER_ESD) |
726 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c" | 725 SOURCES="$SOURCES $srcdir/src/audio/esd/*.c" |
727 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS" | 726 EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS" |
728 if test x$have_loadso != xyes && \ | 727 if test x$have_loadso != xyes && \ |
729 test x$enable_esd_shared = xyes; then | 728 test x$enable_esd_shared = xyes; then |
730 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ESD loading]) | 729 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ESD loading]) |
731 fi | 730 fi |
732 if test x$have_loadso = xyes && \ | 731 if test x$have_loadso = xyes && \ |
733 test x$enable_esd_shared = xyes && test x$esd_lib != x; then | 732 test x$enable_esd_shared = xyes && test x$esd_lib != x; then |
733 echo "-- dynamic libesd -> $esd_lib" | |
734 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib") | 734 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ESD_DYNAMIC, "$esd_lib") |
735 else | 735 else |
736 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS" | 736 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS" |
737 fi | 737 fi |
738 have_audio=yes | 738 have_audio=yes |
765 if test x$audio_pulseaudio = xyes; then | 765 if test x$audio_pulseaudio = xyes; then |
766 AC_ARG_ENABLE(pulseaudio-shared, | 766 AC_ARG_ENABLE(pulseaudio-shared, |
767 AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]), | 767 AC_HELP_STRING([--enable-pulseaudio-shared], [dynamically load PulseAudio support [[default=yes]]]), |
768 , enable_pulseaudio_shared=yes) | 768 , enable_pulseaudio_shared=yes) |
769 pulseaudio_lib=[`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] | 769 pulseaudio_lib=[`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
770 echo "-- dynamic libpulse-simple -> $pulseaudio_lib" | |
771 | 770 |
772 AC_DEFINE(SDL_AUDIO_DRIVER_PULSEAUDIO) | 771 AC_DEFINE(SDL_AUDIO_DRIVER_PULSEAUDIO) |
773 SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c" | 772 SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c" |
774 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS" | 773 EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS" |
775 if test x$have_loadso != xyes && \ | 774 if test x$have_loadso != xyes && \ |
776 test x$enable_pulseaudio_shared = xyes; then | 775 test x$enable_pulseaudio_shared = xyes; then |
777 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic PulseAudio loading]) | 776 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic PulseAudio loading]) |
778 fi | 777 fi |
779 if test x$have_loadso = xyes && \ | 778 if test x$have_loadso = xyes && \ |
780 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then | 779 test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then |
780 echo "-- dynamic libpulse-simple -> $pulseaudio_lib" | |
781 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC, "$pulseaudio_lib") | 781 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC, "$pulseaudio_lib") |
782 else | 782 else |
783 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS" | 783 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS" |
784 fi | 784 fi |
785 have_audio=yes | 785 have_audio=yes |
815 if test x$audio_arts = xyes; then | 815 if test x$audio_arts = xyes; then |
816 AC_ARG_ENABLE(arts-shared, | 816 AC_ARG_ENABLE(arts-shared, |
817 AC_HELP_STRING([--enable-arts-shared], [dynamically load aRts audio support [[default=yes]]]), | 817 AC_HELP_STRING([--enable-arts-shared], [dynamically load aRts audio support [[default=yes]]]), |
818 , enable_arts_shared=yes) | 818 , enable_arts_shared=yes) |
819 arts_lib=[`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] | 819 arts_lib=[`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
820 echo "-- dynamic libartsc -> $arts_lib" | |
821 | 820 |
822 AC_DEFINE(SDL_AUDIO_DRIVER_ARTS) | 821 AC_DEFINE(SDL_AUDIO_DRIVER_ARTS) |
823 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c" | 822 SOURCES="$SOURCES $srcdir/src/audio/arts/*.c" |
824 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS" | 823 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS" |
825 if test x$have_loadso != xyes && \ | 824 if test x$have_loadso != xyes && \ |
826 test x$enable_arts_shared = xyes; then | 825 test x$enable_arts_shared = xyes; then |
827 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ARTS loading]) | 826 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic ARTS loading]) |
828 fi | 827 fi |
829 if test x$have_loadso = xyes && \ | 828 if test x$have_loadso = xyes && \ |
830 test x$enable_arts_shared = xyes && test x$arts_lib != x; then | 829 test x$enable_arts_shared = xyes && test x$arts_lib != x; then |
830 echo "-- dynamic libartsc -> $arts_lib" | |
831 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib") | 831 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_ARTS_DYNAMIC, "$arts_lib") |
832 else | 832 else |
833 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS" | 833 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS" |
834 fi | 834 fi |
835 have_audio=yes | 835 have_audio=yes |
873 if test x$have_nas = xyes; then | 873 if test x$have_nas = xyes; then |
874 AC_ARG_ENABLE(nas-shared, | 874 AC_ARG_ENABLE(nas-shared, |
875 AC_HELP_STRING([--enable-nas-shared], [dynamically load NAS audio support [[default=yes]]]), | 875 AC_HELP_STRING([--enable-nas-shared], [dynamically load NAS audio support [[default=yes]]]), |
876 , enable_nas_shared=yes) | 876 , enable_nas_shared=yes) |
877 nas_lib=[`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] | 877 nas_lib=[`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
878 echo "-- dynamic libaudio -> $nas_lib" | |
879 | 878 |
880 if test x$have_loadso != xyes && \ | 879 if test x$have_loadso != xyes && \ |
881 test x$enable_nas_shared = xyes; then | 880 test x$enable_nas_shared = xyes; then |
882 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic NAS loading]) | 881 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic NAS loading]) |
883 fi | 882 fi |
884 if test x$have_loadso = xyes && \ | 883 if test x$have_loadso = xyes && \ |
885 test x$enable_nas_shared = xyes && test x$nas_lib != x; then | 884 test x$enable_nas_shared = xyes && test x$nas_lib != x; then |
885 echo "-- dynamic libaudio -> $nas_lib" | |
886 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_NAS_DYNAMIC, "$nas_lib") | 886 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_NAS_DYNAMIC, "$nas_lib") |
887 else | 887 else |
888 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS" | 888 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS" |
889 fi | 889 fi |
890 | 890 |
1336 | 1336 |
1337 AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB) | 1337 AC_DEFINE(SDL_VIDEO_DRIVER_DIRECTFB) |
1338 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" | 1338 SOURCES="$SOURCES $srcdir/src/video/directfb/*.c" |
1339 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS" | 1339 EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS" |
1340 | 1340 |
1341 AC_MSG_CHECKING(for directfb dynamic loading support) | 1341 AC_MSG_CHECKING(for directfb dynamic loading support) |
1342 directfb_shared=no | 1342 directfb_shared=no |
1343 directfb_lib_spec="$DIRECTFB_PREFIX/lib/libdirectfb.so*" | 1343 directfb_lib=[`find_lib "libdirectfb.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`] |
1344 directfb_lib=`ls -- $directfb_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` | |
1345 dnl echo "-- $directfb_lib_spec -> $directfb_lib" | |
1346 | 1344 |
1347 if test x$have_loadso != xyes && \ | 1345 if test x$have_loadso != xyes && \ |
1348 test x$enable_directfb_shared = xyes; then | 1346 test x$enable_directfb_shared = xyes; then |
1349 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic directfb loading]) | 1347 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic directfb loading]) |
1350 fi | 1348 fi |
1351 if test x$have_loadso = xyes && \ | 1349 if test x$have_loadso = xyes && \ |
1352 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then | 1350 test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then |
1353 directfb_shared=yes | 1351 directfb_shared=yes |
1352 echo "-- $directfb_lib_spec -> $directfb_lib" | |
1354 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC, "$directfb_lib") | 1353 AC_DEFINE_UNQUOTED(SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC, "$directfb_lib") |
1355 else | 1354 else |
1356 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS" | 1355 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS" |
1357 fi | 1356 fi |
1358 AC_MSG_RESULT($directfb_shared) | 1357 AC_MSG_RESULT($directfb_shared) |
1359 have_video=yes | 1358 have_video=yes |
1360 fi | 1359 fi |
1361 fi | 1360 fi |
1362 } | 1361 } |
1363 | 1362 |
1390 | 1389 |
1391 AC_ARG_ENABLE(fusionsound-shared, | 1390 AC_ARG_ENABLE(fusionsound-shared, |
1392 AC_HELP_STRING([--enable-fusionsound-shared], [dynamically load fusionsound audio support [[default=yes]]]), | 1391 AC_HELP_STRING([--enable-fusionsound-shared], [dynamically load fusionsound audio support [[default=yes]]]), |
1393 , enable_fusionsound_shared=yes) | 1392 , enable_fusionsound_shared=yes) |
1394 fusionsound_shared=no | 1393 fusionsound_shared=no |
1395 AC_MSG_CHECKING(for FusionSound dynamic loading support) | 1394 AC_MSG_CHECKING(for FusionSound dynamic loading support) |
1396 if test x$have_loadso != xyes && \ | 1395 if test x$have_loadso != xyes && \ |
1397 test x$enable_fusionsound_shared = xyes; then | 1396 test x$enable_fusionsound_shared = xyes; then |
1398 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic fusionsound loading]) | 1397 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic fusionsound loading]) |
1399 fi | 1398 fi |
1400 if test x$have_loadso = xyes && \ | 1399 if test x$have_loadso = xyes && \ |
1401 test x$enable_fusionsound_shared = xyes; then | 1400 test x$enable_fusionsound_shared = xyes; then |
1402 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC, "libfusionsound.so") | 1401 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC, "libfusionsound.so") |
1403 fusionsound_shared=yes | 1402 fusionsound_shared=yes |
1404 else | 1403 else |
1405 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS" | 1404 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS" |
1406 fi | 1405 fi |
1407 AC_MSG_RESULT($fusionsound_shared) | 1406 AC_MSG_RESULT($fusionsound_shared) |
1408 | 1407 |
1409 have_audio=yes | 1408 have_audio=yes |
1410 fi | 1409 fi |
1411 fi | 1410 fi |
1412 } | 1411 } |
1444 , enable_video_ps3=yes) | 1443 , enable_video_ps3=yes) |
1445 if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then | 1444 if test x$enable_video = xyes -a x$enable_video_ps3 = xyes; then |
1446 video_ps3=no | 1445 video_ps3=no |
1447 AC_CHECK_HEADER([linux/fb.h]) | 1446 AC_CHECK_HEADER([linux/fb.h]) |
1448 AC_CHECK_HEADER([asm/ps3fb.h], [have_ps3fb_hdr=yes], [], | 1447 AC_CHECK_HEADER([asm/ps3fb.h], [have_ps3fb_hdr=yes], [], |
1449 [#ifndef _LINUX_TYPES_H | 1448 [#ifndef _LINUX_TYPES_H |
1450 #include <linux/types.h> | 1449 #include <linux/types.h> |
1451 #endif]) | 1450 #endif]) |
1452 AC_CHECK_HEADER([libspe2.h], have_libspe2_hdr=yes) | 1451 AC_CHECK_HEADER([libspe2.h], have_libspe2_hdr=yes) |
1453 AC_CHECK_LIB([spe2], spe_context_create, have_spe2_lib=yes) | 1452 AC_CHECK_LIB([spe2], spe_context_create, have_spe2_lib=yes) |
1454 | 1453 |
1455 AC_CHECK_PROGS(SPU_GCC, [spu-gcc]) | 1454 AC_CHECK_PROGS(SPU_GCC, [spu-gcc]) |
1456 AC_CHECK_PROGS(EMBEDSPU, [embedspu]) | 1455 AC_CHECK_PROGS(EMBEDSPU, [embedspu]) |
2070 AC_TRY_COMPILE([ | 2069 AC_TRY_COMPILE([ |
2071 #include <sys/types.h> | 2070 #include <sys/types.h> |
2072 #if defined(HAVE_USB_H) | 2071 #if defined(HAVE_USB_H) |
2073 #include <usb.h> | 2072 #include <usb.h> |
2074 #endif | 2073 #endif |
2075 #ifdef __DragonFly__ | 2074 #ifdef __DragonFly__ |
2076 #include <bus/usb/usb.h> | 2075 #include <bus/usb/usb.h> |
2077 #include <bus/usb/usbhid.h> | 2076 #include <bus/usb/usbhid.h> |
2078 #else | 2077 #else |
2079 #include <dev/usb/usb.h> | 2078 #include <dev/usb/usb.h> |
2080 #include <dev/usb/usbhid.h> | 2079 #include <dev/usb/usbhid.h> |
2081 #endif | 2080 #endif |
2082 #if defined(HAVE_USBHID_H) | 2081 #if defined(HAVE_USBHID_H) |
2083 #include <usbhid.h> | 2082 #include <usbhid.h> |
2084 #elif defined(HAVE_LIBUSB_H) | 2083 #elif defined(HAVE_LIBUSB_H) |
2085 #include <libusb.h> | 2084 #include <libusb.h> |
2086 #elif defined(HAVE_LIBUSBHID_H) | 2085 #elif defined(HAVE_LIBUSBHID_H) |