Mercurial > mplayer.hg
comparison configure @ 6658:64cf429bd7eb
detectin of __restrict keyword - patch by Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
author | arpi |
---|---|
date | Sat, 06 Jul 2002 15:20:10 +0000 |
parents | d2c224cf5468 |
children | 2377a525addd |
comparison
equal
deleted
inserted
replaced
6657:766b6fb28ebf | 6658:64cf429bd7eb |
---|---|
1428 else | 1428 else |
1429 _def_runtime_cpudetection='#undef RUNTIME_CPUDETECT' | 1429 _def_runtime_cpudetection='#undef RUNTIME_CPUDETECT' |
1430 fi | 1430 fi |
1431 echores "$_runtime_cpudetection" | 1431 echores "$_runtime_cpudetection" |
1432 | 1432 |
1433 echocheck "restrict keyword" | |
1434 for restrict_keyword in restrict __restrict __restrict__ ; do | |
1435 echo "void foo(char * $restrict_keyword p); int main(){}" > $TMPC | |
1436 if cc_check; then | |
1437 _def_restrict_keyword=$restrict_keyword | |
1438 break; | |
1439 fi | |
1440 done | |
1441 if [ -n "$_def_restrict_keyword" ]; then | |
1442 echores "$_def_restrict_keyword" | |
1443 else | |
1444 echores "none" | |
1445 fi | |
1433 | 1446 |
1434 echocheck "kstat" | 1447 echocheck "kstat" |
1435 cat > $TMPC << EOF | 1448 cat > $TMPC << EOF |
1436 #include <kstat.h> | 1449 #include <kstat.h> |
1437 int main(void) { (void) kstat_open(); (void) kstat_close(0); return 0; } | 1450 int main(void) { (void) kstat_open(); (void) kstat_close(0); return 0; } |
4129 $_def_i18n | 4142 $_def_i18n |
4130 | 4143 |
4131 /* Runtime Cpudetection */ | 4144 /* Runtime Cpudetection */ |
4132 $_def_runtime_cpudetection | 4145 $_def_runtime_cpudetection |
4133 | 4146 |
4147 /* "restrict" keyword */ | |
4148 #define restrict $_def_restrict_keyword | |
4149 | |
4134 #define PREFIX "$_prefix" | 4150 #define PREFIX "$_prefix" |
4135 | 4151 |
4136 /* define this to use simple idct with patched libavcodec */ | 4152 /* define this to use simple idct with patched libavcodec */ |
4137 #define SIMPLE_IDCT 1 | 4153 #define SIMPLE_IDCT 1 |
4138 | 4154 |