[pulseaudio-discuss] [PATCH 1/4] configure.ac: add DARWIN_OS variable
Daniel Mack
daniel at caiaq.de
Sun Nov 1 11:20:41 PST 2009
Hi Lennart,
This one is still missing upstream. Care to pick it?
Thanks,
Daniel
On Wed, Sep 16, 2009 at 03:15:20PM +0800, Daniel Mack wrote:
> Signed-off-by: Kim Lester <kim at dfusion.com.au>
> Signed-off-by: Daniel Mack <daniel at caiaq.de>
> ---
> configure.ac | 23 +++++++++++++++++++++++
> 1 files changed, 23 insertions(+), 0 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index adf5d90..27b2e46 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -186,6 +186,10 @@ case $host in
> AC_MSG_RESULT([netbsd])
> pulse_target_os=netbsd
> ;;
> + *-*-darwin*)
> + AC_MSG_RESULT([darwin])
> + pulse_target_os=darwin
> + ;;
> *)
> AC_MSG_RESULT([unknown])
> pulse_target_os=unknown
> @@ -303,15 +307,21 @@ AC_SUBST([LIBLTDL])
> #### Determine build environment ####
>
> os_is_win32=0
> +os_is_darwin=0
>
> case "$host_os" in
> mingw*)
> AC_DEFINE([OS_IS_WIN32], 1, [Build target is Windows.])
> os_is_win32=1
> ;;
> + darwin*)
> + AC_DEFINE([OS_IS_DARWIN], 1, [Build target is Darwin.])
> + os_is_darwin=1
> + ;;
> esac
>
> AM_CONDITIONAL(OS_IS_WIN32, test "x$os_is_win32" = "x1")
> +AM_CONDITIONAL(OS_IS_DARWIN, test "x$os_is_darwin" = "x1")
>
> ###################################
> # Basic environment checks #
> @@ -415,6 +425,19 @@ AC_SEARCH_LIBS([backtrace], [execinfo])
> # build, disabling its ability to make dlls.
> AC_CHECK_FUNCS([getopt_long], [], [AC_CHECK_LIB([iberty], [getopt_long])])
>
> +# Darwin/OS X
> +if test "x$os_is_darwin" = "x1" ; then
> + AC_MSG_CHECKING([looking for Apple CoreService Framework])
> + # How do I check a framework "library" - AC_CHECK_LIB prob. won't work??, just assign LIBS & hope
> + # AC_CHECK_HEADER([Multiprocessing.h],
> + AC_CHECK_HEADER([/Developer/Headers/FlatCarbon/Multiprocessing.h],
> + [LIBS="$LIBS -framework CoreServices"],
> + [AC_MSG_ERROR([Multiprocessing.h header file not found]) ])
> +
> + AC_MSG_RESULT([ok])
> + AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [Using clock_gettime() replacement])
> +fi
> +
> #### Check for functions ####
>
> # ISO
> --
> 1.6.3.3
>
More information about the pulseaudio-discuss
mailing list