1 $NetBSD: patch-ae,v 1.5 2004/04/20 18:02:16 ben Exp $
3 --- configure.in.orig 2005-11-27 03:33:31.000000000 +0100
4 +++ configure.in 2007-02-23 02:06:19.000000000 +0100
5 @@ -556,8 +556,8 @@ if [[ "$use_portaudio" = "v19" ]] ; then
7 AC_CONFIG_SUBDIRS([[lib-src/portaudio-v19]])
12 +if [[ "$use_portaudio" = "v18" ]] ; then
13 CXXFLAGS="-I../lib-src/portaudio/pa_common $CXXFLAGS"
16 @@ -639,6 +639,81 @@ else
20 +if [[ "$use_portaudio" = "system" ]] ; then
22 + LIBS="$LIBS -lportaudio"
24 + case "${host_os}" in
25 + darwin* | rhapsody*)
26 + dnl Mac OS X configuration
28 + CONFIGHEADER="configunix.h"
32 + CXXFLAGS="-I../mac $CXXFLAGS"
34 + if [[ "$use_portmixer" = "yes" ]] ; then
35 + BUILDLIBS="$BUILDLIBS portmixer/px_mac_core/portmixer.a"
36 + EXTRAOBJS="$EXTRAOBJS ../lib-src/portmixer/px_mac_core/portmixer.a"
39 + LIBS="-framework AudioUnit -framework AudioToolbox $LIBS"
40 + LIBS="-framework CoreAudio $LIBS -lz"
42 + EXTRATARGETS="../Audacity.app"
44 + if [[ "$use_ladspa" = "default" ]] ; then
50 + OPTOBJS="$OPTOBJS \$(OBJDIR)/effects/VST/LoadVSTMac.o"
51 + OPTOBJS="$OPTOBJS \$(OBJDIR)/effects/VST/VSTEffect.o"
56 + dnl Windows/CygWin configuration
58 + LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lwsock32 -lwinmm"
59 + LIBS="$LIBS -Wl,--subsystem,windows"
60 + CONFIGHEADER="configwin.h"
62 + if [[ "$use_portmixer" = "yes" ]] ; then
63 + BUILDLIBS="$BUILDLIBS portmixer/px_win_wmme/portmixer.a"
64 + EXTRAOBJS="$EXTRAOBJS ../lib-src/portmixer/px_win_wmme/portmixer.a Audacity.coff"
67 + if [[ "$use_ladspa" = "default" ]] ; then
71 + AC_DEFINE(__CYGWIN__,1,[We're using cygwin])
72 + AC_DEFINE(_FILE_OFFSET_BITS,32,[Placeholder for large file support])
78 + dnl Unix OSS configuration
80 + CONFIGHEADER="configunix.h"
82 + if [[ "$use_portmixer" = "yes" ]] ; then
83 + BUILDLIBS="$BUILDLIBS portmixer/px_unix_oss/portmixer.a"
84 + EXTRAOBJS="$EXTRAOBJS ../lib-src/portmixer/px_unix_oss/portmixer.a"
87 + if [[ "$use_ladspa" = "default" ]] ; then