# Process this file with autoconf to produce a configure script.
-AC_INIT(RtAudio, 4.1.2, gary@music.mcgill.ca, rtaudio)
+AC_INIT(RtAudio, 5.0.0, gary@music.mcgill.ca, rtaudio)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_SRCDIR(RtAudio.cpp)
AC_CONFIG_FILES([rtaudio.pc Makefile tests/Makefile doc/Makefile doc/doxygen/Doxyfile])
#
# If any interfaces have been removed since the last public release, then set
# age to 0.
-m4_define([lt_current], 5)
+m4_define([lt_current], 6)
m4_define([lt_revision], 0)
m4_define([lt_age], 0)
fi
# Checks for functions
-AC_CHECK_FUNC(gettimeofday, [cppflag="$cppflag -DHAVE_GETTIMEOFDAY"], )
+AC_CHECK_FUNCS(gettimeofday)
# Checks for doxygen
AC_CHECK_PROG( DOXYGEN, [doxygen], [doxygen] )
AC_SUBST( api, [""] )
AC_SUBST( req, [""] )
AC_MSG_CHECKING(for audio API)
+
+AC_ARG_WITH(jack, [ --with-jack = choose JACK server support (mac and linux only)])
+AS_IF([test "x$with_jack" == "xyes"], [
+ api="$api -D__UNIX_JACK__"
+ AC_MSG_RESULT(using JACK)
+ AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))])
+
case $host in
*-*-netbsd*)
+ AS_IF([test "$api" == ""], [
AC_MSG_RESULT(using OSS)
api="$api -D__LINUX_OSS__"
LIBS="$LIBS -lossaudio"
- AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))
+ AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))])
;;
- *-*-linux*)
- AC_ARG_WITH(jack, [ --with-jack = choose JACK server support (mac and linux only)])
- AS_IF([test "x$with_jack" == "xyes"], [
- api="$api -D__UNIX_JACK__"
- AC_MSG_RESULT(using JACK)
- AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))
- AC_CHECK_LIB(asound, snd_pcm_open, , AC_MSG_ERROR(Jack support also requires the asound library!))])
+ *-*-freebsd*)
+ AS_IF([test "$api" == ""], [
+ AC_MSG_RESULT(using OSS)
+ api="$api -D__LINUX_OSS__"
+ LIBS="$LIBS -lossaudio"
+ AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(RtAudio requires the pthread library!))])
+ ;;
+ *-*-linux*)
# Look for ALSA flag
AC_ARG_WITH(alsa, [ --with-alsa = choose native ALSA API support (linux only)])
AS_IF([test "x$with_alsa" == "xyes"], [
AC_CHECK_LIB(pulse-simple, pa_simple_flush, , AC_MSG_ERROR(PulseAudio support requires the pulse-simple library!))])
# Look for OSS flag
- AC_ARG_WITH(oss, [ --with-oss = choose OSS API support (linux only)])
+ AC_ARG_WITH(oss, [ --with-oss = choose OSS API support (unixes)])
AS_IF([test "x$with_oss" == "xyes"], [
api="$api -D__LINUX_OSS__"
AC_MSG_RESULT(using OSS)])
;;
*-apple*)
- AC_ARG_WITH(jack, [ --with-jack = choose JACK server support (unix only)])
- AS_IF([test "x$with_jack" == "xyes"], [
- api="$api -D__UNIX_JACK__"
- AC_MSG_RESULT(using JACK)
- AC_CHECK_LIB(jack, jack_client_open, , AC_MSG_ERROR(JACK support requires the jack library!))])
-
-# AC_CHECK_HEADER(jack/jack.h, [], [AC_MSG_ERROR(Jack header file not found!)] )
-# LIBS="$LIBS -framework jackmp" ], )
-
-
# Look for Core flag
AC_ARG_WITH(core, [ --with-core = choose CoreAudio API support (mac only)])
AS_IF([test "x$with_core" == "xyes"], [