Statistics
| Branch: | Tag: | Revision:

root / config / macosx_audiounit.m4 @ bc98dc91

History | View | Annotate | Download (1.3 kB)

1 5d69a524 jcorgan
# Copyright 2006 Free Software Foundation, Inc.
2 5d69a524 jcorgan
3 5d69a524 jcorgan
# This program is free software; you can redistribute it and/or modify
4 5d69a524 jcorgan
# it under the terms of the GNU General Public License as published by
5 937b719d eb
# the Free Software Foundation; either version 3, or (at your option)
6 5d69a524 jcorgan
# any later version.
7 5d69a524 jcorgan
8 5d69a524 jcorgan
# This program is distributed in the hope that it will be useful,
9 5d69a524 jcorgan
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10 5d69a524 jcorgan
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 5d69a524 jcorgan
# GNU General Public License for more details.
12 5d69a524 jcorgan
13 5d69a524 jcorgan
# You should have received a copy of the GNU General Public License
14 5d69a524 jcorgan
# along with this program; if not, write to the Free Software
15 86f5c924 eb
# Foundation, Inc., 51 Franklin Street, Boston, MA
16 86f5c924 eb
# 02110-1301, USA.
17 5d69a524 jcorgan
18 5d69a524 jcorgan
AC_DEFUN([MACOSX_AUDIOUNIT],
19 5d69a524 jcorgan
[
20 5d69a524 jcorgan
    audiounitok=yes
21 5d69a524 jcorgan
    case "$host_os" in
22 5d69a524 jcorgan
    	darwin*);;
23 5d69a524 jcorgan
    	*) 
24 5d69a524 jcorgan
	   audiounitok=no
25 287fc41d jcorgan
	   AC_MSG_RESULT([gr-audio-osx requires darwin or MacOS X.])
26 5d69a524 jcorgan
    esac
27 5d69a524 jcorgan
28 287fc41d jcorgan
    AC_CHECK_HEADERS([AudioUnit/AudioUnit.h],[],
29 287fc41d jcorgan
	  [audiounitok=no;AC_MSG_RESULT([gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X.])])
30 5d69a524 jcorgan
31 287fc41d jcorgan
    AC_CHECK_HEADERS([AudioToolbox/AudioToolbox.h],[],
32 287fc41d jcorgan
	  [audiounitok=no;AC_MSG_RESULT([gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X.])])    
33 5d69a524 jcorgan
34 5d69a524 jcorgan
    if test $audiounitok = yes; then
35 5d69a524 jcorgan
        ifelse([$1], , :, [$1])
36 5d69a524 jcorgan
    else
37 5d69a524 jcorgan
        ifelse([$2], , :, [$2])
38 5d69a524 jcorgan
    fi
39 5d69a524 jcorgan
])