Changeset 4532
- Timestamp:
- 02/08/07 00:16:21 (2 years ago)
- Files:
-
- wired/trunk/configure (modified) (27 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wired/trunk/configure
r4519 r4532 1376 1376 1377 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1378 1390 # Get host 1379 1391 ac_aux_dir= … … 5008 5020 5009 5021 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5022 for ac_header in pthread.h 5023 5023 do … … 5169 5169 5170 5170 5171 if test "$_wi_pthreads_found" != yes ; then5172 OLD_LIBS="$LIBS"5173 LIBS=" $LIBS"5174 5175 if test "$cross_compiling" = yes; then5176 5177 cat >conftest.$ac_ext <<_ACEOF5171 if test "$_wi_pthreads_found" != yes ; then 5172 OLD_LIBS="$LIBS" 5173 LIBS=" $LIBS" 5174 5175 if test "$cross_compiling" = yes; then 5176 5177 cat >conftest.$ac_ext <<_ACEOF 5178 5178 /* confdefs.h. */ 5179 5179 _ACEOF … … 5182 5182 /* end confdefs.h. */ 5183 5183 5184 #include <pthread.h>5185 #include <errno.h>5186 5187 void * thread(void *arg) {5188 return NULL;5189 }5184 #include <pthread.h> 5185 #include <errno.h> 5186 5187 void * thread(void *arg) { 5188 return NULL; 5189 } 5190 5190 5191 5191 int … … 5193 5193 { 5194 5194 5195 pthread_t tid;5196 5197 if(pthread_create(&tid, 0, thread, NULL) < 0)5198 return errno;5199 5200 return 0;5195 pthread_t tid; 5196 5197 if(pthread_create(&tid, 0, thread, NULL) < 0) 5198 return errno; 5199 5200 return 0; 5201 5201 5202 5202 ; … … 5227 5227 (exit $ac_status); }; }; then 5228 5228 5229 _wi_pthreads_test=yes5229 _wi_pthreads_test=yes 5230 5230 5231 5231 else … … 5234 5234 5235 5235 5236 _wi_pthreads_test=no5236 _wi_pthreads_test=no 5237 5237 5238 5238 fi … … 5249 5249 5250 5250 5251 #include <pthread.h>5252 #include <errno.h>5253 5254 void * thread(void *arg) {5255 return NULL;5256 }5257 5258 5259 int main(void) {5260 5261 pthread_t tid;5262 5263 if(pthread_create(&tid, 0, thread, NULL) < 0)5264 return errno;5265 5266 return 0;5267 5268 }5251 #include <pthread.h> 5252 #include <errno.h> 5253 5254 void * thread(void *arg) { 5255 return NULL; 5256 } 5257 5258 5259 int main(void) { 5260 5261 pthread_t tid; 5262 5263 if(pthread_create(&tid, 0, thread, NULL) < 0) 5264 return errno; 5265 5266 return 0; 5267 5268 } 5269 5269 5270 5270 _ACEOF … … 5281 5281 (exit $ac_status); }; }; then 5282 5282 5283 _wi_pthreads_test=yes5283 _wi_pthreads_test=yes 5284 5284 5285 5285 else … … 5290 5290 ( exit $ac_status ) 5291 5291 5292 _wi_pthreads_test=no5292 _wi_pthreads_test=no 5293 5293 5294 5294 fi … … 5296 5296 fi 5297 5297 5298 LIBS="$OLD_LIBS" 5299 5300 if test "$_wi_pthreads_test" = yes ; then 5301 _wi_pthreads_found=yes 5302 _wi_pthreads_libs="" 5303 fi 5298 LIBS="$OLD_LIBS" 5299 5300 if test "$_wi_pthreads_test" = yes ; then 5301 _wi_pthreads_found=yes 5302 _wi_pthreads_libs="" 5304 5303 fi 5305 5306 5307 if test "$_wi_pthreads_found" != yes ; then 5308 OLD_LIBS="$LIBS" 5309 LIBS=" $LIBS" 5310 5311 if test "$cross_compiling" = yes; then 5312 5313 cat >conftest.$ac_ext <<_ACEOF 5304 fi 5305 5306 5307 if test "$_wi_pthreads_found" != yes ; then 5308 OLD_LIBS="$LIBS" 5309 LIBS="-pthread $LIBS" 5310 5311 if test "$cross_compiling" = yes; then 5312 5313 cat >conftest.$ac_ext <<_ACEOF 5314 5314 /* confdefs.h. */ 5315 5315 _ACEOF … … 5318 5318 /* end confdefs.h. */ 5319 5319 5320 #include <pthread.h>5321 #include <errno.h>5322 5323 void * thread(void *arg) {5324 return NULL;5325 }5320 #include <pthread.h> 5321 #include <errno.h> 5322 5323 void * thread(void *arg) { 5324 return NULL; 5325 } 5326 5326 5327 5327 int … … 5329 5329 { 5330 5330 5331 pthread_t tid;5332 5333 if(pthread_create(&tid, 0, thread, NULL) < 0)5334 return errno;5335 5336 return 0;5331 pthread_t tid; 5332 5333 if(pthread_create(&tid, 0, thread, NULL) < 0) 5334 return errno; 5335 5336 return 0; 5337 5337 5338 5338 ; … … 5363 5363 (exit $ac_status); }; }; then 5364 5364 5365 _wi_pthreads_test=yes5365 _wi_pthreads_test=yes 5366 5366 5367 5367 else … … 5370 5370 5371 5371 5372 _wi_pthreads_test=no5372 _wi_pthreads_test=no 5373 5373 5374 5374 fi … … 5385 5385 5386 5386 5387 #include <pthread.h>5388 #include <errno.h>5389 5390 void * thread(void *arg) {5391 return NULL;5392 }5393 5394 5395 int main(void) {5396 5397 pthread_t tid;5398 5399 if(pthread_create(&tid, 0, thread, NULL) < 0)5400 return errno;5401 5402 return 0;5403 5404 }5387 #include <pthread.h> 5388 #include <errno.h> 5389 5390 void * thread(void *arg) { 5391 return NULL; 5392 } 5393 5394 5395 int main(void) { 5396 5397 pthread_t tid; 5398 5399 if(pthread_create(&tid, 0, thread, NULL) < 0) 5400 return errno; 5401 5402 return 0; 5403 5404 } 5405 5405 5406 5406 _ACEOF … … 5417 5417 (exit $ac_status); }; }; then 5418 5418 5419 _wi_pthreads_test=yes5419 _wi_pthreads_test=yes 5420 5420 5421 5421 else … … 5426 5426 ( exit $ac_status ) 5427 5427 5428 _wi_pthreads_test=no5428 _wi_pthreads_test=no 5429 5429 5430 5430 fi … … 5432 5432 fi 5433 5433 5434 LIBS="$OLD_LIBS" 5435 5436 if test "$_wi_pthreads_test" = yes ; then 5437 _wi_pthreads_found=yes 5438 _wi_pthreads_libs="" 5439 fi 5434 LIBS="$OLD_LIBS" 5435 5436 if test "$_wi_pthreads_test" = yes ; then 5437 _wi_pthreads_found=yes 5438 _wi_pthreads_libs="-pthread" 5440 5439 fi 5441 5442 5443 if test "$_wi_pthreads_found" != yes ; then 5444 OLD_LIBS="$LIBS" 5445 LIBS=" $LIBS" 5446 5447 if test "$cross_compiling" = yes; then 5448 5449 cat >conftest.$ac_ext <<_ACEOF 5440 fi 5441 5442 5443 if test "$_wi_pthreads_found" != yes ; then 5444 OLD_LIBS="$LIBS" 5445 LIBS="-lpthread $LIBS" 5446 5447 if test "$cross_compiling" = yes; then 5448 5449 cat >conftest.$ac_ext <<_ACEOF 5450 5450 /* confdefs.h. */ 5451 5451 _ACEOF … … 5454 5454 /* end confdefs.h. */ 5455 5455 5456 #include <pthread.h>5457 #include <errno.h>5458 5459 void * thread(void *arg) {5460 return NULL;5461 }5456 #include <pthread.h> 5457 #include <errno.h> 5458 5459 void * thread(void *arg) { 5460 return NULL; 5461 } 5462 5462 5463 5463 int … … 5465 5465 { 5466 5466 5467 pthread_t tid;5468 5469 if(pthread_create(&tid, 0, thread, NULL) < 0)5470 return errno;5471 5472 return 0;5467 pthread_t tid; 5468 5469 if(pthread_create(&tid, 0, thread, NULL) < 0) 5470 return errno; 5471 5472 return 0; 5473 5473 5474 5474 ; … … 5499 5499 (exit $ac_status); }; }; then 5500 5500 5501 _wi_pthreads_test=yes5501 _wi_pthreads_test=yes 5502 5502 5503 5503 else … … 5506 5506 5507 5507 5508 _wi_pthreads_test=no5508 _wi_pthreads_test=no 5509 5509 5510 5510 fi … … 5521 5521 5522 5522 5523 #include <pthread.h>5524 #include <errno.h>5525 5526 void * thread(void *arg) {5527 return NULL;5528 }5529 5530 5531 int main(void) {5532 5533 pthread_t tid;5534 5535 if(pthread_create(&tid, 0, thread, NULL) < 0)5536 return errno;5537 5538 return 0;5539 5540 }5523 #include <pthread.h> 5524 #include <errno.h> 5525 5526 void * thread(void *arg) { 5527 return NULL; 5528 } 5529 5530 5531 int main(void) { 5532 5533 pthread_t tid; 5534 5535 if(pthread_create(&tid, 0, thread, NULL) < 0) 5536 return errno; 5537 5538 return 0; 5539 5540 } 5541 5541 5542 5542 _ACEOF … … 5553 5553 (exit $ac_status); }; }; then 5554 5554 5555 _wi_pthreads_test=yes5555 _wi_pthreads_test=yes 5556 5556 5557 5557 else … … 5562 5562 ( exit $ac_status ) 5563 5563 5564 _wi_pthreads_test=no5564 _wi_pthreads_test=no 5565 5565 5566 5566 fi … … 5568 5568 fi 5569 5569 5570 LIBS="$OLD_LIBS" 5571 5572 if test "$_wi_pthreads_test" = yes ; then 5573 _wi_pthreads_found=yes 5574 _wi_pthreads_libs="" 5575 fi 5570 LIBS="$OLD_LIBS" 5571 5572 if test "$_wi_pthreads_test" = yes ; then 5573 _wi_pthreads_found=yes 5574 _wi_pthreads_libs="-lpthread" 5576 5575 fi 5576 fi 5577 5577 5578 5578
