… | |
… | |
2551 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2551 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2552 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2553 | |
2553 | |
2554 | |
2554 | |
2555 | |
2555 | |
|
|
2556 | { echo "$as_me:$LINENO: checking for library containing pthread_create" >&5 |
|
|
2557 | echo $ECHO_N "checking for library containing pthread_create... $ECHO_C" >&6; } |
|
|
2558 | if test "${ac_cv_search_pthread_create+set}" = set; then |
|
|
2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2560 | else |
|
|
2561 | ac_func_search_save_LIBS=$LIBS |
|
|
2562 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2563 | /* confdefs.h. */ |
|
|
2564 | _ACEOF |
|
|
2565 | cat confdefs.h >>conftest.$ac_ext |
|
|
2566 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2567 | /* end confdefs.h. */ |
|
|
2568 | |
|
|
2569 | /* Override any GCC internal prototype to avoid an error. |
|
|
2570 | Use char because int might match the return type of a GCC |
|
|
2571 | builtin and then its argument prototype would still apply. */ |
|
|
2572 | #ifdef __cplusplus |
|
|
2573 | extern "C" |
|
|
2574 | #endif |
|
|
2575 | char pthread_create (); |
|
|
2576 | int |
|
|
2577 | main () |
|
|
2578 | { |
|
|
2579 | return pthread_create (); |
|
|
2580 | ; |
|
|
2581 | return 0; |
|
|
2582 | } |
|
|
2583 | _ACEOF |
|
|
2584 | for ac_lib in '' pthread pthreads pthreadVC2; do |
|
|
2585 | if test -z "$ac_lib"; then |
|
|
2586 | ac_res="none required" |
|
|
2587 | else |
|
|
2588 | ac_res=-l$ac_lib |
|
|
2589 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
2590 | fi |
|
|
2591 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
2592 | if { (ac_try="$ac_link" |
|
|
2593 | case "(($ac_try" in |
|
|
2594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2595 | *) ac_try_echo=$ac_try;; |
|
|
2596 | esac |
|
|
2597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2598 | (eval "$ac_link") 2>conftest.er1 |
|
|
2599 | ac_status=$? |
|
|
2600 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2601 | rm -f conftest.er1 |
|
|
2602 | cat conftest.err >&5 |
|
|
2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2604 | (exit $ac_status); } && { |
|
|
2605 | test -z "$ac_c_werror_flag" || |
|
|
2606 | test ! -s conftest.err |
|
|
2607 | } && test -s conftest$ac_exeext && |
|
|
2608 | $as_test_x conftest$ac_exeext; then |
|
|
2609 | ac_cv_search_pthread_create=$ac_res |
|
|
2610 | else |
|
|
2611 | echo "$as_me: failed program was:" >&5 |
|
|
2612 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2613 | |
|
|
2614 | |
|
|
2615 | fi |
|
|
2616 | |
|
|
2617 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
2618 | conftest$ac_exeext |
|
|
2619 | if test "${ac_cv_search_pthread_create+set}" = set; then |
|
|
2620 | break |
|
|
2621 | fi |
|
|
2622 | done |
|
|
2623 | if test "${ac_cv_search_pthread_create+set}" = set; then |
|
|
2624 | : |
|
|
2625 | else |
|
|
2626 | ac_cv_search_pthread_create=no |
|
|
2627 | fi |
|
|
2628 | rm conftest.$ac_ext |
|
|
2629 | LIBS=$ac_func_search_save_LIBS |
|
|
2630 | fi |
|
|
2631 | { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5 |
|
|
2632 | echo "${ECHO_T}$ac_cv_search_pthread_create" >&6; } |
|
|
2633 | ac_res=$ac_cv_search_pthread_create |
|
|
2634 | if test "$ac_res" != no; then |
|
|
2635 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
2636 | |
|
|
2637 | else |
|
|
2638 | { { echo "$as_me:$LINENO: error: pthread functions not found" >&5 |
|
|
2639 | echo "$as_me: error: pthread functions not found" >&2;} |
|
|
2640 | { (exit 1); exit 1; }; } |
|
|
2641 | |
|
|
2642 | fi |
|
|
2643 | |
|
|
2644 | |
2556 | { echo "$as_me:$LINENO: checking for futimes" >&5 |
2645 | { echo "$as_me:$LINENO: checking for futimes" >&5 |
2557 | echo $ECHO_N "checking for futimes... $ECHO_C" >&6; } |
2646 | echo $ECHO_N "checking for futimes... $ECHO_C" >&6; } |
2558 | if test "${ac_cv_futimes+set}" = set; then |
2647 | if test "${ac_cv_futimes+set}" = set; then |
2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2560 | else |
2649 | else |
… | |
… | |
2619 | |
2708 | |
2620 | #include <fcntl.h> |
2709 | #include <fcntl.h> |
2621 | int main(void) |
2710 | int main(void) |
2622 | { |
2711 | { |
2623 | int fd = 0; |
2712 | int fd = 0; |
2624 | off64_t offset = 1; |
|
|
2625 | size_t count = 2; |
2713 | size_t count = 2; |
2626 | ssize_t res; |
2714 | ssize_t res; |
2627 | res = readahead (fd, offset, count); |
2715 | res = readahead (fd, 0, count); |
2628 | return 0; |
2716 | return 0; |
2629 | } |
2717 | } |
2630 | |
2718 | |
2631 | _ACEOF |
2719 | _ACEOF |
2632 | rm -f conftest.$ac_objext conftest$ac_exeext |
2720 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
2772 | { echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5 |
2860 | { echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5 |
2773 | echo "${ECHO_T}$ac_cv_preadwrite" >&6; } |
2861 | echo "${ECHO_T}$ac_cv_preadwrite" >&6; } |
2774 | test $ac_cv_preadwrite = yes && |
2862 | test $ac_cv_preadwrite = yes && |
2775 | cat >>confdefs.h <<\_ACEOF |
2863 | cat >>confdefs.h <<\_ACEOF |
2776 | #define HAVE_PREADWRITE 1 |
2864 | #define HAVE_PREADWRITE 1 |
2777 | _ACEOF |
|
|
2778 | |
|
|
2779 | |
|
|
2780 | { echo "$as_me:$LINENO: checking for readdir_r" >&5 |
|
|
2781 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; } |
|
|
2782 | if test "${ac_cv_readdir_r+set}" = set; then |
|
|
2783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2784 | else |
|
|
2785 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2786 | |
|
|
2787 | #include <dirent.h> |
|
|
2788 | int main(void) |
|
|
2789 | { |
|
|
2790 | DIR *dir = 0; |
|
|
2791 | struct dirent ent, *eres; |
|
|
2792 | int res = readdir_r (dir, &ent, &eres); |
|
|
2793 | return 0; |
|
|
2794 | } |
|
|
2795 | |
|
|
2796 | _ACEOF |
|
|
2797 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
2798 | if { (ac_try="$ac_link" |
|
|
2799 | case "(($ac_try" in |
|
|
2800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2801 | *) ac_try_echo=$ac_try;; |
|
|
2802 | esac |
|
|
2803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2804 | (eval "$ac_link") 2>conftest.er1 |
|
|
2805 | ac_status=$? |
|
|
2806 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2807 | rm -f conftest.er1 |
|
|
2808 | cat conftest.err >&5 |
|
|
2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2810 | (exit $ac_status); } && { |
|
|
2811 | test -z "$ac_c_werror_flag" || |
|
|
2812 | test ! -s conftest.err |
|
|
2813 | } && test -s conftest$ac_exeext && |
|
|
2814 | $as_test_x conftest$ac_exeext; then |
|
|
2815 | ac_cv_readdir_r=yes |
|
|
2816 | else |
|
|
2817 | echo "$as_me: failed program was:" >&5 |
|
|
2818 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2819 | |
|
|
2820 | ac_cv_readdir_r=no |
|
|
2821 | fi |
|
|
2822 | |
|
|
2823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
2824 | conftest$ac_exeext conftest.$ac_ext |
|
|
2825 | fi |
|
|
2826 | { echo "$as_me:$LINENO: result: $ac_cv_readdir_r" >&5 |
|
|
2827 | echo "${ECHO_T}$ac_cv_readdir_r" >&6; } |
|
|
2828 | test $ac_cv_readdir_r = yes && |
|
|
2829 | cat >>confdefs.h <<\_ACEOF |
|
|
2830 | #define HAVE_READDIR_R 1 |
|
|
2831 | _ACEOF |
2865 | _ACEOF |
2832 | |
2866 | |
2833 | |
2867 | |
2834 | { echo "$as_me:$LINENO: checking for sendfile" >&5 |
2868 | { echo "$as_me:$LINENO: checking for sendfile" >&5 |
2835 | echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } |
2869 | echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } |