Fix for new automake and 64 bit compatibility.
authorJunfeng Dong <junfeng.dong@intel.com>
Mon, 25 Mar 2013 10:15:18 +0000 (18:15 +0800)
committerlifang <fangx.li@intel.com>
Thu, 28 Mar 2013 21:29:44 +0000 (05:29 +0800)
- Check for AM_PROG_AR with new automake
- Make systemd related files install in /usr/lib for 64 bit
  compatibility.

Change-Id: I1ef30ee3d83e419a03003a3b5b95a1841b0f25c1

configure.ac
packaging/avsystem.spec

index 0b681de..2df8b4f 100644 (file)
@@ -19,6 +19,8 @@ AC_HEADER_STDBOOL
 AC_HEADER_STDC
 AC_HEADER_TIME
 AC_PROG_GCC_TRADITIONAL
+AM_PROG_CC_C_O
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
 AC_PROG_LIBTOOL
 
 AC_ARG_ENABLE(sdk, AC_HELP_STRING([--enable-sdk], [sdk build]),
index 35d1209..5064ad3 100644 (file)
@@ -58,9 +58,9 @@ ln -s ../init.d/snd_init %{buildroot}/%{_sysconfdir}/rc.d/rc3.d/S15snd_init
 mkdir -m 755 -p %{buildroot}/%{_sysconfdir}/rc.d/rc4.d/
 ln -s ../init.d/snd_init %{buildroot}/%{_sysconfdir}/rc.d/rc4.d/S15snd_init
 
-mkdir -m 755 -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
-install -m 0644 %SOURCE101 %{buildroot}%{_libdir}/systemd/system/avsystem.service
-ln -s ../avsystem.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/avsystem.service
+mkdir -m 755 -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants
+install -m 0644 %SOURCE101 %{buildroot}/usr/lib/systemd/system/avsystem.service
+ln -s ../avsystem.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/avsystem.service
 
 %preun
 if [ $1 == 0 ]; then
@@ -86,11 +86,11 @@ systemctl daemon-reload
 %{_sysconfdir}/rc.d/rc4.d/S15snd_init
 %{_bindir}/*
 %{_libdir}/lib*.so.*
-%{_libdir}/systemd/system/avsystem.service
-%{_libdir}/systemd/system/multi-user.target.wants/avsystem.service
+/usr/lib/systemd/system/avsystem.service
+/usr/lib/systemd/system/multi-user.target.wants/avsystem.service
 
 %files devel
 %manifest avsystem.manifest
 %{_libdir}/pkgconfig/*.pc
 %{_libdir}/*.so
-/usr/include/avsystem/*.h
+%{_includedir}/avsystem/*.h