1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-20 01:42:25 +00:00

fix sed in Makefile for FreeBSD

This commit is contained in:
esell
2019-02-27 15:27:52 -07:00
parent 85127befda
commit 55b97e1849
2 changed files with 20 additions and 2 deletions

View File

@@ -20,9 +20,13 @@ SUBDIRS = lib pysearpc ${MAKE_DEMO} tests
install-data-local:
if MACOS
sed -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
sed -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
else
${SED} -i "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
if FBSD
sed -i '' -e "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
else
${SED} -i "s|(DESTDIR)|${DESTDIR}|g" $(pcfiles)
endif
endif
dist-hook:

View File

@@ -69,6 +69,20 @@ fi
AM_CONDITIONAL([MACOS], [test "$bmac" = "yes"])
AC_SUBST(MACOS)
AC_MSG_CHECKING(for FreeBSD)
if test "$(uname -s)" = "FreeBSD"; then
bfbsd=yes
fi
if test x$bfbsd = "xyes"; then
server_pkg=no
AC_MSG_RESULT(compile in FreeBSD)
fi
AM_CONDITIONAL([FBSD], [test "$bfbsd" = "yes"])
AC_SUBST(FBSD)
# Checks for libraries.
GLIB_REQUIRED=2.26.0