2012/9/4 Cody P Schafer <[email protected]>:
>  AC_MSG_CHECKING([if building with AltiVec])
> -use_altivec=`is_gcc_altivec`
> -AM_CONDITIONAL(USE_ALTIVEC, test x$use_altivec = xhas_altivec)
> -if test x$use_altivec = xhas_altivec; then
> +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
> +#ifndef __ALTIVEC__
> +# error choke
> +#endif
> +]])], [use_altivec=true],[use_altivec=false])

How about setting use_altivec to yes/no, the following could be then
something like:

AM_CONDITIONAL(USE_ALTIVEC, test x$use_altivec = xyes)
AC_MSG_RESULT([$use_altivec])

> +AM_CONDITIONAL(USE_ALTIVEC, $use_altivec)
> +if $use_altivec; then
>    AC_MSG_RESULT([yes])
>  else
>    AC_MSG_RESULT([no])

_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to