mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-20 09:49:18 +00:00
fix sed in Makefile for FreeBSD
This commit is contained in:
@@ -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:
|
||||
|
14
configure.ac
14
configure.ac
@@ -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
|
||||
|
Reference in New Issue
Block a user