Ignore:
Timestamp:
Apr 11, 2011 2:43:04 AM (13 years ago)
Author:
bennylp
Message:

Support for Intel IPP 7. This closes #1227

Location:
pjproject/branches/projects/2.0-dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev

  • pjproject/branches/projects/2.0-dev/aconfigure.ac

    r3499 r3517  
    919919 
    920920        IPP_CFLAGS="-I$IPPROOT/include" 
    921         IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippsr${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" 
    922  
     921        IPP_LIBS="-lippsc${IPP_SUFFIX} -lipps${IPP_SUFFIX} -lippcore${IPP_SUFFIX}" 
     922 
     923# 
    923924        # Some differences between Mac OS X and Linux 
    924925        case $target in  
     
    927928                ;; 
    928929            *) 
    929                 IPP_LDFLAGS="-L$IPPROOT/sharedlib" 
    930                 IPP_LIBS="$IPP_LIBS -lguide" 
     930                # Find out where the libraries live. 
     931                IPP7_ARCH="" 
     932                if test -d $IPPROOT/lib/intel64; then 
     933                   IPP7_ARCH="intel64" 
     934                elif test -d $IPPROOT/lib/ia32; then 
     935                   IPP7_ARCH="ia32" 
     936                elif test -d $IPPROOT/lib/mic; then 
     937                   IPP7_ARCH="mic" 
     938                fi 
     939 
     940                if test -z "$IPP7_ARCH"; then 
     941                   # IPP6 (and possibly below) 
     942                   IPP_LDFLAGS="-L$IPPROOT/sharedlib" 
     943                   IPP_LIBS="$IPP_LIBS  -lippsr${IPP_SUFFIX} -lguide" 
     944                else 
     945                   # IPP7 
     946                   if ! test -d $IPPROOT/../compiler; then 
     947                        AC_MSG_ERROR([Cannot find $IPPROOT/../compiler directory. Please set IPPROOT variable correctly]) 
     948                   fi 
     949                   IPP_CFLAGS="$IPP_CFLAGS" 
     950                   IPP_LDFLAGS="-L$IPPROOT/lib/intel64 -L$IPPROOT/../compiler/lib/$IPP7_ARCH" 
     951                   IPP_LIBS="$IPP_LIBS -liomp5" 
     952                fi 
    931953                ;; 
    932954        esac 
Note: See TracChangeset for help on using the changeset viewer.