[vsipl++] [patch] configure change for IPP 5.0

Jules Bergmann jules at codesourcery.com
Mon Aug 28 15:50:19 UTC 2006


Don McCoy wrote:
> This teaches configure about a function name change in IPP 5.0 that 
> affected the way configure probes for the core library.  This now works 
> for both 4.1 and 5.0.

Don,

This looks good.  Please have a look at my comment below.  If that isn't 
feasible, then please check it in.

				-- Jules


>      save_LDFLAGS="$LDFLAGS"
>      LDFLAGS="$LDFLAGS $IPP_LDFLAGS"
>      LIBS="-lpthread $LIBS"
> +    # IPP 4.1 uses the first version, 5.0 uses the second.
>      AC_SEARCH_LIBS(ippCoreGetCpuType, [$ippcore_search],,
> -      [LD_FLAGS="$save_LDFLAGS"])
> +      [
> +        AC_SEARCH_LIBS(ippGetCpuType, [$ippcore_search],,
> +          [LD_FLAGS="$save_LDFLAGS"])
> +      ])
>      
>      save_LDFLAGS="$LDFLAGS"
>      LDFLAGS="$LDFLAGS $IPP_LDFLAGS"

If these are the only changes necessary to go from 4.1 to 5.0, it looks 
like they are pretty similar.

Since we don't actually use ippCoreGetCputype/ippGetCpuType in the 
library, i.e. we only use it to determine if IPP is present, is there 
another function that we could check for that is the same in both 4.1 
and 5.0?  Then our configure check would be even simpler.

					
-- 
Jules Bergmann
CodeSourcery
jules at codesourcery.com
(650) 331-3385 x705



More information about the vsipl++ mailing list