提交 31d1e20f authored 作者: Brian West's avatar Brian West

use AC_CANONICAL_HOST to make sure is set.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4691 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 221bf439
...@@ -14,6 +14,8 @@ if test "x$prefix" = "xNONE" ; then ...@@ -14,6 +14,8 @@ if test "x$prefix" = "xNONE" ; then
prefix='/usr/local/freeswitch' prefix='/usr/local/freeswitch'
fi fi
AC_CANONICAL_HOST
# Absolute source/build directory # Absolute source/build directory
switch_srcdir=`(cd $srcdir && pwd)` switch_srcdir=`(cd $srcdir && pwd)`
switch_builddir=`pwd` switch_builddir=`pwd`
...@@ -58,7 +60,7 @@ AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"]) ...@@ -58,7 +60,7 @@ AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
# set defaults for use on all platforms # set defaults for use on all platforms
SWITCH_AM_CFLAGS="-I${switch_srcdir}/src/include -I${prefix}/include" SWITCH_AM_CFLAGS="-I${switch_srcdir}/src/include -I${prefix}/include"
SWITCH_AM_CXXFLAGS="-I${switch_srcdir}/src/include -I${prefix}/include" SWITCH_AM_CXXFLAGS="-I${switch_srcdir}/src/include -I${prefix}/include"
SWITCH_AM_LDFLAGS="-L${prefix}/lib -lm -L/usr/local/lib" SWITCH_AM_LDFLAGS="-lm -L/usr/local/lib"
#set SOLINK variable based on compiler and host #set SOLINK variable based on compiler and host
if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
...@@ -66,6 +68,7 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then ...@@ -66,6 +68,7 @@ if test "x${ax_cv_c_compiler_vendor}" = "xsun" ; then
elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then elif test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
case "$host" in case "$host" in
*darwin*) *darwin*)
echo in darwin
SOLINK="-dynamic -bundle -force-flat-namespace" SOLINK="-dynamic -bundle -force-flat-namespace"
;; ;;
*) *)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论