Mercurial > emacs
comparison configure @ 31417:a902ad11827b
*** empty log message ***
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 06 Sep 2000 21:42:35 +0000 |
parents | 73b83b52b9cd |
children | 83b2a14bea5b |
comparison
equal
deleted
inserted
replaced
31416:9b8c5bea5e8d | 31417:a902ad11827b |
---|---|
2322 configure___ system_malloc=yes | 2322 configure___ system_malloc=yes |
2323 #else | 2323 #else |
2324 configure___ system_malloc=no | 2324 configure___ system_malloc=no |
2325 #endif | 2325 #endif |
2326 | 2326 |
2327 #ifdef REL_ALLOC_MMAP | |
2328 configure___ rel_alloc_mmap=yes | |
2329 #else | |
2330 configure___ rel_alloc_mmap=no | |
2331 #endif | |
2332 | |
2327 #ifndef C_DEBUG_SWITCH | 2333 #ifndef C_DEBUG_SWITCH |
2328 #define C_DEBUG_SWITCH -g | 2334 #define C_DEBUG_SWITCH -g |
2329 #endif | 2335 #endif |
2330 | 2336 |
2331 #ifndef C_OPTIMIZE_SWITCH | 2337 #ifndef C_OPTIMIZE_SWITCH |
2402 fi | 2408 fi |
2403 | 2409 |
2404 if test "$enable_largefile" != no; then | 2410 if test "$enable_largefile" != no; then |
2405 | 2411 |
2406 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 | 2412 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 |
2407 echo "configure:2408: checking for special C compiler options needed for large files" >&5 | 2413 echo "configure:2414: checking for special C compiler options needed for large files" >&5 |
2408 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then | 2414 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then |
2409 echo $ac_n "(cached) $ac_c" 1>&6 | 2415 echo $ac_n "(cached) $ac_c" 1>&6 |
2410 else | 2416 else |
2411 ac_cv_sys_largefile_CC=no | 2417 ac_cv_sys_largefile_CC=no |
2412 if test "$GCC" != yes; then | 2418 if test "$GCC" != yes; then |
2413 # IRIX 6.2 and later do not support large files by default, | 2419 # IRIX 6.2 and later do not support large files by default, |
2414 # so use the C compiler's -n32 option if that helps. | 2420 # so use the C compiler's -n32 option if that helps. |
2415 cat > conftest.$ac_ext <<EOF | 2421 cat > conftest.$ac_ext <<EOF |
2416 #line 2417 "configure" | 2422 #line 2423 "configure" |
2417 #include "confdefs.h" | 2423 #include "confdefs.h" |
2418 #include <sys/types.h> | 2424 #include <sys/types.h> |
2419 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 2425 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
2420 | 2426 |
2421 int main() { | 2427 int main() { |
2422 | 2428 |
2423 ; return 0; } | 2429 ; return 0; } |
2424 EOF | 2430 EOF |
2425 if { (eval echo configure:2426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2431 if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2426 : | 2432 : |
2427 else | 2433 else |
2428 echo "configure: failed program was:" >&5 | 2434 echo "configure: failed program was:" >&5 |
2429 cat conftest.$ac_ext >&5 | 2435 cat conftest.$ac_ext >&5 |
2430 rm -rf conftest* | 2436 rm -rf conftest* |
2431 ac_save_CC="$CC" | 2437 ac_save_CC="$CC" |
2432 CC="$CC -n32" | 2438 CC="$CC -n32" |
2433 cat > conftest.$ac_ext <<EOF | 2439 cat > conftest.$ac_ext <<EOF |
2434 #line 2435 "configure" | 2440 #line 2441 "configure" |
2435 #include "confdefs.h" | 2441 #include "confdefs.h" |
2436 #include <sys/types.h> | 2442 #include <sys/types.h> |
2437 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 2443 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
2438 | 2444 |
2439 int main() { | 2445 int main() { |
2440 | 2446 |
2441 ; return 0; } | 2447 ; return 0; } |
2442 EOF | 2448 EOF |
2443 if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2449 if { (eval echo configure:2450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2444 rm -rf conftest* | 2450 rm -rf conftest* |
2445 ac_cv_sys_largefile_CC=' -n32' | 2451 ac_cv_sys_largefile_CC=' -n32' |
2446 else | 2452 else |
2447 echo "configure: failed program was:" >&5 | 2453 echo "configure: failed program was:" >&5 |
2448 cat conftest.$ac_ext >&5 | 2454 cat conftest.$ac_ext >&5 |
2458 if test "$ac_cv_sys_largefile_CC" != no; then | 2464 if test "$ac_cv_sys_largefile_CC" != no; then |
2459 CC="$CC$ac_cv_sys_largefile_CC" | 2465 CC="$CC$ac_cv_sys_largefile_CC" |
2460 fi | 2466 fi |
2461 | 2467 |
2462 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | 2468 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 |
2463 echo "configure:2464: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | 2469 echo "configure:2470: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
2464 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | 2470 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
2465 echo $ac_n "(cached) $ac_c" 1>&6 | 2471 echo $ac_n "(cached) $ac_c" 1>&6 |
2466 else | 2472 else |
2467 ac_cv_sys_file_offset_bits=no | 2473 ac_cv_sys_file_offset_bits=no |
2468 cat > conftest.$ac_ext <<EOF | 2474 cat > conftest.$ac_ext <<EOF |
2469 #line 2470 "configure" | 2475 #line 2476 "configure" |
2470 #include "confdefs.h" | 2476 #include "confdefs.h" |
2471 #include <sys/types.h> | 2477 #include <sys/types.h> |
2472 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 2478 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
2473 | 2479 |
2474 | 2480 |
2475 | 2481 |
2476 int main() { | 2482 int main() { |
2477 | 2483 |
2478 ; return 0; } | 2484 ; return 0; } |
2479 EOF | 2485 EOF |
2480 if { (eval echo configure:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2486 if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2481 : | 2487 : |
2482 else | 2488 else |
2483 echo "configure: failed program was:" >&5 | 2489 echo "configure: failed program was:" >&5 |
2484 cat conftest.$ac_ext >&5 | 2490 cat conftest.$ac_ext >&5 |
2485 rm -rf conftest* | 2491 rm -rf conftest* |
2486 cat > conftest.$ac_ext <<EOF | 2492 cat > conftest.$ac_ext <<EOF |
2487 #line 2488 "configure" | 2493 #line 2494 "configure" |
2488 #include "confdefs.h" | 2494 #include "confdefs.h" |
2489 #define _FILE_OFFSET_BITS 64 | 2495 #define _FILE_OFFSET_BITS 64 |
2490 #include <sys/types.h> | 2496 #include <sys/types.h> |
2491 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 2497 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
2492 | 2498 |
2494 | 2500 |
2495 int main() { | 2501 int main() { |
2496 | 2502 |
2497 ; return 0; } | 2503 ; return 0; } |
2498 EOF | 2504 EOF |
2499 if { (eval echo configure:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2505 if { (eval echo configure:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2500 rm -rf conftest* | 2506 rm -rf conftest* |
2501 ac_cv_sys_file_offset_bits=64 | 2507 ac_cv_sys_file_offset_bits=64 |
2502 else | 2508 else |
2503 echo "configure: failed program was:" >&5 | 2509 echo "configure: failed program was:" >&5 |
2504 cat conftest.$ac_ext >&5 | 2510 cat conftest.$ac_ext >&5 |
2514 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | 2520 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
2515 EOF | 2521 EOF |
2516 | 2522 |
2517 fi | 2523 fi |
2518 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | 2524 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 |
2519 echo "configure:2520: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | 2525 echo "configure:2526: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
2520 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then | 2526 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then |
2521 echo $ac_n "(cached) $ac_c" 1>&6 | 2527 echo $ac_n "(cached) $ac_c" 1>&6 |
2522 else | 2528 else |
2523 ac_cv_sys_largefile_source=no | 2529 ac_cv_sys_largefile_source=no |
2524 cat > conftest.$ac_ext <<EOF | 2530 cat > conftest.$ac_ext <<EOF |
2525 #line 2526 "configure" | 2531 #line 2532 "configure" |
2526 #include "confdefs.h" | 2532 #include "confdefs.h" |
2527 #include <sys/types.h> | 2533 #include <sys/types.h> |
2528 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 2534 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
2529 | 2535 |
2530 #include <stdio.h> | 2536 #include <stdio.h> |
2531 | 2537 |
2532 int main() { | 2538 int main() { |
2533 return !ftello; | 2539 return !ftello; |
2534 ; return 0; } | 2540 ; return 0; } |
2535 EOF | 2541 EOF |
2536 if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2542 if { (eval echo configure:2543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2537 : | 2543 : |
2538 else | 2544 else |
2539 echo "configure: failed program was:" >&5 | 2545 echo "configure: failed program was:" >&5 |
2540 cat conftest.$ac_ext >&5 | 2546 cat conftest.$ac_ext >&5 |
2541 rm -rf conftest* | 2547 rm -rf conftest* |
2542 cat > conftest.$ac_ext <<EOF | 2548 cat > conftest.$ac_ext <<EOF |
2543 #line 2544 "configure" | 2549 #line 2550 "configure" |
2544 #include "confdefs.h" | 2550 #include "confdefs.h" |
2545 #define _LARGEFILE_SOURCE 1 | 2551 #define _LARGEFILE_SOURCE 1 |
2546 #include <sys/types.h> | 2552 #include <sys/types.h> |
2547 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 2553 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
2548 | 2554 |
2550 | 2556 |
2551 int main() { | 2557 int main() { |
2552 return !ftello; | 2558 return !ftello; |
2553 ; return 0; } | 2559 ; return 0; } |
2554 EOF | 2560 EOF |
2555 if { (eval echo configure:2556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2561 if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2556 rm -rf conftest* | 2562 rm -rf conftest* |
2557 ac_cv_sys_largefile_source=1 | 2563 ac_cv_sys_largefile_source=1 |
2558 else | 2564 else |
2559 echo "configure: failed program was:" >&5 | 2565 echo "configure: failed program was:" >&5 |
2560 cat conftest.$ac_ext >&5 | 2566 cat conftest.$ac_ext >&5 |
2570 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | 2576 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
2571 EOF | 2577 EOF |
2572 | 2578 |
2573 fi | 2579 fi |
2574 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | 2580 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 |
2575 echo "configure:2576: checking for _LARGE_FILES value needed for large files" >&5 | 2581 echo "configure:2582: checking for _LARGE_FILES value needed for large files" >&5 |
2576 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | 2582 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
2577 echo $ac_n "(cached) $ac_c" 1>&6 | 2583 echo $ac_n "(cached) $ac_c" 1>&6 |
2578 else | 2584 else |
2579 ac_cv_sys_large_files=no | 2585 ac_cv_sys_large_files=no |
2580 cat > conftest.$ac_ext <<EOF | 2586 cat > conftest.$ac_ext <<EOF |
2581 #line 2582 "configure" | 2587 #line 2588 "configure" |
2582 #include "confdefs.h" | 2588 #include "confdefs.h" |
2583 #include <sys/types.h> | 2589 #include <sys/types.h> |
2584 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 2590 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
2585 | 2591 |
2586 | 2592 |
2587 | 2593 |
2588 int main() { | 2594 int main() { |
2589 | 2595 |
2590 ; return 0; } | 2596 ; return 0; } |
2591 EOF | 2597 EOF |
2592 if { (eval echo configure:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2598 if { (eval echo configure:2599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2593 : | 2599 : |
2594 else | 2600 else |
2595 echo "configure: failed program was:" >&5 | 2601 echo "configure: failed program was:" >&5 |
2596 cat conftest.$ac_ext >&5 | 2602 cat conftest.$ac_ext >&5 |
2597 rm -rf conftest* | 2603 rm -rf conftest* |
2598 cat > conftest.$ac_ext <<EOF | 2604 cat > conftest.$ac_ext <<EOF |
2599 #line 2600 "configure" | 2605 #line 2606 "configure" |
2600 #include "confdefs.h" | 2606 #include "confdefs.h" |
2601 #define _LARGE_FILES 1 | 2607 #define _LARGE_FILES 1 |
2602 #include <sys/types.h> | 2608 #include <sys/types.h> |
2603 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 2609 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
2604 | 2610 |
2606 | 2612 |
2607 int main() { | 2613 int main() { |
2608 | 2614 |
2609 ; return 0; } | 2615 ; return 0; } |
2610 EOF | 2616 EOF |
2611 if { (eval echo configure:2612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2617 if { (eval echo configure:2618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2612 rm -rf conftest* | 2618 rm -rf conftest* |
2613 ac_cv_sys_large_files=1 | 2619 ac_cv_sys_large_files=1 |
2614 else | 2620 else |
2615 echo "configure: failed program was:" >&5 | 2621 echo "configure: failed program was:" >&5 |
2616 cat conftest.$ac_ext >&5 | 2622 cat conftest.$ac_ext >&5 |
2626 #define _LARGE_FILES $ac_cv_sys_large_files | 2632 #define _LARGE_FILES $ac_cv_sys_large_files |
2627 EOF | 2633 EOF |
2628 | 2634 |
2629 fi | 2635 fi |
2630 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 | 2636 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 |
2631 echo "configure:2632: checking for _XOPEN_SOURCE value needed for large files" >&5 | 2637 echo "configure:2638: checking for _XOPEN_SOURCE value needed for large files" >&5 |
2632 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then | 2638 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then |
2633 echo $ac_n "(cached) $ac_c" 1>&6 | 2639 echo $ac_n "(cached) $ac_c" 1>&6 |
2634 else | 2640 else |
2635 ac_cv_sys_xopen_source=no | 2641 ac_cv_sys_xopen_source=no |
2636 cat > conftest.$ac_ext <<EOF | 2642 cat > conftest.$ac_ext <<EOF |
2637 #line 2638 "configure" | 2643 #line 2644 "configure" |
2638 #include "confdefs.h" | 2644 #include "confdefs.h" |
2639 #include <sys/types.h> | 2645 #include <sys/types.h> |
2640 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 2646 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
2641 | 2647 |
2642 #include <stdio.h> | 2648 #include <stdio.h> |
2643 | 2649 |
2644 int main() { | 2650 int main() { |
2645 return !ftello; | 2651 return !ftello; |
2646 ; return 0; } | 2652 ; return 0; } |
2647 EOF | 2653 EOF |
2648 if { (eval echo configure:2649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2654 if { (eval echo configure:2655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2649 : | 2655 : |
2650 else | 2656 else |
2651 echo "configure: failed program was:" >&5 | 2657 echo "configure: failed program was:" >&5 |
2652 cat conftest.$ac_ext >&5 | 2658 cat conftest.$ac_ext >&5 |
2653 rm -rf conftest* | 2659 rm -rf conftest* |
2654 cat > conftest.$ac_ext <<EOF | 2660 cat > conftest.$ac_ext <<EOF |
2655 #line 2656 "configure" | 2661 #line 2662 "configure" |
2656 #include "confdefs.h" | 2662 #include "confdefs.h" |
2657 #define _XOPEN_SOURCE 500 | 2663 #define _XOPEN_SOURCE 500 |
2658 #include <sys/types.h> | 2664 #include <sys/types.h> |
2659 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 2665 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
2660 | 2666 |
2662 | 2668 |
2663 int main() { | 2669 int main() { |
2664 return !ftello; | 2670 return !ftello; |
2665 ; return 0; } | 2671 ; return 0; } |
2666 EOF | 2672 EOF |
2667 if { (eval echo configure:2668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2673 if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2668 rm -rf conftest* | 2674 rm -rf conftest* |
2669 ac_cv_sys_xopen_source=500 | 2675 ac_cv_sys_xopen_source=500 |
2670 else | 2676 else |
2671 echo "configure: failed program was:" >&5 | 2677 echo "configure: failed program was:" >&5 |
2672 cat conftest.$ac_ext >&5 | 2678 cat conftest.$ac_ext >&5 |
2689 # Sound support for GNU/Linux and the free BSDs. | 2695 # Sound support for GNU/Linux and the free BSDs. |
2690 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h | 2696 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h |
2691 do | 2697 do |
2692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2694 echo "configure:2695: checking for $ac_hdr" >&5 | 2700 echo "configure:2701: checking for $ac_hdr" >&5 |
2695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2696 echo $ac_n "(cached) $ac_c" 1>&6 | 2702 echo $ac_n "(cached) $ac_c" 1>&6 |
2697 else | 2703 else |
2698 cat > conftest.$ac_ext <<EOF | 2704 cat > conftest.$ac_ext <<EOF |
2699 #line 2700 "configure" | 2705 #line 2706 "configure" |
2700 #include "confdefs.h" | 2706 #include "confdefs.h" |
2701 #include <$ac_hdr> | 2707 #include <$ac_hdr> |
2702 EOF | 2708 EOF |
2703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2704 { (eval echo configure:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2710 { (eval echo configure:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2706 if test -z "$ac_err"; then | 2712 if test -z "$ac_err"; then |
2707 rm -rf conftest* | 2713 rm -rf conftest* |
2708 eval "ac_cv_header_$ac_safe=yes" | 2714 eval "ac_cv_header_$ac_safe=yes" |
2709 else | 2715 else |
2727 fi | 2733 fi |
2728 done | 2734 done |
2729 | 2735 |
2730 # Emulation library used on NetBSD. | 2736 # Emulation library used on NetBSD. |
2731 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 | 2737 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 |
2732 echo "configure:2733: checking for _oss_ioctl in -lossaudio" >&5 | 2738 echo "configure:2739: checking for _oss_ioctl in -lossaudio" >&5 |
2733 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` | 2739 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` |
2734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 2740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2735 echo $ac_n "(cached) $ac_c" 1>&6 | 2741 echo $ac_n "(cached) $ac_c" 1>&6 |
2736 else | 2742 else |
2737 ac_save_LIBS="$LIBS" | 2743 ac_save_LIBS="$LIBS" |
2738 LIBS="-lossaudio $LIBS" | 2744 LIBS="-lossaudio $LIBS" |
2739 cat > conftest.$ac_ext <<EOF | 2745 cat > conftest.$ac_ext <<EOF |
2740 #line 2741 "configure" | 2746 #line 2747 "configure" |
2741 #include "confdefs.h" | 2747 #include "confdefs.h" |
2742 /* Override any gcc2 internal prototype to avoid an error. */ | 2748 /* Override any gcc2 internal prototype to avoid an error. */ |
2743 /* We use char because int might match the return type of a gcc2 | 2749 /* We use char because int might match the return type of a gcc2 |
2744 builtin and then its argument prototype would still apply. */ | 2750 builtin and then its argument prototype would still apply. */ |
2745 char _oss_ioctl(); | 2751 char _oss_ioctl(); |
2746 | 2752 |
2747 int main() { | 2753 int main() { |
2748 _oss_ioctl() | 2754 _oss_ioctl() |
2749 ; return 0; } | 2755 ; return 0; } |
2750 EOF | 2756 EOF |
2751 if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2757 if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2752 rm -rf conftest* | 2758 rm -rf conftest* |
2753 eval "ac_cv_lib_$ac_lib_var=yes" | 2759 eval "ac_cv_lib_$ac_lib_var=yes" |
2754 else | 2760 else |
2755 echo "configure: failed program was:" >&5 | 2761 echo "configure: failed program was:" >&5 |
2756 cat conftest.$ac_ext >&5 | 2762 cat conftest.$ac_ext >&5 |
2775 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 2781 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
2776 termcap.h stdio_ext.h fcntl.h term.h strings.h | 2782 termcap.h stdio_ext.h fcntl.h term.h strings.h |
2777 do | 2783 do |
2778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2780 echo "configure:2781: checking for $ac_hdr" >&5 | 2786 echo "configure:2787: checking for $ac_hdr" >&5 |
2781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2782 echo $ac_n "(cached) $ac_c" 1>&6 | 2788 echo $ac_n "(cached) $ac_c" 1>&6 |
2783 else | 2789 else |
2784 cat > conftest.$ac_ext <<EOF | 2790 cat > conftest.$ac_ext <<EOF |
2785 #line 2786 "configure" | 2791 #line 2792 "configure" |
2786 #include "confdefs.h" | 2792 #include "confdefs.h" |
2787 #include <$ac_hdr> | 2793 #include <$ac_hdr> |
2788 EOF | 2794 EOF |
2789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2790 { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2796 { (eval echo configure:2797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2792 if test -z "$ac_err"; then | 2798 if test -z "$ac_err"; then |
2793 rm -rf conftest* | 2799 rm -rf conftest* |
2794 eval "ac_cv_header_$ac_safe=yes" | 2800 eval "ac_cv_header_$ac_safe=yes" |
2795 else | 2801 else |
2812 echo "$ac_t""no" 1>&6 | 2818 echo "$ac_t""no" 1>&6 |
2813 fi | 2819 fi |
2814 done | 2820 done |
2815 | 2821 |
2816 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 2822 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
2817 echo "configure:2818: checking for ANSI C header files" >&5 | 2823 echo "configure:2824: checking for ANSI C header files" >&5 |
2818 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 2824 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2819 echo $ac_n "(cached) $ac_c" 1>&6 | 2825 echo $ac_n "(cached) $ac_c" 1>&6 |
2820 else | 2826 else |
2821 cat > conftest.$ac_ext <<EOF | 2827 cat > conftest.$ac_ext <<EOF |
2822 #line 2823 "configure" | 2828 #line 2829 "configure" |
2823 #include "confdefs.h" | 2829 #include "confdefs.h" |
2824 #include <stdlib.h> | 2830 #include <stdlib.h> |
2825 #include <stdarg.h> | 2831 #include <stdarg.h> |
2826 #include <string.h> | 2832 #include <string.h> |
2827 #include <float.h> | 2833 #include <float.h> |
2828 EOF | 2834 EOF |
2829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2830 { (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2836 { (eval echo configure:2837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2832 if test -z "$ac_err"; then | 2838 if test -z "$ac_err"; then |
2833 rm -rf conftest* | 2839 rm -rf conftest* |
2834 ac_cv_header_stdc=yes | 2840 ac_cv_header_stdc=yes |
2835 else | 2841 else |
2842 rm -f conftest* | 2848 rm -f conftest* |
2843 | 2849 |
2844 if test $ac_cv_header_stdc = yes; then | 2850 if test $ac_cv_header_stdc = yes; then |
2845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 2851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
2846 cat > conftest.$ac_ext <<EOF | 2852 cat > conftest.$ac_ext <<EOF |
2847 #line 2848 "configure" | 2853 #line 2854 "configure" |
2848 #include "confdefs.h" | 2854 #include "confdefs.h" |
2849 #include <string.h> | 2855 #include <string.h> |
2850 EOF | 2856 EOF |
2851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2852 egrep "memchr" >/dev/null 2>&1; then | 2858 egrep "memchr" >/dev/null 2>&1; then |
2860 fi | 2866 fi |
2861 | 2867 |
2862 if test $ac_cv_header_stdc = yes; then | 2868 if test $ac_cv_header_stdc = yes; then |
2863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 2869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
2864 cat > conftest.$ac_ext <<EOF | 2870 cat > conftest.$ac_ext <<EOF |
2865 #line 2866 "configure" | 2871 #line 2872 "configure" |
2866 #include "confdefs.h" | 2872 #include "confdefs.h" |
2867 #include <stdlib.h> | 2873 #include <stdlib.h> |
2868 EOF | 2874 EOF |
2869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2870 egrep "free" >/dev/null 2>&1; then | 2876 egrep "free" >/dev/null 2>&1; then |
2881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 2887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
2882 if test "$cross_compiling" = yes; then | 2888 if test "$cross_compiling" = yes; then |
2883 : | 2889 : |
2884 else | 2890 else |
2885 cat > conftest.$ac_ext <<EOF | 2891 cat > conftest.$ac_ext <<EOF |
2886 #line 2887 "configure" | 2892 #line 2893 "configure" |
2887 #include "confdefs.h" | 2893 #include "confdefs.h" |
2888 #include <ctype.h> | 2894 #include <ctype.h> |
2889 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 2895 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2890 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 2896 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2891 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 2897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2892 int main () { int i; for (i = 0; i < 256; i++) | 2898 int main () { int i; for (i = 0; i < 256; i++) |
2893 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 2899 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
2894 exit (0); } | 2900 exit (0); } |
2895 | 2901 |
2896 EOF | 2902 EOF |
2897 if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 2903 if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2898 then | 2904 then |
2899 : | 2905 : |
2900 else | 2906 else |
2901 echo "configure: failed program was:" >&5 | 2907 echo "configure: failed program was:" >&5 |
2902 cat conftest.$ac_ext >&5 | 2908 cat conftest.$ac_ext >&5 |
2916 EOF | 2922 EOF |
2917 | 2923 |
2918 fi | 2924 fi |
2919 | 2925 |
2920 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 2926 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
2921 echo "configure:2922: checking whether time.h and sys/time.h may both be included" >&5 | 2927 echo "configure:2928: checking whether time.h and sys/time.h may both be included" >&5 |
2922 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 2928 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2923 echo $ac_n "(cached) $ac_c" 1>&6 | 2929 echo $ac_n "(cached) $ac_c" 1>&6 |
2924 else | 2930 else |
2925 cat > conftest.$ac_ext <<EOF | 2931 cat > conftest.$ac_ext <<EOF |
2926 #line 2927 "configure" | 2932 #line 2933 "configure" |
2927 #include "confdefs.h" | 2933 #include "confdefs.h" |
2928 #include <sys/types.h> | 2934 #include <sys/types.h> |
2929 #include <sys/time.h> | 2935 #include <sys/time.h> |
2930 #include <time.h> | 2936 #include <time.h> |
2931 int main() { | 2937 int main() { |
2932 struct tm *tp; | 2938 struct tm *tp; |
2933 ; return 0; } | 2939 ; return 0; } |
2934 EOF | 2940 EOF |
2935 if { (eval echo configure:2936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2941 if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2936 rm -rf conftest* | 2942 rm -rf conftest* |
2937 ac_cv_header_time=yes | 2943 ac_cv_header_time=yes |
2938 else | 2944 else |
2939 echo "configure: failed program was:" >&5 | 2945 echo "configure: failed program was:" >&5 |
2940 cat conftest.$ac_ext >&5 | 2946 cat conftest.$ac_ext >&5 |
2951 EOF | 2957 EOF |
2952 | 2958 |
2953 fi | 2959 fi |
2954 | 2960 |
2955 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | 2961 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 |
2956 echo "configure:2957: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | 2962 echo "configure:2963: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
2957 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then | 2963 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2958 echo $ac_n "(cached) $ac_c" 1>&6 | 2964 echo $ac_n "(cached) $ac_c" 1>&6 |
2959 else | 2965 else |
2960 cat > conftest.$ac_ext <<EOF | 2966 cat > conftest.$ac_ext <<EOF |
2961 #line 2962 "configure" | 2967 #line 2968 "configure" |
2962 #include "confdefs.h" | 2968 #include "confdefs.h" |
2963 #include <sys/types.h> | 2969 #include <sys/types.h> |
2964 #include <signal.h> | 2970 #include <signal.h> |
2965 /* NetBSD declares sys_siglist in unistd.h. */ | 2971 /* NetBSD declares sys_siglist in unistd.h. */ |
2966 #ifdef HAVE_UNISTD_H | 2972 #ifdef HAVE_UNISTD_H |
2968 #endif | 2974 #endif |
2969 int main() { | 2975 int main() { |
2970 char *msg = *(sys_siglist + 1); | 2976 char *msg = *(sys_siglist + 1); |
2971 ; return 0; } | 2977 ; return 0; } |
2972 EOF | 2978 EOF |
2973 if { (eval echo configure:2974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2979 if { (eval echo configure:2980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2974 rm -rf conftest* | 2980 rm -rf conftest* |
2975 ac_cv_decl_sys_siglist=yes | 2981 ac_cv_decl_sys_siglist=yes |
2976 else | 2982 else |
2977 echo "configure: failed program was:" >&5 | 2983 echo "configure: failed program was:" >&5 |
2978 cat conftest.$ac_ext >&5 | 2984 cat conftest.$ac_ext >&5 |
2989 EOF | 2995 EOF |
2990 | 2996 |
2991 fi | 2997 fi |
2992 | 2998 |
2993 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | 2999 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
2994 echo "configure:2995: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 3000 echo "configure:3001: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
2995 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then | 3001 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
2996 echo $ac_n "(cached) $ac_c" 1>&6 | 3002 echo $ac_n "(cached) $ac_c" 1>&6 |
2997 else | 3003 else |
2998 cat > conftest.$ac_ext <<EOF | 3004 cat > conftest.$ac_ext <<EOF |
2999 #line 3000 "configure" | 3005 #line 3006 "configure" |
3000 #include "confdefs.h" | 3006 #include "confdefs.h" |
3001 #include <sys/types.h> | 3007 #include <sys/types.h> |
3002 #include <sys/wait.h> | 3008 #include <sys/wait.h> |
3003 #ifndef WEXITSTATUS | 3009 #ifndef WEXITSTATUS |
3004 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 3010 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
3010 int s; | 3016 int s; |
3011 wait (&s); | 3017 wait (&s); |
3012 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 3018 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
3013 ; return 0; } | 3019 ; return 0; } |
3014 EOF | 3020 EOF |
3015 if { (eval echo configure:3016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3021 if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3016 rm -rf conftest* | 3022 rm -rf conftest* |
3017 ac_cv_header_sys_wait_h=yes | 3023 ac_cv_header_sys_wait_h=yes |
3018 else | 3024 else |
3019 echo "configure: failed program was:" >&5 | 3025 echo "configure: failed program was:" >&5 |
3020 cat conftest.$ac_ext >&5 | 3026 cat conftest.$ac_ext >&5 |
3032 | 3038 |
3033 fi | 3039 fi |
3034 | 3040 |
3035 | 3041 |
3036 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | 3042 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 |
3037 echo "configure:3038: checking for struct utimbuf" >&5 | 3043 echo "configure:3044: checking for struct utimbuf" >&5 |
3038 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then | 3044 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then |
3039 echo $ac_n "(cached) $ac_c" 1>&6 | 3045 echo $ac_n "(cached) $ac_c" 1>&6 |
3040 else | 3046 else |
3041 cat > conftest.$ac_ext <<EOF | 3047 cat > conftest.$ac_ext <<EOF |
3042 #line 3043 "configure" | 3048 #line 3049 "configure" |
3043 #include "confdefs.h" | 3049 #include "confdefs.h" |
3044 #ifdef TIME_WITH_SYS_TIME | 3050 #ifdef TIME_WITH_SYS_TIME |
3045 #include <sys/time.h> | 3051 #include <sys/time.h> |
3046 #include <time.h> | 3052 #include <time.h> |
3047 #else | 3053 #else |
3056 #endif | 3062 #endif |
3057 int main() { | 3063 int main() { |
3058 static struct utimbuf x; x.actime = x.modtime; | 3064 static struct utimbuf x; x.actime = x.modtime; |
3059 ; return 0; } | 3065 ; return 0; } |
3060 EOF | 3066 EOF |
3061 if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3067 if { (eval echo configure:3068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3062 rm -rf conftest* | 3068 rm -rf conftest* |
3063 emacs_cv_struct_utimbuf=yes | 3069 emacs_cv_struct_utimbuf=yes |
3064 else | 3070 else |
3065 echo "configure: failed program was:" >&5 | 3071 echo "configure: failed program was:" >&5 |
3066 cat conftest.$ac_ext >&5 | 3072 cat conftest.$ac_ext >&5 |
3077 EOF | 3083 EOF |
3078 | 3084 |
3079 fi | 3085 fi |
3080 | 3086 |
3081 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 3087 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
3082 echo "configure:3083: checking return type of signal handlers" >&5 | 3088 echo "configure:3089: checking return type of signal handlers" >&5 |
3083 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 3089 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
3084 echo $ac_n "(cached) $ac_c" 1>&6 | 3090 echo $ac_n "(cached) $ac_c" 1>&6 |
3085 else | 3091 else |
3086 cat > conftest.$ac_ext <<EOF | 3092 cat > conftest.$ac_ext <<EOF |
3087 #line 3088 "configure" | 3093 #line 3094 "configure" |
3088 #include "confdefs.h" | 3094 #include "confdefs.h" |
3089 #include <sys/types.h> | 3095 #include <sys/types.h> |
3090 #include <signal.h> | 3096 #include <signal.h> |
3091 #ifdef signal | 3097 #ifdef signal |
3092 #undef signal | 3098 #undef signal |
3099 | 3105 |
3100 int main() { | 3106 int main() { |
3101 int i; | 3107 int i; |
3102 ; return 0; } | 3108 ; return 0; } |
3103 EOF | 3109 EOF |
3104 if { (eval echo configure:3105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3110 if { (eval echo configure:3111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3105 rm -rf conftest* | 3111 rm -rf conftest* |
3106 ac_cv_type_signal=void | 3112 ac_cv_type_signal=void |
3107 else | 3113 else |
3108 echo "configure: failed program was:" >&5 | 3114 echo "configure: failed program was:" >&5 |
3109 cat conftest.$ac_ext >&5 | 3115 cat conftest.$ac_ext >&5 |
3119 EOF | 3125 EOF |
3120 | 3126 |
3121 | 3127 |
3122 | 3128 |
3123 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 | 3129 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 |
3124 echo "configure:3125: checking for speed_t" >&5 | 3130 echo "configure:3131: checking for speed_t" >&5 |
3125 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then | 3131 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then |
3126 echo $ac_n "(cached) $ac_c" 1>&6 | 3132 echo $ac_n "(cached) $ac_c" 1>&6 |
3127 else | 3133 else |
3128 cat > conftest.$ac_ext <<EOF | 3134 cat > conftest.$ac_ext <<EOF |
3129 #line 3130 "configure" | 3135 #line 3136 "configure" |
3130 #include "confdefs.h" | 3136 #include "confdefs.h" |
3131 #include <termios.h> | 3137 #include <termios.h> |
3132 int main() { | 3138 int main() { |
3133 speed_t x = 1; | 3139 speed_t x = 1; |
3134 ; return 0; } | 3140 ; return 0; } |
3135 EOF | 3141 EOF |
3136 if { (eval echo configure:3137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3142 if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3137 rm -rf conftest* | 3143 rm -rf conftest* |
3138 emacs_cv_speed_t=yes | 3144 emacs_cv_speed_t=yes |
3139 else | 3145 else |
3140 echo "configure: failed program was:" >&5 | 3146 echo "configure: failed program was:" >&5 |
3141 cat conftest.$ac_ext >&5 | 3147 cat conftest.$ac_ext >&5 |
3150 EOF | 3156 EOF |
3151 | 3157 |
3152 fi | 3158 fi |
3153 | 3159 |
3154 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | 3160 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
3155 echo "configure:3156: checking for struct timeval" >&5 | 3161 echo "configure:3162: checking for struct timeval" >&5 |
3156 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then | 3162 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then |
3157 echo $ac_n "(cached) $ac_c" 1>&6 | 3163 echo $ac_n "(cached) $ac_c" 1>&6 |
3158 else | 3164 else |
3159 cat > conftest.$ac_ext <<EOF | 3165 cat > conftest.$ac_ext <<EOF |
3160 #line 3161 "configure" | 3166 #line 3167 "configure" |
3161 #include "confdefs.h" | 3167 #include "confdefs.h" |
3162 #ifdef TIME_WITH_SYS_TIME | 3168 #ifdef TIME_WITH_SYS_TIME |
3163 #include <sys/time.h> | 3169 #include <sys/time.h> |
3164 #include <time.h> | 3170 #include <time.h> |
3165 #else | 3171 #else |
3171 #endif | 3177 #endif |
3172 int main() { | 3178 int main() { |
3173 static struct timeval x; x.tv_sec = x.tv_usec; | 3179 static struct timeval x; x.tv_sec = x.tv_usec; |
3174 ; return 0; } | 3180 ; return 0; } |
3175 EOF | 3181 EOF |
3176 if { (eval echo configure:3177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3182 if { (eval echo configure:3183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3177 rm -rf conftest* | 3183 rm -rf conftest* |
3178 emacs_cv_struct_timeval=yes | 3184 emacs_cv_struct_timeval=yes |
3179 else | 3185 else |
3180 echo "configure: failed program was:" >&5 | 3186 echo "configure: failed program was:" >&5 |
3181 cat conftest.$ac_ext >&5 | 3187 cat conftest.$ac_ext >&5 |
3193 EOF | 3199 EOF |
3194 | 3200 |
3195 fi | 3201 fi |
3196 | 3202 |
3197 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 | 3203 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 |
3198 echo "configure:3199: checking for struct exception" >&5 | 3204 echo "configure:3205: checking for struct exception" >&5 |
3199 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then | 3205 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then |
3200 echo $ac_n "(cached) $ac_c" 1>&6 | 3206 echo $ac_n "(cached) $ac_c" 1>&6 |
3201 else | 3207 else |
3202 cat > conftest.$ac_ext <<EOF | 3208 cat > conftest.$ac_ext <<EOF |
3203 #line 3204 "configure" | 3209 #line 3210 "configure" |
3204 #include "confdefs.h" | 3210 #include "confdefs.h" |
3205 #include <math.h> | 3211 #include <math.h> |
3206 int main() { | 3212 int main() { |
3207 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | 3213 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
3208 ; return 0; } | 3214 ; return 0; } |
3209 EOF | 3215 EOF |
3210 if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3216 if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3211 rm -rf conftest* | 3217 rm -rf conftest* |
3212 emacs_cv_struct_exception=yes | 3218 emacs_cv_struct_exception=yes |
3213 else | 3219 else |
3214 echo "configure: failed program was:" >&5 | 3220 echo "configure: failed program was:" >&5 |
3215 cat conftest.$ac_ext >&5 | 3221 cat conftest.$ac_ext >&5 |
3227 EOF | 3233 EOF |
3228 | 3234 |
3229 fi | 3235 fi |
3230 | 3236 |
3231 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 3237 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
3232 echo "configure:3233: checking whether struct tm is in sys/time.h or time.h" >&5 | 3238 echo "configure:3239: checking whether struct tm is in sys/time.h or time.h" >&5 |
3233 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 3239 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
3234 echo $ac_n "(cached) $ac_c" 1>&6 | 3240 echo $ac_n "(cached) $ac_c" 1>&6 |
3235 else | 3241 else |
3236 cat > conftest.$ac_ext <<EOF | 3242 cat > conftest.$ac_ext <<EOF |
3237 #line 3238 "configure" | 3243 #line 3244 "configure" |
3238 #include "confdefs.h" | 3244 #include "confdefs.h" |
3239 #include <sys/types.h> | 3245 #include <sys/types.h> |
3240 #include <time.h> | 3246 #include <time.h> |
3241 int main() { | 3247 int main() { |
3242 struct tm *tp; tp->tm_sec; | 3248 struct tm *tp; tp->tm_sec; |
3243 ; return 0; } | 3249 ; return 0; } |
3244 EOF | 3250 EOF |
3245 if { (eval echo configure:3246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3251 if { (eval echo configure:3252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3246 rm -rf conftest* | 3252 rm -rf conftest* |
3247 ac_cv_struct_tm=time.h | 3253 ac_cv_struct_tm=time.h |
3248 else | 3254 else |
3249 echo "configure: failed program was:" >&5 | 3255 echo "configure: failed program was:" >&5 |
3250 cat conftest.$ac_ext >&5 | 3256 cat conftest.$ac_ext >&5 |
3261 EOF | 3267 EOF |
3262 | 3268 |
3263 fi | 3269 fi |
3264 | 3270 |
3265 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 3271 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
3266 echo "configure:3267: checking for tm_zone in struct tm" >&5 | 3272 echo "configure:3273: checking for tm_zone in struct tm" >&5 |
3267 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then | 3273 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
3268 echo $ac_n "(cached) $ac_c" 1>&6 | 3274 echo $ac_n "(cached) $ac_c" 1>&6 |
3269 else | 3275 else |
3270 cat > conftest.$ac_ext <<EOF | 3276 cat > conftest.$ac_ext <<EOF |
3271 #line 3272 "configure" | 3277 #line 3278 "configure" |
3272 #include "confdefs.h" | 3278 #include "confdefs.h" |
3273 #include <sys/types.h> | 3279 #include <sys/types.h> |
3274 #include <$ac_cv_struct_tm> | 3280 #include <$ac_cv_struct_tm> |
3275 int main() { | 3281 int main() { |
3276 struct tm tm; tm.tm_zone; | 3282 struct tm tm; tm.tm_zone; |
3277 ; return 0; } | 3283 ; return 0; } |
3278 EOF | 3284 EOF |
3279 if { (eval echo configure:3280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3285 if { (eval echo configure:3286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3280 rm -rf conftest* | 3286 rm -rf conftest* |
3281 ac_cv_struct_tm_zone=yes | 3287 ac_cv_struct_tm_zone=yes |
3282 else | 3288 else |
3283 echo "configure: failed program was:" >&5 | 3289 echo "configure: failed program was:" >&5 |
3284 cat conftest.$ac_ext >&5 | 3290 cat conftest.$ac_ext >&5 |
3294 #define HAVE_TM_ZONE 1 | 3300 #define HAVE_TM_ZONE 1 |
3295 EOF | 3301 EOF |
3296 | 3302 |
3297 else | 3303 else |
3298 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 3304 echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
3299 echo "configure:3300: checking for tzname" >&5 | 3305 echo "configure:3306: checking for tzname" >&5 |
3300 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then | 3306 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
3301 echo $ac_n "(cached) $ac_c" 1>&6 | 3307 echo $ac_n "(cached) $ac_c" 1>&6 |
3302 else | 3308 else |
3303 cat > conftest.$ac_ext <<EOF | 3309 cat > conftest.$ac_ext <<EOF |
3304 #line 3305 "configure" | 3310 #line 3311 "configure" |
3305 #include "confdefs.h" | 3311 #include "confdefs.h" |
3306 #include <time.h> | 3312 #include <time.h> |
3307 #ifndef tzname /* For SGI. */ | 3313 #ifndef tzname /* For SGI. */ |
3308 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | 3314 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
3309 #endif | 3315 #endif |
3310 int main() { | 3316 int main() { |
3311 atoi(*tzname); | 3317 atoi(*tzname); |
3312 ; return 0; } | 3318 ; return 0; } |
3313 EOF | 3319 EOF |
3314 if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3315 rm -rf conftest* | 3321 rm -rf conftest* |
3316 ac_cv_var_tzname=yes | 3322 ac_cv_var_tzname=yes |
3317 else | 3323 else |
3318 echo "configure: failed program was:" >&5 | 3324 echo "configure: failed program was:" >&5 |
3319 cat conftest.$ac_ext >&5 | 3325 cat conftest.$ac_ext >&5 |
3331 | 3337 |
3332 fi | 3338 fi |
3333 fi | 3339 fi |
3334 | 3340 |
3335 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | 3341 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
3336 echo "configure:3337: checking for tm_gmtoff in struct tm" >&5 | 3342 echo "configure:3343: checking for tm_gmtoff in struct tm" >&5 |
3337 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then | 3343 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then |
3338 echo $ac_n "(cached) $ac_c" 1>&6 | 3344 echo $ac_n "(cached) $ac_c" 1>&6 |
3339 else | 3345 else |
3340 cat > conftest.$ac_ext <<EOF | 3346 cat > conftest.$ac_ext <<EOF |
3341 #line 3342 "configure" | 3347 #line 3348 "configure" |
3342 #include "confdefs.h" | 3348 #include "confdefs.h" |
3343 #include <time.h> | 3349 #include <time.h> |
3344 int main() { | 3350 int main() { |
3345 struct tm t; t.tm_gmtoff = 0 | 3351 struct tm t; t.tm_gmtoff = 0 |
3346 ; return 0; } | 3352 ; return 0; } |
3347 EOF | 3353 EOF |
3348 if { (eval echo configure:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3349 rm -rf conftest* | 3355 rm -rf conftest* |
3350 emacs_cv_tm_gmtoff=yes | 3356 emacs_cv_tm_gmtoff=yes |
3351 else | 3357 else |
3352 echo "configure: failed program was:" >&5 | 3358 echo "configure: failed program was:" >&5 |
3353 cat conftest.$ac_ext >&5 | 3359 cat conftest.$ac_ext >&5 |
3365 | 3371 |
3366 fi | 3372 fi |
3367 | 3373 |
3368 | 3374 |
3369 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 | 3375 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 |
3370 echo "configure:3371: checking for ${CC-cc} option to accept ANSI C" >&5 | 3376 echo "configure:3377: checking for ${CC-cc} option to accept ANSI C" >&5 |
3371 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then | 3377 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then |
3372 echo $ac_n "(cached) $ac_c" 1>&6 | 3378 echo $ac_n "(cached) $ac_c" 1>&6 |
3373 else | 3379 else |
3374 ac_cv_prog_cc_stdc=no | 3380 ac_cv_prog_cc_stdc=no |
3375 ac_save_CC="$CC" | 3381 ac_save_CC="$CC" |
3382 # SVR4 -Xc -D__EXTENSIONS__ | 3388 # SVR4 -Xc -D__EXTENSIONS__ |
3383 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 3389 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3384 do | 3390 do |
3385 CC="$ac_save_CC $ac_arg" | 3391 CC="$ac_save_CC $ac_arg" |
3386 cat > conftest.$ac_ext <<EOF | 3392 cat > conftest.$ac_ext <<EOF |
3387 #line 3388 "configure" | 3393 #line 3394 "configure" |
3388 #include "confdefs.h" | 3394 #include "confdefs.h" |
3389 #include <stdarg.h> | 3395 #include <stdarg.h> |
3390 #include <stdio.h> | 3396 #include <stdio.h> |
3391 #include <sys/types.h> | 3397 #include <sys/types.h> |
3392 #include <sys/stat.h> | 3398 #include <sys/stat.h> |
3416 char **argv; | 3422 char **argv; |
3417 int main() { | 3423 int main() { |
3418 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | 3424 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3419 ; return 0; } | 3425 ; return 0; } |
3420 EOF | 3426 EOF |
3421 if { (eval echo configure:3422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3427 if { (eval echo configure:3428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3422 rm -rf conftest* | 3428 rm -rf conftest* |
3423 ac_cv_prog_cc_stdc="$ac_arg"; break | 3429 ac_cv_prog_cc_stdc="$ac_arg"; break |
3424 else | 3430 else |
3425 echo "configure: failed program was:" >&5 | 3431 echo "configure: failed program was:" >&5 |
3426 cat conftest.$ac_ext >&5 | 3432 cat conftest.$ac_ext >&5 |
3438 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 | 3444 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 |
3439 CC="$CC $ac_cv_prog_cc_stdc" ;; | 3445 CC="$CC $ac_cv_prog_cc_stdc" ;; |
3440 esac | 3446 esac |
3441 | 3447 |
3442 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 | 3448 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 |
3443 echo "configure:3444: checking for function prototypes" >&5 | 3449 echo "configure:3450: checking for function prototypes" >&5 |
3444 if test "$ac_cv_prog_cc_stdc" != no; then | 3450 if test "$ac_cv_prog_cc_stdc" != no; then |
3445 echo "$ac_t""yes" 1>&6 | 3451 echo "$ac_t""yes" 1>&6 |
3446 cat >> confdefs.h <<\EOF | 3452 cat >> confdefs.h <<\EOF |
3447 #define PROTOTYPES 1 | 3453 #define PROTOTYPES 1 |
3448 EOF | 3454 EOF |
3450 else | 3456 else |
3451 echo "$ac_t""no" 1>&6 | 3457 echo "$ac_t""no" 1>&6 |
3452 fi | 3458 fi |
3453 | 3459 |
3454 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | 3460 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
3455 echo "configure:3456: checking for working volatile" >&5 | 3461 echo "configure:3462: checking for working volatile" >&5 |
3456 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then | 3462 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then |
3457 echo $ac_n "(cached) $ac_c" 1>&6 | 3463 echo $ac_n "(cached) $ac_c" 1>&6 |
3458 else | 3464 else |
3459 cat > conftest.$ac_ext <<EOF | 3465 cat > conftest.$ac_ext <<EOF |
3460 #line 3461 "configure" | 3466 #line 3467 "configure" |
3461 #include "confdefs.h" | 3467 #include "confdefs.h" |
3462 | 3468 |
3463 int main() { | 3469 int main() { |
3464 | 3470 |
3465 volatile int x; | 3471 volatile int x; |
3466 int * volatile y; | 3472 int * volatile y; |
3467 ; return 0; } | 3473 ; return 0; } |
3468 EOF | 3474 EOF |
3469 if { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3475 if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3470 rm -rf conftest* | 3476 rm -rf conftest* |
3471 ac_cv_c_volatile=yes | 3477 ac_cv_c_volatile=yes |
3472 else | 3478 else |
3473 echo "configure: failed program was:" >&5 | 3479 echo "configure: failed program was:" >&5 |
3474 cat conftest.$ac_ext >&5 | 3480 cat conftest.$ac_ext >&5 |
3485 EOF | 3491 EOF |
3486 | 3492 |
3487 fi | 3493 fi |
3488 | 3494 |
3489 echo $ac_n "checking for working const""... $ac_c" 1>&6 | 3495 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
3490 echo "configure:3491: checking for working const" >&5 | 3496 echo "configure:3497: checking for working const" >&5 |
3491 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 3497 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
3492 echo $ac_n "(cached) $ac_c" 1>&6 | 3498 echo $ac_n "(cached) $ac_c" 1>&6 |
3493 else | 3499 else |
3494 cat > conftest.$ac_ext <<EOF | 3500 cat > conftest.$ac_ext <<EOF |
3495 #line 3496 "configure" | 3501 #line 3502 "configure" |
3496 #include "confdefs.h" | 3502 #include "confdefs.h" |
3497 | 3503 |
3498 int main() { | 3504 int main() { |
3499 | 3505 |
3500 /* Ultrix mips cc rejects this. */ | 3506 /* Ultrix mips cc rejects this. */ |
3539 const int foo = 10; | 3545 const int foo = 10; |
3540 } | 3546 } |
3541 | 3547 |
3542 ; return 0; } | 3548 ; return 0; } |
3543 EOF | 3549 EOF |
3544 if { (eval echo configure:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3550 if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3545 rm -rf conftest* | 3551 rm -rf conftest* |
3546 ac_cv_c_const=yes | 3552 ac_cv_c_const=yes |
3547 else | 3553 else |
3548 echo "configure: failed program was:" >&5 | 3554 echo "configure: failed program was:" >&5 |
3549 cat conftest.$ac_ext >&5 | 3555 cat conftest.$ac_ext >&5 |
3560 EOF | 3566 EOF |
3561 | 3567 |
3562 fi | 3568 fi |
3563 | 3569 |
3564 echo $ac_n "checking for void * support""... $ac_c" 1>&6 | 3570 echo $ac_n "checking for void * support""... $ac_c" 1>&6 |
3565 echo "configure:3566: checking for void * support" >&5 | 3571 echo "configure:3572: checking for void * support" >&5 |
3566 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then | 3572 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then |
3567 echo $ac_n "(cached) $ac_c" 1>&6 | 3573 echo $ac_n "(cached) $ac_c" 1>&6 |
3568 else | 3574 else |
3569 cat > conftest.$ac_ext <<EOF | 3575 cat > conftest.$ac_ext <<EOF |
3570 #line 3571 "configure" | 3576 #line 3577 "configure" |
3571 #include "confdefs.h" | 3577 #include "confdefs.h" |
3572 | 3578 |
3573 int main() { | 3579 int main() { |
3574 void * foo; | 3580 void * foo; |
3575 ; return 0; } | 3581 ; return 0; } |
3576 EOF | 3582 EOF |
3577 if { (eval echo configure:3578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3578 rm -rf conftest* | 3584 rm -rf conftest* |
3579 emacs_cv_void_star=yes | 3585 emacs_cv_void_star=yes |
3580 else | 3586 else |
3581 echo "configure: failed program was:" >&5 | 3587 echo "configure: failed program was:" >&5 |
3582 cat conftest.$ac_ext >&5 | 3588 cat conftest.$ac_ext >&5 |
3598 EOF | 3604 EOF |
3599 | 3605 |
3600 fi | 3606 fi |
3601 | 3607 |
3602 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 3608 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3603 echo "configure:3604: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 3609 echo "configure:3610: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
3604 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 3610 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
3605 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 3611 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
3606 echo $ac_n "(cached) $ac_c" 1>&6 | 3612 echo $ac_n "(cached) $ac_c" 1>&6 |
3607 else | 3613 else |
3608 cat > conftestmake <<\EOF | 3614 cat > conftestmake <<\EOF |
3626 SET_MAKE="MAKE=${MAKE-make}" | 3632 SET_MAKE="MAKE=${MAKE-make}" |
3627 fi | 3633 fi |
3628 | 3634 |
3629 | 3635 |
3630 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | 3636 echo $ac_n "checking for long file names""... $ac_c" 1>&6 |
3631 echo "configure:3632: checking for long file names" >&5 | 3637 echo "configure:3638: checking for long file names" >&5 |
3632 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then | 3638 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
3633 echo $ac_n "(cached) $ac_c" 1>&6 | 3639 echo $ac_n "(cached) $ac_c" 1>&6 |
3634 else | 3640 else |
3635 ac_cv_sys_long_file_names=yes | 3641 ac_cv_sys_long_file_names=yes |
3636 # Test for long file names in all the places we know might matter: | 3642 # Test for long file names in all the places we know might matter: |
3677 # If we find X, set shell vars x_includes and x_libraries to the | 3683 # If we find X, set shell vars x_includes and x_libraries to the |
3678 # paths, otherwise set no_x=yes. | 3684 # paths, otherwise set no_x=yes. |
3679 # Uses ac_ vars as temps to allow command line to override cache and checks. | 3685 # Uses ac_ vars as temps to allow command line to override cache and checks. |
3680 # --without-x overrides everything else, but does not touch the cache. | 3686 # --without-x overrides everything else, but does not touch the cache. |
3681 echo $ac_n "checking for X""... $ac_c" 1>&6 | 3687 echo $ac_n "checking for X""... $ac_c" 1>&6 |
3682 echo "configure:3683: checking for X" >&5 | 3688 echo "configure:3689: checking for X" >&5 |
3683 | 3689 |
3684 # Check whether --with-x or --without-x was given. | 3690 # Check whether --with-x or --without-x was given. |
3685 if test "${with_x+set}" = set; then | 3691 if test "${with_x+set}" = set; then |
3686 withval="$with_x" | 3692 withval="$with_x" |
3687 : | 3693 : |
3739 # Guess where to find include files, by looking for this one X11 .h file. | 3745 # Guess where to find include files, by looking for this one X11 .h file. |
3740 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | 3746 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
3741 | 3747 |
3742 # First, try using that file with no special directory specified. | 3748 # First, try using that file with no special directory specified. |
3743 cat > conftest.$ac_ext <<EOF | 3749 cat > conftest.$ac_ext <<EOF |
3744 #line 3745 "configure" | 3750 #line 3751 "configure" |
3745 #include "confdefs.h" | 3751 #include "confdefs.h" |
3746 #include <$x_direct_test_include> | 3752 #include <$x_direct_test_include> |
3747 EOF | 3753 EOF |
3748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3749 { (eval echo configure:3750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3755 { (eval echo configure:3756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 3756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3751 if test -z "$ac_err"; then | 3757 if test -z "$ac_err"; then |
3752 rm -rf conftest* | 3758 rm -rf conftest* |
3753 # We can compile using X headers with no special include directory. | 3759 # We can compile using X headers with no special include directory. |
3754 ac_x_includes= | 3760 ac_x_includes= |
3813 # See if we find them without any special options. | 3819 # See if we find them without any special options. |
3814 # Don't add to $LIBS permanently. | 3820 # Don't add to $LIBS permanently. |
3815 ac_save_LIBS="$LIBS" | 3821 ac_save_LIBS="$LIBS" |
3816 LIBS="-l$x_direct_test_library $LIBS" | 3822 LIBS="-l$x_direct_test_library $LIBS" |
3817 cat > conftest.$ac_ext <<EOF | 3823 cat > conftest.$ac_ext <<EOF |
3818 #line 3819 "configure" | 3824 #line 3825 "configure" |
3819 #include "confdefs.h" | 3825 #include "confdefs.h" |
3820 | 3826 |
3821 int main() { | 3827 int main() { |
3822 ${x_direct_test_function}() | 3828 ${x_direct_test_function}() |
3823 ; return 0; } | 3829 ; return 0; } |
3824 EOF | 3830 EOF |
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3831 if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3826 rm -rf conftest* | 3832 rm -rf conftest* |
3827 LIBS="$ac_save_LIBS" | 3833 LIBS="$ac_save_LIBS" |
3828 # We can link X programs with no special library path. | 3834 # We can link X programs with no special library path. |
3829 ac_x_libraries= | 3835 ac_x_libraries= |
3830 else | 3836 else |
3998 # Do the opsystem or machine files prohibit the use of the GNU malloc? | 4004 # Do the opsystem or machine files prohibit the use of the GNU malloc? |
3999 # Assume not, until told otherwise. | 4005 # Assume not, until told otherwise. |
4000 GNU_MALLOC=yes | 4006 GNU_MALLOC=yes |
4001 doug_lea_malloc=yes | 4007 doug_lea_malloc=yes |
4002 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | 4008 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 |
4003 echo "configure:4004: checking for malloc_get_state" >&5 | 4009 echo "configure:4010: checking for malloc_get_state" >&5 |
4004 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then | 4010 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
4005 echo $ac_n "(cached) $ac_c" 1>&6 | 4011 echo $ac_n "(cached) $ac_c" 1>&6 |
4006 else | 4012 else |
4007 cat > conftest.$ac_ext <<EOF | 4013 cat > conftest.$ac_ext <<EOF |
4008 #line 4009 "configure" | 4014 #line 4015 "configure" |
4009 #include "confdefs.h" | 4015 #include "confdefs.h" |
4010 /* System header to define __stub macros and hopefully few prototypes, | 4016 /* System header to define __stub macros and hopefully few prototypes, |
4011 which can conflict with char malloc_get_state(); below. */ | 4017 which can conflict with char malloc_get_state(); below. */ |
4012 #include <assert.h> | 4018 #include <assert.h> |
4013 /* Override any gcc2 internal prototype to avoid an error. */ | 4019 /* Override any gcc2 internal prototype to avoid an error. */ |
4026 malloc_get_state(); | 4032 malloc_get_state(); |
4027 #endif | 4033 #endif |
4028 | 4034 |
4029 ; return 0; } | 4035 ; return 0; } |
4030 EOF | 4036 EOF |
4031 if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4037 if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4032 rm -rf conftest* | 4038 rm -rf conftest* |
4033 eval "ac_cv_func_malloc_get_state=yes" | 4039 eval "ac_cv_func_malloc_get_state=yes" |
4034 else | 4040 else |
4035 echo "configure: failed program was:" >&5 | 4041 echo "configure: failed program was:" >&5 |
4036 cat conftest.$ac_ext >&5 | 4042 cat conftest.$ac_ext >&5 |
4047 echo "$ac_t""no" 1>&6 | 4053 echo "$ac_t""no" 1>&6 |
4048 doug_lea_malloc=no | 4054 doug_lea_malloc=no |
4049 fi | 4055 fi |
4050 | 4056 |
4051 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | 4057 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 |
4052 echo "configure:4053: checking for malloc_set_state" >&5 | 4058 echo "configure:4059: checking for malloc_set_state" >&5 |
4053 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then | 4059 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
4054 echo $ac_n "(cached) $ac_c" 1>&6 | 4060 echo $ac_n "(cached) $ac_c" 1>&6 |
4055 else | 4061 else |
4056 cat > conftest.$ac_ext <<EOF | 4062 cat > conftest.$ac_ext <<EOF |
4057 #line 4058 "configure" | 4063 #line 4064 "configure" |
4058 #include "confdefs.h" | 4064 #include "confdefs.h" |
4059 /* System header to define __stub macros and hopefully few prototypes, | 4065 /* System header to define __stub macros and hopefully few prototypes, |
4060 which can conflict with char malloc_set_state(); below. */ | 4066 which can conflict with char malloc_set_state(); below. */ |
4061 #include <assert.h> | 4067 #include <assert.h> |
4062 /* Override any gcc2 internal prototype to avoid an error. */ | 4068 /* Override any gcc2 internal prototype to avoid an error. */ |
4075 malloc_set_state(); | 4081 malloc_set_state(); |
4076 #endif | 4082 #endif |
4077 | 4083 |
4078 ; return 0; } | 4084 ; return 0; } |
4079 EOF | 4085 EOF |
4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4081 rm -rf conftest* | 4087 rm -rf conftest* |
4082 eval "ac_cv_func_malloc_set_state=yes" | 4088 eval "ac_cv_func_malloc_set_state=yes" |
4083 else | 4089 else |
4084 echo "configure: failed program was:" >&5 | 4090 echo "configure: failed program was:" >&5 |
4085 cat conftest.$ac_ext >&5 | 4091 cat conftest.$ac_ext >&5 |
4096 echo "$ac_t""no" 1>&6 | 4102 echo "$ac_t""no" 1>&6 |
4097 doug_lea_malloc=no | 4103 doug_lea_malloc=no |
4098 fi | 4104 fi |
4099 | 4105 |
4100 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | 4106 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 |
4101 echo "configure:4102: checking whether __after_morecore_hook exists" >&5 | 4107 echo "configure:4108: checking whether __after_morecore_hook exists" >&5 |
4102 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then | 4108 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
4103 echo $ac_n "(cached) $ac_c" 1>&6 | 4109 echo $ac_n "(cached) $ac_c" 1>&6 |
4104 else | 4110 else |
4105 cat > conftest.$ac_ext <<EOF | 4111 cat > conftest.$ac_ext <<EOF |
4106 #line 4107 "configure" | 4112 #line 4113 "configure" |
4107 #include "confdefs.h" | 4113 #include "confdefs.h" |
4108 extern void (* __after_morecore_hook)(); | 4114 extern void (* __after_morecore_hook)(); |
4109 int main() { | 4115 int main() { |
4110 __after_morecore_hook = 0 | 4116 __after_morecore_hook = 0 |
4111 ; return 0; } | 4117 ; return 0; } |
4112 EOF | 4118 EOF |
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4114 rm -rf conftest* | 4120 rm -rf conftest* |
4115 emacs_cv_var___after_morecore_hook=yes | 4121 emacs_cv_var___after_morecore_hook=yes |
4116 else | 4122 else |
4117 echo "configure: failed program was:" >&5 | 4123 echo "configure: failed program was:" >&5 |
4118 cat conftest.$ac_ext >&5 | 4124 cat conftest.$ac_ext >&5 |
4144 | 4150 |
4145 if test x"${REL_ALLOC}" = x; then | 4151 if test x"${REL_ALLOC}" = x; then |
4146 REL_ALLOC=${GNU_MALLOC} | 4152 REL_ALLOC=${GNU_MALLOC} |
4147 fi | 4153 fi |
4148 | 4154 |
4155 @@@ | |
4156 for ac_hdr in unistd.h | |
4157 do | |
4158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
4159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
4160 echo "configure:4161: checking for $ac_hdr" >&5 | |
4161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
4162 echo $ac_n "(cached) $ac_c" 1>&6 | |
4163 else | |
4164 cat > conftest.$ac_ext <<EOF | |
4165 #line 4166 "configure" | |
4166 #include "confdefs.h" | |
4167 #include <$ac_hdr> | |
4168 EOF | |
4169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
4170 { (eval echo configure:4171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
4172 if test -z "$ac_err"; then | |
4173 rm -rf conftest* | |
4174 eval "ac_cv_header_$ac_safe=yes" | |
4175 else | |
4176 echo "$ac_err" >&5 | |
4177 echo "configure: failed program was:" >&5 | |
4178 cat conftest.$ac_ext >&5 | |
4179 rm -rf conftest* | |
4180 eval "ac_cv_header_$ac_safe=no" | |
4181 fi | |
4182 rm -f conftest* | |
4183 fi | |
4184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
4185 echo "$ac_t""yes" 1>&6 | |
4186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
4187 cat >> confdefs.h <<EOF | |
4188 #define $ac_tr_hdr 1 | |
4189 EOF | |
4190 | |
4191 else | |
4192 echo "$ac_t""no" 1>&6 | |
4193 fi | |
4194 done | |
4195 | |
4196 for ac_func in getpagesize | |
4197 do | |
4198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
4199 echo "configure:4200: checking for $ac_func" >&5 | |
4200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
4201 echo $ac_n "(cached) $ac_c" 1>&6 | |
4202 else | |
4203 cat > conftest.$ac_ext <<EOF | |
4204 #line 4205 "configure" | |
4205 #include "confdefs.h" | |
4206 /* System header to define __stub macros and hopefully few prototypes, | |
4207 which can conflict with char $ac_func(); below. */ | |
4208 #include <assert.h> | |
4209 /* Override any gcc2 internal prototype to avoid an error. */ | |
4210 /* We use char because int might match the return type of a gcc2 | |
4211 builtin and then its argument prototype would still apply. */ | |
4212 char $ac_func(); | |
4213 | |
4214 int main() { | |
4215 | |
4216 /* The GNU C library defines this for functions which it implements | |
4217 to always fail with ENOSYS. Some functions are actually named | |
4218 something starting with __ and the normal name is an alias. */ | |
4219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4220 choke me | |
4221 #else | |
4222 $ac_func(); | |
4223 #endif | |
4224 | |
4225 ; return 0; } | |
4226 EOF | |
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4228 rm -rf conftest* | |
4229 eval "ac_cv_func_$ac_func=yes" | |
4230 else | |
4231 echo "configure: failed program was:" >&5 | |
4232 cat conftest.$ac_ext >&5 | |
4233 rm -rf conftest* | |
4234 eval "ac_cv_func_$ac_func=no" | |
4235 fi | |
4236 rm -f conftest* | |
4237 fi | |
4238 | |
4239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
4240 echo "$ac_t""yes" 1>&6 | |
4241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
4242 cat >> confdefs.h <<EOF | |
4243 #define $ac_tr_func 1 | |
4244 EOF | |
4245 | |
4246 else | |
4247 echo "$ac_t""no" 1>&6 | |
4248 fi | |
4249 done | |
4250 | |
4251 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
4252 echo "configure:4253: checking for working mmap" >&5 | |
4253 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then | |
4254 echo $ac_n "(cached) $ac_c" 1>&6 | |
4255 else | |
4256 if test "$cross_compiling" = yes; then | |
4257 ac_cv_func_mmap_fixed_mapped=no | |
4258 else | |
4259 cat > conftest.$ac_ext <<EOF | |
4260 #line 4261 "configure" | |
4261 #include "confdefs.h" | |
4262 | |
4263 /* Thanks to Mike Haertel and Jim Avera for this test. | |
4264 Here is a matrix of mmap possibilities: | |
4265 mmap private not fixed | |
4266 mmap private fixed at somewhere currently unmapped | |
4267 mmap private fixed at somewhere already mapped | |
4268 mmap shared not fixed | |
4269 mmap shared fixed at somewhere currently unmapped | |
4270 mmap shared fixed at somewhere already mapped | |
4271 For private mappings, we should verify that changes cannot be read() | |
4272 back from the file, nor mmap's back from the file at a different | |
4273 address. (There have been systems where private was not correctly | |
4274 implemented like the infamous i386 svr4.0, and systems where the | |
4275 VM page cache was not coherent with the filesystem buffer cache | |
4276 like early versions of FreeBSD and possibly contemporary NetBSD.) | |
4277 For shared mappings, we should conversely verify that changes get | |
4278 propogated back to all the places they're supposed to be. | |
4279 | |
4280 Grep wants private fixed already mapped. | |
4281 The main things grep needs to know about mmap are: | |
4282 * does it exist and is it safe to write into the mmap'd area | |
4283 * how to use it (BSD variants) */ | |
4284 #include <sys/types.h> | |
4285 #include <fcntl.h> | |
4286 #include <sys/mman.h> | |
4287 | |
4288 /* This mess was copied from the GNU getpagesize.h. */ | |
4289 #ifndef HAVE_GETPAGESIZE | |
4290 # ifdef HAVE_UNISTD_H | |
4291 # include <unistd.h> | |
4292 # endif | |
4293 | |
4294 /* Assume that all systems that can run configure have sys/param.h. */ | |
4295 # ifndef HAVE_SYS_PARAM_H | |
4296 # define HAVE_SYS_PARAM_H 1 | |
4297 # endif | |
4298 | |
4299 # ifdef _SC_PAGESIZE | |
4300 # define getpagesize() sysconf(_SC_PAGESIZE) | |
4301 # else /* no _SC_PAGESIZE */ | |
4302 # ifdef HAVE_SYS_PARAM_H | |
4303 # include <sys/param.h> | |
4304 # ifdef EXEC_PAGESIZE | |
4305 # define getpagesize() EXEC_PAGESIZE | |
4306 # else /* no EXEC_PAGESIZE */ | |
4307 # ifdef NBPG | |
4308 # define getpagesize() NBPG * CLSIZE | |
4309 # ifndef CLSIZE | |
4310 # define CLSIZE 1 | |
4311 # endif /* no CLSIZE */ | |
4312 # else /* no NBPG */ | |
4313 # ifdef NBPC | |
4314 # define getpagesize() NBPC | |
4315 # else /* no NBPC */ | |
4316 # ifdef PAGESIZE | |
4317 # define getpagesize() PAGESIZE | |
4318 # endif /* PAGESIZE */ | |
4319 # endif /* no NBPC */ | |
4320 # endif /* no NBPG */ | |
4321 # endif /* no EXEC_PAGESIZE */ | |
4322 # else /* no HAVE_SYS_PARAM_H */ | |
4323 # define getpagesize() 8192 /* punt totally */ | |
4324 # endif /* no HAVE_SYS_PARAM_H */ | |
4325 # endif /* no _SC_PAGESIZE */ | |
4326 | |
4327 #endif /* no HAVE_GETPAGESIZE */ | |
4328 | |
4329 #ifdef __cplusplus | |
4330 extern "C" { void *malloc(unsigned); } | |
4331 #else | |
4332 char *malloc(); | |
4333 #endif | |
4334 | |
4335 int | |
4336 main() | |
4337 { | |
4338 char *data, *data2, *data3; | |
4339 int i, pagesize; | |
4340 int fd; | |
4341 | |
4342 pagesize = getpagesize(); | |
4343 | |
4344 /* | |
4345 * First, make a file with some known garbage in it. | |
4346 */ | |
4347 data = malloc(pagesize); | |
4348 if (!data) | |
4349 exit(1); | |
4350 for (i = 0; i < pagesize; ++i) | |
4351 *(data + i) = rand(); | |
4352 umask(0); | |
4353 fd = creat("conftestmmap", 0600); | |
4354 if (fd < 0) | |
4355 exit(1); | |
4356 if (write(fd, data, pagesize) != pagesize) | |
4357 exit(1); | |
4358 close(fd); | |
4359 | |
4360 /* | |
4361 * Next, try to mmap the file at a fixed address which | |
4362 * already has something else allocated at it. If we can, | |
4363 * also make sure that we see the same garbage. | |
4364 */ | |
4365 fd = open("conftestmmap", O_RDWR); | |
4366 if (fd < 0) | |
4367 exit(1); | |
4368 data2 = malloc(2 * pagesize); | |
4369 if (!data2) | |
4370 exit(1); | |
4371 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
4372 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
4373 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4374 exit(1); | |
4375 for (i = 0; i < pagesize; ++i) | |
4376 if (*(data + i) != *(data2 + i)) | |
4377 exit(1); | |
4378 | |
4379 /* | |
4380 * Finally, make sure that changes to the mapped area | |
4381 * do not percolate back to the file as seen by read(). | |
4382 * (This is a bug on some variants of i386 svr4.0.) | |
4383 */ | |
4384 for (i = 0; i < pagesize; ++i) | |
4385 *(data2 + i) = *(data2 + i) + 1; | |
4386 data3 = malloc(pagesize); | |
4387 if (!data3) | |
4388 exit(1); | |
4389 if (read(fd, data3, pagesize) != pagesize) | |
4390 exit(1); | |
4391 for (i = 0; i < pagesize; ++i) | |
4392 if (*(data + i) != *(data3 + i)) | |
4393 exit(1); | |
4394 close(fd); | |
4395 unlink("conftestmmap"); | |
4396 exit(0); | |
4397 } | |
4398 | |
4399 EOF | |
4400 if { (eval echo configure:4401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
4401 then | |
4402 ac_cv_func_mmap_fixed_mapped=yes | |
4403 else | |
4404 echo "configure: failed program was:" >&5 | |
4405 cat conftest.$ac_ext >&5 | |
4406 rm -fr conftest* | |
4407 ac_cv_func_mmap_fixed_mapped=no | |
4408 fi | |
4409 rm -fr conftest* | |
4410 fi | |
4411 | |
4412 fi | |
4413 | |
4414 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
4415 if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
4416 cat >> confdefs.h <<\EOF | |
4417 #define HAVE_MMAP 1 | |
4418 EOF | |
4419 | |
4420 fi | |
4421 | |
4422 if test $rel_alloc_mmap = yes; then | |
4423 REL_ALLOC=yes | |
4424 fi | |
4425 | |
4149 LIBS="$libsrc_libs $LIBS" | 4426 LIBS="$libsrc_libs $LIBS" |
4150 | 4427 |
4151 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 4428 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
4152 echo "configure:4153: checking for dnet_ntoa in -ldnet" >&5 | 4429 echo "configure:4430: checking for dnet_ntoa in -ldnet" >&5 |
4153 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 4430 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
4154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4155 echo $ac_n "(cached) $ac_c" 1>&6 | 4432 echo $ac_n "(cached) $ac_c" 1>&6 |
4156 else | 4433 else |
4157 ac_save_LIBS="$LIBS" | 4434 ac_save_LIBS="$LIBS" |
4158 LIBS="-ldnet $LIBS" | 4435 LIBS="-ldnet $LIBS" |
4159 cat > conftest.$ac_ext <<EOF | 4436 cat > conftest.$ac_ext <<EOF |
4160 #line 4161 "configure" | 4437 #line 4438 "configure" |
4161 #include "confdefs.h" | 4438 #include "confdefs.h" |
4162 /* Override any gcc2 internal prototype to avoid an error. */ | 4439 /* Override any gcc2 internal prototype to avoid an error. */ |
4163 /* We use char because int might match the return type of a gcc2 | 4440 /* We use char because int might match the return type of a gcc2 |
4164 builtin and then its argument prototype would still apply. */ | 4441 builtin and then its argument prototype would still apply. */ |
4165 char dnet_ntoa(); | 4442 char dnet_ntoa(); |
4166 | 4443 |
4167 int main() { | 4444 int main() { |
4168 dnet_ntoa() | 4445 dnet_ntoa() |
4169 ; return 0; } | 4446 ; return 0; } |
4170 EOF | 4447 EOF |
4171 if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4172 rm -rf conftest* | 4449 rm -rf conftest* |
4173 eval "ac_cv_lib_$ac_lib_var=yes" | 4450 eval "ac_cv_lib_$ac_lib_var=yes" |
4174 else | 4451 else |
4175 echo "configure: failed program was:" >&5 | 4452 echo "configure: failed program was:" >&5 |
4176 cat conftest.$ac_ext >&5 | 4453 cat conftest.$ac_ext >&5 |
4195 echo "$ac_t""no" 1>&6 | 4472 echo "$ac_t""no" 1>&6 |
4196 fi | 4473 fi |
4197 | 4474 |
4198 | 4475 |
4199 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | 4476 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 |
4200 echo "configure:4201: checking for main in -lXbsd" >&5 | 4477 echo "configure:4478: checking for main in -lXbsd" >&5 |
4201 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` | 4478 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
4202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4203 echo $ac_n "(cached) $ac_c" 1>&6 | 4480 echo $ac_n "(cached) $ac_c" 1>&6 |
4204 else | 4481 else |
4205 ac_save_LIBS="$LIBS" | 4482 ac_save_LIBS="$LIBS" |
4206 LIBS="-lXbsd $LIBS" | 4483 LIBS="-lXbsd $LIBS" |
4207 cat > conftest.$ac_ext <<EOF | 4484 cat > conftest.$ac_ext <<EOF |
4208 #line 4209 "configure" | 4485 #line 4486 "configure" |
4209 #include "confdefs.h" | 4486 #include "confdefs.h" |
4210 | 4487 |
4211 int main() { | 4488 int main() { |
4212 main() | 4489 main() |
4213 ; return 0; } | 4490 ; return 0; } |
4214 EOF | 4491 EOF |
4215 if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4216 rm -rf conftest* | 4493 rm -rf conftest* |
4217 eval "ac_cv_lib_$ac_lib_var=yes" | 4494 eval "ac_cv_lib_$ac_lib_var=yes" |
4218 else | 4495 else |
4219 echo "configure: failed program was:" >&5 | 4496 echo "configure: failed program was:" >&5 |
4220 cat conftest.$ac_ext >&5 | 4497 cat conftest.$ac_ext >&5 |
4232 echo "$ac_t""no" 1>&6 | 4509 echo "$ac_t""no" 1>&6 |
4233 fi | 4510 fi |
4234 | 4511 |
4235 | 4512 |
4236 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | 4513 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 |
4237 echo "configure:4238: checking for cma_open in -lpthreads" >&5 | 4514 echo "configure:4515: checking for cma_open in -lpthreads" >&5 |
4238 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` | 4515 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
4239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4240 echo $ac_n "(cached) $ac_c" 1>&6 | 4517 echo $ac_n "(cached) $ac_c" 1>&6 |
4241 else | 4518 else |
4242 ac_save_LIBS="$LIBS" | 4519 ac_save_LIBS="$LIBS" |
4243 LIBS="-lpthreads $LIBS" | 4520 LIBS="-lpthreads $LIBS" |
4244 cat > conftest.$ac_ext <<EOF | 4521 cat > conftest.$ac_ext <<EOF |
4245 #line 4246 "configure" | 4522 #line 4523 "configure" |
4246 #include "confdefs.h" | 4523 #include "confdefs.h" |
4247 /* Override any gcc2 internal prototype to avoid an error. */ | 4524 /* Override any gcc2 internal prototype to avoid an error. */ |
4248 /* We use char because int might match the return type of a gcc2 | 4525 /* We use char because int might match the return type of a gcc2 |
4249 builtin and then its argument prototype would still apply. */ | 4526 builtin and then its argument prototype would still apply. */ |
4250 char cma_open(); | 4527 char cma_open(); |
4251 | 4528 |
4252 int main() { | 4529 int main() { |
4253 cma_open() | 4530 cma_open() |
4254 ; return 0; } | 4531 ; return 0; } |
4255 EOF | 4532 EOF |
4256 if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4257 rm -rf conftest* | 4534 rm -rf conftest* |
4258 eval "ac_cv_lib_$ac_lib_var=yes" | 4535 eval "ac_cv_lib_$ac_lib_var=yes" |
4259 else | 4536 else |
4260 echo "configure: failed program was:" >&5 | 4537 echo "configure: failed program was:" >&5 |
4261 cat conftest.$ac_ext >&5 | 4538 cat conftest.$ac_ext >&5 |
4280 echo "$ac_t""no" 1>&6 | 4557 echo "$ac_t""no" 1>&6 |
4281 fi | 4558 fi |
4282 | 4559 |
4283 | 4560 |
4284 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | 4561 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 |
4285 echo "configure:4286: checking for XFree86 in /usr/X386" >&5 | 4562 echo "configure:4563: checking for XFree86 in /usr/X386" >&5 |
4286 if test -d /usr/X386/include; then | 4563 if test -d /usr/X386/include; then |
4287 HAVE_XFREE386=yes | 4564 HAVE_XFREE386=yes |
4288 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | 4565 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} |
4289 else | 4566 else |
4290 HAVE_XFREE386=no | 4567 HAVE_XFREE386=no |
4312 export LD_RUN_PATH | 4589 export LD_RUN_PATH |
4313 fi | 4590 fi |
4314 | 4591 |
4315 if test "${opsys}" = "gnu-linux"; then | 4592 if test "${opsys}" = "gnu-linux"; then |
4316 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | 4593 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 |
4317 echo "configure:4318: checking whether X on GNU/Linux needs -b to link" >&5 | 4594 echo "configure:4595: checking whether X on GNU/Linux needs -b to link" >&5 |
4318 cat > conftest.$ac_ext <<EOF | 4595 cat > conftest.$ac_ext <<EOF |
4319 #line 4320 "configure" | 4596 #line 4597 "configure" |
4320 #include "confdefs.h" | 4597 #include "confdefs.h" |
4321 | 4598 |
4322 int main() { | 4599 int main() { |
4323 XOpenDisplay ("foo"); | 4600 XOpenDisplay ("foo"); |
4324 ; return 0; } | 4601 ; return 0; } |
4325 EOF | 4602 EOF |
4326 if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4327 rm -rf conftest* | 4604 rm -rf conftest* |
4328 xlinux_first_failure=no | 4605 xlinux_first_failure=no |
4329 else | 4606 else |
4330 echo "configure: failed program was:" >&5 | 4607 echo "configure: failed program was:" >&5 |
4331 cat conftest.$ac_ext >&5 | 4608 cat conftest.$ac_ext >&5 |
4341 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | 4618 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
4342 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | 4619 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
4343 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | 4620 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
4344 LIBS="$LIBS -b i486-linuxaout" | 4621 LIBS="$LIBS -b i486-linuxaout" |
4345 cat > conftest.$ac_ext <<EOF | 4622 cat > conftest.$ac_ext <<EOF |
4346 #line 4347 "configure" | 4623 #line 4624 "configure" |
4347 #include "confdefs.h" | 4624 #include "confdefs.h" |
4348 | 4625 |
4349 int main() { | 4626 int main() { |
4350 XOpenDisplay ("foo"); | 4627 XOpenDisplay ("foo"); |
4351 ; return 0; } | 4628 ; return 0; } |
4352 EOF | 4629 EOF |
4353 if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4354 rm -rf conftest* | 4631 rm -rf conftest* |
4355 xlinux_second_failure=no | 4632 xlinux_second_failure=no |
4356 else | 4633 else |
4357 echo "configure: failed program was:" >&5 | 4634 echo "configure: failed program was:" >&5 |
4358 cat conftest.$ac_ext >&5 | 4635 cat conftest.$ac_ext >&5 |
4378 | 4655 |
4379 for ac_func in XrmSetDatabase XScreenResourceString \ | 4656 for ac_func in XrmSetDatabase XScreenResourceString \ |
4380 XScreenNumberOfScreen XSetWMProtocols | 4657 XScreenNumberOfScreen XSetWMProtocols |
4381 do | 4658 do |
4382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 4659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4383 echo "configure:4384: checking for $ac_func" >&5 | 4660 echo "configure:4661: checking for $ac_func" >&5 |
4384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 4661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4385 echo $ac_n "(cached) $ac_c" 1>&6 | 4662 echo $ac_n "(cached) $ac_c" 1>&6 |
4386 else | 4663 else |
4387 cat > conftest.$ac_ext <<EOF | 4664 cat > conftest.$ac_ext <<EOF |
4388 #line 4389 "configure" | 4665 #line 4666 "configure" |
4389 #include "confdefs.h" | 4666 #include "confdefs.h" |
4390 /* System header to define __stub macros and hopefully few prototypes, | 4667 /* System header to define __stub macros and hopefully few prototypes, |
4391 which can conflict with char $ac_func(); below. */ | 4668 which can conflict with char $ac_func(); below. */ |
4392 #include <assert.h> | 4669 #include <assert.h> |
4393 /* Override any gcc2 internal prototype to avoid an error. */ | 4670 /* Override any gcc2 internal prototype to avoid an error. */ |
4406 $ac_func(); | 4683 $ac_func(); |
4407 #endif | 4684 #endif |
4408 | 4685 |
4409 ; return 0; } | 4686 ; return 0; } |
4410 EOF | 4687 EOF |
4411 if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4412 rm -rf conftest* | 4689 rm -rf conftest* |
4413 eval "ac_cv_func_$ac_func=yes" | 4690 eval "ac_cv_func_$ac_func=yes" |
4414 else | 4691 else |
4415 echo "configure: failed program was:" >&5 | 4692 echo "configure: failed program was:" >&5 |
4416 cat conftest.$ac_ext >&5 | 4693 cat conftest.$ac_ext >&5 |
4434 | 4711 |
4435 fi | 4712 fi |
4436 | 4713 |
4437 if test "${window_system}" = "x11"; then | 4714 if test "${window_system}" = "x11"; then |
4438 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | 4715 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 |
4439 echo "configure:4440: checking X11 version 6" >&5 | 4716 echo "configure:4717: checking X11 version 6" >&5 |
4440 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then | 4717 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
4441 echo $ac_n "(cached) $ac_c" 1>&6 | 4718 echo $ac_n "(cached) $ac_c" 1>&6 |
4442 else | 4719 else |
4443 cat > conftest.$ac_ext <<EOF | 4720 cat > conftest.$ac_ext <<EOF |
4444 #line 4445 "configure" | 4721 #line 4722 "configure" |
4445 #include "confdefs.h" | 4722 #include "confdefs.h" |
4446 #include <X11/Xlib.h> | 4723 #include <X11/Xlib.h> |
4447 int main() { | 4724 int main() { |
4448 #if XlibSpecificationRelease < 6 | 4725 #if XlibSpecificationRelease < 6 |
4449 fail; | 4726 fail; |
4450 #endif | 4727 #endif |
4451 | 4728 |
4452 ; return 0; } | 4729 ; return 0; } |
4453 EOF | 4730 EOF |
4454 if { (eval echo configure:4455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4455 rm -rf conftest* | 4732 rm -rf conftest* |
4456 emacs_cv_x11_version_6=yes | 4733 emacs_cv_x11_version_6=yes |
4457 else | 4734 else |
4458 echo "configure: failed program was:" >&5 | 4735 echo "configure: failed program was:" >&5 |
4459 cat conftest.$ac_ext >&5 | 4736 cat conftest.$ac_ext >&5 |
4474 fi | 4751 fi |
4475 fi | 4752 fi |
4476 | 4753 |
4477 if test "${window_system}" = "x11"; then | 4754 if test "${window_system}" = "x11"; then |
4478 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | 4755 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 |
4479 echo "configure:4480: checking X11 version 5" >&5 | 4756 echo "configure:4757: checking X11 version 5" >&5 |
4480 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then | 4757 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
4481 echo $ac_n "(cached) $ac_c" 1>&6 | 4758 echo $ac_n "(cached) $ac_c" 1>&6 |
4482 else | 4759 else |
4483 cat > conftest.$ac_ext <<EOF | 4760 cat > conftest.$ac_ext <<EOF |
4484 #line 4485 "configure" | 4761 #line 4762 "configure" |
4485 #include "confdefs.h" | 4762 #include "confdefs.h" |
4486 #include <X11/Xlib.h> | 4763 #include <X11/Xlib.h> |
4487 int main() { | 4764 int main() { |
4488 #if XlibSpecificationRelease < 5 | 4765 #if XlibSpecificationRelease < 5 |
4489 fail; | 4766 fail; |
4490 #endif | 4767 #endif |
4491 | 4768 |
4492 ; return 0; } | 4769 ; return 0; } |
4493 EOF | 4770 EOF |
4494 if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4771 if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4495 rm -rf conftest* | 4772 rm -rf conftest* |
4496 emacs_cv_x11_version_5=yes | 4773 emacs_cv_x11_version_5=yes |
4497 else | 4774 else |
4498 echo "configure: failed program was:" >&5 | 4775 echo "configure: failed program was:" >&5 |
4499 cat conftest.$ac_ext >&5 | 4776 cat conftest.$ac_ext >&5 |
4517 fi | 4794 fi |
4518 | 4795 |
4519 if test x"${USE_X_TOOLKIT}" = xmaybe; then | 4796 if test x"${USE_X_TOOLKIT}" = xmaybe; then |
4520 if test x"${HAVE_X11R5}" = xyes; then | 4797 if test x"${HAVE_X11R5}" = xyes; then |
4521 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | 4798 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 |
4522 echo "configure:4523: checking X11 version 5 with Xaw" >&5 | 4799 echo "configure:4800: checking X11 version 5 with Xaw" >&5 |
4523 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then | 4800 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
4524 echo $ac_n "(cached) $ac_c" 1>&6 | 4801 echo $ac_n "(cached) $ac_c" 1>&6 |
4525 else | 4802 else |
4526 cat > conftest.$ac_ext <<EOF | 4803 cat > conftest.$ac_ext <<EOF |
4527 #line 4528 "configure" | 4804 #line 4805 "configure" |
4528 #include "confdefs.h" | 4805 #include "confdefs.h" |
4529 | 4806 |
4530 #include <X11/Intrinsic.h> | 4807 #include <X11/Intrinsic.h> |
4531 #include <X11/Xaw/Simple.h> | 4808 #include <X11/Xaw/Simple.h> |
4532 int main() { | 4809 int main() { |
4533 | 4810 |
4534 ; return 0; } | 4811 ; return 0; } |
4535 EOF | 4812 EOF |
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4537 rm -rf conftest* | 4814 rm -rf conftest* |
4538 emacs_cv_x11_version_5_with_xaw=yes | 4815 emacs_cv_x11_version_5_with_xaw=yes |
4539 else | 4816 else |
4540 echo "configure: failed program was:" >&5 | 4817 echo "configure: failed program was:" >&5 |
4541 cat conftest.$ac_ext >&5 | 4818 cat conftest.$ac_ext >&5 |
4559 | 4836 |
4560 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | 4837 X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
4561 | 4838 |
4562 if test "${USE_X_TOOLKIT}" != "none"; then | 4839 if test "${USE_X_TOOLKIT}" != "none"; then |
4563 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | 4840 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 |
4564 echo "configure:4565: checking X11 toolkit version" >&5 | 4841 echo "configure:4842: checking X11 toolkit version" >&5 |
4565 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then | 4842 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
4566 echo $ac_n "(cached) $ac_c" 1>&6 | 4843 echo $ac_n "(cached) $ac_c" 1>&6 |
4567 else | 4844 else |
4568 cat > conftest.$ac_ext <<EOF | 4845 cat > conftest.$ac_ext <<EOF |
4569 #line 4570 "configure" | 4846 #line 4847 "configure" |
4570 #include "confdefs.h" | 4847 #include "confdefs.h" |
4571 #include <X11/Intrinsic.h> | 4848 #include <X11/Intrinsic.h> |
4572 int main() { | 4849 int main() { |
4573 #if XtSpecificationRelease < 6 | 4850 #if XtSpecificationRelease < 6 |
4574 fail; | 4851 fail; |
4575 #endif | 4852 #endif |
4576 | 4853 |
4577 ; return 0; } | 4854 ; return 0; } |
4578 EOF | 4855 EOF |
4579 if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4856 if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4580 rm -rf conftest* | 4857 rm -rf conftest* |
4581 emacs_cv_x11_toolkit_version_6=yes | 4858 emacs_cv_x11_toolkit_version_6=yes |
4582 else | 4859 else |
4583 echo "configure: failed program was:" >&5 | 4860 echo "configure: failed program was:" >&5 |
4584 cat conftest.$ac_ext >&5 | 4861 cat conftest.$ac_ext >&5 |
4604 LIBS="-lXt -lSM -lICE $LIBS" | 4881 LIBS="-lXt -lSM -lICE $LIBS" |
4605 else | 4882 else |
4606 LIBS="-lXt $LIBS" | 4883 LIBS="-lXt $LIBS" |
4607 fi | 4884 fi |
4608 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | 4885 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 |
4609 echo "configure:4610: checking for XmuConvertStandardSelection in -lXmu" >&5 | 4886 echo "configure:4887: checking for XmuConvertStandardSelection in -lXmu" >&5 |
4610 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` | 4887 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
4611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4612 echo $ac_n "(cached) $ac_c" 1>&6 | 4889 echo $ac_n "(cached) $ac_c" 1>&6 |
4613 else | 4890 else |
4614 ac_save_LIBS="$LIBS" | 4891 ac_save_LIBS="$LIBS" |
4615 LIBS="-lXmu $LIBS" | 4892 LIBS="-lXmu $LIBS" |
4616 cat > conftest.$ac_ext <<EOF | 4893 cat > conftest.$ac_ext <<EOF |
4617 #line 4618 "configure" | 4894 #line 4895 "configure" |
4618 #include "confdefs.h" | 4895 #include "confdefs.h" |
4619 /* Override any gcc2 internal prototype to avoid an error. */ | 4896 /* Override any gcc2 internal prototype to avoid an error. */ |
4620 /* We use char because int might match the return type of a gcc2 | 4897 /* We use char because int might match the return type of a gcc2 |
4621 builtin and then its argument prototype would still apply. */ | 4898 builtin and then its argument prototype would still apply. */ |
4622 char XmuConvertStandardSelection(); | 4899 char XmuConvertStandardSelection(); |
4623 | 4900 |
4624 int main() { | 4901 int main() { |
4625 XmuConvertStandardSelection() | 4902 XmuConvertStandardSelection() |
4626 ; return 0; } | 4903 ; return 0; } |
4627 EOF | 4904 EOF |
4628 if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4629 rm -rf conftest* | 4906 rm -rf conftest* |
4630 eval "ac_cv_lib_$ac_lib_var=yes" | 4907 eval "ac_cv_lib_$ac_lib_var=yes" |
4631 else | 4908 else |
4632 echo "configure: failed program was:" >&5 | 4909 echo "configure: failed program was:" >&5 |
4633 cat conftest.$ac_ext >&5 | 4910 cat conftest.$ac_ext >&5 |
4655 LIBS="$OLDLIBS" | 4932 LIBS="$OLDLIBS" |
4656 fi | 4933 fi |
4657 | 4934 |
4658 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 4935 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
4659 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | 4936 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 |
4660 echo "configure:4661: checking for Motif version 2.1" >&5 | 4937 echo "configure:4938: checking for Motif version 2.1" >&5 |
4661 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then | 4938 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4662 echo $ac_n "(cached) $ac_c" 1>&6 | 4939 echo $ac_n "(cached) $ac_c" 1>&6 |
4663 else | 4940 else |
4664 cat > conftest.$ac_ext <<EOF | 4941 cat > conftest.$ac_ext <<EOF |
4665 #line 4666 "configure" | 4942 #line 4943 "configure" |
4666 #include "confdefs.h" | 4943 #include "confdefs.h" |
4667 #include <Xm/Xm.h> | 4944 #include <Xm/Xm.h> |
4668 int main() { | 4945 int main() { |
4669 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | 4946 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
4670 int x = 5; | 4947 int x = 5; |
4671 #else | 4948 #else |
4672 Motif version prior to 2.1. | 4949 Motif version prior to 2.1. |
4673 #endif | 4950 #endif |
4674 ; return 0; } | 4951 ; return 0; } |
4675 EOF | 4952 EOF |
4676 if { (eval echo configure:4677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4953 if { (eval echo configure:4954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4677 rm -rf conftest* | 4954 rm -rf conftest* |
4678 emacs_cv_motif_version_2_1=yes | 4955 emacs_cv_motif_version_2_1=yes |
4679 else | 4956 else |
4680 echo "configure: failed program was:" >&5 | 4957 echo "configure: failed program was:" >&5 |
4681 cat conftest.$ac_ext >&5 | 4958 cat conftest.$ac_ext >&5 |
4691 cat >> confdefs.h <<\EOF | 4968 cat >> confdefs.h <<\EOF |
4692 #define HAVE_MOTIF_2_1 1 | 4969 #define HAVE_MOTIF_2_1 1 |
4693 EOF | 4970 EOF |
4694 | 4971 |
4695 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | 4972 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 |
4696 echo "configure:4697: checking for XpCreateContext in -lXp" >&5 | 4973 echo "configure:4974: checking for XpCreateContext in -lXp" >&5 |
4697 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` | 4974 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4699 echo $ac_n "(cached) $ac_c" 1>&6 | 4976 echo $ac_n "(cached) $ac_c" 1>&6 |
4700 else | 4977 else |
4701 ac_save_LIBS="$LIBS" | 4978 ac_save_LIBS="$LIBS" |
4702 LIBS="-lXp -lXext $LIBS" | 4979 LIBS="-lXp -lXext $LIBS" |
4703 cat > conftest.$ac_ext <<EOF | 4980 cat > conftest.$ac_ext <<EOF |
4704 #line 4705 "configure" | 4981 #line 4982 "configure" |
4705 #include "confdefs.h" | 4982 #include "confdefs.h" |
4706 /* Override any gcc2 internal prototype to avoid an error. */ | 4983 /* Override any gcc2 internal prototype to avoid an error. */ |
4707 /* We use char because int might match the return type of a gcc2 | 4984 /* We use char because int might match the return type of a gcc2 |
4708 builtin and then its argument prototype would still apply. */ | 4985 builtin and then its argument prototype would still apply. */ |
4709 char XpCreateContext(); | 4986 char XpCreateContext(); |
4710 | 4987 |
4711 int main() { | 4988 int main() { |
4712 XpCreateContext() | 4989 XpCreateContext() |
4713 ; return 0; } | 4990 ; return 0; } |
4714 EOF | 4991 EOF |
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4992 if { (eval echo configure:4993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4716 rm -rf conftest* | 4993 rm -rf conftest* |
4717 eval "ac_cv_lib_$ac_lib_var=yes" | 4994 eval "ac_cv_lib_$ac_lib_var=yes" |
4718 else | 4995 else |
4719 echo "configure: failed program was:" >&5 | 4996 echo "configure: failed program was:" >&5 |
4720 cat conftest.$ac_ext >&5 | 4997 cat conftest.$ac_ext >&5 |
4747 if test "${USE_X_TOOLKIT}" != "none"; then | 5024 if test "${USE_X_TOOLKIT}" != "none"; then |
4748 old_c_flags="${CFLAGS}" | 5025 old_c_flags="${CFLAGS}" |
4749 CFLAGS="${LD_SWITCH_X_SITE}" | 5026 CFLAGS="${LD_SWITCH_X_SITE}" |
4750 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | 5027 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` |
4751 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | 5028 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 |
4752 echo "configure:4753: checking for X11/Xaw3d/Scrollbar.h" >&5 | 5029 echo "configure:5030: checking for X11/Xaw3d/Scrollbar.h" >&5 |
4753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4754 echo $ac_n "(cached) $ac_c" 1>&6 | 5031 echo $ac_n "(cached) $ac_c" 1>&6 |
4755 else | 5032 else |
4756 cat > conftest.$ac_ext <<EOF | 5033 cat > conftest.$ac_ext <<EOF |
4757 #line 4758 "configure" | 5034 #line 5035 "configure" |
4758 #include "confdefs.h" | 5035 #include "confdefs.h" |
4759 #include <X11/Xaw3d/Scrollbar.h> | 5036 #include <X11/Xaw3d/Scrollbar.h> |
4760 EOF | 5037 EOF |
4761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4762 { (eval echo configure:4763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5039 { (eval echo configure:5040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4764 if test -z "$ac_err"; then | 5041 if test -z "$ac_err"; then |
4765 rm -rf conftest* | 5042 rm -rf conftest* |
4766 eval "ac_cv_header_$ac_safe=yes" | 5043 eval "ac_cv_header_$ac_safe=yes" |
4767 else | 5044 else |
4774 rm -f conftest* | 5051 rm -f conftest* |
4775 fi | 5052 fi |
4776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4777 echo "$ac_t""yes" 1>&6 | 5054 echo "$ac_t""yes" 1>&6 |
4778 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | 5055 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 |
4779 echo "configure:4780: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | 5056 echo "configure:5057: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
4780 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 5057 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4782 echo $ac_n "(cached) $ac_c" 1>&6 | 5059 echo $ac_n "(cached) $ac_c" 1>&6 |
4783 else | 5060 else |
4784 ac_save_LIBS="$LIBS" | 5061 ac_save_LIBS="$LIBS" |
4785 LIBS="-lXaw3d -lX11 $LIBS" | 5062 LIBS="-lXaw3d -lX11 $LIBS" |
4786 cat > conftest.$ac_ext <<EOF | 5063 cat > conftest.$ac_ext <<EOF |
4787 #line 4788 "configure" | 5064 #line 5065 "configure" |
4788 #include "confdefs.h" | 5065 #include "confdefs.h" |
4789 /* Override any gcc2 internal prototype to avoid an error. */ | 5066 /* Override any gcc2 internal prototype to avoid an error. */ |
4790 /* We use char because int might match the return type of a gcc2 | 5067 /* We use char because int might match the return type of a gcc2 |
4791 builtin and then its argument prototype would still apply. */ | 5068 builtin and then its argument prototype would still apply. */ |
4792 char XawScrollbarSetThumb(); | 5069 char XawScrollbarSetThumb(); |
4793 | 5070 |
4794 int main() { | 5071 int main() { |
4795 XawScrollbarSetThumb() | 5072 XawScrollbarSetThumb() |
4796 ; return 0; } | 5073 ; return 0; } |
4797 EOF | 5074 EOF |
4798 if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5075 if { (eval echo configure:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4799 rm -rf conftest* | 5076 rm -rf conftest* |
4800 eval "ac_cv_lib_$ac_lib_var=yes" | 5077 eval "ac_cv_lib_$ac_lib_var=yes" |
4801 else | 5078 else |
4802 echo "configure: failed program was:" >&5 | 5079 echo "configure: failed program was:" >&5 |
4803 cat conftest.$ac_ext >&5 | 5080 cat conftest.$ac_ext >&5 |
4865 if test "${with_xpm}" != "no"; then | 5142 if test "${with_xpm}" != "no"; then |
4866 old_c_flags="${CFLAGS}" | 5143 old_c_flags="${CFLAGS}" |
4867 CFLAGS="${LD_SWITCH_X_SITE}" | 5144 CFLAGS="${LD_SWITCH_X_SITE}" |
4868 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | 5145 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` |
4869 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | 5146 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 |
4870 echo "configure:4871: checking for X11/xpm.h" >&5 | 5147 echo "configure:5148: checking for X11/xpm.h" >&5 |
4871 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4872 echo $ac_n "(cached) $ac_c" 1>&6 | 5149 echo $ac_n "(cached) $ac_c" 1>&6 |
4873 else | 5150 else |
4874 cat > conftest.$ac_ext <<EOF | 5151 cat > conftest.$ac_ext <<EOF |
4875 #line 4876 "configure" | 5152 #line 5153 "configure" |
4876 #include "confdefs.h" | 5153 #include "confdefs.h" |
4877 #include <X11/xpm.h> | 5154 #include <X11/xpm.h> |
4878 EOF | 5155 EOF |
4879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4880 { (eval echo configure:4881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5157 { (eval echo configure:5158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4882 if test -z "$ac_err"; then | 5159 if test -z "$ac_err"; then |
4883 rm -rf conftest* | 5160 rm -rf conftest* |
4884 eval "ac_cv_header_$ac_safe=yes" | 5161 eval "ac_cv_header_$ac_safe=yes" |
4885 else | 5162 else |
4892 rm -f conftest* | 5169 rm -f conftest* |
4893 fi | 5170 fi |
4894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4895 echo "$ac_t""yes" 1>&6 | 5172 echo "$ac_t""yes" 1>&6 |
4896 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | 5173 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 |
4897 echo "configure:4898: checking for XpmReadFileToPixmap in -lXpm" >&5 | 5174 echo "configure:5175: checking for XpmReadFileToPixmap in -lXpm" >&5 |
4898 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` | 5175 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4900 echo $ac_n "(cached) $ac_c" 1>&6 | 5177 echo $ac_n "(cached) $ac_c" 1>&6 |
4901 else | 5178 else |
4902 ac_save_LIBS="$LIBS" | 5179 ac_save_LIBS="$LIBS" |
4903 LIBS="-lXpm -lX11 $LIBS" | 5180 LIBS="-lXpm -lX11 $LIBS" |
4904 cat > conftest.$ac_ext <<EOF | 5181 cat > conftest.$ac_ext <<EOF |
4905 #line 4906 "configure" | 5182 #line 5183 "configure" |
4906 #include "confdefs.h" | 5183 #include "confdefs.h" |
4907 /* Override any gcc2 internal prototype to avoid an error. */ | 5184 /* Override any gcc2 internal prototype to avoid an error. */ |
4908 /* We use char because int might match the return type of a gcc2 | 5185 /* We use char because int might match the return type of a gcc2 |
4909 builtin and then its argument prototype would still apply. */ | 5186 builtin and then its argument prototype would still apply. */ |
4910 char XpmReadFileToPixmap(); | 5187 char XpmReadFileToPixmap(); |
4911 | 5188 |
4912 int main() { | 5189 int main() { |
4913 XpmReadFileToPixmap() | 5190 XpmReadFileToPixmap() |
4914 ; return 0; } | 5191 ; return 0; } |
4915 EOF | 5192 EOF |
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5193 if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4917 rm -rf conftest* | 5194 rm -rf conftest* |
4918 eval "ac_cv_lib_$ac_lib_var=yes" | 5195 eval "ac_cv_lib_$ac_lib_var=yes" |
4919 else | 5196 else |
4920 echo "configure: failed program was:" >&5 | 5197 echo "configure: failed program was:" >&5 |
4921 cat conftest.$ac_ext >&5 | 5198 cat conftest.$ac_ext >&5 |
4937 echo "$ac_t""no" 1>&6 | 5214 echo "$ac_t""no" 1>&6 |
4938 fi | 5215 fi |
4939 | 5216 |
4940 if test "${HAVE_XPM}" = "yes"; then | 5217 if test "${HAVE_XPM}" = "yes"; then |
4941 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 | 5218 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 |
4942 echo "configure:4943: checking for XpmReturnAllocPixels preprocessor define" >&5 | 5219 echo "configure:5220: checking for XpmReturnAllocPixels preprocessor define" >&5 |
4943 cat > conftest.$ac_ext <<EOF | 5220 cat > conftest.$ac_ext <<EOF |
4944 #line 4945 "configure" | 5221 #line 5222 "configure" |
4945 #include "confdefs.h" | 5222 #include "confdefs.h" |
4946 #include "X11/xpm.h" | 5223 #include "X11/xpm.h" |
4947 #ifndef XpmReturnAllocPixels | 5224 #ifndef XpmReturnAllocPixels |
4948 no_return_alloc_pixels | 5225 no_return_alloc_pixels |
4949 #endif | 5226 #endif |
4982 if test "${with_jpeg}" != "no"; then | 5259 if test "${with_jpeg}" != "no"; then |
4983 old_c_flags="${CFLAGS}" | 5260 old_c_flags="${CFLAGS}" |
4984 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5261 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4985 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` | 5262 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
4986 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | 5263 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 |
4987 echo "configure:4988: checking for jerror.h" >&5 | 5264 echo "configure:5265: checking for jerror.h" >&5 |
4988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4989 echo $ac_n "(cached) $ac_c" 1>&6 | 5266 echo $ac_n "(cached) $ac_c" 1>&6 |
4990 else | 5267 else |
4991 cat > conftest.$ac_ext <<EOF | 5268 cat > conftest.$ac_ext <<EOF |
4992 #line 4993 "configure" | 5269 #line 5270 "configure" |
4993 #include "confdefs.h" | 5270 #include "confdefs.h" |
4994 #include <jerror.h> | 5271 #include <jerror.h> |
4995 EOF | 5272 EOF |
4996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4997 { (eval echo configure:4998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5274 { (eval echo configure:5275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4999 if test -z "$ac_err"; then | 5276 if test -z "$ac_err"; then |
5000 rm -rf conftest* | 5277 rm -rf conftest* |
5001 eval "ac_cv_header_$ac_safe=yes" | 5278 eval "ac_cv_header_$ac_safe=yes" |
5002 else | 5279 else |
5009 rm -f conftest* | 5286 rm -f conftest* |
5010 fi | 5287 fi |
5011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5012 echo "$ac_t""yes" 1>&6 | 5289 echo "$ac_t""yes" 1>&6 |
5013 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | 5290 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 |
5014 echo "configure:5015: checking for jpeg_destroy_compress in -ljpeg" >&5 | 5291 echo "configure:5292: checking for jpeg_destroy_compress in -ljpeg" >&5 |
5015 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` | 5292 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
5016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5017 echo $ac_n "(cached) $ac_c" 1>&6 | 5294 echo $ac_n "(cached) $ac_c" 1>&6 |
5018 else | 5295 else |
5019 ac_save_LIBS="$LIBS" | 5296 ac_save_LIBS="$LIBS" |
5020 LIBS="-ljpeg -lX11 $LIBS" | 5297 LIBS="-ljpeg -lX11 $LIBS" |
5021 cat > conftest.$ac_ext <<EOF | 5298 cat > conftest.$ac_ext <<EOF |
5022 #line 5023 "configure" | 5299 #line 5300 "configure" |
5023 #include "confdefs.h" | 5300 #include "confdefs.h" |
5024 /* Override any gcc2 internal prototype to avoid an error. */ | 5301 /* Override any gcc2 internal prototype to avoid an error. */ |
5025 /* We use char because int might match the return type of a gcc2 | 5302 /* We use char because int might match the return type of a gcc2 |
5026 builtin and then its argument prototype would still apply. */ | 5303 builtin and then its argument prototype would still apply. */ |
5027 char jpeg_destroy_compress(); | 5304 char jpeg_destroy_compress(); |
5028 | 5305 |
5029 int main() { | 5306 int main() { |
5030 jpeg_destroy_compress() | 5307 jpeg_destroy_compress() |
5031 ; return 0; } | 5308 ; return 0; } |
5032 EOF | 5309 EOF |
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5310 if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5034 rm -rf conftest* | 5311 rm -rf conftest* |
5035 eval "ac_cv_lib_$ac_lib_var=yes" | 5312 eval "ac_cv_lib_$ac_lib_var=yes" |
5036 else | 5313 else |
5037 echo "configure: failed program was:" >&5 | 5314 echo "configure: failed program was:" >&5 |
5038 cat conftest.$ac_ext >&5 | 5315 cat conftest.$ac_ext >&5 |
5071 if test "${with_png}" != "no"; then | 5348 if test "${with_png}" != "no"; then |
5072 old_c_flags="${CFLAGS}" | 5349 old_c_flags="${CFLAGS}" |
5073 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5350 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
5074 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 5351 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
5075 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 5352 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
5076 echo "configure:5077: checking for png.h" >&5 | 5353 echo "configure:5354: checking for png.h" >&5 |
5077 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5354 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5078 echo $ac_n "(cached) $ac_c" 1>&6 | 5355 echo $ac_n "(cached) $ac_c" 1>&6 |
5079 else | 5356 else |
5080 cat > conftest.$ac_ext <<EOF | 5357 cat > conftest.$ac_ext <<EOF |
5081 #line 5082 "configure" | 5358 #line 5359 "configure" |
5082 #include "confdefs.h" | 5359 #include "confdefs.h" |
5083 #include <png.h> | 5360 #include <png.h> |
5084 EOF | 5361 EOF |
5085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5086 { (eval echo configure:5087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5363 { (eval echo configure:5364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5088 if test -z "$ac_err"; then | 5365 if test -z "$ac_err"; then |
5089 rm -rf conftest* | 5366 rm -rf conftest* |
5090 eval "ac_cv_header_$ac_safe=yes" | 5367 eval "ac_cv_header_$ac_safe=yes" |
5091 else | 5368 else |
5098 rm -f conftest* | 5375 rm -f conftest* |
5099 fi | 5376 fi |
5100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5377 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5101 echo "$ac_t""yes" 1>&6 | 5378 echo "$ac_t""yes" 1>&6 |
5102 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | 5379 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 |
5103 echo "configure:5104: checking for png_set_expand in -lpng" >&5 | 5380 echo "configure:5381: checking for png_set_expand in -lpng" >&5 |
5104 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` | 5381 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
5105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5106 echo $ac_n "(cached) $ac_c" 1>&6 | 5383 echo $ac_n "(cached) $ac_c" 1>&6 |
5107 else | 5384 else |
5108 ac_save_LIBS="$LIBS" | 5385 ac_save_LIBS="$LIBS" |
5109 LIBS="-lpng -lX11 -lz -lm $LIBS" | 5386 LIBS="-lpng -lX11 -lz -lm $LIBS" |
5110 cat > conftest.$ac_ext <<EOF | 5387 cat > conftest.$ac_ext <<EOF |
5111 #line 5112 "configure" | 5388 #line 5389 "configure" |
5112 #include "confdefs.h" | 5389 #include "confdefs.h" |
5113 /* Override any gcc2 internal prototype to avoid an error. */ | 5390 /* Override any gcc2 internal prototype to avoid an error. */ |
5114 /* We use char because int might match the return type of a gcc2 | 5391 /* We use char because int might match the return type of a gcc2 |
5115 builtin and then its argument prototype would still apply. */ | 5392 builtin and then its argument prototype would still apply. */ |
5116 char png_set_expand(); | 5393 char png_set_expand(); |
5117 | 5394 |
5118 int main() { | 5395 int main() { |
5119 png_set_expand() | 5396 png_set_expand() |
5120 ; return 0; } | 5397 ; return 0; } |
5121 EOF | 5398 EOF |
5122 if { (eval echo configure:5123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5123 rm -rf conftest* | 5400 rm -rf conftest* |
5124 eval "ac_cv_lib_$ac_lib_var=yes" | 5401 eval "ac_cv_lib_$ac_lib_var=yes" |
5125 else | 5402 else |
5126 echo "configure: failed program was:" >&5 | 5403 echo "configure: failed program was:" >&5 |
5127 cat conftest.$ac_ext >&5 | 5404 cat conftest.$ac_ext >&5 |
5160 if test "${with_tiff}" != "no"; then | 5437 if test "${with_tiff}" != "no"; then |
5161 old_c_flags="${CFLAGS}" | 5438 old_c_flags="${CFLAGS}" |
5162 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5439 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
5163 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | 5440 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
5164 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | 5441 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 |
5165 echo "configure:5166: checking for tiffio.h" >&5 | 5442 echo "configure:5443: checking for tiffio.h" >&5 |
5166 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5167 echo $ac_n "(cached) $ac_c" 1>&6 | 5444 echo $ac_n "(cached) $ac_c" 1>&6 |
5168 else | 5445 else |
5169 cat > conftest.$ac_ext <<EOF | 5446 cat > conftest.$ac_ext <<EOF |
5170 #line 5171 "configure" | 5447 #line 5448 "configure" |
5171 #include "confdefs.h" | 5448 #include "confdefs.h" |
5172 #include <tiffio.h> | 5449 #include <tiffio.h> |
5173 EOF | 5450 EOF |
5174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5175 { (eval echo configure:5176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5452 { (eval echo configure:5453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5177 if test -z "$ac_err"; then | 5454 if test -z "$ac_err"; then |
5178 rm -rf conftest* | 5455 rm -rf conftest* |
5179 eval "ac_cv_header_$ac_safe=yes" | 5456 eval "ac_cv_header_$ac_safe=yes" |
5180 else | 5457 else |
5190 echo "$ac_t""yes" 1>&6 | 5467 echo "$ac_t""yes" 1>&6 |
5191 tifflibs="-lX11 -lz -lm" | 5468 tifflibs="-lX11 -lz -lm" |
5192 # At least one tiff package requires the jpeg library. | 5469 # At least one tiff package requires the jpeg library. |
5193 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 5470 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
5194 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | 5471 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
5195 echo "configure:5196: checking for TIFFGetVersion in -ltiff" >&5 | 5472 echo "configure:5473: checking for TIFFGetVersion in -ltiff" >&5 |
5196 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` | 5473 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
5197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5198 echo $ac_n "(cached) $ac_c" 1>&6 | 5475 echo $ac_n "(cached) $ac_c" 1>&6 |
5199 else | 5476 else |
5200 ac_save_LIBS="$LIBS" | 5477 ac_save_LIBS="$LIBS" |
5201 LIBS="-ltiff $tifflibs $LIBS" | 5478 LIBS="-ltiff $tifflibs $LIBS" |
5202 cat > conftest.$ac_ext <<EOF | 5479 cat > conftest.$ac_ext <<EOF |
5203 #line 5204 "configure" | 5480 #line 5481 "configure" |
5204 #include "confdefs.h" | 5481 #include "confdefs.h" |
5205 /* Override any gcc2 internal prototype to avoid an error. */ | 5482 /* Override any gcc2 internal prototype to avoid an error. */ |
5206 /* We use char because int might match the return type of a gcc2 | 5483 /* We use char because int might match the return type of a gcc2 |
5207 builtin and then its argument prototype would still apply. */ | 5484 builtin and then its argument prototype would still apply. */ |
5208 char TIFFGetVersion(); | 5485 char TIFFGetVersion(); |
5209 | 5486 |
5210 int main() { | 5487 int main() { |
5211 TIFFGetVersion() | 5488 TIFFGetVersion() |
5212 ; return 0; } | 5489 ; return 0; } |
5213 EOF | 5490 EOF |
5214 if { (eval echo configure:5215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5215 rm -rf conftest* | 5492 rm -rf conftest* |
5216 eval "ac_cv_lib_$ac_lib_var=yes" | 5493 eval "ac_cv_lib_$ac_lib_var=yes" |
5217 else | 5494 else |
5218 echo "configure: failed program was:" >&5 | 5495 echo "configure: failed program was:" >&5 |
5219 cat conftest.$ac_ext >&5 | 5496 cat conftest.$ac_ext >&5 |
5252 if test "${with_gif}" != "no"; then | 5529 if test "${with_gif}" != "no"; then |
5253 old_c_flags="${CFLAGS}" | 5530 old_c_flags="${CFLAGS}" |
5254 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5531 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
5255 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | 5532 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` |
5256 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | 5533 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 |
5257 echo "configure:5258: checking for gif_lib.h" >&5 | 5534 echo "configure:5535: checking for gif_lib.h" >&5 |
5258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5259 echo $ac_n "(cached) $ac_c" 1>&6 | 5536 echo $ac_n "(cached) $ac_c" 1>&6 |
5260 else | 5537 else |
5261 cat > conftest.$ac_ext <<EOF | 5538 cat > conftest.$ac_ext <<EOF |
5262 #line 5263 "configure" | 5539 #line 5540 "configure" |
5263 #include "confdefs.h" | 5540 #include "confdefs.h" |
5264 #include <gif_lib.h> | 5541 #include <gif_lib.h> |
5265 EOF | 5542 EOF |
5266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5267 { (eval echo configure:5268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5544 { (eval echo configure:5545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5269 if test -z "$ac_err"; then | 5546 if test -z "$ac_err"; then |
5270 rm -rf conftest* | 5547 rm -rf conftest* |
5271 eval "ac_cv_header_$ac_safe=yes" | 5548 eval "ac_cv_header_$ac_safe=yes" |
5272 else | 5549 else |
5279 rm -f conftest* | 5556 rm -f conftest* |
5280 fi | 5557 fi |
5281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5282 echo "$ac_t""yes" 1>&6 | 5559 echo "$ac_t""yes" 1>&6 |
5283 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 | 5560 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
5284 echo "configure:5285: checking for DGifOpen in -lungif" >&5 | 5561 echo "configure:5562: checking for DGifOpen in -lungif" >&5 |
5285 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` | 5562 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
5286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5287 echo $ac_n "(cached) $ac_c" 1>&6 | 5564 echo $ac_n "(cached) $ac_c" 1>&6 |
5288 else | 5565 else |
5289 ac_save_LIBS="$LIBS" | 5566 ac_save_LIBS="$LIBS" |
5290 LIBS="-lungif -lX11 $LIBS" | 5567 LIBS="-lungif -lX11 $LIBS" |
5291 cat > conftest.$ac_ext <<EOF | 5568 cat > conftest.$ac_ext <<EOF |
5292 #line 5293 "configure" | 5569 #line 5570 "configure" |
5293 #include "confdefs.h" | 5570 #include "confdefs.h" |
5294 /* Override any gcc2 internal prototype to avoid an error. */ | 5571 /* Override any gcc2 internal prototype to avoid an error. */ |
5295 /* We use char because int might match the return type of a gcc2 | 5572 /* We use char because int might match the return type of a gcc2 |
5296 builtin and then its argument prototype would still apply. */ | 5573 builtin and then its argument prototype would still apply. */ |
5297 char DGifOpen(); | 5574 char DGifOpen(); |
5298 | 5575 |
5299 int main() { | 5576 int main() { |
5300 DGifOpen() | 5577 DGifOpen() |
5301 ; return 0; } | 5578 ; return 0; } |
5302 EOF | 5579 EOF |
5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5580 if { (eval echo configure:5581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5304 rm -rf conftest* | 5581 rm -rf conftest* |
5305 eval "ac_cv_lib_$ac_lib_var=yes" | 5582 eval "ac_cv_lib_$ac_lib_var=yes" |
5306 else | 5583 else |
5307 echo "configure: failed program was:" >&5 | 5584 echo "configure: failed program was:" >&5 |
5308 cat conftest.$ac_ext >&5 | 5585 cat conftest.$ac_ext >&5 |
5335 fi | 5612 fi |
5336 fi | 5613 fi |
5337 | 5614 |
5338 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 5615 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
5339 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 5616 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
5340 echo "configure:5341: checking whether netdb declares h_errno" >&5 | 5617 echo "configure:5618: checking whether netdb declares h_errno" >&5 |
5341 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then | 5618 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
5342 echo $ac_n "(cached) $ac_c" 1>&6 | 5619 echo $ac_n "(cached) $ac_c" 1>&6 |
5343 else | 5620 else |
5344 cat > conftest.$ac_ext <<EOF | 5621 cat > conftest.$ac_ext <<EOF |
5345 #line 5346 "configure" | 5622 #line 5623 "configure" |
5346 #include "confdefs.h" | 5623 #include "confdefs.h" |
5347 #include <netdb.h> | 5624 #include <netdb.h> |
5348 int main() { | 5625 int main() { |
5349 return h_errno; | 5626 return h_errno; |
5350 ; return 0; } | 5627 ; return 0; } |
5351 EOF | 5628 EOF |
5352 if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5629 if { (eval echo configure:5630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5353 rm -rf conftest* | 5630 rm -rf conftest* |
5354 emacs_cv_netdb_declares_h_errno=yes | 5631 emacs_cv_netdb_declares_h_errno=yes |
5355 else | 5632 else |
5356 echo "configure: failed program was:" >&5 | 5633 echo "configure: failed program was:" >&5 |
5357 cat conftest.$ac_ext >&5 | 5634 cat conftest.$ac_ext >&5 |
5370 fi | 5647 fi |
5371 | 5648 |
5372 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 5649 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5373 # for constant arguments. Useless! | 5650 # for constant arguments. Useless! |
5374 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 5651 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
5375 echo "configure:5376: checking for working alloca.h" >&5 | 5652 echo "configure:5653: checking for working alloca.h" >&5 |
5376 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 5653 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
5377 echo $ac_n "(cached) $ac_c" 1>&6 | 5654 echo $ac_n "(cached) $ac_c" 1>&6 |
5378 else | 5655 else |
5379 cat > conftest.$ac_ext <<EOF | 5656 cat > conftest.$ac_ext <<EOF |
5380 #line 5381 "configure" | 5657 #line 5658 "configure" |
5381 #include "confdefs.h" | 5658 #include "confdefs.h" |
5382 #include <alloca.h> | 5659 #include <alloca.h> |
5383 int main() { | 5660 int main() { |
5384 char *p = alloca(2 * sizeof(int)); | 5661 char *p = alloca(2 * sizeof(int)); |
5385 ; return 0; } | 5662 ; return 0; } |
5386 EOF | 5663 EOF |
5387 if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5664 if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5388 rm -rf conftest* | 5665 rm -rf conftest* |
5389 ac_cv_header_alloca_h=yes | 5666 ac_cv_header_alloca_h=yes |
5390 else | 5667 else |
5391 echo "configure: failed program was:" >&5 | 5668 echo "configure: failed program was:" >&5 |
5392 cat conftest.$ac_ext >&5 | 5669 cat conftest.$ac_ext >&5 |
5403 EOF | 5680 EOF |
5404 | 5681 |
5405 fi | 5682 fi |
5406 | 5683 |
5407 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 5684 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
5408 echo "configure:5409: checking for alloca" >&5 | 5685 echo "configure:5686: checking for alloca" >&5 |
5409 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 5686 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
5410 echo $ac_n "(cached) $ac_c" 1>&6 | 5687 echo $ac_n "(cached) $ac_c" 1>&6 |
5411 else | 5688 else |
5412 cat > conftest.$ac_ext <<EOF | 5689 cat > conftest.$ac_ext <<EOF |
5413 #line 5414 "configure" | 5690 #line 5691 "configure" |
5414 #include "confdefs.h" | 5691 #include "confdefs.h" |
5415 | 5692 |
5416 #ifdef __GNUC__ | 5693 #ifdef __GNUC__ |
5417 # define alloca __builtin_alloca | 5694 # define alloca __builtin_alloca |
5418 #else | 5695 #else |
5436 | 5713 |
5437 int main() { | 5714 int main() { |
5438 char *p = (char *) alloca(1); | 5715 char *p = (char *) alloca(1); |
5439 ; return 0; } | 5716 ; return 0; } |
5440 EOF | 5717 EOF |
5441 if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5718 if { (eval echo configure:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5442 rm -rf conftest* | 5719 rm -rf conftest* |
5443 ac_cv_func_alloca_works=yes | 5720 ac_cv_func_alloca_works=yes |
5444 else | 5721 else |
5445 echo "configure: failed program was:" >&5 | 5722 echo "configure: failed program was:" >&5 |
5446 cat conftest.$ac_ext >&5 | 5723 cat conftest.$ac_ext >&5 |
5468 #define C_ALLOCA 1 | 5745 #define C_ALLOCA 1 |
5469 EOF | 5746 EOF |
5470 | 5747 |
5471 | 5748 |
5472 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 5749 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
5473 echo "configure:5474: checking whether alloca needs Cray hooks" >&5 | 5750 echo "configure:5751: checking whether alloca needs Cray hooks" >&5 |
5474 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 5751 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5475 echo $ac_n "(cached) $ac_c" 1>&6 | 5752 echo $ac_n "(cached) $ac_c" 1>&6 |
5476 else | 5753 else |
5477 cat > conftest.$ac_ext <<EOF | 5754 cat > conftest.$ac_ext <<EOF |
5478 #line 5479 "configure" | 5755 #line 5756 "configure" |
5479 #include "confdefs.h" | 5756 #include "confdefs.h" |
5480 #if defined(CRAY) && ! defined(CRAY2) | 5757 #if defined(CRAY) && ! defined(CRAY2) |
5481 webecray | 5758 webecray |
5482 #else | 5759 #else |
5483 wenotbecray | 5760 wenotbecray |
5498 | 5775 |
5499 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 5776 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
5500 if test $ac_cv_os_cray = yes; then | 5777 if test $ac_cv_os_cray = yes; then |
5501 for ac_func in _getb67 GETB67 getb67; do | 5778 for ac_func in _getb67 GETB67 getb67; do |
5502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5503 echo "configure:5504: checking for $ac_func" >&5 | 5780 echo "configure:5781: checking for $ac_func" >&5 |
5504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5505 echo $ac_n "(cached) $ac_c" 1>&6 | 5782 echo $ac_n "(cached) $ac_c" 1>&6 |
5506 else | 5783 else |
5507 cat > conftest.$ac_ext <<EOF | 5784 cat > conftest.$ac_ext <<EOF |
5508 #line 5509 "configure" | 5785 #line 5786 "configure" |
5509 #include "confdefs.h" | 5786 #include "confdefs.h" |
5510 /* System header to define __stub macros and hopefully few prototypes, | 5787 /* System header to define __stub macros and hopefully few prototypes, |
5511 which can conflict with char $ac_func(); below. */ | 5788 which can conflict with char $ac_func(); below. */ |
5512 #include <assert.h> | 5789 #include <assert.h> |
5513 /* Override any gcc2 internal prototype to avoid an error. */ | 5790 /* Override any gcc2 internal prototype to avoid an error. */ |
5526 $ac_func(); | 5803 $ac_func(); |
5527 #endif | 5804 #endif |
5528 | 5805 |
5529 ; return 0; } | 5806 ; return 0; } |
5530 EOF | 5807 EOF |
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5808 if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5532 rm -rf conftest* | 5809 rm -rf conftest* |
5533 eval "ac_cv_func_$ac_func=yes" | 5810 eval "ac_cv_func_$ac_func=yes" |
5534 else | 5811 else |
5535 echo "configure: failed program was:" >&5 | 5812 echo "configure: failed program was:" >&5 |
5536 cat conftest.$ac_ext >&5 | 5813 cat conftest.$ac_ext >&5 |
5553 | 5830 |
5554 done | 5831 done |
5555 fi | 5832 fi |
5556 | 5833 |
5557 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 5834 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
5558 echo "configure:5559: checking stack direction for C alloca" >&5 | 5835 echo "configure:5836: checking stack direction for C alloca" >&5 |
5559 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 5836 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5560 echo $ac_n "(cached) $ac_c" 1>&6 | 5837 echo $ac_n "(cached) $ac_c" 1>&6 |
5561 else | 5838 else |
5562 if test "$cross_compiling" = yes; then | 5839 if test "$cross_compiling" = yes; then |
5563 ac_cv_c_stack_direction=0 | 5840 ac_cv_c_stack_direction=0 |
5564 else | 5841 else |
5565 cat > conftest.$ac_ext <<EOF | 5842 cat > conftest.$ac_ext <<EOF |
5566 #line 5567 "configure" | 5843 #line 5844 "configure" |
5567 #include "confdefs.h" | 5844 #include "confdefs.h" |
5568 find_stack_direction () | 5845 find_stack_direction () |
5569 { | 5846 { |
5570 static char *addr = 0; | 5847 static char *addr = 0; |
5571 auto char dummy; | 5848 auto char dummy; |
5580 main () | 5857 main () |
5581 { | 5858 { |
5582 exit (find_stack_direction() < 0); | 5859 exit (find_stack_direction() < 0); |
5583 } | 5860 } |
5584 EOF | 5861 EOF |
5585 if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 5862 if { (eval echo configure:5863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5586 then | 5863 then |
5587 ac_cv_c_stack_direction=1 | 5864 ac_cv_c_stack_direction=1 |
5588 else | 5865 else |
5589 echo "configure: failed program was:" >&5 | 5866 echo "configure: failed program was:" >&5 |
5590 cat conftest.$ac_ext >&5 | 5867 cat conftest.$ac_ext >&5 |
5605 | 5882 |
5606 | 5883 |
5607 # fmod, logb, and frexp are found in -lm on most systems. | 5884 # fmod, logb, and frexp are found in -lm on most systems. |
5608 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 5885 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
5609 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | 5886 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
5610 echo "configure:5611: checking for sqrt in -lm" >&5 | 5887 echo "configure:5888: checking for sqrt in -lm" >&5 |
5611 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | 5888 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
5612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5613 echo $ac_n "(cached) $ac_c" 1>&6 | 5890 echo $ac_n "(cached) $ac_c" 1>&6 |
5614 else | 5891 else |
5615 ac_save_LIBS="$LIBS" | 5892 ac_save_LIBS="$LIBS" |
5616 LIBS="-lm $LIBS" | 5893 LIBS="-lm $LIBS" |
5617 cat > conftest.$ac_ext <<EOF | 5894 cat > conftest.$ac_ext <<EOF |
5618 #line 5619 "configure" | 5895 #line 5896 "configure" |
5619 #include "confdefs.h" | 5896 #include "confdefs.h" |
5620 /* Override any gcc2 internal prototype to avoid an error. */ | 5897 /* Override any gcc2 internal prototype to avoid an error. */ |
5621 /* We use char because int might match the return type of a gcc2 | 5898 /* We use char because int might match the return type of a gcc2 |
5622 builtin and then its argument prototype would still apply. */ | 5899 builtin and then its argument prototype would still apply. */ |
5623 char sqrt(); | 5900 char sqrt(); |
5624 | 5901 |
5625 int main() { | 5902 int main() { |
5626 sqrt() | 5903 sqrt() |
5627 ; return 0; } | 5904 ; return 0; } |
5628 EOF | 5905 EOF |
5629 if { (eval echo configure:5630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5906 if { (eval echo configure:5907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5630 rm -rf conftest* | 5907 rm -rf conftest* |
5631 eval "ac_cv_lib_$ac_lib_var=yes" | 5908 eval "ac_cv_lib_$ac_lib_var=yes" |
5632 else | 5909 else |
5633 echo "configure: failed program was:" >&5 | 5910 echo "configure: failed program was:" >&5 |
5634 cat conftest.$ac_ext >&5 | 5911 cat conftest.$ac_ext >&5 |
5654 fi | 5931 fi |
5655 | 5932 |
5656 | 5933 |
5657 # Check for mail-locking functions in a "mail" library | 5934 # Check for mail-locking functions in a "mail" library |
5658 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | 5935 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 |
5659 echo "configure:5660: checking for maillock in -lmail" >&5 | 5936 echo "configure:5937: checking for maillock in -lmail" >&5 |
5660 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` | 5937 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
5661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5662 echo $ac_n "(cached) $ac_c" 1>&6 | 5939 echo $ac_n "(cached) $ac_c" 1>&6 |
5663 else | 5940 else |
5664 ac_save_LIBS="$LIBS" | 5941 ac_save_LIBS="$LIBS" |
5665 LIBS="-lmail $LIBS" | 5942 LIBS="-lmail $LIBS" |
5666 cat > conftest.$ac_ext <<EOF | 5943 cat > conftest.$ac_ext <<EOF |
5667 #line 5668 "configure" | 5944 #line 5945 "configure" |
5668 #include "confdefs.h" | 5945 #include "confdefs.h" |
5669 /* Override any gcc2 internal prototype to avoid an error. */ | 5946 /* Override any gcc2 internal prototype to avoid an error. */ |
5670 /* We use char because int might match the return type of a gcc2 | 5947 /* We use char because int might match the return type of a gcc2 |
5671 builtin and then its argument prototype would still apply. */ | 5948 builtin and then its argument prototype would still apply. */ |
5672 char maillock(); | 5949 char maillock(); |
5673 | 5950 |
5674 int main() { | 5951 int main() { |
5675 maillock() | 5952 maillock() |
5676 ; return 0; } | 5953 ; return 0; } |
5677 EOF | 5954 EOF |
5678 if { (eval echo configure:5679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5955 if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5679 rm -rf conftest* | 5956 rm -rf conftest* |
5680 eval "ac_cv_lib_$ac_lib_var=yes" | 5957 eval "ac_cv_lib_$ac_lib_var=yes" |
5681 else | 5958 else |
5682 echo "configure: failed program was:" >&5 | 5959 echo "configure: failed program was:" >&5 |
5683 cat conftest.$ac_ext >&5 | 5960 cat conftest.$ac_ext >&5 |
5701 else | 5978 else |
5702 echo "$ac_t""no" 1>&6 | 5979 echo "$ac_t""no" 1>&6 |
5703 fi | 5980 fi |
5704 | 5981 |
5705 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | 5982 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 |
5706 echo "configure:5707: checking for maillock in -llockfile" >&5 | 5983 echo "configure:5984: checking for maillock in -llockfile" >&5 |
5707 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` | 5984 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5709 echo $ac_n "(cached) $ac_c" 1>&6 | 5986 echo $ac_n "(cached) $ac_c" 1>&6 |
5710 else | 5987 else |
5711 ac_save_LIBS="$LIBS" | 5988 ac_save_LIBS="$LIBS" |
5712 LIBS="-llockfile $LIBS" | 5989 LIBS="-llockfile $LIBS" |
5713 cat > conftest.$ac_ext <<EOF | 5990 cat > conftest.$ac_ext <<EOF |
5714 #line 5715 "configure" | 5991 #line 5992 "configure" |
5715 #include "confdefs.h" | 5992 #include "confdefs.h" |
5716 /* Override any gcc2 internal prototype to avoid an error. */ | 5993 /* Override any gcc2 internal prototype to avoid an error. */ |
5717 /* We use char because int might match the return type of a gcc2 | 5994 /* We use char because int might match the return type of a gcc2 |
5718 builtin and then its argument prototype would still apply. */ | 5995 builtin and then its argument prototype would still apply. */ |
5719 char maillock(); | 5996 char maillock(); |
5720 | 5997 |
5721 int main() { | 5998 int main() { |
5722 maillock() | 5999 maillock() |
5723 ; return 0; } | 6000 ; return 0; } |
5724 EOF | 6001 EOF |
5725 if { (eval echo configure:5726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6002 if { (eval echo configure:6003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5726 rm -rf conftest* | 6003 rm -rf conftest* |
5727 eval "ac_cv_lib_$ac_lib_var=yes" | 6004 eval "ac_cv_lib_$ac_lib_var=yes" |
5728 else | 6005 else |
5729 echo "configure: failed program was:" >&5 | 6006 echo "configure: failed program was:" >&5 |
5730 cat conftest.$ac_ext >&5 | 6007 cat conftest.$ac_ext >&5 |
5754 # (no liblockfile.a installed), ensure that we don't need to. | 6031 # (no liblockfile.a installed), ensure that we don't need to. |
5755 if test "$ac_cv_lib_lockfile_maillock" = no; then | 6032 if test "$ac_cv_lib_lockfile_maillock" = no; then |
5756 # Extract the first word of "liblockfile.so", so it can be a program name with args. | 6033 # Extract the first word of "liblockfile.so", so it can be a program name with args. |
5757 set dummy liblockfile.so; ac_word=$2 | 6034 set dummy liblockfile.so; ac_word=$2 |
5758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 6035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5759 echo "configure:5760: checking for $ac_word" >&5 | 6036 echo "configure:6037: checking for $ac_word" >&5 |
5760 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then | 6037 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5761 echo $ac_n "(cached) $ac_c" 1>&6 | 6038 echo $ac_n "(cached) $ac_c" 1>&6 |
5762 else | 6039 else |
5763 if test -n "$liblockfile"; then | 6040 if test -n "$liblockfile"; then |
5764 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 6041 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
5795 else : | 6072 else : |
5796 fi | 6073 fi |
5797 for ac_func in touchlock | 6074 for ac_func in touchlock |
5798 do | 6075 do |
5799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5800 echo "configure:5801: checking for $ac_func" >&5 | 6077 echo "configure:6078: checking for $ac_func" >&5 |
5801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5802 echo $ac_n "(cached) $ac_c" 1>&6 | 6079 echo $ac_n "(cached) $ac_c" 1>&6 |
5803 else | 6080 else |
5804 cat > conftest.$ac_ext <<EOF | 6081 cat > conftest.$ac_ext <<EOF |
5805 #line 5806 "configure" | 6082 #line 6083 "configure" |
5806 #include "confdefs.h" | 6083 #include "confdefs.h" |
5807 /* System header to define __stub macros and hopefully few prototypes, | 6084 /* System header to define __stub macros and hopefully few prototypes, |
5808 which can conflict with char $ac_func(); below. */ | 6085 which can conflict with char $ac_func(); below. */ |
5809 #include <assert.h> | 6086 #include <assert.h> |
5810 /* Override any gcc2 internal prototype to avoid an error. */ | 6087 /* Override any gcc2 internal prototype to avoid an error. */ |
5823 $ac_func(); | 6100 $ac_func(); |
5824 #endif | 6101 #endif |
5825 | 6102 |
5826 ; return 0; } | 6103 ; return 0; } |
5827 EOF | 6104 EOF |
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6105 if { (eval echo configure:6106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5829 rm -rf conftest* | 6106 rm -rf conftest* |
5830 eval "ac_cv_func_$ac_func=yes" | 6107 eval "ac_cv_func_$ac_func=yes" |
5831 else | 6108 else |
5832 echo "configure: failed program was:" >&5 | 6109 echo "configure: failed program was:" >&5 |
5833 cat conftest.$ac_ext >&5 | 6110 cat conftest.$ac_ext >&5 |
5851 | 6128 |
5852 for ac_hdr in maillock.h | 6129 for ac_hdr in maillock.h |
5853 do | 6130 do |
5854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6131 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6132 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5856 echo "configure:5857: checking for $ac_hdr" >&5 | 6133 echo "configure:6134: checking for $ac_hdr" >&5 |
5857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5858 echo $ac_n "(cached) $ac_c" 1>&6 | 6135 echo $ac_n "(cached) $ac_c" 1>&6 |
5859 else | 6136 else |
5860 cat > conftest.$ac_ext <<EOF | 6137 cat > conftest.$ac_ext <<EOF |
5861 #line 5862 "configure" | 6138 #line 6139 "configure" |
5862 #include "confdefs.h" | 6139 #include "confdefs.h" |
5863 #include <$ac_hdr> | 6140 #include <$ac_hdr> |
5864 EOF | 6141 EOF |
5865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5866 { (eval echo configure:5867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6143 { (eval echo configure:6144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5868 if test -z "$ac_err"; then | 6145 if test -z "$ac_err"; then |
5869 rm -rf conftest* | 6146 rm -rf conftest* |
5870 eval "ac_cv_header_$ac_safe=yes" | 6147 eval "ac_cv_header_$ac_safe=yes" |
5871 else | 6148 else |
5896 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 6173 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
5897 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | 6174 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
5898 __fpending mblen mbrlen strsignal setitimer ualarm index rindex | 6175 __fpending mblen mbrlen strsignal setitimer ualarm index rindex |
5899 do | 6176 do |
5900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5901 echo "configure:5902: checking for $ac_func" >&5 | 6178 echo "configure:6179: checking for $ac_func" >&5 |
5902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5903 echo $ac_n "(cached) $ac_c" 1>&6 | 6180 echo $ac_n "(cached) $ac_c" 1>&6 |
5904 else | 6181 else |
5905 cat > conftest.$ac_ext <<EOF | 6182 cat > conftest.$ac_ext <<EOF |
5906 #line 5907 "configure" | 6183 #line 6184 "configure" |
5907 #include "confdefs.h" | 6184 #include "confdefs.h" |
5908 /* System header to define __stub macros and hopefully few prototypes, | 6185 /* System header to define __stub macros and hopefully few prototypes, |
5909 which can conflict with char $ac_func(); below. */ | 6186 which can conflict with char $ac_func(); below. */ |
5910 #include <assert.h> | 6187 #include <assert.h> |
5911 /* Override any gcc2 internal prototype to avoid an error. */ | 6188 /* Override any gcc2 internal prototype to avoid an error. */ |
5924 $ac_func(); | 6201 $ac_func(); |
5925 #endif | 6202 #endif |
5926 | 6203 |
5927 ; return 0; } | 6204 ; return 0; } |
5928 EOF | 6205 EOF |
5929 if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5930 rm -rf conftest* | 6207 rm -rf conftest* |
5931 eval "ac_cv_func_$ac_func=yes" | 6208 eval "ac_cv_func_$ac_func=yes" |
5932 else | 6209 else |
5933 echo "configure: failed program was:" >&5 | 6210 echo "configure: failed program was:" >&5 |
5934 cat conftest.$ac_ext >&5 | 6211 cat conftest.$ac_ext >&5 |
5953 | 6230 |
5954 for ac_hdr in sys/time.h unistd.h | 6231 for ac_hdr in sys/time.h unistd.h |
5955 do | 6232 do |
5956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5958 echo "configure:5959: checking for $ac_hdr" >&5 | 6235 echo "configure:6236: checking for $ac_hdr" >&5 |
5959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5960 echo $ac_n "(cached) $ac_c" 1>&6 | 6237 echo $ac_n "(cached) $ac_c" 1>&6 |
5961 else | 6238 else |
5962 cat > conftest.$ac_ext <<EOF | 6239 cat > conftest.$ac_ext <<EOF |
5963 #line 5964 "configure" | 6240 #line 6241 "configure" |
5964 #include "confdefs.h" | 6241 #include "confdefs.h" |
5965 #include <$ac_hdr> | 6242 #include <$ac_hdr> |
5966 EOF | 6243 EOF |
5967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5968 { (eval echo configure:5969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6245 { (eval echo configure:6246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5970 if test -z "$ac_err"; then | 6247 if test -z "$ac_err"; then |
5971 rm -rf conftest* | 6248 rm -rf conftest* |
5972 eval "ac_cv_header_$ac_safe=yes" | 6249 eval "ac_cv_header_$ac_safe=yes" |
5973 else | 6250 else |
5992 done | 6269 done |
5993 | 6270 |
5994 for ac_func in alarm | 6271 for ac_func in alarm |
5995 do | 6272 do |
5996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5997 echo "configure:5998: checking for $ac_func" >&5 | 6274 echo "configure:6275: checking for $ac_func" >&5 |
5998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5999 echo $ac_n "(cached) $ac_c" 1>&6 | 6276 echo $ac_n "(cached) $ac_c" 1>&6 |
6000 else | 6277 else |
6001 cat > conftest.$ac_ext <<EOF | 6278 cat > conftest.$ac_ext <<EOF |
6002 #line 6003 "configure" | 6279 #line 6280 "configure" |
6003 #include "confdefs.h" | 6280 #include "confdefs.h" |
6004 /* System header to define __stub macros and hopefully few prototypes, | 6281 /* System header to define __stub macros and hopefully few prototypes, |
6005 which can conflict with char $ac_func(); below. */ | 6282 which can conflict with char $ac_func(); below. */ |
6006 #include <assert.h> | 6283 #include <assert.h> |
6007 /* Override any gcc2 internal prototype to avoid an error. */ | 6284 /* Override any gcc2 internal prototype to avoid an error. */ |
6020 $ac_func(); | 6297 $ac_func(); |
6021 #endif | 6298 #endif |
6022 | 6299 |
6023 ; return 0; } | 6300 ; return 0; } |
6024 EOF | 6301 EOF |
6025 if { (eval echo configure:6026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6302 if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6026 rm -rf conftest* | 6303 rm -rf conftest* |
6027 eval "ac_cv_func_$ac_func=yes" | 6304 eval "ac_cv_func_$ac_func=yes" |
6028 else | 6305 else |
6029 echo "configure: failed program was:" >&5 | 6306 echo "configure: failed program was:" >&5 |
6030 cat conftest.$ac_ext >&5 | 6307 cat conftest.$ac_ext >&5 |
6045 echo "$ac_t""no" 1>&6 | 6322 echo "$ac_t""no" 1>&6 |
6046 fi | 6323 fi |
6047 done | 6324 done |
6048 | 6325 |
6049 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | 6326 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 |
6050 echo "configure:6051: checking for working mktime" >&5 | 6327 echo "configure:6328: checking for working mktime" >&5 |
6051 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then | 6328 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then |
6052 echo $ac_n "(cached) $ac_c" 1>&6 | 6329 echo $ac_n "(cached) $ac_c" 1>&6 |
6053 else | 6330 else |
6054 if test "$cross_compiling" = yes; then | 6331 if test "$cross_compiling" = yes; then |
6055 ac_cv_func_working_mktime=no | 6332 ac_cv_func_working_mktime=no |
6056 else | 6333 else |
6057 cat > conftest.$ac_ext <<EOF | 6334 cat > conftest.$ac_ext <<EOF |
6058 #line 6059 "configure" | 6335 #line 6336 "configure" |
6059 #include "confdefs.h" | 6336 #include "confdefs.h" |
6060 /* Test program from Paul Eggert (eggert@twinsun.com) | 6337 /* Test program from Paul Eggert (eggert@twinsun.com) |
6061 and Tony Leneis (tony@plaza.ds.adp.com). */ | 6338 and Tony Leneis (tony@plaza.ds.adp.com). */ |
6062 #if TIME_WITH_SYS_TIME | 6339 #if TIME_WITH_SYS_TIME |
6063 # include <sys/time.h> | 6340 # include <sys/time.h> |
6202 irix_6_4_bug (); | 6479 irix_6_4_bug (); |
6203 spring_forward_gap (); | 6480 spring_forward_gap (); |
6204 exit (0); | 6481 exit (0); |
6205 } | 6482 } |
6206 EOF | 6483 EOF |
6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 6484 if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6208 then | 6485 then |
6209 ac_cv_func_working_mktime=yes | 6486 ac_cv_func_working_mktime=yes |
6210 else | 6487 else |
6211 echo "configure: failed program was:" >&5 | 6488 echo "configure: failed program was:" >&5 |
6212 cat conftest.$ac_ext >&5 | 6489 cat conftest.$ac_ext >&5 |
6234 | 6511 |
6235 # Some systems with -lutil have (and need) -lkvm as well, some do not. | 6512 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
6236 # On Solaris, -lkvm requires nlist from -lelf, so check that first | 6513 # On Solaris, -lkvm requires nlist from -lelf, so check that first |
6237 # to get the right answer into the cache. | 6514 # to get the right answer into the cache. |
6238 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | 6515 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 |
6239 echo "configure:6240: checking for elf_begin in -lelf" >&5 | 6516 echo "configure:6517: checking for elf_begin in -lelf" >&5 |
6240 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` | 6517 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` |
6241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6242 echo $ac_n "(cached) $ac_c" 1>&6 | 6519 echo $ac_n "(cached) $ac_c" 1>&6 |
6243 else | 6520 else |
6244 ac_save_LIBS="$LIBS" | 6521 ac_save_LIBS="$LIBS" |
6245 LIBS="-lelf $LIBS" | 6522 LIBS="-lelf $LIBS" |
6246 cat > conftest.$ac_ext <<EOF | 6523 cat > conftest.$ac_ext <<EOF |
6247 #line 6248 "configure" | 6524 #line 6525 "configure" |
6248 #include "confdefs.h" | 6525 #include "confdefs.h" |
6249 /* Override any gcc2 internal prototype to avoid an error. */ | 6526 /* Override any gcc2 internal prototype to avoid an error. */ |
6250 /* We use char because int might match the return type of a gcc2 | 6527 /* We use char because int might match the return type of a gcc2 |
6251 builtin and then its argument prototype would still apply. */ | 6528 builtin and then its argument prototype would still apply. */ |
6252 char elf_begin(); | 6529 char elf_begin(); |
6253 | 6530 |
6254 int main() { | 6531 int main() { |
6255 elf_begin() | 6532 elf_begin() |
6256 ; return 0; } | 6533 ; return 0; } |
6257 EOF | 6534 EOF |
6258 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6535 if { (eval echo configure:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6259 rm -rf conftest* | 6536 rm -rf conftest* |
6260 eval "ac_cv_lib_$ac_lib_var=yes" | 6537 eval "ac_cv_lib_$ac_lib_var=yes" |
6261 else | 6538 else |
6262 echo "configure: failed program was:" >&5 | 6539 echo "configure: failed program was:" >&5 |
6263 cat conftest.$ac_ext >&5 | 6540 cat conftest.$ac_ext >&5 |
6274 else | 6551 else |
6275 echo "$ac_t""no" 1>&6 | 6552 echo "$ac_t""no" 1>&6 |
6276 fi | 6553 fi |
6277 | 6554 |
6278 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | 6555 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 |
6279 echo "configure:6280: checking for kvm_open in -lkvm" >&5 | 6556 echo "configure:6557: checking for kvm_open in -lkvm" >&5 |
6280 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` | 6557 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` |
6281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6282 echo $ac_n "(cached) $ac_c" 1>&6 | 6559 echo $ac_n "(cached) $ac_c" 1>&6 |
6283 else | 6560 else |
6284 ac_save_LIBS="$LIBS" | 6561 ac_save_LIBS="$LIBS" |
6285 LIBS="-lkvm $LIBS" | 6562 LIBS="-lkvm $LIBS" |
6286 cat > conftest.$ac_ext <<EOF | 6563 cat > conftest.$ac_ext <<EOF |
6287 #line 6288 "configure" | 6564 #line 6565 "configure" |
6288 #include "confdefs.h" | 6565 #include "confdefs.h" |
6289 /* Override any gcc2 internal prototype to avoid an error. */ | 6566 /* Override any gcc2 internal prototype to avoid an error. */ |
6290 /* We use char because int might match the return type of a gcc2 | 6567 /* We use char because int might match the return type of a gcc2 |
6291 builtin and then its argument prototype would still apply. */ | 6568 builtin and then its argument prototype would still apply. */ |
6292 char kvm_open(); | 6569 char kvm_open(); |
6293 | 6570 |
6294 int main() { | 6571 int main() { |
6295 kvm_open() | 6572 kvm_open() |
6296 ; return 0; } | 6573 ; return 0; } |
6297 EOF | 6574 EOF |
6298 if { (eval echo configure:6299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6575 if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6299 rm -rf conftest* | 6576 rm -rf conftest* |
6300 eval "ac_cv_lib_$ac_lib_var=yes" | 6577 eval "ac_cv_lib_$ac_lib_var=yes" |
6301 else | 6578 else |
6302 echo "configure: failed program was:" >&5 | 6579 echo "configure: failed program was:" >&5 |
6303 cat conftest.$ac_ext >&5 | 6580 cat conftest.$ac_ext >&5 |
6315 echo "$ac_t""no" 1>&6 | 6592 echo "$ac_t""no" 1>&6 |
6316 fi | 6593 fi |
6317 | 6594 |
6318 # Check for the 4.4BSD definition of getloadavg. | 6595 # Check for the 4.4BSD definition of getloadavg. |
6319 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | 6596 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 |
6320 echo "configure:6321: checking for getloadavg in -lutil" >&5 | 6597 echo "configure:6598: checking for getloadavg in -lutil" >&5 |
6321 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` | 6598 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` |
6322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6323 echo $ac_n "(cached) $ac_c" 1>&6 | 6600 echo $ac_n "(cached) $ac_c" 1>&6 |
6324 else | 6601 else |
6325 ac_save_LIBS="$LIBS" | 6602 ac_save_LIBS="$LIBS" |
6326 LIBS="-lutil $LIBS" | 6603 LIBS="-lutil $LIBS" |
6327 cat > conftest.$ac_ext <<EOF | 6604 cat > conftest.$ac_ext <<EOF |
6328 #line 6329 "configure" | 6605 #line 6606 "configure" |
6329 #include "confdefs.h" | 6606 #include "confdefs.h" |
6330 /* Override any gcc2 internal prototype to avoid an error. */ | 6607 /* Override any gcc2 internal prototype to avoid an error. */ |
6331 /* We use char because int might match the return type of a gcc2 | 6608 /* We use char because int might match the return type of a gcc2 |
6332 builtin and then its argument prototype would still apply. */ | 6609 builtin and then its argument prototype would still apply. */ |
6333 char getloadavg(); | 6610 char getloadavg(); |
6334 | 6611 |
6335 int main() { | 6612 int main() { |
6336 getloadavg() | 6613 getloadavg() |
6337 ; return 0; } | 6614 ; return 0; } |
6338 EOF | 6615 EOF |
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6340 rm -rf conftest* | 6617 rm -rf conftest* |
6341 eval "ac_cv_lib_$ac_lib_var=yes" | 6618 eval "ac_cv_lib_$ac_lib_var=yes" |
6342 else | 6619 else |
6343 echo "configure: failed program was:" >&5 | 6620 echo "configure: failed program was:" >&5 |
6344 cat conftest.$ac_ext >&5 | 6621 cat conftest.$ac_ext >&5 |
6360 if test $ac_have_func = no; then | 6637 if test $ac_have_func = no; then |
6361 # There is a commonly available library for RS/6000 AIX. | 6638 # There is a commonly available library for RS/6000 AIX. |
6362 # Since it is not a standard part of AIX, it might be installed locally. | 6639 # Since it is not a standard part of AIX, it might be installed locally. |
6363 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | 6640 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" |
6364 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | 6641 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 |
6365 echo "configure:6366: checking for getloadavg in -lgetloadavg" >&5 | 6642 echo "configure:6643: checking for getloadavg in -lgetloadavg" >&5 |
6366 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` | 6643 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` |
6367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6368 echo $ac_n "(cached) $ac_c" 1>&6 | 6645 echo $ac_n "(cached) $ac_c" 1>&6 |
6369 else | 6646 else |
6370 ac_save_LIBS="$LIBS" | 6647 ac_save_LIBS="$LIBS" |
6371 LIBS="-lgetloadavg $LIBS" | 6648 LIBS="-lgetloadavg $LIBS" |
6372 cat > conftest.$ac_ext <<EOF | 6649 cat > conftest.$ac_ext <<EOF |
6373 #line 6374 "configure" | 6650 #line 6651 "configure" |
6374 #include "confdefs.h" | 6651 #include "confdefs.h" |
6375 /* Override any gcc2 internal prototype to avoid an error. */ | 6652 /* Override any gcc2 internal prototype to avoid an error. */ |
6376 /* We use char because int might match the return type of a gcc2 | 6653 /* We use char because int might match the return type of a gcc2 |
6377 builtin and then its argument prototype would still apply. */ | 6654 builtin and then its argument prototype would still apply. */ |
6378 char getloadavg(); | 6655 char getloadavg(); |
6379 | 6656 |
6380 int main() { | 6657 int main() { |
6381 getloadavg() | 6658 getloadavg() |
6382 ; return 0; } | 6659 ; return 0; } |
6383 EOF | 6660 EOF |
6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6385 rm -rf conftest* | 6662 rm -rf conftest* |
6386 eval "ac_cv_lib_$ac_lib_var=yes" | 6663 eval "ac_cv_lib_$ac_lib_var=yes" |
6387 else | 6664 else |
6388 echo "configure: failed program was:" >&5 | 6665 echo "configure: failed program was:" >&5 |
6389 cat conftest.$ac_ext >&5 | 6666 cat conftest.$ac_ext >&5 |
6406 | 6683 |
6407 # Make sure it is really in the library, if we think we found it. | 6684 # Make sure it is really in the library, if we think we found it. |
6408 for ac_func in getloadavg | 6685 for ac_func in getloadavg |
6409 do | 6686 do |
6410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6411 echo "configure:6412: checking for $ac_func" >&5 | 6688 echo "configure:6689: checking for $ac_func" >&5 |
6412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6413 echo $ac_n "(cached) $ac_c" 1>&6 | 6690 echo $ac_n "(cached) $ac_c" 1>&6 |
6414 else | 6691 else |
6415 cat > conftest.$ac_ext <<EOF | 6692 cat > conftest.$ac_ext <<EOF |
6416 #line 6417 "configure" | 6693 #line 6694 "configure" |
6417 #include "confdefs.h" | 6694 #include "confdefs.h" |
6418 /* System header to define __stub macros and hopefully few prototypes, | 6695 /* System header to define __stub macros and hopefully few prototypes, |
6419 which can conflict with char $ac_func(); below. */ | 6696 which can conflict with char $ac_func(); below. */ |
6420 #include <assert.h> | 6697 #include <assert.h> |
6421 /* Override any gcc2 internal prototype to avoid an error. */ | 6698 /* Override any gcc2 internal prototype to avoid an error. */ |
6434 $ac_func(); | 6711 $ac_func(); |
6435 #endif | 6712 #endif |
6436 | 6713 |
6437 ; return 0; } | 6714 ; return 0; } |
6438 EOF | 6715 EOF |
6439 if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6716 if { (eval echo configure:6717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6440 rm -rf conftest* | 6717 rm -rf conftest* |
6441 eval "ac_cv_func_$ac_func=yes" | 6718 eval "ac_cv_func_$ac_func=yes" |
6442 else | 6719 else |
6443 echo "configure: failed program was:" >&5 | 6720 echo "configure: failed program was:" >&5 |
6444 cat conftest.$ac_ext >&5 | 6721 cat conftest.$ac_ext >&5 |
6472 else | 6749 else |
6473 # Figure out what our getloadavg.c needs. | 6750 # Figure out what our getloadavg.c needs. |
6474 ac_have_func=no | 6751 ac_have_func=no |
6475 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | 6752 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` |
6476 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | 6753 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 |
6477 echo "configure:6478: checking for sys/dg_sys_info.h" >&5 | 6754 echo "configure:6755: checking for sys/dg_sys_info.h" >&5 |
6478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6479 echo $ac_n "(cached) $ac_c" 1>&6 | 6756 echo $ac_n "(cached) $ac_c" 1>&6 |
6480 else | 6757 else |
6481 cat > conftest.$ac_ext <<EOF | 6758 cat > conftest.$ac_ext <<EOF |
6482 #line 6483 "configure" | 6759 #line 6760 "configure" |
6483 #include "confdefs.h" | 6760 #include "confdefs.h" |
6484 #include <sys/dg_sys_info.h> | 6761 #include <sys/dg_sys_info.h> |
6485 EOF | 6762 EOF |
6486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6487 { (eval echo configure:6488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6764 { (eval echo configure:6765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6489 if test -z "$ac_err"; then | 6766 if test -z "$ac_err"; then |
6490 rm -rf conftest* | 6767 rm -rf conftest* |
6491 eval "ac_cv_header_$ac_safe=yes" | 6768 eval "ac_cv_header_$ac_safe=yes" |
6492 else | 6769 else |
6503 ac_have_func=yes; cat >> confdefs.h <<\EOF | 6780 ac_have_func=yes; cat >> confdefs.h <<\EOF |
6504 #define DGUX 1 | 6781 #define DGUX 1 |
6505 EOF | 6782 EOF |
6506 | 6783 |
6507 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | 6784 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 |
6508 echo "configure:6509: checking for dg_sys_info in -ldgc" >&5 | 6785 echo "configure:6786: checking for dg_sys_info in -ldgc" >&5 |
6509 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` | 6786 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` |
6510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6511 echo $ac_n "(cached) $ac_c" 1>&6 | 6788 echo $ac_n "(cached) $ac_c" 1>&6 |
6512 else | 6789 else |
6513 ac_save_LIBS="$LIBS" | 6790 ac_save_LIBS="$LIBS" |
6514 LIBS="-ldgc $LIBS" | 6791 LIBS="-ldgc $LIBS" |
6515 cat > conftest.$ac_ext <<EOF | 6792 cat > conftest.$ac_ext <<EOF |
6516 #line 6517 "configure" | 6793 #line 6794 "configure" |
6517 #include "confdefs.h" | 6794 #include "confdefs.h" |
6518 /* Override any gcc2 internal prototype to avoid an error. */ | 6795 /* Override any gcc2 internal prototype to avoid an error. */ |
6519 /* We use char because int might match the return type of a gcc2 | 6796 /* We use char because int might match the return type of a gcc2 |
6520 builtin and then its argument prototype would still apply. */ | 6797 builtin and then its argument prototype would still apply. */ |
6521 char dg_sys_info(); | 6798 char dg_sys_info(); |
6522 | 6799 |
6523 int main() { | 6800 int main() { |
6524 dg_sys_info() | 6801 dg_sys_info() |
6525 ; return 0; } | 6802 ; return 0; } |
6526 EOF | 6803 EOF |
6527 if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6804 if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6528 rm -rf conftest* | 6805 rm -rf conftest* |
6529 eval "ac_cv_lib_$ac_lib_var=yes" | 6806 eval "ac_cv_lib_$ac_lib_var=yes" |
6530 else | 6807 else |
6531 echo "configure: failed program was:" >&5 | 6808 echo "configure: failed program was:" >&5 |
6532 cat conftest.$ac_ext >&5 | 6809 cat conftest.$ac_ext >&5 |
6567 fi | 6844 fi |
6568 | 6845 |
6569 if test $ac_have_func = no; then | 6846 if test $ac_have_func = no; then |
6570 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | 6847 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` |
6571 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | 6848 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 |
6572 echo "configure:6573: checking for inq_stats/cpustats.h" >&5 | 6849 echo "configure:6850: checking for inq_stats/cpustats.h" >&5 |
6573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6574 echo $ac_n "(cached) $ac_c" 1>&6 | 6851 echo $ac_n "(cached) $ac_c" 1>&6 |
6575 else | 6852 else |
6576 cat > conftest.$ac_ext <<EOF | 6853 cat > conftest.$ac_ext <<EOF |
6577 #line 6578 "configure" | 6854 #line 6855 "configure" |
6578 #include "confdefs.h" | 6855 #include "confdefs.h" |
6579 #include <inq_stats/cpustats.h> | 6856 #include <inq_stats/cpustats.h> |
6580 EOF | 6857 EOF |
6581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6582 { (eval echo configure:6583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6859 { (eval echo configure:6860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6584 if test -z "$ac_err"; then | 6861 if test -z "$ac_err"; then |
6585 rm -rf conftest* | 6862 rm -rf conftest* |
6586 eval "ac_cv_header_$ac_safe=yes" | 6863 eval "ac_cv_header_$ac_safe=yes" |
6587 else | 6864 else |
6610 fi | 6887 fi |
6611 | 6888 |
6612 if test $ac_have_func = no; then | 6889 if test $ac_have_func = no; then |
6613 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | 6890 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` |
6614 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | 6891 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 |
6615 echo "configure:6616: checking for sys/cpustats.h" >&5 | 6892 echo "configure:6893: checking for sys/cpustats.h" >&5 |
6616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6893 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6617 echo $ac_n "(cached) $ac_c" 1>&6 | 6894 echo $ac_n "(cached) $ac_c" 1>&6 |
6618 else | 6895 else |
6619 cat > conftest.$ac_ext <<EOF | 6896 cat > conftest.$ac_ext <<EOF |
6620 #line 6621 "configure" | 6897 #line 6898 "configure" |
6621 #include "confdefs.h" | 6898 #include "confdefs.h" |
6622 #include <sys/cpustats.h> | 6899 #include <sys/cpustats.h> |
6623 EOF | 6900 EOF |
6624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6625 { (eval echo configure:6626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6902 { (eval echo configure:6903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6627 if test -z "$ac_err"; then | 6904 if test -z "$ac_err"; then |
6628 rm -rf conftest* | 6905 rm -rf conftest* |
6629 eval "ac_cv_header_$ac_safe=yes" | 6906 eval "ac_cv_header_$ac_safe=yes" |
6630 else | 6907 else |
6651 if test $ac_have_func = no; then | 6928 if test $ac_have_func = no; then |
6652 for ac_hdr in mach/mach.h | 6929 for ac_hdr in mach/mach.h |
6653 do | 6930 do |
6654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6931 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6932 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6656 echo "configure:6657: checking for $ac_hdr" >&5 | 6933 echo "configure:6934: checking for $ac_hdr" >&5 |
6657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6934 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6658 echo $ac_n "(cached) $ac_c" 1>&6 | 6935 echo $ac_n "(cached) $ac_c" 1>&6 |
6659 else | 6936 else |
6660 cat > conftest.$ac_ext <<EOF | 6937 cat > conftest.$ac_ext <<EOF |
6661 #line 6662 "configure" | 6938 #line 6939 "configure" |
6662 #include "confdefs.h" | 6939 #include "confdefs.h" |
6663 #include <$ac_hdr> | 6940 #include <$ac_hdr> |
6664 EOF | 6941 EOF |
6665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6942 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6666 { (eval echo configure:6667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6943 { (eval echo configure:6944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6944 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6668 if test -z "$ac_err"; then | 6945 if test -z "$ac_err"; then |
6669 rm -rf conftest* | 6946 rm -rf conftest* |
6670 eval "ac_cv_header_$ac_safe=yes" | 6947 eval "ac_cv_header_$ac_safe=yes" |
6671 else | 6948 else |
6691 | 6968 |
6692 fi | 6969 fi |
6693 | 6970 |
6694 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 6971 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
6695 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 6972 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
6696 echo "configure:6697: checking for nlist.h" >&5 | 6973 echo "configure:6974: checking for nlist.h" >&5 |
6697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6698 echo $ac_n "(cached) $ac_c" 1>&6 | 6975 echo $ac_n "(cached) $ac_c" 1>&6 |
6699 else | 6976 else |
6700 cat > conftest.$ac_ext <<EOF | 6977 cat > conftest.$ac_ext <<EOF |
6701 #line 6702 "configure" | 6978 #line 6979 "configure" |
6702 #include "confdefs.h" | 6979 #include "confdefs.h" |
6703 #include <nlist.h> | 6980 #include <nlist.h> |
6704 EOF | 6981 EOF |
6705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6706 { (eval echo configure:6707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6983 { (eval echo configure:6984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6708 if test -z "$ac_err"; then | 6985 if test -z "$ac_err"; then |
6709 rm -rf conftest* | 6986 rm -rf conftest* |
6710 eval "ac_cv_header_$ac_safe=yes" | 6987 eval "ac_cv_header_$ac_safe=yes" |
6711 else | 6988 else |
6722 cat >> confdefs.h <<\EOF | 6999 cat >> confdefs.h <<\EOF |
6723 #define NLIST_STRUCT 1 | 7000 #define NLIST_STRUCT 1 |
6724 EOF | 7001 EOF |
6725 | 7002 |
6726 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | 7003 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 |
6727 echo "configure:6728: checking for n_un in struct nlist" >&5 | 7004 echo "configure:7005: checking for n_un in struct nlist" >&5 |
6728 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then | 7005 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then |
6729 echo $ac_n "(cached) $ac_c" 1>&6 | 7006 echo $ac_n "(cached) $ac_c" 1>&6 |
6730 else | 7007 else |
6731 cat > conftest.$ac_ext <<EOF | 7008 cat > conftest.$ac_ext <<EOF |
6732 #line 6733 "configure" | 7009 #line 7010 "configure" |
6733 #include "confdefs.h" | 7010 #include "confdefs.h" |
6734 #include <nlist.h> | 7011 #include <nlist.h> |
6735 int main() { | 7012 int main() { |
6736 struct nlist n; n.n_un.n_name = 0; | 7013 struct nlist n; n.n_un.n_name = 0; |
6737 ; return 0; } | 7014 ; return 0; } |
6738 EOF | 7015 EOF |
6739 if { (eval echo configure:6740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 7016 if { (eval echo configure:7017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6740 rm -rf conftest* | 7017 rm -rf conftest* |
6741 ac_cv_struct_nlist_n_un=yes | 7018 ac_cv_struct_nlist_n_un=yes |
6742 else | 7019 else |
6743 echo "configure: failed program was:" >&5 | 7020 echo "configure: failed program was:" >&5 |
6744 cat conftest.$ac_ext >&5 | 7021 cat conftest.$ac_ext >&5 |
6761 fi | 7038 fi |
6762 fi # Do not have getloadavg in system libraries. | 7039 fi # Do not have getloadavg in system libraries. |
6763 | 7040 |
6764 # Some definitions of getloadavg require that the program be installed setgid. | 7041 # Some definitions of getloadavg require that the program be installed setgid. |
6765 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | 7042 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 |
6766 echo "configure:6767: checking whether getloadavg requires setgid" >&5 | 7043 echo "configure:7044: checking whether getloadavg requires setgid" >&5 |
6767 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then | 7044 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then |
6768 echo $ac_n "(cached) $ac_c" 1>&6 | 7045 echo $ac_n "(cached) $ac_c" 1>&6 |
6769 else | 7046 else |
6770 cat > conftest.$ac_ext <<EOF | 7047 cat > conftest.$ac_ext <<EOF |
6771 #line 6772 "configure" | 7048 #line 7049 "configure" |
6772 #include "confdefs.h" | 7049 #include "confdefs.h" |
6773 #include "$srcdir/getloadavg.c" | 7050 #include "$srcdir/getloadavg.c" |
6774 #ifdef LDAV_PRIVILEGED | 7051 #ifdef LDAV_PRIVILEGED |
6775 Yowza Am I SETGID yet | 7052 Yowza Am I SETGID yet |
6776 #endif | 7053 #endif |
6797 NEED_SETGID=false | 7074 NEED_SETGID=false |
6798 fi | 7075 fi |
6799 | 7076 |
6800 if test $ac_cv_func_getloadavg_setgid = yes; then | 7077 if test $ac_cv_func_getloadavg_setgid = yes; then |
6801 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | 7078 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 |
6802 echo "configure:6803: checking group of /dev/kmem" >&5 | 7079 echo "configure:7080: checking group of /dev/kmem" >&5 |
6803 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then | 7080 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then |
6804 echo $ac_n "(cached) $ac_c" 1>&6 | 7081 echo $ac_n "(cached) $ac_c" 1>&6 |
6805 else | 7082 else |
6806 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | 7083 # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
6807 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | 7084 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
6820 | 7097 |
6821 | 7098 |
6822 for ac_func in ftello | 7099 for ac_func in ftello |
6823 do | 7100 do |
6824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6825 echo "configure:6826: checking for $ac_func" >&5 | 7102 echo "configure:7103: checking for $ac_func" >&5 |
6826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6827 echo $ac_n "(cached) $ac_c" 1>&6 | 7104 echo $ac_n "(cached) $ac_c" 1>&6 |
6828 else | 7105 else |
6829 cat > conftest.$ac_ext <<EOF | 7106 cat > conftest.$ac_ext <<EOF |
6830 #line 6831 "configure" | 7107 #line 7108 "configure" |
6831 #include "confdefs.h" | 7108 #include "confdefs.h" |
6832 /* System header to define __stub macros and hopefully few prototypes, | 7109 /* System header to define __stub macros and hopefully few prototypes, |
6833 which can conflict with char $ac_func(); below. */ | 7110 which can conflict with char $ac_func(); below. */ |
6834 #include <assert.h> | 7111 #include <assert.h> |
6835 /* Override any gcc2 internal prototype to avoid an error. */ | 7112 /* Override any gcc2 internal prototype to avoid an error. */ |
6848 $ac_func(); | 7125 $ac_func(); |
6849 #endif | 7126 #endif |
6850 | 7127 |
6851 ; return 0; } | 7128 ; return 0; } |
6852 EOF | 7129 EOF |
6853 if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7130 if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6854 rm -rf conftest* | 7131 rm -rf conftest* |
6855 eval "ac_cv_func_$ac_func=yes" | 7132 eval "ac_cv_func_$ac_func=yes" |
6856 else | 7133 else |
6857 echo "configure: failed program was:" >&5 | 7134 echo "configure: failed program was:" >&5 |
6858 cat conftest.$ac_ext >&5 | 7135 cat conftest.$ac_ext >&5 |
6878 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE | 7155 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE |
6879 # if we need it. | 7156 # if we need it. |
6880 for ac_func in grantpt | 7157 for ac_func in grantpt |
6881 do | 7158 do |
6882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6883 echo "configure:6884: checking for $ac_func" >&5 | 7160 echo "configure:7161: checking for $ac_func" >&5 |
6884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6885 echo $ac_n "(cached) $ac_c" 1>&6 | 7162 echo $ac_n "(cached) $ac_c" 1>&6 |
6886 else | 7163 else |
6887 cat > conftest.$ac_ext <<EOF | 7164 cat > conftest.$ac_ext <<EOF |
6888 #line 6889 "configure" | 7165 #line 7166 "configure" |
6889 #include "confdefs.h" | 7166 #include "confdefs.h" |
6890 /* System header to define __stub macros and hopefully few prototypes, | 7167 /* System header to define __stub macros and hopefully few prototypes, |
6891 which can conflict with char $ac_func(); below. */ | 7168 which can conflict with char $ac_func(); below. */ |
6892 #include <assert.h> | 7169 #include <assert.h> |
6893 /* Override any gcc2 internal prototype to avoid an error. */ | 7170 /* Override any gcc2 internal prototype to avoid an error. */ |
6906 $ac_func(); | 7183 $ac_func(); |
6907 #endif | 7184 #endif |
6908 | 7185 |
6909 ; return 0; } | 7186 ; return 0; } |
6910 EOF | 7187 EOF |
6911 if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7188 if { (eval echo configure:7189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6912 rm -rf conftest* | 7189 rm -rf conftest* |
6913 eval "ac_cv_func_$ac_func=yes" | 7190 eval "ac_cv_func_$ac_func=yes" |
6914 else | 7191 else |
6915 echo "configure: failed program was:" >&5 | 7192 echo "configure: failed program was:" >&5 |
6916 cat conftest.$ac_ext >&5 | 7193 cat conftest.$ac_ext >&5 |
6935 | 7212 |
6936 # PTY-related GNU extensions. | 7213 # PTY-related GNU extensions. |
6937 for ac_func in getpt | 7214 for ac_func in getpt |
6938 do | 7215 do |
6939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6940 echo "configure:6941: checking for $ac_func" >&5 | 7217 echo "configure:7218: checking for $ac_func" >&5 |
6941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6942 echo $ac_n "(cached) $ac_c" 1>&6 | 7219 echo $ac_n "(cached) $ac_c" 1>&6 |
6943 else | 7220 else |
6944 cat > conftest.$ac_ext <<EOF | 7221 cat > conftest.$ac_ext <<EOF |
6945 #line 6946 "configure" | 7222 #line 7223 "configure" |
6946 #include "confdefs.h" | 7223 #include "confdefs.h" |
6947 /* System header to define __stub macros and hopefully few prototypes, | 7224 /* System header to define __stub macros and hopefully few prototypes, |
6948 which can conflict with char $ac_func(); below. */ | 7225 which can conflict with char $ac_func(); below. */ |
6949 #include <assert.h> | 7226 #include <assert.h> |
6950 /* Override any gcc2 internal prototype to avoid an error. */ | 7227 /* Override any gcc2 internal prototype to avoid an error. */ |
6963 $ac_func(); | 7240 $ac_func(); |
6964 #endif | 7241 #endif |
6965 | 7242 |
6966 ; return 0; } | 7243 ; return 0; } |
6967 EOF | 7244 EOF |
6968 if { (eval echo configure:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7245 if { (eval echo configure:7246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6969 rm -rf conftest* | 7246 rm -rf conftest* |
6970 eval "ac_cv_func_$ac_func=yes" | 7247 eval "ac_cv_func_$ac_func=yes" |
6971 else | 7248 else |
6972 echo "configure: failed program was:" >&5 | 7249 echo "configure: failed program was:" >&5 |
6973 cat conftest.$ac_ext >&5 | 7250 cat conftest.$ac_ext >&5 |
6993 # Check this now, so that we will NOT find the above functions in ncurses. | 7270 # Check this now, so that we will NOT find the above functions in ncurses. |
6994 # That is because we have not set up to link ncurses in lib-src. | 7271 # That is because we have not set up to link ncurses in lib-src. |
6995 # It's better to believe a function is not available | 7272 # It's better to believe a function is not available |
6996 # than to expect to find it in ncurses. | 7273 # than to expect to find it in ncurses. |
6997 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 7274 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 |
6998 echo "configure:6999: checking for tparm in -lncurses" >&5 | 7275 echo "configure:7276: checking for tparm in -lncurses" >&5 |
6999 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 7276 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
7000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7001 echo $ac_n "(cached) $ac_c" 1>&6 | 7278 echo $ac_n "(cached) $ac_c" 1>&6 |
7002 else | 7279 else |
7003 ac_save_LIBS="$LIBS" | 7280 ac_save_LIBS="$LIBS" |
7004 LIBS="-lncurses $LIBS" | 7281 LIBS="-lncurses $LIBS" |
7005 cat > conftest.$ac_ext <<EOF | 7282 cat > conftest.$ac_ext <<EOF |
7006 #line 7007 "configure" | 7283 #line 7284 "configure" |
7007 #include "confdefs.h" | 7284 #include "confdefs.h" |
7008 /* Override any gcc2 internal prototype to avoid an error. */ | 7285 /* Override any gcc2 internal prototype to avoid an error. */ |
7009 /* We use char because int might match the return type of a gcc2 | 7286 /* We use char because int might match the return type of a gcc2 |
7010 builtin and then its argument prototype would still apply. */ | 7287 builtin and then its argument prototype would still apply. */ |
7011 char tparm(); | 7288 char tparm(); |
7012 | 7289 |
7013 int main() { | 7290 int main() { |
7014 tparm() | 7291 tparm() |
7015 ; return 0; } | 7292 ; return 0; } |
7016 EOF | 7293 EOF |
7017 if { (eval echo configure:7018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7018 rm -rf conftest* | 7295 rm -rf conftest* |
7019 eval "ac_cv_lib_$ac_lib_var=yes" | 7296 eval "ac_cv_lib_$ac_lib_var=yes" |
7020 else | 7297 else |
7021 echo "configure: failed program was:" >&5 | 7298 echo "configure: failed program was:" >&5 |
7022 cat conftest.$ac_ext >&5 | 7299 cat conftest.$ac_ext >&5 |
7043 | 7320 |
7044 | 7321 |
7045 # These tell us which Kerberos-related libraries to use. | 7322 # These tell us which Kerberos-related libraries to use. |
7046 if test "${with_kerberos+set}" = set; then | 7323 if test "${with_kerberos+set}" = set; then |
7047 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 | 7324 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
7048 echo "configure:7049: checking for com_err in -lcom_err" >&5 | 7325 echo "configure:7326: checking for com_err in -lcom_err" >&5 |
7049 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` | 7326 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
7050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7051 echo $ac_n "(cached) $ac_c" 1>&6 | 7328 echo $ac_n "(cached) $ac_c" 1>&6 |
7052 else | 7329 else |
7053 ac_save_LIBS="$LIBS" | 7330 ac_save_LIBS="$LIBS" |
7054 LIBS="-lcom_err $LIBS" | 7331 LIBS="-lcom_err $LIBS" |
7055 cat > conftest.$ac_ext <<EOF | 7332 cat > conftest.$ac_ext <<EOF |
7056 #line 7057 "configure" | 7333 #line 7334 "configure" |
7057 #include "confdefs.h" | 7334 #include "confdefs.h" |
7058 /* Override any gcc2 internal prototype to avoid an error. */ | 7335 /* Override any gcc2 internal prototype to avoid an error. */ |
7059 /* We use char because int might match the return type of a gcc2 | 7336 /* We use char because int might match the return type of a gcc2 |
7060 builtin and then its argument prototype would still apply. */ | 7337 builtin and then its argument prototype would still apply. */ |
7061 char com_err(); | 7338 char com_err(); |
7062 | 7339 |
7063 int main() { | 7340 int main() { |
7064 com_err() | 7341 com_err() |
7065 ; return 0; } | 7342 ; return 0; } |
7066 EOF | 7343 EOF |
7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7344 if { (eval echo configure:7345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7068 rm -rf conftest* | 7345 rm -rf conftest* |
7069 eval "ac_cv_lib_$ac_lib_var=yes" | 7346 eval "ac_cv_lib_$ac_lib_var=yes" |
7070 else | 7347 else |
7071 echo "configure: failed program was:" >&5 | 7348 echo "configure: failed program was:" >&5 |
7072 cat conftest.$ac_ext >&5 | 7349 cat conftest.$ac_ext >&5 |
7090 else | 7367 else |
7091 echo "$ac_t""no" 1>&6 | 7368 echo "$ac_t""no" 1>&6 |
7092 fi | 7369 fi |
7093 | 7370 |
7094 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 | 7371 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
7095 echo "configure:7096: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 7372 echo "configure:7373: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
7096 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7373 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7374 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7098 echo $ac_n "(cached) $ac_c" 1>&6 | 7375 echo $ac_n "(cached) $ac_c" 1>&6 |
7099 else | 7376 else |
7100 ac_save_LIBS="$LIBS" | 7377 ac_save_LIBS="$LIBS" |
7101 LIBS="-lk5crypto $LIBS" | 7378 LIBS="-lk5crypto $LIBS" |
7102 cat > conftest.$ac_ext <<EOF | 7379 cat > conftest.$ac_ext <<EOF |
7103 #line 7104 "configure" | 7380 #line 7381 "configure" |
7104 #include "confdefs.h" | 7381 #include "confdefs.h" |
7105 /* Override any gcc2 internal prototype to avoid an error. */ | 7382 /* Override any gcc2 internal prototype to avoid an error. */ |
7106 /* We use char because int might match the return type of a gcc2 | 7383 /* We use char because int might match the return type of a gcc2 |
7107 builtin and then its argument prototype would still apply. */ | 7384 builtin and then its argument prototype would still apply. */ |
7108 char mit_des_cbc_encrypt(); | 7385 char mit_des_cbc_encrypt(); |
7109 | 7386 |
7110 int main() { | 7387 int main() { |
7111 mit_des_cbc_encrypt() | 7388 mit_des_cbc_encrypt() |
7112 ; return 0; } | 7389 ; return 0; } |
7113 EOF | 7390 EOF |
7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7115 rm -rf conftest* | 7392 rm -rf conftest* |
7116 eval "ac_cv_lib_$ac_lib_var=yes" | 7393 eval "ac_cv_lib_$ac_lib_var=yes" |
7117 else | 7394 else |
7118 echo "configure: failed program was:" >&5 | 7395 echo "configure: failed program was:" >&5 |
7119 cat conftest.$ac_ext >&5 | 7396 cat conftest.$ac_ext >&5 |
7137 else | 7414 else |
7138 echo "$ac_t""no" 1>&6 | 7415 echo "$ac_t""no" 1>&6 |
7139 fi | 7416 fi |
7140 | 7417 |
7141 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 | 7418 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
7142 echo "configure:7143: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 7419 echo "configure:7420: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
7143 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7420 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7145 echo $ac_n "(cached) $ac_c" 1>&6 | 7422 echo $ac_n "(cached) $ac_c" 1>&6 |
7146 else | 7423 else |
7147 ac_save_LIBS="$LIBS" | 7424 ac_save_LIBS="$LIBS" |
7148 LIBS="-lcrypto $LIBS" | 7425 LIBS="-lcrypto $LIBS" |
7149 cat > conftest.$ac_ext <<EOF | 7426 cat > conftest.$ac_ext <<EOF |
7150 #line 7151 "configure" | 7427 #line 7428 "configure" |
7151 #include "confdefs.h" | 7428 #include "confdefs.h" |
7152 /* Override any gcc2 internal prototype to avoid an error. */ | 7429 /* Override any gcc2 internal prototype to avoid an error. */ |
7153 /* We use char because int might match the return type of a gcc2 | 7430 /* We use char because int might match the return type of a gcc2 |
7154 builtin and then its argument prototype would still apply. */ | 7431 builtin and then its argument prototype would still apply. */ |
7155 char mit_des_cbc_encrypt(); | 7432 char mit_des_cbc_encrypt(); |
7156 | 7433 |
7157 int main() { | 7434 int main() { |
7158 mit_des_cbc_encrypt() | 7435 mit_des_cbc_encrypt() |
7159 ; return 0; } | 7436 ; return 0; } |
7160 EOF | 7437 EOF |
7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7438 if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7162 rm -rf conftest* | 7439 rm -rf conftest* |
7163 eval "ac_cv_lib_$ac_lib_var=yes" | 7440 eval "ac_cv_lib_$ac_lib_var=yes" |
7164 else | 7441 else |
7165 echo "configure: failed program was:" >&5 | 7442 echo "configure: failed program was:" >&5 |
7166 cat conftest.$ac_ext >&5 | 7443 cat conftest.$ac_ext >&5 |
7184 else | 7461 else |
7185 echo "$ac_t""no" 1>&6 | 7462 echo "$ac_t""no" 1>&6 |
7186 fi | 7463 fi |
7187 | 7464 |
7188 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 | 7465 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
7189 echo "configure:7190: checking for krb5_init_context in -lkrb5" >&5 | 7466 echo "configure:7467: checking for krb5_init_context in -lkrb5" >&5 |
7190 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` | 7467 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
7191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7192 echo $ac_n "(cached) $ac_c" 1>&6 | 7469 echo $ac_n "(cached) $ac_c" 1>&6 |
7193 else | 7470 else |
7194 ac_save_LIBS="$LIBS" | 7471 ac_save_LIBS="$LIBS" |
7195 LIBS="-lkrb5 $LIBS" | 7472 LIBS="-lkrb5 $LIBS" |
7196 cat > conftest.$ac_ext <<EOF | 7473 cat > conftest.$ac_ext <<EOF |
7197 #line 7198 "configure" | 7474 #line 7475 "configure" |
7198 #include "confdefs.h" | 7475 #include "confdefs.h" |
7199 /* Override any gcc2 internal prototype to avoid an error. */ | 7476 /* Override any gcc2 internal prototype to avoid an error. */ |
7200 /* We use char because int might match the return type of a gcc2 | 7477 /* We use char because int might match the return type of a gcc2 |
7201 builtin and then its argument prototype would still apply. */ | 7478 builtin and then its argument prototype would still apply. */ |
7202 char krb5_init_context(); | 7479 char krb5_init_context(); |
7203 | 7480 |
7204 int main() { | 7481 int main() { |
7205 krb5_init_context() | 7482 krb5_init_context() |
7206 ; return 0; } | 7483 ; return 0; } |
7207 EOF | 7484 EOF |
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7209 rm -rf conftest* | 7486 rm -rf conftest* |
7210 eval "ac_cv_lib_$ac_lib_var=yes" | 7487 eval "ac_cv_lib_$ac_lib_var=yes" |
7211 else | 7488 else |
7212 echo "configure: failed program was:" >&5 | 7489 echo "configure: failed program was:" >&5 |
7213 cat conftest.$ac_ext >&5 | 7490 cat conftest.$ac_ext >&5 |
7232 echo "$ac_t""no" 1>&6 | 7509 echo "$ac_t""no" 1>&6 |
7233 fi | 7510 fi |
7234 | 7511 |
7235 if test "${with_kerberos5+set}" != set; then | 7512 if test "${with_kerberos5+set}" != set; then |
7236 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | 7513 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
7237 echo "configure:7238: checking for des_cbc_encrypt in -ldes425" >&5 | 7514 echo "configure:7515: checking for des_cbc_encrypt in -ldes425" >&5 |
7238 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7515 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7240 echo $ac_n "(cached) $ac_c" 1>&6 | 7517 echo $ac_n "(cached) $ac_c" 1>&6 |
7241 else | 7518 else |
7242 ac_save_LIBS="$LIBS" | 7519 ac_save_LIBS="$LIBS" |
7243 LIBS="-ldes425 $LIBS" | 7520 LIBS="-ldes425 $LIBS" |
7244 cat > conftest.$ac_ext <<EOF | 7521 cat > conftest.$ac_ext <<EOF |
7245 #line 7246 "configure" | 7522 #line 7523 "configure" |
7246 #include "confdefs.h" | 7523 #include "confdefs.h" |
7247 /* Override any gcc2 internal prototype to avoid an error. */ | 7524 /* Override any gcc2 internal prototype to avoid an error. */ |
7248 /* We use char because int might match the return type of a gcc2 | 7525 /* We use char because int might match the return type of a gcc2 |
7249 builtin and then its argument prototype would still apply. */ | 7526 builtin and then its argument prototype would still apply. */ |
7250 char des_cbc_encrypt(); | 7527 char des_cbc_encrypt(); |
7251 | 7528 |
7252 int main() { | 7529 int main() { |
7253 des_cbc_encrypt() | 7530 des_cbc_encrypt() |
7254 ; return 0; } | 7531 ; return 0; } |
7255 EOF | 7532 EOF |
7256 if { (eval echo configure:7257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7257 rm -rf conftest* | 7534 rm -rf conftest* |
7258 eval "ac_cv_lib_$ac_lib_var=yes" | 7535 eval "ac_cv_lib_$ac_lib_var=yes" |
7259 else | 7536 else |
7260 echo "configure: failed program was:" >&5 | 7537 echo "configure: failed program was:" >&5 |
7261 cat conftest.$ac_ext >&5 | 7538 cat conftest.$ac_ext >&5 |
7277 LIBS="-ldes425 $LIBS" | 7554 LIBS="-ldes425 $LIBS" |
7278 | 7555 |
7279 else | 7556 else |
7280 echo "$ac_t""no" 1>&6 | 7557 echo "$ac_t""no" 1>&6 |
7281 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | 7558 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
7282 echo "configure:7283: checking for des_cbc_encrypt in -ldes" >&5 | 7559 echo "configure:7560: checking for des_cbc_encrypt in -ldes" >&5 |
7283 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7560 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7285 echo $ac_n "(cached) $ac_c" 1>&6 | 7562 echo $ac_n "(cached) $ac_c" 1>&6 |
7286 else | 7563 else |
7287 ac_save_LIBS="$LIBS" | 7564 ac_save_LIBS="$LIBS" |
7288 LIBS="-ldes $LIBS" | 7565 LIBS="-ldes $LIBS" |
7289 cat > conftest.$ac_ext <<EOF | 7566 cat > conftest.$ac_ext <<EOF |
7290 #line 7291 "configure" | 7567 #line 7568 "configure" |
7291 #include "confdefs.h" | 7568 #include "confdefs.h" |
7292 /* Override any gcc2 internal prototype to avoid an error. */ | 7569 /* Override any gcc2 internal prototype to avoid an error. */ |
7293 /* We use char because int might match the return type of a gcc2 | 7570 /* We use char because int might match the return type of a gcc2 |
7294 builtin and then its argument prototype would still apply. */ | 7571 builtin and then its argument prototype would still apply. */ |
7295 char des_cbc_encrypt(); | 7572 char des_cbc_encrypt(); |
7296 | 7573 |
7297 int main() { | 7574 int main() { |
7298 des_cbc_encrypt() | 7575 des_cbc_encrypt() |
7299 ; return 0; } | 7576 ; return 0; } |
7300 EOF | 7577 EOF |
7301 if { (eval echo configure:7302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7578 if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7302 rm -rf conftest* | 7579 rm -rf conftest* |
7303 eval "ac_cv_lib_$ac_lib_var=yes" | 7580 eval "ac_cv_lib_$ac_lib_var=yes" |
7304 else | 7581 else |
7305 echo "configure: failed program was:" >&5 | 7582 echo "configure: failed program was:" >&5 |
7306 cat conftest.$ac_ext >&5 | 7583 cat conftest.$ac_ext >&5 |
7326 fi | 7603 fi |
7327 | 7604 |
7328 fi | 7605 fi |
7329 | 7606 |
7330 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 | 7607 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
7331 echo "configure:7332: checking for krb_get_cred in -lkrb4" >&5 | 7608 echo "configure:7609: checking for krb_get_cred in -lkrb4" >&5 |
7332 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7609 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7334 echo $ac_n "(cached) $ac_c" 1>&6 | 7611 echo $ac_n "(cached) $ac_c" 1>&6 |
7335 else | 7612 else |
7336 ac_save_LIBS="$LIBS" | 7613 ac_save_LIBS="$LIBS" |
7337 LIBS="-lkrb4 $LIBS" | 7614 LIBS="-lkrb4 $LIBS" |
7338 cat > conftest.$ac_ext <<EOF | 7615 cat > conftest.$ac_ext <<EOF |
7339 #line 7340 "configure" | 7616 #line 7617 "configure" |
7340 #include "confdefs.h" | 7617 #include "confdefs.h" |
7341 /* Override any gcc2 internal prototype to avoid an error. */ | 7618 /* Override any gcc2 internal prototype to avoid an error. */ |
7342 /* We use char because int might match the return type of a gcc2 | 7619 /* We use char because int might match the return type of a gcc2 |
7343 builtin and then its argument prototype would still apply. */ | 7620 builtin and then its argument prototype would still apply. */ |
7344 char krb_get_cred(); | 7621 char krb_get_cred(); |
7345 | 7622 |
7346 int main() { | 7623 int main() { |
7347 krb_get_cred() | 7624 krb_get_cred() |
7348 ; return 0; } | 7625 ; return 0; } |
7349 EOF | 7626 EOF |
7350 if { (eval echo configure:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7627 if { (eval echo configure:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7351 rm -rf conftest* | 7628 rm -rf conftest* |
7352 eval "ac_cv_lib_$ac_lib_var=yes" | 7629 eval "ac_cv_lib_$ac_lib_var=yes" |
7353 else | 7630 else |
7354 echo "configure: failed program was:" >&5 | 7631 echo "configure: failed program was:" >&5 |
7355 cat conftest.$ac_ext >&5 | 7632 cat conftest.$ac_ext >&5 |
7371 LIBS="-lkrb4 $LIBS" | 7648 LIBS="-lkrb4 $LIBS" |
7372 | 7649 |
7373 else | 7650 else |
7374 echo "$ac_t""no" 1>&6 | 7651 echo "$ac_t""no" 1>&6 |
7375 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 | 7652 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
7376 echo "configure:7377: checking for krb_get_cred in -lkrb" >&5 | 7653 echo "configure:7654: checking for krb_get_cred in -lkrb" >&5 |
7377 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7654 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7379 echo $ac_n "(cached) $ac_c" 1>&6 | 7656 echo $ac_n "(cached) $ac_c" 1>&6 |
7380 else | 7657 else |
7381 ac_save_LIBS="$LIBS" | 7658 ac_save_LIBS="$LIBS" |
7382 LIBS="-lkrb $LIBS" | 7659 LIBS="-lkrb $LIBS" |
7383 cat > conftest.$ac_ext <<EOF | 7660 cat > conftest.$ac_ext <<EOF |
7384 #line 7385 "configure" | 7661 #line 7662 "configure" |
7385 #include "confdefs.h" | 7662 #include "confdefs.h" |
7386 /* Override any gcc2 internal prototype to avoid an error. */ | 7663 /* Override any gcc2 internal prototype to avoid an error. */ |
7387 /* We use char because int might match the return type of a gcc2 | 7664 /* We use char because int might match the return type of a gcc2 |
7388 builtin and then its argument prototype would still apply. */ | 7665 builtin and then its argument prototype would still apply. */ |
7389 char krb_get_cred(); | 7666 char krb_get_cred(); |
7390 | 7667 |
7391 int main() { | 7668 int main() { |
7392 krb_get_cred() | 7669 krb_get_cred() |
7393 ; return 0; } | 7670 ; return 0; } |
7394 EOF | 7671 EOF |
7395 if { (eval echo configure:7396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7672 if { (eval echo configure:7673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7396 rm -rf conftest* | 7673 rm -rf conftest* |
7397 eval "ac_cv_lib_$ac_lib_var=yes" | 7674 eval "ac_cv_lib_$ac_lib_var=yes" |
7398 else | 7675 else |
7399 echo "configure: failed program was:" >&5 | 7676 echo "configure: failed program was:" >&5 |
7400 cat conftest.$ac_ext >&5 | 7677 cat conftest.$ac_ext >&5 |
7426 if test "${with_kerberos5+set}" = set; then | 7703 if test "${with_kerberos5+set}" = set; then |
7427 for ac_hdr in krb5.h | 7704 for ac_hdr in krb5.h |
7428 do | 7705 do |
7429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7431 echo "configure:7432: checking for $ac_hdr" >&5 | 7708 echo "configure:7709: checking for $ac_hdr" >&5 |
7432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7433 echo $ac_n "(cached) $ac_c" 1>&6 | 7710 echo $ac_n "(cached) $ac_c" 1>&6 |
7434 else | 7711 else |
7435 cat > conftest.$ac_ext <<EOF | 7712 cat > conftest.$ac_ext <<EOF |
7436 #line 7437 "configure" | 7713 #line 7714 "configure" |
7437 #include "confdefs.h" | 7714 #include "confdefs.h" |
7438 #include <$ac_hdr> | 7715 #include <$ac_hdr> |
7439 EOF | 7716 EOF |
7440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7441 { (eval echo configure:7442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7718 { (eval echo configure:7719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7443 if test -z "$ac_err"; then | 7720 if test -z "$ac_err"; then |
7444 rm -rf conftest* | 7721 rm -rf conftest* |
7445 eval "ac_cv_header_$ac_safe=yes" | 7722 eval "ac_cv_header_$ac_safe=yes" |
7446 else | 7723 else |
7467 else | 7744 else |
7468 for ac_hdr in des.h | 7745 for ac_hdr in des.h |
7469 do | 7746 do |
7470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7472 echo "configure:7473: checking for $ac_hdr" >&5 | 7749 echo "configure:7750: checking for $ac_hdr" >&5 |
7473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7474 echo $ac_n "(cached) $ac_c" 1>&6 | 7751 echo $ac_n "(cached) $ac_c" 1>&6 |
7475 else | 7752 else |
7476 cat > conftest.$ac_ext <<EOF | 7753 cat > conftest.$ac_ext <<EOF |
7477 #line 7478 "configure" | 7754 #line 7755 "configure" |
7478 #include "confdefs.h" | 7755 #include "confdefs.h" |
7479 #include <$ac_hdr> | 7756 #include <$ac_hdr> |
7480 EOF | 7757 EOF |
7481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7482 { (eval echo configure:7483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7759 { (eval echo configure:7760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7484 if test -z "$ac_err"; then | 7761 if test -z "$ac_err"; then |
7485 rm -rf conftest* | 7762 rm -rf conftest* |
7486 eval "ac_cv_header_$ac_safe=yes" | 7763 eval "ac_cv_header_$ac_safe=yes" |
7487 else | 7764 else |
7504 echo "$ac_t""no" 1>&6 | 7781 echo "$ac_t""no" 1>&6 |
7505 for ac_hdr in kerberosIV/des.h | 7782 for ac_hdr in kerberosIV/des.h |
7506 do | 7783 do |
7507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7509 echo "configure:7510: checking for $ac_hdr" >&5 | 7786 echo "configure:7787: checking for $ac_hdr" >&5 |
7510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7511 echo $ac_n "(cached) $ac_c" 1>&6 | 7788 echo $ac_n "(cached) $ac_c" 1>&6 |
7512 else | 7789 else |
7513 cat > conftest.$ac_ext <<EOF | 7790 cat > conftest.$ac_ext <<EOF |
7514 #line 7515 "configure" | 7791 #line 7792 "configure" |
7515 #include "confdefs.h" | 7792 #include "confdefs.h" |
7516 #include <$ac_hdr> | 7793 #include <$ac_hdr> |
7517 EOF | 7794 EOF |
7518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7519 { (eval echo configure:7520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7796 { (eval echo configure:7797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7521 if test -z "$ac_err"; then | 7798 if test -z "$ac_err"; then |
7522 rm -rf conftest* | 7799 rm -rf conftest* |
7523 eval "ac_cv_header_$ac_safe=yes" | 7800 eval "ac_cv_header_$ac_safe=yes" |
7524 else | 7801 else |
7541 echo "$ac_t""no" 1>&6 | 7818 echo "$ac_t""no" 1>&6 |
7542 for ac_hdr in kerberos/des.h | 7819 for ac_hdr in kerberos/des.h |
7543 do | 7820 do |
7544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7821 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7822 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7546 echo "configure:7547: checking for $ac_hdr" >&5 | 7823 echo "configure:7824: checking for $ac_hdr" >&5 |
7547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7548 echo $ac_n "(cached) $ac_c" 1>&6 | 7825 echo $ac_n "(cached) $ac_c" 1>&6 |
7549 else | 7826 else |
7550 cat > conftest.$ac_ext <<EOF | 7827 cat > conftest.$ac_ext <<EOF |
7551 #line 7552 "configure" | 7828 #line 7829 "configure" |
7552 #include "confdefs.h" | 7829 #include "confdefs.h" |
7553 #include <$ac_hdr> | 7830 #include <$ac_hdr> |
7554 EOF | 7831 EOF |
7555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7556 { (eval echo configure:7557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7833 { (eval echo configure:7834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7558 if test -z "$ac_err"; then | 7835 if test -z "$ac_err"; then |
7559 rm -rf conftest* | 7836 rm -rf conftest* |
7560 eval "ac_cv_header_$ac_safe=yes" | 7837 eval "ac_cv_header_$ac_safe=yes" |
7561 else | 7838 else |
7587 | 7864 |
7588 for ac_hdr in krb.h | 7865 for ac_hdr in krb.h |
7589 do | 7866 do |
7590 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7591 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7592 echo "configure:7593: checking for $ac_hdr" >&5 | 7869 echo "configure:7870: checking for $ac_hdr" >&5 |
7593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7594 echo $ac_n "(cached) $ac_c" 1>&6 | 7871 echo $ac_n "(cached) $ac_c" 1>&6 |
7595 else | 7872 else |
7596 cat > conftest.$ac_ext <<EOF | 7873 cat > conftest.$ac_ext <<EOF |
7597 #line 7598 "configure" | 7874 #line 7875 "configure" |
7598 #include "confdefs.h" | 7875 #include "confdefs.h" |
7599 #include <$ac_hdr> | 7876 #include <$ac_hdr> |
7600 EOF | 7877 EOF |
7601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7602 { (eval echo configure:7603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7879 { (eval echo configure:7880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7604 if test -z "$ac_err"; then | 7881 if test -z "$ac_err"; then |
7605 rm -rf conftest* | 7882 rm -rf conftest* |
7606 eval "ac_cv_header_$ac_safe=yes" | 7883 eval "ac_cv_header_$ac_safe=yes" |
7607 else | 7884 else |
7624 echo "$ac_t""no" 1>&6 | 7901 echo "$ac_t""no" 1>&6 |
7625 for ac_hdr in kerberosIV/krb.h | 7902 for ac_hdr in kerberosIV/krb.h |
7626 do | 7903 do |
7627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7904 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7629 echo "configure:7630: checking for $ac_hdr" >&5 | 7906 echo "configure:7907: checking for $ac_hdr" >&5 |
7630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7907 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7631 echo $ac_n "(cached) $ac_c" 1>&6 | 7908 echo $ac_n "(cached) $ac_c" 1>&6 |
7632 else | 7909 else |
7633 cat > conftest.$ac_ext <<EOF | 7910 cat > conftest.$ac_ext <<EOF |
7634 #line 7635 "configure" | 7911 #line 7912 "configure" |
7635 #include "confdefs.h" | 7912 #include "confdefs.h" |
7636 #include <$ac_hdr> | 7913 #include <$ac_hdr> |
7637 EOF | 7914 EOF |
7638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7639 { (eval echo configure:7640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7916 { (eval echo configure:7917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7641 if test -z "$ac_err"; then | 7918 if test -z "$ac_err"; then |
7642 rm -rf conftest* | 7919 rm -rf conftest* |
7643 eval "ac_cv_header_$ac_safe=yes" | 7920 eval "ac_cv_header_$ac_safe=yes" |
7644 else | 7921 else |
7661 echo "$ac_t""no" 1>&6 | 7938 echo "$ac_t""no" 1>&6 |
7662 for ac_hdr in kerberos/krb.h | 7939 for ac_hdr in kerberos/krb.h |
7663 do | 7940 do |
7664 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7665 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7666 echo "configure:7667: checking for $ac_hdr" >&5 | 7943 echo "configure:7944: checking for $ac_hdr" >&5 |
7667 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7668 echo $ac_n "(cached) $ac_c" 1>&6 | 7945 echo $ac_n "(cached) $ac_c" 1>&6 |
7669 else | 7946 else |
7670 cat > conftest.$ac_ext <<EOF | 7947 cat > conftest.$ac_ext <<EOF |
7671 #line 7672 "configure" | 7948 #line 7949 "configure" |
7672 #include "confdefs.h" | 7949 #include "confdefs.h" |
7673 #include <$ac_hdr> | 7950 #include <$ac_hdr> |
7674 EOF | 7951 EOF |
7675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7676 { (eval echo configure:7677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7953 { (eval echo configure:7954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7678 if test -z "$ac_err"; then | 7955 if test -z "$ac_err"; then |
7679 rm -rf conftest* | 7956 rm -rf conftest* |
7680 eval "ac_cv_header_$ac_safe=yes" | 7957 eval "ac_cv_header_$ac_safe=yes" |
7681 else | 7958 else |
7708 fi | 7985 fi |
7709 for ac_hdr in com_err.h | 7986 for ac_hdr in com_err.h |
7710 do | 7987 do |
7711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7988 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7989 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7713 echo "configure:7714: checking for $ac_hdr" >&5 | 7990 echo "configure:7991: checking for $ac_hdr" >&5 |
7714 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7991 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7715 echo $ac_n "(cached) $ac_c" 1>&6 | 7992 echo $ac_n "(cached) $ac_c" 1>&6 |
7716 else | 7993 else |
7717 cat > conftest.$ac_ext <<EOF | 7994 cat > conftest.$ac_ext <<EOF |
7718 #line 7719 "configure" | 7995 #line 7996 "configure" |
7719 #include "confdefs.h" | 7996 #include "confdefs.h" |
7720 #include <$ac_hdr> | 7997 #include <$ac_hdr> |
7721 EOF | 7998 EOF |
7722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7723 { (eval echo configure:7724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8000 { (eval echo configure:8001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7725 if test -z "$ac_err"; then | 8002 if test -z "$ac_err"; then |
7726 rm -rf conftest* | 8003 rm -rf conftest* |
7727 eval "ac_cv_header_$ac_safe=yes" | 8004 eval "ac_cv_header_$ac_safe=yes" |
7728 else | 8005 else |
7749 fi | 8026 fi |
7750 | 8027 |
7751 # Solaris requires -lintl if you want strerror (which calls dgettext) | 8028 # Solaris requires -lintl if you want strerror (which calls dgettext) |
7752 # to return localized messages. | 8029 # to return localized messages. |
7753 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | 8030 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 |
7754 echo "configure:7755: checking for dgettext in -lintl" >&5 | 8031 echo "configure:8032: checking for dgettext in -lintl" >&5 |
7755 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` | 8032 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
7756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 8033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7757 echo $ac_n "(cached) $ac_c" 1>&6 | 8034 echo $ac_n "(cached) $ac_c" 1>&6 |
7758 else | 8035 else |
7759 ac_save_LIBS="$LIBS" | 8036 ac_save_LIBS="$LIBS" |
7760 LIBS="-lintl $LIBS" | 8037 LIBS="-lintl $LIBS" |
7761 cat > conftest.$ac_ext <<EOF | 8038 cat > conftest.$ac_ext <<EOF |
7762 #line 7763 "configure" | 8039 #line 8040 "configure" |
7763 #include "confdefs.h" | 8040 #include "confdefs.h" |
7764 /* Override any gcc2 internal prototype to avoid an error. */ | 8041 /* Override any gcc2 internal prototype to avoid an error. */ |
7765 /* We use char because int might match the return type of a gcc2 | 8042 /* We use char because int might match the return type of a gcc2 |
7766 builtin and then its argument prototype would still apply. */ | 8043 builtin and then its argument prototype would still apply. */ |
7767 char dgettext(); | 8044 char dgettext(); |
7768 | 8045 |
7769 int main() { | 8046 int main() { |
7770 dgettext() | 8047 dgettext() |
7771 ; return 0; } | 8048 ; return 0; } |
7772 EOF | 8049 EOF |
7773 if { (eval echo configure:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8050 if { (eval echo configure:8051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7774 rm -rf conftest* | 8051 rm -rf conftest* |
7775 eval "ac_cv_lib_$ac_lib_var=yes" | 8052 eval "ac_cv_lib_$ac_lib_var=yes" |
7776 else | 8053 else |
7777 echo "configure: failed program was:" >&5 | 8054 echo "configure: failed program was:" >&5 |
7778 cat conftest.$ac_ext >&5 | 8055 cat conftest.$ac_ext >&5 |
7797 echo "$ac_t""no" 1>&6 | 8074 echo "$ac_t""no" 1>&6 |
7798 fi | 8075 fi |
7799 | 8076 |
7800 | 8077 |
7801 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 8078 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
7802 echo "configure:7803: checking whether localtime caches TZ" >&5 | 8079 echo "configure:8080: checking whether localtime caches TZ" >&5 |
7803 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then | 8080 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
7804 echo $ac_n "(cached) $ac_c" 1>&6 | 8081 echo $ac_n "(cached) $ac_c" 1>&6 |
7805 else | 8082 else |
7806 if test x$ac_cv_func_tzset = xyes; then | 8083 if test x$ac_cv_func_tzset = xyes; then |
7807 if test "$cross_compiling" = yes; then | 8084 if test "$cross_compiling" = yes; then |
7808 # If we have tzset, assume the worst when cross-compiling. | 8085 # If we have tzset, assume the worst when cross-compiling. |
7809 emacs_cv_localtime_cache=yes | 8086 emacs_cv_localtime_cache=yes |
7810 else | 8087 else |
7811 cat > conftest.$ac_ext <<EOF | 8088 cat > conftest.$ac_ext <<EOF |
7812 #line 7813 "configure" | 8089 #line 8090 "configure" |
7813 #include "confdefs.h" | 8090 #include "confdefs.h" |
7814 #include <time.h> | 8091 #include <time.h> |
7815 extern char **environ; | 8092 extern char **environ; |
7816 unset_TZ () | 8093 unset_TZ () |
7817 { | 8094 { |
7839 if (localtime (&now)->tm_hour != hour_unset) | 8116 if (localtime (&now)->tm_hour != hour_unset) |
7840 exit (1); | 8117 exit (1); |
7841 exit (0); | 8118 exit (0); |
7842 } | 8119 } |
7843 EOF | 8120 EOF |
7844 if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8121 if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7845 then | 8122 then |
7846 emacs_cv_localtime_cache=no | 8123 emacs_cv_localtime_cache=no |
7847 else | 8124 else |
7848 echo "configure: failed program was:" >&5 | 8125 echo "configure: failed program was:" >&5 |
7849 cat conftest.$ac_ext >&5 | 8126 cat conftest.$ac_ext >&5 |
7869 | 8146 |
7870 if test "x$HAVE_TIMEVAL" = xyes; then | 8147 if test "x$HAVE_TIMEVAL" = xyes; then |
7871 for ac_func in gettimeofday | 8148 for ac_func in gettimeofday |
7872 do | 8149 do |
7873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 8150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
7874 echo "configure:7875: checking for $ac_func" >&5 | 8151 echo "configure:8152: checking for $ac_func" >&5 |
7875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 8152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7876 echo $ac_n "(cached) $ac_c" 1>&6 | 8153 echo $ac_n "(cached) $ac_c" 1>&6 |
7877 else | 8154 else |
7878 cat > conftest.$ac_ext <<EOF | 8155 cat > conftest.$ac_ext <<EOF |
7879 #line 7880 "configure" | 8156 #line 8157 "configure" |
7880 #include "confdefs.h" | 8157 #include "confdefs.h" |
7881 /* System header to define __stub macros and hopefully few prototypes, | 8158 /* System header to define __stub macros and hopefully few prototypes, |
7882 which can conflict with char $ac_func(); below. */ | 8159 which can conflict with char $ac_func(); below. */ |
7883 #include <assert.h> | 8160 #include <assert.h> |
7884 /* Override any gcc2 internal prototype to avoid an error. */ | 8161 /* Override any gcc2 internal prototype to avoid an error. */ |
7897 $ac_func(); | 8174 $ac_func(); |
7898 #endif | 8175 #endif |
7899 | 8176 |
7900 ; return 0; } | 8177 ; return 0; } |
7901 EOF | 8178 EOF |
7902 if { (eval echo configure:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8179 if { (eval echo configure:8180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7903 rm -rf conftest* | 8180 rm -rf conftest* |
7904 eval "ac_cv_func_$ac_func=yes" | 8181 eval "ac_cv_func_$ac_func=yes" |
7905 else | 8182 else |
7906 echo "configure: failed program was:" >&5 | 8183 echo "configure: failed program was:" >&5 |
7907 cat conftest.$ac_ext >&5 | 8184 cat conftest.$ac_ext >&5 |
7922 echo "$ac_t""no" 1>&6 | 8199 echo "$ac_t""no" 1>&6 |
7923 fi | 8200 fi |
7924 done | 8201 done |
7925 | 8202 |
7926 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | 8203 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 |
7927 echo "configure:7928: checking whether gettimeofday can accept two arguments" >&5 | 8204 echo "configure:8205: checking whether gettimeofday can accept two arguments" >&5 |
7928 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then | 8205 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
7929 echo $ac_n "(cached) $ac_c" 1>&6 | 8206 echo $ac_n "(cached) $ac_c" 1>&6 |
7930 else | 8207 else |
7931 cat > conftest.$ac_ext <<EOF | 8208 cat > conftest.$ac_ext <<EOF |
7932 #line 7933 "configure" | 8209 #line 8210 "configure" |
7933 #include "confdefs.h" | 8210 #include "confdefs.h" |
7934 | 8211 |
7935 #ifdef TIME_WITH_SYS_TIME | 8212 #ifdef TIME_WITH_SYS_TIME |
7936 #include <sys/time.h> | 8213 #include <sys/time.h> |
7937 #include <time.h> | 8214 #include <time.h> |
7945 int main() { | 8222 int main() { |
7946 struct timeval time; | 8223 struct timeval time; |
7947 gettimeofday (&time, 0); | 8224 gettimeofday (&time, 0); |
7948 ; return 0; } | 8225 ; return 0; } |
7949 EOF | 8226 EOF |
7950 if { (eval echo configure:7951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8227 if { (eval echo configure:8228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7951 rm -rf conftest* | 8228 rm -rf conftest* |
7952 emacs_cv_gettimeofday_two_arguments=yes | 8229 emacs_cv_gettimeofday_two_arguments=yes |
7953 else | 8230 else |
7954 echo "configure: failed program was:" >&5 | 8231 echo "configure: failed program was:" >&5 |
7955 cat conftest.$ac_ext >&5 | 8232 cat conftest.$ac_ext >&5 |
7968 fi | 8245 fi |
7969 fi | 8246 fi |
7970 | 8247 |
7971 if test "$ac_cv_func_gettimeofday" = yes; then | 8248 if test "$ac_cv_func_gettimeofday" = yes; then |
7972 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 | 8249 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 |
7973 echo "configure:7974: checking for struct timezone" >&5 | 8250 echo "configure:8251: checking for struct timezone" >&5 |
7974 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then | 8251 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then |
7975 echo $ac_n "(cached) $ac_c" 1>&6 | 8252 echo $ac_n "(cached) $ac_c" 1>&6 |
7976 else | 8253 else |
7977 cat > conftest.$ac_ext <<EOF | 8254 cat > conftest.$ac_ext <<EOF |
7978 #line 7979 "configure" | 8255 #line 8256 "configure" |
7979 #include "confdefs.h" | 8256 #include "confdefs.h" |
7980 #include <sys/time.h> | 8257 #include <sys/time.h> |
7981 int main() { | 8258 int main() { |
7982 struct timezone tz; | 8259 struct timezone tz; |
7983 ; return 0; } | 8260 ; return 0; } |
7984 EOF | 8261 EOF |
7985 if { (eval echo configure:7986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8262 if { (eval echo configure:8263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7986 rm -rf conftest* | 8263 rm -rf conftest* |
7987 if test "$cross_compiling" = yes; then | 8264 if test "$cross_compiling" = yes; then |
7988 emacs_cv_struct_timezone=yes | 8265 emacs_cv_struct_timezone=yes |
7989 else | 8266 else |
7990 cat > conftest.$ac_ext <<EOF | 8267 cat > conftest.$ac_ext <<EOF |
7991 #line 7992 "configure" | 8268 #line 8269 "configure" |
7992 #include "confdefs.h" | 8269 #include "confdefs.h" |
7993 | 8270 |
7994 #ifdef TIME_WITH_SYS_TIME | 8271 #ifdef TIME_WITH_SYS_TIME |
7995 #include <sys/time.h> | 8272 #include <sys/time.h> |
7996 #include <time.h> | 8273 #include <time.h> |
8005 struct timeval time; | 8282 struct timeval time; |
8006 struct timezone dummy; | 8283 struct timezone dummy; |
8007 exit (gettimeofday (&time, &dummy)); | 8284 exit (gettimeofday (&time, &dummy)); |
8008 } | 8285 } |
8009 EOF | 8286 EOF |
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8287 if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8011 then | 8288 then |
8012 emacs_cv_struct_timezone=yes | 8289 emacs_cv_struct_timezone=yes |
8013 else | 8290 else |
8014 echo "configure: failed program was:" >&5 | 8291 echo "configure: failed program was:" >&5 |
8015 cat conftest.$ac_ext >&5 | 8292 cat conftest.$ac_ext >&5 |
8031 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 | 8308 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 |
8032 fi | 8309 fi |
8033 | 8310 |
8034 ok_so_far=yes | 8311 ok_so_far=yes |
8035 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 8312 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
8036 echo "configure:8037: checking for socket" >&5 | 8313 echo "configure:8314: checking for socket" >&5 |
8037 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 8314 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
8038 echo $ac_n "(cached) $ac_c" 1>&6 | 8315 echo $ac_n "(cached) $ac_c" 1>&6 |
8039 else | 8316 else |
8040 cat > conftest.$ac_ext <<EOF | 8317 cat > conftest.$ac_ext <<EOF |
8041 #line 8042 "configure" | 8318 #line 8319 "configure" |
8042 #include "confdefs.h" | 8319 #include "confdefs.h" |
8043 /* System header to define __stub macros and hopefully few prototypes, | 8320 /* System header to define __stub macros and hopefully few prototypes, |
8044 which can conflict with char socket(); below. */ | 8321 which can conflict with char socket(); below. */ |
8045 #include <assert.h> | 8322 #include <assert.h> |
8046 /* Override any gcc2 internal prototype to avoid an error. */ | 8323 /* Override any gcc2 internal prototype to avoid an error. */ |
8059 socket(); | 8336 socket(); |
8060 #endif | 8337 #endif |
8061 | 8338 |
8062 ; return 0; } | 8339 ; return 0; } |
8063 EOF | 8340 EOF |
8064 if { (eval echo configure:8065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8341 if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8065 rm -rf conftest* | 8342 rm -rf conftest* |
8066 eval "ac_cv_func_socket=yes" | 8343 eval "ac_cv_func_socket=yes" |
8067 else | 8344 else |
8068 echo "configure: failed program was:" >&5 | 8345 echo "configure: failed program was:" >&5 |
8069 cat conftest.$ac_ext >&5 | 8346 cat conftest.$ac_ext >&5 |
8082 fi | 8359 fi |
8083 | 8360 |
8084 if test $ok_so_far = yes; then | 8361 if test $ok_so_far = yes; then |
8085 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 8362 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
8086 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 8363 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
8087 echo "configure:8088: checking for netinet/in.h" >&5 | 8364 echo "configure:8365: checking for netinet/in.h" >&5 |
8088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8089 echo $ac_n "(cached) $ac_c" 1>&6 | 8366 echo $ac_n "(cached) $ac_c" 1>&6 |
8090 else | 8367 else |
8091 cat > conftest.$ac_ext <<EOF | 8368 cat > conftest.$ac_ext <<EOF |
8092 #line 8093 "configure" | 8369 #line 8370 "configure" |
8093 #include "confdefs.h" | 8370 #include "confdefs.h" |
8094 #include <netinet/in.h> | 8371 #include <netinet/in.h> |
8095 EOF | 8372 EOF |
8096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8097 { (eval echo configure:8098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8374 { (eval echo configure:8375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8099 if test -z "$ac_err"; then | 8376 if test -z "$ac_err"; then |
8100 rm -rf conftest* | 8377 rm -rf conftest* |
8101 eval "ac_cv_header_$ac_safe=yes" | 8378 eval "ac_cv_header_$ac_safe=yes" |
8102 else | 8379 else |
8118 | 8395 |
8119 fi | 8396 fi |
8120 if test $ok_so_far = yes; then | 8397 if test $ok_so_far = yes; then |
8121 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 8398 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
8122 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 8399 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
8123 echo "configure:8124: checking for arpa/inet.h" >&5 | 8400 echo "configure:8401: checking for arpa/inet.h" >&5 |
8124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8401 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8125 echo $ac_n "(cached) $ac_c" 1>&6 | 8402 echo $ac_n "(cached) $ac_c" 1>&6 |
8126 else | 8403 else |
8127 cat > conftest.$ac_ext <<EOF | 8404 cat > conftest.$ac_ext <<EOF |
8128 #line 8129 "configure" | 8405 #line 8406 "configure" |
8129 #include "confdefs.h" | 8406 #include "confdefs.h" |
8130 #include <arpa/inet.h> | 8407 #include <arpa/inet.h> |
8131 EOF | 8408 EOF |
8132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8133 { (eval echo configure:8134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8410 { (eval echo configure:8411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8135 if test -z "$ac_err"; then | 8412 if test -z "$ac_err"; then |
8136 rm -rf conftest* | 8413 rm -rf conftest* |
8137 eval "ac_cv_header_$ac_safe=yes" | 8414 eval "ac_cv_header_$ac_safe=yes" |
8138 else | 8415 else |
8166 EOF | 8443 EOF |
8167 | 8444 |
8168 fi | 8445 fi |
8169 | 8446 |
8170 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 8447 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
8171 echo "configure:8172: checking whether system supports dynamic ptys" >&5 | 8448 echo "configure:8449: checking whether system supports dynamic ptys" >&5 |
8172 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 8449 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
8173 echo "$ac_t""yes" 1>&6 | 8450 echo "$ac_t""yes" 1>&6 |
8174 cat >> confdefs.h <<\EOF | 8451 cat >> confdefs.h <<\EOF |
8175 #define HAVE_DEV_PTMX 1 | 8452 #define HAVE_DEV_PTMX 1 |
8176 EOF | 8453 EOF |
8178 else | 8455 else |
8179 echo "$ac_t""no" 1>&6 | 8456 echo "$ac_t""no" 1>&6 |
8180 fi | 8457 fi |
8181 | 8458 |
8182 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 8459 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
8183 echo "configure:8184: checking for pid_t" >&5 | 8460 echo "configure:8461: checking for pid_t" >&5 |
8184 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 8461 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8185 echo $ac_n "(cached) $ac_c" 1>&6 | 8462 echo $ac_n "(cached) $ac_c" 1>&6 |
8186 else | 8463 else |
8187 cat > conftest.$ac_ext <<EOF | 8464 cat > conftest.$ac_ext <<EOF |
8188 #line 8189 "configure" | 8465 #line 8466 "configure" |
8189 #include "confdefs.h" | 8466 #include "confdefs.h" |
8190 #include <sys/types.h> | 8467 #include <sys/types.h> |
8191 #if STDC_HEADERS | 8468 #if STDC_HEADERS |
8192 #include <stdlib.h> | 8469 #include <stdlib.h> |
8193 #include <stddef.h> | 8470 #include <stddef.h> |
8212 | 8489 |
8213 fi | 8490 fi |
8214 | 8491 |
8215 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 8492 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
8216 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 8493 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
8217 echo "configure:8218: checking for vfork.h" >&5 | 8494 echo "configure:8495: checking for vfork.h" >&5 |
8218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8219 echo $ac_n "(cached) $ac_c" 1>&6 | 8496 echo $ac_n "(cached) $ac_c" 1>&6 |
8220 else | 8497 else |
8221 cat > conftest.$ac_ext <<EOF | 8498 cat > conftest.$ac_ext <<EOF |
8222 #line 8223 "configure" | 8499 #line 8500 "configure" |
8223 #include "confdefs.h" | 8500 #include "confdefs.h" |
8224 #include <vfork.h> | 8501 #include <vfork.h> |
8225 EOF | 8502 EOF |
8226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8227 { (eval echo configure:8228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8504 { (eval echo configure:8505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8229 if test -z "$ac_err"; then | 8506 if test -z "$ac_err"; then |
8230 rm -rf conftest* | 8507 rm -rf conftest* |
8231 eval "ac_cv_header_$ac_safe=yes" | 8508 eval "ac_cv_header_$ac_safe=yes" |
8232 else | 8509 else |
8247 else | 8524 else |
8248 echo "$ac_t""no" 1>&6 | 8525 echo "$ac_t""no" 1>&6 |
8249 fi | 8526 fi |
8250 | 8527 |
8251 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 8528 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
8252 echo "configure:8253: checking for working vfork" >&5 | 8529 echo "configure:8530: checking for working vfork" >&5 |
8253 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | 8530 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
8254 echo $ac_n "(cached) $ac_c" 1>&6 | 8531 echo $ac_n "(cached) $ac_c" 1>&6 |
8255 else | 8532 else |
8256 if test "$cross_compiling" = yes; then | 8533 if test "$cross_compiling" = yes; then |
8257 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | 8534 echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
8258 echo "configure:8259: checking for vfork" >&5 | 8535 echo "configure:8536: checking for vfork" >&5 |
8259 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | 8536 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
8260 echo $ac_n "(cached) $ac_c" 1>&6 | 8537 echo $ac_n "(cached) $ac_c" 1>&6 |
8261 else | 8538 else |
8262 cat > conftest.$ac_ext <<EOF | 8539 cat > conftest.$ac_ext <<EOF |
8263 #line 8264 "configure" | 8540 #line 8541 "configure" |
8264 #include "confdefs.h" | 8541 #include "confdefs.h" |
8265 /* System header to define __stub macros and hopefully few prototypes, | 8542 /* System header to define __stub macros and hopefully few prototypes, |
8266 which can conflict with char vfork(); below. */ | 8543 which can conflict with char vfork(); below. */ |
8267 #include <assert.h> | 8544 #include <assert.h> |
8268 /* Override any gcc2 internal prototype to avoid an error. */ | 8545 /* Override any gcc2 internal prototype to avoid an error. */ |
8281 vfork(); | 8558 vfork(); |
8282 #endif | 8559 #endif |
8283 | 8560 |
8284 ; return 0; } | 8561 ; return 0; } |
8285 EOF | 8562 EOF |
8286 if { (eval echo configure:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8563 if { (eval echo configure:8564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8287 rm -rf conftest* | 8564 rm -rf conftest* |
8288 eval "ac_cv_func_vfork=yes" | 8565 eval "ac_cv_func_vfork=yes" |
8289 else | 8566 else |
8290 echo "configure: failed program was:" >&5 | 8567 echo "configure: failed program was:" >&5 |
8291 cat conftest.$ac_ext >&5 | 8568 cat conftest.$ac_ext >&5 |
8303 fi | 8580 fi |
8304 | 8581 |
8305 ac_cv_func_vfork_works=$ac_cv_func_vfork | 8582 ac_cv_func_vfork_works=$ac_cv_func_vfork |
8306 else | 8583 else |
8307 cat > conftest.$ac_ext <<EOF | 8584 cat > conftest.$ac_ext <<EOF |
8308 #line 8309 "configure" | 8585 #line 8586 "configure" |
8309 #include "confdefs.h" | 8586 #include "confdefs.h" |
8310 /* Thanks to Paul Eggert for this test. */ | 8587 /* Thanks to Paul Eggert for this test. */ |
8311 #include <stdio.h> | 8588 #include <stdio.h> |
8312 #include <sys/types.h> | 8589 #include <sys/types.h> |
8313 #include <sys/stat.h> | 8590 #include <sys/stat.h> |
8398 || fstat(fileno(stdout), &st) != 0 | 8675 || fstat(fileno(stdout), &st) != 0 |
8399 ); | 8676 ); |
8400 } | 8677 } |
8401 } | 8678 } |
8402 EOF | 8679 EOF |
8403 if { (eval echo configure:8404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8680 if { (eval echo configure:8681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8404 then | 8681 then |
8405 ac_cv_func_vfork_works=yes | 8682 ac_cv_func_vfork_works=yes |
8406 else | 8683 else |
8407 echo "configure: failed program was:" >&5 | 8684 echo "configure: failed program was:" >&5 |
8408 cat conftest.$ac_ext >&5 | 8685 cat conftest.$ac_ext >&5 |
8420 #define vfork fork | 8697 #define vfork fork |
8421 EOF | 8698 EOF |
8422 | 8699 |
8423 fi | 8700 fi |
8424 | 8701 |
8425 for ac_hdr in unistd.h | |
8426 do | |
8427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8429 echo "configure:8430: checking for $ac_hdr" >&5 | |
8430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8431 echo $ac_n "(cached) $ac_c" 1>&6 | |
8432 else | |
8433 cat > conftest.$ac_ext <<EOF | |
8434 #line 8435 "configure" | |
8435 #include "confdefs.h" | |
8436 #include <$ac_hdr> | |
8437 EOF | |
8438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8439 { (eval echo configure:8440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8441 if test -z "$ac_err"; then | |
8442 rm -rf conftest* | |
8443 eval "ac_cv_header_$ac_safe=yes" | |
8444 else | |
8445 echo "$ac_err" >&5 | |
8446 echo "configure: failed program was:" >&5 | |
8447 cat conftest.$ac_ext >&5 | |
8448 rm -rf conftest* | |
8449 eval "ac_cv_header_$ac_safe=no" | |
8450 fi | |
8451 rm -f conftest* | |
8452 fi | |
8453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8454 echo "$ac_t""yes" 1>&6 | |
8455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8456 cat >> confdefs.h <<EOF | |
8457 #define $ac_tr_hdr 1 | |
8458 EOF | |
8459 | |
8460 else | |
8461 echo "$ac_t""no" 1>&6 | |
8462 fi | |
8463 done | |
8464 | |
8465 for ac_func in getpagesize | |
8466 do | |
8467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8468 echo "configure:8469: checking for $ac_func" >&5 | |
8469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
8470 echo $ac_n "(cached) $ac_c" 1>&6 | |
8471 else | |
8472 cat > conftest.$ac_ext <<EOF | |
8473 #line 8474 "configure" | |
8474 #include "confdefs.h" | |
8475 /* System header to define __stub macros and hopefully few prototypes, | |
8476 which can conflict with char $ac_func(); below. */ | |
8477 #include <assert.h> | |
8478 /* Override any gcc2 internal prototype to avoid an error. */ | |
8479 /* We use char because int might match the return type of a gcc2 | |
8480 builtin and then its argument prototype would still apply. */ | |
8481 char $ac_func(); | |
8482 | |
8483 int main() { | |
8484 | |
8485 /* The GNU C library defines this for functions which it implements | |
8486 to always fail with ENOSYS. Some functions are actually named | |
8487 something starting with __ and the normal name is an alias. */ | |
8488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8489 choke me | |
8490 #else | |
8491 $ac_func(); | |
8492 #endif | |
8493 | |
8494 ; return 0; } | |
8495 EOF | |
8496 if { (eval echo configure:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8497 rm -rf conftest* | |
8498 eval "ac_cv_func_$ac_func=yes" | |
8499 else | |
8500 echo "configure: failed program was:" >&5 | |
8501 cat conftest.$ac_ext >&5 | |
8502 rm -rf conftest* | |
8503 eval "ac_cv_func_$ac_func=no" | |
8504 fi | |
8505 rm -f conftest* | |
8506 fi | |
8507 | |
8508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8509 echo "$ac_t""yes" 1>&6 | |
8510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8511 cat >> confdefs.h <<EOF | |
8512 #define $ac_tr_func 1 | |
8513 EOF | |
8514 | |
8515 else | |
8516 echo "$ac_t""no" 1>&6 | |
8517 fi | |
8518 done | |
8519 | |
8520 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
8521 echo "configure:8522: checking for working mmap" >&5 | |
8522 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then | |
8523 echo $ac_n "(cached) $ac_c" 1>&6 | |
8524 else | |
8525 if test "$cross_compiling" = yes; then | |
8526 ac_cv_func_mmap_fixed_mapped=no | |
8527 else | |
8528 cat > conftest.$ac_ext <<EOF | |
8529 #line 8530 "configure" | |
8530 #include "confdefs.h" | |
8531 | |
8532 /* Thanks to Mike Haertel and Jim Avera for this test. | |
8533 Here is a matrix of mmap possibilities: | |
8534 mmap private not fixed | |
8535 mmap private fixed at somewhere currently unmapped | |
8536 mmap private fixed at somewhere already mapped | |
8537 mmap shared not fixed | |
8538 mmap shared fixed at somewhere currently unmapped | |
8539 mmap shared fixed at somewhere already mapped | |
8540 For private mappings, we should verify that changes cannot be read() | |
8541 back from the file, nor mmap's back from the file at a different | |
8542 address. (There have been systems where private was not correctly | |
8543 implemented like the infamous i386 svr4.0, and systems where the | |
8544 VM page cache was not coherent with the filesystem buffer cache | |
8545 like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8546 For shared mappings, we should conversely verify that changes get | |
8547 propogated back to all the places they're supposed to be. | |
8548 | |
8549 Grep wants private fixed already mapped. | |
8550 The main things grep needs to know about mmap are: | |
8551 * does it exist and is it safe to write into the mmap'd area | |
8552 * how to use it (BSD variants) */ | |
8553 #include <sys/types.h> | |
8554 #include <fcntl.h> | |
8555 #include <sys/mman.h> | |
8556 | |
8557 /* This mess was copied from the GNU getpagesize.h. */ | |
8558 #ifndef HAVE_GETPAGESIZE | |
8559 # ifdef HAVE_UNISTD_H | |
8560 # include <unistd.h> | |
8561 # endif | |
8562 | |
8563 /* Assume that all systems that can run configure have sys/param.h. */ | |
8564 # ifndef HAVE_SYS_PARAM_H | |
8565 # define HAVE_SYS_PARAM_H 1 | |
8566 # endif | |
8567 | |
8568 # ifdef _SC_PAGESIZE | |
8569 # define getpagesize() sysconf(_SC_PAGESIZE) | |
8570 # else /* no _SC_PAGESIZE */ | |
8571 # ifdef HAVE_SYS_PARAM_H | |
8572 # include <sys/param.h> | |
8573 # ifdef EXEC_PAGESIZE | |
8574 # define getpagesize() EXEC_PAGESIZE | |
8575 # else /* no EXEC_PAGESIZE */ | |
8576 # ifdef NBPG | |
8577 # define getpagesize() NBPG * CLSIZE | |
8578 # ifndef CLSIZE | |
8579 # define CLSIZE 1 | |
8580 # endif /* no CLSIZE */ | |
8581 # else /* no NBPG */ | |
8582 # ifdef NBPC | |
8583 # define getpagesize() NBPC | |
8584 # else /* no NBPC */ | |
8585 # ifdef PAGESIZE | |
8586 # define getpagesize() PAGESIZE | |
8587 # endif /* PAGESIZE */ | |
8588 # endif /* no NBPC */ | |
8589 # endif /* no NBPG */ | |
8590 # endif /* no EXEC_PAGESIZE */ | |
8591 # else /* no HAVE_SYS_PARAM_H */ | |
8592 # define getpagesize() 8192 /* punt totally */ | |
8593 # endif /* no HAVE_SYS_PARAM_H */ | |
8594 # endif /* no _SC_PAGESIZE */ | |
8595 | |
8596 #endif /* no HAVE_GETPAGESIZE */ | |
8597 | |
8598 #ifdef __cplusplus | |
8599 extern "C" { void *malloc(unsigned); } | |
8600 #else | |
8601 char *malloc(); | |
8602 #endif | |
8603 | |
8604 int | |
8605 main() | |
8606 { | |
8607 char *data, *data2, *data3; | |
8608 int i, pagesize; | |
8609 int fd; | |
8610 | |
8611 pagesize = getpagesize(); | |
8612 | |
8613 /* | |
8614 * First, make a file with some known garbage in it. | |
8615 */ | |
8616 data = malloc(pagesize); | |
8617 if (!data) | |
8618 exit(1); | |
8619 for (i = 0; i < pagesize; ++i) | |
8620 *(data + i) = rand(); | |
8621 umask(0); | |
8622 fd = creat("conftestmmap", 0600); | |
8623 if (fd < 0) | |
8624 exit(1); | |
8625 if (write(fd, data, pagesize) != pagesize) | |
8626 exit(1); | |
8627 close(fd); | |
8628 | |
8629 /* | |
8630 * Next, try to mmap the file at a fixed address which | |
8631 * already has something else allocated at it. If we can, | |
8632 * also make sure that we see the same garbage. | |
8633 */ | |
8634 fd = open("conftestmmap", O_RDWR); | |
8635 if (fd < 0) | |
8636 exit(1); | |
8637 data2 = malloc(2 * pagesize); | |
8638 if (!data2) | |
8639 exit(1); | |
8640 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
8641 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
8642 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
8643 exit(1); | |
8644 for (i = 0; i < pagesize; ++i) | |
8645 if (*(data + i) != *(data2 + i)) | |
8646 exit(1); | |
8647 | |
8648 /* | |
8649 * Finally, make sure that changes to the mapped area | |
8650 * do not percolate back to the file as seen by read(). | |
8651 * (This is a bug on some variants of i386 svr4.0.) | |
8652 */ | |
8653 for (i = 0; i < pagesize; ++i) | |
8654 *(data2 + i) = *(data2 + i) + 1; | |
8655 data3 = malloc(pagesize); | |
8656 if (!data3) | |
8657 exit(1); | |
8658 if (read(fd, data3, pagesize) != pagesize) | |
8659 exit(1); | |
8660 for (i = 0; i < pagesize; ++i) | |
8661 if (*(data + i) != *(data3 + i)) | |
8662 exit(1); | |
8663 close(fd); | |
8664 unlink("conftestmmap"); | |
8665 exit(0); | |
8666 } | |
8667 | |
8668 EOF | |
8669 if { (eval echo configure:8670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
8670 then | |
8671 ac_cv_func_mmap_fixed_mapped=yes | |
8672 else | |
8673 echo "configure: failed program was:" >&5 | |
8674 cat conftest.$ac_ext >&5 | |
8675 rm -fr conftest* | |
8676 ac_cv_func_mmap_fixed_mapped=no | |
8677 fi | |
8678 rm -fr conftest* | |
8679 fi | |
8680 | |
8681 fi | |
8682 | |
8683 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
8684 if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
8685 cat >> confdefs.h <<\EOF | |
8686 #define HAVE_MMAP 1 | |
8687 EOF | |
8688 | |
8689 fi | |
8690 | |
8691 | 8702 |
8692 # Fixme: This should be replaced when we have autoconf 2.14. | 8703 # Fixme: This should be replaced when we have autoconf 2.14. |
8693 echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 8704 echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
8694 echo "configure:8695: checking for size_t" >&5 | 8705 echo "configure:8706: checking for size_t" >&5 |
8695 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 8706 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8696 echo $ac_n "(cached) $ac_c" 1>&6 | 8707 echo $ac_n "(cached) $ac_c" 1>&6 |
8697 else | 8708 else |
8698 cat > conftest.$ac_ext <<EOF | 8709 cat > conftest.$ac_ext <<EOF |
8699 #line 8700 "configure" | 8710 #line 8711 "configure" |
8700 #include "confdefs.h" | 8711 #include "confdefs.h" |
8701 #include <sys/types.h> | 8712 #include <sys/types.h> |
8702 #if STDC_HEADERS | 8713 #if STDC_HEADERS |
8703 #include <stdlib.h> | 8714 #include <stdlib.h> |
8704 #include <stddef.h> | 8715 #include <stddef.h> |
8851 Where should the build process find the source code? ${srcdir} | 8862 Where should the build process find the source code? ${srcdir} |
8852 What operating system and machine description files should Emacs use? | 8863 What operating system and machine description files should Emacs use? |
8853 \`${opsysfile}' and \`${machfile}' | 8864 \`${opsysfile}' and \`${machfile}' |
8854 What compiler should emacs be built with? ${CC} ${CFLAGS} | 8865 What compiler should emacs be built with? ${CC} ${CFLAGS} |
8855 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | 8866 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} |
8856 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} | 8867 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
8868 Should Emacs use mmap for the relocating allocator? $rel_alloc_mmap | |
8857 What window system should Emacs use? ${window_system} | 8869 What window system should Emacs use? ${window_system} |
8858 What toolkit should Emacs use? ${USE_X_TOOLKIT}" | 8870 What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
8859 | 8871 |
8860 if test -n "${x_includes}"; then | 8872 if test -n "${x_includes}"; then |
8861 echo " Where do we find X Windows header files? ${x_includes}" | 8873 echo " Where do we find X Windows header files? ${x_includes}" |