- Timestamp:
- 16/08/06 12:08:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI05-delivery/trunk/src/bbftp-client-3.2.0/bbftpc/configure
r1389 r1406 863 863 --with-afs=DIR Enable AFS interface: search AFS libs in DIR/lib 864 864 --without-afs Disable AFS (DEFAULT) 865 866 --with-rfio Enable RFIO interface: automatic search (DEFAULT) in /usr/local 867 --with-rfio=DIR Enable RFIO interface: search libshift in DIR/lib and .h in DIR/include 868 --without-rfio Disable RFIO interface 869 870 --with-hpss Enable HPSS interface: automatic search (DEFAULT) in /usr/local 871 --with-hpss=DIR Enable HPSS interface: search libhpss in DIR/lib 872 --without-hpss Disable HPSS interface 865 873 866 874 --with-ssl Enable encoding: automatic search (DEFAULT) … … 11357 11365 11358 11366 11359 # 11360 # This section requires a macro which isn't provided in the bbftp distribution 11361 # For the moment I've disabled it since NDG doesn't expect to support RFIO. 11362 # 11363 #AC_ARG_WITH([rfio],[ 11364 # --with-rfio Enable RFIO interface: automatic search (DEFAULT) in /usr/local 11365 # --with-rfio=DIR Enable RFIO interface: search libshift in DIR/lib and .h in DIR/include 11366 # --without-rfio Disable RFIO interface], 11367 #[result=yes],[result=no]) 11368 #if test $result = no ; then 11369 # with_rfio="yes" 11370 #fi 11371 #if test "$with_rfio" != "no" ; then 11372 # if test "$with_rfio" = "yes" ; then 11373 # CCIN2P3_CHECK_RFIO([RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o"],[AC_MSG_WARN(RFIO not installed)]) 11374 # else 11375 # CCIN2P3_CHECK_RFIO([RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o"],[AC_MSG_WARN(RFIO not installed)],[$with_rfio]) 11376 # fi 11377 #fi 11367 11368 11369 # Check whether --with-rfio or --without-rfio was given. 11370 if test "${with_rfio+set}" = set; then 11371 withval="$with_rfio" 11372 result=yes 11373 else 11374 result=no 11375 fi; 11376 if test $result = no ; then 11377 with_rfio="yes" 11378 fi 11379 if test "$with_rfio" != "no" ; then 11380 if test "$with_rfio" = "yes" ; then 11381 11382 OLDLDFLAGS="$LDFLAGS" 11383 OLDCPPFLAGS="$CPPFLAGS" 11384 OLDLIBS=$LIBS 11385 if test 2 -gt 2 ; then 11386 rfio_root_dir= 11387 else 11388 rfio_root_dir="/usr/local" 11389 fi 11390 # LDFLAGS="$LDFLAGS -L$rfio_root_dir/lib" 11391 LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 11392 CPPFLAGS="$CPPFLAGS -I$rfio_root_dir/include -I$rfio_root_dir/include/shift" 11393 echo "$as_me:$LINENO: checking for library containing getservbyname_r" >&5 11394 echo $ECHO_N "checking for library containing getservbyname_r... $ECHO_C" >&6 11395 if test "${ac_cv_search_getservbyname_r+set}" = set; then 11396 echo $ECHO_N "(cached) $ECHO_C" >&6 11397 else 11398 ac_func_search_save_LIBS=$LIBS 11399 ac_cv_search_getservbyname_r=no 11400 cat >conftest.$ac_ext <<_ACEOF 11401 /* confdefs.h. */ 11402 _ACEOF 11403 cat confdefs.h >>conftest.$ac_ext 11404 cat >>conftest.$ac_ext <<_ACEOF 11405 /* end confdefs.h. */ 11406 11407 /* Override any gcc2 internal prototype to avoid an error. */ 11408 #ifdef __cplusplus 11409 extern "C" 11410 #endif 11411 /* We use char because int might match the return type of a gcc2 11412 builtin and then its argument prototype would still apply. */ 11413 char getservbyname_r (); 11414 int 11415 main () 11416 { 11417 getservbyname_r (); 11418 ; 11419 return 0; 11420 } 11421 _ACEOF 11422 rm -f conftest.$ac_objext conftest$ac_exeext 11423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11424 (eval $ac_link) 2>conftest.er1 11425 ac_status=$? 11426 grep -v '^ *+' conftest.er1 >conftest.err 11427 rm -f conftest.er1 11428 cat conftest.err >&5 11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11430 (exit $ac_status); } && 11431 { ac_try='test -z "$ac_c_werror_flag" 11432 || test ! -s conftest.err' 11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11434 (eval $ac_try) 2>&5 11435 ac_status=$? 11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11437 (exit $ac_status); }; } && 11438 { ac_try='test -s conftest$ac_exeext' 11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11440 (eval $ac_try) 2>&5 11441 ac_status=$? 11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11443 (exit $ac_status); }; }; then 11444 ac_cv_search_getservbyname_r="none required" 11445 else 11446 echo "$as_me: failed program was:" >&5 11447 sed 's/^/| /' conftest.$ac_ext >&5 11448 11449 fi 11450 rm -f conftest.err conftest.$ac_objext \ 11451 conftest$ac_exeext conftest.$ac_ext 11452 if test "$ac_cv_search_getservbyname_r" = no; then 11453 for ac_lib in socket xnet; do 11454 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11455 cat >conftest.$ac_ext <<_ACEOF 11456 /* confdefs.h. */ 11457 _ACEOF 11458 cat confdefs.h >>conftest.$ac_ext 11459 cat >>conftest.$ac_ext <<_ACEOF 11460 /* end confdefs.h. */ 11461 11462 /* Override any gcc2 internal prototype to avoid an error. */ 11463 #ifdef __cplusplus 11464 extern "C" 11465 #endif 11466 /* We use char because int might match the return type of a gcc2 11467 builtin and then its argument prototype would still apply. */ 11468 char getservbyname_r (); 11469 int 11470 main () 11471 { 11472 getservbyname_r (); 11473 ; 11474 return 0; 11475 } 11476 _ACEOF 11477 rm -f conftest.$ac_objext conftest$ac_exeext 11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11479 (eval $ac_link) 2>conftest.er1 11480 ac_status=$? 11481 grep -v '^ *+' conftest.er1 >conftest.err 11482 rm -f conftest.er1 11483 cat conftest.err >&5 11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11485 (exit $ac_status); } && 11486 { ac_try='test -z "$ac_c_werror_flag" 11487 || test ! -s conftest.err' 11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11489 (eval $ac_try) 2>&5 11490 ac_status=$? 11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11492 (exit $ac_status); }; } && 11493 { ac_try='test -s conftest$ac_exeext' 11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11495 (eval $ac_try) 2>&5 11496 ac_status=$? 11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11498 (exit $ac_status); }; }; then 11499 ac_cv_search_getservbyname_r="-l$ac_lib" 11500 break 11501 else 11502 echo "$as_me: failed program was:" >&5 11503 sed 's/^/| /' conftest.$ac_ext >&5 11504 11505 fi 11506 rm -f conftest.err conftest.$ac_objext \ 11507 conftest$ac_exeext conftest.$ac_ext 11508 done 11509 fi 11510 LIBS=$ac_func_search_save_LIBS 11511 fi 11512 echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname_r" >&5 11513 echo "${ECHO_T}$ac_cv_search_getservbyname_r" >&6 11514 if test "$ac_cv_search_getservbyname_r" != no; then 11515 test "$ac_cv_search_getservbyname_r" = "none required" || LIBS="$ac_cv_search_getservbyname_r $LIBS" 11516 11517 fi 11518 echo "$as_me:$LINENO: checking for library containing gethostbyaddr_r" >&5 11519 echo $ECHO_N "checking for library containing gethostbyaddr_r... $ECHO_C" >&6 11520 if test "${ac_cv_search_gethostbyaddr_r+set}" = set; then 11521 echo $ECHO_N "(cached) $ECHO_C" >&6 11522 else 11523 ac_func_search_save_LIBS=$LIBS 11524 ac_cv_search_gethostbyaddr_r=no 11525 cat >conftest.$ac_ext <<_ACEOF 11526 /* confdefs.h. */ 11527 _ACEOF 11528 cat confdefs.h >>conftest.$ac_ext 11529 cat >>conftest.$ac_ext <<_ACEOF 11530 /* end confdefs.h. */ 11531 11532 /* Override any gcc2 internal prototype to avoid an error. */ 11533 #ifdef __cplusplus 11534 extern "C" 11535 #endif 11536 /* We use char because int might match the return type of a gcc2 11537 builtin and then its argument prototype would still apply. */ 11538 char gethostbyaddr_r (); 11539 int 11540 main () 11541 { 11542 gethostbyaddr_r (); 11543 ; 11544 return 0; 11545 } 11546 _ACEOF 11547 rm -f conftest.$ac_objext conftest$ac_exeext 11548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11549 (eval $ac_link) 2>conftest.er1 11550 ac_status=$? 11551 grep -v '^ *+' conftest.er1 >conftest.err 11552 rm -f conftest.er1 11553 cat conftest.err >&5 11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11555 (exit $ac_status); } && 11556 { ac_try='test -z "$ac_c_werror_flag" 11557 || test ! -s conftest.err' 11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11559 (eval $ac_try) 2>&5 11560 ac_status=$? 11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11562 (exit $ac_status); }; } && 11563 { ac_try='test -s conftest$ac_exeext' 11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11565 (eval $ac_try) 2>&5 11566 ac_status=$? 11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11568 (exit $ac_status); }; }; then 11569 ac_cv_search_gethostbyaddr_r="none required" 11570 else 11571 echo "$as_me: failed program was:" >&5 11572 sed 's/^/| /' conftest.$ac_ext >&5 11573 11574 fi 11575 rm -f conftest.err conftest.$ac_objext \ 11576 conftest$ac_exeext conftest.$ac_ext 11577 if test "$ac_cv_search_gethostbyaddr_r" = no; then 11578 for ac_lib in nsl; do 11579 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11580 cat >conftest.$ac_ext <<_ACEOF 11581 /* confdefs.h. */ 11582 _ACEOF 11583 cat confdefs.h >>conftest.$ac_ext 11584 cat >>conftest.$ac_ext <<_ACEOF 11585 /* end confdefs.h. */ 11586 11587 /* Override any gcc2 internal prototype to avoid an error. */ 11588 #ifdef __cplusplus 11589 extern "C" 11590 #endif 11591 /* We use char because int might match the return type of a gcc2 11592 builtin and then its argument prototype would still apply. */ 11593 char gethostbyaddr_r (); 11594 int 11595 main () 11596 { 11597 gethostbyaddr_r (); 11598 ; 11599 return 0; 11600 } 11601 _ACEOF 11602 rm -f conftest.$ac_objext conftest$ac_exeext 11603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11604 (eval $ac_link) 2>conftest.er1 11605 ac_status=$? 11606 grep -v '^ *+' conftest.er1 >conftest.err 11607 rm -f conftest.er1 11608 cat conftest.err >&5 11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11610 (exit $ac_status); } && 11611 { ac_try='test -z "$ac_c_werror_flag" 11612 || test ! -s conftest.err' 11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11614 (eval $ac_try) 2>&5 11615 ac_status=$? 11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11617 (exit $ac_status); }; } && 11618 { ac_try='test -s conftest$ac_exeext' 11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11620 (eval $ac_try) 2>&5 11621 ac_status=$? 11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11623 (exit $ac_status); }; }; then 11624 ac_cv_search_gethostbyaddr_r="-l$ac_lib" 11625 break 11626 else 11627 echo "$as_me: failed program was:" >&5 11628 sed 's/^/| /' conftest.$ac_ext >&5 11629 11630 fi 11631 rm -f conftest.err conftest.$ac_objext \ 11632 conftest$ac_exeext conftest.$ac_ext 11633 done 11634 fi 11635 LIBS=$ac_func_search_save_LIBS 11636 fi 11637 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyaddr_r" >&5 11638 echo "${ECHO_T}$ac_cv_search_gethostbyaddr_r" >&6 11639 if test "$ac_cv_search_gethostbyaddr_r" != no; then 11640 test "$ac_cv_search_gethostbyaddr_r" = "none required" || LIBS="$ac_cv_search_gethostbyaddr_r $LIBS" 11641 11642 fi 11643 echo "$as_me:$LINENO: checking for library containing sched_get_priority_max" >&5 11644 echo $ECHO_N "checking for library containing sched_get_priority_max... $ECHO_C" >&6 11645 if test "${ac_cv_search_sched_get_priority_max+set}" = set; then 11646 echo $ECHO_N "(cached) $ECHO_C" >&6 11647 else 11648 ac_func_search_save_LIBS=$LIBS 11649 ac_cv_search_sched_get_priority_max=no 11650 cat >conftest.$ac_ext <<_ACEOF 11651 /* confdefs.h. */ 11652 _ACEOF 11653 cat confdefs.h >>conftest.$ac_ext 11654 cat >>conftest.$ac_ext <<_ACEOF 11655 /* end confdefs.h. */ 11656 11657 /* Override any gcc2 internal prototype to avoid an error. */ 11658 #ifdef __cplusplus 11659 extern "C" 11660 #endif 11661 /* We use char because int might match the return type of a gcc2 11662 builtin and then its argument prototype would still apply. */ 11663 char sched_get_priority_max (); 11664 int 11665 main () 11666 { 11667 sched_get_priority_max (); 11668 ; 11669 return 0; 11670 } 11671 _ACEOF 11672 rm -f conftest.$ac_objext conftest$ac_exeext 11673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11674 (eval $ac_link) 2>conftest.er1 11675 ac_status=$? 11676 grep -v '^ *+' conftest.er1 >conftest.err 11677 rm -f conftest.er1 11678 cat conftest.err >&5 11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11680 (exit $ac_status); } && 11681 { ac_try='test -z "$ac_c_werror_flag" 11682 || test ! -s conftest.err' 11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11684 (eval $ac_try) 2>&5 11685 ac_status=$? 11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11687 (exit $ac_status); }; } && 11688 { ac_try='test -s conftest$ac_exeext' 11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11690 (eval $ac_try) 2>&5 11691 ac_status=$? 11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11693 (exit $ac_status); }; }; then 11694 ac_cv_search_sched_get_priority_max="none required" 11695 else 11696 echo "$as_me: failed program was:" >&5 11697 sed 's/^/| /' conftest.$ac_ext >&5 11698 11699 fi 11700 rm -f conftest.err conftest.$ac_objext \ 11701 conftest$ac_exeext conftest.$ac_ext 11702 if test "$ac_cv_search_sched_get_priority_max" = no; then 11703 for ac_lib in rt posix4; do 11704 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11705 cat >conftest.$ac_ext <<_ACEOF 11706 /* confdefs.h. */ 11707 _ACEOF 11708 cat confdefs.h >>conftest.$ac_ext 11709 cat >>conftest.$ac_ext <<_ACEOF 11710 /* end confdefs.h. */ 11711 11712 /* Override any gcc2 internal prototype to avoid an error. */ 11713 #ifdef __cplusplus 11714 extern "C" 11715 #endif 11716 /* We use char because int might match the return type of a gcc2 11717 builtin and then its argument prototype would still apply. */ 11718 char sched_get_priority_max (); 11719 int 11720 main () 11721 { 11722 sched_get_priority_max (); 11723 ; 11724 return 0; 11725 } 11726 _ACEOF 11727 rm -f conftest.$ac_objext conftest$ac_exeext 11728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11729 (eval $ac_link) 2>conftest.er1 11730 ac_status=$? 11731 grep -v '^ *+' conftest.er1 >conftest.err 11732 rm -f conftest.er1 11733 cat conftest.err >&5 11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11735 (exit $ac_status); } && 11736 { ac_try='test -z "$ac_c_werror_flag" 11737 || test ! -s conftest.err' 11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11739 (eval $ac_try) 2>&5 11740 ac_status=$? 11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11742 (exit $ac_status); }; } && 11743 { ac_try='test -s conftest$ac_exeext' 11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11745 (eval $ac_try) 2>&5 11746 ac_status=$? 11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11748 (exit $ac_status); }; }; then 11749 ac_cv_search_sched_get_priority_max="-l$ac_lib" 11750 break 11751 else 11752 echo "$as_me: failed program was:" >&5 11753 sed 's/^/| /' conftest.$ac_ext >&5 11754 11755 fi 11756 rm -f conftest.err conftest.$ac_objext \ 11757 conftest$ac_exeext conftest.$ac_ext 11758 done 11759 fi 11760 LIBS=$ac_func_search_save_LIBS 11761 fi 11762 echo "$as_me:$LINENO: result: $ac_cv_search_sched_get_priority_max" >&5 11763 echo "${ECHO_T}$ac_cv_search_sched_get_priority_max" >&6 11764 if test "$ac_cv_search_sched_get_priority_max" != no; then 11765 test "$ac_cv_search_sched_get_priority_max" = "none required" || LIBS="$ac_cv_search_sched_get_priority_max $LIBS" 11766 11767 fi 11768 as_ac_File=`echo "ac_cv_file_$rfio_root_dir/include/shift/rfio_api.h" | $as_tr_sh` 11769 echo "$as_me:$LINENO: checking for $rfio_root_dir/include/shift/rfio_api.h" >&5 11770 echo $ECHO_N "checking for $rfio_root_dir/include/shift/rfio_api.h... $ECHO_C" >&6 11771 if eval "test \"\${$as_ac_File+set}\" = set"; then 11772 echo $ECHO_N "(cached) $ECHO_C" >&6 11773 else 11774 test "$cross_compiling" = yes && 11775 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 11776 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 11777 { (exit 1); exit 1; }; } 11778 if test -r "$rfio_root_dir/include/shift/rfio_api.h"; then 11779 eval "$as_ac_File=yes" 11780 else 11781 eval "$as_ac_File=no" 11782 fi 11783 fi 11784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 11785 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 11786 if test `eval echo '${'$as_ac_File'}'` = yes; then 11787 result=yes 11788 else 11789 result=no 11790 fi 11791 11792 if test $result = yes ; then 11793 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 11794 echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 11795 if test "${ac_cv_search_pthread_create+set}" = set; then 11796 echo $ECHO_N "(cached) $ECHO_C" >&6 11797 else 11798 ac_func_search_save_LIBS=$LIBS 11799 ac_cv_search_pthread_create=no 11800 cat >conftest.$ac_ext <<_ACEOF 11801 /* confdefs.h. */ 11802 _ACEOF 11803 cat confdefs.h >>conftest.$ac_ext 11804 cat >>conftest.$ac_ext <<_ACEOF 11805 /* end confdefs.h. */ 11806 11807 /* Override any gcc2 internal prototype to avoid an error. */ 11808 #ifdef __cplusplus 11809 extern "C" 11810 #endif 11811 /* We use char because int might match the return type of a gcc2 11812 builtin and then its argument prototype would still apply. */ 11813 char pthread_create (); 11814 int 11815 main () 11816 { 11817 pthread_create (); 11818 ; 11819 return 0; 11820 } 11821 _ACEOF 11822 rm -f conftest.$ac_objext conftest$ac_exeext 11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11824 (eval $ac_link) 2>conftest.er1 11825 ac_status=$? 11826 grep -v '^ *+' conftest.er1 >conftest.err 11827 rm -f conftest.er1 11828 cat conftest.err >&5 11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11830 (exit $ac_status); } && 11831 { ac_try='test -z "$ac_c_werror_flag" 11832 || test ! -s conftest.err' 11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11834 (eval $ac_try) 2>&5 11835 ac_status=$? 11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11837 (exit $ac_status); }; } && 11838 { ac_try='test -s conftest$ac_exeext' 11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11840 (eval $ac_try) 2>&5 11841 ac_status=$? 11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11843 (exit $ac_status); }; }; then 11844 ac_cv_search_pthread_create="none required" 11845 else 11846 echo "$as_me: failed program was:" >&5 11847 sed 's/^/| /' conftest.$ac_ext >&5 11848 11849 fi 11850 rm -f conftest.err conftest.$ac_objext \ 11851 conftest$ac_exeext conftest.$ac_ext 11852 if test "$ac_cv_search_pthread_create" = no; then 11853 for ac_lib in pthread pthreads dce; do 11854 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11855 cat >conftest.$ac_ext <<_ACEOF 11856 /* confdefs.h. */ 11857 _ACEOF 11858 cat confdefs.h >>conftest.$ac_ext 11859 cat >>conftest.$ac_ext <<_ACEOF 11860 /* end confdefs.h. */ 11861 11862 /* Override any gcc2 internal prototype to avoid an error. */ 11863 #ifdef __cplusplus 11864 extern "C" 11865 #endif 11866 /* We use char because int might match the return type of a gcc2 11867 builtin and then its argument prototype would still apply. */ 11868 char pthread_create (); 11869 int 11870 main () 11871 { 11872 pthread_create (); 11873 ; 11874 return 0; 11875 } 11876 _ACEOF 11877 rm -f conftest.$ac_objext conftest$ac_exeext 11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11879 (eval $ac_link) 2>conftest.er1 11880 ac_status=$? 11881 grep -v '^ *+' conftest.er1 >conftest.err 11882 rm -f conftest.er1 11883 cat conftest.err >&5 11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11885 (exit $ac_status); } && 11886 { ac_try='test -z "$ac_c_werror_flag" 11887 || test ! -s conftest.err' 11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11889 (eval $ac_try) 2>&5 11890 ac_status=$? 11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11892 (exit $ac_status); }; } && 11893 { ac_try='test -s conftest$ac_exeext' 11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11895 (eval $ac_try) 2>&5 11896 ac_status=$? 11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11898 (exit $ac_status); }; }; then 11899 ac_cv_search_pthread_create="-l$ac_lib" 11900 break 11901 else 11902 echo "$as_me: failed program was:" >&5 11903 sed 's/^/| /' conftest.$ac_ext >&5 11904 11905 fi 11906 rm -f conftest.err conftest.$ac_objext \ 11907 conftest$ac_exeext conftest.$ac_ext 11908 done 11909 fi 11910 LIBS=$ac_func_search_save_LIBS 11911 fi 11912 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 11913 echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 11914 if test "$ac_cv_search_pthread_create" != no; then 11915 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" 11916 11917 fi 11918 echo "$as_me:$LINENO: checking for library containing pthread_kill" >&5 11919 echo $ECHO_N "checking for library containing pthread_kill... $ECHO_C" >&6 11920 if test "${ac_cv_search_pthread_kill+set}" = set; then 11921 echo $ECHO_N "(cached) $ECHO_C" >&6 11922 else 11923 ac_func_search_save_LIBS=$LIBS 11924 ac_cv_search_pthread_kill=no 11925 cat >conftest.$ac_ext <<_ACEOF 11926 /* confdefs.h. */ 11927 _ACEOF 11928 cat confdefs.h >>conftest.$ac_ext 11929 cat >>conftest.$ac_ext <<_ACEOF 11930 /* end confdefs.h. */ 11931 11932 /* Override any gcc2 internal prototype to avoid an error. */ 11933 #ifdef __cplusplus 11934 extern "C" 11935 #endif 11936 /* We use char because int might match the return type of a gcc2 11937 builtin and then its argument prototype would still apply. */ 11938 char pthread_kill (); 11939 int 11940 main () 11941 { 11942 pthread_kill (); 11943 ; 11944 return 0; 11945 } 11946 _ACEOF 11947 rm -f conftest.$ac_objext conftest$ac_exeext 11948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11949 (eval $ac_link) 2>conftest.er1 11950 ac_status=$? 11951 grep -v '^ *+' conftest.er1 >conftest.err 11952 rm -f conftest.er1 11953 cat conftest.err >&5 11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11955 (exit $ac_status); } && 11956 { ac_try='test -z "$ac_c_werror_flag" 11957 || test ! -s conftest.err' 11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11959 (eval $ac_try) 2>&5 11960 ac_status=$? 11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11962 (exit $ac_status); }; } && 11963 { ac_try='test -s conftest$ac_exeext' 11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11965 (eval $ac_try) 2>&5 11966 ac_status=$? 11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11968 (exit $ac_status); }; }; then 11969 ac_cv_search_pthread_kill="none required" 11970 else 11971 echo "$as_me: failed program was:" >&5 11972 sed 's/^/| /' conftest.$ac_ext >&5 11973 11974 fi 11975 rm -f conftest.err conftest.$ac_objext \ 11976 conftest$ac_exeext conftest.$ac_ext 11977 if test "$ac_cv_search_pthread_kill" = no; then 11978 for ac_lib in pthread pthreads; do 11979 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11980 cat >conftest.$ac_ext <<_ACEOF 11981 /* confdefs.h. */ 11982 _ACEOF 11983 cat confdefs.h >>conftest.$ac_ext 11984 cat >>conftest.$ac_ext <<_ACEOF 11985 /* end confdefs.h. */ 11986 11987 /* Override any gcc2 internal prototype to avoid an error. */ 11988 #ifdef __cplusplus 11989 extern "C" 11990 #endif 11991 /* We use char because int might match the return type of a gcc2 11992 builtin and then its argument prototype would still apply. */ 11993 char pthread_kill (); 11994 int 11995 main () 11996 { 11997 pthread_kill (); 11998 ; 11999 return 0; 12000 } 12001 _ACEOF 12002 rm -f conftest.$ac_objext conftest$ac_exeext 12003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12004 (eval $ac_link) 2>conftest.er1 12005 ac_status=$? 12006 grep -v '^ *+' conftest.er1 >conftest.err 12007 rm -f conftest.er1 12008 cat conftest.err >&5 12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12010 (exit $ac_status); } && 12011 { ac_try='test -z "$ac_c_werror_flag" 12012 || test ! -s conftest.err' 12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12014 (eval $ac_try) 2>&5 12015 ac_status=$? 12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12017 (exit $ac_status); }; } && 12018 { ac_try='test -s conftest$ac_exeext' 12019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12020 (eval $ac_try) 2>&5 12021 ac_status=$? 12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12023 (exit $ac_status); }; }; then 12024 ac_cv_search_pthread_kill="-l$ac_lib" 12025 break 12026 else 12027 echo "$as_me: failed program was:" >&5 12028 sed 's/^/| /' conftest.$ac_ext >&5 12029 12030 fi 12031 rm -f conftest.err conftest.$ac_objext \ 12032 conftest$ac_exeext conftest.$ac_ext 12033 done 12034 fi 12035 LIBS=$ac_func_search_save_LIBS 12036 fi 12037 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_kill" >&5 12038 echo "${ECHO_T}$ac_cv_search_pthread_kill" >&6 12039 if test "$ac_cv_search_pthread_kill" != no; then 12040 test "$ac_cv_search_pthread_kill" = "none required" || LIBS="$ac_cv_search_pthread_kill $LIBS" 12041 12042 fi 12043 echo "$as_me:$LINENO: checking for rfio_open64" >&5 12044 echo $ECHO_N "checking for rfio_open64... $ECHO_C" >&6 12045 if test "${ac_cv_func_rfio_open64+set}" = set; then 12046 echo $ECHO_N "(cached) $ECHO_C" >&6 12047 else 12048 cat >conftest.$ac_ext <<_ACEOF 12049 /* confdefs.h. */ 12050 _ACEOF 12051 cat confdefs.h >>conftest.$ac_ext 12052 cat >>conftest.$ac_ext <<_ACEOF 12053 /* end confdefs.h. */ 12054 /* Define rfio_open64 to an innocuous variant, in case <limits.h> declares rfio_open64. 12055 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12056 #define rfio_open64 innocuous_rfio_open64 12057 12058 /* System header to define __stub macros and hopefully few prototypes, 12059 which can conflict with char rfio_open64 (); below. 12060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12061 <limits.h> exists even on freestanding compilers. */ 12062 12063 #ifdef __STDC__ 12064 # include <limits.h> 12065 #else 12066 # include <assert.h> 12067 #endif 12068 12069 #undef rfio_open64 12070 12071 /* Override any gcc2 internal prototype to avoid an error. */ 12072 #ifdef __cplusplus 12073 extern "C" 12074 { 12075 #endif 12076 /* We use char because int might match the return type of a gcc2 12077 builtin and then its argument prototype would still apply. */ 12078 char rfio_open64 (); 12079 /* The GNU C library defines this for functions which it implements 12080 to always fail with ENOSYS. Some functions are actually named 12081 something starting with __ and the normal name is an alias. */ 12082 #if defined (__stub_rfio_open64) || defined (__stub___rfio_open64) 12083 choke me 12084 #else 12085 char (*f) () = rfio_open64; 12086 #endif 12087 #ifdef __cplusplus 12088 } 12089 #endif 12090 12091 int 12092 main () 12093 { 12094 return f != rfio_open64; 12095 ; 12096 return 0; 12097 } 12098 _ACEOF 12099 rm -f conftest.$ac_objext conftest$ac_exeext 12100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12101 (eval $ac_link) 2>conftest.er1 12102 ac_status=$? 12103 grep -v '^ *+' conftest.er1 >conftest.err 12104 rm -f conftest.er1 12105 cat conftest.err >&5 12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12107 (exit $ac_status); } && 12108 { ac_try='test -z "$ac_c_werror_flag" 12109 || test ! -s conftest.err' 12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12111 (eval $ac_try) 2>&5 12112 ac_status=$? 12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12114 (exit $ac_status); }; } && 12115 { ac_try='test -s conftest$ac_exeext' 12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12117 (eval $ac_try) 2>&5 12118 ac_status=$? 12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12120 (exit $ac_status); }; }; then 12121 ac_cv_func_rfio_open64=yes 12122 else 12123 echo "$as_me: failed program was:" >&5 12124 sed 's/^/| /' conftest.$ac_ext >&5 12125 12126 ac_cv_func_rfio_open64=no 12127 fi 12128 rm -f conftest.err conftest.$ac_objext \ 12129 conftest$ac_exeext conftest.$ac_ext 12130 fi 12131 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open64" >&5 12132 echo "${ECHO_T}$ac_cv_func_rfio_open64" >&6 12133 if test $ac_cv_func_rfio_open64 = yes; then 12134 cat >>confdefs.h <<\_ACEOF 12135 #define WITH_RFIO64 1 12136 _ACEOF 12137 12138 fi 12139 12140 else 12141 echo "$as_me:$LINENO: checking for rfio_open" >&5 12142 echo $ECHO_N "checking for rfio_open... $ECHO_C" >&6 12143 if test "${ac_cv_func_rfio_open+set}" = set; then 12144 echo $ECHO_N "(cached) $ECHO_C" >&6 12145 else 12146 cat >conftest.$ac_ext <<_ACEOF 12147 /* confdefs.h. */ 12148 _ACEOF 12149 cat confdefs.h >>conftest.$ac_ext 12150 cat >>conftest.$ac_ext <<_ACEOF 12151 /* end confdefs.h. */ 12152 /* Define rfio_open to an innocuous variant, in case <limits.h> declares rfio_open. 12153 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12154 #define rfio_open innocuous_rfio_open 12155 12156 /* System header to define __stub macros and hopefully few prototypes, 12157 which can conflict with char rfio_open (); below. 12158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12159 <limits.h> exists even on freestanding compilers. */ 12160 12161 #ifdef __STDC__ 12162 # include <limits.h> 12163 #else 12164 # include <assert.h> 12165 #endif 12166 12167 #undef rfio_open 12168 12169 /* Override any gcc2 internal prototype to avoid an error. */ 12170 #ifdef __cplusplus 12171 extern "C" 12172 { 12173 #endif 12174 /* We use char because int might match the return type of a gcc2 12175 builtin and then its argument prototype would still apply. */ 12176 char rfio_open (); 12177 /* The GNU C library defines this for functions which it implements 12178 to always fail with ENOSYS. Some functions are actually named 12179 something starting with __ and the normal name is an alias. */ 12180 #if defined (__stub_rfio_open) || defined (__stub___rfio_open) 12181 choke me 12182 #else 12183 char (*f) () = rfio_open; 12184 #endif 12185 #ifdef __cplusplus 12186 } 12187 #endif 12188 12189 int 12190 main () 12191 { 12192 return f != rfio_open; 12193 ; 12194 return 0; 12195 } 12196 _ACEOF 12197 rm -f conftest.$ac_objext conftest$ac_exeext 12198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12199 (eval $ac_link) 2>conftest.er1 12200 ac_status=$? 12201 grep -v '^ *+' conftest.er1 >conftest.err 12202 rm -f conftest.er1 12203 cat conftest.err >&5 12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12205 (exit $ac_status); } && 12206 { ac_try='test -z "$ac_c_werror_flag" 12207 || test ! -s conftest.err' 12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12209 (eval $ac_try) 2>&5 12210 ac_status=$? 12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12212 (exit $ac_status); }; } && 12213 { ac_try='test -s conftest$ac_exeext' 12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12215 (eval $ac_try) 2>&5 12216 ac_status=$? 12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12218 (exit $ac_status); }; }; then 12219 ac_cv_func_rfio_open=yes 12220 else 12221 echo "$as_me: failed program was:" >&5 12222 sed 's/^/| /' conftest.$ac_ext >&5 12223 12224 ac_cv_func_rfio_open=no 12225 fi 12226 rm -f conftest.err conftest.$ac_objext \ 12227 conftest$ac_exeext conftest.$ac_ext 12228 fi 12229 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open" >&5 12230 echo "${ECHO_T}$ac_cv_func_rfio_open" >&6 12231 if test $ac_cv_func_rfio_open = yes; then 12232 cat >>confdefs.h <<\_ACEOF 12233 #define WITH_RFIO 1 12234 _ACEOF 12235 12236 fi 12237 12238 fi 12239 if test "$ac_cv_func_rfio_open64" = "no" || test "$ac_cv_func_rfio_open" = "no" ; then 12240 LDFLAGS="$OLDLDFLAGS" 12241 CPPFLAGS="$OLDCPPFLAGS" 12242 LIBS="$OLDLIBS" 12243 ccin2p3_cv_rfio=no 12244 else 12245 12246 for ac_header in shift.h 12247 do 12248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12249 if eval "test \"\${$as_ac_Header+set}\" = set"; then 12250 echo "$as_me:$LINENO: checking for $ac_header" >&5 12251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12252 if eval "test \"\${$as_ac_Header+set}\" = set"; then 12253 echo $ECHO_N "(cached) $ECHO_C" >&6 12254 fi 12255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12257 else 12258 # Is the header compilable? 12259 echo "$as_me:$LINENO: checking $ac_header usability" >&5 12260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12261 cat >conftest.$ac_ext <<_ACEOF 12262 /* confdefs.h. */ 12263 _ACEOF 12264 cat confdefs.h >>conftest.$ac_ext 12265 cat >>conftest.$ac_ext <<_ACEOF 12266 /* end confdefs.h. */ 12267 $ac_includes_default 12268 #include <$ac_header> 12269 _ACEOF 12270 rm -f conftest.$ac_objext 12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12272 (eval $ac_compile) 2>conftest.er1 12273 ac_status=$? 12274 grep -v '^ *+' conftest.er1 >conftest.err 12275 rm -f conftest.er1 12276 cat conftest.err >&5 12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12278 (exit $ac_status); } && 12279 { ac_try='test -z "$ac_c_werror_flag" 12280 || test ! -s conftest.err' 12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12282 (eval $ac_try) 2>&5 12283 ac_status=$? 12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12285 (exit $ac_status); }; } && 12286 { ac_try='test -s conftest.$ac_objext' 12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12288 (eval $ac_try) 2>&5 12289 ac_status=$? 12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12291 (exit $ac_status); }; }; then 12292 ac_header_compiler=yes 12293 else 12294 echo "$as_me: failed program was:" >&5 12295 sed 's/^/| /' conftest.$ac_ext >&5 12296 12297 ac_header_compiler=no 12298 fi 12299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12301 echo "${ECHO_T}$ac_header_compiler" >&6 12302 12303 # Is the header present? 12304 echo "$as_me:$LINENO: checking $ac_header presence" >&5 12305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12306 cat >conftest.$ac_ext <<_ACEOF 12307 /* confdefs.h. */ 12308 _ACEOF 12309 cat confdefs.h >>conftest.$ac_ext 12310 cat >>conftest.$ac_ext <<_ACEOF 12311 /* end confdefs.h. */ 12312 #include <$ac_header> 12313 _ACEOF 12314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12316 ac_status=$? 12317 grep -v '^ *+' conftest.er1 >conftest.err 12318 rm -f conftest.er1 12319 cat conftest.err >&5 12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12321 (exit $ac_status); } >/dev/null; then 12322 if test -s conftest.err; then 12323 ac_cpp_err=$ac_c_preproc_warn_flag 12324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12325 else 12326 ac_cpp_err= 12327 fi 12328 else 12329 ac_cpp_err=yes 12330 fi 12331 if test -z "$ac_cpp_err"; then 12332 ac_header_preproc=yes 12333 else 12334 echo "$as_me: failed program was:" >&5 12335 sed 's/^/| /' conftest.$ac_ext >&5 12336 12337 ac_header_preproc=no 12338 fi 12339 rm -f conftest.err conftest.$ac_ext 12340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12341 echo "${ECHO_T}$ac_header_preproc" >&6 12342 12343 # So? What about this header? 12344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12345 yes:no: ) 12346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12350 ac_header_preproc=yes 12351 ;; 12352 no:yes:* ) 12353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12365 ( 12366 cat <<\_ASBOX 12367 ## ------------------------------------------ ## 12368 ## Report this to the AC_PACKAGE_NAME lists. ## 12369 ## ------------------------------------------ ## 12370 _ASBOX 12371 ) | 12372 sed "s/^/$as_me: WARNING: /" >&2 12373 ;; 12374 esac 12375 echo "$as_me:$LINENO: checking for $ac_header" >&5 12376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12377 if eval "test \"\${$as_ac_Header+set}\" = set"; then 12378 echo $ECHO_N "(cached) $ECHO_C" >&6 12379 else 12380 eval "$as_ac_Header=\$ac_header_preproc" 12381 fi 12382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12384 12385 fi 12386 if test `eval echo '${'$as_ac_Header'}'` = yes; then 12387 cat >>confdefs.h <<_ACEOF 12388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12389 _ACEOF 12390 12391 else 12392 { { echo "$as_me:$LINENO: error: shift.h not found in $CPPFLAGS" >&5 12393 echo "$as_me: error: shift.h not found in $CPPFLAGS" >&2;} 12394 { (exit 1); exit 1; }; } 12395 fi 12396 12397 done 12398 12399 # LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 12400 LDFLAGS="$OLDLDFLAGS" 12401 if test "$ac_cv_func_rfio_open" = "yes" ; then 12402 echo "$as_me:$LINENO: checking for rfio_HsmIf_FindPhysicalPath" >&5 12403 echo $ECHO_N "checking for rfio_HsmIf_FindPhysicalPath... $ECHO_C" >&6 12404 if test "${ac_cv_func_rfio_HsmIf_FindPhysicalPath+set}" = set; then 12405 echo $ECHO_N "(cached) $ECHO_C" >&6 12406 else 12407 cat >conftest.$ac_ext <<_ACEOF 12408 /* confdefs.h. */ 12409 _ACEOF 12410 cat confdefs.h >>conftest.$ac_ext 12411 cat >>conftest.$ac_ext <<_ACEOF 12412 /* end confdefs.h. */ 12413 /* Define rfio_HsmIf_FindPhysicalPath to an innocuous variant, in case <limits.h> declares rfio_HsmIf_FindPhysicalPath. 12414 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12415 #define rfio_HsmIf_FindPhysicalPath innocuous_rfio_HsmIf_FindPhysicalPath 12416 12417 /* System header to define __stub macros and hopefully few prototypes, 12418 which can conflict with char rfio_HsmIf_FindPhysicalPath (); below. 12419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12420 <limits.h> exists even on freestanding compilers. */ 12421 12422 #ifdef __STDC__ 12423 # include <limits.h> 12424 #else 12425 # include <assert.h> 12426 #endif 12427 12428 #undef rfio_HsmIf_FindPhysicalPath 12429 12430 /* Override any gcc2 internal prototype to avoid an error. */ 12431 #ifdef __cplusplus 12432 extern "C" 12433 { 12434 #endif 12435 /* We use char because int might match the return type of a gcc2 12436 builtin and then its argument prototype would still apply. */ 12437 char rfio_HsmIf_FindPhysicalPath (); 12438 /* The GNU C library defines this for functions which it implements 12439 to always fail with ENOSYS. Some functions are actually named 12440 something starting with __ and the normal name is an alias. */ 12441 #if defined (__stub_rfio_HsmIf_FindPhysicalPath) || defined (__stub___rfio_HsmIf_FindPhysicalPath) 12442 choke me 12443 #else 12444 char (*f) () = rfio_HsmIf_FindPhysicalPath; 12445 #endif 12446 #ifdef __cplusplus 12447 } 12448 #endif 12449 12450 int 12451 main () 12452 { 12453 return f != rfio_HsmIf_FindPhysicalPath; 12454 ; 12455 return 0; 12456 } 12457 _ACEOF 12458 rm -f conftest.$ac_objext conftest$ac_exeext 12459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12460 (eval $ac_link) 2>conftest.er1 12461 ac_status=$? 12462 grep -v '^ *+' conftest.er1 >conftest.err 12463 rm -f conftest.er1 12464 cat conftest.err >&5 12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12466 (exit $ac_status); } && 12467 { ac_try='test -z "$ac_c_werror_flag" 12468 || test ! -s conftest.err' 12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12470 (eval $ac_try) 2>&5 12471 ac_status=$? 12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12473 (exit $ac_status); }; } && 12474 { ac_try='test -s conftest$ac_exeext' 12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12476 (eval $ac_try) 2>&5 12477 ac_status=$? 12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12479 (exit $ac_status); }; }; then 12480 ac_cv_func_rfio_HsmIf_FindPhysicalPath=yes 12481 else 12482 echo "$as_me: failed program was:" >&5 12483 sed 's/^/| /' conftest.$ac_ext >&5 12484 12485 ac_cv_func_rfio_HsmIf_FindPhysicalPath=no 12486 fi 12487 rm -f conftest.err conftest.$ac_objext \ 12488 conftest$ac_exeext conftest.$ac_ext 12489 fi 12490 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&5 12491 echo "${ECHO_T}$ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&6 12492 if test $ac_cv_func_rfio_HsmIf_FindPhysicalPath = yes; then 12493 result=yes 12494 else 12495 result=no 12496 fi 12497 12498 if test $result = yes ; then 12499 if test "${ac_cv_header_stage_api_h+set}" = set; then 12500 echo "$as_me:$LINENO: checking for stage_api.h" >&5 12501 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 12502 if test "${ac_cv_header_stage_api_h+set}" = set; then 12503 echo $ECHO_N "(cached) $ECHO_C" >&6 12504 fi 12505 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 12506 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 12507 else 12508 # Is the header compilable? 12509 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 12510 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 12511 cat >conftest.$ac_ext <<_ACEOF 12512 /* confdefs.h. */ 12513 _ACEOF 12514 cat confdefs.h >>conftest.$ac_ext 12515 cat >>conftest.$ac_ext <<_ACEOF 12516 /* end confdefs.h. */ 12517 $ac_includes_default 12518 #include <stage_api.h> 12519 _ACEOF 12520 rm -f conftest.$ac_objext 12521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12522 (eval $ac_compile) 2>conftest.er1 12523 ac_status=$? 12524 grep -v '^ *+' conftest.er1 >conftest.err 12525 rm -f conftest.er1 12526 cat conftest.err >&5 12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12528 (exit $ac_status); } && 12529 { ac_try='test -z "$ac_c_werror_flag" 12530 || test ! -s conftest.err' 12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12532 (eval $ac_try) 2>&5 12533 ac_status=$? 12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12535 (exit $ac_status); }; } && 12536 { ac_try='test -s conftest.$ac_objext' 12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12538 (eval $ac_try) 2>&5 12539 ac_status=$? 12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12541 (exit $ac_status); }; }; then 12542 ac_header_compiler=yes 12543 else 12544 echo "$as_me: failed program was:" >&5 12545 sed 's/^/| /' conftest.$ac_ext >&5 12546 12547 ac_header_compiler=no 12548 fi 12549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12551 echo "${ECHO_T}$ac_header_compiler" >&6 12552 12553 # Is the header present? 12554 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 12555 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 12556 cat >conftest.$ac_ext <<_ACEOF 12557 /* confdefs.h. */ 12558 _ACEOF 12559 cat confdefs.h >>conftest.$ac_ext 12560 cat >>conftest.$ac_ext <<_ACEOF 12561 /* end confdefs.h. */ 12562 #include <stage_api.h> 12563 _ACEOF 12564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12566 ac_status=$? 12567 grep -v '^ *+' conftest.er1 >conftest.err 12568 rm -f conftest.er1 12569 cat conftest.err >&5 12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12571 (exit $ac_status); } >/dev/null; then 12572 if test -s conftest.err; then 12573 ac_cpp_err=$ac_c_preproc_warn_flag 12574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12575 else 12576 ac_cpp_err= 12577 fi 12578 else 12579 ac_cpp_err=yes 12580 fi 12581 if test -z "$ac_cpp_err"; then 12582 ac_header_preproc=yes 12583 else 12584 echo "$as_me: failed program was:" >&5 12585 sed 's/^/| /' conftest.$ac_ext >&5 12586 12587 ac_header_preproc=no 12588 fi 12589 rm -f conftest.err conftest.$ac_ext 12590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12591 echo "${ECHO_T}$ac_header_preproc" >&6 12592 12593 # So? What about this header? 12594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12595 yes:no: ) 12596 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 12597 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12598 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 12599 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 12600 ac_header_preproc=yes 12601 ;; 12602 no:yes:* ) 12603 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 12604 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 12605 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 12606 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 12607 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 12608 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 12609 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 12610 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 12611 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 12612 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 12613 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 12614 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 12615 ( 12616 cat <<\_ASBOX 12617 ## ------------------------------------------ ## 12618 ## Report this to the AC_PACKAGE_NAME lists. ## 12619 ## ------------------------------------------ ## 12620 _ASBOX 12621 ) | 12622 sed "s/^/$as_me: WARNING: /" >&2 12623 ;; 12624 esac 12625 echo "$as_me:$LINENO: checking for stage_api.h" >&5 12626 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 12627 if test "${ac_cv_header_stage_api_h+set}" = set; then 12628 echo $ECHO_N "(cached) $ECHO_C" >&6 12629 else 12630 ac_cv_header_stage_api_h=$ac_header_preproc 12631 fi 12632 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 12633 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 12634 12635 fi 12636 if test $ac_cv_header_stage_api_h = yes; then 12637 result=yes 12638 else 12639 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 12640 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 12641 { (exit 1); exit 1; }; } 12642 fi 12643 12644 12645 cat >>confdefs.h <<\_ACEOF 12646 #define CASTOR 1 12647 _ACEOF 12648 12649 fi 12650 else 12651 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 12652 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 12653 if test "${ac_cv_func_rfio_setcos+set}" = set; then 12654 echo $ECHO_N "(cached) $ECHO_C" >&6 12655 else 12656 cat >conftest.$ac_ext <<_ACEOF 12657 /* confdefs.h. */ 12658 _ACEOF 12659 cat confdefs.h >>conftest.$ac_ext 12660 cat >>conftest.$ac_ext <<_ACEOF 12661 /* end confdefs.h. */ 12662 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 12663 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12664 #define rfio_setcos innocuous_rfio_setcos 12665 12666 /* System header to define __stub macros and hopefully few prototypes, 12667 which can conflict with char rfio_setcos (); below. 12668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12669 <limits.h> exists even on freestanding compilers. */ 12670 12671 #ifdef __STDC__ 12672 # include <limits.h> 12673 #else 12674 # include <assert.h> 12675 #endif 12676 12677 #undef rfio_setcos 12678 12679 /* Override any gcc2 internal prototype to avoid an error. */ 12680 #ifdef __cplusplus 12681 extern "C" 12682 { 12683 #endif 12684 /* We use char because int might match the return type of a gcc2 12685 builtin and then its argument prototype would still apply. */ 12686 char rfio_setcos (); 12687 /* The GNU C library defines this for functions which it implements 12688 to always fail with ENOSYS. Some functions are actually named 12689 something starting with __ and the normal name is an alias. */ 12690 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 12691 choke me 12692 #else 12693 char (*f) () = rfio_setcos; 12694 #endif 12695 #ifdef __cplusplus 12696 } 12697 #endif 12698 12699 int 12700 main () 12701 { 12702 return f != rfio_setcos; 12703 ; 12704 return 0; 12705 } 12706 _ACEOF 12707 rm -f conftest.$ac_objext conftest$ac_exeext 12708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12709 (eval $ac_link) 2>conftest.er1 12710 ac_status=$? 12711 grep -v '^ *+' conftest.er1 >conftest.err 12712 rm -f conftest.er1 12713 cat conftest.err >&5 12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12715 (exit $ac_status); } && 12716 { ac_try='test -z "$ac_c_werror_flag" 12717 || test ! -s conftest.err' 12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12719 (eval $ac_try) 2>&5 12720 ac_status=$? 12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12722 (exit $ac_status); }; } && 12723 { ac_try='test -s conftest$ac_exeext' 12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12725 (eval $ac_try) 2>&5 12726 ac_status=$? 12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12728 (exit $ac_status); }; }; then 12729 ac_cv_func_rfio_setcos=yes 12730 else 12731 echo "$as_me: failed program was:" >&5 12732 sed 's/^/| /' conftest.$ac_ext >&5 12733 12734 ac_cv_func_rfio_setcos=no 12735 fi 12736 rm -f conftest.err conftest.$ac_objext \ 12737 conftest$ac_exeext conftest.$ac_ext 12738 fi 12739 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 12740 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 12741 if test $ac_cv_func_rfio_setcos = yes; then 12742 result=yes 12743 else 12744 result=no 12745 fi 12746 12747 if test $result = no ; then 12748 unset ac_cv_func_rfio_setcos 12749 12750 # Check whether --with-hpss or --without-hpss was given. 12751 if test "${with_hpss+set}" = set; then 12752 withval="$with_hpss" 12753 resulthpss=yes 12754 else 12755 resulthpss=no 12756 fi; 12757 if test $resulthpss != no ; then 12758 if test $with_hpss = yes ; then 12759 hpss_root_dir="/usr/local" 12760 else 12761 hpss_root_dir=$with_hpss 12762 fi 12763 OLDLIBS="$LIBS" 12764 LIBS="$LIBS $hpss_root_dir/lib/libhpss.a" 12765 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 12766 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 12767 if test "${ac_cv_func_rfio_setcos+set}" = set; then 12768 echo $ECHO_N "(cached) $ECHO_C" >&6 12769 else 12770 cat >conftest.$ac_ext <<_ACEOF 12771 /* confdefs.h. */ 12772 _ACEOF 12773 cat confdefs.h >>conftest.$ac_ext 12774 cat >>conftest.$ac_ext <<_ACEOF 12775 /* end confdefs.h. */ 12776 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 12777 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12778 #define rfio_setcos innocuous_rfio_setcos 12779 12780 /* System header to define __stub macros and hopefully few prototypes, 12781 which can conflict with char rfio_setcos (); below. 12782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12783 <limits.h> exists even on freestanding compilers. */ 12784 12785 #ifdef __STDC__ 12786 # include <limits.h> 12787 #else 12788 # include <assert.h> 12789 #endif 12790 12791 #undef rfio_setcos 12792 12793 /* Override any gcc2 internal prototype to avoid an error. */ 12794 #ifdef __cplusplus 12795 extern "C" 12796 { 12797 #endif 12798 /* We use char because int might match the return type of a gcc2 12799 builtin and then its argument prototype would still apply. */ 12800 char rfio_setcos (); 12801 /* The GNU C library defines this for functions which it implements 12802 to always fail with ENOSYS. Some functions are actually named 12803 something starting with __ and the normal name is an alias. */ 12804 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 12805 choke me 12806 #else 12807 char (*f) () = rfio_setcos; 12808 #endif 12809 #ifdef __cplusplus 12810 } 12811 #endif 12812 12813 int 12814 main () 12815 { 12816 return f != rfio_setcos; 12817 ; 12818 return 0; 12819 } 12820 _ACEOF 12821 rm -f conftest.$ac_objext conftest$ac_exeext 12822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12823 (eval $ac_link) 2>conftest.er1 12824 ac_status=$? 12825 grep -v '^ *+' conftest.er1 >conftest.err 12826 rm -f conftest.er1 12827 cat conftest.err >&5 12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12829 (exit $ac_status); } && 12830 { ac_try='test -z "$ac_c_werror_flag" 12831 || test ! -s conftest.err' 12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12833 (eval $ac_try) 2>&5 12834 ac_status=$? 12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12836 (exit $ac_status); }; } && 12837 { ac_try='test -s conftest$ac_exeext' 12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12839 (eval $ac_try) 2>&5 12840 ac_status=$? 12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12842 (exit $ac_status); }; }; then 12843 ac_cv_func_rfio_setcos=yes 12844 else 12845 echo "$as_me: failed program was:" >&5 12846 sed 's/^/| /' conftest.$ac_ext >&5 12847 12848 ac_cv_func_rfio_setcos=no 12849 fi 12850 rm -f conftest.err conftest.$ac_objext \ 12851 conftest$ac_exeext conftest.$ac_ext 12852 fi 12853 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 12854 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 12855 if test $ac_cv_func_rfio_setcos = yes; then 12856 result=yes 12857 else 12858 result=no 12859 fi 12860 12861 if test $result = no ; then 12862 LIBS="$OLDLIBS" 12863 fi 12864 fi 12865 fi 12866 if test $result = no ; then 12867 if test "${ac_cv_header_stage_api_h+set}" = set; then 12868 echo "$as_me:$LINENO: checking for stage_api.h" >&5 12869 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 12870 if test "${ac_cv_header_stage_api_h+set}" = set; then 12871 echo $ECHO_N "(cached) $ECHO_C" >&6 12872 fi 12873 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 12874 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 12875 else 12876 # Is the header compilable? 12877 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 12878 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 12879 cat >conftest.$ac_ext <<_ACEOF 12880 /* confdefs.h. */ 12881 _ACEOF 12882 cat confdefs.h >>conftest.$ac_ext 12883 cat >>conftest.$ac_ext <<_ACEOF 12884 /* end confdefs.h. */ 12885 $ac_includes_default 12886 #include <stage_api.h> 12887 _ACEOF 12888 rm -f conftest.$ac_objext 12889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12890 (eval $ac_compile) 2>conftest.er1 12891 ac_status=$? 12892 grep -v '^ *+' conftest.er1 >conftest.err 12893 rm -f conftest.er1 12894 cat conftest.err >&5 12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12896 (exit $ac_status); } && 12897 { ac_try='test -z "$ac_c_werror_flag" 12898 || test ! -s conftest.err' 12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12900 (eval $ac_try) 2>&5 12901 ac_status=$? 12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12903 (exit $ac_status); }; } && 12904 { ac_try='test -s conftest.$ac_objext' 12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12906 (eval $ac_try) 2>&5 12907 ac_status=$? 12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12909 (exit $ac_status); }; }; then 12910 ac_header_compiler=yes 12911 else 12912 echo "$as_me: failed program was:" >&5 12913 sed 's/^/| /' conftest.$ac_ext >&5 12914 12915 ac_header_compiler=no 12916 fi 12917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12919 echo "${ECHO_T}$ac_header_compiler" >&6 12920 12921 # Is the header present? 12922 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 12923 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 12924 cat >conftest.$ac_ext <<_ACEOF 12925 /* confdefs.h. */ 12926 _ACEOF 12927 cat confdefs.h >>conftest.$ac_ext 12928 cat >>conftest.$ac_ext <<_ACEOF 12929 /* end confdefs.h. */ 12930 #include <stage_api.h> 12931 _ACEOF 12932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12934 ac_status=$? 12935 grep -v '^ *+' conftest.er1 >conftest.err 12936 rm -f conftest.er1 12937 cat conftest.err >&5 12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12939 (exit $ac_status); } >/dev/null; then 12940 if test -s conftest.err; then 12941 ac_cpp_err=$ac_c_preproc_warn_flag 12942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12943 else 12944 ac_cpp_err= 12945 fi 12946 else 12947 ac_cpp_err=yes 12948 fi 12949 if test -z "$ac_cpp_err"; then 12950 ac_header_preproc=yes 12951 else 12952 echo "$as_me: failed program was:" >&5 12953 sed 's/^/| /' conftest.$ac_ext >&5 12954 12955 ac_header_preproc=no 12956 fi 12957 rm -f conftest.err conftest.$ac_ext 12958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12959 echo "${ECHO_T}$ac_header_preproc" >&6 12960 12961 # So? What about this header? 12962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12963 yes:no: ) 12964 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 12965 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 12966 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 12967 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 12968 ac_header_preproc=yes 12969 ;; 12970 no:yes:* ) 12971 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 12972 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 12973 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 12974 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 12975 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 12976 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 12977 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 12978 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 12979 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 12980 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 12981 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 12982 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 12983 ( 12984 cat <<\_ASBOX 12985 ## ------------------------------------------ ## 12986 ## Report this to the AC_PACKAGE_NAME lists. ## 12987 ## ------------------------------------------ ## 12988 _ASBOX 12989 ) | 12990 sed "s/^/$as_me: WARNING: /" >&2 12991 ;; 12992 esac 12993 echo "$as_me:$LINENO: checking for stage_api.h" >&5 12994 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 12995 if test "${ac_cv_header_stage_api_h+set}" = set; then 12996 echo $ECHO_N "(cached) $ECHO_C" >&6 12997 else 12998 ac_cv_header_stage_api_h=$ac_header_preproc 12999 fi 13000 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 13001 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 13002 13003 fi 13004 if test $ac_cv_header_stage_api_h = yes; then 13005 result=yes 13006 else 13007 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 13008 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 13009 { (exit 1); exit 1; }; } 13010 fi 13011 13012 13013 13014 for ac_func in stageclr_Path 13015 do 13016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13017 echo "$as_me:$LINENO: checking for $ac_func" >&5 13018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13019 if eval "test \"\${$as_ac_var+set}\" = set"; then 13020 echo $ECHO_N "(cached) $ECHO_C" >&6 13021 else 13022 cat >conftest.$ac_ext <<_ACEOF 13023 /* confdefs.h. */ 13024 _ACEOF 13025 cat confdefs.h >>conftest.$ac_ext 13026 cat >>conftest.$ac_ext <<_ACEOF 13027 /* end confdefs.h. */ 13028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13029 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13030 #define $ac_func innocuous_$ac_func 13031 13032 /* System header to define __stub macros and hopefully few prototypes, 13033 which can conflict with char $ac_func (); below. 13034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13035 <limits.h> exists even on freestanding compilers. */ 13036 13037 #ifdef __STDC__ 13038 # include <limits.h> 13039 #else 13040 # include <assert.h> 13041 #endif 13042 13043 #undef $ac_func 13044 13045 /* Override any gcc2 internal prototype to avoid an error. */ 13046 #ifdef __cplusplus 13047 extern "C" 13048 { 13049 #endif 13050 /* We use char because int might match the return type of a gcc2 13051 builtin and then its argument prototype would still apply. */ 13052 char $ac_func (); 13053 /* The GNU C library defines this for functions which it implements 13054 to always fail with ENOSYS. Some functions are actually named 13055 something starting with __ and the normal name is an alias. */ 13056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13057 choke me 13058 #else 13059 char (*f) () = $ac_func; 13060 #endif 13061 #ifdef __cplusplus 13062 } 13063 #endif 13064 13065 int 13066 main () 13067 { 13068 return f != $ac_func; 13069 ; 13070 return 0; 13071 } 13072 _ACEOF 13073 rm -f conftest.$ac_objext conftest$ac_exeext 13074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13075 (eval $ac_link) 2>conftest.er1 13076 ac_status=$? 13077 grep -v '^ *+' conftest.er1 >conftest.err 13078 rm -f conftest.er1 13079 cat conftest.err >&5 13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 (exit $ac_status); } && 13082 { ac_try='test -z "$ac_c_werror_flag" 13083 || test ! -s conftest.err' 13084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13085 (eval $ac_try) 2>&5 13086 ac_status=$? 13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13088 (exit $ac_status); }; } && 13089 { ac_try='test -s conftest$ac_exeext' 13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13091 (eval $ac_try) 2>&5 13092 ac_status=$? 13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13094 (exit $ac_status); }; }; then 13095 eval "$as_ac_var=yes" 13096 else 13097 echo "$as_me: failed program was:" >&5 13098 sed 's/^/| /' conftest.$ac_ext >&5 13099 13100 eval "$as_ac_var=no" 13101 fi 13102 rm -f conftest.err conftest.$ac_objext \ 13103 conftest$ac_exeext conftest.$ac_ext 13104 fi 13105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13107 if test `eval echo '${'$as_ac_var'}'` = yes; then 13108 cat >>confdefs.h <<_ACEOF 13109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13110 _ACEOF 13111 13112 fi 13113 done 13114 13115 cat >>confdefs.h <<\_ACEOF 13116 #define CASTOR 1 13117 _ACEOF 13118 13119 fi 13120 fi 13121 ccin2p3_cv_rfio=yes 13122 fi 13123 if test $ccin2p3_cv_rfio = yes; then 13124 RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o" 13125 else 13126 { echo "$as_me:$LINENO: WARNING: RFIO not installed" >&5 13127 echo "$as_me: WARNING: RFIO not installed" >&2;} 13128 fi 13129 13130 else 13131 13132 OLDLDFLAGS="$LDFLAGS" 13133 OLDCPPFLAGS="$CPPFLAGS" 13134 OLDLIBS=$LIBS 13135 if test 3 -gt 2 ; then 13136 rfio_root_dir=$with_rfio 13137 else 13138 rfio_root_dir="/usr/local" 13139 fi 13140 # LDFLAGS="$LDFLAGS -L$rfio_root_dir/lib" 13141 LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 13142 CPPFLAGS="$CPPFLAGS -I$rfio_root_dir/include -I$rfio_root_dir/include/shift" 13143 echo "$as_me:$LINENO: checking for library containing getservbyname_r" >&5 13144 echo $ECHO_N "checking for library containing getservbyname_r... $ECHO_C" >&6 13145 if test "${ac_cv_search_getservbyname_r+set}" = set; then 13146 echo $ECHO_N "(cached) $ECHO_C" >&6 13147 else 13148 ac_func_search_save_LIBS=$LIBS 13149 ac_cv_search_getservbyname_r=no 13150 cat >conftest.$ac_ext <<_ACEOF 13151 /* confdefs.h. */ 13152 _ACEOF 13153 cat confdefs.h >>conftest.$ac_ext 13154 cat >>conftest.$ac_ext <<_ACEOF 13155 /* end confdefs.h. */ 13156 13157 /* Override any gcc2 internal prototype to avoid an error. */ 13158 #ifdef __cplusplus 13159 extern "C" 13160 #endif 13161 /* We use char because int might match the return type of a gcc2 13162 builtin and then its argument prototype would still apply. */ 13163 char getservbyname_r (); 13164 int 13165 main () 13166 { 13167 getservbyname_r (); 13168 ; 13169 return 0; 13170 } 13171 _ACEOF 13172 rm -f conftest.$ac_objext conftest$ac_exeext 13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13174 (eval $ac_link) 2>conftest.er1 13175 ac_status=$? 13176 grep -v '^ *+' conftest.er1 >conftest.err 13177 rm -f conftest.er1 13178 cat conftest.err >&5 13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13180 (exit $ac_status); } && 13181 { ac_try='test -z "$ac_c_werror_flag" 13182 || test ! -s conftest.err' 13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13184 (eval $ac_try) 2>&5 13185 ac_status=$? 13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13187 (exit $ac_status); }; } && 13188 { ac_try='test -s conftest$ac_exeext' 13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13190 (eval $ac_try) 2>&5 13191 ac_status=$? 13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13193 (exit $ac_status); }; }; then 13194 ac_cv_search_getservbyname_r="none required" 13195 else 13196 echo "$as_me: failed program was:" >&5 13197 sed 's/^/| /' conftest.$ac_ext >&5 13198 13199 fi 13200 rm -f conftest.err conftest.$ac_objext \ 13201 conftest$ac_exeext conftest.$ac_ext 13202 if test "$ac_cv_search_getservbyname_r" = no; then 13203 for ac_lib in socket xnet; do 13204 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13205 cat >conftest.$ac_ext <<_ACEOF 13206 /* confdefs.h. */ 13207 _ACEOF 13208 cat confdefs.h >>conftest.$ac_ext 13209 cat >>conftest.$ac_ext <<_ACEOF 13210 /* end confdefs.h. */ 13211 13212 /* Override any gcc2 internal prototype to avoid an error. */ 13213 #ifdef __cplusplus 13214 extern "C" 13215 #endif 13216 /* We use char because int might match the return type of a gcc2 13217 builtin and then its argument prototype would still apply. */ 13218 char getservbyname_r (); 13219 int 13220 main () 13221 { 13222 getservbyname_r (); 13223 ; 13224 return 0; 13225 } 13226 _ACEOF 13227 rm -f conftest.$ac_objext conftest$ac_exeext 13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13229 (eval $ac_link) 2>conftest.er1 13230 ac_status=$? 13231 grep -v '^ *+' conftest.er1 >conftest.err 13232 rm -f conftest.er1 13233 cat conftest.err >&5 13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13235 (exit $ac_status); } && 13236 { ac_try='test -z "$ac_c_werror_flag" 13237 || test ! -s conftest.err' 13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13239 (eval $ac_try) 2>&5 13240 ac_status=$? 13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13242 (exit $ac_status); }; } && 13243 { ac_try='test -s conftest$ac_exeext' 13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13245 (eval $ac_try) 2>&5 13246 ac_status=$? 13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13248 (exit $ac_status); }; }; then 13249 ac_cv_search_getservbyname_r="-l$ac_lib" 13250 break 13251 else 13252 echo "$as_me: failed program was:" >&5 13253 sed 's/^/| /' conftest.$ac_ext >&5 13254 13255 fi 13256 rm -f conftest.err conftest.$ac_objext \ 13257 conftest$ac_exeext conftest.$ac_ext 13258 done 13259 fi 13260 LIBS=$ac_func_search_save_LIBS 13261 fi 13262 echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname_r" >&5 13263 echo "${ECHO_T}$ac_cv_search_getservbyname_r" >&6 13264 if test "$ac_cv_search_getservbyname_r" != no; then 13265 test "$ac_cv_search_getservbyname_r" = "none required" || LIBS="$ac_cv_search_getservbyname_r $LIBS" 13266 13267 fi 13268 echo "$as_me:$LINENO: checking for library containing gethostbyaddr_r" >&5 13269 echo $ECHO_N "checking for library containing gethostbyaddr_r... $ECHO_C" >&6 13270 if test "${ac_cv_search_gethostbyaddr_r+set}" = set; then 13271 echo $ECHO_N "(cached) $ECHO_C" >&6 13272 else 13273 ac_func_search_save_LIBS=$LIBS 13274 ac_cv_search_gethostbyaddr_r=no 13275 cat >conftest.$ac_ext <<_ACEOF 13276 /* confdefs.h. */ 13277 _ACEOF 13278 cat confdefs.h >>conftest.$ac_ext 13279 cat >>conftest.$ac_ext <<_ACEOF 13280 /* end confdefs.h. */ 13281 13282 /* Override any gcc2 internal prototype to avoid an error. */ 13283 #ifdef __cplusplus 13284 extern "C" 13285 #endif 13286 /* We use char because int might match the return type of a gcc2 13287 builtin and then its argument prototype would still apply. */ 13288 char gethostbyaddr_r (); 13289 int 13290 main () 13291 { 13292 gethostbyaddr_r (); 13293 ; 13294 return 0; 13295 } 13296 _ACEOF 13297 rm -f conftest.$ac_objext conftest$ac_exeext 13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13299 (eval $ac_link) 2>conftest.er1 13300 ac_status=$? 13301 grep -v '^ *+' conftest.er1 >conftest.err 13302 rm -f conftest.er1 13303 cat conftest.err >&5 13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13305 (exit $ac_status); } && 13306 { ac_try='test -z "$ac_c_werror_flag" 13307 || test ! -s conftest.err' 13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13309 (eval $ac_try) 2>&5 13310 ac_status=$? 13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13312 (exit $ac_status); }; } && 13313 { ac_try='test -s conftest$ac_exeext' 13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13315 (eval $ac_try) 2>&5 13316 ac_status=$? 13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13318 (exit $ac_status); }; }; then 13319 ac_cv_search_gethostbyaddr_r="none required" 13320 else 13321 echo "$as_me: failed program was:" >&5 13322 sed 's/^/| /' conftest.$ac_ext >&5 13323 13324 fi 13325 rm -f conftest.err conftest.$ac_objext \ 13326 conftest$ac_exeext conftest.$ac_ext 13327 if test "$ac_cv_search_gethostbyaddr_r" = no; then 13328 for ac_lib in nsl; do 13329 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13330 cat >conftest.$ac_ext <<_ACEOF 13331 /* confdefs.h. */ 13332 _ACEOF 13333 cat confdefs.h >>conftest.$ac_ext 13334 cat >>conftest.$ac_ext <<_ACEOF 13335 /* end confdefs.h. */ 13336 13337 /* Override any gcc2 internal prototype to avoid an error. */ 13338 #ifdef __cplusplus 13339 extern "C" 13340 #endif 13341 /* We use char because int might match the return type of a gcc2 13342 builtin and then its argument prototype would still apply. */ 13343 char gethostbyaddr_r (); 13344 int 13345 main () 13346 { 13347 gethostbyaddr_r (); 13348 ; 13349 return 0; 13350 } 13351 _ACEOF 13352 rm -f conftest.$ac_objext conftest$ac_exeext 13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13354 (eval $ac_link) 2>conftest.er1 13355 ac_status=$? 13356 grep -v '^ *+' conftest.er1 >conftest.err 13357 rm -f conftest.er1 13358 cat conftest.err >&5 13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13360 (exit $ac_status); } && 13361 { ac_try='test -z "$ac_c_werror_flag" 13362 || test ! -s conftest.err' 13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13364 (eval $ac_try) 2>&5 13365 ac_status=$? 13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13367 (exit $ac_status); }; } && 13368 { ac_try='test -s conftest$ac_exeext' 13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13370 (eval $ac_try) 2>&5 13371 ac_status=$? 13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13373 (exit $ac_status); }; }; then 13374 ac_cv_search_gethostbyaddr_r="-l$ac_lib" 13375 break 13376 else 13377 echo "$as_me: failed program was:" >&5 13378 sed 's/^/| /' conftest.$ac_ext >&5 13379 13380 fi 13381 rm -f conftest.err conftest.$ac_objext \ 13382 conftest$ac_exeext conftest.$ac_ext 13383 done 13384 fi 13385 LIBS=$ac_func_search_save_LIBS 13386 fi 13387 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyaddr_r" >&5 13388 echo "${ECHO_T}$ac_cv_search_gethostbyaddr_r" >&6 13389 if test "$ac_cv_search_gethostbyaddr_r" != no; then 13390 test "$ac_cv_search_gethostbyaddr_r" = "none required" || LIBS="$ac_cv_search_gethostbyaddr_r $LIBS" 13391 13392 fi 13393 echo "$as_me:$LINENO: checking for library containing sched_get_priority_max" >&5 13394 echo $ECHO_N "checking for library containing sched_get_priority_max... $ECHO_C" >&6 13395 if test "${ac_cv_search_sched_get_priority_max+set}" = set; then 13396 echo $ECHO_N "(cached) $ECHO_C" >&6 13397 else 13398 ac_func_search_save_LIBS=$LIBS 13399 ac_cv_search_sched_get_priority_max=no 13400 cat >conftest.$ac_ext <<_ACEOF 13401 /* confdefs.h. */ 13402 _ACEOF 13403 cat confdefs.h >>conftest.$ac_ext 13404 cat >>conftest.$ac_ext <<_ACEOF 13405 /* end confdefs.h. */ 13406 13407 /* Override any gcc2 internal prototype to avoid an error. */ 13408 #ifdef __cplusplus 13409 extern "C" 13410 #endif 13411 /* We use char because int might match the return type of a gcc2 13412 builtin and then its argument prototype would still apply. */ 13413 char sched_get_priority_max (); 13414 int 13415 main () 13416 { 13417 sched_get_priority_max (); 13418 ; 13419 return 0; 13420 } 13421 _ACEOF 13422 rm -f conftest.$ac_objext conftest$ac_exeext 13423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13424 (eval $ac_link) 2>conftest.er1 13425 ac_status=$? 13426 grep -v '^ *+' conftest.er1 >conftest.err 13427 rm -f conftest.er1 13428 cat conftest.err >&5 13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13430 (exit $ac_status); } && 13431 { ac_try='test -z "$ac_c_werror_flag" 13432 || test ! -s conftest.err' 13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13434 (eval $ac_try) 2>&5 13435 ac_status=$? 13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13437 (exit $ac_status); }; } && 13438 { ac_try='test -s conftest$ac_exeext' 13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13440 (eval $ac_try) 2>&5 13441 ac_status=$? 13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13443 (exit $ac_status); }; }; then 13444 ac_cv_search_sched_get_priority_max="none required" 13445 else 13446 echo "$as_me: failed program was:" >&5 13447 sed 's/^/| /' conftest.$ac_ext >&5 13448 13449 fi 13450 rm -f conftest.err conftest.$ac_objext \ 13451 conftest$ac_exeext conftest.$ac_ext 13452 if test "$ac_cv_search_sched_get_priority_max" = no; then 13453 for ac_lib in rt posix4; do 13454 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13455 cat >conftest.$ac_ext <<_ACEOF 13456 /* confdefs.h. */ 13457 _ACEOF 13458 cat confdefs.h >>conftest.$ac_ext 13459 cat >>conftest.$ac_ext <<_ACEOF 13460 /* end confdefs.h. */ 13461 13462 /* Override any gcc2 internal prototype to avoid an error. */ 13463 #ifdef __cplusplus 13464 extern "C" 13465 #endif 13466 /* We use char because int might match the return type of a gcc2 13467 builtin and then its argument prototype would still apply. */ 13468 char sched_get_priority_max (); 13469 int 13470 main () 13471 { 13472 sched_get_priority_max (); 13473 ; 13474 return 0; 13475 } 13476 _ACEOF 13477 rm -f conftest.$ac_objext conftest$ac_exeext 13478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13479 (eval $ac_link) 2>conftest.er1 13480 ac_status=$? 13481 grep -v '^ *+' conftest.er1 >conftest.err 13482 rm -f conftest.er1 13483 cat conftest.err >&5 13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13485 (exit $ac_status); } && 13486 { ac_try='test -z "$ac_c_werror_flag" 13487 || test ! -s conftest.err' 13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13489 (eval $ac_try) 2>&5 13490 ac_status=$? 13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13492 (exit $ac_status); }; } && 13493 { ac_try='test -s conftest$ac_exeext' 13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13495 (eval $ac_try) 2>&5 13496 ac_status=$? 13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13498 (exit $ac_status); }; }; then 13499 ac_cv_search_sched_get_priority_max="-l$ac_lib" 13500 break 13501 else 13502 echo "$as_me: failed program was:" >&5 13503 sed 's/^/| /' conftest.$ac_ext >&5 13504 13505 fi 13506 rm -f conftest.err conftest.$ac_objext \ 13507 conftest$ac_exeext conftest.$ac_ext 13508 done 13509 fi 13510 LIBS=$ac_func_search_save_LIBS 13511 fi 13512 echo "$as_me:$LINENO: result: $ac_cv_search_sched_get_priority_max" >&5 13513 echo "${ECHO_T}$ac_cv_search_sched_get_priority_max" >&6 13514 if test "$ac_cv_search_sched_get_priority_max" != no; then 13515 test "$ac_cv_search_sched_get_priority_max" = "none required" || LIBS="$ac_cv_search_sched_get_priority_max $LIBS" 13516 13517 fi 13518 as_ac_File=`echo "ac_cv_file_$rfio_root_dir/include/shift/rfio_api.h" | $as_tr_sh` 13519 echo "$as_me:$LINENO: checking for $rfio_root_dir/include/shift/rfio_api.h" >&5 13520 echo $ECHO_N "checking for $rfio_root_dir/include/shift/rfio_api.h... $ECHO_C" >&6 13521 if eval "test \"\${$as_ac_File+set}\" = set"; then 13522 echo $ECHO_N "(cached) $ECHO_C" >&6 13523 else 13524 test "$cross_compiling" = yes && 13525 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 13526 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 13527 { (exit 1); exit 1; }; } 13528 if test -r "$rfio_root_dir/include/shift/rfio_api.h"; then 13529 eval "$as_ac_File=yes" 13530 else 13531 eval "$as_ac_File=no" 13532 fi 13533 fi 13534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5 13535 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6 13536 if test `eval echo '${'$as_ac_File'}'` = yes; then 13537 result=yes 13538 else 13539 result=no 13540 fi 13541 13542 if test $result = yes ; then 13543 echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 13544 echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6 13545 if test "${ac_cv_search_pthread_create+set}" = set; then 13546 echo $ECHO_N "(cached) $ECHO_C" >&6 13547 else 13548 ac_func_search_save_LIBS=$LIBS 13549 ac_cv_search_pthread_create=no 13550 cat >conftest.$ac_ext <<_ACEOF 13551 /* confdefs.h. */ 13552 _ACEOF 13553 cat confdefs.h >>conftest.$ac_ext 13554 cat >>conftest.$ac_ext <<_ACEOF 13555 /* end confdefs.h. */ 13556 13557 /* Override any gcc2 internal prototype to avoid an error. */ 13558 #ifdef __cplusplus 13559 extern "C" 13560 #endif 13561 /* We use char because int might match the return type of a gcc2 13562 builtin and then its argument prototype would still apply. */ 13563 char pthread_create (); 13564 int 13565 main () 13566 { 13567 pthread_create (); 13568 ; 13569 return 0; 13570 } 13571 _ACEOF 13572 rm -f conftest.$ac_objext conftest$ac_exeext 13573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13574 (eval $ac_link) 2>conftest.er1 13575 ac_status=$? 13576 grep -v '^ *+' conftest.er1 >conftest.err 13577 rm -f conftest.er1 13578 cat conftest.err >&5 13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13580 (exit $ac_status); } && 13581 { ac_try='test -z "$ac_c_werror_flag" 13582 || test ! -s conftest.err' 13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13584 (eval $ac_try) 2>&5 13585 ac_status=$? 13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13587 (exit $ac_status); }; } && 13588 { ac_try='test -s conftest$ac_exeext' 13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13590 (eval $ac_try) 2>&5 13591 ac_status=$? 13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13593 (exit $ac_status); }; }; then 13594 ac_cv_search_pthread_create="none required" 13595 else 13596 echo "$as_me: failed program was:" >&5 13597 sed 's/^/| /' conftest.$ac_ext >&5 13598 13599 fi 13600 rm -f conftest.err conftest.$ac_objext \ 13601 conftest$ac_exeext conftest.$ac_ext 13602 if test "$ac_cv_search_pthread_create" = no; then 13603 for ac_lib in pthread pthreads dce; do 13604 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13605 cat >conftest.$ac_ext <<_ACEOF 13606 /* confdefs.h. */ 13607 _ACEOF 13608 cat confdefs.h >>conftest.$ac_ext 13609 cat >>conftest.$ac_ext <<_ACEOF 13610 /* end confdefs.h. */ 13611 13612 /* Override any gcc2 internal prototype to avoid an error. */ 13613 #ifdef __cplusplus 13614 extern "C" 13615 #endif 13616 /* We use char because int might match the return type of a gcc2 13617 builtin and then its argument prototype would still apply. */ 13618 char pthread_create (); 13619 int 13620 main () 13621 { 13622 pthread_create (); 13623 ; 13624 return 0; 13625 } 13626 _ACEOF 13627 rm -f conftest.$ac_objext conftest$ac_exeext 13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13629 (eval $ac_link) 2>conftest.er1 13630 ac_status=$? 13631 grep -v '^ *+' conftest.er1 >conftest.err 13632 rm -f conftest.er1 13633 cat conftest.err >&5 13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13635 (exit $ac_status); } && 13636 { ac_try='test -z "$ac_c_werror_flag" 13637 || test ! -s conftest.err' 13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13639 (eval $ac_try) 2>&5 13640 ac_status=$? 13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13642 (exit $ac_status); }; } && 13643 { ac_try='test -s conftest$ac_exeext' 13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13645 (eval $ac_try) 2>&5 13646 ac_status=$? 13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13648 (exit $ac_status); }; }; then 13649 ac_cv_search_pthread_create="-l$ac_lib" 13650 break 13651 else 13652 echo "$as_me: failed program was:" >&5 13653 sed 's/^/| /' conftest.$ac_ext >&5 13654 13655 fi 13656 rm -f conftest.err conftest.$ac_objext \ 13657 conftest$ac_exeext conftest.$ac_ext 13658 done 13659 fi 13660 LIBS=$ac_func_search_save_LIBS 13661 fi 13662 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 13663 echo "${ECHO_T}$ac_cv_search_pthread_create" >&6 13664 if test "$ac_cv_search_pthread_create" != no; then 13665 test "$ac_cv_search_pthread_create" = "none required" || LIBS="$ac_cv_search_pthread_create $LIBS" 13666 13667 fi 13668 echo "$as_me:$LINENO: checking for library containing pthread_kill" >&5 13669 echo $ECHO_N "checking for library containing pthread_kill... $ECHO_C" >&6 13670 if test "${ac_cv_search_pthread_kill+set}" = set; then 13671 echo $ECHO_N "(cached) $ECHO_C" >&6 13672 else 13673 ac_func_search_save_LIBS=$LIBS 13674 ac_cv_search_pthread_kill=no 13675 cat >conftest.$ac_ext <<_ACEOF 13676 /* confdefs.h. */ 13677 _ACEOF 13678 cat confdefs.h >>conftest.$ac_ext 13679 cat >>conftest.$ac_ext <<_ACEOF 13680 /* end confdefs.h. */ 13681 13682 /* Override any gcc2 internal prototype to avoid an error. */ 13683 #ifdef __cplusplus 13684 extern "C" 13685 #endif 13686 /* We use char because int might match the return type of a gcc2 13687 builtin and then its argument prototype would still apply. */ 13688 char pthread_kill (); 13689 int 13690 main () 13691 { 13692 pthread_kill (); 13693 ; 13694 return 0; 13695 } 13696 _ACEOF 13697 rm -f conftest.$ac_objext conftest$ac_exeext 13698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13699 (eval $ac_link) 2>conftest.er1 13700 ac_status=$? 13701 grep -v '^ *+' conftest.er1 >conftest.err 13702 rm -f conftest.er1 13703 cat conftest.err >&5 13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13705 (exit $ac_status); } && 13706 { ac_try='test -z "$ac_c_werror_flag" 13707 || test ! -s conftest.err' 13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13709 (eval $ac_try) 2>&5 13710 ac_status=$? 13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13712 (exit $ac_status); }; } && 13713 { ac_try='test -s conftest$ac_exeext' 13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13715 (eval $ac_try) 2>&5 13716 ac_status=$? 13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13718 (exit $ac_status); }; }; then 13719 ac_cv_search_pthread_kill="none required" 13720 else 13721 echo "$as_me: failed program was:" >&5 13722 sed 's/^/| /' conftest.$ac_ext >&5 13723 13724 fi 13725 rm -f conftest.err conftest.$ac_objext \ 13726 conftest$ac_exeext conftest.$ac_ext 13727 if test "$ac_cv_search_pthread_kill" = no; then 13728 for ac_lib in pthread pthreads; do 13729 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13730 cat >conftest.$ac_ext <<_ACEOF 13731 /* confdefs.h. */ 13732 _ACEOF 13733 cat confdefs.h >>conftest.$ac_ext 13734 cat >>conftest.$ac_ext <<_ACEOF 13735 /* end confdefs.h. */ 13736 13737 /* Override any gcc2 internal prototype to avoid an error. */ 13738 #ifdef __cplusplus 13739 extern "C" 13740 #endif 13741 /* We use char because int might match the return type of a gcc2 13742 builtin and then its argument prototype would still apply. */ 13743 char pthread_kill (); 13744 int 13745 main () 13746 { 13747 pthread_kill (); 13748 ; 13749 return 0; 13750 } 13751 _ACEOF 13752 rm -f conftest.$ac_objext conftest$ac_exeext 13753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13754 (eval $ac_link) 2>conftest.er1 13755 ac_status=$? 13756 grep -v '^ *+' conftest.er1 >conftest.err 13757 rm -f conftest.er1 13758 cat conftest.err >&5 13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13760 (exit $ac_status); } && 13761 { ac_try='test -z "$ac_c_werror_flag" 13762 || test ! -s conftest.err' 13763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13764 (eval $ac_try) 2>&5 13765 ac_status=$? 13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13767 (exit $ac_status); }; } && 13768 { ac_try='test -s conftest$ac_exeext' 13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13770 (eval $ac_try) 2>&5 13771 ac_status=$? 13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13773 (exit $ac_status); }; }; then 13774 ac_cv_search_pthread_kill="-l$ac_lib" 13775 break 13776 else 13777 echo "$as_me: failed program was:" >&5 13778 sed 's/^/| /' conftest.$ac_ext >&5 13779 13780 fi 13781 rm -f conftest.err conftest.$ac_objext \ 13782 conftest$ac_exeext conftest.$ac_ext 13783 done 13784 fi 13785 LIBS=$ac_func_search_save_LIBS 13786 fi 13787 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_kill" >&5 13788 echo "${ECHO_T}$ac_cv_search_pthread_kill" >&6 13789 if test "$ac_cv_search_pthread_kill" != no; then 13790 test "$ac_cv_search_pthread_kill" = "none required" || LIBS="$ac_cv_search_pthread_kill $LIBS" 13791 13792 fi 13793 echo "$as_me:$LINENO: checking for rfio_open64" >&5 13794 echo $ECHO_N "checking for rfio_open64... $ECHO_C" >&6 13795 if test "${ac_cv_func_rfio_open64+set}" = set; then 13796 echo $ECHO_N "(cached) $ECHO_C" >&6 13797 else 13798 cat >conftest.$ac_ext <<_ACEOF 13799 /* confdefs.h. */ 13800 _ACEOF 13801 cat confdefs.h >>conftest.$ac_ext 13802 cat >>conftest.$ac_ext <<_ACEOF 13803 /* end confdefs.h. */ 13804 /* Define rfio_open64 to an innocuous variant, in case <limits.h> declares rfio_open64. 13805 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13806 #define rfio_open64 innocuous_rfio_open64 13807 13808 /* System header to define __stub macros and hopefully few prototypes, 13809 which can conflict with char rfio_open64 (); below. 13810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13811 <limits.h> exists even on freestanding compilers. */ 13812 13813 #ifdef __STDC__ 13814 # include <limits.h> 13815 #else 13816 # include <assert.h> 13817 #endif 13818 13819 #undef rfio_open64 13820 13821 /* Override any gcc2 internal prototype to avoid an error. */ 13822 #ifdef __cplusplus 13823 extern "C" 13824 { 13825 #endif 13826 /* We use char because int might match the return type of a gcc2 13827 builtin and then its argument prototype would still apply. */ 13828 char rfio_open64 (); 13829 /* The GNU C library defines this for functions which it implements 13830 to always fail with ENOSYS. Some functions are actually named 13831 something starting with __ and the normal name is an alias. */ 13832 #if defined (__stub_rfio_open64) || defined (__stub___rfio_open64) 13833 choke me 13834 #else 13835 char (*f) () = rfio_open64; 13836 #endif 13837 #ifdef __cplusplus 13838 } 13839 #endif 13840 13841 int 13842 main () 13843 { 13844 return f != rfio_open64; 13845 ; 13846 return 0; 13847 } 13848 _ACEOF 13849 rm -f conftest.$ac_objext conftest$ac_exeext 13850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13851 (eval $ac_link) 2>conftest.er1 13852 ac_status=$? 13853 grep -v '^ *+' conftest.er1 >conftest.err 13854 rm -f conftest.er1 13855 cat conftest.err >&5 13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13857 (exit $ac_status); } && 13858 { ac_try='test -z "$ac_c_werror_flag" 13859 || test ! -s conftest.err' 13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13861 (eval $ac_try) 2>&5 13862 ac_status=$? 13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13864 (exit $ac_status); }; } && 13865 { ac_try='test -s conftest$ac_exeext' 13866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13867 (eval $ac_try) 2>&5 13868 ac_status=$? 13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13870 (exit $ac_status); }; }; then 13871 ac_cv_func_rfio_open64=yes 13872 else 13873 echo "$as_me: failed program was:" >&5 13874 sed 's/^/| /' conftest.$ac_ext >&5 13875 13876 ac_cv_func_rfio_open64=no 13877 fi 13878 rm -f conftest.err conftest.$ac_objext \ 13879 conftest$ac_exeext conftest.$ac_ext 13880 fi 13881 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open64" >&5 13882 echo "${ECHO_T}$ac_cv_func_rfio_open64" >&6 13883 if test $ac_cv_func_rfio_open64 = yes; then 13884 cat >>confdefs.h <<\_ACEOF 13885 #define WITH_RFIO64 1 13886 _ACEOF 13887 13888 fi 13889 13890 else 13891 echo "$as_me:$LINENO: checking for rfio_open" >&5 13892 echo $ECHO_N "checking for rfio_open... $ECHO_C" >&6 13893 if test "${ac_cv_func_rfio_open+set}" = set; then 13894 echo $ECHO_N "(cached) $ECHO_C" >&6 13895 else 13896 cat >conftest.$ac_ext <<_ACEOF 13897 /* confdefs.h. */ 13898 _ACEOF 13899 cat confdefs.h >>conftest.$ac_ext 13900 cat >>conftest.$ac_ext <<_ACEOF 13901 /* end confdefs.h. */ 13902 /* Define rfio_open to an innocuous variant, in case <limits.h> declares rfio_open. 13903 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13904 #define rfio_open innocuous_rfio_open 13905 13906 /* System header to define __stub macros and hopefully few prototypes, 13907 which can conflict with char rfio_open (); below. 13908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13909 <limits.h> exists even on freestanding compilers. */ 13910 13911 #ifdef __STDC__ 13912 # include <limits.h> 13913 #else 13914 # include <assert.h> 13915 #endif 13916 13917 #undef rfio_open 13918 13919 /* Override any gcc2 internal prototype to avoid an error. */ 13920 #ifdef __cplusplus 13921 extern "C" 13922 { 13923 #endif 13924 /* We use char because int might match the return type of a gcc2 13925 builtin and then its argument prototype would still apply. */ 13926 char rfio_open (); 13927 /* The GNU C library defines this for functions which it implements 13928 to always fail with ENOSYS. Some functions are actually named 13929 something starting with __ and the normal name is an alias. */ 13930 #if defined (__stub_rfio_open) || defined (__stub___rfio_open) 13931 choke me 13932 #else 13933 char (*f) () = rfio_open; 13934 #endif 13935 #ifdef __cplusplus 13936 } 13937 #endif 13938 13939 int 13940 main () 13941 { 13942 return f != rfio_open; 13943 ; 13944 return 0; 13945 } 13946 _ACEOF 13947 rm -f conftest.$ac_objext conftest$ac_exeext 13948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13949 (eval $ac_link) 2>conftest.er1 13950 ac_status=$? 13951 grep -v '^ *+' conftest.er1 >conftest.err 13952 rm -f conftest.er1 13953 cat conftest.err >&5 13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13955 (exit $ac_status); } && 13956 { ac_try='test -z "$ac_c_werror_flag" 13957 || test ! -s conftest.err' 13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13959 (eval $ac_try) 2>&5 13960 ac_status=$? 13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13962 (exit $ac_status); }; } && 13963 { ac_try='test -s conftest$ac_exeext' 13964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13965 (eval $ac_try) 2>&5 13966 ac_status=$? 13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13968 (exit $ac_status); }; }; then 13969 ac_cv_func_rfio_open=yes 13970 else 13971 echo "$as_me: failed program was:" >&5 13972 sed 's/^/| /' conftest.$ac_ext >&5 13973 13974 ac_cv_func_rfio_open=no 13975 fi 13976 rm -f conftest.err conftest.$ac_objext \ 13977 conftest$ac_exeext conftest.$ac_ext 13978 fi 13979 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_open" >&5 13980 echo "${ECHO_T}$ac_cv_func_rfio_open" >&6 13981 if test $ac_cv_func_rfio_open = yes; then 13982 cat >>confdefs.h <<\_ACEOF 13983 #define WITH_RFIO 1 13984 _ACEOF 13985 13986 fi 13987 13988 fi 13989 if test "$ac_cv_func_rfio_open64" = "no" || test "$ac_cv_func_rfio_open" = "no" ; then 13990 LDFLAGS="$OLDLDFLAGS" 13991 CPPFLAGS="$OLDCPPFLAGS" 13992 LIBS="$OLDLIBS" 13993 ccin2p3_cv_rfio=no 13994 else 13995 13996 for ac_header in shift.h 13997 do 13998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13999 if eval "test \"\${$as_ac_Header+set}\" = set"; then 14000 echo "$as_me:$LINENO: checking for $ac_header" >&5 14001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14002 if eval "test \"\${$as_ac_Header+set}\" = set"; then 14003 echo $ECHO_N "(cached) $ECHO_C" >&6 14004 fi 14005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14007 else 14008 # Is the header compilable? 14009 echo "$as_me:$LINENO: checking $ac_header usability" >&5 14010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 14011 cat >conftest.$ac_ext <<_ACEOF 14012 /* confdefs.h. */ 14013 _ACEOF 14014 cat confdefs.h >>conftest.$ac_ext 14015 cat >>conftest.$ac_ext <<_ACEOF 14016 /* end confdefs.h. */ 14017 $ac_includes_default 14018 #include <$ac_header> 14019 _ACEOF 14020 rm -f conftest.$ac_objext 14021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14022 (eval $ac_compile) 2>conftest.er1 14023 ac_status=$? 14024 grep -v '^ *+' conftest.er1 >conftest.err 14025 rm -f conftest.er1 14026 cat conftest.err >&5 14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14028 (exit $ac_status); } && 14029 { ac_try='test -z "$ac_c_werror_flag" 14030 || test ! -s conftest.err' 14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14032 (eval $ac_try) 2>&5 14033 ac_status=$? 14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14035 (exit $ac_status); }; } && 14036 { ac_try='test -s conftest.$ac_objext' 14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14038 (eval $ac_try) 2>&5 14039 ac_status=$? 14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14041 (exit $ac_status); }; }; then 14042 ac_header_compiler=yes 14043 else 14044 echo "$as_me: failed program was:" >&5 14045 sed 's/^/| /' conftest.$ac_ext >&5 14046 14047 ac_header_compiler=no 14048 fi 14049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14051 echo "${ECHO_T}$ac_header_compiler" >&6 14052 14053 # Is the header present? 14054 echo "$as_me:$LINENO: checking $ac_header presence" >&5 14055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 14056 cat >conftest.$ac_ext <<_ACEOF 14057 /* confdefs.h. */ 14058 _ACEOF 14059 cat confdefs.h >>conftest.$ac_ext 14060 cat >>conftest.$ac_ext <<_ACEOF 14061 /* end confdefs.h. */ 14062 #include <$ac_header> 14063 _ACEOF 14064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14066 ac_status=$? 14067 grep -v '^ *+' conftest.er1 >conftest.err 14068 rm -f conftest.er1 14069 cat conftest.err >&5 14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14071 (exit $ac_status); } >/dev/null; then 14072 if test -s conftest.err; then 14073 ac_cpp_err=$ac_c_preproc_warn_flag 14074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14075 else 14076 ac_cpp_err= 14077 fi 14078 else 14079 ac_cpp_err=yes 14080 fi 14081 if test -z "$ac_cpp_err"; then 14082 ac_header_preproc=yes 14083 else 14084 echo "$as_me: failed program was:" >&5 14085 sed 's/^/| /' conftest.$ac_ext >&5 14086 14087 ac_header_preproc=no 14088 fi 14089 rm -f conftest.err conftest.$ac_ext 14090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14091 echo "${ECHO_T}$ac_header_preproc" >&6 14092 14093 # So? What about this header? 14094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14095 yes:no: ) 14096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14100 ac_header_preproc=yes 14101 ;; 14102 no:yes:* ) 14103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14115 ( 14116 cat <<\_ASBOX 14117 ## ------------------------------------------ ## 14118 ## Report this to the AC_PACKAGE_NAME lists. ## 14119 ## ------------------------------------------ ## 14120 _ASBOX 14121 ) | 14122 sed "s/^/$as_me: WARNING: /" >&2 14123 ;; 14124 esac 14125 echo "$as_me:$LINENO: checking for $ac_header" >&5 14126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14127 if eval "test \"\${$as_ac_Header+set}\" = set"; then 14128 echo $ECHO_N "(cached) $ECHO_C" >&6 14129 else 14130 eval "$as_ac_Header=\$ac_header_preproc" 14131 fi 14132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14134 14135 fi 14136 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14137 cat >>confdefs.h <<_ACEOF 14138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14139 _ACEOF 14140 14141 else 14142 { { echo "$as_me:$LINENO: error: shift.h not found in $CPPFLAGS" >&5 14143 echo "$as_me: error: shift.h not found in $CPPFLAGS" >&2;} 14144 { (exit 1); exit 1; }; } 14145 fi 14146 14147 done 14148 14149 # LIBS="$LIBS $rfio_root_dir/lib/libshift.a" 14150 LDFLAGS="$OLDLDFLAGS" 14151 if test "$ac_cv_func_rfio_open" = "yes" ; then 14152 echo "$as_me:$LINENO: checking for rfio_HsmIf_FindPhysicalPath" >&5 14153 echo $ECHO_N "checking for rfio_HsmIf_FindPhysicalPath... $ECHO_C" >&6 14154 if test "${ac_cv_func_rfio_HsmIf_FindPhysicalPath+set}" = set; then 14155 echo $ECHO_N "(cached) $ECHO_C" >&6 14156 else 14157 cat >conftest.$ac_ext <<_ACEOF 14158 /* confdefs.h. */ 14159 _ACEOF 14160 cat confdefs.h >>conftest.$ac_ext 14161 cat >>conftest.$ac_ext <<_ACEOF 14162 /* end confdefs.h. */ 14163 /* Define rfio_HsmIf_FindPhysicalPath to an innocuous variant, in case <limits.h> declares rfio_HsmIf_FindPhysicalPath. 14164 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14165 #define rfio_HsmIf_FindPhysicalPath innocuous_rfio_HsmIf_FindPhysicalPath 14166 14167 /* System header to define __stub macros and hopefully few prototypes, 14168 which can conflict with char rfio_HsmIf_FindPhysicalPath (); below. 14169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14170 <limits.h> exists even on freestanding compilers. */ 14171 14172 #ifdef __STDC__ 14173 # include <limits.h> 14174 #else 14175 # include <assert.h> 14176 #endif 14177 14178 #undef rfio_HsmIf_FindPhysicalPath 14179 14180 /* Override any gcc2 internal prototype to avoid an error. */ 14181 #ifdef __cplusplus 14182 extern "C" 14183 { 14184 #endif 14185 /* We use char because int might match the return type of a gcc2 14186 builtin and then its argument prototype would still apply. */ 14187 char rfio_HsmIf_FindPhysicalPath (); 14188 /* The GNU C library defines this for functions which it implements 14189 to always fail with ENOSYS. Some functions are actually named 14190 something starting with __ and the normal name is an alias. */ 14191 #if defined (__stub_rfio_HsmIf_FindPhysicalPath) || defined (__stub___rfio_HsmIf_FindPhysicalPath) 14192 choke me 14193 #else 14194 char (*f) () = rfio_HsmIf_FindPhysicalPath; 14195 #endif 14196 #ifdef __cplusplus 14197 } 14198 #endif 14199 14200 int 14201 main () 14202 { 14203 return f != rfio_HsmIf_FindPhysicalPath; 14204 ; 14205 return 0; 14206 } 14207 _ACEOF 14208 rm -f conftest.$ac_objext conftest$ac_exeext 14209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14210 (eval $ac_link) 2>conftest.er1 14211 ac_status=$? 14212 grep -v '^ *+' conftest.er1 >conftest.err 14213 rm -f conftest.er1 14214 cat conftest.err >&5 14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14216 (exit $ac_status); } && 14217 { ac_try='test -z "$ac_c_werror_flag" 14218 || test ! -s conftest.err' 14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14220 (eval $ac_try) 2>&5 14221 ac_status=$? 14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14223 (exit $ac_status); }; } && 14224 { ac_try='test -s conftest$ac_exeext' 14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14226 (eval $ac_try) 2>&5 14227 ac_status=$? 14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14229 (exit $ac_status); }; }; then 14230 ac_cv_func_rfio_HsmIf_FindPhysicalPath=yes 14231 else 14232 echo "$as_me: failed program was:" >&5 14233 sed 's/^/| /' conftest.$ac_ext >&5 14234 14235 ac_cv_func_rfio_HsmIf_FindPhysicalPath=no 14236 fi 14237 rm -f conftest.err conftest.$ac_objext \ 14238 conftest$ac_exeext conftest.$ac_ext 14239 fi 14240 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&5 14241 echo "${ECHO_T}$ac_cv_func_rfio_HsmIf_FindPhysicalPath" >&6 14242 if test $ac_cv_func_rfio_HsmIf_FindPhysicalPath = yes; then 14243 result=yes 14244 else 14245 result=no 14246 fi 14247 14248 if test $result = yes ; then 14249 if test "${ac_cv_header_stage_api_h+set}" = set; then 14250 echo "$as_me:$LINENO: checking for stage_api.h" >&5 14251 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 14252 if test "${ac_cv_header_stage_api_h+set}" = set; then 14253 echo $ECHO_N "(cached) $ECHO_C" >&6 14254 fi 14255 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 14256 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 14257 else 14258 # Is the header compilable? 14259 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 14260 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 14261 cat >conftest.$ac_ext <<_ACEOF 14262 /* confdefs.h. */ 14263 _ACEOF 14264 cat confdefs.h >>conftest.$ac_ext 14265 cat >>conftest.$ac_ext <<_ACEOF 14266 /* end confdefs.h. */ 14267 $ac_includes_default 14268 #include <stage_api.h> 14269 _ACEOF 14270 rm -f conftest.$ac_objext 14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14272 (eval $ac_compile) 2>conftest.er1 14273 ac_status=$? 14274 grep -v '^ *+' conftest.er1 >conftest.err 14275 rm -f conftest.er1 14276 cat conftest.err >&5 14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14278 (exit $ac_status); } && 14279 { ac_try='test -z "$ac_c_werror_flag" 14280 || test ! -s conftest.err' 14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14282 (eval $ac_try) 2>&5 14283 ac_status=$? 14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14285 (exit $ac_status); }; } && 14286 { ac_try='test -s conftest.$ac_objext' 14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14288 (eval $ac_try) 2>&5 14289 ac_status=$? 14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14291 (exit $ac_status); }; }; then 14292 ac_header_compiler=yes 14293 else 14294 echo "$as_me: failed program was:" >&5 14295 sed 's/^/| /' conftest.$ac_ext >&5 14296 14297 ac_header_compiler=no 14298 fi 14299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14301 echo "${ECHO_T}$ac_header_compiler" >&6 14302 14303 # Is the header present? 14304 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 14305 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 14306 cat >conftest.$ac_ext <<_ACEOF 14307 /* confdefs.h. */ 14308 _ACEOF 14309 cat confdefs.h >>conftest.$ac_ext 14310 cat >>conftest.$ac_ext <<_ACEOF 14311 /* end confdefs.h. */ 14312 #include <stage_api.h> 14313 _ACEOF 14314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14316 ac_status=$? 14317 grep -v '^ *+' conftest.er1 >conftest.err 14318 rm -f conftest.er1 14319 cat conftest.err >&5 14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14321 (exit $ac_status); } >/dev/null; then 14322 if test -s conftest.err; then 14323 ac_cpp_err=$ac_c_preproc_warn_flag 14324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14325 else 14326 ac_cpp_err= 14327 fi 14328 else 14329 ac_cpp_err=yes 14330 fi 14331 if test -z "$ac_cpp_err"; then 14332 ac_header_preproc=yes 14333 else 14334 echo "$as_me: failed program was:" >&5 14335 sed 's/^/| /' conftest.$ac_ext >&5 14336 14337 ac_header_preproc=no 14338 fi 14339 rm -f conftest.err conftest.$ac_ext 14340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14341 echo "${ECHO_T}$ac_header_preproc" >&6 14342 14343 # So? What about this header? 14344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14345 yes:no: ) 14346 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 14347 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14348 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 14349 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 14350 ac_header_preproc=yes 14351 ;; 14352 no:yes:* ) 14353 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 14354 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 14355 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 14356 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 14357 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 14358 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 14359 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 14360 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 14361 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 14362 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 14363 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 14364 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 14365 ( 14366 cat <<\_ASBOX 14367 ## ------------------------------------------ ## 14368 ## Report this to the AC_PACKAGE_NAME lists. ## 14369 ## ------------------------------------------ ## 14370 _ASBOX 14371 ) | 14372 sed "s/^/$as_me: WARNING: /" >&2 14373 ;; 14374 esac 14375 echo "$as_me:$LINENO: checking for stage_api.h" >&5 14376 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 14377 if test "${ac_cv_header_stage_api_h+set}" = set; then 14378 echo $ECHO_N "(cached) $ECHO_C" >&6 14379 else 14380 ac_cv_header_stage_api_h=$ac_header_preproc 14381 fi 14382 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 14383 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 14384 14385 fi 14386 if test $ac_cv_header_stage_api_h = yes; then 14387 result=yes 14388 else 14389 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 14390 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 14391 { (exit 1); exit 1; }; } 14392 fi 14393 14394 14395 cat >>confdefs.h <<\_ACEOF 14396 #define CASTOR 1 14397 _ACEOF 14398 14399 fi 14400 else 14401 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 14402 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 14403 if test "${ac_cv_func_rfio_setcos+set}" = set; then 14404 echo $ECHO_N "(cached) $ECHO_C" >&6 14405 else 14406 cat >conftest.$ac_ext <<_ACEOF 14407 /* confdefs.h. */ 14408 _ACEOF 14409 cat confdefs.h >>conftest.$ac_ext 14410 cat >>conftest.$ac_ext <<_ACEOF 14411 /* end confdefs.h. */ 14412 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 14413 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14414 #define rfio_setcos innocuous_rfio_setcos 14415 14416 /* System header to define __stub macros and hopefully few prototypes, 14417 which can conflict with char rfio_setcos (); below. 14418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14419 <limits.h> exists even on freestanding compilers. */ 14420 14421 #ifdef __STDC__ 14422 # include <limits.h> 14423 #else 14424 # include <assert.h> 14425 #endif 14426 14427 #undef rfio_setcos 14428 14429 /* Override any gcc2 internal prototype to avoid an error. */ 14430 #ifdef __cplusplus 14431 extern "C" 14432 { 14433 #endif 14434 /* We use char because int might match the return type of a gcc2 14435 builtin and then its argument prototype would still apply. */ 14436 char rfio_setcos (); 14437 /* The GNU C library defines this for functions which it implements 14438 to always fail with ENOSYS. Some functions are actually named 14439 something starting with __ and the normal name is an alias. */ 14440 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 14441 choke me 14442 #else 14443 char (*f) () = rfio_setcos; 14444 #endif 14445 #ifdef __cplusplus 14446 } 14447 #endif 14448 14449 int 14450 main () 14451 { 14452 return f != rfio_setcos; 14453 ; 14454 return 0; 14455 } 14456 _ACEOF 14457 rm -f conftest.$ac_objext conftest$ac_exeext 14458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14459 (eval $ac_link) 2>conftest.er1 14460 ac_status=$? 14461 grep -v '^ *+' conftest.er1 >conftest.err 14462 rm -f conftest.er1 14463 cat conftest.err >&5 14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14465 (exit $ac_status); } && 14466 { ac_try='test -z "$ac_c_werror_flag" 14467 || test ! -s conftest.err' 14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14469 (eval $ac_try) 2>&5 14470 ac_status=$? 14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14472 (exit $ac_status); }; } && 14473 { ac_try='test -s conftest$ac_exeext' 14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14475 (eval $ac_try) 2>&5 14476 ac_status=$? 14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14478 (exit $ac_status); }; }; then 14479 ac_cv_func_rfio_setcos=yes 14480 else 14481 echo "$as_me: failed program was:" >&5 14482 sed 's/^/| /' conftest.$ac_ext >&5 14483 14484 ac_cv_func_rfio_setcos=no 14485 fi 14486 rm -f conftest.err conftest.$ac_objext \ 14487 conftest$ac_exeext conftest.$ac_ext 14488 fi 14489 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 14490 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 14491 if test $ac_cv_func_rfio_setcos = yes; then 14492 result=yes 14493 else 14494 result=no 14495 fi 14496 14497 if test $result = no ; then 14498 unset ac_cv_func_rfio_setcos 14499 14500 # Check whether --with-hpss or --without-hpss was given. 14501 if test "${with_hpss+set}" = set; then 14502 withval="$with_hpss" 14503 resulthpss=yes 14504 else 14505 resulthpss=no 14506 fi; 14507 if test $resulthpss != no ; then 14508 if test $with_hpss = yes ; then 14509 hpss_root_dir="/usr/local" 14510 else 14511 hpss_root_dir=$with_hpss 14512 fi 14513 OLDLIBS="$LIBS" 14514 LIBS="$LIBS $hpss_root_dir/lib/libhpss.a" 14515 echo "$as_me:$LINENO: checking for rfio_setcos" >&5 14516 echo $ECHO_N "checking for rfio_setcos... $ECHO_C" >&6 14517 if test "${ac_cv_func_rfio_setcos+set}" = set; then 14518 echo $ECHO_N "(cached) $ECHO_C" >&6 14519 else 14520 cat >conftest.$ac_ext <<_ACEOF 14521 /* confdefs.h. */ 14522 _ACEOF 14523 cat confdefs.h >>conftest.$ac_ext 14524 cat >>conftest.$ac_ext <<_ACEOF 14525 /* end confdefs.h. */ 14526 /* Define rfio_setcos to an innocuous variant, in case <limits.h> declares rfio_setcos. 14527 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14528 #define rfio_setcos innocuous_rfio_setcos 14529 14530 /* System header to define __stub macros and hopefully few prototypes, 14531 which can conflict with char rfio_setcos (); below. 14532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14533 <limits.h> exists even on freestanding compilers. */ 14534 14535 #ifdef __STDC__ 14536 # include <limits.h> 14537 #else 14538 # include <assert.h> 14539 #endif 14540 14541 #undef rfio_setcos 14542 14543 /* Override any gcc2 internal prototype to avoid an error. */ 14544 #ifdef __cplusplus 14545 extern "C" 14546 { 14547 #endif 14548 /* We use char because int might match the return type of a gcc2 14549 builtin and then its argument prototype would still apply. */ 14550 char rfio_setcos (); 14551 /* The GNU C library defines this for functions which it implements 14552 to always fail with ENOSYS. Some functions are actually named 14553 something starting with __ and the normal name is an alias. */ 14554 #if defined (__stub_rfio_setcos) || defined (__stub___rfio_setcos) 14555 choke me 14556 #else 14557 char (*f) () = rfio_setcos; 14558 #endif 14559 #ifdef __cplusplus 14560 } 14561 #endif 14562 14563 int 14564 main () 14565 { 14566 return f != rfio_setcos; 14567 ; 14568 return 0; 14569 } 14570 _ACEOF 14571 rm -f conftest.$ac_objext conftest$ac_exeext 14572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14573 (eval $ac_link) 2>conftest.er1 14574 ac_status=$? 14575 grep -v '^ *+' conftest.er1 >conftest.err 14576 rm -f conftest.er1 14577 cat conftest.err >&5 14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14579 (exit $ac_status); } && 14580 { ac_try='test -z "$ac_c_werror_flag" 14581 || test ! -s conftest.err' 14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14583 (eval $ac_try) 2>&5 14584 ac_status=$? 14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14586 (exit $ac_status); }; } && 14587 { ac_try='test -s conftest$ac_exeext' 14588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14589 (eval $ac_try) 2>&5 14590 ac_status=$? 14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14592 (exit $ac_status); }; }; then 14593 ac_cv_func_rfio_setcos=yes 14594 else 14595 echo "$as_me: failed program was:" >&5 14596 sed 's/^/| /' conftest.$ac_ext >&5 14597 14598 ac_cv_func_rfio_setcos=no 14599 fi 14600 rm -f conftest.err conftest.$ac_objext \ 14601 conftest$ac_exeext conftest.$ac_ext 14602 fi 14603 echo "$as_me:$LINENO: result: $ac_cv_func_rfio_setcos" >&5 14604 echo "${ECHO_T}$ac_cv_func_rfio_setcos" >&6 14605 if test $ac_cv_func_rfio_setcos = yes; then 14606 result=yes 14607 else 14608 result=no 14609 fi 14610 14611 if test $result = no ; then 14612 LIBS="$OLDLIBS" 14613 fi 14614 fi 14615 fi 14616 if test $result = no ; then 14617 if test "${ac_cv_header_stage_api_h+set}" = set; then 14618 echo "$as_me:$LINENO: checking for stage_api.h" >&5 14619 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 14620 if test "${ac_cv_header_stage_api_h+set}" = set; then 14621 echo $ECHO_N "(cached) $ECHO_C" >&6 14622 fi 14623 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 14624 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 14625 else 14626 # Is the header compilable? 14627 echo "$as_me:$LINENO: checking stage_api.h usability" >&5 14628 echo $ECHO_N "checking stage_api.h usability... $ECHO_C" >&6 14629 cat >conftest.$ac_ext <<_ACEOF 14630 /* confdefs.h. */ 14631 _ACEOF 14632 cat confdefs.h >>conftest.$ac_ext 14633 cat >>conftest.$ac_ext <<_ACEOF 14634 /* end confdefs.h. */ 14635 $ac_includes_default 14636 #include <stage_api.h> 14637 _ACEOF 14638 rm -f conftest.$ac_objext 14639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14640 (eval $ac_compile) 2>conftest.er1 14641 ac_status=$? 14642 grep -v '^ *+' conftest.er1 >conftest.err 14643 rm -f conftest.er1 14644 cat conftest.err >&5 14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14646 (exit $ac_status); } && 14647 { ac_try='test -z "$ac_c_werror_flag" 14648 || test ! -s conftest.err' 14649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14650 (eval $ac_try) 2>&5 14651 ac_status=$? 14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14653 (exit $ac_status); }; } && 14654 { ac_try='test -s conftest.$ac_objext' 14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14656 (eval $ac_try) 2>&5 14657 ac_status=$? 14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14659 (exit $ac_status); }; }; then 14660 ac_header_compiler=yes 14661 else 14662 echo "$as_me: failed program was:" >&5 14663 sed 's/^/| /' conftest.$ac_ext >&5 14664 14665 ac_header_compiler=no 14666 fi 14667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14669 echo "${ECHO_T}$ac_header_compiler" >&6 14670 14671 # Is the header present? 14672 echo "$as_me:$LINENO: checking stage_api.h presence" >&5 14673 echo $ECHO_N "checking stage_api.h presence... $ECHO_C" >&6 14674 cat >conftest.$ac_ext <<_ACEOF 14675 /* confdefs.h. */ 14676 _ACEOF 14677 cat confdefs.h >>conftest.$ac_ext 14678 cat >>conftest.$ac_ext <<_ACEOF 14679 /* end confdefs.h. */ 14680 #include <stage_api.h> 14681 _ACEOF 14682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 14683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 14684 ac_status=$? 14685 grep -v '^ *+' conftest.er1 >conftest.err 14686 rm -f conftest.er1 14687 cat conftest.err >&5 14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14689 (exit $ac_status); } >/dev/null; then 14690 if test -s conftest.err; then 14691 ac_cpp_err=$ac_c_preproc_warn_flag 14692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14693 else 14694 ac_cpp_err= 14695 fi 14696 else 14697 ac_cpp_err=yes 14698 fi 14699 if test -z "$ac_cpp_err"; then 14700 ac_header_preproc=yes 14701 else 14702 echo "$as_me: failed program was:" >&5 14703 sed 's/^/| /' conftest.$ac_ext >&5 14704 14705 ac_header_preproc=no 14706 fi 14707 rm -f conftest.err conftest.$ac_ext 14708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14709 echo "${ECHO_T}$ac_header_preproc" >&6 14710 14711 # So? What about this header? 14712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14713 yes:no: ) 14714 { echo "$as_me:$LINENO: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&5 14715 echo "$as_me: WARNING: stage_api.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14716 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the compiler's result" >&5 14717 echo "$as_me: WARNING: stage_api.h: proceeding with the compiler's result" >&2;} 14718 ac_header_preproc=yes 14719 ;; 14720 no:yes:* ) 14721 { echo "$as_me:$LINENO: WARNING: stage_api.h: present but cannot be compiled" >&5 14722 echo "$as_me: WARNING: stage_api.h: present but cannot be compiled" >&2;} 14723 { echo "$as_me:$LINENO: WARNING: stage_api.h: check for missing prerequisite headers?" >&5 14724 echo "$as_me: WARNING: stage_api.h: check for missing prerequisite headers?" >&2;} 14725 { echo "$as_me:$LINENO: WARNING: stage_api.h: see the Autoconf documentation" >&5 14726 echo "$as_me: WARNING: stage_api.h: see the Autoconf documentation" >&2;} 14727 { echo "$as_me:$LINENO: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&5 14728 echo "$as_me: WARNING: stage_api.h: section \"Present But Cannot Be Compiled\"" >&2;} 14729 { echo "$as_me:$LINENO: WARNING: stage_api.h: proceeding with the preprocessor's result" >&5 14730 echo "$as_me: WARNING: stage_api.h: proceeding with the preprocessor's result" >&2;} 14731 { echo "$as_me:$LINENO: WARNING: stage_api.h: in the future, the compiler will take precedence" >&5 14732 echo "$as_me: WARNING: stage_api.h: in the future, the compiler will take precedence" >&2;} 14733 ( 14734 cat <<\_ASBOX 14735 ## ------------------------------------------ ## 14736 ## Report this to the AC_PACKAGE_NAME lists. ## 14737 ## ------------------------------------------ ## 14738 _ASBOX 14739 ) | 14740 sed "s/^/$as_me: WARNING: /" >&2 14741 ;; 14742 esac 14743 echo "$as_me:$LINENO: checking for stage_api.h" >&5 14744 echo $ECHO_N "checking for stage_api.h... $ECHO_C" >&6 14745 if test "${ac_cv_header_stage_api_h+set}" = set; then 14746 echo $ECHO_N "(cached) $ECHO_C" >&6 14747 else 14748 ac_cv_header_stage_api_h=$ac_header_preproc 14749 fi 14750 echo "$as_me:$LINENO: result: $ac_cv_header_stage_api_h" >&5 14751 echo "${ECHO_T}$ac_cv_header_stage_api_h" >&6 14752 14753 fi 14754 if test $ac_cv_header_stage_api_h = yes; then 14755 result=yes 14756 else 14757 { { echo "$as_me:$LINENO: error: shift/stage_api.h not found in $CPPFLAGS" >&5 14758 echo "$as_me: error: shift/stage_api.h not found in $CPPFLAGS" >&2;} 14759 { (exit 1); exit 1; }; } 14760 fi 14761 14762 14763 14764 for ac_func in stageclr_Path 14765 do 14766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14767 echo "$as_me:$LINENO: checking for $ac_func" >&5 14768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14769 if eval "test \"\${$as_ac_var+set}\" = set"; then 14770 echo $ECHO_N "(cached) $ECHO_C" >&6 14771 else 14772 cat >conftest.$ac_ext <<_ACEOF 14773 /* confdefs.h. */ 14774 _ACEOF 14775 cat confdefs.h >>conftest.$ac_ext 14776 cat >>conftest.$ac_ext <<_ACEOF 14777 /* end confdefs.h. */ 14778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14779 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14780 #define $ac_func innocuous_$ac_func 14781 14782 /* System header to define __stub macros and hopefully few prototypes, 14783 which can conflict with char $ac_func (); below. 14784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14785 <limits.h> exists even on freestanding compilers. */ 14786 14787 #ifdef __STDC__ 14788 # include <limits.h> 14789 #else 14790 # include <assert.h> 14791 #endif 14792 14793 #undef $ac_func 14794 14795 /* Override any gcc2 internal prototype to avoid an error. */ 14796 #ifdef __cplusplus 14797 extern "C" 14798 { 14799 #endif 14800 /* We use char because int might match the return type of a gcc2 14801 builtin and then its argument prototype would still apply. */ 14802 char $ac_func (); 14803 /* The GNU C library defines this for functions which it implements 14804 to always fail with ENOSYS. Some functions are actually named 14805 something starting with __ and the normal name is an alias. */ 14806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14807 choke me 14808 #else 14809 char (*f) () = $ac_func; 14810 #endif 14811 #ifdef __cplusplus 14812 } 14813 #endif 14814 14815 int 14816 main () 14817 { 14818 return f != $ac_func; 14819 ; 14820 return 0; 14821 } 14822 _ACEOF 14823 rm -f conftest.$ac_objext conftest$ac_exeext 14824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14825 (eval $ac_link) 2>conftest.er1 14826 ac_status=$? 14827 grep -v '^ *+' conftest.er1 >conftest.err 14828 rm -f conftest.er1 14829 cat conftest.err >&5 14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14831 (exit $ac_status); } && 14832 { ac_try='test -z "$ac_c_werror_flag" 14833 || test ! -s conftest.err' 14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14835 (eval $ac_try) 2>&5 14836 ac_status=$? 14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14838 (exit $ac_status); }; } && 14839 { ac_try='test -s conftest$ac_exeext' 14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14841 (eval $ac_try) 2>&5 14842 ac_status=$? 14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14844 (exit $ac_status); }; }; then 14845 eval "$as_ac_var=yes" 14846 else 14847 echo "$as_me: failed program was:" >&5 14848 sed 's/^/| /' conftest.$ac_ext >&5 14849 14850 eval "$as_ac_var=no" 14851 fi 14852 rm -f conftest.err conftest.$ac_objext \ 14853 conftest$ac_exeext conftest.$ac_ext 14854 fi 14855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14857 if test `eval echo '${'$as_ac_var'}'` = yes; then 14858 cat >>confdefs.h <<_ACEOF 14859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14860 _ACEOF 14861 14862 fi 14863 done 14864 14865 cat >>confdefs.h <<\_ACEOF 14866 #define CASTOR 1 14867 _ACEOF 14868 14869 fi 14870 fi 14871 ccin2p3_cv_rfio=yes 14872 fi 14873 if test $ccin2p3_cv_rfio = yes; then 14874 RFIOOBJS="bbftp_retr_rfio.o bbftp_store_rfio.o" 14875 else 14876 { echo "$as_me:$LINENO: WARNING: RFIO not installed" >&5 14877 echo "$as_me: WARNING: RFIO not installed" >&2;} 14878 fi 14879 14880 fi 14881 fi 11378 14882 11379 14883 # Check whether --enable-authentication or --disable-authentication was given.
Note: See TracChangeset
for help on using the changeset viewer.