Create header symlinks in std locations for backward compat

This commit is contained in:
Tushar Gohad 2015-09-18 18:43:20 +00:00
parent dc11fba685
commit bca105ccd3
2 changed files with 11 additions and 0 deletions

View File

@ -30,6 +30,15 @@ thisinclude_HEADERS = \
include/rs_vand/rs_galois.h \
include/rs_vand/liberasurecode_rs_vand.h
install-exec-hook:
-(cd $(DESTDIR)$(includedir) && \
rm erasurecode.h erasurecode_version.h \
erasurecode_stdinc.h config_liberasurecode.h && \
$(LN_S) liberasurecode/erasurecode.h && \
$(LN_S) liberasurecode/erasurecode_version.h && \
$(LN_S) liberasurecode/erasurecode_stdinc.h && \
$(LN_S) liberasurecode/config_liberasurecode.h)
test: check
$(eval SONAMES := $(shell find $(abs_top_builddir) -name '*.so'))
$(eval SODIRS := $(dir $(SONAMES)))

View File

@ -15,6 +15,8 @@ AM_MAINTAINER_MODE([disable])
m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
AM_SILENT_RULES([yes])
AC_PROG_LN_S
dnl Compiling with per-target flags requires AM_PROG_CC_C_O.
AC_PROG_CC
AM_PROG_CC_C_O