LIBS=$alut_saved_LIBS])
fi
+PKG_CHECK_MODULES(OPENAL, openal)
+AC_SUBST(OPENAL_CFLAGS)
+AC_SUBST(OPENAL_LIBS)
################################################################################
# Generate output.
################################################################################
noinst_PROGRAMS = hello_world playfile
# We need to link against our *own* libalut.
-LDADD = ../src/libalut.la
+LDADD = ../src/libalut.la $(OPENAL_LIBS)
# Specifying the following path is needed to find <AL/alut.h>.
-AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include $(OPENAL_CFLAGS)
Name: freealut
Summary: OpenAL User Toolkit library
Version: 1.1.0
-Release: 4
+Release: 5
Group: System/Libraries
URL: http://openal.org/
License: LGPL-2.0
%build
+./autogen.sh
%configure --disable-static
%__make %{?_smp_mflags}
alutWaveform.c
# We use sin and floor, so we might need -lm, autoconf takes care of this.
-libalut_la_LIBADD = $(LIBM)
+libalut_la_LIBADD = $(LIBM) $(OPENAL_LIBS)
# The following libtool flag is neccessary for building DLLs on Windows.
libalut_la_LDFLAGS = -no-undefined
libalut_la_LDFLAGS += -version-info @VERSIONINFO@
# Specifying the following path is needed to find <AL/alut.h>.
-libalut_la_CPPFLAGS = -I$(top_srcdir)/include
+libalut_la_CPPFLAGS = -I$(top_srcdir)/include $(OPENAL_CFLAGS)
test_waveforms
# We need to link against our *own* libalut.
-LDADD = ../src/libalut.la
+LDADD = ../src/libalut.la $(OPENAL_LIBS)
# Specifying the following path is needed to find <AL/alut.h>.
-AM_CPPFLAGS = -I$(top_srcdir)/include
+AM_CPPFLAGS = -I$(top_srcdir)/include $(OPENAL_CFLAGS)
# test_retrostuff tests deprecated functions, but we don't want to get compiler
# warnings because of that.