mirror of
https://github.com/haiwen/libsearpc.git
synced 2025-09-04 14:24:46 +00:00
Merge pull request #16 from Chilledheart/patch-2
[build] detect darwin platform correctly
This commit is contained in:
13
autogen.sh
13
autogen.sh
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user