summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2016-10-27 15:07:02 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2016-10-27 15:07:29 +0900
commitad54914b0ad0d3a35f2d0d495e464aa09dd845c1 (patch)
treea6ddc05c07c76805c3fc0b78b641bc81a672f95d
parent8085c3ee0d3e83e7693c162c10e4bc367c23518b (diff)
downloadlibzio-ad54914b0ad0d3a35f2d0d495e464aa09dd845c1.tar.gz
libzio-ad54914b0ad0d3a35f2d0d495e464aa09dd845c1.tar.bz2
libzio-ad54914b0ad0d3a35f2d0d495e464aa09dd845c1.zip
Imported Upstream version 1.00upstream/1.00
Change-Id: I56c1c66bd38968841db2b7ea5e2a74a9f3b83062 Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
-rw-r--r--Makefile4
-rw-r--r--fzopen.3.in13
2 files changed, 13 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 604b655..fbdc9eb 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,8 @@
LARGE = $(shell getconf LFS_CFLAGS)
CFLAGS = $(RPM_OPT_FLAGS) -pipe -Wall -D_GNU_SOURCE -D_REENTRANT $(LARGE)
CC = gcc
-MAJOR = 0
-MINOR = 99
+MAJOR = 1
+MINOR = 00
VERSION = $(MAJOR).$(MINOR)
SONAME = libzio.so.$(MAJOR)
LDMAP = -Wl,--version-script=zio.map
diff --git a/fzopen.3.in b/fzopen.3.in
index 72829a9..b4d8357 100644
--- a/fzopen.3.in
+++ b/fzopen.3.in
@@ -142,7 +142,7 @@ appropriate libraries together with the libzio:
.nf
AC_CHECK_HEADER(zio.h, [
AC_CHECK_LIB(zio, fzopen, [
- AC_CHECK_LIB(zio, fdzopen, [LIBS="$LIBS -l$zio"; am_cv_libzio=yes])
+ AC_CHECK_LIB(zio, fdzopen, [LIBS="$LIBS -lzio"; am_cv_libzio=yes])
])
])
if test "$am_cv_libzio" = yes; then
@@ -167,7 +167,7 @@ if test "$am_cv_libzio" = yes; then
done
])
AC_CHECK_HEADER(lzmadec.h, [
- for lib in libzma lzmadec; do
+ for lib in lzma lzmadec; do
AC_CHECK_LIB($lib, lzmadec_open, [
LIBS="$LIBS -l$lib"
am_cv_libzio="$am_cv_libzio lib$lib"
@@ -175,6 +175,15 @@ if test "$am_cv_libzio" = yes; then
])
done
])
+ AC_CHECK_HEADER(lzma.h, [
+ for lib in lzma; do
+ AC_CHECK_LIB($lib, lzma_easy_encoder, [
+ LIBS="$LIBS -l$lib"
+ am_cv_libzio="$am_cv_libzio lib$lib"
+ break
+ ])
+ done
+ ])
AC_MSG_NOTICE([libzio is used [$]am_cv_libzio])
fi
.fi