Mercurial > mplayer.hg
comparison configure @ 26597:d66592752162
Check for altivec.h always, not just when AltiVec is enabled.
author | diego |
---|---|
date | Thu, 01 May 2008 13:45:00 +0000 |
parents | eb5b003d247a |
children | ee15950f50a7 |
comparison
equal
deleted
inserted
replaced
26596:75dcc46740c4 | 26597:d66592752162 |
---|---|
2498 | 2498 |
2499 # check if <altivec.h> should be included | 2499 # check if <altivec.h> should be included |
2500 | 2500 |
2501 _def_altivec_h='#undef HAVE_ALTIVEC_H' | 2501 _def_altivec_h='#undef HAVE_ALTIVEC_H' |
2502 | 2502 |
2503 if test "$_altivec" = yes ; then | |
2504 echocheck "altivec.h" | 2503 echocheck "altivec.h" |
2505 cat > $TMPC << EOF | 2504 cat > $TMPC << EOF |
2506 #include <altivec.h> | 2505 #include <altivec.h> |
2507 int main(void) { return 0; } | 2506 int main(void) { return 0; } |
2508 EOF | 2507 EOF |
2510 cc_check $_altivec_gcc_flags && _have_altivec_h=yes | 2509 cc_check $_altivec_gcc_flags && _have_altivec_h=yes |
2511 if test "$_have_altivec_h" = yes ; then | 2510 if test "$_have_altivec_h" = yes ; then |
2512 _def_altivec_h='#define HAVE_ALTIVEC_H 1' | 2511 _def_altivec_h='#define HAVE_ALTIVEC_H 1' |
2513 fi | 2512 fi |
2514 echores "$_have_altivec_h" | 2513 echores "$_have_altivec_h" |
2515 fi | |
2516 | 2514 |
2517 # disable runtime cpudetection if | 2515 # disable runtime cpudetection if |
2518 # - we cannot generate altivec code | 2516 # - we cannot generate altivec code |
2519 # - altivec is disabled by the user | 2517 # - altivec is disabled by the user |
2520 | 2518 |