X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=configure.ac;h=b50665aa389b4bf2cefed09f4c7adcec00d130f5;hp=3c2f4ec1f0b10f1b371d4c38e2a7636136563955;hb=3f4c28d4d449efc054e02b9693eaeac9df3c3604;hpb=7d1805d1559e08e0af701155574aef220925d411 diff --git a/configure.ac b/configure.ac index 3c2f4ec1..b50665aa 100644 --- a/configure.ac +++ b/configure.ac @@ -149,6 +149,31 @@ if test ${have_ucred} = yes; then AC_DEFINE(HAVE_UCRED, 1, define to 1 you have struct ucred) fi +########################################################################### osx + +AC_MSG_CHECKING(for CoreAudio (MacOs)) +AC_TRY_LINK([ + #include +],[ + AudioDeviceID id; +],[have_core_audio=yes],[have_core_audio=no]) +AC_MSG_RESULT($have_core_audio) +if test ${have_core_audio} = yes; then + f1="-framework CoreAudio" + f2="-framework AudioToolbox" + f3="-framework AudioUnit" + f4="-framework CoreServices" + f="$f1 $f2 $f3 $f4" + audiod_errlist_objs="$audiod_errlist_objs osx_writer" + audiod_cmdline_objs="$audiod_cmdline_objs osx_write.cmdline" + audiod_ldflags="$audiod_ldflags $f" + + write_errlist_objs="$write_errlist_objs osx_writer" + write_cmdline_objs="$write_cmdline_objs osx_write.cmdline" + write_ldflags="$write_ldflags $f" + write_writers="$write_writers osx" + AC_DEFINE(HAVE_CORE_AUDIO, 1, define to 1 on MacOs) +fi ########################################################################### gtk2 pkg_modules="gtk+-2.0 >= 2.0.0"