Fix configure tests to play nice with GCC 4.6
[zfs.git] / config / tgz.am
1 tgz-local:
2         @(if test "${HAVE_ALIEN}" = "no"; then \
3                 echo -e "\n" \
4         "*** Required util ${ALIEN} missing.  Please install the\n" \
5         "*** package for your distribution which provides ${ALIEN},\n" \
6         "*** re-run configure, and try again.\n"; \
7                 exit 1; \
8         fi)
9
10 tgz-modules: tgz-local rpm-modules
11         name=${PACKAGE}-modules; \
12         version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \
13         release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \
14         arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
15         pkg1=$${name}-$${version}_$${release}.$${arch}.rpm; \
16         pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \
17         fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2; \
18         $(RM) $$pkg1 $$pkg2
19
20 tgz-utils: tgz-local rpm-utils
21         name=${PACKAGE}; \
22         version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \
23         arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
24         pkg1=$${name}-$${version}.$${arch}.rpm; \
25         pkg2=$${name}-devel-$${version}.$${arch}.rpm; \
26         pkg3=$${name}-test-$${version}.$${arch}.rpm; \
27         fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2 $$pkg3; \
28         $(RM) $$pkg1 $$pkg2 $$pkg3
29
30 tgz: tgz-modules tgz-utils