Ignore:
Timestamp:
Feb 12, 2010 2:12:41 PM (13 years ago)
Author:
bennylp
Message:

More ticket #1009: Initial support for IPP on Mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r3097 r3099  
    731731 
    732732        IPP_CFLAGS="-I$IPPROOT/include" 
    733         IPP_LDFLAGS="-L$IPPROOT/sharedlib" 
    734         IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX} -lguide" 
     733        IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" 
     734 
     735        # Some differences between Mac OS X and Linux 
     736        case $target in  
     737            *darwin* ) 
     738                IPP_LDFLAGS="-L$IPPROOT/Libraries -L$IPPROOT/lib" 
     739                ;; 
     740            *) 
     741                IPP_LDFLAGS="-L$IPPROOT/sharedlib" 
     742                IPP_LIBS="$IPP_LIBS -lguide" 
     743                ;; 
     744        esac 
     745 
    735746        #IPP_LDFLAGS="-L$IPPROOT/sharedlib" 
     747        #Static: 
    736748        #IPP_LIBS="-lippscmerged -lippsrmerged -lippsmerged -lippcore" 
    737749 
     
    787799        elif test -d $IPPSAMPLES/speech-codecs/_bin; then 
    788800            IPPVER=6 
    789             IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` 
     801            if test -d $IPPSAMPLES/speech-codecs/_bin/*gcc*; then 
     802                # gcc compiler 
     803                IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*gcc*/lib | head -1` 
     804            elif test -d $IPPSAMPLES/speech-codecs/_bin/*icc*; then 
     805                # icc compiler 
     806                IPPSAMP_DIR=`ls -d $IPPSAMPLES/speech-codecs/_bin/*icc*/lib | head -1` 
     807            else 
     808                AC_MSG_FAILURE([Unable to find to find built binaries under $IPPSAMPLES/speech-codecs/{bin,_bin}. Have you built the IPP samples?]) 
     809            fi 
    790810        else 
    791811            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?]) 
Note: See TracChangeset for help on using the changeset viewer.