Mercurial > pidgin.yaz
comparison acinclude.m4 @ 4561:9df99116840a
[gaim-migrate @ 4842]
This is the new sound subsystem
Lots of stuff got renamed, and everything sound-wise is documented.
Gaim now uses libaudiofile and libao to play sounds. Lots of ugly hacks
were removed, and now we support playing audio through anything that
libao will support.
If you need to (you shouldn't) you can force libao to use a specific
output driver, by putting a line into ~/.libao like:
default_driver=esd
You shouldn't need to do this, libao is pretty good at figuring out what
driver to use.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 09 Feb 2003 01:55:35 +0000 |
parents | de4c62f656ee |
children | d6491dc2b7b2 |
comparison
equal
deleted
inserted
replaced
4560:eb32b3acef97 | 4561:9df99116840a |
---|---|
796 fi | 796 fi |
797 AC_SUBST(GTK_CFLAGS) | 797 AC_SUBST(GTK_CFLAGS) |
798 AC_SUBST(GTK_LIBS) | 798 AC_SUBST(GTK_LIBS) |
799 rm -f conf.gtktest | 799 rm -f conf.gtktest |
800 ]) | 800 ]) |
801 | |
802 dnl This is XIPH_PATH_AO renamed to GAIM_PATH_AO to prevent conflicts. | |
803 dnl It's a long story. --elb | |
804 | |
805 # ao.m4 | |
806 # Configure paths for libao | |
807 # Jack Moffitt <jack@icecast.org> 10-21-2000 | |
808 # Shamelessly stolen from Owen Taylor and Manish Singh | |
809 | |
810 dnl GAIM_PATH_AO([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) | |
811 dnl Test for libao, and define AO_CFLAGS and AO_LIBS | |
812 dnl | |
813 AC_DEFUN(GAIM_PATH_AO, | |
814 [dnl | |
815 dnl Get the cflags and libraries | |
816 dnl | |
817 AC_ARG_WITH(ao,[ --with-ao=PFX Prefix where libao is installed (optional)], ao_prefix="$withval", ao_prefix="") | |
818 AC_ARG_WITH(ao-libraries,[ --with-ao-libraries=DIR Directory where libao library is installed (optional)], ao_libraries="$withval", ao_libraries="") | |
819 AC_ARG_WITH(ao-includes,[ --with-ao-includes=DIR Directory where libao header files are installed (optional)], ao_includes="$withval", ao_includes="") | |
820 AC_ARG_ENABLE(aotest, [ --disable-aotest Do not try to compile and run a test ao program],, enable_aotest=yes) | |
821 | |
822 | |
823 if test "x$ao_libraries" != "x" ; then | |
824 AO_LIBS="-L$ao_libraries" | |
825 elif test "x$ao_prefix" != "x"; then | |
826 AO_LIBS="-L$ao_prefix/lib" | |
827 elif test "x$prefix" != "xNONE"; then | |
828 AO_LIBS="-L$prefix/lib" | |
829 fi | |
830 | |
831 if test "x$ao_includes" != "x" ; then | |
832 AO_CFLAGS="-I$ao_includes" | |
833 elif test "x$ao_prefix" != "x"; then | |
834 AO_CFLAGS="-I$ao_prefix/include" | |
835 elif test "x$prefix" != "xNONE"; then | |
836 AO_CFLAGS="-I$prefix/include" | |
837 fi | |
838 | |
839 # see where dl* and friends live | |
840 AC_CHECK_FUNCS(dlopen, [AO_DL_LIBS=""], [ | |
841 AC_CHECK_LIB(dl, dlopen, [AO_DL_LIBS="-ldl"], [ | |
842 AC_MSG_WARN([could not find dlopen() needed by libao sound drivers | |
843 your system may not be supported.]) | |
844 ]) | |
845 ]) | |
846 | |
847 AO_LIBS="$AO_LIBS -lao $AO_DL_LIBS" | |
848 | |
849 AC_MSG_CHECKING(for ao) | |
850 no_ao="" | |
851 | |
852 | |
853 if test "x$enable_aotest" = "xyes" ; then | |
854 ac_save_CFLAGS="$CFLAGS" | |
855 ac_save_LIBS="$LIBS" | |
856 CFLAGS="$CFLAGS $AO_CFLAGS" | |
857 LIBS="$LIBS $AO_LIBS" | |
858 dnl | |
859 dnl Now check if the installed ao is sufficiently new. | |
860 dnl | |
861 rm -f conf.aotest | |
862 AC_TRY_RUN([ | |
863 #include <stdio.h> | |
864 #include <stdlib.h> | |
865 #include <string.h> | |
866 #include <ao/ao.h> | |
867 | |
868 int main () | |
869 { | |
870 system("touch conf.aotest"); | |
871 return 0; | |
872 } | |
873 | |
874 ],, no_ao=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) | |
875 CFLAGS="$ac_save_CFLAGS" | |
876 LIBS="$ac_save_LIBS" | |
877 fi | |
878 | |
879 if test "x$no_ao" = "x" ; then | |
880 AC_MSG_RESULT(yes) | |
881 ifelse([$1], , :, [$1]) | |
882 else | |
883 AC_MSG_RESULT(no) | |
884 if test -f conf.aotest ; then | |
885 : | |
886 else | |
887 echo "*** Could not run ao test program, checking why..." | |
888 CFLAGS="$CFLAGS $AO_CFLAGS" | |
889 LIBS="$LIBS $AO_LIBS" | |
890 AC_TRY_LINK([ | |
891 #include <stdio.h> | |
892 #include <ao/ao.h> | |
893 ], [ return 0; ], | |
894 [ echo "*** The test program compiled, but did not run. This usually means" | |
895 echo "*** that the run-time linker is not finding ao or finding the wrong" | |
896 echo "*** version of ao. If it is not finding ao, you'll need to set your" | |
897 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
898 echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
899 echo "*** is required on your system" | |
900 echo "***" | |
901 echo "*** If you have an old version installed, it is best to remove it, although" | |
902 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], | |
903 [ echo "*** The test program failed to compile or link. See the file config.log for the" | |
904 echo "*** exact error that occured. This usually means ao was incorrectly installed" | |
905 echo "*** or that you have moved ao since it was installed." ]) | |
906 CFLAGS="$ac_save_CFLAGS" | |
907 LIBS="$ac_save_LIBS" | |
908 fi | |
909 AO_CFLAGS="" | |
910 AO_LIBS="" | |
911 ifelse([$2], , :, [$2]) | |
912 fi | |
913 AC_SUBST(AO_CFLAGS) | |
914 AC_SUBST(AO_LIBS) | |
915 rm -f conf.aotest | |
916 ]) |