1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-07-17 06:51:04 +00:00

Merge pull request #16 from Chilledheart/patch-2

[build] detect darwin platform correctly
This commit is contained in:
Daniel Pan 2014-07-23 16:59:56 +08:00
commit 22b4c467ce
2 changed files with 10 additions and 5 deletions

View File

@ -5,8 +5,13 @@
: ${AUTOHEADER=autoheader}
: ${AUTOMAKE=automake}
: ${ACLOCAL=aclocal}
: ${LIBTOOLIZE=libtoolize}
: ${LIBTOOL=libtool}
if test "$(uname -s)" != "Darwin"; then
: ${LIBTOOLIZE=libtoolize}
: ${LIBTOOL=libtool}
else
: ${LIBTOOLIZE=glibtoolize}
: ${LIBTOOL=glibtool}
fi
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
@ -36,7 +41,7 @@ DIE=0
DIE=1
}
if test "${TERM_PROGRAM}" != "Apple_Terminal" ; then
if test "$(uname -s)" != "Darwin"; then
(grep "^AC_PROG_LIBTOOL" $CONFIGURE >/dev/null) && {
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
echo
@ -54,7 +59,7 @@ fi
if test x"$MSYSTEM" = x"MINGW32"; then
autoreconf --install -I/local/share/aclocal
elif test "${TERM_PROGRAM}" = "Apple_Terminal" ; then
elif test "$(uname -s)" = "Darwin"; then
autoreconf --install -I/opt/local/share/aclocal
else
autoreconf --install

View File

@ -56,7 +56,7 @@ AC_SUBST(WIN32)
AC_MSG_CHECKING(for Mac)
if test ${TERM_PROGRAM} = "Apple_Terminal" ; then
if test "$(uname -s)" = "Darwin"; then
bmac=yes
fi