Changeset 4534
- Timestamp:
- 02/08/07 09:35:37 (2 years ago)
- Files:
-
- trackerd/trunk/configure (modified) (27 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trackerd/trunk/configure
r4520 r4534 1378 1378 1379 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1380 1392 # Get host 1381 1393 ac_aux_dir= … … 5010 5022 5011 5023 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5024 for ac_header in pthread.h 5025 5025 do … … 5171 5171 5172 5172 5173 if test "$_wi_pthreads_found" != yes ; then5174 OLD_LIBS="$LIBS"5175 LIBS=" $LIBS"5176 5177 if test "$cross_compiling" = yes; then5178 5179 cat >conftest.$ac_ext <<_ACEOF5173 if test "$_wi_pthreads_found" != yes ; then 5174 OLD_LIBS="$LIBS" 5175 LIBS=" $LIBS" 5176 5177 if test "$cross_compiling" = yes; then 5178 5179 cat >conftest.$ac_ext <<_ACEOF 5180 5180 /* confdefs.h. */ 5181 5181 _ACEOF … … 5184 5184 /* end confdefs.h. */ 5185 5185 5186 #include <pthread.h>5187 #include <errno.h>5188 5189 void * thread(void *arg) {5190 return NULL;5191 }5186 #include <pthread.h> 5187 #include <errno.h> 5188 5189 void * thread(void *arg) { 5190 return NULL; 5191 } 5192 5192 5193 5193 int … … 5195 5195 { 5196 5196 5197 pthread_t tid;5198 5199 if(pthread_create(&tid, 0, thread, NULL) < 0)5200 return errno;5201 5202 return 0;5197 pthread_t tid; 5198 5199 if(pthread_create(&tid, 0, thread, NULL) < 0) 5200 return errno; 5201 5202 return 0; 5203 5203 5204 5204 ; … … 5229 5229 (exit $ac_status); }; }; then 5230 5230 5231 _wi_pthreads_test=yes5231 _wi_pthreads_test=yes 5232 5232 5233 5233 else … … 5236 5236 5237 5237 5238 _wi_pthreads_test=no5238 _wi_pthreads_test=no 5239 5239 5240 5240 fi … … 5251 5251 5252 5252 5253 #include <pthread.h>5254 #include <errno.h>5255 5256 void * thread(void *arg) {5257 return NULL;5258 }5259 5260 5261 int main(void) {5262 5263 pthread_t tid;5264 5265 if(pthread_create(&tid, 0, thread, NULL) < 0)5266 return errno;5267 5268 return 0;5269 5270 }5253 #include <pthread.h> 5254 #include <errno.h> 5255 5256 void * thread(void *arg) { 5257 return NULL; 5258 } 5259 5260 5261 int main(void) { 5262 5263 pthread_t tid; 5264 5265 if(pthread_create(&tid, 0, thread, NULL) < 0) 5266 return errno; 5267 5268 return 0; 5269 5270 } 5271 5271 5272 5272 _ACEOF … … 5283 5283 (exit $ac_status); }; }; then 5284 5284 5285 _wi_pthreads_test=yes5285 _wi_pthreads_test=yes 5286 5286 5287 5287 else … … 5292 5292 ( exit $ac_status ) 5293 5293 5294 _wi_pthreads_test=no5294 _wi_pthreads_test=no 5295 5295 5296 5296 fi … … 5298 5298 fi 5299 5299 5300 LIBS="$OLD_LIBS" 5301 5302 if test "$_wi_pthreads_test" = yes ; then 5303 _wi_pthreads_found=yes 5304 _wi_pthreads_libs="" 5305 fi 5300 LIBS="$OLD_LIBS" 5301 5302 if test "$_wi_pthreads_test" = yes ; then 5303 _wi_pthreads_found=yes 5304 _wi_pthreads_libs="" 5306 5305 fi 5307 5308 5309 if test "$_wi_pthreads_found" != yes ; then 5310 OLD_LIBS="$LIBS" 5311 LIBS=" $LIBS" 5312 5313 if test "$cross_compiling" = yes; then 5314 5315 cat >conftest.$ac_ext <<_ACEOF 5306 fi 5307 5308 5309 if test "$_wi_pthreads_found" != yes ; then 5310 OLD_LIBS="$LIBS" 5311 LIBS="-pthread $LIBS" 5312 5313 if test "$cross_compiling" = yes; then 5314 5315 cat >conftest.$ac_ext <<_ACEOF 5316 5316 /* confdefs.h. */ 5317 5317 _ACEOF … … 5320 5320 /* end confdefs.h. */ 5321 5321 5322 #include <pthread.h>5323 #include <errno.h>5324 5325 void * thread(void *arg) {5326 return NULL;5327 }5322 #include <pthread.h> 5323 #include <errno.h> 5324 5325 void * thread(void *arg) { 5326 return NULL; 5327 } 5328 5328 5329 5329 int … … 5331 5331 { 5332 5332 5333 pthread_t tid;5334 5335 if(pthread_create(&tid, 0, thread, NULL) < 0)5336 return errno;5337 5338 return 0;5333 pthread_t tid; 5334 5335 if(pthread_create(&tid, 0, thread, NULL) < 0) 5336 return errno; 5337 5338 return 0; 5339 5339 5340 5340 ; … … 5365 5365 (exit $ac_status); }; }; then 5366 5366 5367 _wi_pthreads_test=yes5367 _wi_pthreads_test=yes 5368 5368 5369 5369 else … … 5372 5372 5373 5373 5374 _wi_pthreads_test=no5374 _wi_pthreads_test=no 5375 5375 5376 5376 fi … … 5387 5387 5388 5388 5389 #include <pthread.h>5390 #include <errno.h>5391 5392 void * thread(void *arg) {5393 return NULL;5394 }5395 5396 5397 int main(void) {5398 5399 pthread_t tid;5400 5401 if(pthread_create(&tid, 0, thread, NULL) < 0)5402 return errno;5403 5404 return 0;5405 5406 }5389 #include <pthread.h> 5390 #include <errno.h> 5391 5392 void * thread(void *arg) { 5393 return NULL; 5394 } 5395 5396 5397 int main(void) { 5398 5399 pthread_t tid; 5400 5401 if(pthread_create(&tid, 0, thread, NULL) < 0) 5402 return errno; 5403 5404 return 0; 5405 5406 } 5407 5407 5408 5408 _ACEOF … … 5419 5419 (exit $ac_status); }; }; then 5420 5420 5421 _wi_pthreads_test=yes5421 _wi_pthreads_test=yes 5422 5422 5423 5423 else … … 5428 5428 ( exit $ac_status ) 5429 5429 5430 _wi_pthreads_test=no5430 _wi_pthreads_test=no 5431 5431 5432 5432 fi … … 5434 5434 fi 5435 5435 5436 LIBS="$OLD_LIBS" 5437 5438 if test "$_wi_pthreads_test" = yes ; then 5439 _wi_pthreads_found=yes 5440 _wi_pthreads_libs="" 5441 fi 5436 LIBS="$OLD_LIBS" 5437 5438 if test "$_wi_pthreads_test" = yes ; then 5439 _wi_pthreads_found=yes 5440 _wi_pthreads_libs="-pthread" 5442 5441 fi 5443 5444 5445 if test "$_wi_pthreads_found" != yes ; then 5446 OLD_LIBS="$LIBS" 5447 LIBS=" $LIBS" 5448 5449 if test "$cross_compiling" = yes; then 5450 5451 cat >conftest.$ac_ext <<_ACEOF 5442 fi 5443 5444 5445 if test "$_wi_pthreads_found" != yes ; then 5446 OLD_LIBS="$LIBS" 5447 LIBS="-lpthread $LIBS" 5448 5449 if test "$cross_compiling" = yes; then 5450 5451 cat >conftest.$ac_ext <<_ACEOF 5452 5452 /* confdefs.h. */ 5453 5453 _ACEOF … … 5456 5456 /* end confdefs.h. */ 5457 5457 5458 #include <pthread.h>5459 #include <errno.h>5460 5461 void * thread(void *arg) {5462 return NULL;5463 }5458 #include <pthread.h> 5459 #include <errno.h> 5460 5461 void * thread(void *arg) { 5462 return NULL; 5463 } 5464 5464 5465 5465 int … … 5467 5467 { 5468 5468 5469 pthread_t tid;5470 5471 if(pthread_create(&tid, 0, thread, NULL) < 0)5472 return errno;5473 5474 return 0;5469 pthread_t tid; 5470 5471 if(pthread_create(&tid, 0, thread, NULL) < 0) 5472 return errno; 5473 5474 return 0; 5475 5475 5476 5476 ; … … 5501 5501 (exit $ac_status); }; }; then 5502 5502 5503 _wi_pthreads_test=yes5503 _wi_pthreads_test=yes 5504 5504 5505 5505 else … … 5508 5508 5509 5509 5510 _wi_pthreads_test=no5510 _wi_pthreads_test=no 5511 5511 5512 5512 fi … … 5523 5523 5524 5524 5525 #include <pthread.h>5526 #include <errno.h>5527 5528 void * thread(void *arg) {5529 return NULL;5530 }5531 5532 5533 int main(void) {5534 5535 pthread_t tid;5536 5537 if(pthread_create(&tid, 0, thread, NULL) < 0)5538 return errno;5539 5540 return 0;5541 5542 }5525 #include <pthread.h> 5526 #include <errno.h> 5527 5528 void * thread(void *arg) { 5529 return NULL; 5530 } 5531 5532 5533 int main(void) { 5534 5535 pthread_t tid; 5536 5537 if(pthread_create(&tid, 0, thread, NULL) < 0) 5538 return errno; 5539 5540 return 0; 5541 5542 } 5543 5543 5544 5544 _ACEOF … … 5555 5555 (exit $ac_status); }; }; then 5556 5556 5557 _wi_pthreads_test=yes5557 _wi_pthreads_test=yes 5558 5558 5559 5559 else … … 5564 5564 ( exit $ac_status ) 5565 5565 5566 _wi_pthreads_test=no5566 _wi_pthreads_test=no 5567 5567 5568 5568 fi … … 5570 5570 fi 5571 5571 5572 LIBS="$OLD_LIBS" 5573 5574 if test "$_wi_pthreads_test" = yes ; then 5575 _wi_pthreads_found=yes 5576 _wi_pthreads_libs="" 5577 fi 5572 LIBS="$OLD_LIBS" 5573 5574 if test "$_wi_pthreads_test" = yes ; then 5575 _wi_pthreads_found=yes 5576 _wi_pthreads_libs="-lpthread" 5578 5577 fi 5578 fi 5579 5579 5580 5580
