Fix build error due to openal changes 64/169064/1 accepted/tizen_3.0_common accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 accepted/tizen/3.0/common/20180219.092211 accepted/tizen/3.0/mobile/20180219.000623 accepted/tizen/3.0/tv/20180219.000612 accepted/tizen/3.0/wearable/20180219.000606 submit/tizen_3.0/20180212.033657
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 1 Feb 2018 06:55:37 +0000 (15:55 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Fri, 2 Feb 2018 05:41:28 +0000 (05:41 +0000)
[Version] 1.1.0-5
[Profile] Common
[Issue Type] Build

Change-Id: I0626513649332694ff9ed7f562b6c8985f604c0a

configure.ac
examples/Makefile.am
packaging/freealut.spec
src/Makefile.am
test_suite/Makefile.am

index 2b26d6d..564537e 100644 (file)
@@ -206,6 +206,9 @@ if test "x$enable_efence" = xyes; then
      LIBS=$alut_saved_LIBS])
 fi
 
+PKG_CHECK_MODULES(OPENAL, openal)
+AC_SUBST(OPENAL_CFLAGS)
+AC_SUBST(OPENAL_LIBS)
 ################################################################################
 # Generate output.
 ################################################################################
index 4c99c50..cd3a009 100644 (file)
@@ -2,7 +2,7 @@
 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)
index 5da9ffa..4ed75a1 100644 (file)
@@ -1,7 +1,7 @@
 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
@@ -31,6 +31,7 @@ cp %{SOURCE1001} .
 
 
 %build
+./autogen.sh
 %configure --disable-static
 %__make %{?_smp_mflags}
 
index 8bd9a27..6756d7f 100644 (file)
@@ -20,7 +20,7 @@ libalut_la_SOURCES =          \
        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
@@ -29,4 +29,4 @@ 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)
index 898e192..b99639c 100644 (file)
@@ -15,10 +15,10 @@ noinst_PROGRAMS =           \
        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.