Skip to content

Commit

Permalink
Remove the old libjson.so name compatibility support. The library is …
Browse files Browse the repository at this point in the history
…only created as libjson-c.so now and headers are only installed into the ${prefix}/json-c directory.
  • Loading branch information
hawicz committed Feb 12, 2014
1 parent 0645020 commit c8ee919
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 48 deletions.
29 changes: 1 addition & 28 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@ EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj
SUBDIRS = . tests

lib_LTLIBRARIES = libjson-c.la
if ENABLE_OLDNAME_COMPAT
lib_LTLIBRARIES+=libjson.la
endif

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = json-c.pc
if ENABLE_OLDNAME_COMPAT
pkgconfig_DATA += json.pc
endif

libjson_cincludedir = $(includedir)/json-c
libjson_cinclude_HEADERS = \
Expand All @@ -38,14 +32,6 @@ libjson_cinclude_HEADERS = \

libjson_c_la_LDFLAGS = -version-info 2:0:0 -no-undefined

if ENABLE_OLDNAME_COMPAT
libjson_la_LDFLAGS = -version-info 1:0:1 -no-undefined -ljson-c

# Temporary libjson library. This will be removed after one release.
libjson_la_LIBADD = -ljson-c
endif


libjson_c_la_SOURCES = \
arraylist.c \
debug.c \
Expand All @@ -65,22 +51,9 @@ distclean-local:
maintainer-clean-local:
-rm -rf configure

if ENABLE_OLDNAME_COMPAT
# Remove old headers and create a compatibility link
install-data-hook:
if test -d "$(DESTDIR)@includedir@/json" ; then \
(cd "$(DESTDIR)@includedir@/json" && \
rm -f $(libjson_cinclude_HEADERS)) ; \
rmdir "$(DESTDIR)@includedir@/json" ; \
fi
test \! -e "$(DESTDIR)@includedir@/json" || rm "$(DESTDIR)@includedir@/json"
$(LN_S) json-c "$(DESTDIR)@includedir@/json"

uninstall-local:
rm -f "$(DESTDIR)@includedir@/json"
rm -rf "$(DESTDIR)@includedir@/json-c"

endif
rm -f "$(DESTDIR)@includedir@/json"

ANDROID_CFLAGS = -I$(top_srcdir) -DHAVE_CONFIG_H

Expand Down
9 changes: 0 additions & 9 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)

AC_PROG_MAKE_SET

AC_ARG_ENABLE(oldname-compat,
AS_HELP_STRING([--disable-oldname-compat],
[Don't include the old libjson.so library and include/json directory.]),
[],
[enable_oldname_compat=yes]
)
AM_CONDITIONAL(ENABLE_OLDNAME_COMPAT, [test "x${enable_oldname_compat}" != "xno"])

# Checks for programs.

# Checks for libraries.
Expand Down Expand Up @@ -59,7 +51,6 @@ AM_PROG_LIBTOOL

AC_CONFIG_FILES([
Makefile
json.pc
json-c.pc
tests/Makefile
json-c-uninstalled.pc
Expand Down
11 changes: 0 additions & 11 deletions json.pc.in

This file was deleted.

0 comments on commit c8ee919

Please sign in to comment.