summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2010-02-12 14:12:41 +0000
committerBenny Prijono <bennylp@teluu.com>2010-02-12 14:12:41 +0000
commitdf53d8b122ceb11094c3b8f00f327746d81166f9 (patch)
tree937b59dae1d1ce4b012dcb548d240bc66e881014 /aconfigure.ac
parent327a139d0b7c6aa1237418b46d0b76ad0d2767ae (diff)
More ticket #1009: Initial support for IPP on Mac
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3099 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac26
1 files changed, 23 insertions, 3 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 412aea3f..76d73fb3 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -730,9 +730,21 @@ if test "x$enable_ipp" != "xno"; then
SAVED_LIBS="$LIBS"
IPP_CFLAGS="-I$IPPROOT/include"
- IPP_LDFLAGS="-L$IPPROOT/sharedlib"
- IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX} -lguide"
+ IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}"
+
+ # Some differences between Mac OS X and Linux
+ case $target in
+ *darwin* )
+ IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib"
+ ;;
+ *)
+ IPP_LDFLAGS="-L$IPPROOT/sharedlib"
+ IPP_LIBS="$IPP_LIBS -lguide"
+ ;;
+ esac
+
#IPP_LDFLAGS="-L$IPPROOT/sharedlib"
+ #Static:
#IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore"
CFLAGS="$CFLAGS $IPP_CFLAGS"
@@ -786,7 +798,15 @@ if test "x$enable_ipp" != "xno"; then
IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/bin/*gcc*/lib | head -1`
elif test -d $IPPSAMPLES/speech-codecs/_bin; then
IPPVER=6
- IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
+ if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then
+ # gcc compiler
+ IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1`
+ elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then
+ # icc compiler
+ IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1`
+ else
+ AC_MSG_FAILURE([Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?])
+ fi
else
AC_MSG_FAILURE([unable to find $IPPSAMPLES/speech-codecs/bin/*gcc*/lib or $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib directory. Have you built the samples?])
fi